Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcletavernie2011-11-02 10:27:29 +0000
committercletavernie2011-11-02 10:27:29 +0000
commitb544a6dc043e08216e57a8da40cc5a3f2a7df9b6 (patch)
tree315d9a6bd7a47cdaee77ce0c83b53be79af14d0b /plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus
parentfdc516e66ff24418748f79234ebcf2038022cc27 (diff)
downloadorg.eclipse.papyrus-b544a6dc043e08216e57a8da40cc5a3f2a7df9b6.tar.gz
org.eclipse.papyrus-b544a6dc043e08216e57a8da40cc5a3f2a7df9b6.tar.xz
org.eclipse.papyrus-b544a6dc043e08216e57a8da40cc5a3f2a7df9b6.zip
362162: [Architecture - Refactoring] The plug-ins should be renamed to match their layer's qualified name
https://bugs.eclipse.org/bugs/show_bug.cgi?id=362162
Diffstat (limited to 'plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus')
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/AbstractionCreateCommand.java168
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/AbstractionReorientCommand.java178
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/ActivityCompositeCreateCommand.java134
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/ActivityCompositeCreateCommandCN.java129
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/ActivityCreateCommandCLN.java129
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/ActorCreateCommand.java134
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/ActorCreateCommandCN.java129
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/AnyReceiveEventCreateCommand.java134
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/ArtifactCreateCommand.java134
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/ArtifactCreateCommandCN.java129
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/CallEventCreateCommand.java134
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/ChangeEventCreateCommand.java134
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/ClassCompositeCreateCommand.java134
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/ClassCompositeCreateCommandCN.java128
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/ClassCreateCommandCLN.java128
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/CollaborationCompositeCreateCommand.java134
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/CollaborationCompositeCreateCommandCN.java129
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/CollaborationCreateCommandCLN.java129
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/CollaborationRoleCreateCommandCN.java116
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/CollaborationUseCreateCommandCN.java129
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/CommentAnnotatedElementCreateCommand.java106
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/CommentAnnotatedElementReorientCommand.java161
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/CommentCreateCommand.java135
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/CommentCreateCommandCN.java129
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/ComponentCompositeCreateCommand.java134
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/ComponentCompositeCreateCommandCN.java129
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/ComponentRealizationCreateCommand.java168
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/ComponentRealizationReorientCommand.java178
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/ConnectorCreateCommand.java168
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/ConnectorReorientCommand.java178
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/ConstraintConstrainedElementCreateCommand.java106
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/ConstraintConstrainedElementReorientCommand.java161
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/ConstraintCreateCommand.java135
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/ConstraintCreateCommandCN.java129
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/CreationEventCreateCommand.java134
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/DataTypeCreateCommand.java134
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/DataTypeCreateCommandCLN.java129
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/DataTypeCreateCommandCN.java129
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/DependencyCreateCommand.java168
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/DependencyReorientCommand.java178
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/DeploymentCreateCommand.java168
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/DeploymentReorientCommand.java178
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/DeploymentSpecificationCreateCommand.java134
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/DeploymentSpecificationCreateCommandCN.java129
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/DestructionEventCreateCommand.java134
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/DeviceCompositeCreateCommand.java134
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/DeviceCompositeCreateCommandCN.java129
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/DurationConstraintCreateCommand.java135
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/DurationConstraintCreateCommandCN.java129
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/DurationCreateCommand.java134
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/DurationIntervalCreateCommand.java134
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/DurationObservationCreateCommand.java134
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/DurationObservationEventCreateCommand.java106
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/DurationObservationEventReorientCommand.java161
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/EnumerationCreateCommand.java134
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/EnumerationCreateCommandCLN.java129
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/EnumerationCreateCommandCN.java129
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/EnumerationLiteralCreateCommandCLN.java129
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/ExecutionEnvironmentCompositeCreateCommand.java134
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/ExecutionEnvironmentCompositeCreateCommandCN.java129
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/ExecutionEventCreateCommand.java134
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/ExpressionCreateCommand.java134
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/FunctionBehaviorCompositeCreateCommand.java134
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/FunctionBehaviorCompositeCreateCommandCN.java129
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/FunctionBehaviorCreateCommandCLN.java129
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/GeneralizationCreateCommand.java165
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/GeneralizationReorientCommand.java169
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/InformationFlowCreateCommand.java168
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/InformationFlowReorientCommand.java178
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/InformationItemCreateCommand.java134
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/InformationItemCreateCommandCN.java129
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/InstanceValueCreateCommand.java134
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/InteractionCompositeCreateCommand.java134
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/InteractionCompositeCreateCommandCN.java129
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/InteractionConstraintCreateCommand.java135
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/InteractionConstraintCreateCommandCN.java129
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/InteractionCreateCommandCLN.java129
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/InterfaceCreateCommand.java134
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/InterfaceCreateCommandCLN.java129
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/InterfaceCreateCommandCN.java129
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/InterfaceRealizationCreateCommand.java168
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/InterfaceRealizationReorientCommand.java178
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/IntervalConstraintCreateCommand.java135
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/IntervalConstraintCreateCommandCN.java129
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/IntervalCreateCommand.java134
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/LiteralBooleanCreateCommand.java134
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/LiteralIntegerCreateCommand.java134
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/LiteralNullCreateCommand.java134
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/LiteralStringCreateCommand.java134
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/LiteralUnlimitedNaturalCreateCommand.java134
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/ManifestationCreateCommand.java168
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/ManifestationReorientCommand.java178
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/NodeCompositeCreateCommand.java134
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/NodeCompositeCreateCommandCN.java129
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/OpaqueBehaviorCompositeCreateCommand.java134
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/OpaqueBehaviorCompositeCreateCommandCN.java129
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/OpaqueBehaviorCreateCommandCLN.java129
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/OpaqueExpressionCreateCommand.java134
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/OperationCreateCommandCLN.java129
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/ParameterCreateCommand.java129
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/PortCreateCommand.java129
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/PrimitiveTypeCreateCommand.java134
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/PrimitiveTypeCreateCommandCLN.java129
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/PrimitiveTypeCreateCommandCN.java129
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/PropertyCreateCommandCLN.java129
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/PropertyPartCreateCommandCN.java129
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/ProtocolStateMachineCompositeCreateCommand.java134
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/ProtocolStateMachineCompositeCreateCommandCN.java129
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/ProtocolStateMachineCreateCommandCLN.java129
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/RealizationCreateCommand.java168
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/RealizationReorientCommand.java178
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/ReceptionCreateCommandCLN.java129
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/RepresentationCreateCommand.java106
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/RepresentationReorientCommand.java161
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/RoleBindingCreateCommand.java166
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/RoleBindingReorientCommand.java178
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/SendOperationEventCreateCommand.java134
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/SendSignalEventCreateCommand.java134
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/SignalCreateCommand.java134
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/SignalCreateCommandCN.java129
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/SignalEventCreateCommand.java134
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/StateMachineCompositeCreateCommand.java134
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/StateMachineCompositeCreateCommandCN.java129
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/StateMachineCreateCommandCLN.java129
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/StringExpressionCreateCommand.java134
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/SubstitutionCreateCommand.java168
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/SubstitutionReorientCommand.java178
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/TimeConstraintCreateCommand.java135
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/TimeConstraintCreateCommandCN.java129
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/TimeEventCreateCommand.java134
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/TimeExpressionCreateCommand.java134
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/TimeIntervalCreateCommand.java134
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/TimeObservationCreateCommand.java134
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/TimeObservationEventCreateCommand.java106
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/TimeObservationEventReorientCommand.java160
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/UsageCreateCommand.java168
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/UsageReorientCommand.java178
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/UseCaseCreateCommand.java134
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/UseCaseCreateCommandCN.java129
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/AbstractionEditHelper.java22
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/ActivityEditHelper.java22
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/ActorEditHelper.java22
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/AnyReceiveEventEditHelper.java22
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/ArtifactEditHelper.java22
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/CallEventEditHelper.java22
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/ChangeEventEditHelper.java22
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/ClassEditHelper.java22
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/CollaborationEditHelper.java22
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/CollaborationRoleEditHelper.java22
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/CollaborationUseEditHelper.java22
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/CommentEditHelper.java22
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/ComponentEditHelper.java22
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/ComponentRealizationEditHelper.java22
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/ConnectorEditHelper.java22
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/ConstraintEditHelper.java22
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/CreationEventEditHelper.java22
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/DataTypeEditHelper.java22
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/DependencyEditHelper.java22
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/DeploymentEditHelper.java22
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/DeploymentSpecificationEditHelper.java22
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/DestructionEventEditHelper.java22
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/DeviceEditHelper.java22
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/DurationEditHelper.java22
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/DurationIntervalEditHelper.java22
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/DurationObservationEditHelper.java22
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/EnumerationEditHelper.java22
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/EnumerationLiteralEditHelper.java22
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/ExecutionEnvironmentEditHelper.java22
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/ExecutionEventEditHelper.java22
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/ExpressionEditHelper.java22
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/FunctionBehaviorEditHelper.java22
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/GeneralizationEditHelper.java22
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/InformationFlowEditHelper.java22
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/InformationItemEditHelper.java22
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/InstanceValueEditHelper.java22
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/InteractionConstraintEditHelper.java22
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/InteractionEditHelper.java22
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/InterfaceEditHelper.java22
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/InterfaceRealizationEditHelper.java22
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/IntervalConstraintEditHelper.java22
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/IntervalEditHelper.java22
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/LiteralBooleanEditHelper.java22
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/LiteralIntegerEditHelper.java22
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/LiteralNullEditHelper.java22
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/LiteralStringEditHelper.java22
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/LiteralUnlimitedNaturalEditHelper.java22
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/ManifestationEditHelper.java22
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/NodeEditHelper.java22
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/OpaqueBehaviorEditHelper.java22
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/OpaqueExpressionEditHelper.java22
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/PackageEditHelper.java22
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/ParameterEditHelper.java22
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/PortEditHelper.java22
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/PrimitiveTypeEditHelper.java22
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/PropertyEditHelper.java22
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/ProtocolStateMachineEditHelper.java22
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/RealizationEditHelper.java22
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/ReceptionEditHelper.java22
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/RoleBindingEditHelper.java22
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/SendOperationEventEditHelper.java22
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/SendSignalEventEditHelper.java22
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/SignalEditHelper.java22
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/SignalEventEditHelper.java22
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/StateMachineEditHelper.java22
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/StringExpressionEditHelper.java22
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/SubstitutionEditHelper.java22
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/TimeConstraintEditHelper.java22
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/TimeEventEditHelper.java22
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/TimeExpressionEditHelper.java22
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/TimeIntervalEditHelper.java22
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/TimeObservationEditHelper.java22
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/UMLBaseEditHelper.java99
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/UsageEditHelper.java22
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/UseCaseEditHelper.java22
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/AbstractionAppliedStereotypeEditPart.java742
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/AbstractionEditPart.java122
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/AbstractionNameEditPart.java750
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ActivityCompositeCompartmentEditPart.java123
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ActivityCompositeCompartmentEditPartCN.java123
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ActivityCompositeEditPart.java5406
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ActivityCompositeEditPartCN.java5408
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ActivityCompositeNameEditPart.java791
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ActivityCompositeNameEditPartCN.java791
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ActivityEditPartCLN.java781
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ActorEditPart.java5397
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ActorEditPartCN.java5411
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ActorNameEditPart.java791
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ActorNameEditPartCN.java791
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/AnyReceiveEventEditPart.java5167
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/AnyReceiveEventNameEditPart.java791
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ArtifactEditPart.java5397
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ArtifactEditPartCN.java5411
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ArtifactNameEditPart.java791
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ArtifactNameEditPartCN.java791
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/CallEventEditPart.java5167
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/CallEventNameEditPart.java791
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ChangeEventEditPart.java5167
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ChangeEventNameEditPart.java791
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ClassCompositeCompartmentEditPart.java123
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ClassCompositeCompartmentEditPartCN.java123
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ClassCompositeEditPart.java5396
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ClassCompositeEditPartCN.java5398
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ClassCompositeNameEditPart.java791
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ClassCompositeNameEditPartCN.java791
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ClassEditPartCLN.java781
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/CollaborationCompositeCompartmentEditPart.java122
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/CollaborationCompositeCompartmentEditPartCN.java123
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/CollaborationCompositeEditPart.java5356
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/CollaborationCompositeEditPartCN.java5359
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/CollaborationCompositeNameEditPart.java791
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/CollaborationCompositeNameEditPartCN.java791
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/CollaborationEditPartCLN.java781
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/CollaborationRoleEditPartCN.java5113
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/CollaborationRoleNameEditPartCN.java783
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/CollaborationUseEditPartCN.java5112
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/CollaborationUseNameEditPart.java793
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/CommentAnnotatedElementEditPart.java88
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/CommentBodyEditPart.java772
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/CommentBodyEditPartCN.java772
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/CommentEditPart.java727
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/CommentEditPartCN.java729
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ComponentCompositeCompartmentEditPart.java123
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ComponentCompositeCompartmentEditPartCN.java123
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ComponentCompositeEditPart.java5396
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ComponentCompositeEditPartCN.java5398
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ComponentCompositeNameEditPart.java791
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ComponentCompositeNameEditPartCN.java791
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ComponentRealizationAppliedStereotypeEditPart.java742
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ComponentRealizationEditPart.java121
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ComponentRealizationNameEditPart.java750
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/CompositeStructureDiagramEditPart.java146
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ConnectorAppliedStereotypeEditPart.java742
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ConnectorEditPart.java135
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ConnectorMultiplicitySourceEditPart.java742
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ConnectorMultiplicityTargetEditPart.java742
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ConnectorNameEditPart.java770
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ConstraintConstrainedElementEditPart.java88
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ConstraintEditPart.java5459
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ConstraintEditPartCN.java5461
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ConstraintNameEditPart.java791
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ConstraintNameEditPartCN.java791
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ConstraintSpecificationEditPart.java772
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ConstraintSpecificationEditPartCN.java772
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/CreationEventEditPart.java5167
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/CreationEventNameEditPart.java791
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/DataTypeAttributeCompartmentEditPart.java125
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/DataTypeAttributeCompartmentEditPartCN.java125
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/DataTypeEditPart.java5391
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/DataTypeEditPartCLN.java781
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/DataTypeEditPartCN.java5394
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/DataTypeNameEditPart.java791
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/DataTypeNameEditPartCN.java791
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/DataTypeOperationCompartmentEditPart.java125
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/DataTypeOperationCompartmentEditPartCN.java125
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/DependencyAppliedStereotypeEditPart.java742
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/DependencyEditPart.java121
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/DependencyNameEditPart.java750
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/DeploymentAppliedStereotypeEditPart.java742
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/DeploymentEditPart.java122
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/DeploymentNameEditPart.java750
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/DeploymentSpecificationEditPart.java5395
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/DeploymentSpecificationEditPartCN.java5409
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/DeploymentSpecificationNameEditPart.java791
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/DeploymentSpecificationNameEditPartCN.java791
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/DestructionEventEditPart.java5167
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/DestructionEventNameEditPart.java791
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/DeviceCompositeCompartmentEditPart.java123
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/DeviceCompositeCompartmentEditPartCN.java123
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/DeviceCompositeEditPart.java5394
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/DeviceCompositeEditPartCN.java5396
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/DeviceCompositeNameEditPart.java791
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/DeviceCompositeNameEditPartCN.java791
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/DurationConstraintEditPart.java5459
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/DurationConstraintEditPartCN.java5461
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/DurationConstraintNameEditPart.java791
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/DurationConstraintNameEditPartCN.java791
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/DurationConstraintSpecificationEditPart.java772
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/DurationConstraintSpecificationEditPartCN.java772
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/DurationEditPart.java5167
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/DurationIntervalEditPart.java5167
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/DurationIntervalNameEditPart.java791
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/DurationNameEditPart.java791
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/DurationObservationEditPart.java5448
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/DurationObservationEventEditPart.java88
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/DurationObservationNameEditPart.java778
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/DurationObservationStereotypeLabelEditPart.java782
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/EnumerationEditPart.java5374
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/EnumerationEditPartCLN.java781
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/EnumerationEditPartCN.java5377
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/EnumerationEnumerationLiteralCompartmentEditPart.java125
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/EnumerationEnumerationLiteralCompartmentEditPartCN.java125
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/EnumerationLiteralEditPartCLN.java805
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/EnumerationNameEditPart.java791
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/EnumerationNameEditPartCN.java791
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ExecutionEnvironmentCompositeCompartmentEditPart.java123
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ExecutionEnvironmentCompositeCompartmentEditPartCN.java123
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ExecutionEnvironmentCompositeEditPart.java5394
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ExecutionEnvironmentCompositeEditPartCN.java5396
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ExecutionEnvironmentCompositeNameEditPart.java791
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ExecutionEnvironmentCompositeNameEditPartCN.java791
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ExecutionEventEditPart.java5167
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ExecutionEventNameEditPart.java791
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ExpressionEditPart.java5167
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ExpressionNameEditPart.java791
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/FunctionBehaviorCompositeCompartmentEditPart.java123
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/FunctionBehaviorCompositeCompartmentEditPartCN.java123
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/FunctionBehaviorCompositeEditPart.java5406
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/FunctionBehaviorCompositeEditPartCN.java5408
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/FunctionBehaviorCompositeNameEditPart.java791
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/FunctionBehaviorCompositeNameEditPartCN.java791
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/FunctionBehaviorEditPartCLN.java781
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/GeneralizationAppliedStereotypeEditPart.java742
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/GeneralizationEditPart.java114
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/InformationFlowAppliedStereotypeEditPart.java742
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/InformationFlowConveyedLabelEditPart.java755
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/InformationFlowEditPart.java122
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/InformationItemEditPart.java5514
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/InformationItemEditPartCN.java5517
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/InformationItemNameEditPart.java791
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/InformationItemNameEditPartCN.java791
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/InstanceValueEditPart.java5167
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/InstanceValueNameEditPart.java791
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/InteractionCompositeCompartmentEditPart.java123
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/InteractionCompositeCompartmentEditPartCN.java123
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/InteractionCompositeEditPart.java5406
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/InteractionCompositeEditPartCN.java5408
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/InteractionCompositeNameEditPart.java791
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/InteractionCompositeNameEditPartCN.java791
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/InteractionConstraintEditPart.java5459
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/InteractionConstraintEditPartCN.java5461
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/InteractionConstraintNameEditPart.java791
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/InteractionConstraintNameEditPartCN.java791
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/InteractionConstraintSpecificationEditPart.java772
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/InteractionConstraintSpecificationEditPartCN.java772
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/InteractionEditPartCLN.java781
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/InterfaceEditPart.java5338
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/InterfaceEditPartCLN.java781
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/InterfaceEditPartCN.java5341
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/InterfaceNameEditPart.java791
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/InterfaceNameEditPartCN.java791
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/InterfaceRealizationAppliedStereotypeEditPart.java742
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/InterfaceRealizationEditPart.java121
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/InterfaceRealizationNameEditPart.java750
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/IntervalConstraintEditPart.java5459
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/IntervalConstraintEditPartCN.java5461
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/IntervalConstraintNameEditPart.java791
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/IntervalConstraintNameEditPartCN.java791
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/IntervalConstraintSpecificationEditPart.java772
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/IntervalConstraintSpecificationEditPartCN.java772
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/IntervalEditPart.java5167
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/IntervalNameEditPart.java791
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/LinkDescriptorEditPart.java90
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/LiteralBooleanEditPart.java5167
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/LiteralBooleanNameEditPart.java791
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/LiteralIntegerEditPart.java5167
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/LiteralIntegerNameEditPart.java791
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/LiteralNullEditPart.java5167
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/LiteralNullNameEditPart.java791
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/LiteralStringEditPart.java5167
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/LiteralStringNameEditPart.java791
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/LiteralUnlimitedNaturalEditPart.java5167
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/LiteralUnlimitedNaturalNameEditPart.java791
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ManifestationAppliedStereotypeEditPart.java742
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ManifestationEditPart.java122
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ManifestationNameEditPart.java750
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/NodeCompositeCompartmentEditPart.java123
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/NodeCompositeCompartmentEditPartCN.java123
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/NodeCompositeEditPart.java5396
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/NodeCompositeEditPartCN.java5398
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/NodeCompositeNameEditPart.java791
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/NodeCompositeNameEditPartCN.java791
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/OpaqueBehaviorCompositeCompartmentEditPart.java123
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/OpaqueBehaviorCompositeCompartmentEditPartCN.java123
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/OpaqueBehaviorCompositeEditPart.java5406
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/OpaqueBehaviorCompositeEditPartCN.java5408
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/OpaqueBehaviorCompositeNameEditPart.java791
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/OpaqueBehaviorCompositeNameEditPartCN.java791
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/OpaqueBehaviorEditPartCLN.java781
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/OpaqueExpressionEditPart.java5167
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/OpaqueExpressionNameEditPart.java791
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/OperationEditPartCLN.java805
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ParameterAppliedStereotypeEditPart.java774
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ParameterEditPart.java5110
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ParameterNameEditPart.java794
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/PortAppliedStereotypeEditPart.java774
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/PortEditPart.java5110
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/PortNameEditPart.java794
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/PrimitiveTypeEditPart.java5338
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/PrimitiveTypeEditPartCLN.java781
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/PrimitiveTypeEditPartCN.java5341
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/PrimitiveTypeNameEditPart.java791
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/PrimitiveTypeNameEditPartCN.java791
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/PropertyEditPartCLN.java805
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/PropertyPartCompartmentEditPartCN.java124
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/PropertyPartEditPartCN.java5170
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/PropertyPartNameEditPartCN.java793
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ProtocolStateMachineCompositeCompartmentEditPart.java123
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ProtocolStateMachineCompositeCompartmentEditPartCN.java123
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ProtocolStateMachineCompositeEditPart.java5406
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ProtocolStateMachineCompositeEditPartCN.java5408
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ProtocolStateMachineCompositeNameEditPart.java791
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ProtocolStateMachineCompositeNameEditPartCN.java791
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ProtocolStateMachineEditPartCLN.java781
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/RealizationAppliedStereotypeEditPart.java742
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/RealizationEditPart.java121
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/RealizationNameEditPart.java750
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ReceptionEditPartCLN.java795
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/RepresentationEditPart.java112
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/RepresentationTagLabelEditPart.java752
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/RoleBindingAppliedStereotypeEditPart.java742
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/RoleBindingEditPart.java121
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/RoleBindingRoleNameEditPart.java742
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/SendOperationEventEditPart.java5167
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/SendOperationEventNameEditPart.java791
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/SendSignalEventEditPart.java5167
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/SendSignalEventNameEditPart.java791
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/SignalEditPart.java5334
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/SignalEditPartCN.java5337
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/SignalEventEditPart.java5167
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/SignalEventNameEditPart.java791
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/SignalNameEditPart.java791
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/SignalNameEditPartCN.java791
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/StateMachineCompositeCompartmentEditPart.java123
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/StateMachineCompositeCompartmentEditPartCN.java123
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/StateMachineCompositeEditPart.java5406
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/StateMachineCompositeEditPartCN.java5408
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/StateMachineCompositeNameEditPart.java791
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/StateMachineCompositeNameEditPartCN.java791
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/StateMachineEditPartCLN.java781
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/StringExpressionEditPart.java5167
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/StringExpressionNameEditPart.java791
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/SubstitutionAppliedStereotypeEditPart.java742
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/SubstitutionEditPart.java122
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/SubstitutionNameEditPart.java750
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/TimeConstraintEditPart.java5459
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/TimeConstraintEditPartCN.java5461
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/TimeConstraintNameEditPart.java791
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/TimeConstraintNameEditPartCN.java791
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/TimeConstraintSpecificationEditPart.java772
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/TimeConstraintSpecificationEditPartCN.java772
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/TimeEventEditPart.java5167
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/TimeEventNameEditPart.java791
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/TimeExpressionEditPart.java5167
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/TimeExpressionNameEditPart.java791
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/TimeIntervalEditPart.java5167
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/TimeIntervalNameEditPart.java791
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/TimeObservationEditPart.java5448
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/TimeObservationEventEditPart.java88
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/TimeObservationNameEditPart.java778
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/TimeObservationStereotypeLabelEditPart.java782
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/UMLEditPartFactory.java1047
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/UsageAppliedStereotypeEditPart.java742
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/UsageEditPart.java122
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/UsageNameEditPart.java750
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/UseCaseEditPart.java5397
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/UseCaseEditPartCN.java5411
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/UseCaseNameEditPart.java791
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/UseCaseNameEditPartCN.java791
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/AbstractionItemSemanticEditPolicy.java259
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/ActivityCompositeCompartmentItemSemanticEditPolicy.java167
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/ActivityCompositeCompartmentItemSemanticEditPolicyCN.java167
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/ActivityCompositeItemSemanticEditPolicy.java295
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/ActivityCompositeItemSemanticEditPolicyCN.java295
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/ActivityItemSemanticEditPolicyCLN.java64
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/ActorItemSemanticEditPolicy.java279
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/ActorItemSemanticEditPolicyCN.java279
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/AnyReceiveEventItemSemanticEditPolicy.java259
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/ArtifactItemSemanticEditPolicy.java279
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/ArtifactItemSemanticEditPolicyCN.java279
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/CallEventItemSemanticEditPolicy.java259
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/ChangeEventItemSemanticEditPolicy.java259
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/ClassCompositeCompartmentItemSemanticEditPolicy.java163
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/ClassCompositeCompartmentItemSemanticEditPolicyCN.java163
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/ClassCompositeItemSemanticEditPolicy.java291
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/ClassCompositeItemSemanticEditPolicyCN.java291
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/ClassItemSemanticEditPolicyCLN.java64
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/CollaborationCompositeCompartmentItemSemanticEditPolicy.java75
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/CollaborationCompositeCompartmentItemSemanticEditPolicyCN.java75
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/CollaborationCompositeItemSemanticEditPolicy.java279
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/CollaborationCompositeItemSemanticEditPolicyCN.java279
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/CollaborationItemSemanticEditPolicyCLN.java64
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/CollaborationRoleItemSemanticEditPolicyCN.java259
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/CollaborationUseItemSemanticEditPolicyCN.java259
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/CommentAnnotatedElementItemSemanticEditPolicy.java40
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/CommentItemSemanticEditPolicy.java113
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/CommentItemSemanticEditPolicyCN.java113
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/ComponentCompositeCompartmentItemSemanticEditPolicy.java163
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/ComponentCompositeCompartmentItemSemanticEditPolicyCN.java163
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/ComponentCompositeItemSemanticEditPolicy.java291
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/ComponentCompositeItemSemanticEditPolicyCN.java291
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/ComponentRealizationItemSemanticEditPolicy.java259
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/CompositeStructureDiagramItemSemanticEditPolicy.java291
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/ConnectorItemSemanticEditPolicy.java259
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/ConstraintConstrainedElementItemSemanticEditPolicy.java40
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/ConstraintItemSemanticEditPolicy.java259
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/ConstraintItemSemanticEditPolicyCN.java259
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/CreationEventItemSemanticEditPolicy.java259
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/DataTypeAttributeCompartmentItemSemanticEditPolicy.java43
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/DataTypeAttributeCompartmentItemSemanticEditPolicyCN.java43
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/DataTypeItemSemanticEditPolicy.java279
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/DataTypeItemSemanticEditPolicyCLN.java64
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/DataTypeItemSemanticEditPolicyCN.java279
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/DataTypeOperationCompartmentItemSemanticEditPolicy.java43
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/DataTypeOperationCompartmentItemSemanticEditPolicyCN.java43
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/DependencyItemSemanticEditPolicy.java259
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/DeploymentItemSemanticEditPolicy.java259
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/DeploymentSpecificationItemSemanticEditPolicy.java279
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/DeploymentSpecificationItemSemanticEditPolicyCN.java279
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/DestructionEventItemSemanticEditPolicy.java259
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/DeviceCompositeCompartmentItemSemanticEditPolicy.java163
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/DeviceCompositeCompartmentItemSemanticEditPolicyCN.java163
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/DeviceCompositeItemSemanticEditPolicy.java291
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/DeviceCompositeItemSemanticEditPolicyCN.java291
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/DurationConstraintItemSemanticEditPolicy.java259
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/DurationConstraintItemSemanticEditPolicyCN.java259
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/DurationIntervalItemSemanticEditPolicy.java259
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/DurationItemSemanticEditPolicy.java259
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/DurationObservationEventItemSemanticEditPolicy.java40
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/DurationObservationItemSemanticEditPolicy.java259
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/EnumerationEnumerationLiteralCompartmentItemSemanticEditPolicy.java43
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/EnumerationEnumerationLiteralCompartmentItemSemanticEditPolicyCN.java43
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/EnumerationItemSemanticEditPolicy.java291
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/EnumerationItemSemanticEditPolicyCLN.java64
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/EnumerationItemSemanticEditPolicyCN.java291
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/EnumerationLiteralItemSemanticEditPolicyCLN.java64
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/ExecutionEnvironmentCompositeCompartmentItemSemanticEditPolicy.java163
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/ExecutionEnvironmentCompositeCompartmentItemSemanticEditPolicyCN.java163
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/ExecutionEnvironmentCompositeItemSemanticEditPolicy.java291
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/ExecutionEnvironmentCompositeItemSemanticEditPolicyCN.java291
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/ExecutionEventItemSemanticEditPolicy.java259
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/ExpressionItemSemanticEditPolicy.java259
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/FunctionBehaviorCompositeCompartmentItemSemanticEditPolicy.java167
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/FunctionBehaviorCompositeCompartmentItemSemanticEditPolicyCN.java167
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/FunctionBehaviorCompositeItemSemanticEditPolicy.java295
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/FunctionBehaviorCompositeItemSemanticEditPolicyCN.java295
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/FunctionBehaviorItemSemanticEditPolicyCLN.java64
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/GeneralizationItemSemanticEditPolicy.java113
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/InformationFlowItemSemanticEditPolicy.java259
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/InformationItemItemSemanticEditPolicy.java279
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/InformationItemItemSemanticEditPolicyCN.java279
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/InstanceValueItemSemanticEditPolicy.java259
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/InteractionCompositeCompartmentItemSemanticEditPolicy.java167
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/InteractionCompositeCompartmentItemSemanticEditPolicyCN.java167
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/InteractionCompositeItemSemanticEditPolicy.java295
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/InteractionCompositeItemSemanticEditPolicyCN.java295
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/InteractionConstraintItemSemanticEditPolicy.java259
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/InteractionConstraintItemSemanticEditPolicyCN.java259
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/InteractionItemSemanticEditPolicyCLN.java64
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/InterfaceItemSemanticEditPolicy.java279
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/InterfaceItemSemanticEditPolicyCLN.java64
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/InterfaceItemSemanticEditPolicyCN.java279
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/InterfaceRealizationItemSemanticEditPolicy.java259
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/IntervalConstraintItemSemanticEditPolicy.java259
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/IntervalConstraintItemSemanticEditPolicyCN.java259
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/IntervalItemSemanticEditPolicy.java259
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/LiteralBooleanItemSemanticEditPolicy.java259
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/LiteralIntegerItemSemanticEditPolicy.java259
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/LiteralNullItemSemanticEditPolicy.java259
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/LiteralStringItemSemanticEditPolicy.java259
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/LiteralUnlimitedNaturalItemSemanticEditPolicy.java259
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/ManifestationItemSemanticEditPolicy.java259
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/NodeCompositeCompartmentItemSemanticEditPolicy.java163
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/NodeCompositeCompartmentItemSemanticEditPolicyCN.java163
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/NodeCompositeItemSemanticEditPolicy.java291
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/NodeCompositeItemSemanticEditPolicycN.java291
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/OpaqueBehaviorCompositeCompartmentItemSemanticEditPolicy.java167
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/OpaqueBehaviorCompositeCompartmentItemSemanticEditPolicyCN.java167
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/OpaqueBehaviorCompositeItemSemanticEditPolicy.java295
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/OpaqueBehaviorCompositeItemSemanticEditPolicyCN.java295
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/OpaqueBehaviorItemSemanticEditPolicyCLN.java64
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/OpaqueExpressionItemSemanticEditPolicy.java259
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/OperationItemSemanticEditPolicyCLN.java64
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/ParameterItemSemanticEditPolicy.java259
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/PortItemSemanticEditPolicy.java259
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/PrimitiveTypeItemSemanticEditPolicy.java279
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/PrimitiveTypeItemSemanticEditPolicyCLN.java64
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/PrimitiveTypeItemSemanticEditPolicyCN.java279
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/PropertyItemSemanticEditPolicyCLN.java64
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/PropertyPartCompartmentItemSemanticEditPolicyCN.java51
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/PropertyPartItemSemanticEditPolicyCN.java271
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/ProtocolStateMachineCompositeCompartmentItemSemanticEditPolicy.java167
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/ProtocolStateMachineCompositeCompartmentItemSemanticEditPolicyCN.java167
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/ProtocolStateMachineCompositeItemSemanticEditPolicy.java295
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/ProtocolStateMachineCompositeItemSemanticEditPolicyCN.java295
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/ProtocolStateMachineItemSemanticEditPolicyCLN.java64
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/RealizationItemSemanticEditPolicy.java259
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/ReceptionItemSemanticEditPolicyCLN.java64
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/RepresentationItemSemanticEditPolicy.java40
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/RoleBindingItemSemanticEditPolicy.java259
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/SendOperationEventItemSemanticEditPolicy.java259
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/SendSignalEventItemSemanticEditPolicy.java259
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/SignalEventItemSemanticEditPolicy.java259
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/SignalItemSemanticEditPolicy.java279
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/SignalItemSemanticEditPolicyCN.java279
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/StateMachineCompositeCompartmentItemSemanticEditPolicy.java167
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/StateMachineCompositeCompartmentItemSemanticEditPolicyCN.java167
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/StateMachineCompositeItemSemanticEditPolicy.java295
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/StateMachineCompositeItemSemanticEditPolicyCN.java295
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/StateMachineItemSemanticEditPolicyCLN.java64
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/StringExpressionItemSemanticEditPolicy.java259
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/SubstitutionItemSemanticEditPolicy.java259
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/TimeConstraintItemSemanticEditPolicy.java259
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/TimeConstraintItemSemanticEditPolicyCN.java259
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/TimeEventItemSemanticEditPolicy.java259
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/TimeExpressionItemSemanticEditPolicy.java259
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/TimeIntervalItemSemanticEditPolicy.java259
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/TimeObservationEventSemanticEditPolicy.java40
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/TimeObservationItemSemanticEditPolicy.java259
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/UMLBaseItemSemanticEditPolicy.java767
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/UMLTextNonResizableEditPolicy.java236
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/UMLTextSelectionEditPolicy.java220
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/UsageItemSemanticEditPolicy.java259
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/UseCaseItemSemanticEditPolicy.java279
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/UseCaseItemSemanticEditPolicyCN.java279
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/parsers/AbstractParser.java431
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/parsers/MessageFormatParser.java202
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/part/DeleteElementAction.java2
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/part/DiagramEditorContextMenuProvider.java62
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/part/LoadResourceAction.java43
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/part/Messages.java757
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/part/ModelElementSelectionPage.java156
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/part/UMLCreationWizard.java167
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/part/UMLCreationWizardPage.java96
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/part/UMLDiagramActionBarContributor.java60
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/part/UMLDiagramContentInitializer.java1842
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/part/UMLDiagramEditor.java492
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/part/UMLDiagramEditorPlugin.java312
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/part/UMLDiagramEditorUtil.java381
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/part/UMLDiagramUpdateCommand.java91
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/part/UMLDiagramUpdater.java13050
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/part/UMLDocumentProvider.java989
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/part/UMLInitDiagramFileAction.java99
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/part/UMLLinkDescriptor.java105
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/part/UMLMatchingStrategy.java47
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/part/UMLNewDiagramFileWizard.java175
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/part/UMLNodeDescriptor.java55
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/part/UMLPaletteFactory.java621
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/part/UMLVisualIDRegistry.java9550
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/part/ValidateAction.java264
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/AbstractionPreferencePage.java90
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/ActivityPreferencePage.java120
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/ActorPreferencePage.java64
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/AnyReceiveEventPreferencePage.java64
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/ArtifactPreferencePage.java64
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/CallEventPreferencePage.java64
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/ChangeEventPreferencePage.java64
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/ClassPreferencePage.java120
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/CollaborationPreferencePage.java120
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/CollaborationRolePreferencePage.java64
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/CollaborationUsePreferencePage.java64
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/CommentAnnotatedElementPreferencePage.java49
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/CommentPreferencePage.java64
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/ComponentPreferencePage.java120
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/ComponentRealizationPreferencePage.java90
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/ConnectorPreferencePage.java96
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/ConstraintConstrainedElementPreferencePage.java49
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/ConstraintPreferencePage.java64
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/CreationEventPreferencePage.java64
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/DataTypePreferencePage.java123
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/DependencyPreferencePage.java90
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/DeploymentPreferencePage.java90
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/DeploymentSpecificationPreferencePage.java64
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/DestructionEventPreferencePage.java64
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/DevicePreferencePage.java120
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/DiagramAppearancePreferencePage.java31
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/DiagramConnectionsPreferencePage.java31
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/DiagramGeneralPreferencePage.java33
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/DiagramPreferenceInitializer.java197
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/DiagramPrintingPreferencePage.java31
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/DiagramRulersAndGridPreferencePage.java31
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/DurationConstraintPreferencePage.java64
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/DurationIntervalPreferencePage.java64
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/DurationObservationEventPreferencePage.java49
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/DurationObservationPreferencePage.java102
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/DurationPreferencePage.java64
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/EnumerationLiteralPreferencePage.java64
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/EnumerationPreferencePage.java120
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/ExecutionEnvironmentPreferencePage.java120
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/ExecutionEventPreferencePage.java64
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/ExpressionPreferencePage.java64
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/FunctionBehaviorPreferencePage.java120
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/GeneralizationPreferencePage.java87
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/InformationFlowPreferencePage.java90
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/InformationItemPreferencePage.java64
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/InstanceValuePreferencePage.java64
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/InteractionConstraintPreferencePage.java64
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/InteractionPreferencePage.java120
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/InterfacePreferencePage.java64
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/InterfaceRealizationPreferencePage.java90
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/IntervalConstraintPreferencePage.java64
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/IntervalPreferencePage.java64
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/LiteralBooleanPreferencePage.java64
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/LiteralIntegerPreferencePage.java64
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/LiteralNullPreferencePage.java64
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/LiteralStringPreferencePage.java64
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/LiteralUnlimitedNaturalPreferencePage.java64
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/ManifestationPreferencePage.java90
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/NodePreferencePage.java120
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/OpaqueBehaviorPreferencePage.java120
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/OpaqueExpressionPreferencePage.java64
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/OperationPreferencePage.java64
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/ParameterPreferencePage.java102
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/PortPreferencePage.java102
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/PrimitiveTypePreferencePage.java64
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/PropertyPreferencePage.java120
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/ProtocolStateMachinePreferencePage.java120
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/RealizationPreferencePage.java90
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/ReceptionPreferencePage.java64
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/RoleBindingPreferencePage.java90
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/SendOperationEventPreferencePage.java64
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/SendSignalEventPreferencePage.java64
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/SignalEventPreferencePage.java64
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/SignalPreferencePage.java64
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/StateMachinePreferencePage.java120
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/StringExpressionPreferencePage.java64
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/SubstitutionPreferencePage.java90
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/TimeConstraintPreferencePage.java64
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/TimeEventPreferencePage.java64
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/TimeExpressionPreferencePage.java64
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/TimeIntervalPreferencePage.java64
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/TimeObservationEventPreferencePage.java49
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/TimeObservationPreferencePage.java102
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/UsagePreferencePage.java90
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/UseCasePreferencePage.java64
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/providers/ElementInitializers.java2423
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/providers/UMLEditPartProvider.java154
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/providers/UMLElementTypes.java1424
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/providers/UMLIconProvider.java44
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/providers/UMLMarkerNavigationProvider.java94
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/providers/UMLModelingAssistantProvider.java2485
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/providers/UMLParserProvider.java3037
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/providers/UMLValidationDecoratorProvider.java72
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/providers/UMLValidationProvider.java79
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/providers/UMLViewProvider.java4039
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/sheet/UMLPropertySection.java123
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/sheet/UMLSheetLabelProvider.java87
776 files changed, 679596 insertions, 0 deletions
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/AbstractionCreateCommand.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/AbstractionCreateCommand.java
new file mode 100644
index 00000000000..3a72ba47b59
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/AbstractionCreateCommand.java
@@ -0,0 +1,168 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.commands;
+
+import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gmf.runtime.common.core.command.CommandResult;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ConfigureRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLBaseItemSemanticEditPolicy;
+import org.eclipse.papyrus.diagram.composite.providers.ElementInitializers;
+import org.eclipse.uml2.uml.Abstraction;
+import org.eclipse.uml2.uml.NamedElement;
+import org.eclipse.uml2.uml.Package;
+import org.eclipse.uml2.uml.UMLFactory;
+
+/**
+ * @generated
+ */
+public class AbstractionCreateCommand extends EditElementCommand {
+
+ /**
+ * @generated
+ */
+ protected final EObject source;
+
+ /**
+ * @generated
+ */
+ protected final EObject target;
+
+ /**
+ * @generated
+ */
+ protected Package container;
+
+ /**
+ * @generated
+ */
+ public AbstractionCreateCommand(CreateRelationshipRequest request, EObject source, EObject target) {
+ super(request.getLabel(), null, request);
+ this.source = source;
+ this.target = target;
+ container = deduceContainer(source, target);
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canExecute() {
+ if(source == null && target == null) {
+ return false;
+ }
+ if(source != null && false == source instanceof NamedElement) {
+ return false;
+ }
+ if(target != null && false == target instanceof NamedElement) {
+ return false;
+ }
+ if(getSource() == null) {
+ return true; // link creation is in progress; source is not defined yet
+ }
+ // target may be null here but it's possible to check constraint
+ if(getContainer() == null) {
+ return false;
+ }
+ return UMLBaseItemSemanticEditPolicy.getLinkConstraints().canCreateAbstraction_4007(getContainer(), getSource(), getTarget());
+ }
+
+ /**
+ * @generated
+ */
+ protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+ if(!canExecute()) {
+ throw new ExecutionException("Invalid arguments in create link command"); //$NON-NLS-1$
+ }
+
+ Abstraction newElement = UMLFactory.eINSTANCE.createAbstraction();
+ getContainer().getPackagedElements().add(newElement);
+ newElement.getClients().add(getSource());
+ newElement.getSuppliers().add(getTarget());
+ ElementInitializers.getInstance().init_Abstraction_4007(newElement);
+ doConfigure(newElement, monitor, info);
+ ((CreateElementRequest)getRequest()).setNewElement(newElement);
+ return CommandResult.newOKCommandResult(newElement);
+
+ }
+
+ /**
+ * @generated
+ */
+ protected void doConfigure(Abstraction newElement, IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+ IElementType elementType = ((CreateElementRequest)getRequest()).getElementType();
+ ConfigureRequest configureRequest = new ConfigureRequest(getEditingDomain(), newElement, elementType);
+ configureRequest.setClientContext(((CreateElementRequest)getRequest()).getClientContext());
+ configureRequest.addParameters(getRequest().getParameters());
+ configureRequest.setParameter(CreateRelationshipRequest.SOURCE, getSource());
+ configureRequest.setParameter(CreateRelationshipRequest.TARGET, getTarget());
+ ICommand configureCommand = elementType.getEditCommand(configureRequest);
+ if(configureCommand != null && configureCommand.canExecute()) {
+ configureCommand.execute(monitor, info);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setElementToEdit(EObject element) {
+ throw new UnsupportedOperationException();
+ }
+
+ /**
+ * @generated
+ */
+ protected NamedElement getSource() {
+ return (NamedElement)source;
+ }
+
+ /**
+ * @generated
+ */
+ protected NamedElement getTarget() {
+ return (NamedElement)target;
+ }
+
+ /**
+ * @generated
+ */
+ public Package getContainer() {
+ return container;
+ }
+
+ /**
+ * Default approach is to traverse ancestors of the source to find instance of container.
+ * Modify with appropriate logic.
+ *
+ * @generated
+ */
+ protected Package deduceContainer(EObject source, EObject target) {
+ // Find container element for the new link.
+ // Climb up by containment hierarchy starting from the source
+ // and return the first element that is instance of the container class.
+ for(EObject element = source; element != null; element = element.eContainer()) {
+ if(element instanceof Package) {
+ return (Package)element;
+ }
+ }
+ return null;
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/AbstractionReorientCommand.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/AbstractionReorientCommand.java
new file mode 100644
index 00000000000..c50047c8d7b
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/AbstractionReorientCommand.java
@@ -0,0 +1,178 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.commands;
+
+import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gmf.runtime.common.core.command.CommandResult;
+import org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientRelationshipRequest;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLBaseItemSemanticEditPolicy;
+import org.eclipse.uml2.uml.Abstraction;
+import org.eclipse.uml2.uml.NamedElement;
+import org.eclipse.uml2.uml.Package;
+
+/**
+ * @generated
+ */
+public class AbstractionReorientCommand extends EditElementCommand {
+
+ /**
+ * @generated
+ */
+ private final int reorientDirection;
+
+ /**
+ * @generated
+ */
+ private final EObject oldEnd;
+
+ /**
+ * @generated
+ */
+ private final EObject newEnd;
+
+ /**
+ * @generated
+ */
+ public AbstractionReorientCommand(ReorientRelationshipRequest request) {
+ super(request.getLabel(), request.getRelationship(), request);
+ reorientDirection = request.getDirection();
+ oldEnd = request.getOldRelationshipEnd();
+ newEnd = request.getNewRelationshipEnd();
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canExecute() {
+ if(false == getElementToEdit() instanceof Abstraction) {
+ return false;
+ }
+ if(reorientDirection == ReorientRelationshipRequest.REORIENT_SOURCE) {
+ return canReorientSource();
+ }
+ if(reorientDirection == ReorientRelationshipRequest.REORIENT_TARGET) {
+ return canReorientTarget();
+ }
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean canReorientSource() {
+ if(!(oldEnd instanceof NamedElement && newEnd instanceof NamedElement)) {
+ return false;
+ }
+ if(getLink().getSuppliers().size() != 1) {
+ return false;
+ }
+ NamedElement target = (NamedElement)getLink().getSuppliers().get(0);
+ if(!(getLink().eContainer() instanceof Package)) {
+ return false;
+ }
+ Package container = (Package)getLink().eContainer();
+ return UMLBaseItemSemanticEditPolicy.getLinkConstraints().canExistAbstraction_4007(container, getLink(), getNewSource(), target);
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean canReorientTarget() {
+ if(!(oldEnd instanceof NamedElement && newEnd instanceof NamedElement)) {
+ return false;
+ }
+ if(getLink().getClients().size() != 1) {
+ return false;
+ }
+ NamedElement source = (NamedElement)getLink().getClients().get(0);
+ if(!(getLink().eContainer() instanceof Package)) {
+ return false;
+ }
+ Package container = (Package)getLink().eContainer();
+ return UMLBaseItemSemanticEditPolicy.getLinkConstraints().canExistAbstraction_4007(container, getLink(), source, getNewTarget());
+ }
+
+ /**
+ * @generated
+ */
+ protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+ if(!canExecute()) {
+ throw new ExecutionException("Invalid arguments in reorient link command"); //$NON-NLS-1$
+ }
+ if(reorientDirection == ReorientRelationshipRequest.REORIENT_SOURCE) {
+ return reorientSource();
+ }
+ if(reorientDirection == ReorientRelationshipRequest.REORIENT_TARGET) {
+ return reorientTarget();
+ }
+ throw new IllegalStateException();
+ }
+
+ /**
+ * @generated
+ */
+ protected CommandResult reorientSource() throws ExecutionException {
+ getLink().getClients().remove(getOldSource());
+ getLink().getClients().add(getNewSource());
+ return CommandResult.newOKCommandResult(getLink());
+ }
+
+ /**
+ * @generated
+ */
+ protected CommandResult reorientTarget() throws ExecutionException {
+ getLink().getSuppliers().remove(getOldTarget());
+ getLink().getSuppliers().add(getNewTarget());
+ return CommandResult.newOKCommandResult(getLink());
+ }
+
+ /**
+ * @generated
+ */
+ protected Abstraction getLink() {
+ return (Abstraction)getElementToEdit();
+ }
+
+ /**
+ * @generated
+ */
+ protected NamedElement getOldSource() {
+ return (NamedElement)oldEnd;
+ }
+
+ /**
+ * @generated
+ */
+ protected NamedElement getNewSource() {
+ return (NamedElement)newEnd;
+ }
+
+ /**
+ * @generated
+ */
+ protected NamedElement getOldTarget() {
+ return (NamedElement)oldEnd;
+ }
+
+ /**
+ * @generated
+ */
+ protected NamedElement getNewTarget() {
+ return (NamedElement)newEnd;
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/ActivityCompositeCreateCommand.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/ActivityCompositeCreateCommand.java
new file mode 100644
index 00000000000..11ec331bacf
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/ActivityCompositeCreateCommand.java
@@ -0,0 +1,134 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.commands;
+
+import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gmf.runtime.common.core.command.CommandResult;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ConfigureRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.diagram.composite.providers.ElementInitializers;
+import org.eclipse.uml2.uml.Activity;
+import org.eclipse.uml2.uml.Package;
+import org.eclipse.uml2.uml.UMLFactory;
+
+/**
+ * @generated
+ */
+public class ActivityCompositeCreateCommand extends EditElementCommand {
+
+ /**
+ * @generated
+ */
+ private EClass eClass = null;
+
+ /**
+ * @generated
+ */
+ private EObject eObject = null;
+
+ /**
+ * @generated
+ */
+ public ActivityCompositeCreateCommand(CreateElementRequest req, EObject eObject) {
+ super(req.getLabel(), null, req);
+ this.eObject = eObject;
+ this.eClass = eObject != null ? eObject.eClass() : null;
+ }
+
+ /**
+ * @generated
+ */
+ public static ActivityCompositeCreateCommand create(CreateElementRequest req, EObject eObject) {
+ return new ActivityCompositeCreateCommand(req, eObject);
+ }
+
+ /**
+ * @generated
+ */
+ public ActivityCompositeCreateCommand(CreateElementRequest req) {
+ super(req.getLabel(), null, req);
+ }
+
+ /**
+ * FIXME: replace with setElementToEdit()
+ *
+ * @generated
+ */
+ protected EObject getElementToEdit() {
+
+ EObject container = ((CreateElementRequest)getRequest()).getContainer();
+ if(container instanceof View) {
+ container = ((View)container).getElement();
+ }
+ if(container != null) {
+ return container;
+ }
+ return eObject;
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canExecute() {
+
+ // Creation constraint for TopLevelNodes
+ if(!(getElementToEdit() instanceof Package)) {
+ return false;
+ }
+
+ return true;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+
+ Activity newElement = UMLFactory.eINSTANCE.createActivity();
+
+ Package owner = (Package)getElementToEdit();
+ owner.getPackagedElements().add(newElement);
+
+ ElementInitializers.getInstance().init_Activity_2060(newElement);
+
+ doConfigure(newElement, monitor, info);
+
+ ((CreateElementRequest)getRequest()).setNewElement(newElement);
+ return CommandResult.newOKCommandResult(newElement);
+ }
+
+ /**
+ * @generated
+ */
+ protected void doConfigure(Activity newElement, IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+ IElementType elementType = ((CreateElementRequest)getRequest()).getElementType();
+ ConfigureRequest configureRequest = new ConfigureRequest(getEditingDomain(), newElement, elementType);
+ configureRequest.setClientContext(((CreateElementRequest)getRequest()).getClientContext());
+ configureRequest.addParameters(getRequest().getParameters());
+ ICommand configureCommand = elementType.getEditCommand(configureRequest);
+ if(configureCommand != null && configureCommand.canExecute()) {
+ configureCommand.execute(monitor, info);
+ }
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/ActivityCompositeCreateCommandCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/ActivityCompositeCreateCommandCN.java
new file mode 100644
index 00000000000..5d3421d7040
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/ActivityCompositeCreateCommandCN.java
@@ -0,0 +1,129 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.commands;
+
+import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gmf.runtime.common.core.command.CommandResult;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ConfigureRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.diagram.composite.providers.ElementInitializers;
+import org.eclipse.uml2.uml.Activity;
+import org.eclipse.uml2.uml.Class;
+import org.eclipse.uml2.uml.UMLFactory;
+
+/**
+ * @generated
+ */
+public class ActivityCompositeCreateCommandCN extends EditElementCommand {
+
+ /**
+ * @generated
+ */
+ private EClass eClass = null;
+
+ /**
+ * @generated
+ */
+ private EObject eObject = null;
+
+ /**
+ * @generated
+ */
+ public ActivityCompositeCreateCommandCN(CreateElementRequest req, EObject eObject) {
+ super(req.getLabel(), null, req);
+ this.eObject = eObject;
+ this.eClass = eObject != null ? eObject.eClass() : null;
+ }
+
+ /**
+ * @generated
+ */
+ public static ActivityCompositeCreateCommandCN create(CreateElementRequest req, EObject eObject) {
+ return new ActivityCompositeCreateCommandCN(req, eObject);
+ }
+
+ /**
+ * @generated
+ */
+ public ActivityCompositeCreateCommandCN(CreateElementRequest req) {
+ super(req.getLabel(), null, req);
+ }
+
+ /**
+ * FIXME: replace with setElementToEdit()
+ *
+ * @generated
+ */
+ protected EObject getElementToEdit() {
+
+ EObject container = ((CreateElementRequest)getRequest()).getContainer();
+ if(container instanceof View) {
+ container = ((View)container).getElement();
+ }
+ if(container != null) {
+ return container;
+ }
+ return eObject;
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canExecute() {
+
+ return true;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+
+ Activity newElement = UMLFactory.eINSTANCE.createActivity();
+
+ Class owner = (Class)getElementToEdit();
+ owner.getNestedClassifiers().add(newElement);
+
+ ElementInitializers.getInstance().init_Activity_3072(newElement);
+
+ doConfigure(newElement, monitor, info);
+
+ ((CreateElementRequest)getRequest()).setNewElement(newElement);
+ return CommandResult.newOKCommandResult(newElement);
+ }
+
+ /**
+ * @generated
+ */
+ protected void doConfigure(Activity newElement, IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+ IElementType elementType = ((CreateElementRequest)getRequest()).getElementType();
+ ConfigureRequest configureRequest = new ConfigureRequest(getEditingDomain(), newElement, elementType);
+ configureRequest.setClientContext(((CreateElementRequest)getRequest()).getClientContext());
+ configureRequest.addParameters(getRequest().getParameters());
+ ICommand configureCommand = elementType.getEditCommand(configureRequest);
+ if(configureCommand != null && configureCommand.canExecute()) {
+ configureCommand.execute(monitor, info);
+ }
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/ActivityCreateCommandCLN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/ActivityCreateCommandCLN.java
new file mode 100644
index 00000000000..761e6fae3f2
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/ActivityCreateCommandCLN.java
@@ -0,0 +1,129 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.commands;
+
+import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gmf.runtime.common.core.command.CommandResult;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ConfigureRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.diagram.composite.providers.ElementInitializers;
+import org.eclipse.uml2.uml.Activity;
+import org.eclipse.uml2.uml.Class;
+import org.eclipse.uml2.uml.UMLFactory;
+
+/**
+ * @generated
+ */
+public class ActivityCreateCommandCLN extends EditElementCommand {
+
+ /**
+ * @generated
+ */
+ private EClass eClass = null;
+
+ /**
+ * @generated
+ */
+ private EObject eObject = null;
+
+ /**
+ * @generated
+ */
+ public ActivityCreateCommandCLN(CreateElementRequest req, EObject eObject) {
+ super(req.getLabel(), null, req);
+ this.eObject = eObject;
+ this.eClass = eObject != null ? eObject.eClass() : null;
+ }
+
+ /**
+ * @generated
+ */
+ public static ActivityCreateCommandCLN create(CreateElementRequest req, EObject eObject) {
+ return new ActivityCreateCommandCLN(req, eObject);
+ }
+
+ /**
+ * @generated
+ */
+ public ActivityCreateCommandCLN(CreateElementRequest req) {
+ super(req.getLabel(), null, req);
+ }
+
+ /**
+ * FIXME: replace with setElementToEdit()
+ *
+ * @generated
+ */
+ protected EObject getElementToEdit() {
+
+ EObject container = ((CreateElementRequest)getRequest()).getContainer();
+ if(container instanceof View) {
+ container = ((View)container).getElement();
+ }
+ if(container != null) {
+ return container;
+ }
+ return eObject;
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canExecute() {
+
+ return true;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+
+ Activity newElement = UMLFactory.eINSTANCE.createActivity();
+
+ Class owner = (Class)getElementToEdit();
+ owner.getNestedClassifiers().add(newElement);
+
+ ElementInitializers.getInstance().init_Activity_3103(newElement);
+
+ doConfigure(newElement, monitor, info);
+
+ ((CreateElementRequest)getRequest()).setNewElement(newElement);
+ return CommandResult.newOKCommandResult(newElement);
+ }
+
+ /**
+ * @generated
+ */
+ protected void doConfigure(Activity newElement, IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+ IElementType elementType = ((CreateElementRequest)getRequest()).getElementType();
+ ConfigureRequest configureRequest = new ConfigureRequest(getEditingDomain(), newElement, elementType);
+ configureRequest.setClientContext(((CreateElementRequest)getRequest()).getClientContext());
+ configureRequest.addParameters(getRequest().getParameters());
+ ICommand configureCommand = elementType.getEditCommand(configureRequest);
+ if(configureCommand != null && configureCommand.canExecute()) {
+ configureCommand.execute(monitor, info);
+ }
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/ActorCreateCommand.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/ActorCreateCommand.java
new file mode 100644
index 00000000000..b9c85c3915f
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/ActorCreateCommand.java
@@ -0,0 +1,134 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.commands;
+
+import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gmf.runtime.common.core.command.CommandResult;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ConfigureRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.diagram.composite.providers.ElementInitializers;
+import org.eclipse.uml2.uml.Actor;
+import org.eclipse.uml2.uml.Package;
+import org.eclipse.uml2.uml.UMLFactory;
+
+/**
+ * @generated
+ */
+public class ActorCreateCommand extends EditElementCommand {
+
+ /**
+ * @generated
+ */
+ private EClass eClass = null;
+
+ /**
+ * @generated
+ */
+ private EObject eObject = null;
+
+ /**
+ * @generated
+ */
+ public ActorCreateCommand(CreateElementRequest req, EObject eObject) {
+ super(req.getLabel(), null, req);
+ this.eObject = eObject;
+ this.eClass = eObject != null ? eObject.eClass() : null;
+ }
+
+ /**
+ * @generated
+ */
+ public static ActorCreateCommand create(CreateElementRequest req, EObject eObject) {
+ return new ActorCreateCommand(req, eObject);
+ }
+
+ /**
+ * @generated
+ */
+ public ActorCreateCommand(CreateElementRequest req) {
+ super(req.getLabel(), null, req);
+ }
+
+ /**
+ * FIXME: replace with setElementToEdit()
+ *
+ * @generated
+ */
+ protected EObject getElementToEdit() {
+
+ EObject container = ((CreateElementRequest)getRequest()).getContainer();
+ if(container instanceof View) {
+ container = ((View)container).getElement();
+ }
+ if(container != null) {
+ return container;
+ }
+ return eObject;
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canExecute() {
+
+ // Creation constraint for TopLevelNodes
+ if(!(getElementToEdit() instanceof Package)) {
+ return false;
+ }
+
+ return true;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+
+ Actor newElement = UMLFactory.eINSTANCE.createActor();
+
+ Package owner = (Package)getElementToEdit();
+ owner.getPackagedElements().add(newElement);
+
+ ElementInitializers.getInstance().init_Actor_2077(newElement);
+
+ doConfigure(newElement, monitor, info);
+
+ ((CreateElementRequest)getRequest()).setNewElement(newElement);
+ return CommandResult.newOKCommandResult(newElement);
+ }
+
+ /**
+ * @generated
+ */
+ protected void doConfigure(Actor newElement, IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+ IElementType elementType = ((CreateElementRequest)getRequest()).getElementType();
+ ConfigureRequest configureRequest = new ConfigureRequest(getEditingDomain(), newElement, elementType);
+ configureRequest.setClientContext(((CreateElementRequest)getRequest()).getClientContext());
+ configureRequest.addParameters(getRequest().getParameters());
+ ICommand configureCommand = elementType.getEditCommand(configureRequest);
+ if(configureCommand != null && configureCommand.canExecute()) {
+ configureCommand.execute(monitor, info);
+ }
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/ActorCreateCommandCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/ActorCreateCommandCN.java
new file mode 100644
index 00000000000..86c936b8f4a
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/ActorCreateCommandCN.java
@@ -0,0 +1,129 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.commands;
+
+import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gmf.runtime.common.core.command.CommandResult;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ConfigureRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.diagram.composite.providers.ElementInitializers;
+import org.eclipse.uml2.uml.Actor;
+import org.eclipse.uml2.uml.Class;
+import org.eclipse.uml2.uml.UMLFactory;
+
+/**
+ * @generated
+ */
+public class ActorCreateCommandCN extends EditElementCommand {
+
+ /**
+ * @generated
+ */
+ private EClass eClass = null;
+
+ /**
+ * @generated
+ */
+ private EObject eObject = null;
+
+ /**
+ * @generated
+ */
+ public ActorCreateCommandCN(CreateElementRequest req, EObject eObject) {
+ super(req.getLabel(), null, req);
+ this.eObject = eObject;
+ this.eClass = eObject != null ? eObject.eClass() : null;
+ }
+
+ /**
+ * @generated
+ */
+ public static ActorCreateCommandCN create(CreateElementRequest req, EObject eObject) {
+ return new ActorCreateCommandCN(req, eObject);
+ }
+
+ /**
+ * @generated
+ */
+ public ActorCreateCommandCN(CreateElementRequest req) {
+ super(req.getLabel(), null, req);
+ }
+
+ /**
+ * FIXME: replace with setElementToEdit()
+ *
+ * @generated
+ */
+ protected EObject getElementToEdit() {
+
+ EObject container = ((CreateElementRequest)getRequest()).getContainer();
+ if(container instanceof View) {
+ container = ((View)container).getElement();
+ }
+ if(container != null) {
+ return container;
+ }
+ return eObject;
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canExecute() {
+
+ return true;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+
+ Actor newElement = UMLFactory.eINSTANCE.createActor();
+
+ Class owner = (Class)getElementToEdit();
+ owner.getNestedClassifiers().add(newElement);
+
+ ElementInitializers.getInstance().init_Actor_3091(newElement);
+
+ doConfigure(newElement, monitor, info);
+
+ ((CreateElementRequest)getRequest()).setNewElement(newElement);
+ return CommandResult.newOKCommandResult(newElement);
+ }
+
+ /**
+ * @generated
+ */
+ protected void doConfigure(Actor newElement, IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+ IElementType elementType = ((CreateElementRequest)getRequest()).getElementType();
+ ConfigureRequest configureRequest = new ConfigureRequest(getEditingDomain(), newElement, elementType);
+ configureRequest.setClientContext(((CreateElementRequest)getRequest()).getClientContext());
+ configureRequest.addParameters(getRequest().getParameters());
+ ICommand configureCommand = elementType.getEditCommand(configureRequest);
+ if(configureCommand != null && configureCommand.canExecute()) {
+ configureCommand.execute(monitor, info);
+ }
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/AnyReceiveEventCreateCommand.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/AnyReceiveEventCreateCommand.java
new file mode 100644
index 00000000000..e0f100165f5
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/AnyReceiveEventCreateCommand.java
@@ -0,0 +1,134 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.commands;
+
+import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gmf.runtime.common.core.command.CommandResult;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ConfigureRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.diagram.composite.providers.ElementInitializers;
+import org.eclipse.uml2.uml.AnyReceiveEvent;
+import org.eclipse.uml2.uml.Package;
+import org.eclipse.uml2.uml.UMLFactory;
+
+/**
+ * @generated
+ */
+public class AnyReceiveEventCreateCommand extends EditElementCommand {
+
+ /**
+ * @generated
+ */
+ private EClass eClass = null;
+
+ /**
+ * @generated
+ */
+ private EObject eObject = null;
+
+ /**
+ * @generated
+ */
+ public AnyReceiveEventCreateCommand(CreateElementRequest req, EObject eObject) {
+ super(req.getLabel(), null, req);
+ this.eObject = eObject;
+ this.eClass = eObject != null ? eObject.eClass() : null;
+ }
+
+ /**
+ * @generated
+ */
+ public static AnyReceiveEventCreateCommand create(CreateElementRequest req, EObject eObject) {
+ return new AnyReceiveEventCreateCommand(req, eObject);
+ }
+
+ /**
+ * @generated
+ */
+ public AnyReceiveEventCreateCommand(CreateElementRequest req) {
+ super(req.getLabel(), null, req);
+ }
+
+ /**
+ * FIXME: replace with setElementToEdit()
+ *
+ * @generated
+ */
+ protected EObject getElementToEdit() {
+
+ EObject container = ((CreateElementRequest)getRequest()).getContainer();
+ if(container instanceof View) {
+ container = ((View)container).getElement();
+ }
+ if(container != null) {
+ return container;
+ }
+ return eObject;
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canExecute() {
+
+ // Creation constraint for TopLevelNodes
+ if(!(getElementToEdit() instanceof Package)) {
+ return false;
+ }
+
+ return true;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+
+ AnyReceiveEvent newElement = UMLFactory.eINSTANCE.createAnyReceiveEvent();
+
+ Package owner = (Package)getElementToEdit();
+ owner.getPackagedElements().add(newElement);
+
+ ElementInitializers.getInstance().init_AnyReceiveEvent_2085(newElement);
+
+ doConfigure(newElement, monitor, info);
+
+ ((CreateElementRequest)getRequest()).setNewElement(newElement);
+ return CommandResult.newOKCommandResult(newElement);
+ }
+
+ /**
+ * @generated
+ */
+ protected void doConfigure(AnyReceiveEvent newElement, IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+ IElementType elementType = ((CreateElementRequest)getRequest()).getElementType();
+ ConfigureRequest configureRequest = new ConfigureRequest(getEditingDomain(), newElement, elementType);
+ configureRequest.setClientContext(((CreateElementRequest)getRequest()).getClientContext());
+ configureRequest.addParameters(getRequest().getParameters());
+ ICommand configureCommand = elementType.getEditCommand(configureRequest);
+ if(configureCommand != null && configureCommand.canExecute()) {
+ configureCommand.execute(monitor, info);
+ }
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/ArtifactCreateCommand.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/ArtifactCreateCommand.java
new file mode 100644
index 00000000000..15a12d9f1e6
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/ArtifactCreateCommand.java
@@ -0,0 +1,134 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.commands;
+
+import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gmf.runtime.common.core.command.CommandResult;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ConfigureRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.diagram.composite.providers.ElementInitializers;
+import org.eclipse.uml2.uml.Artifact;
+import org.eclipse.uml2.uml.Package;
+import org.eclipse.uml2.uml.UMLFactory;
+
+/**
+ * @generated
+ */
+public class ArtifactCreateCommand extends EditElementCommand {
+
+ /**
+ * @generated
+ */
+ private EClass eClass = null;
+
+ /**
+ * @generated
+ */
+ private EObject eObject = null;
+
+ /**
+ * @generated
+ */
+ public ArtifactCreateCommand(CreateElementRequest req, EObject eObject) {
+ super(req.getLabel(), null, req);
+ this.eObject = eObject;
+ this.eClass = eObject != null ? eObject.eClass() : null;
+ }
+
+ /**
+ * @generated
+ */
+ public static ArtifactCreateCommand create(CreateElementRequest req, EObject eObject) {
+ return new ArtifactCreateCommand(req, eObject);
+ }
+
+ /**
+ * @generated
+ */
+ public ArtifactCreateCommand(CreateElementRequest req) {
+ super(req.getLabel(), null, req);
+ }
+
+ /**
+ * FIXME: replace with setElementToEdit()
+ *
+ * @generated
+ */
+ protected EObject getElementToEdit() {
+
+ EObject container = ((CreateElementRequest)getRequest()).getContainer();
+ if(container instanceof View) {
+ container = ((View)container).getElement();
+ }
+ if(container != null) {
+ return container;
+ }
+ return eObject;
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canExecute() {
+
+ // Creation constraint for TopLevelNodes
+ if(!(getElementToEdit() instanceof Package)) {
+ return false;
+ }
+
+ return true;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+
+ Artifact newElement = UMLFactory.eINSTANCE.createArtifact();
+
+ Package owner = (Package)getElementToEdit();
+ owner.getPackagedElements().add(newElement);
+
+ ElementInitializers.getInstance().init_Artifact_2079(newElement);
+
+ doConfigure(newElement, monitor, info);
+
+ ((CreateElementRequest)getRequest()).setNewElement(newElement);
+ return CommandResult.newOKCommandResult(newElement);
+ }
+
+ /**
+ * @generated
+ */
+ protected void doConfigure(Artifact newElement, IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+ IElementType elementType = ((CreateElementRequest)getRequest()).getElementType();
+ ConfigureRequest configureRequest = new ConfigureRequest(getEditingDomain(), newElement, elementType);
+ configureRequest.setClientContext(((CreateElementRequest)getRequest()).getClientContext());
+ configureRequest.addParameters(getRequest().getParameters());
+ ICommand configureCommand = elementType.getEditCommand(configureRequest);
+ if(configureCommand != null && configureCommand.canExecute()) {
+ configureCommand.execute(monitor, info);
+ }
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/ArtifactCreateCommandCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/ArtifactCreateCommandCN.java
new file mode 100644
index 00000000000..24630a04cc8
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/ArtifactCreateCommandCN.java
@@ -0,0 +1,129 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.commands;
+
+import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gmf.runtime.common.core.command.CommandResult;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ConfigureRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.diagram.composite.providers.ElementInitializers;
+import org.eclipse.uml2.uml.Artifact;
+import org.eclipse.uml2.uml.Class;
+import org.eclipse.uml2.uml.UMLFactory;
+
+/**
+ * @generated
+ */
+public class ArtifactCreateCommandCN extends EditElementCommand {
+
+ /**
+ * @generated
+ */
+ private EClass eClass = null;
+
+ /**
+ * @generated
+ */
+ private EObject eObject = null;
+
+ /**
+ * @generated
+ */
+ public ArtifactCreateCommandCN(CreateElementRequest req, EObject eObject) {
+ super(req.getLabel(), null, req);
+ this.eObject = eObject;
+ this.eClass = eObject != null ? eObject.eClass() : null;
+ }
+
+ /**
+ * @generated
+ */
+ public static ArtifactCreateCommandCN create(CreateElementRequest req, EObject eObject) {
+ return new ArtifactCreateCommandCN(req, eObject);
+ }
+
+ /**
+ * @generated
+ */
+ public ArtifactCreateCommandCN(CreateElementRequest req) {
+ super(req.getLabel(), null, req);
+ }
+
+ /**
+ * FIXME: replace with setElementToEdit()
+ *
+ * @generated
+ */
+ protected EObject getElementToEdit() {
+
+ EObject container = ((CreateElementRequest)getRequest()).getContainer();
+ if(container instanceof View) {
+ container = ((View)container).getElement();
+ }
+ if(container != null) {
+ return container;
+ }
+ return eObject;
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canExecute() {
+
+ return true;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+
+ Artifact newElement = UMLFactory.eINSTANCE.createArtifact();
+
+ Class owner = (Class)getElementToEdit();
+ owner.getNestedClassifiers().add(newElement);
+
+ ElementInitializers.getInstance().init_Artifact_3093(newElement);
+
+ doConfigure(newElement, monitor, info);
+
+ ((CreateElementRequest)getRequest()).setNewElement(newElement);
+ return CommandResult.newOKCommandResult(newElement);
+ }
+
+ /**
+ * @generated
+ */
+ protected void doConfigure(Artifact newElement, IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+ IElementType elementType = ((CreateElementRequest)getRequest()).getElementType();
+ ConfigureRequest configureRequest = new ConfigureRequest(getEditingDomain(), newElement, elementType);
+ configureRequest.setClientContext(((CreateElementRequest)getRequest()).getClientContext());
+ configureRequest.addParameters(getRequest().getParameters());
+ ICommand configureCommand = elementType.getEditCommand(configureRequest);
+ if(configureCommand != null && configureCommand.canExecute()) {
+ configureCommand.execute(monitor, info);
+ }
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/CallEventCreateCommand.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/CallEventCreateCommand.java
new file mode 100644
index 00000000000..d00f10c432e
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/CallEventCreateCommand.java
@@ -0,0 +1,134 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.commands;
+
+import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gmf.runtime.common.core.command.CommandResult;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ConfigureRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.diagram.composite.providers.ElementInitializers;
+import org.eclipse.uml2.uml.CallEvent;
+import org.eclipse.uml2.uml.Package;
+import org.eclipse.uml2.uml.UMLFactory;
+
+/**
+ * @generated
+ */
+public class CallEventCreateCommand extends EditElementCommand {
+
+ /**
+ * @generated
+ */
+ private EClass eClass = null;
+
+ /**
+ * @generated
+ */
+ private EObject eObject = null;
+
+ /**
+ * @generated
+ */
+ public CallEventCreateCommand(CreateElementRequest req, EObject eObject) {
+ super(req.getLabel(), null, req);
+ this.eObject = eObject;
+ this.eClass = eObject != null ? eObject.eClass() : null;
+ }
+
+ /**
+ * @generated
+ */
+ public static CallEventCreateCommand create(CreateElementRequest req, EObject eObject) {
+ return new CallEventCreateCommand(req, eObject);
+ }
+
+ /**
+ * @generated
+ */
+ public CallEventCreateCommand(CreateElementRequest req) {
+ super(req.getLabel(), null, req);
+ }
+
+ /**
+ * FIXME: replace with setElementToEdit()
+ *
+ * @generated
+ */
+ protected EObject getElementToEdit() {
+
+ EObject container = ((CreateElementRequest)getRequest()).getContainer();
+ if(container instanceof View) {
+ container = ((View)container).getElement();
+ }
+ if(container != null) {
+ return container;
+ }
+ return eObject;
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canExecute() {
+
+ // Creation constraint for TopLevelNodes
+ if(!(getElementToEdit() instanceof Package)) {
+ return false;
+ }
+
+ return true;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+
+ CallEvent newElement = UMLFactory.eINSTANCE.createCallEvent();
+
+ Package owner = (Package)getElementToEdit();
+ owner.getPackagedElements().add(newElement);
+
+ ElementInitializers.getInstance().init_CallEvent_2084(newElement);
+
+ doConfigure(newElement, monitor, info);
+
+ ((CreateElementRequest)getRequest()).setNewElement(newElement);
+ return CommandResult.newOKCommandResult(newElement);
+ }
+
+ /**
+ * @generated
+ */
+ protected void doConfigure(CallEvent newElement, IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+ IElementType elementType = ((CreateElementRequest)getRequest()).getElementType();
+ ConfigureRequest configureRequest = new ConfigureRequest(getEditingDomain(), newElement, elementType);
+ configureRequest.setClientContext(((CreateElementRequest)getRequest()).getClientContext());
+ configureRequest.addParameters(getRequest().getParameters());
+ ICommand configureCommand = elementType.getEditCommand(configureRequest);
+ if(configureCommand != null && configureCommand.canExecute()) {
+ configureCommand.execute(monitor, info);
+ }
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/ChangeEventCreateCommand.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/ChangeEventCreateCommand.java
new file mode 100644
index 00000000000..bb2ed35e6f5
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/ChangeEventCreateCommand.java
@@ -0,0 +1,134 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.commands;
+
+import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gmf.runtime.common.core.command.CommandResult;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ConfigureRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.diagram.composite.providers.ElementInitializers;
+import org.eclipse.uml2.uml.ChangeEvent;
+import org.eclipse.uml2.uml.Package;
+import org.eclipse.uml2.uml.UMLFactory;
+
+/**
+ * @generated
+ */
+public class ChangeEventCreateCommand extends EditElementCommand {
+
+ /**
+ * @generated
+ */
+ private EClass eClass = null;
+
+ /**
+ * @generated
+ */
+ private EObject eObject = null;
+
+ /**
+ * @generated
+ */
+ public ChangeEventCreateCommand(CreateElementRequest req, EObject eObject) {
+ super(req.getLabel(), null, req);
+ this.eObject = eObject;
+ this.eClass = eObject != null ? eObject.eClass() : null;
+ }
+
+ /**
+ * @generated
+ */
+ public static ChangeEventCreateCommand create(CreateElementRequest req, EObject eObject) {
+ return new ChangeEventCreateCommand(req, eObject);
+ }
+
+ /**
+ * @generated
+ */
+ public ChangeEventCreateCommand(CreateElementRequest req) {
+ super(req.getLabel(), null, req);
+ }
+
+ /**
+ * FIXME: replace with setElementToEdit()
+ *
+ * @generated
+ */
+ protected EObject getElementToEdit() {
+
+ EObject container = ((CreateElementRequest)getRequest()).getContainer();
+ if(container instanceof View) {
+ container = ((View)container).getElement();
+ }
+ if(container != null) {
+ return container;
+ }
+ return eObject;
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canExecute() {
+
+ // Creation constraint for TopLevelNodes
+ if(!(getElementToEdit() instanceof Package)) {
+ return false;
+ }
+
+ return true;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+
+ ChangeEvent newElement = UMLFactory.eINSTANCE.createChangeEvent();
+
+ Package owner = (Package)getElementToEdit();
+ owner.getPackagedElements().add(newElement);
+
+ ElementInitializers.getInstance().init_ChangeEvent_2088(newElement);
+
+ doConfigure(newElement, monitor, info);
+
+ ((CreateElementRequest)getRequest()).setNewElement(newElement);
+ return CommandResult.newOKCommandResult(newElement);
+ }
+
+ /**
+ * @generated
+ */
+ protected void doConfigure(ChangeEvent newElement, IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+ IElementType elementType = ((CreateElementRequest)getRequest()).getElementType();
+ ConfigureRequest configureRequest = new ConfigureRequest(getEditingDomain(), newElement, elementType);
+ configureRequest.setClientContext(((CreateElementRequest)getRequest()).getClientContext());
+ configureRequest.addParameters(getRequest().getParameters());
+ ICommand configureCommand = elementType.getEditCommand(configureRequest);
+ if(configureCommand != null && configureCommand.canExecute()) {
+ configureCommand.execute(monitor, info);
+ }
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/ClassCompositeCreateCommand.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/ClassCompositeCreateCommand.java
new file mode 100644
index 00000000000..bf2564025c2
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/ClassCompositeCreateCommand.java
@@ -0,0 +1,134 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.commands;
+
+import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gmf.runtime.common.core.command.CommandResult;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ConfigureRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.diagram.composite.providers.ElementInitializers;
+import org.eclipse.uml2.uml.Class;
+import org.eclipse.uml2.uml.Package;
+import org.eclipse.uml2.uml.UMLFactory;
+
+/**
+ * @generated
+ */
+public class ClassCompositeCreateCommand extends EditElementCommand {
+
+ /**
+ * @generated
+ */
+ private EClass eClass = null;
+
+ /**
+ * @generated
+ */
+ private EObject eObject = null;
+
+ /**
+ * @generated
+ */
+ public ClassCompositeCreateCommand(CreateElementRequest req, EObject eObject) {
+ super(req.getLabel(), null, req);
+ this.eObject = eObject;
+ this.eClass = eObject != null ? eObject.eClass() : null;
+ }
+
+ /**
+ * @generated
+ */
+ public static ClassCompositeCreateCommand create(CreateElementRequest req, EObject eObject) {
+ return new ClassCompositeCreateCommand(req, eObject);
+ }
+
+ /**
+ * @generated
+ */
+ public ClassCompositeCreateCommand(CreateElementRequest req) {
+ super(req.getLabel(), null, req);
+ }
+
+ /**
+ * FIXME: replace with setElementToEdit()
+ *
+ * @generated
+ */
+ protected EObject getElementToEdit() {
+
+ EObject container = ((CreateElementRequest)getRequest()).getContainer();
+ if(container instanceof View) {
+ container = ((View)container).getElement();
+ }
+ if(container != null) {
+ return container;
+ }
+ return eObject;
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canExecute() {
+
+ // Creation constraint for TopLevelNodes
+ if(!(getElementToEdit() instanceof Package)) {
+ return false;
+ }
+
+ return true;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+
+ Class newElement = UMLFactory.eINSTANCE.createClass();
+
+ Package owner = (Package)getElementToEdit();
+ owner.getPackagedElements().add(newElement);
+
+ ElementInitializers.getInstance().init_Class_2073(newElement);
+
+ doConfigure(newElement, monitor, info);
+
+ ((CreateElementRequest)getRequest()).setNewElement(newElement);
+ return CommandResult.newOKCommandResult(newElement);
+ }
+
+ /**
+ * @generated
+ */
+ protected void doConfigure(Class newElement, IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+ IElementType elementType = ((CreateElementRequest)getRequest()).getElementType();
+ ConfigureRequest configureRequest = new ConfigureRequest(getEditingDomain(), newElement, elementType);
+ configureRequest.setClientContext(((CreateElementRequest)getRequest()).getClientContext());
+ configureRequest.addParameters(getRequest().getParameters());
+ ICommand configureCommand = elementType.getEditCommand(configureRequest);
+ if(configureCommand != null && configureCommand.canExecute()) {
+ configureCommand.execute(monitor, info);
+ }
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/ClassCompositeCreateCommandCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/ClassCompositeCreateCommandCN.java
new file mode 100644
index 00000000000..aa52f9fbada
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/ClassCompositeCreateCommandCN.java
@@ -0,0 +1,128 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.commands;
+
+import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gmf.runtime.common.core.command.CommandResult;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ConfigureRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.diagram.composite.providers.ElementInitializers;
+import org.eclipse.uml2.uml.Class;
+import org.eclipse.uml2.uml.UMLFactory;
+
+/**
+ * @generated
+ */
+public class ClassCompositeCreateCommandCN extends EditElementCommand {
+
+ /**
+ * @generated
+ */
+ private EClass eClass = null;
+
+ /**
+ * @generated
+ */
+ private EObject eObject = null;
+
+ /**
+ * @generated
+ */
+ public ClassCompositeCreateCommandCN(CreateElementRequest req, EObject eObject) {
+ super(req.getLabel(), null, req);
+ this.eObject = eObject;
+ this.eClass = eObject != null ? eObject.eClass() : null;
+ }
+
+ /**
+ * @generated
+ */
+ public static ClassCompositeCreateCommandCN create(CreateElementRequest req, EObject eObject) {
+ return new ClassCompositeCreateCommandCN(req, eObject);
+ }
+
+ /**
+ * @generated
+ */
+ public ClassCompositeCreateCommandCN(CreateElementRequest req) {
+ super(req.getLabel(), null, req);
+ }
+
+ /**
+ * FIXME: replace with setElementToEdit()
+ *
+ * @generated
+ */
+ protected EObject getElementToEdit() {
+
+ EObject container = ((CreateElementRequest)getRequest()).getContainer();
+ if(container instanceof View) {
+ container = ((View)container).getElement();
+ }
+ if(container != null) {
+ return container;
+ }
+ return eObject;
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canExecute() {
+
+ return true;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+
+ Class newElement = UMLFactory.eINSTANCE.createClass();
+
+ Class owner = (Class)getElementToEdit();
+ owner.getNestedClassifiers().add(newElement);
+
+ ElementInitializers.getInstance().init_Class_3085(newElement);
+
+ doConfigure(newElement, monitor, info);
+
+ ((CreateElementRequest)getRequest()).setNewElement(newElement);
+ return CommandResult.newOKCommandResult(newElement);
+ }
+
+ /**
+ * @generated
+ */
+ protected void doConfigure(Class newElement, IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+ IElementType elementType = ((CreateElementRequest)getRequest()).getElementType();
+ ConfigureRequest configureRequest = new ConfigureRequest(getEditingDomain(), newElement, elementType);
+ configureRequest.setClientContext(((CreateElementRequest)getRequest()).getClientContext());
+ configureRequest.addParameters(getRequest().getParameters());
+ ICommand configureCommand = elementType.getEditCommand(configureRequest);
+ if(configureCommand != null && configureCommand.canExecute()) {
+ configureCommand.execute(monitor, info);
+ }
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/ClassCreateCommandCLN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/ClassCreateCommandCLN.java
new file mode 100644
index 00000000000..1cbc9f86ace
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/ClassCreateCommandCLN.java
@@ -0,0 +1,128 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.commands;
+
+import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gmf.runtime.common.core.command.CommandResult;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ConfigureRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.diagram.composite.providers.ElementInitializers;
+import org.eclipse.uml2.uml.Class;
+import org.eclipse.uml2.uml.UMLFactory;
+
+/**
+ * @generated
+ */
+public class ClassCreateCommandCLN extends EditElementCommand {
+
+ /**
+ * @generated
+ */
+ private EClass eClass = null;
+
+ /**
+ * @generated
+ */
+ private EObject eObject = null;
+
+ /**
+ * @generated
+ */
+ public ClassCreateCommandCLN(CreateElementRequest req, EObject eObject) {
+ super(req.getLabel(), null, req);
+ this.eObject = eObject;
+ this.eClass = eObject != null ? eObject.eClass() : null;
+ }
+
+ /**
+ * @generated
+ */
+ public static ClassCreateCommandCLN create(CreateElementRequest req, EObject eObject) {
+ return new ClassCreateCommandCLN(req, eObject);
+ }
+
+ /**
+ * @generated
+ */
+ public ClassCreateCommandCLN(CreateElementRequest req) {
+ super(req.getLabel(), null, req);
+ }
+
+ /**
+ * FIXME: replace with setElementToEdit()
+ *
+ * @generated
+ */
+ protected EObject getElementToEdit() {
+
+ EObject container = ((CreateElementRequest)getRequest()).getContainer();
+ if(container instanceof View) {
+ container = ((View)container).getElement();
+ }
+ if(container != null) {
+ return container;
+ }
+ return eObject;
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canExecute() {
+
+ return true;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+
+ Class newElement = UMLFactory.eINSTANCE.createClass();
+
+ Class owner = (Class)getElementToEdit();
+ owner.getNestedClassifiers().add(newElement);
+
+ ElementInitializers.getInstance().init_Class_3114(newElement);
+
+ doConfigure(newElement, monitor, info);
+
+ ((CreateElementRequest)getRequest()).setNewElement(newElement);
+ return CommandResult.newOKCommandResult(newElement);
+ }
+
+ /**
+ * @generated
+ */
+ protected void doConfigure(Class newElement, IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+ IElementType elementType = ((CreateElementRequest)getRequest()).getElementType();
+ ConfigureRequest configureRequest = new ConfigureRequest(getEditingDomain(), newElement, elementType);
+ configureRequest.setClientContext(((CreateElementRequest)getRequest()).getClientContext());
+ configureRequest.addParameters(getRequest().getParameters());
+ ICommand configureCommand = elementType.getEditCommand(configureRequest);
+ if(configureCommand != null && configureCommand.canExecute()) {
+ configureCommand.execute(monitor, info);
+ }
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/CollaborationCompositeCreateCommand.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/CollaborationCompositeCreateCommand.java
new file mode 100644
index 00000000000..9ddb5ec96eb
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/CollaborationCompositeCreateCommand.java
@@ -0,0 +1,134 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.commands;
+
+import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gmf.runtime.common.core.command.CommandResult;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ConfigureRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.diagram.composite.providers.ElementInitializers;
+import org.eclipse.uml2.uml.Collaboration;
+import org.eclipse.uml2.uml.Package;
+import org.eclipse.uml2.uml.UMLFactory;
+
+/**
+ * @generated
+ */
+public class CollaborationCompositeCreateCommand extends EditElementCommand {
+
+ /**
+ * @generated
+ */
+ private EClass eClass = null;
+
+ /**
+ * @generated
+ */
+ private EObject eObject = null;
+
+ /**
+ * @generated
+ */
+ public CollaborationCompositeCreateCommand(CreateElementRequest req, EObject eObject) {
+ super(req.getLabel(), null, req);
+ this.eObject = eObject;
+ this.eClass = eObject != null ? eObject.eClass() : null;
+ }
+
+ /**
+ * @generated
+ */
+ public static CollaborationCompositeCreateCommand create(CreateElementRequest req, EObject eObject) {
+ return new CollaborationCompositeCreateCommand(req, eObject);
+ }
+
+ /**
+ * @generated
+ */
+ public CollaborationCompositeCreateCommand(CreateElementRequest req) {
+ super(req.getLabel(), null, req);
+ }
+
+ /**
+ * FIXME: replace with setElementToEdit()
+ *
+ * @generated
+ */
+ protected EObject getElementToEdit() {
+
+ EObject container = ((CreateElementRequest)getRequest()).getContainer();
+ if(container instanceof View) {
+ container = ((View)container).getElement();
+ }
+ if(container != null) {
+ return container;
+ }
+ return eObject;
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canExecute() {
+
+ // Creation constraint for TopLevelNodes
+ if(!(getElementToEdit() instanceof Package)) {
+ return false;
+ }
+
+ return true;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+
+ Collaboration newElement = UMLFactory.eINSTANCE.createCollaboration();
+
+ Package owner = (Package)getElementToEdit();
+ owner.getPackagedElements().add(newElement);
+
+ ElementInitializers.getInstance().init_Collaboration_2075(newElement);
+
+ doConfigure(newElement, monitor, info);
+
+ ((CreateElementRequest)getRequest()).setNewElement(newElement);
+ return CommandResult.newOKCommandResult(newElement);
+ }
+
+ /**
+ * @generated
+ */
+ protected void doConfigure(Collaboration newElement, IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+ IElementType elementType = ((CreateElementRequest)getRequest()).getElementType();
+ ConfigureRequest configureRequest = new ConfigureRequest(getEditingDomain(), newElement, elementType);
+ configureRequest.setClientContext(((CreateElementRequest)getRequest()).getClientContext());
+ configureRequest.addParameters(getRequest().getParameters());
+ ICommand configureCommand = elementType.getEditCommand(configureRequest);
+ if(configureCommand != null && configureCommand.canExecute()) {
+ configureCommand.execute(monitor, info);
+ }
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/CollaborationCompositeCreateCommandCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/CollaborationCompositeCreateCommandCN.java
new file mode 100644
index 00000000000..29c237918b6
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/CollaborationCompositeCreateCommandCN.java
@@ -0,0 +1,129 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.commands;
+
+import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gmf.runtime.common.core.command.CommandResult;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ConfigureRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.diagram.composite.providers.ElementInitializers;
+import org.eclipse.uml2.uml.Class;
+import org.eclipse.uml2.uml.Collaboration;
+import org.eclipse.uml2.uml.UMLFactory;
+
+/**
+ * @generated
+ */
+public class CollaborationCompositeCreateCommandCN extends EditElementCommand {
+
+ /**
+ * @generated
+ */
+ private EClass eClass = null;
+
+ /**
+ * @generated
+ */
+ private EObject eObject = null;
+
+ /**
+ * @generated
+ */
+ public CollaborationCompositeCreateCommandCN(CreateElementRequest req, EObject eObject) {
+ super(req.getLabel(), null, req);
+ this.eObject = eObject;
+ this.eClass = eObject != null ? eObject.eClass() : null;
+ }
+
+ /**
+ * @generated
+ */
+ public static CollaborationCompositeCreateCommandCN create(CreateElementRequest req, EObject eObject) {
+ return new CollaborationCompositeCreateCommandCN(req, eObject);
+ }
+
+ /**
+ * @generated
+ */
+ public CollaborationCompositeCreateCommandCN(CreateElementRequest req) {
+ super(req.getLabel(), null, req);
+ }
+
+ /**
+ * FIXME: replace with setElementToEdit()
+ *
+ * @generated
+ */
+ protected EObject getElementToEdit() {
+
+ EObject container = ((CreateElementRequest)getRequest()).getContainer();
+ if(container instanceof View) {
+ container = ((View)container).getElement();
+ }
+ if(container != null) {
+ return container;
+ }
+ return eObject;
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canExecute() {
+
+ return true;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+
+ Collaboration newElement = UMLFactory.eINSTANCE.createCollaboration();
+
+ Class owner = (Class)getElementToEdit();
+ owner.getNestedClassifiers().add(newElement);
+
+ ElementInitializers.getInstance().init_Collaboration_3086(newElement);
+
+ doConfigure(newElement, monitor, info);
+
+ ((CreateElementRequest)getRequest()).setNewElement(newElement);
+ return CommandResult.newOKCommandResult(newElement);
+ }
+
+ /**
+ * @generated
+ */
+ protected void doConfigure(Collaboration newElement, IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+ IElementType elementType = ((CreateElementRequest)getRequest()).getElementType();
+ ConfigureRequest configureRequest = new ConfigureRequest(getEditingDomain(), newElement, elementType);
+ configureRequest.setClientContext(((CreateElementRequest)getRequest()).getClientContext());
+ configureRequest.addParameters(getRequest().getParameters());
+ ICommand configureCommand = elementType.getEditCommand(configureRequest);
+ if(configureCommand != null && configureCommand.canExecute()) {
+ configureCommand.execute(monitor, info);
+ }
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/CollaborationCreateCommandCLN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/CollaborationCreateCommandCLN.java
new file mode 100644
index 00000000000..2ce1dafb0e8
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/CollaborationCreateCommandCLN.java
@@ -0,0 +1,129 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.commands;
+
+import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gmf.runtime.common.core.command.CommandResult;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ConfigureRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.diagram.composite.providers.ElementInitializers;
+import org.eclipse.uml2.uml.Class;
+import org.eclipse.uml2.uml.Collaboration;
+import org.eclipse.uml2.uml.UMLFactory;
+
+/**
+ * @generated
+ */
+public class CollaborationCreateCommandCLN extends EditElementCommand {
+
+ /**
+ * @generated
+ */
+ private EClass eClass = null;
+
+ /**
+ * @generated
+ */
+ private EObject eObject = null;
+
+ /**
+ * @generated
+ */
+ public CollaborationCreateCommandCLN(CreateElementRequest req, EObject eObject) {
+ super(req.getLabel(), null, req);
+ this.eObject = eObject;
+ this.eClass = eObject != null ? eObject.eClass() : null;
+ }
+
+ /**
+ * @generated
+ */
+ public static CollaborationCreateCommandCLN create(CreateElementRequest req, EObject eObject) {
+ return new CollaborationCreateCommandCLN(req, eObject);
+ }
+
+ /**
+ * @generated
+ */
+ public CollaborationCreateCommandCLN(CreateElementRequest req) {
+ super(req.getLabel(), null, req);
+ }
+
+ /**
+ * FIXME: replace with setElementToEdit()
+ *
+ * @generated
+ */
+ protected EObject getElementToEdit() {
+
+ EObject container = ((CreateElementRequest)getRequest()).getContainer();
+ if(container instanceof View) {
+ container = ((View)container).getElement();
+ }
+ if(container != null) {
+ return container;
+ }
+ return eObject;
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canExecute() {
+
+ return true;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+
+ Collaboration newElement = UMLFactory.eINSTANCE.createCollaboration();
+
+ Class owner = (Class)getElementToEdit();
+ owner.getNestedClassifiers().add(newElement);
+
+ ElementInitializers.getInstance().init_Collaboration_3109(newElement);
+
+ doConfigure(newElement, monitor, info);
+
+ ((CreateElementRequest)getRequest()).setNewElement(newElement);
+ return CommandResult.newOKCommandResult(newElement);
+ }
+
+ /**
+ * @generated
+ */
+ protected void doConfigure(Collaboration newElement, IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+ IElementType elementType = ((CreateElementRequest)getRequest()).getElementType();
+ ConfigureRequest configureRequest = new ConfigureRequest(getEditingDomain(), newElement, elementType);
+ configureRequest.setClientContext(((CreateElementRequest)getRequest()).getClientContext());
+ configureRequest.addParameters(getRequest().getParameters());
+ ICommand configureCommand = elementType.getEditCommand(configureRequest);
+ if(configureCommand != null && configureCommand.canExecute()) {
+ configureCommand.execute(monitor, info);
+ }
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/CollaborationRoleCreateCommandCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/CollaborationRoleCreateCommandCN.java
new file mode 100644
index 00000000000..7d1382a89ad
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/CollaborationRoleCreateCommandCN.java
@@ -0,0 +1,116 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.commands;
+
+import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gmf.runtime.common.core.command.CommandResult;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ConfigureRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.uml2.uml.ConnectableElement;
+
+/**
+ * @generated
+ */
+public class CollaborationRoleCreateCommandCN extends EditElementCommand {
+
+ /**
+ * @generated
+ */
+ private EClass eClass = null;
+
+ /**
+ * @generated
+ */
+ private EObject eObject = null;
+
+ /**
+ * @generated
+ */
+ public CollaborationRoleCreateCommandCN(CreateElementRequest req, EObject eObject) {
+ super(req.getLabel(), null, req);
+ this.eObject = eObject;
+ this.eClass = eObject != null ? eObject.eClass() : null;
+ }
+
+ /**
+ * @generated
+ */
+ public static CollaborationRoleCreateCommandCN create(CreateElementRequest req, EObject eObject) {
+ return new CollaborationRoleCreateCommandCN(req, eObject);
+ }
+
+ /**
+ * @generated
+ */
+ public CollaborationRoleCreateCommandCN(CreateElementRequest req) {
+ super(req.getLabel(), null, req);
+ }
+
+ /**
+ * FIXME: replace with setElementToEdit()
+ *
+ * @generated
+ */
+ protected EObject getElementToEdit() {
+
+ EObject container = ((CreateElementRequest)getRequest()).getContainer();
+ if(container instanceof View) {
+ container = ((View)container).getElement();
+ }
+ if(container != null) {
+ return container;
+ }
+ return eObject;
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canExecute() {
+
+ return true;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+
+ throw new UnsupportedOperationException("Unimplemented operation (abstract domain element).");
+ }
+
+ /**
+ * @generated
+ */
+ protected void doConfigure(ConnectableElement newElement, IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+ IElementType elementType = ((CreateElementRequest)getRequest()).getElementType();
+ ConfigureRequest configureRequest = new ConfigureRequest(getEditingDomain(), newElement, elementType);
+ configureRequest.setClientContext(((CreateElementRequest)getRequest()).getClientContext());
+ configureRequest.addParameters(getRequest().getParameters());
+ ICommand configureCommand = elementType.getEditCommand(configureRequest);
+ if(configureCommand != null && configureCommand.canExecute()) {
+ configureCommand.execute(monitor, info);
+ }
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/CollaborationUseCreateCommandCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/CollaborationUseCreateCommandCN.java
new file mode 100644
index 00000000000..f388e307d66
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/CollaborationUseCreateCommandCN.java
@@ -0,0 +1,129 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.commands;
+
+import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gmf.runtime.common.core.command.CommandResult;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ConfigureRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.diagram.composite.providers.ElementInitializers;
+import org.eclipse.uml2.uml.Classifier;
+import org.eclipse.uml2.uml.CollaborationUse;
+import org.eclipse.uml2.uml.UMLFactory;
+
+/**
+ * @generated
+ */
+public class CollaborationUseCreateCommandCN extends EditElementCommand {
+
+ /**
+ * @generated
+ */
+ private EClass eClass = null;
+
+ /**
+ * @generated
+ */
+ private EObject eObject = null;
+
+ /**
+ * @generated
+ */
+ public CollaborationUseCreateCommandCN(CreateElementRequest req, EObject eObject) {
+ super(req.getLabel(), null, req);
+ this.eObject = eObject;
+ this.eClass = eObject != null ? eObject.eClass() : null;
+ }
+
+ /**
+ * @generated
+ */
+ public static CollaborationUseCreateCommandCN create(CreateElementRequest req, EObject eObject) {
+ return new CollaborationUseCreateCommandCN(req, eObject);
+ }
+
+ /**
+ * @generated
+ */
+ public CollaborationUseCreateCommandCN(CreateElementRequest req) {
+ super(req.getLabel(), null, req);
+ }
+
+ /**
+ * FIXME: replace with setElementToEdit()
+ *
+ * @generated
+ */
+ protected EObject getElementToEdit() {
+
+ EObject container = ((CreateElementRequest)getRequest()).getContainer();
+ if(container instanceof View) {
+ container = ((View)container).getElement();
+ }
+ if(container != null) {
+ return container;
+ }
+ return eObject;
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canExecute() {
+
+ return true;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+
+ CollaborationUse newElement = UMLFactory.eINSTANCE.createCollaborationUse();
+
+ Classifier owner = (Classifier)getElementToEdit();
+ owner.getCollaborationUses().add(newElement);
+
+ ElementInitializers.getInstance().init_CollaborationUse_3071(newElement);
+
+ doConfigure(newElement, monitor, info);
+
+ ((CreateElementRequest)getRequest()).setNewElement(newElement);
+ return CommandResult.newOKCommandResult(newElement);
+ }
+
+ /**
+ * @generated
+ */
+ protected void doConfigure(CollaborationUse newElement, IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+ IElementType elementType = ((CreateElementRequest)getRequest()).getElementType();
+ ConfigureRequest configureRequest = new ConfigureRequest(getEditingDomain(), newElement, elementType);
+ configureRequest.setClientContext(((CreateElementRequest)getRequest()).getClientContext());
+ configureRequest.addParameters(getRequest().getParameters());
+ ICommand configureCommand = elementType.getEditCommand(configureRequest);
+ if(configureCommand != null && configureCommand.canExecute()) {
+ configureCommand.execute(monitor, info);
+ }
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/CommentAnnotatedElementCreateCommand.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/CommentAnnotatedElementCreateCommand.java
new file mode 100644
index 00000000000..bbd597c0fb9
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/CommentAnnotatedElementCreateCommand.java
@@ -0,0 +1,106 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.commands;
+
+import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gmf.runtime.common.core.command.CommandResult;
+import org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLBaseItemSemanticEditPolicy;
+import org.eclipse.uml2.uml.Comment;
+import org.eclipse.uml2.uml.Element;
+
+/**
+ * @generated
+ */
+public class CommentAnnotatedElementCreateCommand extends EditElementCommand {
+
+ /**
+ * @generated
+ */
+ protected final EObject source;
+
+ /**
+ * @generated
+ */
+ protected final EObject target;
+
+ /**
+ * @generated
+ */
+ public CommentAnnotatedElementCreateCommand(CreateRelationshipRequest request, EObject source, EObject target) {
+ super(request.getLabel(), null, request);
+ this.source = source;
+ this.target = target;
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canExecute() {
+ if(source == null && target == null) {
+ return false;
+ }
+ if(source != null && false == source instanceof Comment) {
+ return false;
+ }
+ if(target != null && false == target instanceof Element) {
+ return false;
+ }
+ if(getSource() == null) {
+ return true; // link creation is in progress; source is not defined yet
+ }
+ // target may be null here but it's possible to check constraint
+ return UMLBaseItemSemanticEditPolicy.getLinkConstraints().canCreateCommentAnnotatedElement_4002(getSource(), getTarget());
+ }
+
+ /**
+ * @generated
+ */
+ protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+ if(!canExecute()) {
+ throw new ExecutionException("Invalid arguments in create link command"); //$NON-NLS-1$
+ }
+
+ if(getSource() != null && getTarget() != null) {
+ getSource().getAnnotatedElements().add(getTarget());
+ }
+ return CommandResult.newOKCommandResult();
+
+ }
+
+ /**
+ * @generated
+ */
+ protected void setElementToEdit(EObject element) {
+ throw new UnsupportedOperationException();
+ }
+
+ /**
+ * @generated
+ */
+ protected Comment getSource() {
+ return (Comment)source;
+ }
+
+ /**
+ * @generated
+ */
+ protected Element getTarget() {
+ return (Element)target;
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/CommentAnnotatedElementReorientCommand.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/CommentAnnotatedElementReorientCommand.java
new file mode 100644
index 00000000000..1aebbf9f9b4
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/CommentAnnotatedElementReorientCommand.java
@@ -0,0 +1,161 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.commands;
+
+import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gmf.runtime.common.core.command.CommandResult;
+import org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientReferenceRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientRelationshipRequest;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLBaseItemSemanticEditPolicy;
+import org.eclipse.uml2.uml.Comment;
+import org.eclipse.uml2.uml.Element;
+
+/**
+ * @generated
+ */
+public class CommentAnnotatedElementReorientCommand extends EditElementCommand {
+
+ /**
+ * @generated
+ */
+ private final int reorientDirection;
+
+ /**
+ * @generated
+ */
+ private final EObject referenceOwner;
+
+ /**
+ * @generated
+ */
+ private final EObject oldEnd;
+
+ /**
+ * @generated
+ */
+ private final EObject newEnd;
+
+ /**
+ * @generated
+ */
+ public CommentAnnotatedElementReorientCommand(ReorientReferenceRelationshipRequest request) {
+ super(request.getLabel(), null, request);
+ reorientDirection = request.getDirection();
+ referenceOwner = request.getReferenceOwner();
+ oldEnd = request.getOldRelationshipEnd();
+ newEnd = request.getNewRelationshipEnd();
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canExecute() {
+ if(false == referenceOwner instanceof Comment) {
+ return false;
+ }
+ if(reorientDirection == ReorientRelationshipRequest.REORIENT_SOURCE) {
+ return canReorientSource();
+ }
+ if(reorientDirection == ReorientRelationshipRequest.REORIENT_TARGET) {
+ return canReorientTarget();
+ }
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean canReorientSource() {
+ if(!(oldEnd instanceof Element && newEnd instanceof Comment)) {
+ return false;
+ }
+ return UMLBaseItemSemanticEditPolicy.getLinkConstraints().canExistCommentAnnotatedElement_4002(getNewSource(), getOldTarget());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean canReorientTarget() {
+ if(!(oldEnd instanceof Element && newEnd instanceof Element)) {
+ return false;
+ }
+ return UMLBaseItemSemanticEditPolicy.getLinkConstraints().canExistCommentAnnotatedElement_4002(getOldSource(), getNewTarget());
+ }
+
+ /**
+ * @generated
+ */
+ protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+ if(!canExecute()) {
+ throw new ExecutionException("Invalid arguments in reorient link command"); //$NON-NLS-1$
+ }
+ if(reorientDirection == ReorientRelationshipRequest.REORIENT_SOURCE) {
+ return reorientSource();
+ }
+ if(reorientDirection == ReorientRelationshipRequest.REORIENT_TARGET) {
+ return reorientTarget();
+ }
+ throw new IllegalStateException();
+ }
+
+ /**
+ * @generated
+ */
+ protected CommandResult reorientSource() throws ExecutionException {
+ getOldSource().getAnnotatedElements().remove(getOldTarget());
+ getNewSource().getAnnotatedElements().add(getOldTarget());
+ return CommandResult.newOKCommandResult(referenceOwner);
+ }
+
+ /**
+ * @generated
+ */
+ protected CommandResult reorientTarget() throws ExecutionException {
+ getOldSource().getAnnotatedElements().remove(getOldTarget());
+ getOldSource().getAnnotatedElements().add(getNewTarget());
+ return CommandResult.newOKCommandResult(referenceOwner);
+ }
+
+ /**
+ * @generated
+ */
+ protected Comment getOldSource() {
+ return (Comment)referenceOwner;
+ }
+
+ /**
+ * @generated
+ */
+ protected Comment getNewSource() {
+ return (Comment)newEnd;
+ }
+
+ /**
+ * @generated
+ */
+ protected Element getOldTarget() {
+ return (Element)oldEnd;
+ }
+
+ /**
+ * @generated
+ */
+ protected Element getNewTarget() {
+ return (Element)newEnd;
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/CommentCreateCommand.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/CommentCreateCommand.java
new file mode 100644
index 00000000000..1e7c298800c
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/CommentCreateCommand.java
@@ -0,0 +1,135 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.commands;
+
+import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gmf.runtime.common.core.command.CommandResult;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ConfigureRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.diagram.composite.providers.ElementInitializers;
+import org.eclipse.uml2.uml.Comment;
+import org.eclipse.uml2.uml.Element;
+import org.eclipse.uml2.uml.Package;
+import org.eclipse.uml2.uml.UMLFactory;
+
+/**
+ * @generated
+ */
+public class CommentCreateCommand extends EditElementCommand {
+
+ /**
+ * @generated
+ */
+ private EClass eClass = null;
+
+ /**
+ * @generated
+ */
+ private EObject eObject = null;
+
+ /**
+ * @generated
+ */
+ public CommentCreateCommand(CreateElementRequest req, EObject eObject) {
+ super(req.getLabel(), null, req);
+ this.eObject = eObject;
+ this.eClass = eObject != null ? eObject.eClass() : null;
+ }
+
+ /**
+ * @generated
+ */
+ public static CommentCreateCommand create(CreateElementRequest req, EObject eObject) {
+ return new CommentCreateCommand(req, eObject);
+ }
+
+ /**
+ * @generated
+ */
+ public CommentCreateCommand(CreateElementRequest req) {
+ super(req.getLabel(), null, req);
+ }
+
+ /**
+ * FIXME: replace with setElementToEdit()
+ *
+ * @generated
+ */
+ protected EObject getElementToEdit() {
+
+ EObject container = ((CreateElementRequest)getRequest()).getContainer();
+ if(container instanceof View) {
+ container = ((View)container).getElement();
+ }
+ if(container != null) {
+ return container;
+ }
+ return eObject;
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canExecute() {
+
+ // Creation constraint for TopLevelNodes
+ if(!(getElementToEdit() instanceof Package)) {
+ return false;
+ }
+
+ return true;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+
+ Comment newElement = UMLFactory.eINSTANCE.createComment();
+
+ Element owner = (Element)getElementToEdit();
+ owner.getOwnedComments().add(newElement);
+
+ ElementInitializers.getInstance().init_Comment_2109(newElement);
+
+ doConfigure(newElement, monitor, info);
+
+ ((CreateElementRequest)getRequest()).setNewElement(newElement);
+ return CommandResult.newOKCommandResult(newElement);
+ }
+
+ /**
+ * @generated
+ */
+ protected void doConfigure(Comment newElement, IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+ IElementType elementType = ((CreateElementRequest)getRequest()).getElementType();
+ ConfigureRequest configureRequest = new ConfigureRequest(getEditingDomain(), newElement, elementType);
+ configureRequest.setClientContext(((CreateElementRequest)getRequest()).getClientContext());
+ configureRequest.addParameters(getRequest().getParameters());
+ ICommand configureCommand = elementType.getEditCommand(configureRequest);
+ if(configureCommand != null && configureCommand.canExecute()) {
+ configureCommand.execute(monitor, info);
+ }
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/CommentCreateCommandCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/CommentCreateCommandCN.java
new file mode 100644
index 00000000000..2d42516af9d
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/CommentCreateCommandCN.java
@@ -0,0 +1,129 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.commands;
+
+import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gmf.runtime.common.core.command.CommandResult;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ConfigureRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.diagram.composite.providers.ElementInitializers;
+import org.eclipse.uml2.uml.Comment;
+import org.eclipse.uml2.uml.Element;
+import org.eclipse.uml2.uml.UMLFactory;
+
+/**
+ * @generated
+ */
+public class CommentCreateCommandCN extends EditElementCommand {
+
+ /**
+ * @generated
+ */
+ private EClass eClass = null;
+
+ /**
+ * @generated
+ */
+ private EObject eObject = null;
+
+ /**
+ * @generated
+ */
+ public CommentCreateCommandCN(CreateElementRequest req, EObject eObject) {
+ super(req.getLabel(), null, req);
+ this.eObject = eObject;
+ this.eClass = eObject != null ? eObject.eClass() : null;
+ }
+
+ /**
+ * @generated
+ */
+ public static CommentCreateCommandCN create(CreateElementRequest req, EObject eObject) {
+ return new CommentCreateCommandCN(req, eObject);
+ }
+
+ /**
+ * @generated
+ */
+ public CommentCreateCommandCN(CreateElementRequest req) {
+ super(req.getLabel(), null, req);
+ }
+
+ /**
+ * FIXME: replace with setElementToEdit()
+ *
+ * @generated
+ */
+ protected EObject getElementToEdit() {
+
+ EObject container = ((CreateElementRequest)getRequest()).getContainer();
+ if(container instanceof View) {
+ container = ((View)container).getElement();
+ }
+ if(container != null) {
+ return container;
+ }
+ return eObject;
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canExecute() {
+
+ return true;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+
+ Comment newElement = UMLFactory.eINSTANCE.createComment();
+
+ Element owner = (Element)getElementToEdit();
+ owner.getOwnedComments().add(newElement);
+
+ ElementInitializers.getInstance().init_Comment_3097(newElement);
+
+ doConfigure(newElement, monitor, info);
+
+ ((CreateElementRequest)getRequest()).setNewElement(newElement);
+ return CommandResult.newOKCommandResult(newElement);
+ }
+
+ /**
+ * @generated
+ */
+ protected void doConfigure(Comment newElement, IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+ IElementType elementType = ((CreateElementRequest)getRequest()).getElementType();
+ ConfigureRequest configureRequest = new ConfigureRequest(getEditingDomain(), newElement, elementType);
+ configureRequest.setClientContext(((CreateElementRequest)getRequest()).getClientContext());
+ configureRequest.addParameters(getRequest().getParameters());
+ ICommand configureCommand = elementType.getEditCommand(configureRequest);
+ if(configureCommand != null && configureCommand.canExecute()) {
+ configureCommand.execute(monitor, info);
+ }
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/ComponentCompositeCreateCommand.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/ComponentCompositeCreateCommand.java
new file mode 100644
index 00000000000..056e1e5a810
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/ComponentCompositeCreateCommand.java
@@ -0,0 +1,134 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.commands;
+
+import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gmf.runtime.common.core.command.CommandResult;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ConfigureRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.diagram.composite.providers.ElementInitializers;
+import org.eclipse.uml2.uml.Component;
+import org.eclipse.uml2.uml.Package;
+import org.eclipse.uml2.uml.UMLFactory;
+
+/**
+ * @generated
+ */
+public class ComponentCompositeCreateCommand extends EditElementCommand {
+
+ /**
+ * @generated
+ */
+ private EClass eClass = null;
+
+ /**
+ * @generated
+ */
+ private EObject eObject = null;
+
+ /**
+ * @generated
+ */
+ public ComponentCompositeCreateCommand(CreateElementRequest req, EObject eObject) {
+ super(req.getLabel(), null, req);
+ this.eObject = eObject;
+ this.eClass = eObject != null ? eObject.eClass() : null;
+ }
+
+ /**
+ * @generated
+ */
+ public static ComponentCompositeCreateCommand create(CreateElementRequest req, EObject eObject) {
+ return new ComponentCompositeCreateCommand(req, eObject);
+ }
+
+ /**
+ * @generated
+ */
+ public ComponentCompositeCreateCommand(CreateElementRequest req) {
+ super(req.getLabel(), null, req);
+ }
+
+ /**
+ * FIXME: replace with setElementToEdit()
+ *
+ * @generated
+ */
+ protected EObject getElementToEdit() {
+
+ EObject container = ((CreateElementRequest)getRequest()).getContainer();
+ if(container instanceof View) {
+ container = ((View)container).getElement();
+ }
+ if(container != null) {
+ return container;
+ }
+ return eObject;
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canExecute() {
+
+ // Creation constraint for TopLevelNodes
+ if(!(getElementToEdit() instanceof Package)) {
+ return false;
+ }
+
+ return true;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+
+ Component newElement = UMLFactory.eINSTANCE.createComponent();
+
+ Package owner = (Package)getElementToEdit();
+ owner.getPackagedElements().add(newElement);
+
+ ElementInitializers.getInstance().init_Component_2069(newElement);
+
+ doConfigure(newElement, monitor, info);
+
+ ((CreateElementRequest)getRequest()).setNewElement(newElement);
+ return CommandResult.newOKCommandResult(newElement);
+ }
+
+ /**
+ * @generated
+ */
+ protected void doConfigure(Component newElement, IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+ IElementType elementType = ((CreateElementRequest)getRequest()).getElementType();
+ ConfigureRequest configureRequest = new ConfigureRequest(getEditingDomain(), newElement, elementType);
+ configureRequest.setClientContext(((CreateElementRequest)getRequest()).getClientContext());
+ configureRequest.addParameters(getRequest().getParameters());
+ ICommand configureCommand = elementType.getEditCommand(configureRequest);
+ if(configureCommand != null && configureCommand.canExecute()) {
+ configureCommand.execute(monitor, info);
+ }
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/ComponentCompositeCreateCommandCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/ComponentCompositeCreateCommandCN.java
new file mode 100644
index 00000000000..a055d177a79
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/ComponentCompositeCreateCommandCN.java
@@ -0,0 +1,129 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.commands;
+
+import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gmf.runtime.common.core.command.CommandResult;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ConfigureRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.diagram.composite.providers.ElementInitializers;
+import org.eclipse.uml2.uml.Class;
+import org.eclipse.uml2.uml.Component;
+import org.eclipse.uml2.uml.UMLFactory;
+
+/**
+ * @generated
+ */
+public class ComponentCompositeCreateCommandCN extends EditElementCommand {
+
+ /**
+ * @generated
+ */
+ private EClass eClass = null;
+
+ /**
+ * @generated
+ */
+ private EObject eObject = null;
+
+ /**
+ * @generated
+ */
+ public ComponentCompositeCreateCommandCN(CreateElementRequest req, EObject eObject) {
+ super(req.getLabel(), null, req);
+ this.eObject = eObject;
+ this.eClass = eObject != null ? eObject.eClass() : null;
+ }
+
+ /**
+ * @generated
+ */
+ public static ComponentCompositeCreateCommandCN create(CreateElementRequest req, EObject eObject) {
+ return new ComponentCompositeCreateCommandCN(req, eObject);
+ }
+
+ /**
+ * @generated
+ */
+ public ComponentCompositeCreateCommandCN(CreateElementRequest req) {
+ super(req.getLabel(), null, req);
+ }
+
+ /**
+ * FIXME: replace with setElementToEdit()
+ *
+ * @generated
+ */
+ protected EObject getElementToEdit() {
+
+ EObject container = ((CreateElementRequest)getRequest()).getContainer();
+ if(container instanceof View) {
+ container = ((View)container).getElement();
+ }
+ if(container != null) {
+ return container;
+ }
+ return eObject;
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canExecute() {
+
+ return true;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+
+ Component newElement = UMLFactory.eINSTANCE.createComponent();
+
+ Class owner = (Class)getElementToEdit();
+ owner.getNestedClassifiers().add(newElement);
+
+ ElementInitializers.getInstance().init_Component_3081(newElement);
+
+ doConfigure(newElement, monitor, info);
+
+ ((CreateElementRequest)getRequest()).setNewElement(newElement);
+ return CommandResult.newOKCommandResult(newElement);
+ }
+
+ /**
+ * @generated
+ */
+ protected void doConfigure(Component newElement, IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+ IElementType elementType = ((CreateElementRequest)getRequest()).getElementType();
+ ConfigureRequest configureRequest = new ConfigureRequest(getEditingDomain(), newElement, elementType);
+ configureRequest.setClientContext(((CreateElementRequest)getRequest()).getClientContext());
+ configureRequest.addParameters(getRequest().getParameters());
+ ICommand configureCommand = elementType.getEditCommand(configureRequest);
+ if(configureCommand != null && configureCommand.canExecute()) {
+ configureCommand.execute(monitor, info);
+ }
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/ComponentRealizationCreateCommand.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/ComponentRealizationCreateCommand.java
new file mode 100644
index 00000000000..8ff7bb26698
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/ComponentRealizationCreateCommand.java
@@ -0,0 +1,168 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.commands;
+
+import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gmf.runtime.common.core.command.CommandResult;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ConfigureRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLBaseItemSemanticEditPolicy;
+import org.eclipse.papyrus.diagram.composite.providers.ElementInitializers;
+import org.eclipse.uml2.uml.ComponentRealization;
+import org.eclipse.uml2.uml.NamedElement;
+import org.eclipse.uml2.uml.Package;
+import org.eclipse.uml2.uml.UMLFactory;
+
+/**
+ * @generated
+ */
+public class ComponentRealizationCreateCommand extends EditElementCommand {
+
+ /**
+ * @generated
+ */
+ protected final EObject source;
+
+ /**
+ * @generated
+ */
+ protected final EObject target;
+
+ /**
+ * @generated
+ */
+ protected Package container;
+
+ /**
+ * @generated
+ */
+ public ComponentRealizationCreateCommand(CreateRelationshipRequest request, EObject source, EObject target) {
+ super(request.getLabel(), null, request);
+ this.source = source;
+ this.target = target;
+ container = deduceContainer(source, target);
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canExecute() {
+ if(source == null && target == null) {
+ return false;
+ }
+ if(source != null && false == source instanceof NamedElement) {
+ return false;
+ }
+ if(target != null && false == target instanceof NamedElement) {
+ return false;
+ }
+ if(getSource() == null) {
+ return true; // link creation is in progress; source is not defined yet
+ }
+ // target may be null here but it's possible to check constraint
+ if(getContainer() == null) {
+ return false;
+ }
+ return UMLBaseItemSemanticEditPolicy.getLinkConstraints().canCreateComponentRealization_4004(getContainer(), getSource(), getTarget());
+ }
+
+ /**
+ * @generated
+ */
+ protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+ if(!canExecute()) {
+ throw new ExecutionException("Invalid arguments in create link command"); //$NON-NLS-1$
+ }
+
+ ComponentRealization newElement = UMLFactory.eINSTANCE.createComponentRealization();
+ getContainer().getPackagedElements().add(newElement);
+ newElement.getClients().add(getSource());
+ newElement.getSuppliers().add(getTarget());
+ ElementInitializers.getInstance().init_ComponentRealization_4004(newElement);
+ doConfigure(newElement, monitor, info);
+ ((CreateElementRequest)getRequest()).setNewElement(newElement);
+ return CommandResult.newOKCommandResult(newElement);
+
+ }
+
+ /**
+ * @generated
+ */
+ protected void doConfigure(ComponentRealization newElement, IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+ IElementType elementType = ((CreateElementRequest)getRequest()).getElementType();
+ ConfigureRequest configureRequest = new ConfigureRequest(getEditingDomain(), newElement, elementType);
+ configureRequest.setClientContext(((CreateElementRequest)getRequest()).getClientContext());
+ configureRequest.addParameters(getRequest().getParameters());
+ configureRequest.setParameter(CreateRelationshipRequest.SOURCE, getSource());
+ configureRequest.setParameter(CreateRelationshipRequest.TARGET, getTarget());
+ ICommand configureCommand = elementType.getEditCommand(configureRequest);
+ if(configureCommand != null && configureCommand.canExecute()) {
+ configureCommand.execute(monitor, info);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setElementToEdit(EObject element) {
+ throw new UnsupportedOperationException();
+ }
+
+ /**
+ * @generated
+ */
+ protected NamedElement getSource() {
+ return (NamedElement)source;
+ }
+
+ /**
+ * @generated
+ */
+ protected NamedElement getTarget() {
+ return (NamedElement)target;
+ }
+
+ /**
+ * @generated
+ */
+ public Package getContainer() {
+ return container;
+ }
+
+ /**
+ * Default approach is to traverse ancestors of the source to find instance of container.
+ * Modify with appropriate logic.
+ *
+ * @generated
+ */
+ protected Package deduceContainer(EObject source, EObject target) {
+ // Find container element for the new link.
+ // Climb up by containment hierarchy starting from the source
+ // and return the first element that is instance of the container class.
+ for(EObject element = source; element != null; element = element.eContainer()) {
+ if(element instanceof Package) {
+ return (Package)element;
+ }
+ }
+ return null;
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/ComponentRealizationReorientCommand.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/ComponentRealizationReorientCommand.java
new file mode 100644
index 00000000000..45e320c8f12
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/ComponentRealizationReorientCommand.java
@@ -0,0 +1,178 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.commands;
+
+import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gmf.runtime.common.core.command.CommandResult;
+import org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientRelationshipRequest;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLBaseItemSemanticEditPolicy;
+import org.eclipse.uml2.uml.ComponentRealization;
+import org.eclipse.uml2.uml.NamedElement;
+import org.eclipse.uml2.uml.Package;
+
+/**
+ * @generated
+ */
+public class ComponentRealizationReorientCommand extends EditElementCommand {
+
+ /**
+ * @generated
+ */
+ private final int reorientDirection;
+
+ /**
+ * @generated
+ */
+ private final EObject oldEnd;
+
+ /**
+ * @generated
+ */
+ private final EObject newEnd;
+
+ /**
+ * @generated
+ */
+ public ComponentRealizationReorientCommand(ReorientRelationshipRequest request) {
+ super(request.getLabel(), request.getRelationship(), request);
+ reorientDirection = request.getDirection();
+ oldEnd = request.getOldRelationshipEnd();
+ newEnd = request.getNewRelationshipEnd();
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canExecute() {
+ if(false == getElementToEdit() instanceof ComponentRealization) {
+ return false;
+ }
+ if(reorientDirection == ReorientRelationshipRequest.REORIENT_SOURCE) {
+ return canReorientSource();
+ }
+ if(reorientDirection == ReorientRelationshipRequest.REORIENT_TARGET) {
+ return canReorientTarget();
+ }
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean canReorientSource() {
+ if(!(oldEnd instanceof NamedElement && newEnd instanceof NamedElement)) {
+ return false;
+ }
+ if(getLink().getSuppliers().size() != 1) {
+ return false;
+ }
+ NamedElement target = (NamedElement)getLink().getSuppliers().get(0);
+ if(!(getLink().eContainer() instanceof Package)) {
+ return false;
+ }
+ Package container = (Package)getLink().eContainer();
+ return UMLBaseItemSemanticEditPolicy.getLinkConstraints().canExistComponentRealization_4004(container, getLink(), getNewSource(), target);
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean canReorientTarget() {
+ if(!(oldEnd instanceof NamedElement && newEnd instanceof NamedElement)) {
+ return false;
+ }
+ if(getLink().getClients().size() != 1) {
+ return false;
+ }
+ NamedElement source = (NamedElement)getLink().getClients().get(0);
+ if(!(getLink().eContainer() instanceof Package)) {
+ return false;
+ }
+ Package container = (Package)getLink().eContainer();
+ return UMLBaseItemSemanticEditPolicy.getLinkConstraints().canExistComponentRealization_4004(container, getLink(), source, getNewTarget());
+ }
+
+ /**
+ * @generated
+ */
+ protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+ if(!canExecute()) {
+ throw new ExecutionException("Invalid arguments in reorient link command"); //$NON-NLS-1$
+ }
+ if(reorientDirection == ReorientRelationshipRequest.REORIENT_SOURCE) {
+ return reorientSource();
+ }
+ if(reorientDirection == ReorientRelationshipRequest.REORIENT_TARGET) {
+ return reorientTarget();
+ }
+ throw new IllegalStateException();
+ }
+
+ /**
+ * @generated
+ */
+ protected CommandResult reorientSource() throws ExecutionException {
+ getLink().getClients().remove(getOldSource());
+ getLink().getClients().add(getNewSource());
+ return CommandResult.newOKCommandResult(getLink());
+ }
+
+ /**
+ * @generated
+ */
+ protected CommandResult reorientTarget() throws ExecutionException {
+ getLink().getSuppliers().remove(getOldTarget());
+ getLink().getSuppliers().add(getNewTarget());
+ return CommandResult.newOKCommandResult(getLink());
+ }
+
+ /**
+ * @generated
+ */
+ protected ComponentRealization getLink() {
+ return (ComponentRealization)getElementToEdit();
+ }
+
+ /**
+ * @generated
+ */
+ protected NamedElement getOldSource() {
+ return (NamedElement)oldEnd;
+ }
+
+ /**
+ * @generated
+ */
+ protected NamedElement getNewSource() {
+ return (NamedElement)newEnd;
+ }
+
+ /**
+ * @generated
+ */
+ protected NamedElement getOldTarget() {
+ return (NamedElement)oldEnd;
+ }
+
+ /**
+ * @generated
+ */
+ protected NamedElement getNewTarget() {
+ return (NamedElement)newEnd;
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/ConnectorCreateCommand.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/ConnectorCreateCommand.java
new file mode 100644
index 00000000000..c61bdb4d2ec
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/ConnectorCreateCommand.java
@@ -0,0 +1,168 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.commands;
+
+import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gmf.runtime.common.core.command.CommandResult;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ConfigureRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLBaseItemSemanticEditPolicy;
+import org.eclipse.papyrus.diagram.composite.providers.ElementInitializers;
+import org.eclipse.uml2.uml.Connector;
+import org.eclipse.uml2.uml.ConnectorEnd;
+import org.eclipse.uml2.uml.StructuredClassifier;
+import org.eclipse.uml2.uml.UMLFactory;
+
+/**
+ * @generated
+ */
+public class ConnectorCreateCommand extends EditElementCommand {
+
+ /**
+ * @generated
+ */
+ protected final EObject source;
+
+ /**
+ * @generated
+ */
+ protected final EObject target;
+
+ /**
+ * @generated
+ */
+ protected StructuredClassifier container;
+
+ /**
+ * @generated
+ */
+ public ConnectorCreateCommand(CreateRelationshipRequest request, EObject source, EObject target) {
+ super(request.getLabel(), null, request);
+ this.source = source;
+ this.target = target;
+ container = deduceContainer(source, target);
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canExecute() {
+ if(source == null && target == null) {
+ return false;
+ }
+ if(source != null && false == source instanceof ConnectorEnd) {
+ return false;
+ }
+ if(target != null && false == target instanceof ConnectorEnd) {
+ return false;
+ }
+ if(getSource() == null) {
+ return true; // link creation is in progress; source is not defined yet
+ }
+ // target may be null here but it's possible to check constraint
+ if(getContainer() == null) {
+ return false;
+ }
+ return UMLBaseItemSemanticEditPolicy.getLinkConstraints().canCreateConnector_4013(getContainer(), getSource(), getTarget());
+ }
+
+ /**
+ * @generated
+ */
+ protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+ if(!canExecute()) {
+ throw new ExecutionException("Invalid arguments in create link command"); //$NON-NLS-1$
+ }
+
+ Connector newElement = UMLFactory.eINSTANCE.createConnector();
+ getContainer().getOwnedConnectors().add(newElement);
+ newElement.getEnds().add(getSource());
+ newElement.getEnds().add(getTarget());
+ ElementInitializers.getInstance().init_Connector_4013(newElement);
+ doConfigure(newElement, monitor, info);
+ ((CreateElementRequest)getRequest()).setNewElement(newElement);
+ return CommandResult.newOKCommandResult(newElement);
+
+ }
+
+ /**
+ * @generated
+ */
+ protected void doConfigure(Connector newElement, IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+ IElementType elementType = ((CreateElementRequest)getRequest()).getElementType();
+ ConfigureRequest configureRequest = new ConfigureRequest(getEditingDomain(), newElement, elementType);
+ configureRequest.setClientContext(((CreateElementRequest)getRequest()).getClientContext());
+ configureRequest.addParameters(getRequest().getParameters());
+ configureRequest.setParameter(CreateRelationshipRequest.SOURCE, getSource());
+ configureRequest.setParameter(CreateRelationshipRequest.TARGET, getTarget());
+ ICommand configureCommand = elementType.getEditCommand(configureRequest);
+ if(configureCommand != null && configureCommand.canExecute()) {
+ configureCommand.execute(monitor, info);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setElementToEdit(EObject element) {
+ throw new UnsupportedOperationException();
+ }
+
+ /**
+ * @generated
+ */
+ protected ConnectorEnd getSource() {
+ return (ConnectorEnd)source;
+ }
+
+ /**
+ * @generated
+ */
+ protected ConnectorEnd getTarget() {
+ return (ConnectorEnd)target;
+ }
+
+ /**
+ * @generated
+ */
+ public StructuredClassifier getContainer() {
+ return container;
+ }
+
+ /**
+ * Default approach is to traverse ancestors of the source to find instance of container.
+ * Modify with appropriate logic.
+ *
+ * @generated
+ */
+ protected StructuredClassifier deduceContainer(EObject source, EObject target) {
+ // Find container element for the new link.
+ // Climb up by containment hierarchy starting from the source
+ // and return the first element that is instance of the container class.
+ for(EObject element = source; element != null; element = element.eContainer()) {
+ if(element instanceof StructuredClassifier) {
+ return (StructuredClassifier)element;
+ }
+ }
+ return null;
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/ConnectorReorientCommand.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/ConnectorReorientCommand.java
new file mode 100644
index 00000000000..e702ddc29db
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/ConnectorReorientCommand.java
@@ -0,0 +1,178 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.commands;
+
+import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gmf.runtime.common.core.command.CommandResult;
+import org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientRelationshipRequest;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLBaseItemSemanticEditPolicy;
+import org.eclipse.uml2.uml.Connector;
+import org.eclipse.uml2.uml.ConnectorEnd;
+import org.eclipse.uml2.uml.StructuredClassifier;
+
+/**
+ * @generated
+ */
+public class ConnectorReorientCommand extends EditElementCommand {
+
+ /**
+ * @generated
+ */
+ private final int reorientDirection;
+
+ /**
+ * @generated
+ */
+ private final EObject oldEnd;
+
+ /**
+ * @generated
+ */
+ private final EObject newEnd;
+
+ /**
+ * @generated
+ */
+ public ConnectorReorientCommand(ReorientRelationshipRequest request) {
+ super(request.getLabel(), request.getRelationship(), request);
+ reorientDirection = request.getDirection();
+ oldEnd = request.getOldRelationshipEnd();
+ newEnd = request.getNewRelationshipEnd();
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canExecute() {
+ if(false == getElementToEdit() instanceof Connector) {
+ return false;
+ }
+ if(reorientDirection == ReorientRelationshipRequest.REORIENT_SOURCE) {
+ return canReorientSource();
+ }
+ if(reorientDirection == ReorientRelationshipRequest.REORIENT_TARGET) {
+ return canReorientTarget();
+ }
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean canReorientSource() {
+ if(!(oldEnd instanceof ConnectorEnd && newEnd instanceof ConnectorEnd)) {
+ return false;
+ }
+ if(getLink().getEnds().size() != 1) {
+ return false;
+ }
+ ConnectorEnd target = (ConnectorEnd)getLink().getEnds().get(0);
+ if(!(getLink().eContainer() instanceof StructuredClassifier)) {
+ return false;
+ }
+ StructuredClassifier container = (StructuredClassifier)getLink().eContainer();
+ return UMLBaseItemSemanticEditPolicy.getLinkConstraints().canExistConnector_4013(container, getLink(), getNewSource(), target);
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean canReorientTarget() {
+ if(!(oldEnd instanceof ConnectorEnd && newEnd instanceof ConnectorEnd)) {
+ return false;
+ }
+ if(getLink().getEnds().size() != 1) {
+ return false;
+ }
+ ConnectorEnd source = (ConnectorEnd)getLink().getEnds().get(0);
+ if(!(getLink().eContainer() instanceof StructuredClassifier)) {
+ return false;
+ }
+ StructuredClassifier container = (StructuredClassifier)getLink().eContainer();
+ return UMLBaseItemSemanticEditPolicy.getLinkConstraints().canExistConnector_4013(container, getLink(), source, getNewTarget());
+ }
+
+ /**
+ * @generated
+ */
+ protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+ if(!canExecute()) {
+ throw new ExecutionException("Invalid arguments in reorient link command"); //$NON-NLS-1$
+ }
+ if(reorientDirection == ReorientRelationshipRequest.REORIENT_SOURCE) {
+ return reorientSource();
+ }
+ if(reorientDirection == ReorientRelationshipRequest.REORIENT_TARGET) {
+ return reorientTarget();
+ }
+ throw new IllegalStateException();
+ }
+
+ /**
+ * @generated
+ */
+ protected CommandResult reorientSource() throws ExecutionException {
+ getLink().getEnds().remove(getOldSource());
+ getLink().getEnds().add(getNewSource());
+ return CommandResult.newOKCommandResult(getLink());
+ }
+
+ /**
+ * @generated
+ */
+ protected CommandResult reorientTarget() throws ExecutionException {
+ getLink().getEnds().remove(getOldTarget());
+ getLink().getEnds().add(getNewTarget());
+ return CommandResult.newOKCommandResult(getLink());
+ }
+
+ /**
+ * @generated
+ */
+ protected Connector getLink() {
+ return (Connector)getElementToEdit();
+ }
+
+ /**
+ * @generated
+ */
+ protected ConnectorEnd getOldSource() {
+ return (ConnectorEnd)oldEnd;
+ }
+
+ /**
+ * @generated
+ */
+ protected ConnectorEnd getNewSource() {
+ return (ConnectorEnd)newEnd;
+ }
+
+ /**
+ * @generated
+ */
+ protected ConnectorEnd getOldTarget() {
+ return (ConnectorEnd)oldEnd;
+ }
+
+ /**
+ * @generated
+ */
+ protected ConnectorEnd getNewTarget() {
+ return (ConnectorEnd)newEnd;
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/ConstraintConstrainedElementCreateCommand.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/ConstraintConstrainedElementCreateCommand.java
new file mode 100644
index 00000000000..02a084f534e
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/ConstraintConstrainedElementCreateCommand.java
@@ -0,0 +1,106 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.commands;
+
+import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gmf.runtime.common.core.command.CommandResult;
+import org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLBaseItemSemanticEditPolicy;
+import org.eclipse.uml2.uml.Constraint;
+import org.eclipse.uml2.uml.Element;
+
+/**
+ * @generated
+ */
+public class ConstraintConstrainedElementCreateCommand extends EditElementCommand {
+
+ /**
+ * @generated
+ */
+ protected final EObject source;
+
+ /**
+ * @generated
+ */
+ protected final EObject target;
+
+ /**
+ * @generated
+ */
+ public ConstraintConstrainedElementCreateCommand(CreateRelationshipRequest request, EObject source, EObject target) {
+ super(request.getLabel(), null, request);
+ this.source = source;
+ this.target = target;
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canExecute() {
+ if(source == null && target == null) {
+ return false;
+ }
+ if(source != null && false == source instanceof Constraint) {
+ return false;
+ }
+ if(target != null && false == target instanceof Element) {
+ return false;
+ }
+ if(getSource() == null) {
+ return true; // link creation is in progress; source is not defined yet
+ }
+ // target may be null here but it's possible to check constraint
+ return UMLBaseItemSemanticEditPolicy.getLinkConstraints().canCreateConstraintConstrainedElement_4003(getSource(), getTarget());
+ }
+
+ /**
+ * @generated
+ */
+ protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+ if(!canExecute()) {
+ throw new ExecutionException("Invalid arguments in create link command"); //$NON-NLS-1$
+ }
+
+ if(getSource() != null && getTarget() != null) {
+ getSource().getConstrainedElements().add(getTarget());
+ }
+ return CommandResult.newOKCommandResult();
+
+ }
+
+ /**
+ * @generated
+ */
+ protected void setElementToEdit(EObject element) {
+ throw new UnsupportedOperationException();
+ }
+
+ /**
+ * @generated
+ */
+ protected Constraint getSource() {
+ return (Constraint)source;
+ }
+
+ /**
+ * @generated
+ */
+ protected Element getTarget() {
+ return (Element)target;
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/ConstraintConstrainedElementReorientCommand.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/ConstraintConstrainedElementReorientCommand.java
new file mode 100644
index 00000000000..391a715ff95
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/ConstraintConstrainedElementReorientCommand.java
@@ -0,0 +1,161 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.commands;
+
+import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gmf.runtime.common.core.command.CommandResult;
+import org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientReferenceRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientRelationshipRequest;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLBaseItemSemanticEditPolicy;
+import org.eclipse.uml2.uml.Constraint;
+import org.eclipse.uml2.uml.Element;
+
+/**
+ * @generated
+ */
+public class ConstraintConstrainedElementReorientCommand extends EditElementCommand {
+
+ /**
+ * @generated
+ */
+ private final int reorientDirection;
+
+ /**
+ * @generated
+ */
+ private final EObject referenceOwner;
+
+ /**
+ * @generated
+ */
+ private final EObject oldEnd;
+
+ /**
+ * @generated
+ */
+ private final EObject newEnd;
+
+ /**
+ * @generated
+ */
+ public ConstraintConstrainedElementReorientCommand(ReorientReferenceRelationshipRequest request) {
+ super(request.getLabel(), null, request);
+ reorientDirection = request.getDirection();
+ referenceOwner = request.getReferenceOwner();
+ oldEnd = request.getOldRelationshipEnd();
+ newEnd = request.getNewRelationshipEnd();
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canExecute() {
+ if(false == referenceOwner instanceof Constraint) {
+ return false;
+ }
+ if(reorientDirection == ReorientRelationshipRequest.REORIENT_SOURCE) {
+ return canReorientSource();
+ }
+ if(reorientDirection == ReorientRelationshipRequest.REORIENT_TARGET) {
+ return canReorientTarget();
+ }
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean canReorientSource() {
+ if(!(oldEnd instanceof Element && newEnd instanceof Constraint)) {
+ return false;
+ }
+ return UMLBaseItemSemanticEditPolicy.getLinkConstraints().canExistConstraintConstrainedElement_4003(getNewSource(), getOldTarget());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean canReorientTarget() {
+ if(!(oldEnd instanceof Element && newEnd instanceof Element)) {
+ return false;
+ }
+ return UMLBaseItemSemanticEditPolicy.getLinkConstraints().canExistConstraintConstrainedElement_4003(getOldSource(), getNewTarget());
+ }
+
+ /**
+ * @generated
+ */
+ protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+ if(!canExecute()) {
+ throw new ExecutionException("Invalid arguments in reorient link command"); //$NON-NLS-1$
+ }
+ if(reorientDirection == ReorientRelationshipRequest.REORIENT_SOURCE) {
+ return reorientSource();
+ }
+ if(reorientDirection == ReorientRelationshipRequest.REORIENT_TARGET) {
+ return reorientTarget();
+ }
+ throw new IllegalStateException();
+ }
+
+ /**
+ * @generated
+ */
+ protected CommandResult reorientSource() throws ExecutionException {
+ getOldSource().getConstrainedElements().remove(getOldTarget());
+ getNewSource().getConstrainedElements().add(getOldTarget());
+ return CommandResult.newOKCommandResult(referenceOwner);
+ }
+
+ /**
+ * @generated
+ */
+ protected CommandResult reorientTarget() throws ExecutionException {
+ getOldSource().getConstrainedElements().remove(getOldTarget());
+ getOldSource().getConstrainedElements().add(getNewTarget());
+ return CommandResult.newOKCommandResult(referenceOwner);
+ }
+
+ /**
+ * @generated
+ */
+ protected Constraint getOldSource() {
+ return (Constraint)referenceOwner;
+ }
+
+ /**
+ * @generated
+ */
+ protected Constraint getNewSource() {
+ return (Constraint)newEnd;
+ }
+
+ /**
+ * @generated
+ */
+ protected Element getOldTarget() {
+ return (Element)oldEnd;
+ }
+
+ /**
+ * @generated
+ */
+ protected Element getNewTarget() {
+ return (Element)newEnd;
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/ConstraintCreateCommand.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/ConstraintCreateCommand.java
new file mode 100644
index 00000000000..29d3cd1420b
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/ConstraintCreateCommand.java
@@ -0,0 +1,135 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.commands;
+
+import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gmf.runtime.common.core.command.CommandResult;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ConfigureRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.diagram.composite.providers.ElementInitializers;
+import org.eclipse.uml2.uml.Constraint;
+import org.eclipse.uml2.uml.Namespace;
+import org.eclipse.uml2.uml.Package;
+import org.eclipse.uml2.uml.UMLFactory;
+
+/**
+ * @generated
+ */
+public class ConstraintCreateCommand extends EditElementCommand {
+
+ /**
+ * @generated
+ */
+ private EClass eClass = null;
+
+ /**
+ * @generated
+ */
+ private EObject eObject = null;
+
+ /**
+ * @generated
+ */
+ public ConstraintCreateCommand(CreateElementRequest req, EObject eObject) {
+ super(req.getLabel(), null, req);
+ this.eObject = eObject;
+ this.eClass = eObject != null ? eObject.eClass() : null;
+ }
+
+ /**
+ * @generated
+ */
+ public static ConstraintCreateCommand create(CreateElementRequest req, EObject eObject) {
+ return new ConstraintCreateCommand(req, eObject);
+ }
+
+ /**
+ * @generated
+ */
+ public ConstraintCreateCommand(CreateElementRequest req) {
+ super(req.getLabel(), null, req);
+ }
+
+ /**
+ * FIXME: replace with setElementToEdit()
+ *
+ * @generated
+ */
+ protected EObject getElementToEdit() {
+
+ EObject container = ((CreateElementRequest)getRequest()).getContainer();
+ if(container instanceof View) {
+ container = ((View)container).getElement();
+ }
+ if(container != null) {
+ return container;
+ }
+ return eObject;
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canExecute() {
+
+ // Creation constraint for TopLevelNodes
+ if(!(getElementToEdit() instanceof Package)) {
+ return false;
+ }
+
+ return true;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+
+ Constraint newElement = UMLFactory.eINSTANCE.createConstraint();
+
+ Namespace owner = (Namespace)getElementToEdit();
+ owner.getOwnedRules().add(newElement);
+
+ ElementInitializers.getInstance().init_Constraint_2114(newElement);
+
+ doConfigure(newElement, monitor, info);
+
+ ((CreateElementRequest)getRequest()).setNewElement(newElement);
+ return CommandResult.newOKCommandResult(newElement);
+ }
+
+ /**
+ * @generated
+ */
+ protected void doConfigure(Constraint newElement, IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+ IElementType elementType = ((CreateElementRequest)getRequest()).getElementType();
+ ConfigureRequest configureRequest = new ConfigureRequest(getEditingDomain(), newElement, elementType);
+ configureRequest.setClientContext(((CreateElementRequest)getRequest()).getClientContext());
+ configureRequest.addParameters(getRequest().getParameters());
+ ICommand configureCommand = elementType.getEditCommand(configureRequest);
+ if(configureCommand != null && configureCommand.canExecute()) {
+ configureCommand.execute(monitor, info);
+ }
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/ConstraintCreateCommandCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/ConstraintCreateCommandCN.java
new file mode 100644
index 00000000000..0fb341a5ef5
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/ConstraintCreateCommandCN.java
@@ -0,0 +1,129 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.commands;
+
+import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gmf.runtime.common.core.command.CommandResult;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ConfigureRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.diagram.composite.providers.ElementInitializers;
+import org.eclipse.uml2.uml.Constraint;
+import org.eclipse.uml2.uml.Namespace;
+import org.eclipse.uml2.uml.UMLFactory;
+
+/**
+ * @generated
+ */
+public class ConstraintCreateCommandCN extends EditElementCommand {
+
+ /**
+ * @generated
+ */
+ private EClass eClass = null;
+
+ /**
+ * @generated
+ */
+ private EObject eObject = null;
+
+ /**
+ * @generated
+ */
+ public ConstraintCreateCommandCN(CreateElementRequest req, EObject eObject) {
+ super(req.getLabel(), null, req);
+ this.eObject = eObject;
+ this.eClass = eObject != null ? eObject.eClass() : null;
+ }
+
+ /**
+ * @generated
+ */
+ public static ConstraintCreateCommandCN create(CreateElementRequest req, EObject eObject) {
+ return new ConstraintCreateCommandCN(req, eObject);
+ }
+
+ /**
+ * @generated
+ */
+ public ConstraintCreateCommandCN(CreateElementRequest req) {
+ super(req.getLabel(), null, req);
+ }
+
+ /**
+ * FIXME: replace with setElementToEdit()
+ *
+ * @generated
+ */
+ protected EObject getElementToEdit() {
+
+ EObject container = ((CreateElementRequest)getRequest()).getContainer();
+ if(container instanceof View) {
+ container = ((View)container).getElement();
+ }
+ if(container != null) {
+ return container;
+ }
+ return eObject;
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canExecute() {
+
+ return true;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+
+ Constraint newElement = UMLFactory.eINSTANCE.createConstraint();
+
+ Namespace owner = (Namespace)getElementToEdit();
+ owner.getOwnedRules().add(newElement);
+
+ ElementInitializers.getInstance().init_Constraint_3120(newElement);
+
+ doConfigure(newElement, monitor, info);
+
+ ((CreateElementRequest)getRequest()).setNewElement(newElement);
+ return CommandResult.newOKCommandResult(newElement);
+ }
+
+ /**
+ * @generated
+ */
+ protected void doConfigure(Constraint newElement, IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+ IElementType elementType = ((CreateElementRequest)getRequest()).getElementType();
+ ConfigureRequest configureRequest = new ConfigureRequest(getEditingDomain(), newElement, elementType);
+ configureRequest.setClientContext(((CreateElementRequest)getRequest()).getClientContext());
+ configureRequest.addParameters(getRequest().getParameters());
+ ICommand configureCommand = elementType.getEditCommand(configureRequest);
+ if(configureCommand != null && configureCommand.canExecute()) {
+ configureCommand.execute(monitor, info);
+ }
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/CreationEventCreateCommand.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/CreationEventCreateCommand.java
new file mode 100644
index 00000000000..77237dad951
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/CreationEventCreateCommand.java
@@ -0,0 +1,134 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.commands;
+
+import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gmf.runtime.common.core.command.CommandResult;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ConfigureRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.diagram.composite.providers.ElementInitializers;
+import org.eclipse.uml2.uml.CreationEvent;
+import org.eclipse.uml2.uml.Package;
+import org.eclipse.uml2.uml.UMLFactory;
+
+/**
+ * @generated
+ */
+public class CreationEventCreateCommand extends EditElementCommand {
+
+ /**
+ * @generated
+ */
+ private EClass eClass = null;
+
+ /**
+ * @generated
+ */
+ private EObject eObject = null;
+
+ /**
+ * @generated
+ */
+ public CreationEventCreateCommand(CreateElementRequest req, EObject eObject) {
+ super(req.getLabel(), null, req);
+ this.eObject = eObject;
+ this.eClass = eObject != null ? eObject.eClass() : null;
+ }
+
+ /**
+ * @generated
+ */
+ public static CreationEventCreateCommand create(CreateElementRequest req, EObject eObject) {
+ return new CreationEventCreateCommand(req, eObject);
+ }
+
+ /**
+ * @generated
+ */
+ public CreationEventCreateCommand(CreateElementRequest req) {
+ super(req.getLabel(), null, req);
+ }
+
+ /**
+ * FIXME: replace with setElementToEdit()
+ *
+ * @generated
+ */
+ protected EObject getElementToEdit() {
+
+ EObject container = ((CreateElementRequest)getRequest()).getContainer();
+ if(container instanceof View) {
+ container = ((View)container).getElement();
+ }
+ if(container != null) {
+ return container;
+ }
+ return eObject;
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canExecute() {
+
+ // Creation constraint for TopLevelNodes
+ if(!(getElementToEdit() instanceof Package)) {
+ return false;
+ }
+
+ return true;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+
+ CreationEvent newElement = UMLFactory.eINSTANCE.createCreationEvent();
+
+ Package owner = (Package)getElementToEdit();
+ owner.getPackagedElements().add(newElement);
+
+ ElementInitializers.getInstance().init_CreationEvent_2090(newElement);
+
+ doConfigure(newElement, monitor, info);
+
+ ((CreateElementRequest)getRequest()).setNewElement(newElement);
+ return CommandResult.newOKCommandResult(newElement);
+ }
+
+ /**
+ * @generated
+ */
+ protected void doConfigure(CreationEvent newElement, IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+ IElementType elementType = ((CreateElementRequest)getRequest()).getElementType();
+ ConfigureRequest configureRequest = new ConfigureRequest(getEditingDomain(), newElement, elementType);
+ configureRequest.setClientContext(((CreateElementRequest)getRequest()).getClientContext());
+ configureRequest.addParameters(getRequest().getParameters());
+ ICommand configureCommand = elementType.getEditCommand(configureRequest);
+ if(configureCommand != null && configureCommand.canExecute()) {
+ configureCommand.execute(monitor, info);
+ }
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/DataTypeCreateCommand.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/DataTypeCreateCommand.java
new file mode 100644
index 00000000000..6d1d7d12940
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/DataTypeCreateCommand.java
@@ -0,0 +1,134 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.commands;
+
+import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gmf.runtime.common.core.command.CommandResult;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ConfigureRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.diagram.composite.providers.ElementInitializers;
+import org.eclipse.uml2.uml.DataType;
+import org.eclipse.uml2.uml.Package;
+import org.eclipse.uml2.uml.UMLFactory;
+
+/**
+ * @generated
+ */
+public class DataTypeCreateCommand extends EditElementCommand {
+
+ /**
+ * @generated
+ */
+ private EClass eClass = null;
+
+ /**
+ * @generated
+ */
+ private EObject eObject = null;
+
+ /**
+ * @generated
+ */
+ public DataTypeCreateCommand(CreateElementRequest req, EObject eObject) {
+ super(req.getLabel(), null, req);
+ this.eObject = eObject;
+ this.eClass = eObject != null ? eObject.eClass() : null;
+ }
+
+ /**
+ * @generated
+ */
+ public static DataTypeCreateCommand create(CreateElementRequest req, EObject eObject) {
+ return new DataTypeCreateCommand(req, eObject);
+ }
+
+ /**
+ * @generated
+ */
+ public DataTypeCreateCommand(CreateElementRequest req) {
+ super(req.getLabel(), null, req);
+ }
+
+ /**
+ * FIXME: replace with setElementToEdit()
+ *
+ * @generated
+ */
+ protected EObject getElementToEdit() {
+
+ EObject container = ((CreateElementRequest)getRequest()).getContainer();
+ if(container instanceof View) {
+ container = ((View)container).getElement();
+ }
+ if(container != null) {
+ return container;
+ }
+ return eObject;
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canExecute() {
+
+ // Creation constraint for TopLevelNodes
+ if(!(getElementToEdit() instanceof Package)) {
+ return false;
+ }
+
+ return true;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+
+ DataType newElement = UMLFactory.eINSTANCE.createDataType();
+
+ Package owner = (Package)getElementToEdit();
+ owner.getPackagedElements().add(newElement);
+
+ ElementInitializers.getInstance().init_DataType_2068(newElement);
+
+ doConfigure(newElement, monitor, info);
+
+ ((CreateElementRequest)getRequest()).setNewElement(newElement);
+ return CommandResult.newOKCommandResult(newElement);
+ }
+
+ /**
+ * @generated
+ */
+ protected void doConfigure(DataType newElement, IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+ IElementType elementType = ((CreateElementRequest)getRequest()).getElementType();
+ ConfigureRequest configureRequest = new ConfigureRequest(getEditingDomain(), newElement, elementType);
+ configureRequest.setClientContext(((CreateElementRequest)getRequest()).getClientContext());
+ configureRequest.addParameters(getRequest().getParameters());
+ ICommand configureCommand = elementType.getEditCommand(configureRequest);
+ if(configureCommand != null && configureCommand.canExecute()) {
+ configureCommand.execute(monitor, info);
+ }
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/DataTypeCreateCommandCLN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/DataTypeCreateCommandCLN.java
new file mode 100644
index 00000000000..4f8a6f57c9a
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/DataTypeCreateCommandCLN.java
@@ -0,0 +1,129 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.commands;
+
+import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gmf.runtime.common.core.command.CommandResult;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ConfigureRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.diagram.composite.providers.ElementInitializers;
+import org.eclipse.uml2.uml.Class;
+import org.eclipse.uml2.uml.DataType;
+import org.eclipse.uml2.uml.UMLFactory;
+
+/**
+ * @generated
+ */
+public class DataTypeCreateCommandCLN extends EditElementCommand {
+
+ /**
+ * @generated
+ */
+ private EClass eClass = null;
+
+ /**
+ * @generated
+ */
+ private EObject eObject = null;
+
+ /**
+ * @generated
+ */
+ public DataTypeCreateCommandCLN(CreateElementRequest req, EObject eObject) {
+ super(req.getLabel(), null, req);
+ this.eObject = eObject;
+ this.eClass = eObject != null ? eObject.eClass() : null;
+ }
+
+ /**
+ * @generated
+ */
+ public static DataTypeCreateCommandCLN create(CreateElementRequest req, EObject eObject) {
+ return new DataTypeCreateCommandCLN(req, eObject);
+ }
+
+ /**
+ * @generated
+ */
+ public DataTypeCreateCommandCLN(CreateElementRequest req) {
+ super(req.getLabel(), null, req);
+ }
+
+ /**
+ * FIXME: replace with setElementToEdit()
+ *
+ * @generated
+ */
+ protected EObject getElementToEdit() {
+
+ EObject container = ((CreateElementRequest)getRequest()).getContainer();
+ if(container instanceof View) {
+ container = ((View)container).getElement();
+ }
+ if(container != null) {
+ return container;
+ }
+ return eObject;
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canExecute() {
+
+ return true;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+
+ DataType newElement = UMLFactory.eINSTANCE.createDataType();
+
+ Class owner = (Class)getElementToEdit();
+ owner.getNestedClassifiers().add(newElement);
+
+ ElementInitializers.getInstance().init_DataType_3113(newElement);
+
+ doConfigure(newElement, monitor, info);
+
+ ((CreateElementRequest)getRequest()).setNewElement(newElement);
+ return CommandResult.newOKCommandResult(newElement);
+ }
+
+ /**
+ * @generated
+ */
+ protected void doConfigure(DataType newElement, IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+ IElementType elementType = ((CreateElementRequest)getRequest()).getElementType();
+ ConfigureRequest configureRequest = new ConfigureRequest(getEditingDomain(), newElement, elementType);
+ configureRequest.setClientContext(((CreateElementRequest)getRequest()).getClientContext());
+ configureRequest.addParameters(getRequest().getParameters());
+ ICommand configureCommand = elementType.getEditCommand(configureRequest);
+ if(configureCommand != null && configureCommand.canExecute()) {
+ configureCommand.execute(monitor, info);
+ }
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/DataTypeCreateCommandCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/DataTypeCreateCommandCN.java
new file mode 100644
index 00000000000..cd0e20b7baf
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/DataTypeCreateCommandCN.java
@@ -0,0 +1,129 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.commands;
+
+import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gmf.runtime.common.core.command.CommandResult;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ConfigureRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.diagram.composite.providers.ElementInitializers;
+import org.eclipse.uml2.uml.Class;
+import org.eclipse.uml2.uml.DataType;
+import org.eclipse.uml2.uml.UMLFactory;
+
+/**
+ * @generated
+ */
+public class DataTypeCreateCommandCN extends EditElementCommand {
+
+ /**
+ * @generated
+ */
+ private EClass eClass = null;
+
+ /**
+ * @generated
+ */
+ private EObject eObject = null;
+
+ /**
+ * @generated
+ */
+ public DataTypeCreateCommandCN(CreateElementRequest req, EObject eObject) {
+ super(req.getLabel(), null, req);
+ this.eObject = eObject;
+ this.eClass = eObject != null ? eObject.eClass() : null;
+ }
+
+ /**
+ * @generated
+ */
+ public static DataTypeCreateCommandCN create(CreateElementRequest req, EObject eObject) {
+ return new DataTypeCreateCommandCN(req, eObject);
+ }
+
+ /**
+ * @generated
+ */
+ public DataTypeCreateCommandCN(CreateElementRequest req) {
+ super(req.getLabel(), null, req);
+ }
+
+ /**
+ * FIXME: replace with setElementToEdit()
+ *
+ * @generated
+ */
+ protected EObject getElementToEdit() {
+
+ EObject container = ((CreateElementRequest)getRequest()).getContainer();
+ if(container instanceof View) {
+ container = ((View)container).getElement();
+ }
+ if(container != null) {
+ return container;
+ }
+ return eObject;
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canExecute() {
+
+ return true;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+
+ DataType newElement = UMLFactory.eINSTANCE.createDataType();
+
+ Class owner = (Class)getElementToEdit();
+ owner.getNestedClassifiers().add(newElement);
+
+ ElementInitializers.getInstance().init_DataType_3080(newElement);
+
+ doConfigure(newElement, monitor, info);
+
+ ((CreateElementRequest)getRequest()).setNewElement(newElement);
+ return CommandResult.newOKCommandResult(newElement);
+ }
+
+ /**
+ * @generated
+ */
+ protected void doConfigure(DataType newElement, IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+ IElementType elementType = ((CreateElementRequest)getRequest()).getElementType();
+ ConfigureRequest configureRequest = new ConfigureRequest(getEditingDomain(), newElement, elementType);
+ configureRequest.setClientContext(((CreateElementRequest)getRequest()).getClientContext());
+ configureRequest.addParameters(getRequest().getParameters());
+ ICommand configureCommand = elementType.getEditCommand(configureRequest);
+ if(configureCommand != null && configureCommand.canExecute()) {
+ configureCommand.execute(monitor, info);
+ }
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/DependencyCreateCommand.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/DependencyCreateCommand.java
new file mode 100644
index 00000000000..be60995178e
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/DependencyCreateCommand.java
@@ -0,0 +1,168 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.commands;
+
+import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gmf.runtime.common.core.command.CommandResult;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ConfigureRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLBaseItemSemanticEditPolicy;
+import org.eclipse.papyrus.diagram.composite.providers.ElementInitializers;
+import org.eclipse.uml2.uml.Dependency;
+import org.eclipse.uml2.uml.NamedElement;
+import org.eclipse.uml2.uml.Package;
+import org.eclipse.uml2.uml.UMLFactory;
+
+/**
+ * @generated
+ */
+public class DependencyCreateCommand extends EditElementCommand {
+
+ /**
+ * @generated
+ */
+ protected final EObject source;
+
+ /**
+ * @generated
+ */
+ protected final EObject target;
+
+ /**
+ * @generated
+ */
+ protected Package container;
+
+ /**
+ * @generated
+ */
+ public DependencyCreateCommand(CreateRelationshipRequest request, EObject source, EObject target) {
+ super(request.getLabel(), null, request);
+ this.source = source;
+ this.target = target;
+ container = deduceContainer(source, target);
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canExecute() {
+ if(source == null && target == null) {
+ return false;
+ }
+ if(source != null && false == source instanceof NamedElement) {
+ return false;
+ }
+ if(target != null && false == target instanceof NamedElement) {
+ return false;
+ }
+ if(getSource() == null) {
+ return true; // link creation is in progress; source is not defined yet
+ }
+ // target may be null here but it's possible to check constraint
+ if(getContainer() == null) {
+ return false;
+ }
+ return UMLBaseItemSemanticEditPolicy.getLinkConstraints().canCreateDependency_4010(getContainer(), getSource(), getTarget());
+ }
+
+ /**
+ * @generated
+ */
+ protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+ if(!canExecute()) {
+ throw new ExecutionException("Invalid arguments in create link command"); //$NON-NLS-1$
+ }
+
+ Dependency newElement = UMLFactory.eINSTANCE.createDependency();
+ getContainer().getPackagedElements().add(newElement);
+ newElement.getClients().add(getSource());
+ newElement.getSuppliers().add(getTarget());
+ ElementInitializers.getInstance().init_Dependency_4010(newElement);
+ doConfigure(newElement, monitor, info);
+ ((CreateElementRequest)getRequest()).setNewElement(newElement);
+ return CommandResult.newOKCommandResult(newElement);
+
+ }
+
+ /**
+ * @generated
+ */
+ protected void doConfigure(Dependency newElement, IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+ IElementType elementType = ((CreateElementRequest)getRequest()).getElementType();
+ ConfigureRequest configureRequest = new ConfigureRequest(getEditingDomain(), newElement, elementType);
+ configureRequest.setClientContext(((CreateElementRequest)getRequest()).getClientContext());
+ configureRequest.addParameters(getRequest().getParameters());
+ configureRequest.setParameter(CreateRelationshipRequest.SOURCE, getSource());
+ configureRequest.setParameter(CreateRelationshipRequest.TARGET, getTarget());
+ ICommand configureCommand = elementType.getEditCommand(configureRequest);
+ if(configureCommand != null && configureCommand.canExecute()) {
+ configureCommand.execute(monitor, info);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setElementToEdit(EObject element) {
+ throw new UnsupportedOperationException();
+ }
+
+ /**
+ * @generated
+ */
+ protected NamedElement getSource() {
+ return (NamedElement)source;
+ }
+
+ /**
+ * @generated
+ */
+ protected NamedElement getTarget() {
+ return (NamedElement)target;
+ }
+
+ /**
+ * @generated
+ */
+ public Package getContainer() {
+ return container;
+ }
+
+ /**
+ * Default approach is to traverse ancestors of the source to find instance of container.
+ * Modify with appropriate logic.
+ *
+ * @generated
+ */
+ protected Package deduceContainer(EObject source, EObject target) {
+ // Find container element for the new link.
+ // Climb up by containment hierarchy starting from the source
+ // and return the first element that is instance of the container class.
+ for(EObject element = source; element != null; element = element.eContainer()) {
+ if(element instanceof Package) {
+ return (Package)element;
+ }
+ }
+ return null;
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/DependencyReorientCommand.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/DependencyReorientCommand.java
new file mode 100644
index 00000000000..08625a93383
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/DependencyReorientCommand.java
@@ -0,0 +1,178 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.commands;
+
+import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gmf.runtime.common.core.command.CommandResult;
+import org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientRelationshipRequest;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLBaseItemSemanticEditPolicy;
+import org.eclipse.uml2.uml.Dependency;
+import org.eclipse.uml2.uml.NamedElement;
+import org.eclipse.uml2.uml.Package;
+
+/**
+ * @generated
+ */
+public class DependencyReorientCommand extends EditElementCommand {
+
+ /**
+ * @generated
+ */
+ private final int reorientDirection;
+
+ /**
+ * @generated
+ */
+ private final EObject oldEnd;
+
+ /**
+ * @generated
+ */
+ private final EObject newEnd;
+
+ /**
+ * @generated
+ */
+ public DependencyReorientCommand(ReorientRelationshipRequest request) {
+ super(request.getLabel(), request.getRelationship(), request);
+ reorientDirection = request.getDirection();
+ oldEnd = request.getOldRelationshipEnd();
+ newEnd = request.getNewRelationshipEnd();
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canExecute() {
+ if(false == getElementToEdit() instanceof Dependency) {
+ return false;
+ }
+ if(reorientDirection == ReorientRelationshipRequest.REORIENT_SOURCE) {
+ return canReorientSource();
+ }
+ if(reorientDirection == ReorientRelationshipRequest.REORIENT_TARGET) {
+ return canReorientTarget();
+ }
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean canReorientSource() {
+ if(!(oldEnd instanceof NamedElement && newEnd instanceof NamedElement)) {
+ return false;
+ }
+ if(getLink().getSuppliers().size() != 1) {
+ return false;
+ }
+ NamedElement target = (NamedElement)getLink().getSuppliers().get(0);
+ if(!(getLink().eContainer() instanceof Package)) {
+ return false;
+ }
+ Package container = (Package)getLink().eContainer();
+ return UMLBaseItemSemanticEditPolicy.getLinkConstraints().canExistDependency_4010(container, getLink(), getNewSource(), target);
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean canReorientTarget() {
+ if(!(oldEnd instanceof NamedElement && newEnd instanceof NamedElement)) {
+ return false;
+ }
+ if(getLink().getClients().size() != 1) {
+ return false;
+ }
+ NamedElement source = (NamedElement)getLink().getClients().get(0);
+ if(!(getLink().eContainer() instanceof Package)) {
+ return false;
+ }
+ Package container = (Package)getLink().eContainer();
+ return UMLBaseItemSemanticEditPolicy.getLinkConstraints().canExistDependency_4010(container, getLink(), source, getNewTarget());
+ }
+
+ /**
+ * @generated
+ */
+ protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+ if(!canExecute()) {
+ throw new ExecutionException("Invalid arguments in reorient link command"); //$NON-NLS-1$
+ }
+ if(reorientDirection == ReorientRelationshipRequest.REORIENT_SOURCE) {
+ return reorientSource();
+ }
+ if(reorientDirection == ReorientRelationshipRequest.REORIENT_TARGET) {
+ return reorientTarget();
+ }
+ throw new IllegalStateException();
+ }
+
+ /**
+ * @generated
+ */
+ protected CommandResult reorientSource() throws ExecutionException {
+ getLink().getClients().remove(getOldSource());
+ getLink().getClients().add(getNewSource());
+ return CommandResult.newOKCommandResult(getLink());
+ }
+
+ /**
+ * @generated
+ */
+ protected CommandResult reorientTarget() throws ExecutionException {
+ getLink().getSuppliers().remove(getOldTarget());
+ getLink().getSuppliers().add(getNewTarget());
+ return CommandResult.newOKCommandResult(getLink());
+ }
+
+ /**
+ * @generated
+ */
+ protected Dependency getLink() {
+ return (Dependency)getElementToEdit();
+ }
+
+ /**
+ * @generated
+ */
+ protected NamedElement getOldSource() {
+ return (NamedElement)oldEnd;
+ }
+
+ /**
+ * @generated
+ */
+ protected NamedElement getNewSource() {
+ return (NamedElement)newEnd;
+ }
+
+ /**
+ * @generated
+ */
+ protected NamedElement getOldTarget() {
+ return (NamedElement)oldEnd;
+ }
+
+ /**
+ * @generated
+ */
+ protected NamedElement getNewTarget() {
+ return (NamedElement)newEnd;
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/DeploymentCreateCommand.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/DeploymentCreateCommand.java
new file mode 100644
index 00000000000..ee645fba07f
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/DeploymentCreateCommand.java
@@ -0,0 +1,168 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.commands;
+
+import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gmf.runtime.common.core.command.CommandResult;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ConfigureRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLBaseItemSemanticEditPolicy;
+import org.eclipse.papyrus.diagram.composite.providers.ElementInitializers;
+import org.eclipse.uml2.uml.Deployment;
+import org.eclipse.uml2.uml.NamedElement;
+import org.eclipse.uml2.uml.Package;
+import org.eclipse.uml2.uml.UMLFactory;
+
+/**
+ * @generated
+ */
+public class DeploymentCreateCommand extends EditElementCommand {
+
+ /**
+ * @generated
+ */
+ protected final EObject source;
+
+ /**
+ * @generated
+ */
+ protected final EObject target;
+
+ /**
+ * @generated
+ */
+ protected Package container;
+
+ /**
+ * @generated
+ */
+ public DeploymentCreateCommand(CreateRelationshipRequest request, EObject source, EObject target) {
+ super(request.getLabel(), null, request);
+ this.source = source;
+ this.target = target;
+ container = deduceContainer(source, target);
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canExecute() {
+ if(source == null && target == null) {
+ return false;
+ }
+ if(source != null && false == source instanceof NamedElement) {
+ return false;
+ }
+ if(target != null && false == target instanceof NamedElement) {
+ return false;
+ }
+ if(getSource() == null) {
+ return true; // link creation is in progress; source is not defined yet
+ }
+ // target may be null here but it's possible to check constraint
+ if(getContainer() == null) {
+ return false;
+ }
+ return UMLBaseItemSemanticEditPolicy.getLinkConstraints().canCreateDeployment_4009(getContainer(), getSource(), getTarget());
+ }
+
+ /**
+ * @generated
+ */
+ protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+ if(!canExecute()) {
+ throw new ExecutionException("Invalid arguments in create link command"); //$NON-NLS-1$
+ }
+
+ Deployment newElement = UMLFactory.eINSTANCE.createDeployment();
+ getContainer().getPackagedElements().add(newElement);
+ newElement.getClients().add(getSource());
+ newElement.getSuppliers().add(getTarget());
+ ElementInitializers.getInstance().init_Deployment_4009(newElement);
+ doConfigure(newElement, monitor, info);
+ ((CreateElementRequest)getRequest()).setNewElement(newElement);
+ return CommandResult.newOKCommandResult(newElement);
+
+ }
+
+ /**
+ * @generated
+ */
+ protected void doConfigure(Deployment newElement, IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+ IElementType elementType = ((CreateElementRequest)getRequest()).getElementType();
+ ConfigureRequest configureRequest = new ConfigureRequest(getEditingDomain(), newElement, elementType);
+ configureRequest.setClientContext(((CreateElementRequest)getRequest()).getClientContext());
+ configureRequest.addParameters(getRequest().getParameters());
+ configureRequest.setParameter(CreateRelationshipRequest.SOURCE, getSource());
+ configureRequest.setParameter(CreateRelationshipRequest.TARGET, getTarget());
+ ICommand configureCommand = elementType.getEditCommand(configureRequest);
+ if(configureCommand != null && configureCommand.canExecute()) {
+ configureCommand.execute(monitor, info);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setElementToEdit(EObject element) {
+ throw new UnsupportedOperationException();
+ }
+
+ /**
+ * @generated
+ */
+ protected NamedElement getSource() {
+ return (NamedElement)source;
+ }
+
+ /**
+ * @generated
+ */
+ protected NamedElement getTarget() {
+ return (NamedElement)target;
+ }
+
+ /**
+ * @generated
+ */
+ public Package getContainer() {
+ return container;
+ }
+
+ /**
+ * Default approach is to traverse ancestors of the source to find instance of container.
+ * Modify with appropriate logic.
+ *
+ * @generated
+ */
+ protected Package deduceContainer(EObject source, EObject target) {
+ // Find container element for the new link.
+ // Climb up by containment hierarchy starting from the source
+ // and return the first element that is instance of the container class.
+ for(EObject element = source; element != null; element = element.eContainer()) {
+ if(element instanceof Package) {
+ return (Package)element;
+ }
+ }
+ return null;
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/DeploymentReorientCommand.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/DeploymentReorientCommand.java
new file mode 100644
index 00000000000..68a1e5e70ea
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/DeploymentReorientCommand.java
@@ -0,0 +1,178 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.commands;
+
+import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gmf.runtime.common.core.command.CommandResult;
+import org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientRelationshipRequest;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLBaseItemSemanticEditPolicy;
+import org.eclipse.uml2.uml.Deployment;
+import org.eclipse.uml2.uml.NamedElement;
+import org.eclipse.uml2.uml.Package;
+
+/**
+ * @generated
+ */
+public class DeploymentReorientCommand extends EditElementCommand {
+
+ /**
+ * @generated
+ */
+ private final int reorientDirection;
+
+ /**
+ * @generated
+ */
+ private final EObject oldEnd;
+
+ /**
+ * @generated
+ */
+ private final EObject newEnd;
+
+ /**
+ * @generated
+ */
+ public DeploymentReorientCommand(ReorientRelationshipRequest request) {
+ super(request.getLabel(), request.getRelationship(), request);
+ reorientDirection = request.getDirection();
+ oldEnd = request.getOldRelationshipEnd();
+ newEnd = request.getNewRelationshipEnd();
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canExecute() {
+ if(false == getElementToEdit() instanceof Deployment) {
+ return false;
+ }
+ if(reorientDirection == ReorientRelationshipRequest.REORIENT_SOURCE) {
+ return canReorientSource();
+ }
+ if(reorientDirection == ReorientRelationshipRequest.REORIENT_TARGET) {
+ return canReorientTarget();
+ }
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean canReorientSource() {
+ if(!(oldEnd instanceof NamedElement && newEnd instanceof NamedElement)) {
+ return false;
+ }
+ if(getLink().getSuppliers().size() != 1) {
+ return false;
+ }
+ NamedElement target = (NamedElement)getLink().getSuppliers().get(0);
+ if(!(getLink().eContainer() instanceof Package)) {
+ return false;
+ }
+ Package container = (Package)getLink().eContainer();
+ return UMLBaseItemSemanticEditPolicy.getLinkConstraints().canExistDeployment_4009(container, getLink(), getNewSource(), target);
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean canReorientTarget() {
+ if(!(oldEnd instanceof NamedElement && newEnd instanceof NamedElement)) {
+ return false;
+ }
+ if(getLink().getClients().size() != 1) {
+ return false;
+ }
+ NamedElement source = (NamedElement)getLink().getClients().get(0);
+ if(!(getLink().eContainer() instanceof Package)) {
+ return false;
+ }
+ Package container = (Package)getLink().eContainer();
+ return UMLBaseItemSemanticEditPolicy.getLinkConstraints().canExistDeployment_4009(container, getLink(), source, getNewTarget());
+ }
+
+ /**
+ * @generated
+ */
+ protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+ if(!canExecute()) {
+ throw new ExecutionException("Invalid arguments in reorient link command"); //$NON-NLS-1$
+ }
+ if(reorientDirection == ReorientRelationshipRequest.REORIENT_SOURCE) {
+ return reorientSource();
+ }
+ if(reorientDirection == ReorientRelationshipRequest.REORIENT_TARGET) {
+ return reorientTarget();
+ }
+ throw new IllegalStateException();
+ }
+
+ /**
+ * @generated
+ */
+ protected CommandResult reorientSource() throws ExecutionException {
+ getLink().getClients().remove(getOldSource());
+ getLink().getClients().add(getNewSource());
+ return CommandResult.newOKCommandResult(getLink());
+ }
+
+ /**
+ * @generated
+ */
+ protected CommandResult reorientTarget() throws ExecutionException {
+ getLink().getSuppliers().remove(getOldTarget());
+ getLink().getSuppliers().add(getNewTarget());
+ return CommandResult.newOKCommandResult(getLink());
+ }
+
+ /**
+ * @generated
+ */
+ protected Deployment getLink() {
+ return (Deployment)getElementToEdit();
+ }
+
+ /**
+ * @generated
+ */
+ protected NamedElement getOldSource() {
+ return (NamedElement)oldEnd;
+ }
+
+ /**
+ * @generated
+ */
+ protected NamedElement getNewSource() {
+ return (NamedElement)newEnd;
+ }
+
+ /**
+ * @generated
+ */
+ protected NamedElement getOldTarget() {
+ return (NamedElement)oldEnd;
+ }
+
+ /**
+ * @generated
+ */
+ protected NamedElement getNewTarget() {
+ return (NamedElement)newEnd;
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/DeploymentSpecificationCreateCommand.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/DeploymentSpecificationCreateCommand.java
new file mode 100644
index 00000000000..a46b0295f66
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/DeploymentSpecificationCreateCommand.java
@@ -0,0 +1,134 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.commands;
+
+import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gmf.runtime.common.core.command.CommandResult;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ConfigureRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.diagram.composite.providers.ElementInitializers;
+import org.eclipse.uml2.uml.DeploymentSpecification;
+import org.eclipse.uml2.uml.Package;
+import org.eclipse.uml2.uml.UMLFactory;
+
+/**
+ * @generated
+ */
+public class DeploymentSpecificationCreateCommand extends EditElementCommand {
+
+ /**
+ * @generated
+ */
+ private EClass eClass = null;
+
+ /**
+ * @generated
+ */
+ private EObject eObject = null;
+
+ /**
+ * @generated
+ */
+ public DeploymentSpecificationCreateCommand(CreateElementRequest req, EObject eObject) {
+ super(req.getLabel(), null, req);
+ this.eObject = eObject;
+ this.eClass = eObject != null ? eObject.eClass() : null;
+ }
+
+ /**
+ * @generated
+ */
+ public static DeploymentSpecificationCreateCommand create(CreateElementRequest req, EObject eObject) {
+ return new DeploymentSpecificationCreateCommand(req, eObject);
+ }
+
+ /**
+ * @generated
+ */
+ public DeploymentSpecificationCreateCommand(CreateElementRequest req) {
+ super(req.getLabel(), null, req);
+ }
+
+ /**
+ * FIXME: replace with setElementToEdit()
+ *
+ * @generated
+ */
+ protected EObject getElementToEdit() {
+
+ EObject container = ((CreateElementRequest)getRequest()).getContainer();
+ if(container instanceof View) {
+ container = ((View)container).getElement();
+ }
+ if(container != null) {
+ return container;
+ }
+ return eObject;
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canExecute() {
+
+ // Creation constraint for TopLevelNodes
+ if(!(getElementToEdit() instanceof Package)) {
+ return false;
+ }
+
+ return true;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+
+ DeploymentSpecification newElement = UMLFactory.eINSTANCE.createDeploymentSpecification();
+
+ Package owner = (Package)getElementToEdit();
+ owner.getPackagedElements().add(newElement);
+
+ ElementInitializers.getInstance().init_DeploymentSpecification_2078(newElement);
+
+ doConfigure(newElement, monitor, info);
+
+ ((CreateElementRequest)getRequest()).setNewElement(newElement);
+ return CommandResult.newOKCommandResult(newElement);
+ }
+
+ /**
+ * @generated
+ */
+ protected void doConfigure(DeploymentSpecification newElement, IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+ IElementType elementType = ((CreateElementRequest)getRequest()).getElementType();
+ ConfigureRequest configureRequest = new ConfigureRequest(getEditingDomain(), newElement, elementType);
+ configureRequest.setClientContext(((CreateElementRequest)getRequest()).getClientContext());
+ configureRequest.addParameters(getRequest().getParameters());
+ ICommand configureCommand = elementType.getEditCommand(configureRequest);
+ if(configureCommand != null && configureCommand.canExecute()) {
+ configureCommand.execute(monitor, info);
+ }
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/DeploymentSpecificationCreateCommandCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/DeploymentSpecificationCreateCommandCN.java
new file mode 100644
index 00000000000..d120ce99bd7
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/DeploymentSpecificationCreateCommandCN.java
@@ -0,0 +1,129 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.commands;
+
+import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gmf.runtime.common.core.command.CommandResult;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ConfigureRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.diagram.composite.providers.ElementInitializers;
+import org.eclipse.uml2.uml.Class;
+import org.eclipse.uml2.uml.DeploymentSpecification;
+import org.eclipse.uml2.uml.UMLFactory;
+
+/**
+ * @generated
+ */
+public class DeploymentSpecificationCreateCommandCN extends EditElementCommand {
+
+ /**
+ * @generated
+ */
+ private EClass eClass = null;
+
+ /**
+ * @generated
+ */
+ private EObject eObject = null;
+
+ /**
+ * @generated
+ */
+ public DeploymentSpecificationCreateCommandCN(CreateElementRequest req, EObject eObject) {
+ super(req.getLabel(), null, req);
+ this.eObject = eObject;
+ this.eClass = eObject != null ? eObject.eClass() : null;
+ }
+
+ /**
+ * @generated
+ */
+ public static DeploymentSpecificationCreateCommandCN create(CreateElementRequest req, EObject eObject) {
+ return new DeploymentSpecificationCreateCommandCN(req, eObject);
+ }
+
+ /**
+ * @generated
+ */
+ public DeploymentSpecificationCreateCommandCN(CreateElementRequest req) {
+ super(req.getLabel(), null, req);
+ }
+
+ /**
+ * FIXME: replace with setElementToEdit()
+ *
+ * @generated
+ */
+ protected EObject getElementToEdit() {
+
+ EObject container = ((CreateElementRequest)getRequest()).getContainer();
+ if(container instanceof View) {
+ container = ((View)container).getElement();
+ }
+ if(container != null) {
+ return container;
+ }
+ return eObject;
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canExecute() {
+
+ return true;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+
+ DeploymentSpecification newElement = UMLFactory.eINSTANCE.createDeploymentSpecification();
+
+ Class owner = (Class)getElementToEdit();
+ owner.getNestedClassifiers().add(newElement);
+
+ ElementInitializers.getInstance().init_DeploymentSpecification_3092(newElement);
+
+ doConfigure(newElement, monitor, info);
+
+ ((CreateElementRequest)getRequest()).setNewElement(newElement);
+ return CommandResult.newOKCommandResult(newElement);
+ }
+
+ /**
+ * @generated
+ */
+ protected void doConfigure(DeploymentSpecification newElement, IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+ IElementType elementType = ((CreateElementRequest)getRequest()).getElementType();
+ ConfigureRequest configureRequest = new ConfigureRequest(getEditingDomain(), newElement, elementType);
+ configureRequest.setClientContext(((CreateElementRequest)getRequest()).getClientContext());
+ configureRequest.addParameters(getRequest().getParameters());
+ ICommand configureCommand = elementType.getEditCommand(configureRequest);
+ if(configureCommand != null && configureCommand.canExecute()) {
+ configureCommand.execute(monitor, info);
+ }
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/DestructionEventCreateCommand.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/DestructionEventCreateCommand.java
new file mode 100644
index 00000000000..c72ae57b5ac
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/DestructionEventCreateCommand.java
@@ -0,0 +1,134 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.commands;
+
+import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gmf.runtime.common.core.command.CommandResult;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ConfigureRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.diagram.composite.providers.ElementInitializers;
+import org.eclipse.uml2.uml.DestructionEvent;
+import org.eclipse.uml2.uml.Package;
+import org.eclipse.uml2.uml.UMLFactory;
+
+/**
+ * @generated
+ */
+public class DestructionEventCreateCommand extends EditElementCommand {
+
+ /**
+ * @generated
+ */
+ private EClass eClass = null;
+
+ /**
+ * @generated
+ */
+ private EObject eObject = null;
+
+ /**
+ * @generated
+ */
+ public DestructionEventCreateCommand(CreateElementRequest req, EObject eObject) {
+ super(req.getLabel(), null, req);
+ this.eObject = eObject;
+ this.eClass = eObject != null ? eObject.eClass() : null;
+ }
+
+ /**
+ * @generated
+ */
+ public static DestructionEventCreateCommand create(CreateElementRequest req, EObject eObject) {
+ return new DestructionEventCreateCommand(req, eObject);
+ }
+
+ /**
+ * @generated
+ */
+ public DestructionEventCreateCommand(CreateElementRequest req) {
+ super(req.getLabel(), null, req);
+ }
+
+ /**
+ * FIXME: replace with setElementToEdit()
+ *
+ * @generated
+ */
+ protected EObject getElementToEdit() {
+
+ EObject container = ((CreateElementRequest)getRequest()).getContainer();
+ if(container instanceof View) {
+ container = ((View)container).getElement();
+ }
+ if(container != null) {
+ return container;
+ }
+ return eObject;
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canExecute() {
+
+ // Creation constraint for TopLevelNodes
+ if(!(getElementToEdit() instanceof Package)) {
+ return false;
+ }
+
+ return true;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+
+ DestructionEvent newElement = UMLFactory.eINSTANCE.createDestructionEvent();
+
+ Package owner = (Package)getElementToEdit();
+ owner.getPackagedElements().add(newElement);
+
+ ElementInitializers.getInstance().init_DestructionEvent_2091(newElement);
+
+ doConfigure(newElement, monitor, info);
+
+ ((CreateElementRequest)getRequest()).setNewElement(newElement);
+ return CommandResult.newOKCommandResult(newElement);
+ }
+
+ /**
+ * @generated
+ */
+ protected void doConfigure(DestructionEvent newElement, IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+ IElementType elementType = ((CreateElementRequest)getRequest()).getElementType();
+ ConfigureRequest configureRequest = new ConfigureRequest(getEditingDomain(), newElement, elementType);
+ configureRequest.setClientContext(((CreateElementRequest)getRequest()).getClientContext());
+ configureRequest.addParameters(getRequest().getParameters());
+ ICommand configureCommand = elementType.getEditCommand(configureRequest);
+ if(configureCommand != null && configureCommand.canExecute()) {
+ configureCommand.execute(monitor, info);
+ }
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/DeviceCompositeCreateCommand.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/DeviceCompositeCreateCommand.java
new file mode 100644
index 00000000000..1c4d8bfcff7
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/DeviceCompositeCreateCommand.java
@@ -0,0 +1,134 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.commands;
+
+import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gmf.runtime.common.core.command.CommandResult;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ConfigureRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.diagram.composite.providers.ElementInitializers;
+import org.eclipse.uml2.uml.Device;
+import org.eclipse.uml2.uml.Package;
+import org.eclipse.uml2.uml.UMLFactory;
+
+/**
+ * @generated
+ */
+public class DeviceCompositeCreateCommand extends EditElementCommand {
+
+ /**
+ * @generated
+ */
+ private EClass eClass = null;
+
+ /**
+ * @generated
+ */
+ private EObject eObject = null;
+
+ /**
+ * @generated
+ */
+ public DeviceCompositeCreateCommand(CreateElementRequest req, EObject eObject) {
+ super(req.getLabel(), null, req);
+ this.eObject = eObject;
+ this.eClass = eObject != null ? eObject.eClass() : null;
+ }
+
+ /**
+ * @generated
+ */
+ public static DeviceCompositeCreateCommand create(CreateElementRequest req, EObject eObject) {
+ return new DeviceCompositeCreateCommand(req, eObject);
+ }
+
+ /**
+ * @generated
+ */
+ public DeviceCompositeCreateCommand(CreateElementRequest req) {
+ super(req.getLabel(), null, req);
+ }
+
+ /**
+ * FIXME: replace with setElementToEdit()
+ *
+ * @generated
+ */
+ protected EObject getElementToEdit() {
+
+ EObject container = ((CreateElementRequest)getRequest()).getContainer();
+ if(container instanceof View) {
+ container = ((View)container).getElement();
+ }
+ if(container != null) {
+ return container;
+ }
+ return eObject;
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canExecute() {
+
+ // Creation constraint for TopLevelNodes
+ if(!(getElementToEdit() instanceof Package)) {
+ return false;
+ }
+
+ return true;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+
+ Device newElement = UMLFactory.eINSTANCE.createDevice();
+
+ Package owner = (Package)getElementToEdit();
+ owner.getPackagedElements().add(newElement);
+
+ ElementInitializers.getInstance().init_Device_2070(newElement);
+
+ doConfigure(newElement, monitor, info);
+
+ ((CreateElementRequest)getRequest()).setNewElement(newElement);
+ return CommandResult.newOKCommandResult(newElement);
+ }
+
+ /**
+ * @generated
+ */
+ protected void doConfigure(Device newElement, IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+ IElementType elementType = ((CreateElementRequest)getRequest()).getElementType();
+ ConfigureRequest configureRequest = new ConfigureRequest(getEditingDomain(), newElement, elementType);
+ configureRequest.setClientContext(((CreateElementRequest)getRequest()).getClientContext());
+ configureRequest.addParameters(getRequest().getParameters());
+ ICommand configureCommand = elementType.getEditCommand(configureRequest);
+ if(configureCommand != null && configureCommand.canExecute()) {
+ configureCommand.execute(monitor, info);
+ }
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/DeviceCompositeCreateCommandCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/DeviceCompositeCreateCommandCN.java
new file mode 100644
index 00000000000..55ef3759f33
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/DeviceCompositeCreateCommandCN.java
@@ -0,0 +1,129 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.commands;
+
+import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gmf.runtime.common.core.command.CommandResult;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ConfigureRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.diagram.composite.providers.ElementInitializers;
+import org.eclipse.uml2.uml.Class;
+import org.eclipse.uml2.uml.Device;
+import org.eclipse.uml2.uml.UMLFactory;
+
+/**
+ * @generated
+ */
+public class DeviceCompositeCreateCommandCN extends EditElementCommand {
+
+ /**
+ * @generated
+ */
+ private EClass eClass = null;
+
+ /**
+ * @generated
+ */
+ private EObject eObject = null;
+
+ /**
+ * @generated
+ */
+ public DeviceCompositeCreateCommandCN(CreateElementRequest req, EObject eObject) {
+ super(req.getLabel(), null, req);
+ this.eObject = eObject;
+ this.eClass = eObject != null ? eObject.eClass() : null;
+ }
+
+ /**
+ * @generated
+ */
+ public static DeviceCompositeCreateCommandCN create(CreateElementRequest req, EObject eObject) {
+ return new DeviceCompositeCreateCommandCN(req, eObject);
+ }
+
+ /**
+ * @generated
+ */
+ public DeviceCompositeCreateCommandCN(CreateElementRequest req) {
+ super(req.getLabel(), null, req);
+ }
+
+ /**
+ * FIXME: replace with setElementToEdit()
+ *
+ * @generated
+ */
+ protected EObject getElementToEdit() {
+
+ EObject container = ((CreateElementRequest)getRequest()).getContainer();
+ if(container instanceof View) {
+ container = ((View)container).getElement();
+ }
+ if(container != null) {
+ return container;
+ }
+ return eObject;
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canExecute() {
+
+ return true;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+
+ Device newElement = UMLFactory.eINSTANCE.createDevice();
+
+ Class owner = (Class)getElementToEdit();
+ owner.getNestedClassifiers().add(newElement);
+
+ ElementInitializers.getInstance().init_Device_3082(newElement);
+
+ doConfigure(newElement, monitor, info);
+
+ ((CreateElementRequest)getRequest()).setNewElement(newElement);
+ return CommandResult.newOKCommandResult(newElement);
+ }
+
+ /**
+ * @generated
+ */
+ protected void doConfigure(Device newElement, IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+ IElementType elementType = ((CreateElementRequest)getRequest()).getElementType();
+ ConfigureRequest configureRequest = new ConfigureRequest(getEditingDomain(), newElement, elementType);
+ configureRequest.setClientContext(((CreateElementRequest)getRequest()).getClientContext());
+ configureRequest.addParameters(getRequest().getParameters());
+ ICommand configureCommand = elementType.getEditCommand(configureRequest);
+ if(configureCommand != null && configureCommand.canExecute()) {
+ configureCommand.execute(monitor, info);
+ }
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/DurationConstraintCreateCommand.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/DurationConstraintCreateCommand.java
new file mode 100644
index 00000000000..a9864264bff
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/DurationConstraintCreateCommand.java
@@ -0,0 +1,135 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.commands;
+
+import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gmf.runtime.common.core.command.CommandResult;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ConfigureRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.diagram.composite.providers.ElementInitializers;
+import org.eclipse.uml2.uml.DurationConstraint;
+import org.eclipse.uml2.uml.Namespace;
+import org.eclipse.uml2.uml.Package;
+import org.eclipse.uml2.uml.UMLFactory;
+
+/**
+ * @generated
+ */
+public class DurationConstraintCreateCommand extends EditElementCommand {
+
+ /**
+ * @generated
+ */
+ private EClass eClass = null;
+
+ /**
+ * @generated
+ */
+ private EObject eObject = null;
+
+ /**
+ * @generated
+ */
+ public DurationConstraintCreateCommand(CreateElementRequest req, EObject eObject) {
+ super(req.getLabel(), null, req);
+ this.eObject = eObject;
+ this.eClass = eObject != null ? eObject.eClass() : null;
+ }
+
+ /**
+ * @generated
+ */
+ public static DurationConstraintCreateCommand create(CreateElementRequest req, EObject eObject) {
+ return new DurationConstraintCreateCommand(req, eObject);
+ }
+
+ /**
+ * @generated
+ */
+ public DurationConstraintCreateCommand(CreateElementRequest req) {
+ super(req.getLabel(), null, req);
+ }
+
+ /**
+ * FIXME: replace with setElementToEdit()
+ *
+ * @generated
+ */
+ protected EObject getElementToEdit() {
+
+ EObject container = ((CreateElementRequest)getRequest()).getContainer();
+ if(container instanceof View) {
+ container = ((View)container).getElement();
+ }
+ if(container != null) {
+ return container;
+ }
+ return eObject;
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canExecute() {
+
+ // Creation constraint for TopLevelNodes
+ if(!(getElementToEdit() instanceof Package)) {
+ return false;
+ }
+
+ return true;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+
+ DurationConstraint newElement = UMLFactory.eINSTANCE.createDurationConstraint();
+
+ Namespace owner = (Namespace)getElementToEdit();
+ owner.getOwnedRules().add(newElement);
+
+ ElementInitializers.getInstance().init_DurationConstraint_2110(newElement);
+
+ doConfigure(newElement, monitor, info);
+
+ ((CreateElementRequest)getRequest()).setNewElement(newElement);
+ return CommandResult.newOKCommandResult(newElement);
+ }
+
+ /**
+ * @generated
+ */
+ protected void doConfigure(DurationConstraint newElement, IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+ IElementType elementType = ((CreateElementRequest)getRequest()).getElementType();
+ ConfigureRequest configureRequest = new ConfigureRequest(getEditingDomain(), newElement, elementType);
+ configureRequest.setClientContext(((CreateElementRequest)getRequest()).getClientContext());
+ configureRequest.addParameters(getRequest().getParameters());
+ ICommand configureCommand = elementType.getEditCommand(configureRequest);
+ if(configureCommand != null && configureCommand.canExecute()) {
+ configureCommand.execute(monitor, info);
+ }
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/DurationConstraintCreateCommandCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/DurationConstraintCreateCommandCN.java
new file mode 100644
index 00000000000..84142f80ec9
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/DurationConstraintCreateCommandCN.java
@@ -0,0 +1,129 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.commands;
+
+import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gmf.runtime.common.core.command.CommandResult;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ConfigureRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.diagram.composite.providers.ElementInitializers;
+import org.eclipse.uml2.uml.DurationConstraint;
+import org.eclipse.uml2.uml.Namespace;
+import org.eclipse.uml2.uml.UMLFactory;
+
+/**
+ * @generated
+ */
+public class DurationConstraintCreateCommandCN extends EditElementCommand {
+
+ /**
+ * @generated
+ */
+ private EClass eClass = null;
+
+ /**
+ * @generated
+ */
+ private EObject eObject = null;
+
+ /**
+ * @generated
+ */
+ public DurationConstraintCreateCommandCN(CreateElementRequest req, EObject eObject) {
+ super(req.getLabel(), null, req);
+ this.eObject = eObject;
+ this.eClass = eObject != null ? eObject.eClass() : null;
+ }
+
+ /**
+ * @generated
+ */
+ public static DurationConstraintCreateCommandCN create(CreateElementRequest req, EObject eObject) {
+ return new DurationConstraintCreateCommandCN(req, eObject);
+ }
+
+ /**
+ * @generated
+ */
+ public DurationConstraintCreateCommandCN(CreateElementRequest req) {
+ super(req.getLabel(), null, req);
+ }
+
+ /**
+ * FIXME: replace with setElementToEdit()
+ *
+ * @generated
+ */
+ protected EObject getElementToEdit() {
+
+ EObject container = ((CreateElementRequest)getRequest()).getContainer();
+ if(container instanceof View) {
+ container = ((View)container).getElement();
+ }
+ if(container != null) {
+ return container;
+ }
+ return eObject;
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canExecute() {
+
+ return true;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+
+ DurationConstraint newElement = UMLFactory.eINSTANCE.createDurationConstraint();
+
+ Namespace owner = (Namespace)getElementToEdit();
+ owner.getOwnedRules().add(newElement);
+
+ ElementInitializers.getInstance().init_DurationConstraint_3116(newElement);
+
+ doConfigure(newElement, monitor, info);
+
+ ((CreateElementRequest)getRequest()).setNewElement(newElement);
+ return CommandResult.newOKCommandResult(newElement);
+ }
+
+ /**
+ * @generated
+ */
+ protected void doConfigure(DurationConstraint newElement, IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+ IElementType elementType = ((CreateElementRequest)getRequest()).getElementType();
+ ConfigureRequest configureRequest = new ConfigureRequest(getEditingDomain(), newElement, elementType);
+ configureRequest.setClientContext(((CreateElementRequest)getRequest()).getClientContext());
+ configureRequest.addParameters(getRequest().getParameters());
+ ICommand configureCommand = elementType.getEditCommand(configureRequest);
+ if(configureCommand != null && configureCommand.canExecute()) {
+ configureCommand.execute(monitor, info);
+ }
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/DurationCreateCommand.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/DurationCreateCommand.java
new file mode 100644
index 00000000000..0f0231413f8
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/DurationCreateCommand.java
@@ -0,0 +1,134 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.commands;
+
+import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gmf.runtime.common.core.command.CommandResult;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ConfigureRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.diagram.composite.providers.ElementInitializers;
+import org.eclipse.uml2.uml.Duration;
+import org.eclipse.uml2.uml.Package;
+import org.eclipse.uml2.uml.UMLFactory;
+
+/**
+ * @generated
+ */
+public class DurationCreateCommand extends EditElementCommand {
+
+ /**
+ * @generated
+ */
+ private EClass eClass = null;
+
+ /**
+ * @generated
+ */
+ private EObject eObject = null;
+
+ /**
+ * @generated
+ */
+ public DurationCreateCommand(CreateElementRequest req, EObject eObject) {
+ super(req.getLabel(), null, req);
+ this.eObject = eObject;
+ this.eClass = eObject != null ? eObject.eClass() : null;
+ }
+
+ /**
+ * @generated
+ */
+ public static DurationCreateCommand create(CreateElementRequest req, EObject eObject) {
+ return new DurationCreateCommand(req, eObject);
+ }
+
+ /**
+ * @generated
+ */
+ public DurationCreateCommand(CreateElementRequest req) {
+ super(req.getLabel(), null, req);
+ }
+
+ /**
+ * FIXME: replace with setElementToEdit()
+ *
+ * @generated
+ */
+ protected EObject getElementToEdit() {
+
+ EObject container = ((CreateElementRequest)getRequest()).getContainer();
+ if(container instanceof View) {
+ container = ((View)container).getElement();
+ }
+ if(container != null) {
+ return container;
+ }
+ return eObject;
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canExecute() {
+
+ // Creation constraint for TopLevelNodes
+ if(!(getElementToEdit() instanceof Package)) {
+ return false;
+ }
+
+ return true;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+
+ Duration newElement = UMLFactory.eINSTANCE.createDuration();
+
+ Package owner = (Package)getElementToEdit();
+ owner.getPackagedElements().add(newElement);
+
+ ElementInitializers.getInstance().init_Duration_2104(newElement);
+
+ doConfigure(newElement, monitor, info);
+
+ ((CreateElementRequest)getRequest()).setNewElement(newElement);
+ return CommandResult.newOKCommandResult(newElement);
+ }
+
+ /**
+ * @generated
+ */
+ protected void doConfigure(Duration newElement, IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+ IElementType elementType = ((CreateElementRequest)getRequest()).getElementType();
+ ConfigureRequest configureRequest = new ConfigureRequest(getEditingDomain(), newElement, elementType);
+ configureRequest.setClientContext(((CreateElementRequest)getRequest()).getClientContext());
+ configureRequest.addParameters(getRequest().getParameters());
+ ICommand configureCommand = elementType.getEditCommand(configureRequest);
+ if(configureCommand != null && configureCommand.canExecute()) {
+ configureCommand.execute(monitor, info);
+ }
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/DurationIntervalCreateCommand.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/DurationIntervalCreateCommand.java
new file mode 100644
index 00000000000..1d27a6aa0bd
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/DurationIntervalCreateCommand.java
@@ -0,0 +1,134 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.commands;
+
+import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gmf.runtime.common.core.command.CommandResult;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ConfigureRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.diagram.composite.providers.ElementInitializers;
+import org.eclipse.uml2.uml.DurationInterval;
+import org.eclipse.uml2.uml.Package;
+import org.eclipse.uml2.uml.UMLFactory;
+
+/**
+ * @generated
+ */
+public class DurationIntervalCreateCommand extends EditElementCommand {
+
+ /**
+ * @generated
+ */
+ private EClass eClass = null;
+
+ /**
+ * @generated
+ */
+ private EObject eObject = null;
+
+ /**
+ * @generated
+ */
+ public DurationIntervalCreateCommand(CreateElementRequest req, EObject eObject) {
+ super(req.getLabel(), null, req);
+ this.eObject = eObject;
+ this.eClass = eObject != null ? eObject.eClass() : null;
+ }
+
+ /**
+ * @generated
+ */
+ public static DurationIntervalCreateCommand create(CreateElementRequest req, EObject eObject) {
+ return new DurationIntervalCreateCommand(req, eObject);
+ }
+
+ /**
+ * @generated
+ */
+ public DurationIntervalCreateCommand(CreateElementRequest req) {
+ super(req.getLabel(), null, req);
+ }
+
+ /**
+ * FIXME: replace with setElementToEdit()
+ *
+ * @generated
+ */
+ protected EObject getElementToEdit() {
+
+ EObject container = ((CreateElementRequest)getRequest()).getContainer();
+ if(container instanceof View) {
+ container = ((View)container).getElement();
+ }
+ if(container != null) {
+ return container;
+ }
+ return eObject;
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canExecute() {
+
+ // Creation constraint for TopLevelNodes
+ if(!(getElementToEdit() instanceof Package)) {
+ return false;
+ }
+
+ return true;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+
+ DurationInterval newElement = UMLFactory.eINSTANCE.createDurationInterval();
+
+ Package owner = (Package)getElementToEdit();
+ owner.getPackagedElements().add(newElement);
+
+ ElementInitializers.getInstance().init_DurationInterval_2106(newElement);
+
+ doConfigure(newElement, monitor, info);
+
+ ((CreateElementRequest)getRequest()).setNewElement(newElement);
+ return CommandResult.newOKCommandResult(newElement);
+ }
+
+ /**
+ * @generated
+ */
+ protected void doConfigure(DurationInterval newElement, IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+ IElementType elementType = ((CreateElementRequest)getRequest()).getElementType();
+ ConfigureRequest configureRequest = new ConfigureRequest(getEditingDomain(), newElement, elementType);
+ configureRequest.setClientContext(((CreateElementRequest)getRequest()).getClientContext());
+ configureRequest.addParameters(getRequest().getParameters());
+ ICommand configureCommand = elementType.getEditCommand(configureRequest);
+ if(configureCommand != null && configureCommand.canExecute()) {
+ configureCommand.execute(monitor, info);
+ }
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/DurationObservationCreateCommand.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/DurationObservationCreateCommand.java
new file mode 100644
index 00000000000..950745d4304
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/DurationObservationCreateCommand.java
@@ -0,0 +1,134 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.commands;
+
+import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gmf.runtime.common.core.command.CommandResult;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ConfigureRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.diagram.composite.providers.ElementInitializers;
+import org.eclipse.uml2.uml.DurationObservation;
+import org.eclipse.uml2.uml.Package;
+import org.eclipse.uml2.uml.UMLFactory;
+
+/**
+ * @generated
+ */
+public class DurationObservationCreateCommand extends EditElementCommand {
+
+ /**
+ * @generated
+ */
+ private EClass eClass = null;
+
+ /**
+ * @generated
+ */
+ private EObject eObject = null;
+
+ /**
+ * @generated
+ */
+ public DurationObservationCreateCommand(CreateElementRequest req, EObject eObject) {
+ super(req.getLabel(), null, req);
+ this.eObject = eObject;
+ this.eClass = eObject != null ? eObject.eClass() : null;
+ }
+
+ /**
+ * @generated
+ */
+ public static DurationObservationCreateCommand create(CreateElementRequest req, EObject eObject) {
+ return new DurationObservationCreateCommand(req, eObject);
+ }
+
+ /**
+ * @generated
+ */
+ public DurationObservationCreateCommand(CreateElementRequest req) {
+ super(req.getLabel(), null, req);
+ }
+
+ /**
+ * FIXME: replace with setElementToEdit()
+ *
+ * @generated
+ */
+ protected EObject getElementToEdit() {
+
+ EObject container = ((CreateElementRequest)getRequest()).getContainer();
+ if(container instanceof View) {
+ container = ((View)container).getElement();
+ }
+ if(container != null) {
+ return container;
+ }
+ return eObject;
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canExecute() {
+
+ // Creation constraint for TopLevelNodes
+ if(!(getElementToEdit() instanceof Package)) {
+ return false;
+ }
+
+ return true;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+
+ DurationObservation newElement = UMLFactory.eINSTANCE.createDurationObservation();
+
+ Package owner = (Package)getElementToEdit();
+ owner.getPackagedElements().add(newElement);
+
+ ElementInitializers.getInstance().init_DurationObservation_2093(newElement);
+
+ doConfigure(newElement, monitor, info);
+
+ ((CreateElementRequest)getRequest()).setNewElement(newElement);
+ return CommandResult.newOKCommandResult(newElement);
+ }
+
+ /**
+ * @generated
+ */
+ protected void doConfigure(DurationObservation newElement, IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+ IElementType elementType = ((CreateElementRequest)getRequest()).getElementType();
+ ConfigureRequest configureRequest = new ConfigureRequest(getEditingDomain(), newElement, elementType);
+ configureRequest.setClientContext(((CreateElementRequest)getRequest()).getClientContext());
+ configureRequest.addParameters(getRequest().getParameters());
+ ICommand configureCommand = elementType.getEditCommand(configureRequest);
+ if(configureCommand != null && configureCommand.canExecute()) {
+ configureCommand.execute(monitor, info);
+ }
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/DurationObservationEventCreateCommand.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/DurationObservationEventCreateCommand.java
new file mode 100644
index 00000000000..4f073e54007
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/DurationObservationEventCreateCommand.java
@@ -0,0 +1,106 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.commands;
+
+import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gmf.runtime.common.core.command.CommandResult;
+import org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLBaseItemSemanticEditPolicy;
+import org.eclipse.uml2.uml.DurationObservation;
+import org.eclipse.uml2.uml.NamedElement;
+
+/**
+ * @generated
+ */
+public class DurationObservationEventCreateCommand extends EditElementCommand {
+
+ /**
+ * @generated
+ */
+ protected final EObject source;
+
+ /**
+ * @generated
+ */
+ protected final EObject target;
+
+ /**
+ * @generated
+ */
+ public DurationObservationEventCreateCommand(CreateRelationshipRequest request, EObject source, EObject target) {
+ super(request.getLabel(), null, request);
+ this.source = source;
+ this.target = target;
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canExecute() {
+ if(source == null && target == null) {
+ return false;
+ }
+ if(source != null && false == source instanceof DurationObservation) {
+ return false;
+ }
+ if(target != null && false == target instanceof NamedElement) {
+ return false;
+ }
+ if(getSource() == null) {
+ return true; // link creation is in progress; source is not defined yet
+ }
+ // target may be null here but it's possible to check constraint
+ return UMLBaseItemSemanticEditPolicy.getLinkConstraints().canCreateDurationObservationEvent_4019(getSource(), getTarget());
+ }
+
+ /**
+ * @generated
+ */
+ protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+ if(!canExecute()) {
+ throw new ExecutionException("Invalid arguments in create link command"); //$NON-NLS-1$
+ }
+
+ if(getSource() != null && getTarget() != null) {
+ getSource().getEvents().add(getTarget());
+ }
+ return CommandResult.newOKCommandResult();
+
+ }
+
+ /**
+ * @generated
+ */
+ protected void setElementToEdit(EObject element) {
+ throw new UnsupportedOperationException();
+ }
+
+ /**
+ * @generated
+ */
+ protected DurationObservation getSource() {
+ return (DurationObservation)source;
+ }
+
+ /**
+ * @generated
+ */
+ protected NamedElement getTarget() {
+ return (NamedElement)target;
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/DurationObservationEventReorientCommand.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/DurationObservationEventReorientCommand.java
new file mode 100644
index 00000000000..86efbdf0180
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/DurationObservationEventReorientCommand.java
@@ -0,0 +1,161 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.commands;
+
+import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gmf.runtime.common.core.command.CommandResult;
+import org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientReferenceRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientRelationshipRequest;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLBaseItemSemanticEditPolicy;
+import org.eclipse.uml2.uml.DurationObservation;
+import org.eclipse.uml2.uml.NamedElement;
+
+/**
+ * @generated
+ */
+public class DurationObservationEventReorientCommand extends EditElementCommand {
+
+ /**
+ * @generated
+ */
+ private final int reorientDirection;
+
+ /**
+ * @generated
+ */
+ private final EObject referenceOwner;
+
+ /**
+ * @generated
+ */
+ private final EObject oldEnd;
+
+ /**
+ * @generated
+ */
+ private final EObject newEnd;
+
+ /**
+ * @generated
+ */
+ public DurationObservationEventReorientCommand(ReorientReferenceRelationshipRequest request) {
+ super(request.getLabel(), null, request);
+ reorientDirection = request.getDirection();
+ referenceOwner = request.getReferenceOwner();
+ oldEnd = request.getOldRelationshipEnd();
+ newEnd = request.getNewRelationshipEnd();
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canExecute() {
+ if(false == referenceOwner instanceof DurationObservation) {
+ return false;
+ }
+ if(reorientDirection == ReorientRelationshipRequest.REORIENT_SOURCE) {
+ return canReorientSource();
+ }
+ if(reorientDirection == ReorientRelationshipRequest.REORIENT_TARGET) {
+ return canReorientTarget();
+ }
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean canReorientSource() {
+ if(!(oldEnd instanceof NamedElement && newEnd instanceof DurationObservation)) {
+ return false;
+ }
+ return UMLBaseItemSemanticEditPolicy.getLinkConstraints().canExistDurationObservationEvent_4019(getNewSource(), getOldTarget());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean canReorientTarget() {
+ if(!(oldEnd instanceof NamedElement && newEnd instanceof NamedElement)) {
+ return false;
+ }
+ return UMLBaseItemSemanticEditPolicy.getLinkConstraints().canExistDurationObservationEvent_4019(getOldSource(), getNewTarget());
+ }
+
+ /**
+ * @generated
+ */
+ protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+ if(!canExecute()) {
+ throw new ExecutionException("Invalid arguments in reorient link command"); //$NON-NLS-1$
+ }
+ if(reorientDirection == ReorientRelationshipRequest.REORIENT_SOURCE) {
+ return reorientSource();
+ }
+ if(reorientDirection == ReorientRelationshipRequest.REORIENT_TARGET) {
+ return reorientTarget();
+ }
+ throw new IllegalStateException();
+ }
+
+ /**
+ * @generated
+ */
+ protected CommandResult reorientSource() throws ExecutionException {
+ getOldSource().getEvents().remove(getOldTarget());
+ getNewSource().getEvents().add(getOldTarget());
+ return CommandResult.newOKCommandResult(referenceOwner);
+ }
+
+ /**
+ * @generated
+ */
+ protected CommandResult reorientTarget() throws ExecutionException {
+ getOldSource().getEvents().remove(getOldTarget());
+ getOldSource().getEvents().add(getNewTarget());
+ return CommandResult.newOKCommandResult(referenceOwner);
+ }
+
+ /**
+ * @generated
+ */
+ protected DurationObservation getOldSource() {
+ return (DurationObservation)referenceOwner;
+ }
+
+ /**
+ * @generated
+ */
+ protected DurationObservation getNewSource() {
+ return (DurationObservation)newEnd;
+ }
+
+ /**
+ * @generated
+ */
+ protected NamedElement getOldTarget() {
+ return (NamedElement)oldEnd;
+ }
+
+ /**
+ * @generated
+ */
+ protected NamedElement getNewTarget() {
+ return (NamedElement)newEnd;
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/EnumerationCreateCommand.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/EnumerationCreateCommand.java
new file mode 100644
index 00000000000..3f93200545f
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/EnumerationCreateCommand.java
@@ -0,0 +1,134 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.commands;
+
+import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gmf.runtime.common.core.command.CommandResult;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ConfigureRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.diagram.composite.providers.ElementInitializers;
+import org.eclipse.uml2.uml.Enumeration;
+import org.eclipse.uml2.uml.Package;
+import org.eclipse.uml2.uml.UMLFactory;
+
+/**
+ * @generated
+ */
+public class EnumerationCreateCommand extends EditElementCommand {
+
+ /**
+ * @generated
+ */
+ private EClass eClass = null;
+
+ /**
+ * @generated
+ */
+ private EObject eObject = null;
+
+ /**
+ * @generated
+ */
+ public EnumerationCreateCommand(CreateElementRequest req, EObject eObject) {
+ super(req.getLabel(), null, req);
+ this.eObject = eObject;
+ this.eClass = eObject != null ? eObject.eClass() : null;
+ }
+
+ /**
+ * @generated
+ */
+ public static EnumerationCreateCommand create(CreateElementRequest req, EObject eObject) {
+ return new EnumerationCreateCommand(req, eObject);
+ }
+
+ /**
+ * @generated
+ */
+ public EnumerationCreateCommand(CreateElementRequest req) {
+ super(req.getLabel(), null, req);
+ }
+
+ /**
+ * FIXME: replace with setElementToEdit()
+ *
+ * @generated
+ */
+ protected EObject getElementToEdit() {
+
+ EObject container = ((CreateElementRequest)getRequest()).getContainer();
+ if(container instanceof View) {
+ container = ((View)container).getElement();
+ }
+ if(container != null) {
+ return container;
+ }
+ return eObject;
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canExecute() {
+
+ // Creation constraint for TopLevelNodes
+ if(!(getElementToEdit() instanceof Package)) {
+ return false;
+ }
+
+ return true;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+
+ Enumeration newElement = UMLFactory.eINSTANCE.createEnumeration();
+
+ Package owner = (Package)getElementToEdit();
+ owner.getPackagedElements().add(newElement);
+
+ ElementInitializers.getInstance().init_Enumeration_2067(newElement);
+
+ doConfigure(newElement, monitor, info);
+
+ ((CreateElementRequest)getRequest()).setNewElement(newElement);
+ return CommandResult.newOKCommandResult(newElement);
+ }
+
+ /**
+ * @generated
+ */
+ protected void doConfigure(Enumeration newElement, IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+ IElementType elementType = ((CreateElementRequest)getRequest()).getElementType();
+ ConfigureRequest configureRequest = new ConfigureRequest(getEditingDomain(), newElement, elementType);
+ configureRequest.setClientContext(((CreateElementRequest)getRequest()).getClientContext());
+ configureRequest.addParameters(getRequest().getParameters());
+ ICommand configureCommand = elementType.getEditCommand(configureRequest);
+ if(configureCommand != null && configureCommand.canExecute()) {
+ configureCommand.execute(monitor, info);
+ }
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/EnumerationCreateCommandCLN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/EnumerationCreateCommandCLN.java
new file mode 100644
index 00000000000..e92a5a778fa
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/EnumerationCreateCommandCLN.java
@@ -0,0 +1,129 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.commands;
+
+import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gmf.runtime.common.core.command.CommandResult;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ConfigureRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.diagram.composite.providers.ElementInitializers;
+import org.eclipse.uml2.uml.Class;
+import org.eclipse.uml2.uml.Enumeration;
+import org.eclipse.uml2.uml.UMLFactory;
+
+/**
+ * @generated
+ */
+public class EnumerationCreateCommandCLN extends EditElementCommand {
+
+ /**
+ * @generated
+ */
+ private EClass eClass = null;
+
+ /**
+ * @generated
+ */
+ private EObject eObject = null;
+
+ /**
+ * @generated
+ */
+ public EnumerationCreateCommandCLN(CreateElementRequest req, EObject eObject) {
+ super(req.getLabel(), null, req);
+ this.eObject = eObject;
+ this.eClass = eObject != null ? eObject.eClass() : null;
+ }
+
+ /**
+ * @generated
+ */
+ public static EnumerationCreateCommandCLN create(CreateElementRequest req, EObject eObject) {
+ return new EnumerationCreateCommandCLN(req, eObject);
+ }
+
+ /**
+ * @generated
+ */
+ public EnumerationCreateCommandCLN(CreateElementRequest req) {
+ super(req.getLabel(), null, req);
+ }
+
+ /**
+ * FIXME: replace with setElementToEdit()
+ *
+ * @generated
+ */
+ protected EObject getElementToEdit() {
+
+ EObject container = ((CreateElementRequest)getRequest()).getContainer();
+ if(container instanceof View) {
+ container = ((View)container).getElement();
+ }
+ if(container != null) {
+ return container;
+ }
+ return eObject;
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canExecute() {
+
+ return true;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+
+ Enumeration newElement = UMLFactory.eINSTANCE.createEnumeration();
+
+ Class owner = (Class)getElementToEdit();
+ owner.getNestedClassifiers().add(newElement);
+
+ ElementInitializers.getInstance().init_Enumeration_3111(newElement);
+
+ doConfigure(newElement, monitor, info);
+
+ ((CreateElementRequest)getRequest()).setNewElement(newElement);
+ return CommandResult.newOKCommandResult(newElement);
+ }
+
+ /**
+ * @generated
+ */
+ protected void doConfigure(Enumeration newElement, IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+ IElementType elementType = ((CreateElementRequest)getRequest()).getElementType();
+ ConfigureRequest configureRequest = new ConfigureRequest(getEditingDomain(), newElement, elementType);
+ configureRequest.setClientContext(((CreateElementRequest)getRequest()).getClientContext());
+ configureRequest.addParameters(getRequest().getParameters());
+ ICommand configureCommand = elementType.getEditCommand(configureRequest);
+ if(configureCommand != null && configureCommand.canExecute()) {
+ configureCommand.execute(monitor, info);
+ }
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/EnumerationCreateCommandCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/EnumerationCreateCommandCN.java
new file mode 100644
index 00000000000..429bebd5190
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/EnumerationCreateCommandCN.java
@@ -0,0 +1,129 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.commands;
+
+import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gmf.runtime.common.core.command.CommandResult;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ConfigureRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.diagram.composite.providers.ElementInitializers;
+import org.eclipse.uml2.uml.Class;
+import org.eclipse.uml2.uml.Enumeration;
+import org.eclipse.uml2.uml.UMLFactory;
+
+/**
+ * @generated
+ */
+public class EnumerationCreateCommandCN extends EditElementCommand {
+
+ /**
+ * @generated
+ */
+ private EClass eClass = null;
+
+ /**
+ * @generated
+ */
+ private EObject eObject = null;
+
+ /**
+ * @generated
+ */
+ public EnumerationCreateCommandCN(CreateElementRequest req, EObject eObject) {
+ super(req.getLabel(), null, req);
+ this.eObject = eObject;
+ this.eClass = eObject != null ? eObject.eClass() : null;
+ }
+
+ /**
+ * @generated
+ */
+ public static EnumerationCreateCommandCN create(CreateElementRequest req, EObject eObject) {
+ return new EnumerationCreateCommandCN(req, eObject);
+ }
+
+ /**
+ * @generated
+ */
+ public EnumerationCreateCommandCN(CreateElementRequest req) {
+ super(req.getLabel(), null, req);
+ }
+
+ /**
+ * FIXME: replace with setElementToEdit()
+ *
+ * @generated
+ */
+ protected EObject getElementToEdit() {
+
+ EObject container = ((CreateElementRequest)getRequest()).getContainer();
+ if(container instanceof View) {
+ container = ((View)container).getElement();
+ }
+ if(container != null) {
+ return container;
+ }
+ return eObject;
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canExecute() {
+
+ return true;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+
+ Enumeration newElement = UMLFactory.eINSTANCE.createEnumeration();
+
+ Class owner = (Class)getElementToEdit();
+ owner.getNestedClassifiers().add(newElement);
+
+ ElementInitializers.getInstance().init_Enumeration_3079(newElement);
+
+ doConfigure(newElement, monitor, info);
+
+ ((CreateElementRequest)getRequest()).setNewElement(newElement);
+ return CommandResult.newOKCommandResult(newElement);
+ }
+
+ /**
+ * @generated
+ */
+ protected void doConfigure(Enumeration newElement, IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+ IElementType elementType = ((CreateElementRequest)getRequest()).getElementType();
+ ConfigureRequest configureRequest = new ConfigureRequest(getEditingDomain(), newElement, elementType);
+ configureRequest.setClientContext(((CreateElementRequest)getRequest()).getClientContext());
+ configureRequest.addParameters(getRequest().getParameters());
+ ICommand configureCommand = elementType.getEditCommand(configureRequest);
+ if(configureCommand != null && configureCommand.canExecute()) {
+ configureCommand.execute(monitor, info);
+ }
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/EnumerationLiteralCreateCommandCLN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/EnumerationLiteralCreateCommandCLN.java
new file mode 100644
index 00000000000..35cecf43360
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/EnumerationLiteralCreateCommandCLN.java
@@ -0,0 +1,129 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.commands;
+
+import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gmf.runtime.common.core.command.CommandResult;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ConfigureRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.diagram.composite.providers.ElementInitializers;
+import org.eclipse.uml2.uml.Enumeration;
+import org.eclipse.uml2.uml.EnumerationLiteral;
+import org.eclipse.uml2.uml.UMLFactory;
+
+/**
+ * @generated
+ */
+public class EnumerationLiteralCreateCommandCLN extends EditElementCommand {
+
+ /**
+ * @generated
+ */
+ private EClass eClass = null;
+
+ /**
+ * @generated
+ */
+ private EObject eObject = null;
+
+ /**
+ * @generated
+ */
+ public EnumerationLiteralCreateCommandCLN(CreateElementRequest req, EObject eObject) {
+ super(req.getLabel(), null, req);
+ this.eObject = eObject;
+ this.eClass = eObject != null ? eObject.eClass() : null;
+ }
+
+ /**
+ * @generated
+ */
+ public static EnumerationLiteralCreateCommandCLN create(CreateElementRequest req, EObject eObject) {
+ return new EnumerationLiteralCreateCommandCLN(req, eObject);
+ }
+
+ /**
+ * @generated
+ */
+ public EnumerationLiteralCreateCommandCLN(CreateElementRequest req) {
+ super(req.getLabel(), null, req);
+ }
+
+ /**
+ * FIXME: replace with setElementToEdit()
+ *
+ * @generated
+ */
+ protected EObject getElementToEdit() {
+
+ EObject container = ((CreateElementRequest)getRequest()).getContainer();
+ if(container instanceof View) {
+ container = ((View)container).getElement();
+ }
+ if(container != null) {
+ return container;
+ }
+ return eObject;
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canExecute() {
+
+ return true;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+
+ EnumerationLiteral newElement = UMLFactory.eINSTANCE.createEnumerationLiteral();
+
+ Enumeration owner = (Enumeration)getElementToEdit();
+ owner.getOwnedLiterals().add(newElement);
+
+ ElementInitializers.getInstance().init_EnumerationLiteral_3066(newElement);
+
+ doConfigure(newElement, monitor, info);
+
+ ((CreateElementRequest)getRequest()).setNewElement(newElement);
+ return CommandResult.newOKCommandResult(newElement);
+ }
+
+ /**
+ * @generated
+ */
+ protected void doConfigure(EnumerationLiteral newElement, IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+ IElementType elementType = ((CreateElementRequest)getRequest()).getElementType();
+ ConfigureRequest configureRequest = new ConfigureRequest(getEditingDomain(), newElement, elementType);
+ configureRequest.setClientContext(((CreateElementRequest)getRequest()).getClientContext());
+ configureRequest.addParameters(getRequest().getParameters());
+ ICommand configureCommand = elementType.getEditCommand(configureRequest);
+ if(configureCommand != null && configureCommand.canExecute()) {
+ configureCommand.execute(monitor, info);
+ }
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/ExecutionEnvironmentCompositeCreateCommand.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/ExecutionEnvironmentCompositeCreateCommand.java
new file mode 100644
index 00000000000..783e8ab8dee
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/ExecutionEnvironmentCompositeCreateCommand.java
@@ -0,0 +1,134 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.commands;
+
+import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gmf.runtime.common.core.command.CommandResult;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ConfigureRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.diagram.composite.providers.ElementInitializers;
+import org.eclipse.uml2.uml.ExecutionEnvironment;
+import org.eclipse.uml2.uml.Package;
+import org.eclipse.uml2.uml.UMLFactory;
+
+/**
+ * @generated
+ */
+public class ExecutionEnvironmentCompositeCreateCommand extends EditElementCommand {
+
+ /**
+ * @generated
+ */
+ private EClass eClass = null;
+
+ /**
+ * @generated
+ */
+ private EObject eObject = null;
+
+ /**
+ * @generated
+ */
+ public ExecutionEnvironmentCompositeCreateCommand(CreateElementRequest req, EObject eObject) {
+ super(req.getLabel(), null, req);
+ this.eObject = eObject;
+ this.eClass = eObject != null ? eObject.eClass() : null;
+ }
+
+ /**
+ * @generated
+ */
+ public static ExecutionEnvironmentCompositeCreateCommand create(CreateElementRequest req, EObject eObject) {
+ return new ExecutionEnvironmentCompositeCreateCommand(req, eObject);
+ }
+
+ /**
+ * @generated
+ */
+ public ExecutionEnvironmentCompositeCreateCommand(CreateElementRequest req) {
+ super(req.getLabel(), null, req);
+ }
+
+ /**
+ * FIXME: replace with setElementToEdit()
+ *
+ * @generated
+ */
+ protected EObject getElementToEdit() {
+
+ EObject container = ((CreateElementRequest)getRequest()).getContainer();
+ if(container instanceof View) {
+ container = ((View)container).getElement();
+ }
+ if(container != null) {
+ return container;
+ }
+ return eObject;
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canExecute() {
+
+ // Creation constraint for TopLevelNodes
+ if(!(getElementToEdit() instanceof Package)) {
+ return false;
+ }
+
+ return true;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+
+ ExecutionEnvironment newElement = UMLFactory.eINSTANCE.createExecutionEnvironment();
+
+ Package owner = (Package)getElementToEdit();
+ owner.getPackagedElements().add(newElement);
+
+ ElementInitializers.getInstance().init_ExecutionEnvironment_2071(newElement);
+
+ doConfigure(newElement, monitor, info);
+
+ ((CreateElementRequest)getRequest()).setNewElement(newElement);
+ return CommandResult.newOKCommandResult(newElement);
+ }
+
+ /**
+ * @generated
+ */
+ protected void doConfigure(ExecutionEnvironment newElement, IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+ IElementType elementType = ((CreateElementRequest)getRequest()).getElementType();
+ ConfigureRequest configureRequest = new ConfigureRequest(getEditingDomain(), newElement, elementType);
+ configureRequest.setClientContext(((CreateElementRequest)getRequest()).getClientContext());
+ configureRequest.addParameters(getRequest().getParameters());
+ ICommand configureCommand = elementType.getEditCommand(configureRequest);
+ if(configureCommand != null && configureCommand.canExecute()) {
+ configureCommand.execute(monitor, info);
+ }
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/ExecutionEnvironmentCompositeCreateCommandCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/ExecutionEnvironmentCompositeCreateCommandCN.java
new file mode 100644
index 00000000000..b22c813b6fd
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/ExecutionEnvironmentCompositeCreateCommandCN.java
@@ -0,0 +1,129 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.commands;
+
+import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gmf.runtime.common.core.command.CommandResult;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ConfigureRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.diagram.composite.providers.ElementInitializers;
+import org.eclipse.uml2.uml.Class;
+import org.eclipse.uml2.uml.ExecutionEnvironment;
+import org.eclipse.uml2.uml.UMLFactory;
+
+/**
+ * @generated
+ */
+public class ExecutionEnvironmentCompositeCreateCommandCN extends EditElementCommand {
+
+ /**
+ * @generated
+ */
+ private EClass eClass = null;
+
+ /**
+ * @generated
+ */
+ private EObject eObject = null;
+
+ /**
+ * @generated
+ */
+ public ExecutionEnvironmentCompositeCreateCommandCN(CreateElementRequest req, EObject eObject) {
+ super(req.getLabel(), null, req);
+ this.eObject = eObject;
+ this.eClass = eObject != null ? eObject.eClass() : null;
+ }
+
+ /**
+ * @generated
+ */
+ public static ExecutionEnvironmentCompositeCreateCommandCN create(CreateElementRequest req, EObject eObject) {
+ return new ExecutionEnvironmentCompositeCreateCommandCN(req, eObject);
+ }
+
+ /**
+ * @generated
+ */
+ public ExecutionEnvironmentCompositeCreateCommandCN(CreateElementRequest req) {
+ super(req.getLabel(), null, req);
+ }
+
+ /**
+ * FIXME: replace with setElementToEdit()
+ *
+ * @generated
+ */
+ protected EObject getElementToEdit() {
+
+ EObject container = ((CreateElementRequest)getRequest()).getContainer();
+ if(container instanceof View) {
+ container = ((View)container).getElement();
+ }
+ if(container != null) {
+ return container;
+ }
+ return eObject;
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canExecute() {
+
+ return true;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+
+ ExecutionEnvironment newElement = UMLFactory.eINSTANCE.createExecutionEnvironment();
+
+ Class owner = (Class)getElementToEdit();
+ owner.getNestedClassifiers().add(newElement);
+
+ ElementInitializers.getInstance().init_ExecutionEnvironment_3083(newElement);
+
+ doConfigure(newElement, monitor, info);
+
+ ((CreateElementRequest)getRequest()).setNewElement(newElement);
+ return CommandResult.newOKCommandResult(newElement);
+ }
+
+ /**
+ * @generated
+ */
+ protected void doConfigure(ExecutionEnvironment newElement, IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+ IElementType elementType = ((CreateElementRequest)getRequest()).getElementType();
+ ConfigureRequest configureRequest = new ConfigureRequest(getEditingDomain(), newElement, elementType);
+ configureRequest.setClientContext(((CreateElementRequest)getRequest()).getClientContext());
+ configureRequest.addParameters(getRequest().getParameters());
+ ICommand configureCommand = elementType.getEditCommand(configureRequest);
+ if(configureCommand != null && configureCommand.canExecute()) {
+ configureCommand.execute(monitor, info);
+ }
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/ExecutionEventCreateCommand.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/ExecutionEventCreateCommand.java
new file mode 100644
index 00000000000..b8be31178f2
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/ExecutionEventCreateCommand.java
@@ -0,0 +1,134 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.commands;
+
+import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gmf.runtime.common.core.command.CommandResult;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ConfigureRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.diagram.composite.providers.ElementInitializers;
+import org.eclipse.uml2.uml.ExecutionEvent;
+import org.eclipse.uml2.uml.Package;
+import org.eclipse.uml2.uml.UMLFactory;
+
+/**
+ * @generated
+ */
+public class ExecutionEventCreateCommand extends EditElementCommand {
+
+ /**
+ * @generated
+ */
+ private EClass eClass = null;
+
+ /**
+ * @generated
+ */
+ private EObject eObject = null;
+
+ /**
+ * @generated
+ */
+ public ExecutionEventCreateCommand(CreateElementRequest req, EObject eObject) {
+ super(req.getLabel(), null, req);
+ this.eObject = eObject;
+ this.eClass = eObject != null ? eObject.eClass() : null;
+ }
+
+ /**
+ * @generated
+ */
+ public static ExecutionEventCreateCommand create(CreateElementRequest req, EObject eObject) {
+ return new ExecutionEventCreateCommand(req, eObject);
+ }
+
+ /**
+ * @generated
+ */
+ public ExecutionEventCreateCommand(CreateElementRequest req) {
+ super(req.getLabel(), null, req);
+ }
+
+ /**
+ * FIXME: replace with setElementToEdit()
+ *
+ * @generated
+ */
+ protected EObject getElementToEdit() {
+
+ EObject container = ((CreateElementRequest)getRequest()).getContainer();
+ if(container instanceof View) {
+ container = ((View)container).getElement();
+ }
+ if(container != null) {
+ return container;
+ }
+ return eObject;
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canExecute() {
+
+ // Creation constraint for TopLevelNodes
+ if(!(getElementToEdit() instanceof Package)) {
+ return false;
+ }
+
+ return true;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+
+ ExecutionEvent newElement = UMLFactory.eINSTANCE.createExecutionEvent();
+
+ Package owner = (Package)getElementToEdit();
+ owner.getPackagedElements().add(newElement);
+
+ ElementInitializers.getInstance().init_ExecutionEvent_2092(newElement);
+
+ doConfigure(newElement, monitor, info);
+
+ ((CreateElementRequest)getRequest()).setNewElement(newElement);
+ return CommandResult.newOKCommandResult(newElement);
+ }
+
+ /**
+ * @generated
+ */
+ protected void doConfigure(ExecutionEvent newElement, IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+ IElementType elementType = ((CreateElementRequest)getRequest()).getElementType();
+ ConfigureRequest configureRequest = new ConfigureRequest(getEditingDomain(), newElement, elementType);
+ configureRequest.setClientContext(((CreateElementRequest)getRequest()).getClientContext());
+ configureRequest.addParameters(getRequest().getParameters());
+ ICommand configureCommand = elementType.getEditCommand(configureRequest);
+ if(configureCommand != null && configureCommand.canExecute()) {
+ configureCommand.execute(monitor, info);
+ }
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/ExpressionCreateCommand.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/ExpressionCreateCommand.java
new file mode 100644
index 00000000000..d71bafe4775
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/ExpressionCreateCommand.java
@@ -0,0 +1,134 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.commands;
+
+import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gmf.runtime.common.core.command.CommandResult;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ConfigureRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.diagram.composite.providers.ElementInitializers;
+import org.eclipse.uml2.uml.Expression;
+import org.eclipse.uml2.uml.Package;
+import org.eclipse.uml2.uml.UMLFactory;
+
+/**
+ * @generated
+ */
+public class ExpressionCreateCommand extends EditElementCommand {
+
+ /**
+ * @generated
+ */
+ private EClass eClass = null;
+
+ /**
+ * @generated
+ */
+ private EObject eObject = null;
+
+ /**
+ * @generated
+ */
+ public ExpressionCreateCommand(CreateElementRequest req, EObject eObject) {
+ super(req.getLabel(), null, req);
+ this.eObject = eObject;
+ this.eClass = eObject != null ? eObject.eClass() : null;
+ }
+
+ /**
+ * @generated
+ */
+ public static ExpressionCreateCommand create(CreateElementRequest req, EObject eObject) {
+ return new ExpressionCreateCommand(req, eObject);
+ }
+
+ /**
+ * @generated
+ */
+ public ExpressionCreateCommand(CreateElementRequest req) {
+ super(req.getLabel(), null, req);
+ }
+
+ /**
+ * FIXME: replace with setElementToEdit()
+ *
+ * @generated
+ */
+ protected EObject getElementToEdit() {
+
+ EObject container = ((CreateElementRequest)getRequest()).getContainer();
+ if(container instanceof View) {
+ container = ((View)container).getElement();
+ }
+ if(container != null) {
+ return container;
+ }
+ return eObject;
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canExecute() {
+
+ // Creation constraint for TopLevelNodes
+ if(!(getElementToEdit() instanceof Package)) {
+ return false;
+ }
+
+ return true;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+
+ Expression newElement = UMLFactory.eINSTANCE.createExpression();
+
+ Package owner = (Package)getElementToEdit();
+ owner.getPackagedElements().add(newElement);
+
+ ElementInitializers.getInstance().init_Expression_2103(newElement);
+
+ doConfigure(newElement, monitor, info);
+
+ ((CreateElementRequest)getRequest()).setNewElement(newElement);
+ return CommandResult.newOKCommandResult(newElement);
+ }
+
+ /**
+ * @generated
+ */
+ protected void doConfigure(Expression newElement, IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+ IElementType elementType = ((CreateElementRequest)getRequest()).getElementType();
+ ConfigureRequest configureRequest = new ConfigureRequest(getEditingDomain(), newElement, elementType);
+ configureRequest.setClientContext(((CreateElementRequest)getRequest()).getClientContext());
+ configureRequest.addParameters(getRequest().getParameters());
+ ICommand configureCommand = elementType.getEditCommand(configureRequest);
+ if(configureCommand != null && configureCommand.canExecute()) {
+ configureCommand.execute(monitor, info);
+ }
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/FunctionBehaviorCompositeCreateCommand.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/FunctionBehaviorCompositeCreateCommand.java
new file mode 100644
index 00000000000..8a9feca627d
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/FunctionBehaviorCompositeCreateCommand.java
@@ -0,0 +1,134 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.commands;
+
+import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gmf.runtime.common.core.command.CommandResult;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ConfigureRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.diagram.composite.providers.ElementInitializers;
+import org.eclipse.uml2.uml.FunctionBehavior;
+import org.eclipse.uml2.uml.Package;
+import org.eclipse.uml2.uml.UMLFactory;
+
+/**
+ * @generated
+ */
+public class FunctionBehaviorCompositeCreateCommand extends EditElementCommand {
+
+ /**
+ * @generated
+ */
+ private EClass eClass = null;
+
+ /**
+ * @generated
+ */
+ private EObject eObject = null;
+
+ /**
+ * @generated
+ */
+ public FunctionBehaviorCompositeCreateCommand(CreateElementRequest req, EObject eObject) {
+ super(req.getLabel(), null, req);
+ this.eObject = eObject;
+ this.eClass = eObject != null ? eObject.eClass() : null;
+ }
+
+ /**
+ * @generated
+ */
+ public static FunctionBehaviorCompositeCreateCommand create(CreateElementRequest req, EObject eObject) {
+ return new FunctionBehaviorCompositeCreateCommand(req, eObject);
+ }
+
+ /**
+ * @generated
+ */
+ public FunctionBehaviorCompositeCreateCommand(CreateElementRequest req) {
+ super(req.getLabel(), null, req);
+ }
+
+ /**
+ * FIXME: replace with setElementToEdit()
+ *
+ * @generated
+ */
+ protected EObject getElementToEdit() {
+
+ EObject container = ((CreateElementRequest)getRequest()).getContainer();
+ if(container instanceof View) {
+ container = ((View)container).getElement();
+ }
+ if(container != null) {
+ return container;
+ }
+ return eObject;
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canExecute() {
+
+ // Creation constraint for TopLevelNodes
+ if(!(getElementToEdit() instanceof Package)) {
+ return false;
+ }
+
+ return true;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+
+ FunctionBehavior newElement = UMLFactory.eINSTANCE.createFunctionBehavior();
+
+ Package owner = (Package)getElementToEdit();
+ owner.getPackagedElements().add(newElement);
+
+ ElementInitializers.getInstance().init_FunctionBehavior_2064(newElement);
+
+ doConfigure(newElement, monitor, info);
+
+ ((CreateElementRequest)getRequest()).setNewElement(newElement);
+ return CommandResult.newOKCommandResult(newElement);
+ }
+
+ /**
+ * @generated
+ */
+ protected void doConfigure(FunctionBehavior newElement, IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+ IElementType elementType = ((CreateElementRequest)getRequest()).getElementType();
+ ConfigureRequest configureRequest = new ConfigureRequest(getEditingDomain(), newElement, elementType);
+ configureRequest.setClientContext(((CreateElementRequest)getRequest()).getClientContext());
+ configureRequest.addParameters(getRequest().getParameters());
+ ICommand configureCommand = elementType.getEditCommand(configureRequest);
+ if(configureCommand != null && configureCommand.canExecute()) {
+ configureCommand.execute(monitor, info);
+ }
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/FunctionBehaviorCompositeCreateCommandCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/FunctionBehaviorCompositeCreateCommandCN.java
new file mode 100644
index 00000000000..14dbee60d06
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/FunctionBehaviorCompositeCreateCommandCN.java
@@ -0,0 +1,129 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.commands;
+
+import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gmf.runtime.common.core.command.CommandResult;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ConfigureRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.diagram.composite.providers.ElementInitializers;
+import org.eclipse.uml2.uml.Class;
+import org.eclipse.uml2.uml.FunctionBehavior;
+import org.eclipse.uml2.uml.UMLFactory;
+
+/**
+ * @generated
+ */
+public class FunctionBehaviorCompositeCreateCommandCN extends EditElementCommand {
+
+ /**
+ * @generated
+ */
+ private EClass eClass = null;
+
+ /**
+ * @generated
+ */
+ private EObject eObject = null;
+
+ /**
+ * @generated
+ */
+ public FunctionBehaviorCompositeCreateCommandCN(CreateElementRequest req, EObject eObject) {
+ super(req.getLabel(), null, req);
+ this.eObject = eObject;
+ this.eClass = eObject != null ? eObject.eClass() : null;
+ }
+
+ /**
+ * @generated
+ */
+ public static FunctionBehaviorCompositeCreateCommandCN create(CreateElementRequest req, EObject eObject) {
+ return new FunctionBehaviorCompositeCreateCommandCN(req, eObject);
+ }
+
+ /**
+ * @generated
+ */
+ public FunctionBehaviorCompositeCreateCommandCN(CreateElementRequest req) {
+ super(req.getLabel(), null, req);
+ }
+
+ /**
+ * FIXME: replace with setElementToEdit()
+ *
+ * @generated
+ */
+ protected EObject getElementToEdit() {
+
+ EObject container = ((CreateElementRequest)getRequest()).getContainer();
+ if(container instanceof View) {
+ container = ((View)container).getElement();
+ }
+ if(container != null) {
+ return container;
+ }
+ return eObject;
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canExecute() {
+
+ return true;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+
+ FunctionBehavior newElement = UMLFactory.eINSTANCE.createFunctionBehavior();
+
+ Class owner = (Class)getElementToEdit();
+ owner.getNestedClassifiers().add(newElement);
+
+ ElementInitializers.getInstance().init_FunctionBehavior_3076(newElement);
+
+ doConfigure(newElement, monitor, info);
+
+ ((CreateElementRequest)getRequest()).setNewElement(newElement);
+ return CommandResult.newOKCommandResult(newElement);
+ }
+
+ /**
+ * @generated
+ */
+ protected void doConfigure(FunctionBehavior newElement, IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+ IElementType elementType = ((CreateElementRequest)getRequest()).getElementType();
+ ConfigureRequest configureRequest = new ConfigureRequest(getEditingDomain(), newElement, elementType);
+ configureRequest.setClientContext(((CreateElementRequest)getRequest()).getClientContext());
+ configureRequest.addParameters(getRequest().getParameters());
+ ICommand configureCommand = elementType.getEditCommand(configureRequest);
+ if(configureCommand != null && configureCommand.canExecute()) {
+ configureCommand.execute(monitor, info);
+ }
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/FunctionBehaviorCreateCommandCLN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/FunctionBehaviorCreateCommandCLN.java
new file mode 100644
index 00000000000..6353ba7187d
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/FunctionBehaviorCreateCommandCLN.java
@@ -0,0 +1,129 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.commands;
+
+import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gmf.runtime.common.core.command.CommandResult;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ConfigureRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.diagram.composite.providers.ElementInitializers;
+import org.eclipse.uml2.uml.Class;
+import org.eclipse.uml2.uml.FunctionBehavior;
+import org.eclipse.uml2.uml.UMLFactory;
+
+/**
+ * @generated
+ */
+public class FunctionBehaviorCreateCommandCLN extends EditElementCommand {
+
+ /**
+ * @generated
+ */
+ private EClass eClass = null;
+
+ /**
+ * @generated
+ */
+ private EObject eObject = null;
+
+ /**
+ * @generated
+ */
+ public FunctionBehaviorCreateCommandCLN(CreateElementRequest req, EObject eObject) {
+ super(req.getLabel(), null, req);
+ this.eObject = eObject;
+ this.eClass = eObject != null ? eObject.eClass() : null;
+ }
+
+ /**
+ * @generated
+ */
+ public static FunctionBehaviorCreateCommandCLN create(CreateElementRequest req, EObject eObject) {
+ return new FunctionBehaviorCreateCommandCLN(req, eObject);
+ }
+
+ /**
+ * @generated
+ */
+ public FunctionBehaviorCreateCommandCLN(CreateElementRequest req) {
+ super(req.getLabel(), null, req);
+ }
+
+ /**
+ * FIXME: replace with setElementToEdit()
+ *
+ * @generated
+ */
+ protected EObject getElementToEdit() {
+
+ EObject container = ((CreateElementRequest)getRequest()).getContainer();
+ if(container instanceof View) {
+ container = ((View)container).getElement();
+ }
+ if(container != null) {
+ return container;
+ }
+ return eObject;
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canExecute() {
+
+ return true;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+
+ FunctionBehavior newElement = UMLFactory.eINSTANCE.createFunctionBehavior();
+
+ Class owner = (Class)getElementToEdit();
+ owner.getNestedClassifiers().add(newElement);
+
+ ElementInitializers.getInstance().init_FunctionBehavior_3107(newElement);
+
+ doConfigure(newElement, monitor, info);
+
+ ((CreateElementRequest)getRequest()).setNewElement(newElement);
+ return CommandResult.newOKCommandResult(newElement);
+ }
+
+ /**
+ * @generated
+ */
+ protected void doConfigure(FunctionBehavior newElement, IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+ IElementType elementType = ((CreateElementRequest)getRequest()).getElementType();
+ ConfigureRequest configureRequest = new ConfigureRequest(getEditingDomain(), newElement, elementType);
+ configureRequest.setClientContext(((CreateElementRequest)getRequest()).getClientContext());
+ configureRequest.addParameters(getRequest().getParameters());
+ ICommand configureCommand = elementType.getEditCommand(configureRequest);
+ if(configureCommand != null && configureCommand.canExecute()) {
+ configureCommand.execute(monitor, info);
+ }
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/GeneralizationCreateCommand.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/GeneralizationCreateCommand.java
new file mode 100644
index 00000000000..a870ba23bfb
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/GeneralizationCreateCommand.java
@@ -0,0 +1,165 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.commands;
+
+import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gmf.runtime.common.core.command.CommandResult;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ConfigureRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLBaseItemSemanticEditPolicy;
+import org.eclipse.uml2.uml.Classifier;
+import org.eclipse.uml2.uml.Generalization;
+import org.eclipse.uml2.uml.UMLFactory;
+
+/**
+ * @generated
+ */
+public class GeneralizationCreateCommand extends EditElementCommand {
+
+ /**
+ * @generated
+ */
+ protected final EObject source;
+
+ /**
+ * @generated
+ */
+ protected final EObject target;
+
+ /**
+ * @generated
+ */
+ protected Classifier container;
+
+ /**
+ * @generated
+ */
+ public GeneralizationCreateCommand(CreateRelationshipRequest request, EObject source, EObject target) {
+ super(request.getLabel(), null, request);
+ this.source = source;
+ this.target = target;
+ container = deduceContainer(source, target);
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canExecute() {
+ if(source == null && target == null) {
+ return false;
+ }
+ if(source != null && false == source instanceof Classifier) {
+ return false;
+ }
+ if(target != null && false == target instanceof Classifier) {
+ return false;
+ }
+ if(getSource() == null) {
+ return true; // link creation is in progress; source is not defined yet
+ }
+ // target may be null here but it's possible to check constraint
+ if(getContainer() == null) {
+ return false;
+ }
+ return UMLBaseItemSemanticEditPolicy.getLinkConstraints().canCreateGeneralization_4015(getContainer(), getSource(), getTarget());
+ }
+
+ /**
+ * @generated
+ */
+ protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+ if(!canExecute()) {
+ throw new ExecutionException("Invalid arguments in create link command"); //$NON-NLS-1$
+ }
+
+ Generalization newElement = UMLFactory.eINSTANCE.createGeneralization();
+ getContainer().getGeneralizations().add(newElement);
+ newElement.setSpecific(getSource());
+ newElement.setGeneral(getTarget());
+ doConfigure(newElement, monitor, info);
+ ((CreateElementRequest)getRequest()).setNewElement(newElement);
+ return CommandResult.newOKCommandResult(newElement);
+
+ }
+
+ /**
+ * @generated
+ */
+ protected void doConfigure(Generalization newElement, IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+ IElementType elementType = ((CreateElementRequest)getRequest()).getElementType();
+ ConfigureRequest configureRequest = new ConfigureRequest(getEditingDomain(), newElement, elementType);
+ configureRequest.setClientContext(((CreateElementRequest)getRequest()).getClientContext());
+ configureRequest.addParameters(getRequest().getParameters());
+ configureRequest.setParameter(CreateRelationshipRequest.SOURCE, getSource());
+ configureRequest.setParameter(CreateRelationshipRequest.TARGET, getTarget());
+ ICommand configureCommand = elementType.getEditCommand(configureRequest);
+ if(configureCommand != null && configureCommand.canExecute()) {
+ configureCommand.execute(monitor, info);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setElementToEdit(EObject element) {
+ throw new UnsupportedOperationException();
+ }
+
+ /**
+ * @generated
+ */
+ protected Classifier getSource() {
+ return (Classifier)source;
+ }
+
+ /**
+ * @generated
+ */
+ protected Classifier getTarget() {
+ return (Classifier)target;
+ }
+
+ /**
+ * @generated
+ */
+ public Classifier getContainer() {
+ return container;
+ }
+
+ /**
+ * Default approach is to traverse ancestors of the source to find instance of container.
+ * Modify with appropriate logic.
+ *
+ * @generated
+ */
+ protected Classifier deduceContainer(EObject source, EObject target) {
+ // Find container element for the new link.
+ // Climb up by containment hierarchy starting from the source
+ // and return the first element that is instance of the container class.
+ for(EObject element = source; element != null; element = element.eContainer()) {
+ if(element instanceof Classifier) {
+ return (Classifier)element;
+ }
+ }
+ return null;
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/GeneralizationReorientCommand.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/GeneralizationReorientCommand.java
new file mode 100644
index 00000000000..d01bc04f5b1
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/GeneralizationReorientCommand.java
@@ -0,0 +1,169 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.commands;
+
+import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gmf.runtime.common.core.command.CommandResult;
+import org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientRelationshipRequest;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLBaseItemSemanticEditPolicy;
+import org.eclipse.uml2.uml.Classifier;
+import org.eclipse.uml2.uml.Generalization;
+
+/**
+ * @generated
+ */
+public class GeneralizationReorientCommand extends EditElementCommand {
+
+ /**
+ * @generated
+ */
+ private final int reorientDirection;
+
+ /**
+ * @generated
+ */
+ private final EObject oldEnd;
+
+ /**
+ * @generated
+ */
+ private final EObject newEnd;
+
+ /**
+ * @generated
+ */
+ public GeneralizationReorientCommand(ReorientRelationshipRequest request) {
+ super(request.getLabel(), request.getRelationship(), request);
+ reorientDirection = request.getDirection();
+ oldEnd = request.getOldRelationshipEnd();
+ newEnd = request.getNewRelationshipEnd();
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canExecute() {
+ if(false == getElementToEdit() instanceof Generalization) {
+ return false;
+ }
+ if(reorientDirection == ReorientRelationshipRequest.REORIENT_SOURCE) {
+ return canReorientSource();
+ }
+ if(reorientDirection == ReorientRelationshipRequest.REORIENT_TARGET) {
+ return canReorientTarget();
+ }
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean canReorientSource() {
+ if(!(oldEnd instanceof Classifier && newEnd instanceof Classifier)) {
+ return false;
+ }
+ Classifier target = getLink().getGeneral();
+ if(!(getLink().eContainer() instanceof Classifier)) {
+ return false;
+ }
+ Classifier container = (Classifier)getLink().eContainer();
+ return UMLBaseItemSemanticEditPolicy.getLinkConstraints().canExistGeneralization_4015(container, getLink(), getNewSource(), target);
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean canReorientTarget() {
+ if(!(oldEnd instanceof Classifier && newEnd instanceof Classifier)) {
+ return false;
+ }
+ Classifier source = getLink().getSpecific();
+ if(!(getLink().eContainer() instanceof Classifier)) {
+ return false;
+ }
+ Classifier container = (Classifier)getLink().eContainer();
+ return UMLBaseItemSemanticEditPolicy.getLinkConstraints().canExistGeneralization_4015(container, getLink(), source, getNewTarget());
+ }
+
+ /**
+ * @generated
+ */
+ protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+ if(!canExecute()) {
+ throw new ExecutionException("Invalid arguments in reorient link command"); //$NON-NLS-1$
+ }
+ if(reorientDirection == ReorientRelationshipRequest.REORIENT_SOURCE) {
+ return reorientSource();
+ }
+ if(reorientDirection == ReorientRelationshipRequest.REORIENT_TARGET) {
+ return reorientTarget();
+ }
+ throw new IllegalStateException();
+ }
+
+ /**
+ * @generated
+ */
+ protected CommandResult reorientSource() throws ExecutionException {
+ getLink().setSpecific(getNewSource());
+ return CommandResult.newOKCommandResult(getLink());
+ }
+
+ /**
+ * @generated
+ */
+ protected CommandResult reorientTarget() throws ExecutionException {
+ getLink().setGeneral(getNewTarget());
+ return CommandResult.newOKCommandResult(getLink());
+ }
+
+ /**
+ * @generated
+ */
+ protected Generalization getLink() {
+ return (Generalization)getElementToEdit();
+ }
+
+ /**
+ * @generated
+ */
+ protected Classifier getOldSource() {
+ return (Classifier)oldEnd;
+ }
+
+ /**
+ * @generated
+ */
+ protected Classifier getNewSource() {
+ return (Classifier)newEnd;
+ }
+
+ /**
+ * @generated
+ */
+ protected Classifier getOldTarget() {
+ return (Classifier)oldEnd;
+ }
+
+ /**
+ * @generated
+ */
+ protected Classifier getNewTarget() {
+ return (Classifier)newEnd;
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/InformationFlowCreateCommand.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/InformationFlowCreateCommand.java
new file mode 100644
index 00000000000..ab5417b6223
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/InformationFlowCreateCommand.java
@@ -0,0 +1,168 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.commands;
+
+import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gmf.runtime.common.core.command.CommandResult;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ConfigureRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLBaseItemSemanticEditPolicy;
+import org.eclipse.papyrus.diagram.composite.providers.ElementInitializers;
+import org.eclipse.uml2.uml.InformationFlow;
+import org.eclipse.uml2.uml.NamedElement;
+import org.eclipse.uml2.uml.Package;
+import org.eclipse.uml2.uml.UMLFactory;
+
+/**
+ * @generated
+ */
+public class InformationFlowCreateCommand extends EditElementCommand {
+
+ /**
+ * @generated
+ */
+ protected final EObject source;
+
+ /**
+ * @generated
+ */
+ protected final EObject target;
+
+ /**
+ * @generated
+ */
+ protected Package container;
+
+ /**
+ * @generated
+ */
+ public InformationFlowCreateCommand(CreateRelationshipRequest request, EObject source, EObject target) {
+ super(request.getLabel(), null, request);
+ this.source = source;
+ this.target = target;
+ container = deduceContainer(source, target);
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canExecute() {
+ if(source == null && target == null) {
+ return false;
+ }
+ if(source != null && false == source instanceof NamedElement) {
+ return false;
+ }
+ if(target != null && false == target instanceof NamedElement) {
+ return false;
+ }
+ if(getSource() == null) {
+ return true; // link creation is in progress; source is not defined yet
+ }
+ // target may be null here but it's possible to check constraint
+ if(getContainer() == null) {
+ return false;
+ }
+ return UMLBaseItemSemanticEditPolicy.getLinkConstraints().canCreateInformationFlow_4021(getContainer(), getSource(), getTarget());
+ }
+
+ /**
+ * @generated
+ */
+ protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+ if(!canExecute()) {
+ throw new ExecutionException("Invalid arguments in create link command"); //$NON-NLS-1$
+ }
+
+ InformationFlow newElement = UMLFactory.eINSTANCE.createInformationFlow();
+ getContainer().getPackagedElements().add(newElement);
+ newElement.getInformationSources().add(getSource());
+ newElement.getInformationTargets().add(getTarget());
+ ElementInitializers.getInstance().init_InformationFlow_4021(newElement);
+ doConfigure(newElement, monitor, info);
+ ((CreateElementRequest)getRequest()).setNewElement(newElement);
+ return CommandResult.newOKCommandResult(newElement);
+
+ }
+
+ /**
+ * @generated
+ */
+ protected void doConfigure(InformationFlow newElement, IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+ IElementType elementType = ((CreateElementRequest)getRequest()).getElementType();
+ ConfigureRequest configureRequest = new ConfigureRequest(getEditingDomain(), newElement, elementType);
+ configureRequest.setClientContext(((CreateElementRequest)getRequest()).getClientContext());
+ configureRequest.addParameters(getRequest().getParameters());
+ configureRequest.setParameter(CreateRelationshipRequest.SOURCE, getSource());
+ configureRequest.setParameter(CreateRelationshipRequest.TARGET, getTarget());
+ ICommand configureCommand = elementType.getEditCommand(configureRequest);
+ if(configureCommand != null && configureCommand.canExecute()) {
+ configureCommand.execute(monitor, info);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setElementToEdit(EObject element) {
+ throw new UnsupportedOperationException();
+ }
+
+ /**
+ * @generated
+ */
+ protected NamedElement getSource() {
+ return (NamedElement)source;
+ }
+
+ /**
+ * @generated
+ */
+ protected NamedElement getTarget() {
+ return (NamedElement)target;
+ }
+
+ /**
+ * @generated
+ */
+ public Package getContainer() {
+ return container;
+ }
+
+ /**
+ * Default approach is to traverse ancestors of the source to find instance of container.
+ * Modify with appropriate logic.
+ *
+ * @generated
+ */
+ protected Package deduceContainer(EObject source, EObject target) {
+ // Find container element for the new link.
+ // Climb up by containment hierarchy starting from the source
+ // and return the first element that is instance of the container class.
+ for(EObject element = source; element != null; element = element.eContainer()) {
+ if(element instanceof Package) {
+ return (Package)element;
+ }
+ }
+ return null;
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/InformationFlowReorientCommand.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/InformationFlowReorientCommand.java
new file mode 100644
index 00000000000..e6176d19a5c
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/InformationFlowReorientCommand.java
@@ -0,0 +1,178 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.commands;
+
+import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gmf.runtime.common.core.command.CommandResult;
+import org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientRelationshipRequest;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLBaseItemSemanticEditPolicy;
+import org.eclipse.uml2.uml.InformationFlow;
+import org.eclipse.uml2.uml.NamedElement;
+import org.eclipse.uml2.uml.Package;
+
+/**
+ * @generated
+ */
+public class InformationFlowReorientCommand extends EditElementCommand {
+
+ /**
+ * @generated
+ */
+ private final int reorientDirection;
+
+ /**
+ * @generated
+ */
+ private final EObject oldEnd;
+
+ /**
+ * @generated
+ */
+ private final EObject newEnd;
+
+ /**
+ * @generated
+ */
+ public InformationFlowReorientCommand(ReorientRelationshipRequest request) {
+ super(request.getLabel(), request.getRelationship(), request);
+ reorientDirection = request.getDirection();
+ oldEnd = request.getOldRelationshipEnd();
+ newEnd = request.getNewRelationshipEnd();
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canExecute() {
+ if(false == getElementToEdit() instanceof InformationFlow) {
+ return false;
+ }
+ if(reorientDirection == ReorientRelationshipRequest.REORIENT_SOURCE) {
+ return canReorientSource();
+ }
+ if(reorientDirection == ReorientRelationshipRequest.REORIENT_TARGET) {
+ return canReorientTarget();
+ }
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean canReorientSource() {
+ if(!(oldEnd instanceof NamedElement && newEnd instanceof NamedElement)) {
+ return false;
+ }
+ if(getLink().getInformationTargets().size() != 1) {
+ return false;
+ }
+ NamedElement target = (NamedElement)getLink().getInformationTargets().get(0);
+ if(!(getLink().eContainer() instanceof Package)) {
+ return false;
+ }
+ Package container = (Package)getLink().eContainer();
+ return UMLBaseItemSemanticEditPolicy.getLinkConstraints().canExistInformationFlow_4021(container, getLink(), getNewSource(), target);
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean canReorientTarget() {
+ if(!(oldEnd instanceof NamedElement && newEnd instanceof NamedElement)) {
+ return false;
+ }
+ if(getLink().getInformationSources().size() != 1) {
+ return false;
+ }
+ NamedElement source = (NamedElement)getLink().getInformationSources().get(0);
+ if(!(getLink().eContainer() instanceof Package)) {
+ return false;
+ }
+ Package container = (Package)getLink().eContainer();
+ return UMLBaseItemSemanticEditPolicy.getLinkConstraints().canExistInformationFlow_4021(container, getLink(), source, getNewTarget());
+ }
+
+ /**
+ * @generated
+ */
+ protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+ if(!canExecute()) {
+ throw new ExecutionException("Invalid arguments in reorient link command"); //$NON-NLS-1$
+ }
+ if(reorientDirection == ReorientRelationshipRequest.REORIENT_SOURCE) {
+ return reorientSource();
+ }
+ if(reorientDirection == ReorientRelationshipRequest.REORIENT_TARGET) {
+ return reorientTarget();
+ }
+ throw new IllegalStateException();
+ }
+
+ /**
+ * @generated
+ */
+ protected CommandResult reorientSource() throws ExecutionException {
+ getLink().getInformationSources().remove(getOldSource());
+ getLink().getInformationSources().add(getNewSource());
+ return CommandResult.newOKCommandResult(getLink());
+ }
+
+ /**
+ * @generated
+ */
+ protected CommandResult reorientTarget() throws ExecutionException {
+ getLink().getInformationTargets().remove(getOldTarget());
+ getLink().getInformationTargets().add(getNewTarget());
+ return CommandResult.newOKCommandResult(getLink());
+ }
+
+ /**
+ * @generated
+ */
+ protected InformationFlow getLink() {
+ return (InformationFlow)getElementToEdit();
+ }
+
+ /**
+ * @generated
+ */
+ protected NamedElement getOldSource() {
+ return (NamedElement)oldEnd;
+ }
+
+ /**
+ * @generated
+ */
+ protected NamedElement getNewSource() {
+ return (NamedElement)newEnd;
+ }
+
+ /**
+ * @generated
+ */
+ protected NamedElement getOldTarget() {
+ return (NamedElement)oldEnd;
+ }
+
+ /**
+ * @generated
+ */
+ protected NamedElement getNewTarget() {
+ return (NamedElement)newEnd;
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/InformationItemCreateCommand.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/InformationItemCreateCommand.java
new file mode 100644
index 00000000000..1f24f81ee24
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/InformationItemCreateCommand.java
@@ -0,0 +1,134 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.commands;
+
+import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gmf.runtime.common.core.command.CommandResult;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ConfigureRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.diagram.composite.providers.ElementInitializers;
+import org.eclipse.uml2.uml.InformationItem;
+import org.eclipse.uml2.uml.Package;
+import org.eclipse.uml2.uml.UMLFactory;
+
+/**
+ * @generated
+ */
+public class InformationItemCreateCommand extends EditElementCommand {
+
+ /**
+ * @generated
+ */
+ private EClass eClass = null;
+
+ /**
+ * @generated
+ */
+ private EObject eObject = null;
+
+ /**
+ * @generated
+ */
+ public InformationItemCreateCommand(CreateElementRequest req, EObject eObject) {
+ super(req.getLabel(), null, req);
+ this.eObject = eObject;
+ this.eClass = eObject != null ? eObject.eClass() : null;
+ }
+
+ /**
+ * @generated
+ */
+ public static InformationItemCreateCommand create(CreateElementRequest req, EObject eObject) {
+ return new InformationItemCreateCommand(req, eObject);
+ }
+
+ /**
+ * @generated
+ */
+ public InformationItemCreateCommand(CreateElementRequest req) {
+ super(req.getLabel(), null, req);
+ }
+
+ /**
+ * FIXME: replace with setElementToEdit()
+ *
+ * @generated
+ */
+ protected EObject getElementToEdit() {
+
+ EObject container = ((CreateElementRequest)getRequest()).getContainer();
+ if(container instanceof View) {
+ container = ((View)container).getElement();
+ }
+ if(container != null) {
+ return container;
+ }
+ return eObject;
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canExecute() {
+
+ // Creation constraint for TopLevelNodes
+ if(!(getElementToEdit() instanceof Package)) {
+ return false;
+ }
+
+ return true;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+
+ InformationItem newElement = UMLFactory.eINSTANCE.createInformationItem();
+
+ Package owner = (Package)getElementToEdit();
+ owner.getPackagedElements().add(newElement);
+
+ ElementInitializers.getInstance().init_InformationItem_2080(newElement);
+
+ doConfigure(newElement, monitor, info);
+
+ ((CreateElementRequest)getRequest()).setNewElement(newElement);
+ return CommandResult.newOKCommandResult(newElement);
+ }
+
+ /**
+ * @generated
+ */
+ protected void doConfigure(InformationItem newElement, IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+ IElementType elementType = ((CreateElementRequest)getRequest()).getElementType();
+ ConfigureRequest configureRequest = new ConfigureRequest(getEditingDomain(), newElement, elementType);
+ configureRequest.setClientContext(((CreateElementRequest)getRequest()).getClientContext());
+ configureRequest.addParameters(getRequest().getParameters());
+ ICommand configureCommand = elementType.getEditCommand(configureRequest);
+ if(configureCommand != null && configureCommand.canExecute()) {
+ configureCommand.execute(monitor, info);
+ }
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/InformationItemCreateCommandCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/InformationItemCreateCommandCN.java
new file mode 100644
index 00000000000..68470367403
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/InformationItemCreateCommandCN.java
@@ -0,0 +1,129 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.commands;
+
+import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gmf.runtime.common.core.command.CommandResult;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ConfigureRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.diagram.composite.providers.ElementInitializers;
+import org.eclipse.uml2.uml.Class;
+import org.eclipse.uml2.uml.InformationItem;
+import org.eclipse.uml2.uml.UMLFactory;
+
+/**
+ * @generated
+ */
+public class InformationItemCreateCommandCN extends EditElementCommand {
+
+ /**
+ * @generated
+ */
+ private EClass eClass = null;
+
+ /**
+ * @generated
+ */
+ private EObject eObject = null;
+
+ /**
+ * @generated
+ */
+ public InformationItemCreateCommandCN(CreateElementRequest req, EObject eObject) {
+ super(req.getLabel(), null, req);
+ this.eObject = eObject;
+ this.eClass = eObject != null ? eObject.eClass() : null;
+ }
+
+ /**
+ * @generated
+ */
+ public static InformationItemCreateCommandCN create(CreateElementRequest req, EObject eObject) {
+ return new InformationItemCreateCommandCN(req, eObject);
+ }
+
+ /**
+ * @generated
+ */
+ public InformationItemCreateCommandCN(CreateElementRequest req) {
+ super(req.getLabel(), null, req);
+ }
+
+ /**
+ * FIXME: replace with setElementToEdit()
+ *
+ * @generated
+ */
+ protected EObject getElementToEdit() {
+
+ EObject container = ((CreateElementRequest)getRequest()).getContainer();
+ if(container instanceof View) {
+ container = ((View)container).getElement();
+ }
+ if(container != null) {
+ return container;
+ }
+ return eObject;
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canExecute() {
+
+ return true;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+
+ InformationItem newElement = UMLFactory.eINSTANCE.createInformationItem();
+
+ Class owner = (Class)getElementToEdit();
+ owner.getNestedClassifiers().add(newElement);
+
+ ElementInitializers.getInstance().init_InformationItem_3094(newElement);
+
+ doConfigure(newElement, monitor, info);
+
+ ((CreateElementRequest)getRequest()).setNewElement(newElement);
+ return CommandResult.newOKCommandResult(newElement);
+ }
+
+ /**
+ * @generated
+ */
+ protected void doConfigure(InformationItem newElement, IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+ IElementType elementType = ((CreateElementRequest)getRequest()).getElementType();
+ ConfigureRequest configureRequest = new ConfigureRequest(getEditingDomain(), newElement, elementType);
+ configureRequest.setClientContext(((CreateElementRequest)getRequest()).getClientContext());
+ configureRequest.addParameters(getRequest().getParameters());
+ ICommand configureCommand = elementType.getEditCommand(configureRequest);
+ if(configureCommand != null && configureCommand.canExecute()) {
+ configureCommand.execute(monitor, info);
+ }
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/InstanceValueCreateCommand.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/InstanceValueCreateCommand.java
new file mode 100644
index 00000000000..cbe9452535f
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/InstanceValueCreateCommand.java
@@ -0,0 +1,134 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.commands;
+
+import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gmf.runtime.common.core.command.CommandResult;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ConfigureRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.diagram.composite.providers.ElementInitializers;
+import org.eclipse.uml2.uml.InstanceValue;
+import org.eclipse.uml2.uml.Package;
+import org.eclipse.uml2.uml.UMLFactory;
+
+/**
+ * @generated
+ */
+public class InstanceValueCreateCommand extends EditElementCommand {
+
+ /**
+ * @generated
+ */
+ private EClass eClass = null;
+
+ /**
+ * @generated
+ */
+ private EObject eObject = null;
+
+ /**
+ * @generated
+ */
+ public InstanceValueCreateCommand(CreateElementRequest req, EObject eObject) {
+ super(req.getLabel(), null, req);
+ this.eObject = eObject;
+ this.eClass = eObject != null ? eObject.eClass() : null;
+ }
+
+ /**
+ * @generated
+ */
+ public static InstanceValueCreateCommand create(CreateElementRequest req, EObject eObject) {
+ return new InstanceValueCreateCommand(req, eObject);
+ }
+
+ /**
+ * @generated
+ */
+ public InstanceValueCreateCommand(CreateElementRequest req) {
+ super(req.getLabel(), null, req);
+ }
+
+ /**
+ * FIXME: replace with setElementToEdit()
+ *
+ * @generated
+ */
+ protected EObject getElementToEdit() {
+
+ EObject container = ((CreateElementRequest)getRequest()).getContainer();
+ if(container instanceof View) {
+ container = ((View)container).getElement();
+ }
+ if(container != null) {
+ return container;
+ }
+ return eObject;
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canExecute() {
+
+ // Creation constraint for TopLevelNodes
+ if(!(getElementToEdit() instanceof Package)) {
+ return false;
+ }
+
+ return true;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+
+ InstanceValue newElement = UMLFactory.eINSTANCE.createInstanceValue();
+
+ Package owner = (Package)getElementToEdit();
+ owner.getPackagedElements().add(newElement);
+
+ ElementInitializers.getInstance().init_InstanceValue_2108(newElement);
+
+ doConfigure(newElement, monitor, info);
+
+ ((CreateElementRequest)getRequest()).setNewElement(newElement);
+ return CommandResult.newOKCommandResult(newElement);
+ }
+
+ /**
+ * @generated
+ */
+ protected void doConfigure(InstanceValue newElement, IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+ IElementType elementType = ((CreateElementRequest)getRequest()).getElementType();
+ ConfigureRequest configureRequest = new ConfigureRequest(getEditingDomain(), newElement, elementType);
+ configureRequest.setClientContext(((CreateElementRequest)getRequest()).getClientContext());
+ configureRequest.addParameters(getRequest().getParameters());
+ ICommand configureCommand = elementType.getEditCommand(configureRequest);
+ if(configureCommand != null && configureCommand.canExecute()) {
+ configureCommand.execute(monitor, info);
+ }
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/InteractionCompositeCreateCommand.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/InteractionCompositeCreateCommand.java
new file mode 100644
index 00000000000..2fe6a024e45
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/InteractionCompositeCreateCommand.java
@@ -0,0 +1,134 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.commands;
+
+import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gmf.runtime.common.core.command.CommandResult;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ConfigureRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.diagram.composite.providers.ElementInitializers;
+import org.eclipse.uml2.uml.Interaction;
+import org.eclipse.uml2.uml.Package;
+import org.eclipse.uml2.uml.UMLFactory;
+
+/**
+ * @generated
+ */
+public class InteractionCompositeCreateCommand extends EditElementCommand {
+
+ /**
+ * @generated
+ */
+ private EClass eClass = null;
+
+ /**
+ * @generated
+ */
+ private EObject eObject = null;
+
+ /**
+ * @generated
+ */
+ public InteractionCompositeCreateCommand(CreateElementRequest req, EObject eObject) {
+ super(req.getLabel(), null, req);
+ this.eObject = eObject;
+ this.eClass = eObject != null ? eObject.eClass() : null;
+ }
+
+ /**
+ * @generated
+ */
+ public static InteractionCompositeCreateCommand create(CreateElementRequest req, EObject eObject) {
+ return new InteractionCompositeCreateCommand(req, eObject);
+ }
+
+ /**
+ * @generated
+ */
+ public InteractionCompositeCreateCommand(CreateElementRequest req) {
+ super(req.getLabel(), null, req);
+ }
+
+ /**
+ * FIXME: replace with setElementToEdit()
+ *
+ * @generated
+ */
+ protected EObject getElementToEdit() {
+
+ EObject container = ((CreateElementRequest)getRequest()).getContainer();
+ if(container instanceof View) {
+ container = ((View)container).getElement();
+ }
+ if(container != null) {
+ return container;
+ }
+ return eObject;
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canExecute() {
+
+ // Creation constraint for TopLevelNodes
+ if(!(getElementToEdit() instanceof Package)) {
+ return false;
+ }
+
+ return true;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+
+ Interaction newElement = UMLFactory.eINSTANCE.createInteraction();
+
+ Package owner = (Package)getElementToEdit();
+ owner.getPackagedElements().add(newElement);
+
+ ElementInitializers.getInstance().init_Interaction_2061(newElement);
+
+ doConfigure(newElement, monitor, info);
+
+ ((CreateElementRequest)getRequest()).setNewElement(newElement);
+ return CommandResult.newOKCommandResult(newElement);
+ }
+
+ /**
+ * @generated
+ */
+ protected void doConfigure(Interaction newElement, IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+ IElementType elementType = ((CreateElementRequest)getRequest()).getElementType();
+ ConfigureRequest configureRequest = new ConfigureRequest(getEditingDomain(), newElement, elementType);
+ configureRequest.setClientContext(((CreateElementRequest)getRequest()).getClientContext());
+ configureRequest.addParameters(getRequest().getParameters());
+ ICommand configureCommand = elementType.getEditCommand(configureRequest);
+ if(configureCommand != null && configureCommand.canExecute()) {
+ configureCommand.execute(monitor, info);
+ }
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/InteractionCompositeCreateCommandCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/InteractionCompositeCreateCommandCN.java
new file mode 100644
index 00000000000..a988601a383
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/InteractionCompositeCreateCommandCN.java
@@ -0,0 +1,129 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.commands;
+
+import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gmf.runtime.common.core.command.CommandResult;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ConfigureRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.diagram.composite.providers.ElementInitializers;
+import org.eclipse.uml2.uml.Class;
+import org.eclipse.uml2.uml.Interaction;
+import org.eclipse.uml2.uml.UMLFactory;
+
+/**
+ * @generated
+ */
+public class InteractionCompositeCreateCommandCN extends EditElementCommand {
+
+ /**
+ * @generated
+ */
+ private EClass eClass = null;
+
+ /**
+ * @generated
+ */
+ private EObject eObject = null;
+
+ /**
+ * @generated
+ */
+ public InteractionCompositeCreateCommandCN(CreateElementRequest req, EObject eObject) {
+ super(req.getLabel(), null, req);
+ this.eObject = eObject;
+ this.eClass = eObject != null ? eObject.eClass() : null;
+ }
+
+ /**
+ * @generated
+ */
+ public static InteractionCompositeCreateCommandCN create(CreateElementRequest req, EObject eObject) {
+ return new InteractionCompositeCreateCommandCN(req, eObject);
+ }
+
+ /**
+ * @generated
+ */
+ public InteractionCompositeCreateCommandCN(CreateElementRequest req) {
+ super(req.getLabel(), null, req);
+ }
+
+ /**
+ * FIXME: replace with setElementToEdit()
+ *
+ * @generated
+ */
+ protected EObject getElementToEdit() {
+
+ EObject container = ((CreateElementRequest)getRequest()).getContainer();
+ if(container instanceof View) {
+ container = ((View)container).getElement();
+ }
+ if(container != null) {
+ return container;
+ }
+ return eObject;
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canExecute() {
+
+ return true;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+
+ Interaction newElement = UMLFactory.eINSTANCE.createInteraction();
+
+ Class owner = (Class)getElementToEdit();
+ owner.getNestedClassifiers().add(newElement);
+
+ ElementInitializers.getInstance().init_Interaction_3073(newElement);
+
+ doConfigure(newElement, monitor, info);
+
+ ((CreateElementRequest)getRequest()).setNewElement(newElement);
+ return CommandResult.newOKCommandResult(newElement);
+ }
+
+ /**
+ * @generated
+ */
+ protected void doConfigure(Interaction newElement, IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+ IElementType elementType = ((CreateElementRequest)getRequest()).getElementType();
+ ConfigureRequest configureRequest = new ConfigureRequest(getEditingDomain(), newElement, elementType);
+ configureRequest.setClientContext(((CreateElementRequest)getRequest()).getClientContext());
+ configureRequest.addParameters(getRequest().getParameters());
+ ICommand configureCommand = elementType.getEditCommand(configureRequest);
+ if(configureCommand != null && configureCommand.canExecute()) {
+ configureCommand.execute(monitor, info);
+ }
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/InteractionConstraintCreateCommand.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/InteractionConstraintCreateCommand.java
new file mode 100644
index 00000000000..e62b371c137
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/InteractionConstraintCreateCommand.java
@@ -0,0 +1,135 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.commands;
+
+import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gmf.runtime.common.core.command.CommandResult;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ConfigureRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.diagram.composite.providers.ElementInitializers;
+import org.eclipse.uml2.uml.InteractionConstraint;
+import org.eclipse.uml2.uml.Namespace;
+import org.eclipse.uml2.uml.Package;
+import org.eclipse.uml2.uml.UMLFactory;
+
+/**
+ * @generated
+ */
+public class InteractionConstraintCreateCommand extends EditElementCommand {
+
+ /**
+ * @generated
+ */
+ private EClass eClass = null;
+
+ /**
+ * @generated
+ */
+ private EObject eObject = null;
+
+ /**
+ * @generated
+ */
+ public InteractionConstraintCreateCommand(CreateElementRequest req, EObject eObject) {
+ super(req.getLabel(), null, req);
+ this.eObject = eObject;
+ this.eClass = eObject != null ? eObject.eClass() : null;
+ }
+
+ /**
+ * @generated
+ */
+ public static InteractionConstraintCreateCommand create(CreateElementRequest req, EObject eObject) {
+ return new InteractionConstraintCreateCommand(req, eObject);
+ }
+
+ /**
+ * @generated
+ */
+ public InteractionConstraintCreateCommand(CreateElementRequest req) {
+ super(req.getLabel(), null, req);
+ }
+
+ /**
+ * FIXME: replace with setElementToEdit()
+ *
+ * @generated
+ */
+ protected EObject getElementToEdit() {
+
+ EObject container = ((CreateElementRequest)getRequest()).getContainer();
+ if(container instanceof View) {
+ container = ((View)container).getElement();
+ }
+ if(container != null) {
+ return container;
+ }
+ return eObject;
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canExecute() {
+
+ // Creation constraint for TopLevelNodes
+ if(!(getElementToEdit() instanceof Package)) {
+ return false;
+ }
+
+ return true;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+
+ InteractionConstraint newElement = UMLFactory.eINSTANCE.createInteractionConstraint();
+
+ Namespace owner = (Namespace)getElementToEdit();
+ owner.getOwnedRules().add(newElement);
+
+ ElementInitializers.getInstance().init_InteractionConstraint_2113(newElement);
+
+ doConfigure(newElement, monitor, info);
+
+ ((CreateElementRequest)getRequest()).setNewElement(newElement);
+ return CommandResult.newOKCommandResult(newElement);
+ }
+
+ /**
+ * @generated
+ */
+ protected void doConfigure(InteractionConstraint newElement, IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+ IElementType elementType = ((CreateElementRequest)getRequest()).getElementType();
+ ConfigureRequest configureRequest = new ConfigureRequest(getEditingDomain(), newElement, elementType);
+ configureRequest.setClientContext(((CreateElementRequest)getRequest()).getClientContext());
+ configureRequest.addParameters(getRequest().getParameters());
+ ICommand configureCommand = elementType.getEditCommand(configureRequest);
+ if(configureCommand != null && configureCommand.canExecute()) {
+ configureCommand.execute(monitor, info);
+ }
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/InteractionConstraintCreateCommandCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/InteractionConstraintCreateCommandCN.java
new file mode 100644
index 00000000000..85ad3e568a2
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/InteractionConstraintCreateCommandCN.java
@@ -0,0 +1,129 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.commands;
+
+import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gmf.runtime.common.core.command.CommandResult;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ConfigureRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.diagram.composite.providers.ElementInitializers;
+import org.eclipse.uml2.uml.InteractionConstraint;
+import org.eclipse.uml2.uml.Namespace;
+import org.eclipse.uml2.uml.UMLFactory;
+
+/**
+ * @generated
+ */
+public class InteractionConstraintCreateCommandCN extends EditElementCommand {
+
+ /**
+ * @generated
+ */
+ private EClass eClass = null;
+
+ /**
+ * @generated
+ */
+ private EObject eObject = null;
+
+ /**
+ * @generated
+ */
+ public InteractionConstraintCreateCommandCN(CreateElementRequest req, EObject eObject) {
+ super(req.getLabel(), null, req);
+ this.eObject = eObject;
+ this.eClass = eObject != null ? eObject.eClass() : null;
+ }
+
+ /**
+ * @generated
+ */
+ public static InteractionConstraintCreateCommandCN create(CreateElementRequest req, EObject eObject) {
+ return new InteractionConstraintCreateCommandCN(req, eObject);
+ }
+
+ /**
+ * @generated
+ */
+ public InteractionConstraintCreateCommandCN(CreateElementRequest req) {
+ super(req.getLabel(), null, req);
+ }
+
+ /**
+ * FIXME: replace with setElementToEdit()
+ *
+ * @generated
+ */
+ protected EObject getElementToEdit() {
+
+ EObject container = ((CreateElementRequest)getRequest()).getContainer();
+ if(container instanceof View) {
+ container = ((View)container).getElement();
+ }
+ if(container != null) {
+ return container;
+ }
+ return eObject;
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canExecute() {
+
+ return true;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+
+ InteractionConstraint newElement = UMLFactory.eINSTANCE.createInteractionConstraint();
+
+ Namespace owner = (Namespace)getElementToEdit();
+ owner.getOwnedRules().add(newElement);
+
+ ElementInitializers.getInstance().init_InteractionConstraint_3119(newElement);
+
+ doConfigure(newElement, monitor, info);
+
+ ((CreateElementRequest)getRequest()).setNewElement(newElement);
+ return CommandResult.newOKCommandResult(newElement);
+ }
+
+ /**
+ * @generated
+ */
+ protected void doConfigure(InteractionConstraint newElement, IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+ IElementType elementType = ((CreateElementRequest)getRequest()).getElementType();
+ ConfigureRequest configureRequest = new ConfigureRequest(getEditingDomain(), newElement, elementType);
+ configureRequest.setClientContext(((CreateElementRequest)getRequest()).getClientContext());
+ configureRequest.addParameters(getRequest().getParameters());
+ ICommand configureCommand = elementType.getEditCommand(configureRequest);
+ if(configureCommand != null && configureCommand.canExecute()) {
+ configureCommand.execute(monitor, info);
+ }
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/InteractionCreateCommandCLN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/InteractionCreateCommandCLN.java
new file mode 100644
index 00000000000..906049d5b60
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/InteractionCreateCommandCLN.java
@@ -0,0 +1,129 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.commands;
+
+import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gmf.runtime.common.core.command.CommandResult;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ConfigureRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.diagram.composite.providers.ElementInitializers;
+import org.eclipse.uml2.uml.Class;
+import org.eclipse.uml2.uml.Interaction;
+import org.eclipse.uml2.uml.UMLFactory;
+
+/**
+ * @generated
+ */
+public class InteractionCreateCommandCLN extends EditElementCommand {
+
+ /**
+ * @generated
+ */
+ private EClass eClass = null;
+
+ /**
+ * @generated
+ */
+ private EObject eObject = null;
+
+ /**
+ * @generated
+ */
+ public InteractionCreateCommandCLN(CreateElementRequest req, EObject eObject) {
+ super(req.getLabel(), null, req);
+ this.eObject = eObject;
+ this.eClass = eObject != null ? eObject.eClass() : null;
+ }
+
+ /**
+ * @generated
+ */
+ public static InteractionCreateCommandCLN create(CreateElementRequest req, EObject eObject) {
+ return new InteractionCreateCommandCLN(req, eObject);
+ }
+
+ /**
+ * @generated
+ */
+ public InteractionCreateCommandCLN(CreateElementRequest req) {
+ super(req.getLabel(), null, req);
+ }
+
+ /**
+ * FIXME: replace with setElementToEdit()
+ *
+ * @generated
+ */
+ protected EObject getElementToEdit() {
+
+ EObject container = ((CreateElementRequest)getRequest()).getContainer();
+ if(container instanceof View) {
+ container = ((View)container).getElement();
+ }
+ if(container != null) {
+ return container;
+ }
+ return eObject;
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canExecute() {
+
+ return true;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+
+ Interaction newElement = UMLFactory.eINSTANCE.createInteraction();
+
+ Class owner = (Class)getElementToEdit();
+ owner.getNestedClassifiers().add(newElement);
+
+ ElementInitializers.getInstance().init_Interaction_3104(newElement);
+
+ doConfigure(newElement, monitor, info);
+
+ ((CreateElementRequest)getRequest()).setNewElement(newElement);
+ return CommandResult.newOKCommandResult(newElement);
+ }
+
+ /**
+ * @generated
+ */
+ protected void doConfigure(Interaction newElement, IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+ IElementType elementType = ((CreateElementRequest)getRequest()).getElementType();
+ ConfigureRequest configureRequest = new ConfigureRequest(getEditingDomain(), newElement, elementType);
+ configureRequest.setClientContext(((CreateElementRequest)getRequest()).getClientContext());
+ configureRequest.addParameters(getRequest().getParameters());
+ ICommand configureCommand = elementType.getEditCommand(configureRequest);
+ if(configureCommand != null && configureCommand.canExecute()) {
+ configureCommand.execute(monitor, info);
+ }
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/InterfaceCreateCommand.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/InterfaceCreateCommand.java
new file mode 100644
index 00000000000..38f75e7b356
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/InterfaceCreateCommand.java
@@ -0,0 +1,134 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.commands;
+
+import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gmf.runtime.common.core.command.CommandResult;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ConfigureRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.diagram.composite.providers.ElementInitializers;
+import org.eclipse.uml2.uml.Interface;
+import org.eclipse.uml2.uml.Package;
+import org.eclipse.uml2.uml.UMLFactory;
+
+/**
+ * @generated
+ */
+public class InterfaceCreateCommand extends EditElementCommand {
+
+ /**
+ * @generated
+ */
+ private EClass eClass = null;
+
+ /**
+ * @generated
+ */
+ private EObject eObject = null;
+
+ /**
+ * @generated
+ */
+ public InterfaceCreateCommand(CreateElementRequest req, EObject eObject) {
+ super(req.getLabel(), null, req);
+ this.eObject = eObject;
+ this.eClass = eObject != null ? eObject.eClass() : null;
+ }
+
+ /**
+ * @generated
+ */
+ public static InterfaceCreateCommand create(CreateElementRequest req, EObject eObject) {
+ return new InterfaceCreateCommand(req, eObject);
+ }
+
+ /**
+ * @generated
+ */
+ public InterfaceCreateCommand(CreateElementRequest req) {
+ super(req.getLabel(), null, req);
+ }
+
+ /**
+ * FIXME: replace with setElementToEdit()
+ *
+ * @generated
+ */
+ protected EObject getElementToEdit() {
+
+ EObject container = ((CreateElementRequest)getRequest()).getContainer();
+ if(container instanceof View) {
+ container = ((View)container).getElement();
+ }
+ if(container != null) {
+ return container;
+ }
+ return eObject;
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canExecute() {
+
+ // Creation constraint for TopLevelNodes
+ if(!(getElementToEdit() instanceof Package)) {
+ return false;
+ }
+
+ return true;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+
+ Interface newElement = UMLFactory.eINSTANCE.createInterface();
+
+ Package owner = (Package)getElementToEdit();
+ owner.getPackagedElements().add(newElement);
+
+ ElementInitializers.getInstance().init_Interface_2076(newElement);
+
+ doConfigure(newElement, monitor, info);
+
+ ((CreateElementRequest)getRequest()).setNewElement(newElement);
+ return CommandResult.newOKCommandResult(newElement);
+ }
+
+ /**
+ * @generated
+ */
+ protected void doConfigure(Interface newElement, IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+ IElementType elementType = ((CreateElementRequest)getRequest()).getElementType();
+ ConfigureRequest configureRequest = new ConfigureRequest(getEditingDomain(), newElement, elementType);
+ configureRequest.setClientContext(((CreateElementRequest)getRequest()).getClientContext());
+ configureRequest.addParameters(getRequest().getParameters());
+ ICommand configureCommand = elementType.getEditCommand(configureRequest);
+ if(configureCommand != null && configureCommand.canExecute()) {
+ configureCommand.execute(monitor, info);
+ }
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/InterfaceCreateCommandCLN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/InterfaceCreateCommandCLN.java
new file mode 100644
index 00000000000..101a973e5b8
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/InterfaceCreateCommandCLN.java
@@ -0,0 +1,129 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.commands;
+
+import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gmf.runtime.common.core.command.CommandResult;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ConfigureRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.diagram.composite.providers.ElementInitializers;
+import org.eclipse.uml2.uml.Class;
+import org.eclipse.uml2.uml.Interface;
+import org.eclipse.uml2.uml.UMLFactory;
+
+/**
+ * @generated
+ */
+public class InterfaceCreateCommandCLN extends EditElementCommand {
+
+ /**
+ * @generated
+ */
+ private EClass eClass = null;
+
+ /**
+ * @generated
+ */
+ private EObject eObject = null;
+
+ /**
+ * @generated
+ */
+ public InterfaceCreateCommandCLN(CreateElementRequest req, EObject eObject) {
+ super(req.getLabel(), null, req);
+ this.eObject = eObject;
+ this.eClass = eObject != null ? eObject.eClass() : null;
+ }
+
+ /**
+ * @generated
+ */
+ public static InterfaceCreateCommandCLN create(CreateElementRequest req, EObject eObject) {
+ return new InterfaceCreateCommandCLN(req, eObject);
+ }
+
+ /**
+ * @generated
+ */
+ public InterfaceCreateCommandCLN(CreateElementRequest req) {
+ super(req.getLabel(), null, req);
+ }
+
+ /**
+ * FIXME: replace with setElementToEdit()
+ *
+ * @generated
+ */
+ protected EObject getElementToEdit() {
+
+ EObject container = ((CreateElementRequest)getRequest()).getContainer();
+ if(container instanceof View) {
+ container = ((View)container).getElement();
+ }
+ if(container != null) {
+ return container;
+ }
+ return eObject;
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canExecute() {
+
+ return true;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+
+ Interface newElement = UMLFactory.eINSTANCE.createInterface();
+
+ Class owner = (Class)getElementToEdit();
+ owner.getNestedClassifiers().add(newElement);
+
+ ElementInitializers.getInstance().init_Interface_3110(newElement);
+
+ doConfigure(newElement, monitor, info);
+
+ ((CreateElementRequest)getRequest()).setNewElement(newElement);
+ return CommandResult.newOKCommandResult(newElement);
+ }
+
+ /**
+ * @generated
+ */
+ protected void doConfigure(Interface newElement, IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+ IElementType elementType = ((CreateElementRequest)getRequest()).getElementType();
+ ConfigureRequest configureRequest = new ConfigureRequest(getEditingDomain(), newElement, elementType);
+ configureRequest.setClientContext(((CreateElementRequest)getRequest()).getClientContext());
+ configureRequest.addParameters(getRequest().getParameters());
+ ICommand configureCommand = elementType.getEditCommand(configureRequest);
+ if(configureCommand != null && configureCommand.canExecute()) {
+ configureCommand.execute(monitor, info);
+ }
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/InterfaceCreateCommandCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/InterfaceCreateCommandCN.java
new file mode 100644
index 00000000000..0f6a39d4bc9
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/InterfaceCreateCommandCN.java
@@ -0,0 +1,129 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.commands;
+
+import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gmf.runtime.common.core.command.CommandResult;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ConfigureRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.diagram.composite.providers.ElementInitializers;
+import org.eclipse.uml2.uml.Class;
+import org.eclipse.uml2.uml.Interface;
+import org.eclipse.uml2.uml.UMLFactory;
+
+/**
+ * @generated
+ */
+public class InterfaceCreateCommandCN extends EditElementCommand {
+
+ /**
+ * @generated
+ */
+ private EClass eClass = null;
+
+ /**
+ * @generated
+ */
+ private EObject eObject = null;
+
+ /**
+ * @generated
+ */
+ public InterfaceCreateCommandCN(CreateElementRequest req, EObject eObject) {
+ super(req.getLabel(), null, req);
+ this.eObject = eObject;
+ this.eClass = eObject != null ? eObject.eClass() : null;
+ }
+
+ /**
+ * @generated
+ */
+ public static InterfaceCreateCommandCN create(CreateElementRequest req, EObject eObject) {
+ return new InterfaceCreateCommandCN(req, eObject);
+ }
+
+ /**
+ * @generated
+ */
+ public InterfaceCreateCommandCN(CreateElementRequest req) {
+ super(req.getLabel(), null, req);
+ }
+
+ /**
+ * FIXME: replace with setElementToEdit()
+ *
+ * @generated
+ */
+ protected EObject getElementToEdit() {
+
+ EObject container = ((CreateElementRequest)getRequest()).getContainer();
+ if(container instanceof View) {
+ container = ((View)container).getElement();
+ }
+ if(container != null) {
+ return container;
+ }
+ return eObject;
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canExecute() {
+
+ return true;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+
+ Interface newElement = UMLFactory.eINSTANCE.createInterface();
+
+ Class owner = (Class)getElementToEdit();
+ owner.getNestedClassifiers().add(newElement);
+
+ ElementInitializers.getInstance().init_Interface_3087(newElement);
+
+ doConfigure(newElement, monitor, info);
+
+ ((CreateElementRequest)getRequest()).setNewElement(newElement);
+ return CommandResult.newOKCommandResult(newElement);
+ }
+
+ /**
+ * @generated
+ */
+ protected void doConfigure(Interface newElement, IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+ IElementType elementType = ((CreateElementRequest)getRequest()).getElementType();
+ ConfigureRequest configureRequest = new ConfigureRequest(getEditingDomain(), newElement, elementType);
+ configureRequest.setClientContext(((CreateElementRequest)getRequest()).getClientContext());
+ configureRequest.addParameters(getRequest().getParameters());
+ ICommand configureCommand = elementType.getEditCommand(configureRequest);
+ if(configureCommand != null && configureCommand.canExecute()) {
+ configureCommand.execute(monitor, info);
+ }
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/InterfaceRealizationCreateCommand.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/InterfaceRealizationCreateCommand.java
new file mode 100644
index 00000000000..e77720b0514
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/InterfaceRealizationCreateCommand.java
@@ -0,0 +1,168 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.commands;
+
+import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gmf.runtime.common.core.command.CommandResult;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ConfigureRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLBaseItemSemanticEditPolicy;
+import org.eclipse.papyrus.diagram.composite.providers.ElementInitializers;
+import org.eclipse.uml2.uml.InterfaceRealization;
+import org.eclipse.uml2.uml.NamedElement;
+import org.eclipse.uml2.uml.Package;
+import org.eclipse.uml2.uml.UMLFactory;
+
+/**
+ * @generated
+ */
+public class InterfaceRealizationCreateCommand extends EditElementCommand {
+
+ /**
+ * @generated
+ */
+ protected final EObject source;
+
+ /**
+ * @generated
+ */
+ protected final EObject target;
+
+ /**
+ * @generated
+ */
+ protected Package container;
+
+ /**
+ * @generated
+ */
+ public InterfaceRealizationCreateCommand(CreateRelationshipRequest request, EObject source, EObject target) {
+ super(request.getLabel(), null, request);
+ this.source = source;
+ this.target = target;
+ container = deduceContainer(source, target);
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canExecute() {
+ if(source == null && target == null) {
+ return false;
+ }
+ if(source != null && false == source instanceof NamedElement) {
+ return false;
+ }
+ if(target != null && false == target instanceof NamedElement) {
+ return false;
+ }
+ if(getSource() == null) {
+ return true; // link creation is in progress; source is not defined yet
+ }
+ // target may be null here but it's possible to check constraint
+ if(getContainer() == null) {
+ return false;
+ }
+ return UMLBaseItemSemanticEditPolicy.getLinkConstraints().canCreateInterfaceRealization_4005(getContainer(), getSource(), getTarget());
+ }
+
+ /**
+ * @generated
+ */
+ protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+ if(!canExecute()) {
+ throw new ExecutionException("Invalid arguments in create link command"); //$NON-NLS-1$
+ }
+
+ InterfaceRealization newElement = UMLFactory.eINSTANCE.createInterfaceRealization();
+ getContainer().getPackagedElements().add(newElement);
+ newElement.getClients().add(getSource());
+ newElement.getSuppliers().add(getTarget());
+ ElementInitializers.getInstance().init_InterfaceRealization_4005(newElement);
+ doConfigure(newElement, monitor, info);
+ ((CreateElementRequest)getRequest()).setNewElement(newElement);
+ return CommandResult.newOKCommandResult(newElement);
+
+ }
+
+ /**
+ * @generated
+ */
+ protected void doConfigure(InterfaceRealization newElement, IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+ IElementType elementType = ((CreateElementRequest)getRequest()).getElementType();
+ ConfigureRequest configureRequest = new ConfigureRequest(getEditingDomain(), newElement, elementType);
+ configureRequest.setClientContext(((CreateElementRequest)getRequest()).getClientContext());
+ configureRequest.addParameters(getRequest().getParameters());
+ configureRequest.setParameter(CreateRelationshipRequest.SOURCE, getSource());
+ configureRequest.setParameter(CreateRelationshipRequest.TARGET, getTarget());
+ ICommand configureCommand = elementType.getEditCommand(configureRequest);
+ if(configureCommand != null && configureCommand.canExecute()) {
+ configureCommand.execute(monitor, info);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setElementToEdit(EObject element) {
+ throw new UnsupportedOperationException();
+ }
+
+ /**
+ * @generated
+ */
+ protected NamedElement getSource() {
+ return (NamedElement)source;
+ }
+
+ /**
+ * @generated
+ */
+ protected NamedElement getTarget() {
+ return (NamedElement)target;
+ }
+
+ /**
+ * @generated
+ */
+ public Package getContainer() {
+ return container;
+ }
+
+ /**
+ * Default approach is to traverse ancestors of the source to find instance of container.
+ * Modify with appropriate logic.
+ *
+ * @generated
+ */
+ protected Package deduceContainer(EObject source, EObject target) {
+ // Find container element for the new link.
+ // Climb up by containment hierarchy starting from the source
+ // and return the first element that is instance of the container class.
+ for(EObject element = source; element != null; element = element.eContainer()) {
+ if(element instanceof Package) {
+ return (Package)element;
+ }
+ }
+ return null;
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/InterfaceRealizationReorientCommand.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/InterfaceRealizationReorientCommand.java
new file mode 100644
index 00000000000..c089c160c0e
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/InterfaceRealizationReorientCommand.java
@@ -0,0 +1,178 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.commands;
+
+import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gmf.runtime.common.core.command.CommandResult;
+import org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientRelationshipRequest;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLBaseItemSemanticEditPolicy;
+import org.eclipse.uml2.uml.InterfaceRealization;
+import org.eclipse.uml2.uml.NamedElement;
+import org.eclipse.uml2.uml.Package;
+
+/**
+ * @generated
+ */
+public class InterfaceRealizationReorientCommand extends EditElementCommand {
+
+ /**
+ * @generated
+ */
+ private final int reorientDirection;
+
+ /**
+ * @generated
+ */
+ private final EObject oldEnd;
+
+ /**
+ * @generated
+ */
+ private final EObject newEnd;
+
+ /**
+ * @generated
+ */
+ public InterfaceRealizationReorientCommand(ReorientRelationshipRequest request) {
+ super(request.getLabel(), request.getRelationship(), request);
+ reorientDirection = request.getDirection();
+ oldEnd = request.getOldRelationshipEnd();
+ newEnd = request.getNewRelationshipEnd();
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canExecute() {
+ if(false == getElementToEdit() instanceof InterfaceRealization) {
+ return false;
+ }
+ if(reorientDirection == ReorientRelationshipRequest.REORIENT_SOURCE) {
+ return canReorientSource();
+ }
+ if(reorientDirection == ReorientRelationshipRequest.REORIENT_TARGET) {
+ return canReorientTarget();
+ }
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean canReorientSource() {
+ if(!(oldEnd instanceof NamedElement && newEnd instanceof NamedElement)) {
+ return false;
+ }
+ if(getLink().getSuppliers().size() != 1) {
+ return false;
+ }
+ NamedElement target = (NamedElement)getLink().getSuppliers().get(0);
+ if(!(getLink().eContainer() instanceof Package)) {
+ return false;
+ }
+ Package container = (Package)getLink().eContainer();
+ return UMLBaseItemSemanticEditPolicy.getLinkConstraints().canExistInterfaceRealization_4005(container, getLink(), getNewSource(), target);
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean canReorientTarget() {
+ if(!(oldEnd instanceof NamedElement && newEnd instanceof NamedElement)) {
+ return false;
+ }
+ if(getLink().getClients().size() != 1) {
+ return false;
+ }
+ NamedElement source = (NamedElement)getLink().getClients().get(0);
+ if(!(getLink().eContainer() instanceof Package)) {
+ return false;
+ }
+ Package container = (Package)getLink().eContainer();
+ return UMLBaseItemSemanticEditPolicy.getLinkConstraints().canExistInterfaceRealization_4005(container, getLink(), source, getNewTarget());
+ }
+
+ /**
+ * @generated
+ */
+ protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+ if(!canExecute()) {
+ throw new ExecutionException("Invalid arguments in reorient link command"); //$NON-NLS-1$
+ }
+ if(reorientDirection == ReorientRelationshipRequest.REORIENT_SOURCE) {
+ return reorientSource();
+ }
+ if(reorientDirection == ReorientRelationshipRequest.REORIENT_TARGET) {
+ return reorientTarget();
+ }
+ throw new IllegalStateException();
+ }
+
+ /**
+ * @generated
+ */
+ protected CommandResult reorientSource() throws ExecutionException {
+ getLink().getClients().remove(getOldSource());
+ getLink().getClients().add(getNewSource());
+ return CommandResult.newOKCommandResult(getLink());
+ }
+
+ /**
+ * @generated
+ */
+ protected CommandResult reorientTarget() throws ExecutionException {
+ getLink().getSuppliers().remove(getOldTarget());
+ getLink().getSuppliers().add(getNewTarget());
+ return CommandResult.newOKCommandResult(getLink());
+ }
+
+ /**
+ * @generated
+ */
+ protected InterfaceRealization getLink() {
+ return (InterfaceRealization)getElementToEdit();
+ }
+
+ /**
+ * @generated
+ */
+ protected NamedElement getOldSource() {
+ return (NamedElement)oldEnd;
+ }
+
+ /**
+ * @generated
+ */
+ protected NamedElement getNewSource() {
+ return (NamedElement)newEnd;
+ }
+
+ /**
+ * @generated
+ */
+ protected NamedElement getOldTarget() {
+ return (NamedElement)oldEnd;
+ }
+
+ /**
+ * @generated
+ */
+ protected NamedElement getNewTarget() {
+ return (NamedElement)newEnd;
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/IntervalConstraintCreateCommand.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/IntervalConstraintCreateCommand.java
new file mode 100644
index 00000000000..803824534e5
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/IntervalConstraintCreateCommand.java
@@ -0,0 +1,135 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.commands;
+
+import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gmf.runtime.common.core.command.CommandResult;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ConfigureRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.diagram.composite.providers.ElementInitializers;
+import org.eclipse.uml2.uml.IntervalConstraint;
+import org.eclipse.uml2.uml.Namespace;
+import org.eclipse.uml2.uml.Package;
+import org.eclipse.uml2.uml.UMLFactory;
+
+/**
+ * @generated
+ */
+public class IntervalConstraintCreateCommand extends EditElementCommand {
+
+ /**
+ * @generated
+ */
+ private EClass eClass = null;
+
+ /**
+ * @generated
+ */
+ private EObject eObject = null;
+
+ /**
+ * @generated
+ */
+ public IntervalConstraintCreateCommand(CreateElementRequest req, EObject eObject) {
+ super(req.getLabel(), null, req);
+ this.eObject = eObject;
+ this.eClass = eObject != null ? eObject.eClass() : null;
+ }
+
+ /**
+ * @generated
+ */
+ public static IntervalConstraintCreateCommand create(CreateElementRequest req, EObject eObject) {
+ return new IntervalConstraintCreateCommand(req, eObject);
+ }
+
+ /**
+ * @generated
+ */
+ public IntervalConstraintCreateCommand(CreateElementRequest req) {
+ super(req.getLabel(), null, req);
+ }
+
+ /**
+ * FIXME: replace with setElementToEdit()
+ *
+ * @generated
+ */
+ protected EObject getElementToEdit() {
+
+ EObject container = ((CreateElementRequest)getRequest()).getContainer();
+ if(container instanceof View) {
+ container = ((View)container).getElement();
+ }
+ if(container != null) {
+ return container;
+ }
+ return eObject;
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canExecute() {
+
+ // Creation constraint for TopLevelNodes
+ if(!(getElementToEdit() instanceof Package)) {
+ return false;
+ }
+
+ return true;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+
+ IntervalConstraint newElement = UMLFactory.eINSTANCE.createIntervalConstraint();
+
+ Namespace owner = (Namespace)getElementToEdit();
+ owner.getOwnedRules().add(newElement);
+
+ ElementInitializers.getInstance().init_IntervalConstraint_2112(newElement);
+
+ doConfigure(newElement, monitor, info);
+
+ ((CreateElementRequest)getRequest()).setNewElement(newElement);
+ return CommandResult.newOKCommandResult(newElement);
+ }
+
+ /**
+ * @generated
+ */
+ protected void doConfigure(IntervalConstraint newElement, IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+ IElementType elementType = ((CreateElementRequest)getRequest()).getElementType();
+ ConfigureRequest configureRequest = new ConfigureRequest(getEditingDomain(), newElement, elementType);
+ configureRequest.setClientContext(((CreateElementRequest)getRequest()).getClientContext());
+ configureRequest.addParameters(getRequest().getParameters());
+ ICommand configureCommand = elementType.getEditCommand(configureRequest);
+ if(configureCommand != null && configureCommand.canExecute()) {
+ configureCommand.execute(monitor, info);
+ }
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/IntervalConstraintCreateCommandCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/IntervalConstraintCreateCommandCN.java
new file mode 100644
index 00000000000..945e2598371
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/IntervalConstraintCreateCommandCN.java
@@ -0,0 +1,129 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.commands;
+
+import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gmf.runtime.common.core.command.CommandResult;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ConfigureRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.diagram.composite.providers.ElementInitializers;
+import org.eclipse.uml2.uml.IntervalConstraint;
+import org.eclipse.uml2.uml.Namespace;
+import org.eclipse.uml2.uml.UMLFactory;
+
+/**
+ * @generated
+ */
+public class IntervalConstraintCreateCommandCN extends EditElementCommand {
+
+ /**
+ * @generated
+ */
+ private EClass eClass = null;
+
+ /**
+ * @generated
+ */
+ private EObject eObject = null;
+
+ /**
+ * @generated
+ */
+ public IntervalConstraintCreateCommandCN(CreateElementRequest req, EObject eObject) {
+ super(req.getLabel(), null, req);
+ this.eObject = eObject;
+ this.eClass = eObject != null ? eObject.eClass() : null;
+ }
+
+ /**
+ * @generated
+ */
+ public static IntervalConstraintCreateCommandCN create(CreateElementRequest req, EObject eObject) {
+ return new IntervalConstraintCreateCommandCN(req, eObject);
+ }
+
+ /**
+ * @generated
+ */
+ public IntervalConstraintCreateCommandCN(CreateElementRequest req) {
+ super(req.getLabel(), null, req);
+ }
+
+ /**
+ * FIXME: replace with setElementToEdit()
+ *
+ * @generated
+ */
+ protected EObject getElementToEdit() {
+
+ EObject container = ((CreateElementRequest)getRequest()).getContainer();
+ if(container instanceof View) {
+ container = ((View)container).getElement();
+ }
+ if(container != null) {
+ return container;
+ }
+ return eObject;
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canExecute() {
+
+ return true;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+
+ IntervalConstraint newElement = UMLFactory.eINSTANCE.createIntervalConstraint();
+
+ Namespace owner = (Namespace)getElementToEdit();
+ owner.getOwnedRules().add(newElement);
+
+ ElementInitializers.getInstance().init_IntervalConstraint_3118(newElement);
+
+ doConfigure(newElement, monitor, info);
+
+ ((CreateElementRequest)getRequest()).setNewElement(newElement);
+ return CommandResult.newOKCommandResult(newElement);
+ }
+
+ /**
+ * @generated
+ */
+ protected void doConfigure(IntervalConstraint newElement, IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+ IElementType elementType = ((CreateElementRequest)getRequest()).getElementType();
+ ConfigureRequest configureRequest = new ConfigureRequest(getEditingDomain(), newElement, elementType);
+ configureRequest.setClientContext(((CreateElementRequest)getRequest()).getClientContext());
+ configureRequest.addParameters(getRequest().getParameters());
+ ICommand configureCommand = elementType.getEditCommand(configureRequest);
+ if(configureCommand != null && configureCommand.canExecute()) {
+ configureCommand.execute(monitor, info);
+ }
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/IntervalCreateCommand.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/IntervalCreateCommand.java
new file mode 100644
index 00000000000..5c74ffacc2f
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/IntervalCreateCommand.java
@@ -0,0 +1,134 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.commands;
+
+import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gmf.runtime.common.core.command.CommandResult;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ConfigureRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.diagram.composite.providers.ElementInitializers;
+import org.eclipse.uml2.uml.Interval;
+import org.eclipse.uml2.uml.Package;
+import org.eclipse.uml2.uml.UMLFactory;
+
+/**
+ * @generated
+ */
+public class IntervalCreateCommand extends EditElementCommand {
+
+ /**
+ * @generated
+ */
+ private EClass eClass = null;
+
+ /**
+ * @generated
+ */
+ private EObject eObject = null;
+
+ /**
+ * @generated
+ */
+ public IntervalCreateCommand(CreateElementRequest req, EObject eObject) {
+ super(req.getLabel(), null, req);
+ this.eObject = eObject;
+ this.eClass = eObject != null ? eObject.eClass() : null;
+ }
+
+ /**
+ * @generated
+ */
+ public static IntervalCreateCommand create(CreateElementRequest req, EObject eObject) {
+ return new IntervalCreateCommand(req, eObject);
+ }
+
+ /**
+ * @generated
+ */
+ public IntervalCreateCommand(CreateElementRequest req) {
+ super(req.getLabel(), null, req);
+ }
+
+ /**
+ * FIXME: replace with setElementToEdit()
+ *
+ * @generated
+ */
+ protected EObject getElementToEdit() {
+
+ EObject container = ((CreateElementRequest)getRequest()).getContainer();
+ if(container instanceof View) {
+ container = ((View)container).getElement();
+ }
+ if(container != null) {
+ return container;
+ }
+ return eObject;
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canExecute() {
+
+ // Creation constraint for TopLevelNodes
+ if(!(getElementToEdit() instanceof Package)) {
+ return false;
+ }
+
+ return true;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+
+ Interval newElement = UMLFactory.eINSTANCE.createInterval();
+
+ Package owner = (Package)getElementToEdit();
+ owner.getPackagedElements().add(newElement);
+
+ ElementInitializers.getInstance().init_Interval_2107(newElement);
+
+ doConfigure(newElement, monitor, info);
+
+ ((CreateElementRequest)getRequest()).setNewElement(newElement);
+ return CommandResult.newOKCommandResult(newElement);
+ }
+
+ /**
+ * @generated
+ */
+ protected void doConfigure(Interval newElement, IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+ IElementType elementType = ((CreateElementRequest)getRequest()).getElementType();
+ ConfigureRequest configureRequest = new ConfigureRequest(getEditingDomain(), newElement, elementType);
+ configureRequest.setClientContext(((CreateElementRequest)getRequest()).getClientContext());
+ configureRequest.addParameters(getRequest().getParameters());
+ ICommand configureCommand = elementType.getEditCommand(configureRequest);
+ if(configureCommand != null && configureCommand.canExecute()) {
+ configureCommand.execute(monitor, info);
+ }
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/LiteralBooleanCreateCommand.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/LiteralBooleanCreateCommand.java
new file mode 100644
index 00000000000..29235087993
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/LiteralBooleanCreateCommand.java
@@ -0,0 +1,134 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.commands;
+
+import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gmf.runtime.common.core.command.CommandResult;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ConfigureRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.diagram.composite.providers.ElementInitializers;
+import org.eclipse.uml2.uml.LiteralBoolean;
+import org.eclipse.uml2.uml.Package;
+import org.eclipse.uml2.uml.UMLFactory;
+
+/**
+ * @generated
+ */
+public class LiteralBooleanCreateCommand extends EditElementCommand {
+
+ /**
+ * @generated
+ */
+ private EClass eClass = null;
+
+ /**
+ * @generated
+ */
+ private EObject eObject = null;
+
+ /**
+ * @generated
+ */
+ public LiteralBooleanCreateCommand(CreateElementRequest req, EObject eObject) {
+ super(req.getLabel(), null, req);
+ this.eObject = eObject;
+ this.eClass = eObject != null ? eObject.eClass() : null;
+ }
+
+ /**
+ * @generated
+ */
+ public static LiteralBooleanCreateCommand create(CreateElementRequest req, EObject eObject) {
+ return new LiteralBooleanCreateCommand(req, eObject);
+ }
+
+ /**
+ * @generated
+ */
+ public LiteralBooleanCreateCommand(CreateElementRequest req) {
+ super(req.getLabel(), null, req);
+ }
+
+ /**
+ * FIXME: replace with setElementToEdit()
+ *
+ * @generated
+ */
+ protected EObject getElementToEdit() {
+
+ EObject container = ((CreateElementRequest)getRequest()).getContainer();
+ if(container instanceof View) {
+ container = ((View)container).getElement();
+ }
+ if(container != null) {
+ return container;
+ }
+ return eObject;
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canExecute() {
+
+ // Creation constraint for TopLevelNodes
+ if(!(getElementToEdit() instanceof Package)) {
+ return false;
+ }
+
+ return true;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+
+ LiteralBoolean newElement = UMLFactory.eINSTANCE.createLiteralBoolean();
+
+ Package owner = (Package)getElementToEdit();
+ owner.getPackagedElements().add(newElement);
+
+ ElementInitializers.getInstance().init_LiteralBoolean_2095(newElement);
+
+ doConfigure(newElement, monitor, info);
+
+ ((CreateElementRequest)getRequest()).setNewElement(newElement);
+ return CommandResult.newOKCommandResult(newElement);
+ }
+
+ /**
+ * @generated
+ */
+ protected void doConfigure(LiteralBoolean newElement, IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+ IElementType elementType = ((CreateElementRequest)getRequest()).getElementType();
+ ConfigureRequest configureRequest = new ConfigureRequest(getEditingDomain(), newElement, elementType);
+ configureRequest.setClientContext(((CreateElementRequest)getRequest()).getClientContext());
+ configureRequest.addParameters(getRequest().getParameters());
+ ICommand configureCommand = elementType.getEditCommand(configureRequest);
+ if(configureCommand != null && configureCommand.canExecute()) {
+ configureCommand.execute(monitor, info);
+ }
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/LiteralIntegerCreateCommand.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/LiteralIntegerCreateCommand.java
new file mode 100644
index 00000000000..3329bfa2764
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/LiteralIntegerCreateCommand.java
@@ -0,0 +1,134 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.commands;
+
+import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gmf.runtime.common.core.command.CommandResult;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ConfigureRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.diagram.composite.providers.ElementInitializers;
+import org.eclipse.uml2.uml.LiteralInteger;
+import org.eclipse.uml2.uml.Package;
+import org.eclipse.uml2.uml.UMLFactory;
+
+/**
+ * @generated
+ */
+public class LiteralIntegerCreateCommand extends EditElementCommand {
+
+ /**
+ * @generated
+ */
+ private EClass eClass = null;
+
+ /**
+ * @generated
+ */
+ private EObject eObject = null;
+
+ /**
+ * @generated
+ */
+ public LiteralIntegerCreateCommand(CreateElementRequest req, EObject eObject) {
+ super(req.getLabel(), null, req);
+ this.eObject = eObject;
+ this.eClass = eObject != null ? eObject.eClass() : null;
+ }
+
+ /**
+ * @generated
+ */
+ public static LiteralIntegerCreateCommand create(CreateElementRequest req, EObject eObject) {
+ return new LiteralIntegerCreateCommand(req, eObject);
+ }
+
+ /**
+ * @generated
+ */
+ public LiteralIntegerCreateCommand(CreateElementRequest req) {
+ super(req.getLabel(), null, req);
+ }
+
+ /**
+ * FIXME: replace with setElementToEdit()
+ *
+ * @generated
+ */
+ protected EObject getElementToEdit() {
+
+ EObject container = ((CreateElementRequest)getRequest()).getContainer();
+ if(container instanceof View) {
+ container = ((View)container).getElement();
+ }
+ if(container != null) {
+ return container;
+ }
+ return eObject;
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canExecute() {
+
+ // Creation constraint for TopLevelNodes
+ if(!(getElementToEdit() instanceof Package)) {
+ return false;
+ }
+
+ return true;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+
+ LiteralInteger newElement = UMLFactory.eINSTANCE.createLiteralInteger();
+
+ Package owner = (Package)getElementToEdit();
+ owner.getPackagedElements().add(newElement);
+
+ ElementInitializers.getInstance().init_LiteralInteger_2096(newElement);
+
+ doConfigure(newElement, monitor, info);
+
+ ((CreateElementRequest)getRequest()).setNewElement(newElement);
+ return CommandResult.newOKCommandResult(newElement);
+ }
+
+ /**
+ * @generated
+ */
+ protected void doConfigure(LiteralInteger newElement, IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+ IElementType elementType = ((CreateElementRequest)getRequest()).getElementType();
+ ConfigureRequest configureRequest = new ConfigureRequest(getEditingDomain(), newElement, elementType);
+ configureRequest.setClientContext(((CreateElementRequest)getRequest()).getClientContext());
+ configureRequest.addParameters(getRequest().getParameters());
+ ICommand configureCommand = elementType.getEditCommand(configureRequest);
+ if(configureCommand != null && configureCommand.canExecute()) {
+ configureCommand.execute(monitor, info);
+ }
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/LiteralNullCreateCommand.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/LiteralNullCreateCommand.java
new file mode 100644
index 00000000000..dce3f19e108
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/LiteralNullCreateCommand.java
@@ -0,0 +1,134 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.commands;
+
+import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gmf.runtime.common.core.command.CommandResult;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ConfigureRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.diagram.composite.providers.ElementInitializers;
+import org.eclipse.uml2.uml.LiteralNull;
+import org.eclipse.uml2.uml.Package;
+import org.eclipse.uml2.uml.UMLFactory;
+
+/**
+ * @generated
+ */
+public class LiteralNullCreateCommand extends EditElementCommand {
+
+ /**
+ * @generated
+ */
+ private EClass eClass = null;
+
+ /**
+ * @generated
+ */
+ private EObject eObject = null;
+
+ /**
+ * @generated
+ */
+ public LiteralNullCreateCommand(CreateElementRequest req, EObject eObject) {
+ super(req.getLabel(), null, req);
+ this.eObject = eObject;
+ this.eClass = eObject != null ? eObject.eClass() : null;
+ }
+
+ /**
+ * @generated
+ */
+ public static LiteralNullCreateCommand create(CreateElementRequest req, EObject eObject) {
+ return new LiteralNullCreateCommand(req, eObject);
+ }
+
+ /**
+ * @generated
+ */
+ public LiteralNullCreateCommand(CreateElementRequest req) {
+ super(req.getLabel(), null, req);
+ }
+
+ /**
+ * FIXME: replace with setElementToEdit()
+ *
+ * @generated
+ */
+ protected EObject getElementToEdit() {
+
+ EObject container = ((CreateElementRequest)getRequest()).getContainer();
+ if(container instanceof View) {
+ container = ((View)container).getElement();
+ }
+ if(container != null) {
+ return container;
+ }
+ return eObject;
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canExecute() {
+
+ // Creation constraint for TopLevelNodes
+ if(!(getElementToEdit() instanceof Package)) {
+ return false;
+ }
+
+ return true;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+
+ LiteralNull newElement = UMLFactory.eINSTANCE.createLiteralNull();
+
+ Package owner = (Package)getElementToEdit();
+ owner.getPackagedElements().add(newElement);
+
+ ElementInitializers.getInstance().init_LiteralNull_2097(newElement);
+
+ doConfigure(newElement, monitor, info);
+
+ ((CreateElementRequest)getRequest()).setNewElement(newElement);
+ return CommandResult.newOKCommandResult(newElement);
+ }
+
+ /**
+ * @generated
+ */
+ protected void doConfigure(LiteralNull newElement, IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+ IElementType elementType = ((CreateElementRequest)getRequest()).getElementType();
+ ConfigureRequest configureRequest = new ConfigureRequest(getEditingDomain(), newElement, elementType);
+ configureRequest.setClientContext(((CreateElementRequest)getRequest()).getClientContext());
+ configureRequest.addParameters(getRequest().getParameters());
+ ICommand configureCommand = elementType.getEditCommand(configureRequest);
+ if(configureCommand != null && configureCommand.canExecute()) {
+ configureCommand.execute(monitor, info);
+ }
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/LiteralStringCreateCommand.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/LiteralStringCreateCommand.java
new file mode 100644
index 00000000000..c076d30472b
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/LiteralStringCreateCommand.java
@@ -0,0 +1,134 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.commands;
+
+import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gmf.runtime.common.core.command.CommandResult;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ConfigureRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.diagram.composite.providers.ElementInitializers;
+import org.eclipse.uml2.uml.LiteralString;
+import org.eclipse.uml2.uml.Package;
+import org.eclipse.uml2.uml.UMLFactory;
+
+/**
+ * @generated
+ */
+public class LiteralStringCreateCommand extends EditElementCommand {
+
+ /**
+ * @generated
+ */
+ private EClass eClass = null;
+
+ /**
+ * @generated
+ */
+ private EObject eObject = null;
+
+ /**
+ * @generated
+ */
+ public LiteralStringCreateCommand(CreateElementRequest req, EObject eObject) {
+ super(req.getLabel(), null, req);
+ this.eObject = eObject;
+ this.eClass = eObject != null ? eObject.eClass() : null;
+ }
+
+ /**
+ * @generated
+ */
+ public static LiteralStringCreateCommand create(CreateElementRequest req, EObject eObject) {
+ return new LiteralStringCreateCommand(req, eObject);
+ }
+
+ /**
+ * @generated
+ */
+ public LiteralStringCreateCommand(CreateElementRequest req) {
+ super(req.getLabel(), null, req);
+ }
+
+ /**
+ * FIXME: replace with setElementToEdit()
+ *
+ * @generated
+ */
+ protected EObject getElementToEdit() {
+
+ EObject container = ((CreateElementRequest)getRequest()).getContainer();
+ if(container instanceof View) {
+ container = ((View)container).getElement();
+ }
+ if(container != null) {
+ return container;
+ }
+ return eObject;
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canExecute() {
+
+ // Creation constraint for TopLevelNodes
+ if(!(getElementToEdit() instanceof Package)) {
+ return false;
+ }
+
+ return true;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+
+ LiteralString newElement = UMLFactory.eINSTANCE.createLiteralString();
+
+ Package owner = (Package)getElementToEdit();
+ owner.getPackagedElements().add(newElement);
+
+ ElementInitializers.getInstance().init_LiteralString_2098(newElement);
+
+ doConfigure(newElement, monitor, info);
+
+ ((CreateElementRequest)getRequest()).setNewElement(newElement);
+ return CommandResult.newOKCommandResult(newElement);
+ }
+
+ /**
+ * @generated
+ */
+ protected void doConfigure(LiteralString newElement, IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+ IElementType elementType = ((CreateElementRequest)getRequest()).getElementType();
+ ConfigureRequest configureRequest = new ConfigureRequest(getEditingDomain(), newElement, elementType);
+ configureRequest.setClientContext(((CreateElementRequest)getRequest()).getClientContext());
+ configureRequest.addParameters(getRequest().getParameters());
+ ICommand configureCommand = elementType.getEditCommand(configureRequest);
+ if(configureCommand != null && configureCommand.canExecute()) {
+ configureCommand.execute(monitor, info);
+ }
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/LiteralUnlimitedNaturalCreateCommand.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/LiteralUnlimitedNaturalCreateCommand.java
new file mode 100644
index 00000000000..71619ea6881
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/LiteralUnlimitedNaturalCreateCommand.java
@@ -0,0 +1,134 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.commands;
+
+import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gmf.runtime.common.core.command.CommandResult;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ConfigureRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.diagram.composite.providers.ElementInitializers;
+import org.eclipse.uml2.uml.LiteralUnlimitedNatural;
+import org.eclipse.uml2.uml.Package;
+import org.eclipse.uml2.uml.UMLFactory;
+
+/**
+ * @generated
+ */
+public class LiteralUnlimitedNaturalCreateCommand extends EditElementCommand {
+
+ /**
+ * @generated
+ */
+ private EClass eClass = null;
+
+ /**
+ * @generated
+ */
+ private EObject eObject = null;
+
+ /**
+ * @generated
+ */
+ public LiteralUnlimitedNaturalCreateCommand(CreateElementRequest req, EObject eObject) {
+ super(req.getLabel(), null, req);
+ this.eObject = eObject;
+ this.eClass = eObject != null ? eObject.eClass() : null;
+ }
+
+ /**
+ * @generated
+ */
+ public static LiteralUnlimitedNaturalCreateCommand create(CreateElementRequest req, EObject eObject) {
+ return new LiteralUnlimitedNaturalCreateCommand(req, eObject);
+ }
+
+ /**
+ * @generated
+ */
+ public LiteralUnlimitedNaturalCreateCommand(CreateElementRequest req) {
+ super(req.getLabel(), null, req);
+ }
+
+ /**
+ * FIXME: replace with setElementToEdit()
+ *
+ * @generated
+ */
+ protected EObject getElementToEdit() {
+
+ EObject container = ((CreateElementRequest)getRequest()).getContainer();
+ if(container instanceof View) {
+ container = ((View)container).getElement();
+ }
+ if(container != null) {
+ return container;
+ }
+ return eObject;
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canExecute() {
+
+ // Creation constraint for TopLevelNodes
+ if(!(getElementToEdit() instanceof Package)) {
+ return false;
+ }
+
+ return true;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+
+ LiteralUnlimitedNatural newElement = UMLFactory.eINSTANCE.createLiteralUnlimitedNatural();
+
+ Package owner = (Package)getElementToEdit();
+ owner.getPackagedElements().add(newElement);
+
+ ElementInitializers.getInstance().init_LiteralUnlimitedNatural_2099(newElement);
+
+ doConfigure(newElement, monitor, info);
+
+ ((CreateElementRequest)getRequest()).setNewElement(newElement);
+ return CommandResult.newOKCommandResult(newElement);
+ }
+
+ /**
+ * @generated
+ */
+ protected void doConfigure(LiteralUnlimitedNatural newElement, IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+ IElementType elementType = ((CreateElementRequest)getRequest()).getElementType();
+ ConfigureRequest configureRequest = new ConfigureRequest(getEditingDomain(), newElement, elementType);
+ configureRequest.setClientContext(((CreateElementRequest)getRequest()).getClientContext());
+ configureRequest.addParameters(getRequest().getParameters());
+ ICommand configureCommand = elementType.getEditCommand(configureRequest);
+ if(configureCommand != null && configureCommand.canExecute()) {
+ configureCommand.execute(monitor, info);
+ }
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/ManifestationCreateCommand.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/ManifestationCreateCommand.java
new file mode 100644
index 00000000000..52badcdc058
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/ManifestationCreateCommand.java
@@ -0,0 +1,168 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.commands;
+
+import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gmf.runtime.common.core.command.CommandResult;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ConfigureRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLBaseItemSemanticEditPolicy;
+import org.eclipse.papyrus.diagram.composite.providers.ElementInitializers;
+import org.eclipse.uml2.uml.Manifestation;
+import org.eclipse.uml2.uml.NamedElement;
+import org.eclipse.uml2.uml.Package;
+import org.eclipse.uml2.uml.UMLFactory;
+
+/**
+ * @generated
+ */
+public class ManifestationCreateCommand extends EditElementCommand {
+
+ /**
+ * @generated
+ */
+ protected final EObject source;
+
+ /**
+ * @generated
+ */
+ protected final EObject target;
+
+ /**
+ * @generated
+ */
+ protected Package container;
+
+ /**
+ * @generated
+ */
+ public ManifestationCreateCommand(CreateRelationshipRequest request, EObject source, EObject target) {
+ super(request.getLabel(), null, request);
+ this.source = source;
+ this.target = target;
+ container = deduceContainer(source, target);
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canExecute() {
+ if(source == null && target == null) {
+ return false;
+ }
+ if(source != null && false == source instanceof NamedElement) {
+ return false;
+ }
+ if(target != null && false == target instanceof NamedElement) {
+ return false;
+ }
+ if(getSource() == null) {
+ return true; // link creation is in progress; source is not defined yet
+ }
+ // target may be null here but it's possible to check constraint
+ if(getContainer() == null) {
+ return false;
+ }
+ return UMLBaseItemSemanticEditPolicy.getLinkConstraints().canCreateManifestation_4012(getContainer(), getSource(), getTarget());
+ }
+
+ /**
+ * @generated
+ */
+ protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+ if(!canExecute()) {
+ throw new ExecutionException("Invalid arguments in create link command"); //$NON-NLS-1$
+ }
+
+ Manifestation newElement = UMLFactory.eINSTANCE.createManifestation();
+ getContainer().getPackagedElements().add(newElement);
+ newElement.getClients().add(getSource());
+ newElement.getSuppliers().add(getTarget());
+ ElementInitializers.getInstance().init_Manifestation_4012(newElement);
+ doConfigure(newElement, monitor, info);
+ ((CreateElementRequest)getRequest()).setNewElement(newElement);
+ return CommandResult.newOKCommandResult(newElement);
+
+ }
+
+ /**
+ * @generated
+ */
+ protected void doConfigure(Manifestation newElement, IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+ IElementType elementType = ((CreateElementRequest)getRequest()).getElementType();
+ ConfigureRequest configureRequest = new ConfigureRequest(getEditingDomain(), newElement, elementType);
+ configureRequest.setClientContext(((CreateElementRequest)getRequest()).getClientContext());
+ configureRequest.addParameters(getRequest().getParameters());
+ configureRequest.setParameter(CreateRelationshipRequest.SOURCE, getSource());
+ configureRequest.setParameter(CreateRelationshipRequest.TARGET, getTarget());
+ ICommand configureCommand = elementType.getEditCommand(configureRequest);
+ if(configureCommand != null && configureCommand.canExecute()) {
+ configureCommand.execute(monitor, info);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setElementToEdit(EObject element) {
+ throw new UnsupportedOperationException();
+ }
+
+ /**
+ * @generated
+ */
+ protected NamedElement getSource() {
+ return (NamedElement)source;
+ }
+
+ /**
+ * @generated
+ */
+ protected NamedElement getTarget() {
+ return (NamedElement)target;
+ }
+
+ /**
+ * @generated
+ */
+ public Package getContainer() {
+ return container;
+ }
+
+ /**
+ * Default approach is to traverse ancestors of the source to find instance of container.
+ * Modify with appropriate logic.
+ *
+ * @generated
+ */
+ protected Package deduceContainer(EObject source, EObject target) {
+ // Find container element for the new link.
+ // Climb up by containment hierarchy starting from the source
+ // and return the first element that is instance of the container class.
+ for(EObject element = source; element != null; element = element.eContainer()) {
+ if(element instanceof Package) {
+ return (Package)element;
+ }
+ }
+ return null;
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/ManifestationReorientCommand.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/ManifestationReorientCommand.java
new file mode 100644
index 00000000000..d50719d24c9
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/ManifestationReorientCommand.java
@@ -0,0 +1,178 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.commands;
+
+import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gmf.runtime.common.core.command.CommandResult;
+import org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientRelationshipRequest;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLBaseItemSemanticEditPolicy;
+import org.eclipse.uml2.uml.Manifestation;
+import org.eclipse.uml2.uml.NamedElement;
+import org.eclipse.uml2.uml.Package;
+
+/**
+ * @generated
+ */
+public class ManifestationReorientCommand extends EditElementCommand {
+
+ /**
+ * @generated
+ */
+ private final int reorientDirection;
+
+ /**
+ * @generated
+ */
+ private final EObject oldEnd;
+
+ /**
+ * @generated
+ */
+ private final EObject newEnd;
+
+ /**
+ * @generated
+ */
+ public ManifestationReorientCommand(ReorientRelationshipRequest request) {
+ super(request.getLabel(), request.getRelationship(), request);
+ reorientDirection = request.getDirection();
+ oldEnd = request.getOldRelationshipEnd();
+ newEnd = request.getNewRelationshipEnd();
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canExecute() {
+ if(false == getElementToEdit() instanceof Manifestation) {
+ return false;
+ }
+ if(reorientDirection == ReorientRelationshipRequest.REORIENT_SOURCE) {
+ return canReorientSource();
+ }
+ if(reorientDirection == ReorientRelationshipRequest.REORIENT_TARGET) {
+ return canReorientTarget();
+ }
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean canReorientSource() {
+ if(!(oldEnd instanceof NamedElement && newEnd instanceof NamedElement)) {
+ return false;
+ }
+ if(getLink().getSuppliers().size() != 1) {
+ return false;
+ }
+ NamedElement target = (NamedElement)getLink().getSuppliers().get(0);
+ if(!(getLink().eContainer() instanceof Package)) {
+ return false;
+ }
+ Package container = (Package)getLink().eContainer();
+ return UMLBaseItemSemanticEditPolicy.getLinkConstraints().canExistManifestation_4012(container, getLink(), getNewSource(), target);
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean canReorientTarget() {
+ if(!(oldEnd instanceof NamedElement && newEnd instanceof NamedElement)) {
+ return false;
+ }
+ if(getLink().getClients().size() != 1) {
+ return false;
+ }
+ NamedElement source = (NamedElement)getLink().getClients().get(0);
+ if(!(getLink().eContainer() instanceof Package)) {
+ return false;
+ }
+ Package container = (Package)getLink().eContainer();
+ return UMLBaseItemSemanticEditPolicy.getLinkConstraints().canExistManifestation_4012(container, getLink(), source, getNewTarget());
+ }
+
+ /**
+ * @generated
+ */
+ protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+ if(!canExecute()) {
+ throw new ExecutionException("Invalid arguments in reorient link command"); //$NON-NLS-1$
+ }
+ if(reorientDirection == ReorientRelationshipRequest.REORIENT_SOURCE) {
+ return reorientSource();
+ }
+ if(reorientDirection == ReorientRelationshipRequest.REORIENT_TARGET) {
+ return reorientTarget();
+ }
+ throw new IllegalStateException();
+ }
+
+ /**
+ * @generated
+ */
+ protected CommandResult reorientSource() throws ExecutionException {
+ getLink().getClients().remove(getOldSource());
+ getLink().getClients().add(getNewSource());
+ return CommandResult.newOKCommandResult(getLink());
+ }
+
+ /**
+ * @generated
+ */
+ protected CommandResult reorientTarget() throws ExecutionException {
+ getLink().getSuppliers().remove(getOldTarget());
+ getLink().getSuppliers().add(getNewTarget());
+ return CommandResult.newOKCommandResult(getLink());
+ }
+
+ /**
+ * @generated
+ */
+ protected Manifestation getLink() {
+ return (Manifestation)getElementToEdit();
+ }
+
+ /**
+ * @generated
+ */
+ protected NamedElement getOldSource() {
+ return (NamedElement)oldEnd;
+ }
+
+ /**
+ * @generated
+ */
+ protected NamedElement getNewSource() {
+ return (NamedElement)newEnd;
+ }
+
+ /**
+ * @generated
+ */
+ protected NamedElement getOldTarget() {
+ return (NamedElement)oldEnd;
+ }
+
+ /**
+ * @generated
+ */
+ protected NamedElement getNewTarget() {
+ return (NamedElement)newEnd;
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/NodeCompositeCreateCommand.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/NodeCompositeCreateCommand.java
new file mode 100644
index 00000000000..f2db03ca5f3
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/NodeCompositeCreateCommand.java
@@ -0,0 +1,134 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.commands;
+
+import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gmf.runtime.common.core.command.CommandResult;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ConfigureRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.diagram.composite.providers.ElementInitializers;
+import org.eclipse.uml2.uml.Node;
+import org.eclipse.uml2.uml.Package;
+import org.eclipse.uml2.uml.UMLFactory;
+
+/**
+ * @generated
+ */
+public class NodeCompositeCreateCommand extends EditElementCommand {
+
+ /**
+ * @generated
+ */
+ private EClass eClass = null;
+
+ /**
+ * @generated
+ */
+ private EObject eObject = null;
+
+ /**
+ * @generated
+ */
+ public NodeCompositeCreateCommand(CreateElementRequest req, EObject eObject) {
+ super(req.getLabel(), null, req);
+ this.eObject = eObject;
+ this.eClass = eObject != null ? eObject.eClass() : null;
+ }
+
+ /**
+ * @generated
+ */
+ public static NodeCompositeCreateCommand create(CreateElementRequest req, EObject eObject) {
+ return new NodeCompositeCreateCommand(req, eObject);
+ }
+
+ /**
+ * @generated
+ */
+ public NodeCompositeCreateCommand(CreateElementRequest req) {
+ super(req.getLabel(), null, req);
+ }
+
+ /**
+ * FIXME: replace with setElementToEdit()
+ *
+ * @generated
+ */
+ protected EObject getElementToEdit() {
+
+ EObject container = ((CreateElementRequest)getRequest()).getContainer();
+ if(container instanceof View) {
+ container = ((View)container).getElement();
+ }
+ if(container != null) {
+ return container;
+ }
+ return eObject;
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canExecute() {
+
+ // Creation constraint for TopLevelNodes
+ if(!(getElementToEdit() instanceof Package)) {
+ return false;
+ }
+
+ return true;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+
+ Node newElement = UMLFactory.eINSTANCE.createNode();
+
+ Package owner = (Package)getElementToEdit();
+ owner.getPackagedElements().add(newElement);
+
+ ElementInitializers.getInstance().init_Node_2072(newElement);
+
+ doConfigure(newElement, monitor, info);
+
+ ((CreateElementRequest)getRequest()).setNewElement(newElement);
+ return CommandResult.newOKCommandResult(newElement);
+ }
+
+ /**
+ * @generated
+ */
+ protected void doConfigure(Node newElement, IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+ IElementType elementType = ((CreateElementRequest)getRequest()).getElementType();
+ ConfigureRequest configureRequest = new ConfigureRequest(getEditingDomain(), newElement, elementType);
+ configureRequest.setClientContext(((CreateElementRequest)getRequest()).getClientContext());
+ configureRequest.addParameters(getRequest().getParameters());
+ ICommand configureCommand = elementType.getEditCommand(configureRequest);
+ if(configureCommand != null && configureCommand.canExecute()) {
+ configureCommand.execute(monitor, info);
+ }
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/NodeCompositeCreateCommandCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/NodeCompositeCreateCommandCN.java
new file mode 100644
index 00000000000..834472a74a3
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/NodeCompositeCreateCommandCN.java
@@ -0,0 +1,129 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.commands;
+
+import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gmf.runtime.common.core.command.CommandResult;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ConfigureRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.diagram.composite.providers.ElementInitializers;
+import org.eclipse.uml2.uml.Class;
+import org.eclipse.uml2.uml.Node;
+import org.eclipse.uml2.uml.UMLFactory;
+
+/**
+ * @generated
+ */
+public class NodeCompositeCreateCommandCN extends EditElementCommand {
+
+ /**
+ * @generated
+ */
+ private EClass eClass = null;
+
+ /**
+ * @generated
+ */
+ private EObject eObject = null;
+
+ /**
+ * @generated
+ */
+ public NodeCompositeCreateCommandCN(CreateElementRequest req, EObject eObject) {
+ super(req.getLabel(), null, req);
+ this.eObject = eObject;
+ this.eClass = eObject != null ? eObject.eClass() : null;
+ }
+
+ /**
+ * @generated
+ */
+ public static NodeCompositeCreateCommandCN create(CreateElementRequest req, EObject eObject) {
+ return new NodeCompositeCreateCommandCN(req, eObject);
+ }
+
+ /**
+ * @generated
+ */
+ public NodeCompositeCreateCommandCN(CreateElementRequest req) {
+ super(req.getLabel(), null, req);
+ }
+
+ /**
+ * FIXME: replace with setElementToEdit()
+ *
+ * @generated
+ */
+ protected EObject getElementToEdit() {
+
+ EObject container = ((CreateElementRequest)getRequest()).getContainer();
+ if(container instanceof View) {
+ container = ((View)container).getElement();
+ }
+ if(container != null) {
+ return container;
+ }
+ return eObject;
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canExecute() {
+
+ return true;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+
+ Node newElement = UMLFactory.eINSTANCE.createNode();
+
+ Class owner = (Class)getElementToEdit();
+ owner.getNestedClassifiers().add(newElement);
+
+ ElementInitializers.getInstance().init_Node_3084(newElement);
+
+ doConfigure(newElement, monitor, info);
+
+ ((CreateElementRequest)getRequest()).setNewElement(newElement);
+ return CommandResult.newOKCommandResult(newElement);
+ }
+
+ /**
+ * @generated
+ */
+ protected void doConfigure(Node newElement, IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+ IElementType elementType = ((CreateElementRequest)getRequest()).getElementType();
+ ConfigureRequest configureRequest = new ConfigureRequest(getEditingDomain(), newElement, elementType);
+ configureRequest.setClientContext(((CreateElementRequest)getRequest()).getClientContext());
+ configureRequest.addParameters(getRequest().getParameters());
+ ICommand configureCommand = elementType.getEditCommand(configureRequest);
+ if(configureCommand != null && configureCommand.canExecute()) {
+ configureCommand.execute(monitor, info);
+ }
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/OpaqueBehaviorCompositeCreateCommand.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/OpaqueBehaviorCompositeCreateCommand.java
new file mode 100644
index 00000000000..303f17c65d1
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/OpaqueBehaviorCompositeCreateCommand.java
@@ -0,0 +1,134 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.commands;
+
+import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gmf.runtime.common.core.command.CommandResult;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ConfigureRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.diagram.composite.providers.ElementInitializers;
+import org.eclipse.uml2.uml.OpaqueBehavior;
+import org.eclipse.uml2.uml.Package;
+import org.eclipse.uml2.uml.UMLFactory;
+
+/**
+ * @generated
+ */
+public class OpaqueBehaviorCompositeCreateCommand extends EditElementCommand {
+
+ /**
+ * @generated
+ */
+ private EClass eClass = null;
+
+ /**
+ * @generated
+ */
+ private EObject eObject = null;
+
+ /**
+ * @generated
+ */
+ public OpaqueBehaviorCompositeCreateCommand(CreateElementRequest req, EObject eObject) {
+ super(req.getLabel(), null, req);
+ this.eObject = eObject;
+ this.eClass = eObject != null ? eObject.eClass() : null;
+ }
+
+ /**
+ * @generated
+ */
+ public static OpaqueBehaviorCompositeCreateCommand create(CreateElementRequest req, EObject eObject) {
+ return new OpaqueBehaviorCompositeCreateCommand(req, eObject);
+ }
+
+ /**
+ * @generated
+ */
+ public OpaqueBehaviorCompositeCreateCommand(CreateElementRequest req) {
+ super(req.getLabel(), null, req);
+ }
+
+ /**
+ * FIXME: replace with setElementToEdit()
+ *
+ * @generated
+ */
+ protected EObject getElementToEdit() {
+
+ EObject container = ((CreateElementRequest)getRequest()).getContainer();
+ if(container instanceof View) {
+ container = ((View)container).getElement();
+ }
+ if(container != null) {
+ return container;
+ }
+ return eObject;
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canExecute() {
+
+ // Creation constraint for TopLevelNodes
+ if(!(getElementToEdit() instanceof Package)) {
+ return false;
+ }
+
+ return true;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+
+ OpaqueBehavior newElement = UMLFactory.eINSTANCE.createOpaqueBehavior();
+
+ Package owner = (Package)getElementToEdit();
+ owner.getPackagedElements().add(newElement);
+
+ ElementInitializers.getInstance().init_OpaqueBehavior_2065(newElement);
+
+ doConfigure(newElement, monitor, info);
+
+ ((CreateElementRequest)getRequest()).setNewElement(newElement);
+ return CommandResult.newOKCommandResult(newElement);
+ }
+
+ /**
+ * @generated
+ */
+ protected void doConfigure(OpaqueBehavior newElement, IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+ IElementType elementType = ((CreateElementRequest)getRequest()).getElementType();
+ ConfigureRequest configureRequest = new ConfigureRequest(getEditingDomain(), newElement, elementType);
+ configureRequest.setClientContext(((CreateElementRequest)getRequest()).getClientContext());
+ configureRequest.addParameters(getRequest().getParameters());
+ ICommand configureCommand = elementType.getEditCommand(configureRequest);
+ if(configureCommand != null && configureCommand.canExecute()) {
+ configureCommand.execute(monitor, info);
+ }
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/OpaqueBehaviorCompositeCreateCommandCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/OpaqueBehaviorCompositeCreateCommandCN.java
new file mode 100644
index 00000000000..c82b26d939f
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/OpaqueBehaviorCompositeCreateCommandCN.java
@@ -0,0 +1,129 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.commands;
+
+import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gmf.runtime.common.core.command.CommandResult;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ConfigureRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.diagram.composite.providers.ElementInitializers;
+import org.eclipse.uml2.uml.Class;
+import org.eclipse.uml2.uml.OpaqueBehavior;
+import org.eclipse.uml2.uml.UMLFactory;
+
+/**
+ * @generated
+ */
+public class OpaqueBehaviorCompositeCreateCommandCN extends EditElementCommand {
+
+ /**
+ * @generated
+ */
+ private EClass eClass = null;
+
+ /**
+ * @generated
+ */
+ private EObject eObject = null;
+
+ /**
+ * @generated
+ */
+ public OpaqueBehaviorCompositeCreateCommandCN(CreateElementRequest req, EObject eObject) {
+ super(req.getLabel(), null, req);
+ this.eObject = eObject;
+ this.eClass = eObject != null ? eObject.eClass() : null;
+ }
+
+ /**
+ * @generated
+ */
+ public static OpaqueBehaviorCompositeCreateCommandCN create(CreateElementRequest req, EObject eObject) {
+ return new OpaqueBehaviorCompositeCreateCommandCN(req, eObject);
+ }
+
+ /**
+ * @generated
+ */
+ public OpaqueBehaviorCompositeCreateCommandCN(CreateElementRequest req) {
+ super(req.getLabel(), null, req);
+ }
+
+ /**
+ * FIXME: replace with setElementToEdit()
+ *
+ * @generated
+ */
+ protected EObject getElementToEdit() {
+
+ EObject container = ((CreateElementRequest)getRequest()).getContainer();
+ if(container instanceof View) {
+ container = ((View)container).getElement();
+ }
+ if(container != null) {
+ return container;
+ }
+ return eObject;
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canExecute() {
+
+ return true;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+
+ OpaqueBehavior newElement = UMLFactory.eINSTANCE.createOpaqueBehavior();
+
+ Class owner = (Class)getElementToEdit();
+ owner.getNestedClassifiers().add(newElement);
+
+ ElementInitializers.getInstance().init_OpaqueBehavior_3077(newElement);
+
+ doConfigure(newElement, monitor, info);
+
+ ((CreateElementRequest)getRequest()).setNewElement(newElement);
+ return CommandResult.newOKCommandResult(newElement);
+ }
+
+ /**
+ * @generated
+ */
+ protected void doConfigure(OpaqueBehavior newElement, IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+ IElementType elementType = ((CreateElementRequest)getRequest()).getElementType();
+ ConfigureRequest configureRequest = new ConfigureRequest(getEditingDomain(), newElement, elementType);
+ configureRequest.setClientContext(((CreateElementRequest)getRequest()).getClientContext());
+ configureRequest.addParameters(getRequest().getParameters());
+ ICommand configureCommand = elementType.getEditCommand(configureRequest);
+ if(configureCommand != null && configureCommand.canExecute()) {
+ configureCommand.execute(monitor, info);
+ }
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/OpaqueBehaviorCreateCommandCLN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/OpaqueBehaviorCreateCommandCLN.java
new file mode 100644
index 00000000000..cbdaefe039c
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/OpaqueBehaviorCreateCommandCLN.java
@@ -0,0 +1,129 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.commands;
+
+import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gmf.runtime.common.core.command.CommandResult;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ConfigureRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.diagram.composite.providers.ElementInitializers;
+import org.eclipse.uml2.uml.Class;
+import org.eclipse.uml2.uml.OpaqueBehavior;
+import org.eclipse.uml2.uml.UMLFactory;
+
+/**
+ * @generated
+ */
+public class OpaqueBehaviorCreateCommandCLN extends EditElementCommand {
+
+ /**
+ * @generated
+ */
+ private EClass eClass = null;
+
+ /**
+ * @generated
+ */
+ private EObject eObject = null;
+
+ /**
+ * @generated
+ */
+ public OpaqueBehaviorCreateCommandCLN(CreateElementRequest req, EObject eObject) {
+ super(req.getLabel(), null, req);
+ this.eObject = eObject;
+ this.eClass = eObject != null ? eObject.eClass() : null;
+ }
+
+ /**
+ * @generated
+ */
+ public static OpaqueBehaviorCreateCommandCLN create(CreateElementRequest req, EObject eObject) {
+ return new OpaqueBehaviorCreateCommandCLN(req, eObject);
+ }
+
+ /**
+ * @generated
+ */
+ public OpaqueBehaviorCreateCommandCLN(CreateElementRequest req) {
+ super(req.getLabel(), null, req);
+ }
+
+ /**
+ * FIXME: replace with setElementToEdit()
+ *
+ * @generated
+ */
+ protected EObject getElementToEdit() {
+
+ EObject container = ((CreateElementRequest)getRequest()).getContainer();
+ if(container instanceof View) {
+ container = ((View)container).getElement();
+ }
+ if(container != null) {
+ return container;
+ }
+ return eObject;
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canExecute() {
+
+ return true;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+
+ OpaqueBehavior newElement = UMLFactory.eINSTANCE.createOpaqueBehavior();
+
+ Class owner = (Class)getElementToEdit();
+ owner.getNestedClassifiers().add(newElement);
+
+ ElementInitializers.getInstance().init_OpaqueBehavior_3108(newElement);
+
+ doConfigure(newElement, monitor, info);
+
+ ((CreateElementRequest)getRequest()).setNewElement(newElement);
+ return CommandResult.newOKCommandResult(newElement);
+ }
+
+ /**
+ * @generated
+ */
+ protected void doConfigure(OpaqueBehavior newElement, IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+ IElementType elementType = ((CreateElementRequest)getRequest()).getElementType();
+ ConfigureRequest configureRequest = new ConfigureRequest(getEditingDomain(), newElement, elementType);
+ configureRequest.setClientContext(((CreateElementRequest)getRequest()).getClientContext());
+ configureRequest.addParameters(getRequest().getParameters());
+ ICommand configureCommand = elementType.getEditCommand(configureRequest);
+ if(configureCommand != null && configureCommand.canExecute()) {
+ configureCommand.execute(monitor, info);
+ }
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/OpaqueExpressionCreateCommand.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/OpaqueExpressionCreateCommand.java
new file mode 100644
index 00000000000..b13a4844241
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/OpaqueExpressionCreateCommand.java
@@ -0,0 +1,134 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.commands;
+
+import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gmf.runtime.common.core.command.CommandResult;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ConfigureRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.diagram.composite.providers.ElementInitializers;
+import org.eclipse.uml2.uml.OpaqueExpression;
+import org.eclipse.uml2.uml.Package;
+import org.eclipse.uml2.uml.UMLFactory;
+
+/**
+ * @generated
+ */
+public class OpaqueExpressionCreateCommand extends EditElementCommand {
+
+ /**
+ * @generated
+ */
+ private EClass eClass = null;
+
+ /**
+ * @generated
+ */
+ private EObject eObject = null;
+
+ /**
+ * @generated
+ */
+ public OpaqueExpressionCreateCommand(CreateElementRequest req, EObject eObject) {
+ super(req.getLabel(), null, req);
+ this.eObject = eObject;
+ this.eClass = eObject != null ? eObject.eClass() : null;
+ }
+
+ /**
+ * @generated
+ */
+ public static OpaqueExpressionCreateCommand create(CreateElementRequest req, EObject eObject) {
+ return new OpaqueExpressionCreateCommand(req, eObject);
+ }
+
+ /**
+ * @generated
+ */
+ public OpaqueExpressionCreateCommand(CreateElementRequest req) {
+ super(req.getLabel(), null, req);
+ }
+
+ /**
+ * FIXME: replace with setElementToEdit()
+ *
+ * @generated
+ */
+ protected EObject getElementToEdit() {
+
+ EObject container = ((CreateElementRequest)getRequest()).getContainer();
+ if(container instanceof View) {
+ container = ((View)container).getElement();
+ }
+ if(container != null) {
+ return container;
+ }
+ return eObject;
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canExecute() {
+
+ // Creation constraint for TopLevelNodes
+ if(!(getElementToEdit() instanceof Package)) {
+ return false;
+ }
+
+ return true;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+
+ OpaqueExpression newElement = UMLFactory.eINSTANCE.createOpaqueExpression();
+
+ Package owner = (Package)getElementToEdit();
+ owner.getPackagedElements().add(newElement);
+
+ ElementInitializers.getInstance().init_OpaqueExpression_2101(newElement);
+
+ doConfigure(newElement, monitor, info);
+
+ ((CreateElementRequest)getRequest()).setNewElement(newElement);
+ return CommandResult.newOKCommandResult(newElement);
+ }
+
+ /**
+ * @generated
+ */
+ protected void doConfigure(OpaqueExpression newElement, IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+ IElementType elementType = ((CreateElementRequest)getRequest()).getElementType();
+ ConfigureRequest configureRequest = new ConfigureRequest(getEditingDomain(), newElement, elementType);
+ configureRequest.setClientContext(((CreateElementRequest)getRequest()).getClientContext());
+ configureRequest.addParameters(getRequest().getParameters());
+ ICommand configureCommand = elementType.getEditCommand(configureRequest);
+ if(configureCommand != null && configureCommand.canExecute()) {
+ configureCommand.execute(monitor, info);
+ }
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/OperationCreateCommandCLN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/OperationCreateCommandCLN.java
new file mode 100644
index 00000000000..f6b85825cad
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/OperationCreateCommandCLN.java
@@ -0,0 +1,129 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.commands;
+
+import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gmf.runtime.common.core.command.CommandResult;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ConfigureRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.diagram.composite.providers.ElementInitializers;
+import org.eclipse.uml2.uml.Class;
+import org.eclipse.uml2.uml.Operation;
+import org.eclipse.uml2.uml.UMLFactory;
+
+/**
+ * @generated
+ */
+public class OperationCreateCommandCLN extends EditElementCommand {
+
+ /**
+ * @generated
+ */
+ private EClass eClass = null;
+
+ /**
+ * @generated
+ */
+ private EObject eObject = null;
+
+ /**
+ * @generated
+ */
+ public OperationCreateCommandCLN(CreateElementRequest req, EObject eObject) {
+ super(req.getLabel(), null, req);
+ this.eObject = eObject;
+ this.eClass = eObject != null ? eObject.eClass() : null;
+ }
+
+ /**
+ * @generated
+ */
+ public static OperationCreateCommandCLN create(CreateElementRequest req, EObject eObject) {
+ return new OperationCreateCommandCLN(req, eObject);
+ }
+
+ /**
+ * @generated
+ */
+ public OperationCreateCommandCLN(CreateElementRequest req) {
+ super(req.getLabel(), null, req);
+ }
+
+ /**
+ * FIXME: replace with setElementToEdit()
+ *
+ * @generated
+ */
+ protected EObject getElementToEdit() {
+
+ EObject container = ((CreateElementRequest)getRequest()).getContainer();
+ if(container instanceof View) {
+ container = ((View)container).getElement();
+ }
+ if(container != null) {
+ return container;
+ }
+ return eObject;
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canExecute() {
+
+ return true;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+
+ Operation newElement = UMLFactory.eINSTANCE.createOperation();
+
+ Class owner = (Class)getElementToEdit();
+ owner.getOwnedOperations().add(newElement);
+
+ ElementInitializers.getInstance().init_Operation_3102(newElement);
+
+ doConfigure(newElement, monitor, info);
+
+ ((CreateElementRequest)getRequest()).setNewElement(newElement);
+ return CommandResult.newOKCommandResult(newElement);
+ }
+
+ /**
+ * @generated
+ */
+ protected void doConfigure(Operation newElement, IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+ IElementType elementType = ((CreateElementRequest)getRequest()).getElementType();
+ ConfigureRequest configureRequest = new ConfigureRequest(getEditingDomain(), newElement, elementType);
+ configureRequest.setClientContext(((CreateElementRequest)getRequest()).getClientContext());
+ configureRequest.addParameters(getRequest().getParameters());
+ ICommand configureCommand = elementType.getEditCommand(configureRequest);
+ if(configureCommand != null && configureCommand.canExecute()) {
+ configureCommand.execute(monitor, info);
+ }
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/ParameterCreateCommand.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/ParameterCreateCommand.java
new file mode 100644
index 00000000000..10657a3b566
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/ParameterCreateCommand.java
@@ -0,0 +1,129 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.commands;
+
+import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gmf.runtime.common.core.command.CommandResult;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ConfigureRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.diagram.composite.providers.ElementInitializers;
+import org.eclipse.uml2.uml.Behavior;
+import org.eclipse.uml2.uml.Parameter;
+import org.eclipse.uml2.uml.UMLFactory;
+
+/**
+ * @generated
+ */
+public class ParameterCreateCommand extends EditElementCommand {
+
+ /**
+ * @generated
+ */
+ private EClass eClass = null;
+
+ /**
+ * @generated
+ */
+ private EObject eObject = null;
+
+ /**
+ * @generated
+ */
+ public ParameterCreateCommand(CreateElementRequest req, EObject eObject) {
+ super(req.getLabel(), null, req);
+ this.eObject = eObject;
+ this.eClass = eObject != null ? eObject.eClass() : null;
+ }
+
+ /**
+ * @generated
+ */
+ public static ParameterCreateCommand create(CreateElementRequest req, EObject eObject) {
+ return new ParameterCreateCommand(req, eObject);
+ }
+
+ /**
+ * @generated
+ */
+ public ParameterCreateCommand(CreateElementRequest req) {
+ super(req.getLabel(), null, req);
+ }
+
+ /**
+ * FIXME: replace with setElementToEdit()
+ *
+ * @generated
+ */
+ protected EObject getElementToEdit() {
+
+ EObject container = ((CreateElementRequest)getRequest()).getContainer();
+ if(container instanceof View) {
+ container = ((View)container).getElement();
+ }
+ if(container != null) {
+ return container;
+ }
+ return eObject;
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canExecute() {
+
+ return true;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+
+ Parameter newElement = UMLFactory.eINSTANCE.createParameter();
+
+ Behavior owner = (Behavior)getElementToEdit();
+ owner.getOwnedParameters().add(newElement);
+
+ ElementInitializers.getInstance().init_Parameter_3088(newElement);
+
+ doConfigure(newElement, monitor, info);
+
+ ((CreateElementRequest)getRequest()).setNewElement(newElement);
+ return CommandResult.newOKCommandResult(newElement);
+ }
+
+ /**
+ * @generated
+ */
+ protected void doConfigure(Parameter newElement, IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+ IElementType elementType = ((CreateElementRequest)getRequest()).getElementType();
+ ConfigureRequest configureRequest = new ConfigureRequest(getEditingDomain(), newElement, elementType);
+ configureRequest.setClientContext(((CreateElementRequest)getRequest()).getClientContext());
+ configureRequest.addParameters(getRequest().getParameters());
+ ICommand configureCommand = elementType.getEditCommand(configureRequest);
+ if(configureCommand != null && configureCommand.canExecute()) {
+ configureCommand.execute(monitor, info);
+ }
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/PortCreateCommand.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/PortCreateCommand.java
new file mode 100644
index 00000000000..3455126682b
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/PortCreateCommand.java
@@ -0,0 +1,129 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.commands;
+
+import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gmf.runtime.common.core.command.CommandResult;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ConfigureRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.diagram.composite.providers.ElementInitializers;
+import org.eclipse.uml2.uml.Port;
+import org.eclipse.uml2.uml.StructuredClassifier;
+import org.eclipse.uml2.uml.UMLFactory;
+
+/**
+ * @generated
+ */
+public class PortCreateCommand extends EditElementCommand {
+
+ /**
+ * @generated
+ */
+ private EClass eClass = null;
+
+ /**
+ * @generated
+ */
+ private EObject eObject = null;
+
+ /**
+ * @generated
+ */
+ public PortCreateCommand(CreateElementRequest req, EObject eObject) {
+ super(req.getLabel(), null, req);
+ this.eObject = eObject;
+ this.eClass = eObject != null ? eObject.eClass() : null;
+ }
+
+ /**
+ * @generated
+ */
+ public static PortCreateCommand create(CreateElementRequest req, EObject eObject) {
+ return new PortCreateCommand(req, eObject);
+ }
+
+ /**
+ * @generated
+ */
+ public PortCreateCommand(CreateElementRequest req) {
+ super(req.getLabel(), null, req);
+ }
+
+ /**
+ * FIXME: replace with setElementToEdit()
+ *
+ * @generated
+ */
+ protected EObject getElementToEdit() {
+
+ EObject container = ((CreateElementRequest)getRequest()).getContainer();
+ if(container instanceof View) {
+ container = ((View)container).getElement();
+ }
+ if(container != null) {
+ return container;
+ }
+ return eObject;
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canExecute() {
+
+ return true;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+
+ Port newElement = UMLFactory.eINSTANCE.createPort();
+
+ StructuredClassifier owner = (StructuredClassifier)getElementToEdit();
+ owner.getOwnedAttributes().add(newElement);
+
+ ElementInitializers.getInstance().init_Port_3069(newElement);
+
+ doConfigure(newElement, monitor, info);
+
+ ((CreateElementRequest)getRequest()).setNewElement(newElement);
+ return CommandResult.newOKCommandResult(newElement);
+ }
+
+ /**
+ * @generated
+ */
+ protected void doConfigure(Port newElement, IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+ IElementType elementType = ((CreateElementRequest)getRequest()).getElementType();
+ ConfigureRequest configureRequest = new ConfigureRequest(getEditingDomain(), newElement, elementType);
+ configureRequest.setClientContext(((CreateElementRequest)getRequest()).getClientContext());
+ configureRequest.addParameters(getRequest().getParameters());
+ ICommand configureCommand = elementType.getEditCommand(configureRequest);
+ if(configureCommand != null && configureCommand.canExecute()) {
+ configureCommand.execute(monitor, info);
+ }
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/PrimitiveTypeCreateCommand.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/PrimitiveTypeCreateCommand.java
new file mode 100644
index 00000000000..a49644b4059
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/PrimitiveTypeCreateCommand.java
@@ -0,0 +1,134 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.commands;
+
+import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gmf.runtime.common.core.command.CommandResult;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ConfigureRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.diagram.composite.providers.ElementInitializers;
+import org.eclipse.uml2.uml.Package;
+import org.eclipse.uml2.uml.PrimitiveType;
+import org.eclipse.uml2.uml.UMLFactory;
+
+/**
+ * @generated
+ */
+public class PrimitiveTypeCreateCommand extends EditElementCommand {
+
+ /**
+ * @generated
+ */
+ private EClass eClass = null;
+
+ /**
+ * @generated
+ */
+ private EObject eObject = null;
+
+ /**
+ * @generated
+ */
+ public PrimitiveTypeCreateCommand(CreateElementRequest req, EObject eObject) {
+ super(req.getLabel(), null, req);
+ this.eObject = eObject;
+ this.eClass = eObject != null ? eObject.eClass() : null;
+ }
+
+ /**
+ * @generated
+ */
+ public static PrimitiveTypeCreateCommand create(CreateElementRequest req, EObject eObject) {
+ return new PrimitiveTypeCreateCommand(req, eObject);
+ }
+
+ /**
+ * @generated
+ */
+ public PrimitiveTypeCreateCommand(CreateElementRequest req) {
+ super(req.getLabel(), null, req);
+ }
+
+ /**
+ * FIXME: replace with setElementToEdit()
+ *
+ * @generated
+ */
+ protected EObject getElementToEdit() {
+
+ EObject container = ((CreateElementRequest)getRequest()).getContainer();
+ if(container instanceof View) {
+ container = ((View)container).getElement();
+ }
+ if(container != null) {
+ return container;
+ }
+ return eObject;
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canExecute() {
+
+ // Creation constraint for TopLevelNodes
+ if(!(getElementToEdit() instanceof Package)) {
+ return false;
+ }
+
+ return true;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+
+ PrimitiveType newElement = UMLFactory.eINSTANCE.createPrimitiveType();
+
+ Package owner = (Package)getElementToEdit();
+ owner.getPackagedElements().add(newElement);
+
+ ElementInitializers.getInstance().init_PrimitiveType_2066(newElement);
+
+ doConfigure(newElement, monitor, info);
+
+ ((CreateElementRequest)getRequest()).setNewElement(newElement);
+ return CommandResult.newOKCommandResult(newElement);
+ }
+
+ /**
+ * @generated
+ */
+ protected void doConfigure(PrimitiveType newElement, IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+ IElementType elementType = ((CreateElementRequest)getRequest()).getElementType();
+ ConfigureRequest configureRequest = new ConfigureRequest(getEditingDomain(), newElement, elementType);
+ configureRequest.setClientContext(((CreateElementRequest)getRequest()).getClientContext());
+ configureRequest.addParameters(getRequest().getParameters());
+ ICommand configureCommand = elementType.getEditCommand(configureRequest);
+ if(configureCommand != null && configureCommand.canExecute()) {
+ configureCommand.execute(monitor, info);
+ }
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/PrimitiveTypeCreateCommandCLN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/PrimitiveTypeCreateCommandCLN.java
new file mode 100644
index 00000000000..9de02c6e40b
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/PrimitiveTypeCreateCommandCLN.java
@@ -0,0 +1,129 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.commands;
+
+import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gmf.runtime.common.core.command.CommandResult;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ConfigureRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.diagram.composite.providers.ElementInitializers;
+import org.eclipse.uml2.uml.Class;
+import org.eclipse.uml2.uml.PrimitiveType;
+import org.eclipse.uml2.uml.UMLFactory;
+
+/**
+ * @generated
+ */
+public class PrimitiveTypeCreateCommandCLN extends EditElementCommand {
+
+ /**
+ * @generated
+ */
+ private EClass eClass = null;
+
+ /**
+ * @generated
+ */
+ private EObject eObject = null;
+
+ /**
+ * @generated
+ */
+ public PrimitiveTypeCreateCommandCLN(CreateElementRequest req, EObject eObject) {
+ super(req.getLabel(), null, req);
+ this.eObject = eObject;
+ this.eClass = eObject != null ? eObject.eClass() : null;
+ }
+
+ /**
+ * @generated
+ */
+ public static PrimitiveTypeCreateCommandCLN create(CreateElementRequest req, EObject eObject) {
+ return new PrimitiveTypeCreateCommandCLN(req, eObject);
+ }
+
+ /**
+ * @generated
+ */
+ public PrimitiveTypeCreateCommandCLN(CreateElementRequest req) {
+ super(req.getLabel(), null, req);
+ }
+
+ /**
+ * FIXME: replace with setElementToEdit()
+ *
+ * @generated
+ */
+ protected EObject getElementToEdit() {
+
+ EObject container = ((CreateElementRequest)getRequest()).getContainer();
+ if(container instanceof View) {
+ container = ((View)container).getElement();
+ }
+ if(container != null) {
+ return container;
+ }
+ return eObject;
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canExecute() {
+
+ return true;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+
+ PrimitiveType newElement = UMLFactory.eINSTANCE.createPrimitiveType();
+
+ Class owner = (Class)getElementToEdit();
+ owner.getNestedClassifiers().add(newElement);
+
+ ElementInitializers.getInstance().init_PrimitiveType_3112(newElement);
+
+ doConfigure(newElement, monitor, info);
+
+ ((CreateElementRequest)getRequest()).setNewElement(newElement);
+ return CommandResult.newOKCommandResult(newElement);
+ }
+
+ /**
+ * @generated
+ */
+ protected void doConfigure(PrimitiveType newElement, IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+ IElementType elementType = ((CreateElementRequest)getRequest()).getElementType();
+ ConfigureRequest configureRequest = new ConfigureRequest(getEditingDomain(), newElement, elementType);
+ configureRequest.setClientContext(((CreateElementRequest)getRequest()).getClientContext());
+ configureRequest.addParameters(getRequest().getParameters());
+ ICommand configureCommand = elementType.getEditCommand(configureRequest);
+ if(configureCommand != null && configureCommand.canExecute()) {
+ configureCommand.execute(monitor, info);
+ }
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/PrimitiveTypeCreateCommandCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/PrimitiveTypeCreateCommandCN.java
new file mode 100644
index 00000000000..dbb9a5e5f6d
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/PrimitiveTypeCreateCommandCN.java
@@ -0,0 +1,129 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.commands;
+
+import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gmf.runtime.common.core.command.CommandResult;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ConfigureRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.diagram.composite.providers.ElementInitializers;
+import org.eclipse.uml2.uml.Class;
+import org.eclipse.uml2.uml.PrimitiveType;
+import org.eclipse.uml2.uml.UMLFactory;
+
+/**
+ * @generated
+ */
+public class PrimitiveTypeCreateCommandCN extends EditElementCommand {
+
+ /**
+ * @generated
+ */
+ private EClass eClass = null;
+
+ /**
+ * @generated
+ */
+ private EObject eObject = null;
+
+ /**
+ * @generated
+ */
+ public PrimitiveTypeCreateCommandCN(CreateElementRequest req, EObject eObject) {
+ super(req.getLabel(), null, req);
+ this.eObject = eObject;
+ this.eClass = eObject != null ? eObject.eClass() : null;
+ }
+
+ /**
+ * @generated
+ */
+ public static PrimitiveTypeCreateCommandCN create(CreateElementRequest req, EObject eObject) {
+ return new PrimitiveTypeCreateCommandCN(req, eObject);
+ }
+
+ /**
+ * @generated
+ */
+ public PrimitiveTypeCreateCommandCN(CreateElementRequest req) {
+ super(req.getLabel(), null, req);
+ }
+
+ /**
+ * FIXME: replace with setElementToEdit()
+ *
+ * @generated
+ */
+ protected EObject getElementToEdit() {
+
+ EObject container = ((CreateElementRequest)getRequest()).getContainer();
+ if(container instanceof View) {
+ container = ((View)container).getElement();
+ }
+ if(container != null) {
+ return container;
+ }
+ return eObject;
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canExecute() {
+
+ return true;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+
+ PrimitiveType newElement = UMLFactory.eINSTANCE.createPrimitiveType();
+
+ Class owner = (Class)getElementToEdit();
+ owner.getNestedClassifiers().add(newElement);
+
+ ElementInitializers.getInstance().init_PrimitiveType_3078(newElement);
+
+ doConfigure(newElement, monitor, info);
+
+ ((CreateElementRequest)getRequest()).setNewElement(newElement);
+ return CommandResult.newOKCommandResult(newElement);
+ }
+
+ /**
+ * @generated
+ */
+ protected void doConfigure(PrimitiveType newElement, IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+ IElementType elementType = ((CreateElementRequest)getRequest()).getElementType();
+ ConfigureRequest configureRequest = new ConfigureRequest(getEditingDomain(), newElement, elementType);
+ configureRequest.setClientContext(((CreateElementRequest)getRequest()).getClientContext());
+ configureRequest.addParameters(getRequest().getParameters());
+ ICommand configureCommand = elementType.getEditCommand(configureRequest);
+ if(configureCommand != null && configureCommand.canExecute()) {
+ configureCommand.execute(monitor, info);
+ }
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/PropertyCreateCommandCLN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/PropertyCreateCommandCLN.java
new file mode 100644
index 00000000000..d74449cec52
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/PropertyCreateCommandCLN.java
@@ -0,0 +1,129 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.commands;
+
+import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gmf.runtime.common.core.command.CommandResult;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ConfigureRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.diagram.composite.providers.ElementInitializers;
+import org.eclipse.uml2.uml.Property;
+import org.eclipse.uml2.uml.StructuredClassifier;
+import org.eclipse.uml2.uml.UMLFactory;
+
+/**
+ * @generated
+ */
+public class PropertyCreateCommandCLN extends EditElementCommand {
+
+ /**
+ * @generated
+ */
+ private EClass eClass = null;
+
+ /**
+ * @generated
+ */
+ private EObject eObject = null;
+
+ /**
+ * @generated
+ */
+ public PropertyCreateCommandCLN(CreateElementRequest req, EObject eObject) {
+ super(req.getLabel(), null, req);
+ this.eObject = eObject;
+ this.eClass = eObject != null ? eObject.eClass() : null;
+ }
+
+ /**
+ * @generated
+ */
+ public static PropertyCreateCommandCLN create(CreateElementRequest req, EObject eObject) {
+ return new PropertyCreateCommandCLN(req, eObject);
+ }
+
+ /**
+ * @generated
+ */
+ public PropertyCreateCommandCLN(CreateElementRequest req) {
+ super(req.getLabel(), null, req);
+ }
+
+ /**
+ * FIXME: replace with setElementToEdit()
+ *
+ * @generated
+ */
+ protected EObject getElementToEdit() {
+
+ EObject container = ((CreateElementRequest)getRequest()).getContainer();
+ if(container instanceof View) {
+ container = ((View)container).getElement();
+ }
+ if(container != null) {
+ return container;
+ }
+ return eObject;
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canExecute() {
+
+ return true;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+
+ Property newElement = UMLFactory.eINSTANCE.createProperty();
+
+ StructuredClassifier owner = (StructuredClassifier)getElementToEdit();
+ owner.getOwnedAttributes().add(newElement);
+
+ ElementInitializers.getInstance().init_Property_3101(newElement);
+
+ doConfigure(newElement, monitor, info);
+
+ ((CreateElementRequest)getRequest()).setNewElement(newElement);
+ return CommandResult.newOKCommandResult(newElement);
+ }
+
+ /**
+ * @generated
+ */
+ protected void doConfigure(Property newElement, IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+ IElementType elementType = ((CreateElementRequest)getRequest()).getElementType();
+ ConfigureRequest configureRequest = new ConfigureRequest(getEditingDomain(), newElement, elementType);
+ configureRequest.setClientContext(((CreateElementRequest)getRequest()).getClientContext());
+ configureRequest.addParameters(getRequest().getParameters());
+ ICommand configureCommand = elementType.getEditCommand(configureRequest);
+ if(configureCommand != null && configureCommand.canExecute()) {
+ configureCommand.execute(monitor, info);
+ }
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/PropertyPartCreateCommandCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/PropertyPartCreateCommandCN.java
new file mode 100644
index 00000000000..b6d1b6c6cd2
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/PropertyPartCreateCommandCN.java
@@ -0,0 +1,129 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.commands;
+
+import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gmf.runtime.common.core.command.CommandResult;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ConfigureRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.diagram.composite.providers.ElementInitializers;
+import org.eclipse.uml2.uml.Property;
+import org.eclipse.uml2.uml.StructuredClassifier;
+import org.eclipse.uml2.uml.UMLFactory;
+
+/**
+ * @generated
+ */
+public class PropertyPartCreateCommandCN extends EditElementCommand {
+
+ /**
+ * @generated
+ */
+ private EClass eClass = null;
+
+ /**
+ * @generated
+ */
+ private EObject eObject = null;
+
+ /**
+ * @generated
+ */
+ public PropertyPartCreateCommandCN(CreateElementRequest req, EObject eObject) {
+ super(req.getLabel(), null, req);
+ this.eObject = eObject;
+ this.eClass = eObject != null ? eObject.eClass() : null;
+ }
+
+ /**
+ * @generated
+ */
+ public static PropertyPartCreateCommandCN create(CreateElementRequest req, EObject eObject) {
+ return new PropertyPartCreateCommandCN(req, eObject);
+ }
+
+ /**
+ * @generated
+ */
+ public PropertyPartCreateCommandCN(CreateElementRequest req) {
+ super(req.getLabel(), null, req);
+ }
+
+ /**
+ * FIXME: replace with setElementToEdit()
+ *
+ * @generated
+ */
+ protected EObject getElementToEdit() {
+
+ EObject container = ((CreateElementRequest)getRequest()).getContainer();
+ if(container instanceof View) {
+ container = ((View)container).getElement();
+ }
+ if(container != null) {
+ return container;
+ }
+ return eObject;
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canExecute() {
+
+ return true;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+
+ Property newElement = UMLFactory.eINSTANCE.createProperty();
+
+ StructuredClassifier owner = (StructuredClassifier)getElementToEdit();
+ owner.getOwnedAttributes().add(newElement);
+
+ ElementInitializers.getInstance().init_Property_3070(newElement);
+
+ doConfigure(newElement, monitor, info);
+
+ ((CreateElementRequest)getRequest()).setNewElement(newElement);
+ return CommandResult.newOKCommandResult(newElement);
+ }
+
+ /**
+ * @generated
+ */
+ protected void doConfigure(Property newElement, IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+ IElementType elementType = ((CreateElementRequest)getRequest()).getElementType();
+ ConfigureRequest configureRequest = new ConfigureRequest(getEditingDomain(), newElement, elementType);
+ configureRequest.setClientContext(((CreateElementRequest)getRequest()).getClientContext());
+ configureRequest.addParameters(getRequest().getParameters());
+ ICommand configureCommand = elementType.getEditCommand(configureRequest);
+ if(configureCommand != null && configureCommand.canExecute()) {
+ configureCommand.execute(monitor, info);
+ }
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/ProtocolStateMachineCompositeCreateCommand.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/ProtocolStateMachineCompositeCreateCommand.java
new file mode 100644
index 00000000000..73a24378bf7
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/ProtocolStateMachineCompositeCreateCommand.java
@@ -0,0 +1,134 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.commands;
+
+import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gmf.runtime.common.core.command.CommandResult;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ConfigureRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.diagram.composite.providers.ElementInitializers;
+import org.eclipse.uml2.uml.Package;
+import org.eclipse.uml2.uml.ProtocolStateMachine;
+import org.eclipse.uml2.uml.UMLFactory;
+
+/**
+ * @generated
+ */
+public class ProtocolStateMachineCompositeCreateCommand extends EditElementCommand {
+
+ /**
+ * @generated
+ */
+ private EClass eClass = null;
+
+ /**
+ * @generated
+ */
+ private EObject eObject = null;
+
+ /**
+ * @generated
+ */
+ public ProtocolStateMachineCompositeCreateCommand(CreateElementRequest req, EObject eObject) {
+ super(req.getLabel(), null, req);
+ this.eObject = eObject;
+ this.eClass = eObject != null ? eObject.eClass() : null;
+ }
+
+ /**
+ * @generated
+ */
+ public static ProtocolStateMachineCompositeCreateCommand create(CreateElementRequest req, EObject eObject) {
+ return new ProtocolStateMachineCompositeCreateCommand(req, eObject);
+ }
+
+ /**
+ * @generated
+ */
+ public ProtocolStateMachineCompositeCreateCommand(CreateElementRequest req) {
+ super(req.getLabel(), null, req);
+ }
+
+ /**
+ * FIXME: replace with setElementToEdit()
+ *
+ * @generated
+ */
+ protected EObject getElementToEdit() {
+
+ EObject container = ((CreateElementRequest)getRequest()).getContainer();
+ if(container instanceof View) {
+ container = ((View)container).getElement();
+ }
+ if(container != null) {
+ return container;
+ }
+ return eObject;
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canExecute() {
+
+ // Creation constraint for TopLevelNodes
+ if(!(getElementToEdit() instanceof Package)) {
+ return false;
+ }
+
+ return true;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+
+ ProtocolStateMachine newElement = UMLFactory.eINSTANCE.createProtocolStateMachine();
+
+ Package owner = (Package)getElementToEdit();
+ owner.getPackagedElements().add(newElement);
+
+ ElementInitializers.getInstance().init_ProtocolStateMachine_2062(newElement);
+
+ doConfigure(newElement, monitor, info);
+
+ ((CreateElementRequest)getRequest()).setNewElement(newElement);
+ return CommandResult.newOKCommandResult(newElement);
+ }
+
+ /**
+ * @generated
+ */
+ protected void doConfigure(ProtocolStateMachine newElement, IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+ IElementType elementType = ((CreateElementRequest)getRequest()).getElementType();
+ ConfigureRequest configureRequest = new ConfigureRequest(getEditingDomain(), newElement, elementType);
+ configureRequest.setClientContext(((CreateElementRequest)getRequest()).getClientContext());
+ configureRequest.addParameters(getRequest().getParameters());
+ ICommand configureCommand = elementType.getEditCommand(configureRequest);
+ if(configureCommand != null && configureCommand.canExecute()) {
+ configureCommand.execute(monitor, info);
+ }
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/ProtocolStateMachineCompositeCreateCommandCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/ProtocolStateMachineCompositeCreateCommandCN.java
new file mode 100644
index 00000000000..bc565643408
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/ProtocolStateMachineCompositeCreateCommandCN.java
@@ -0,0 +1,129 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.commands;
+
+import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gmf.runtime.common.core.command.CommandResult;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ConfigureRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.diagram.composite.providers.ElementInitializers;
+import org.eclipse.uml2.uml.Class;
+import org.eclipse.uml2.uml.ProtocolStateMachine;
+import org.eclipse.uml2.uml.UMLFactory;
+
+/**
+ * @generated
+ */
+public class ProtocolStateMachineCompositeCreateCommandCN extends EditElementCommand {
+
+ /**
+ * @generated
+ */
+ private EClass eClass = null;
+
+ /**
+ * @generated
+ */
+ private EObject eObject = null;
+
+ /**
+ * @generated
+ */
+ public ProtocolStateMachineCompositeCreateCommandCN(CreateElementRequest req, EObject eObject) {
+ super(req.getLabel(), null, req);
+ this.eObject = eObject;
+ this.eClass = eObject != null ? eObject.eClass() : null;
+ }
+
+ /**
+ * @generated
+ */
+ public static ProtocolStateMachineCompositeCreateCommandCN create(CreateElementRequest req, EObject eObject) {
+ return new ProtocolStateMachineCompositeCreateCommandCN(req, eObject);
+ }
+
+ /**
+ * @generated
+ */
+ public ProtocolStateMachineCompositeCreateCommandCN(CreateElementRequest req) {
+ super(req.getLabel(), null, req);
+ }
+
+ /**
+ * FIXME: replace with setElementToEdit()
+ *
+ * @generated
+ */
+ protected EObject getElementToEdit() {
+
+ EObject container = ((CreateElementRequest)getRequest()).getContainer();
+ if(container instanceof View) {
+ container = ((View)container).getElement();
+ }
+ if(container != null) {
+ return container;
+ }
+ return eObject;
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canExecute() {
+
+ return true;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+
+ ProtocolStateMachine newElement = UMLFactory.eINSTANCE.createProtocolStateMachine();
+
+ Class owner = (Class)getElementToEdit();
+ owner.getNestedClassifiers().add(newElement);
+
+ ElementInitializers.getInstance().init_ProtocolStateMachine_3074(newElement);
+
+ doConfigure(newElement, monitor, info);
+
+ ((CreateElementRequest)getRequest()).setNewElement(newElement);
+ return CommandResult.newOKCommandResult(newElement);
+ }
+
+ /**
+ * @generated
+ */
+ protected void doConfigure(ProtocolStateMachine newElement, IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+ IElementType elementType = ((CreateElementRequest)getRequest()).getElementType();
+ ConfigureRequest configureRequest = new ConfigureRequest(getEditingDomain(), newElement, elementType);
+ configureRequest.setClientContext(((CreateElementRequest)getRequest()).getClientContext());
+ configureRequest.addParameters(getRequest().getParameters());
+ ICommand configureCommand = elementType.getEditCommand(configureRequest);
+ if(configureCommand != null && configureCommand.canExecute()) {
+ configureCommand.execute(monitor, info);
+ }
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/ProtocolStateMachineCreateCommandCLN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/ProtocolStateMachineCreateCommandCLN.java
new file mode 100644
index 00000000000..5da0607aae9
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/ProtocolStateMachineCreateCommandCLN.java
@@ -0,0 +1,129 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.commands;
+
+import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gmf.runtime.common.core.command.CommandResult;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ConfigureRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.diagram.composite.providers.ElementInitializers;
+import org.eclipse.uml2.uml.Class;
+import org.eclipse.uml2.uml.ProtocolStateMachine;
+import org.eclipse.uml2.uml.UMLFactory;
+
+/**
+ * @generated
+ */
+public class ProtocolStateMachineCreateCommandCLN extends EditElementCommand {
+
+ /**
+ * @generated
+ */
+ private EClass eClass = null;
+
+ /**
+ * @generated
+ */
+ private EObject eObject = null;
+
+ /**
+ * @generated
+ */
+ public ProtocolStateMachineCreateCommandCLN(CreateElementRequest req, EObject eObject) {
+ super(req.getLabel(), null, req);
+ this.eObject = eObject;
+ this.eClass = eObject != null ? eObject.eClass() : null;
+ }
+
+ /**
+ * @generated
+ */
+ public static ProtocolStateMachineCreateCommandCLN create(CreateElementRequest req, EObject eObject) {
+ return new ProtocolStateMachineCreateCommandCLN(req, eObject);
+ }
+
+ /**
+ * @generated
+ */
+ public ProtocolStateMachineCreateCommandCLN(CreateElementRequest req) {
+ super(req.getLabel(), null, req);
+ }
+
+ /**
+ * FIXME: replace with setElementToEdit()
+ *
+ * @generated
+ */
+ protected EObject getElementToEdit() {
+
+ EObject container = ((CreateElementRequest)getRequest()).getContainer();
+ if(container instanceof View) {
+ container = ((View)container).getElement();
+ }
+ if(container != null) {
+ return container;
+ }
+ return eObject;
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canExecute() {
+
+ return true;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+
+ ProtocolStateMachine newElement = UMLFactory.eINSTANCE.createProtocolStateMachine();
+
+ Class owner = (Class)getElementToEdit();
+ owner.getNestedClassifiers().add(newElement);
+
+ ElementInitializers.getInstance().init_ProtocolStateMachine_3105(newElement);
+
+ doConfigure(newElement, monitor, info);
+
+ ((CreateElementRequest)getRequest()).setNewElement(newElement);
+ return CommandResult.newOKCommandResult(newElement);
+ }
+
+ /**
+ * @generated
+ */
+ protected void doConfigure(ProtocolStateMachine newElement, IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+ IElementType elementType = ((CreateElementRequest)getRequest()).getElementType();
+ ConfigureRequest configureRequest = new ConfigureRequest(getEditingDomain(), newElement, elementType);
+ configureRequest.setClientContext(((CreateElementRequest)getRequest()).getClientContext());
+ configureRequest.addParameters(getRequest().getParameters());
+ ICommand configureCommand = elementType.getEditCommand(configureRequest);
+ if(configureCommand != null && configureCommand.canExecute()) {
+ configureCommand.execute(monitor, info);
+ }
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/RealizationCreateCommand.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/RealizationCreateCommand.java
new file mode 100644
index 00000000000..f4fc5adc221
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/RealizationCreateCommand.java
@@ -0,0 +1,168 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.commands;
+
+import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gmf.runtime.common.core.command.CommandResult;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ConfigureRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLBaseItemSemanticEditPolicy;
+import org.eclipse.papyrus.diagram.composite.providers.ElementInitializers;
+import org.eclipse.uml2.uml.NamedElement;
+import org.eclipse.uml2.uml.Package;
+import org.eclipse.uml2.uml.Realization;
+import org.eclipse.uml2.uml.UMLFactory;
+
+/**
+ * @generated
+ */
+public class RealizationCreateCommand extends EditElementCommand {
+
+ /**
+ * @generated
+ */
+ protected final EObject source;
+
+ /**
+ * @generated
+ */
+ protected final EObject target;
+
+ /**
+ * @generated
+ */
+ protected Package container;
+
+ /**
+ * @generated
+ */
+ public RealizationCreateCommand(CreateRelationshipRequest request, EObject source, EObject target) {
+ super(request.getLabel(), null, request);
+ this.source = source;
+ this.target = target;
+ container = deduceContainer(source, target);
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canExecute() {
+ if(source == null && target == null) {
+ return false;
+ }
+ if(source != null && false == source instanceof NamedElement) {
+ return false;
+ }
+ if(target != null && false == target instanceof NamedElement) {
+ return false;
+ }
+ if(getSource() == null) {
+ return true; // link creation is in progress; source is not defined yet
+ }
+ // target may be null here but it's possible to check constraint
+ if(getContainer() == null) {
+ return false;
+ }
+ return UMLBaseItemSemanticEditPolicy.getLinkConstraints().canCreateRealization_4006(getContainer(), getSource(), getTarget());
+ }
+
+ /**
+ * @generated
+ */
+ protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+ if(!canExecute()) {
+ throw new ExecutionException("Invalid arguments in create link command"); //$NON-NLS-1$
+ }
+
+ Realization newElement = UMLFactory.eINSTANCE.createRealization();
+ getContainer().getPackagedElements().add(newElement);
+ newElement.getClients().add(getSource());
+ newElement.getSuppliers().add(getTarget());
+ ElementInitializers.getInstance().init_Realization_4006(newElement);
+ doConfigure(newElement, monitor, info);
+ ((CreateElementRequest)getRequest()).setNewElement(newElement);
+ return CommandResult.newOKCommandResult(newElement);
+
+ }
+
+ /**
+ * @generated
+ */
+ protected void doConfigure(Realization newElement, IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+ IElementType elementType = ((CreateElementRequest)getRequest()).getElementType();
+ ConfigureRequest configureRequest = new ConfigureRequest(getEditingDomain(), newElement, elementType);
+ configureRequest.setClientContext(((CreateElementRequest)getRequest()).getClientContext());
+ configureRequest.addParameters(getRequest().getParameters());
+ configureRequest.setParameter(CreateRelationshipRequest.SOURCE, getSource());
+ configureRequest.setParameter(CreateRelationshipRequest.TARGET, getTarget());
+ ICommand configureCommand = elementType.getEditCommand(configureRequest);
+ if(configureCommand != null && configureCommand.canExecute()) {
+ configureCommand.execute(monitor, info);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setElementToEdit(EObject element) {
+ throw new UnsupportedOperationException();
+ }
+
+ /**
+ * @generated
+ */
+ protected NamedElement getSource() {
+ return (NamedElement)source;
+ }
+
+ /**
+ * @generated
+ */
+ protected NamedElement getTarget() {
+ return (NamedElement)target;
+ }
+
+ /**
+ * @generated
+ */
+ public Package getContainer() {
+ return container;
+ }
+
+ /**
+ * Default approach is to traverse ancestors of the source to find instance of container.
+ * Modify with appropriate logic.
+ *
+ * @generated
+ */
+ protected Package deduceContainer(EObject source, EObject target) {
+ // Find container element for the new link.
+ // Climb up by containment hierarchy starting from the source
+ // and return the first element that is instance of the container class.
+ for(EObject element = source; element != null; element = element.eContainer()) {
+ if(element instanceof Package) {
+ return (Package)element;
+ }
+ }
+ return null;
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/RealizationReorientCommand.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/RealizationReorientCommand.java
new file mode 100644
index 00000000000..d7391cd8c23
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/RealizationReorientCommand.java
@@ -0,0 +1,178 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.commands;
+
+import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gmf.runtime.common.core.command.CommandResult;
+import org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientRelationshipRequest;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLBaseItemSemanticEditPolicy;
+import org.eclipse.uml2.uml.NamedElement;
+import org.eclipse.uml2.uml.Package;
+import org.eclipse.uml2.uml.Realization;
+
+/**
+ * @generated
+ */
+public class RealizationReorientCommand extends EditElementCommand {
+
+ /**
+ * @generated
+ */
+ private final int reorientDirection;
+
+ /**
+ * @generated
+ */
+ private final EObject oldEnd;
+
+ /**
+ * @generated
+ */
+ private final EObject newEnd;
+
+ /**
+ * @generated
+ */
+ public RealizationReorientCommand(ReorientRelationshipRequest request) {
+ super(request.getLabel(), request.getRelationship(), request);
+ reorientDirection = request.getDirection();
+ oldEnd = request.getOldRelationshipEnd();
+ newEnd = request.getNewRelationshipEnd();
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canExecute() {
+ if(false == getElementToEdit() instanceof Realization) {
+ return false;
+ }
+ if(reorientDirection == ReorientRelationshipRequest.REORIENT_SOURCE) {
+ return canReorientSource();
+ }
+ if(reorientDirection == ReorientRelationshipRequest.REORIENT_TARGET) {
+ return canReorientTarget();
+ }
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean canReorientSource() {
+ if(!(oldEnd instanceof NamedElement && newEnd instanceof NamedElement)) {
+ return false;
+ }
+ if(getLink().getSuppliers().size() != 1) {
+ return false;
+ }
+ NamedElement target = (NamedElement)getLink().getSuppliers().get(0);
+ if(!(getLink().eContainer() instanceof Package)) {
+ return false;
+ }
+ Package container = (Package)getLink().eContainer();
+ return UMLBaseItemSemanticEditPolicy.getLinkConstraints().canExistRealization_4006(container, getLink(), getNewSource(), target);
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean canReorientTarget() {
+ if(!(oldEnd instanceof NamedElement && newEnd instanceof NamedElement)) {
+ return false;
+ }
+ if(getLink().getClients().size() != 1) {
+ return false;
+ }
+ NamedElement source = (NamedElement)getLink().getClients().get(0);
+ if(!(getLink().eContainer() instanceof Package)) {
+ return false;
+ }
+ Package container = (Package)getLink().eContainer();
+ return UMLBaseItemSemanticEditPolicy.getLinkConstraints().canExistRealization_4006(container, getLink(), source, getNewTarget());
+ }
+
+ /**
+ * @generated
+ */
+ protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+ if(!canExecute()) {
+ throw new ExecutionException("Invalid arguments in reorient link command"); //$NON-NLS-1$
+ }
+ if(reorientDirection == ReorientRelationshipRequest.REORIENT_SOURCE) {
+ return reorientSource();
+ }
+ if(reorientDirection == ReorientRelationshipRequest.REORIENT_TARGET) {
+ return reorientTarget();
+ }
+ throw new IllegalStateException();
+ }
+
+ /**
+ * @generated
+ */
+ protected CommandResult reorientSource() throws ExecutionException {
+ getLink().getClients().remove(getOldSource());
+ getLink().getClients().add(getNewSource());
+ return CommandResult.newOKCommandResult(getLink());
+ }
+
+ /**
+ * @generated
+ */
+ protected CommandResult reorientTarget() throws ExecutionException {
+ getLink().getSuppliers().remove(getOldTarget());
+ getLink().getSuppliers().add(getNewTarget());
+ return CommandResult.newOKCommandResult(getLink());
+ }
+
+ /**
+ * @generated
+ */
+ protected Realization getLink() {
+ return (Realization)getElementToEdit();
+ }
+
+ /**
+ * @generated
+ */
+ protected NamedElement getOldSource() {
+ return (NamedElement)oldEnd;
+ }
+
+ /**
+ * @generated
+ */
+ protected NamedElement getNewSource() {
+ return (NamedElement)newEnd;
+ }
+
+ /**
+ * @generated
+ */
+ protected NamedElement getOldTarget() {
+ return (NamedElement)oldEnd;
+ }
+
+ /**
+ * @generated
+ */
+ protected NamedElement getNewTarget() {
+ return (NamedElement)newEnd;
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/ReceptionCreateCommandCLN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/ReceptionCreateCommandCLN.java
new file mode 100644
index 00000000000..6b60d41a08c
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/ReceptionCreateCommandCLN.java
@@ -0,0 +1,129 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.commands;
+
+import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gmf.runtime.common.core.command.CommandResult;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ConfigureRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.diagram.composite.providers.ElementInitializers;
+import org.eclipse.uml2.uml.Class;
+import org.eclipse.uml2.uml.Reception;
+import org.eclipse.uml2.uml.UMLFactory;
+
+/**
+ * @generated
+ */
+public class ReceptionCreateCommandCLN extends EditElementCommand {
+
+ /**
+ * @generated
+ */
+ private EClass eClass = null;
+
+ /**
+ * @generated
+ */
+ private EObject eObject = null;
+
+ /**
+ * @generated
+ */
+ public ReceptionCreateCommandCLN(CreateElementRequest req, EObject eObject) {
+ super(req.getLabel(), null, req);
+ this.eObject = eObject;
+ this.eClass = eObject != null ? eObject.eClass() : null;
+ }
+
+ /**
+ * @generated
+ */
+ public static ReceptionCreateCommandCLN create(CreateElementRequest req, EObject eObject) {
+ return new ReceptionCreateCommandCLN(req, eObject);
+ }
+
+ /**
+ * @generated
+ */
+ public ReceptionCreateCommandCLN(CreateElementRequest req) {
+ super(req.getLabel(), null, req);
+ }
+
+ /**
+ * FIXME: replace with setElementToEdit()
+ *
+ * @generated
+ */
+ protected EObject getElementToEdit() {
+
+ EObject container = ((CreateElementRequest)getRequest()).getContainer();
+ if(container instanceof View) {
+ container = ((View)container).getElement();
+ }
+ if(container != null) {
+ return container;
+ }
+ return eObject;
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canExecute() {
+
+ return true;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+
+ Reception newElement = UMLFactory.eINSTANCE.createReception();
+
+ Class owner = (Class)getElementToEdit();
+ owner.getOwnedReceptions().add(newElement);
+
+ ElementInitializers.getInstance().init_Reception_3100(newElement);
+
+ doConfigure(newElement, monitor, info);
+
+ ((CreateElementRequest)getRequest()).setNewElement(newElement);
+ return CommandResult.newOKCommandResult(newElement);
+ }
+
+ /**
+ * @generated
+ */
+ protected void doConfigure(Reception newElement, IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+ IElementType elementType = ((CreateElementRequest)getRequest()).getElementType();
+ ConfigureRequest configureRequest = new ConfigureRequest(getEditingDomain(), newElement, elementType);
+ configureRequest.setClientContext(((CreateElementRequest)getRequest()).getClientContext());
+ configureRequest.addParameters(getRequest().getParameters());
+ ICommand configureCommand = elementType.getEditCommand(configureRequest);
+ if(configureCommand != null && configureCommand.canExecute()) {
+ configureCommand.execute(monitor, info);
+ }
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/RepresentationCreateCommand.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/RepresentationCreateCommand.java
new file mode 100644
index 00000000000..e8f86bf5819
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/RepresentationCreateCommand.java
@@ -0,0 +1,106 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.commands;
+
+import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gmf.runtime.common.core.command.CommandResult;
+import org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLBaseItemSemanticEditPolicy;
+import org.eclipse.uml2.uml.Classifier;
+import org.eclipse.uml2.uml.InformationItem;
+
+/**
+ * @generated
+ */
+public class RepresentationCreateCommand extends EditElementCommand {
+
+ /**
+ * @generated
+ */
+ protected final EObject source;
+
+ /**
+ * @generated
+ */
+ protected final EObject target;
+
+ /**
+ * @generated
+ */
+ public RepresentationCreateCommand(CreateRelationshipRequest request, EObject source, EObject target) {
+ super(request.getLabel(), null, request);
+ this.source = source;
+ this.target = target;
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canExecute() {
+ if(source == null && target == null) {
+ return false;
+ }
+ if(source != null && false == source instanceof InformationItem) {
+ return false;
+ }
+ if(target != null && false == target instanceof Classifier) {
+ return false;
+ }
+ if(getSource() == null) {
+ return true; // link creation is in progress; source is not defined yet
+ }
+ // target may be null here but it's possible to check constraint
+ return UMLBaseItemSemanticEditPolicy.getLinkConstraints().canCreateInformationItemRepresented_4020(getSource(), getTarget());
+ }
+
+ /**
+ * @generated
+ */
+ protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+ if(!canExecute()) {
+ throw new ExecutionException("Invalid arguments in create link command"); //$NON-NLS-1$
+ }
+
+ if(getSource() != null && getTarget() != null) {
+ getSource().getRepresenteds().add(getTarget());
+ }
+ return CommandResult.newOKCommandResult();
+
+ }
+
+ /**
+ * @generated
+ */
+ protected void setElementToEdit(EObject element) {
+ throw new UnsupportedOperationException();
+ }
+
+ /**
+ * @generated
+ */
+ protected InformationItem getSource() {
+ return (InformationItem)source;
+ }
+
+ /**
+ * @generated
+ */
+ protected Classifier getTarget() {
+ return (Classifier)target;
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/RepresentationReorientCommand.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/RepresentationReorientCommand.java
new file mode 100644
index 00000000000..f149c76cf00
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/RepresentationReorientCommand.java
@@ -0,0 +1,161 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.commands;
+
+import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gmf.runtime.common.core.command.CommandResult;
+import org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientReferenceRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientRelationshipRequest;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLBaseItemSemanticEditPolicy;
+import org.eclipse.uml2.uml.Classifier;
+import org.eclipse.uml2.uml.InformationItem;
+
+/**
+ * @generated
+ */
+public class RepresentationReorientCommand extends EditElementCommand {
+
+ /**
+ * @generated
+ */
+ private final int reorientDirection;
+
+ /**
+ * @generated
+ */
+ private final EObject referenceOwner;
+
+ /**
+ * @generated
+ */
+ private final EObject oldEnd;
+
+ /**
+ * @generated
+ */
+ private final EObject newEnd;
+
+ /**
+ * @generated
+ */
+ public RepresentationReorientCommand(ReorientReferenceRelationshipRequest request) {
+ super(request.getLabel(), null, request);
+ reorientDirection = request.getDirection();
+ referenceOwner = request.getReferenceOwner();
+ oldEnd = request.getOldRelationshipEnd();
+ newEnd = request.getNewRelationshipEnd();
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canExecute() {
+ if(false == referenceOwner instanceof InformationItem) {
+ return false;
+ }
+ if(reorientDirection == ReorientRelationshipRequest.REORIENT_SOURCE) {
+ return canReorientSource();
+ }
+ if(reorientDirection == ReorientRelationshipRequest.REORIENT_TARGET) {
+ return canReorientTarget();
+ }
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean canReorientSource() {
+ if(!(oldEnd instanceof Classifier && newEnd instanceof InformationItem)) {
+ return false;
+ }
+ return UMLBaseItemSemanticEditPolicy.getLinkConstraints().canExistInformationItemRepresented_4020(getNewSource(), getOldTarget());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean canReorientTarget() {
+ if(!(oldEnd instanceof Classifier && newEnd instanceof Classifier)) {
+ return false;
+ }
+ return UMLBaseItemSemanticEditPolicy.getLinkConstraints().canExistInformationItemRepresented_4020(getOldSource(), getNewTarget());
+ }
+
+ /**
+ * @generated
+ */
+ protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+ if(!canExecute()) {
+ throw new ExecutionException("Invalid arguments in reorient link command"); //$NON-NLS-1$
+ }
+ if(reorientDirection == ReorientRelationshipRequest.REORIENT_SOURCE) {
+ return reorientSource();
+ }
+ if(reorientDirection == ReorientRelationshipRequest.REORIENT_TARGET) {
+ return reorientTarget();
+ }
+ throw new IllegalStateException();
+ }
+
+ /**
+ * @generated
+ */
+ protected CommandResult reorientSource() throws ExecutionException {
+ getOldSource().getRepresenteds().remove(getOldTarget());
+ getNewSource().getRepresenteds().add(getOldTarget());
+ return CommandResult.newOKCommandResult(referenceOwner);
+ }
+
+ /**
+ * @generated
+ */
+ protected CommandResult reorientTarget() throws ExecutionException {
+ getOldSource().getRepresenteds().remove(getOldTarget());
+ getOldSource().getRepresenteds().add(getNewTarget());
+ return CommandResult.newOKCommandResult(referenceOwner);
+ }
+
+ /**
+ * @generated
+ */
+ protected InformationItem getOldSource() {
+ return (InformationItem)referenceOwner;
+ }
+
+ /**
+ * @generated
+ */
+ protected InformationItem getNewSource() {
+ return (InformationItem)newEnd;
+ }
+
+ /**
+ * @generated
+ */
+ protected Classifier getOldTarget() {
+ return (Classifier)oldEnd;
+ }
+
+ /**
+ * @generated
+ */
+ protected Classifier getNewTarget() {
+ return (Classifier)newEnd;
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/RoleBindingCreateCommand.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/RoleBindingCreateCommand.java
new file mode 100644
index 00000000000..99e3d979c1a
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/RoleBindingCreateCommand.java
@@ -0,0 +1,166 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.commands;
+
+import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gmf.runtime.common.core.command.CommandResult;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ConfigureRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLBaseItemSemanticEditPolicy;
+import org.eclipse.uml2.uml.Dependency;
+import org.eclipse.uml2.uml.NamedElement;
+import org.eclipse.uml2.uml.Package;
+import org.eclipse.uml2.uml.UMLFactory;
+
+/**
+ * @generated
+ */
+public class RoleBindingCreateCommand extends EditElementCommand {
+
+ /**
+ * @generated
+ */
+ protected final EObject source;
+
+ /**
+ * @generated
+ */
+ protected final EObject target;
+
+ /**
+ * @generated
+ */
+ protected Package container;
+
+ /**
+ * @generated
+ */
+ public RoleBindingCreateCommand(CreateRelationshipRequest request, EObject source, EObject target) {
+ super(request.getLabel(), null, request);
+ this.source = source;
+ this.target = target;
+ container = deduceContainer(source, target);
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canExecute() {
+ if(source == null && target == null) {
+ return false;
+ }
+ if(source != null && false == source instanceof NamedElement) {
+ return false;
+ }
+ if(target != null && false == target instanceof NamedElement) {
+ return false;
+ }
+ if(getSource() == null) {
+ return true; // link creation is in progress; source is not defined yet
+ }
+ // target may be null here but it's possible to check constraint
+ if(getContainer() == null) {
+ return false;
+ }
+ return UMLBaseItemSemanticEditPolicy.getLinkConstraints().canCreateDependency_4017(getContainer(), getSource(), getTarget());
+ }
+
+ /**
+ * @generated
+ */
+ protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+ if(!canExecute()) {
+ throw new ExecutionException("Invalid arguments in create link command"); //$NON-NLS-1$
+ }
+
+ Dependency newElement = UMLFactory.eINSTANCE.createDependency();
+ getContainer().getPackagedElements().add(newElement);
+ newElement.getClients().add(getSource());
+ newElement.getSuppliers().add(getTarget());
+ doConfigure(newElement, monitor, info);
+ ((CreateElementRequest)getRequest()).setNewElement(newElement);
+ return CommandResult.newOKCommandResult(newElement);
+
+ }
+
+ /**
+ * @generated
+ */
+ protected void doConfigure(Dependency newElement, IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+ IElementType elementType = ((CreateElementRequest)getRequest()).getElementType();
+ ConfigureRequest configureRequest = new ConfigureRequest(getEditingDomain(), newElement, elementType);
+ configureRequest.setClientContext(((CreateElementRequest)getRequest()).getClientContext());
+ configureRequest.addParameters(getRequest().getParameters());
+ configureRequest.setParameter(CreateRelationshipRequest.SOURCE, getSource());
+ configureRequest.setParameter(CreateRelationshipRequest.TARGET, getTarget());
+ ICommand configureCommand = elementType.getEditCommand(configureRequest);
+ if(configureCommand != null && configureCommand.canExecute()) {
+ configureCommand.execute(monitor, info);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setElementToEdit(EObject element) {
+ throw new UnsupportedOperationException();
+ }
+
+ /**
+ * @generated
+ */
+ protected NamedElement getSource() {
+ return (NamedElement)source;
+ }
+
+ /**
+ * @generated
+ */
+ protected NamedElement getTarget() {
+ return (NamedElement)target;
+ }
+
+ /**
+ * @generated
+ */
+ public Package getContainer() {
+ return container;
+ }
+
+ /**
+ * Default approach is to traverse ancestors of the source to find instance of container.
+ * Modify with appropriate logic.
+ *
+ * @generated
+ */
+ protected Package deduceContainer(EObject source, EObject target) {
+ // Find container element for the new link.
+ // Climb up by containment hierarchy starting from the source
+ // and return the first element that is instance of the container class.
+ for(EObject element = source; element != null; element = element.eContainer()) {
+ if(element instanceof Package) {
+ return (Package)element;
+ }
+ }
+ return null;
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/RoleBindingReorientCommand.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/RoleBindingReorientCommand.java
new file mode 100644
index 00000000000..b7b23b1f96a
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/RoleBindingReorientCommand.java
@@ -0,0 +1,178 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.commands;
+
+import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gmf.runtime.common.core.command.CommandResult;
+import org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientRelationshipRequest;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLBaseItemSemanticEditPolicy;
+import org.eclipse.uml2.uml.Dependency;
+import org.eclipse.uml2.uml.NamedElement;
+import org.eclipse.uml2.uml.Package;
+
+/**
+ * @generated
+ */
+public class RoleBindingReorientCommand extends EditElementCommand {
+
+ /**
+ * @generated
+ */
+ private final int reorientDirection;
+
+ /**
+ * @generated
+ */
+ private final EObject oldEnd;
+
+ /**
+ * @generated
+ */
+ private final EObject newEnd;
+
+ /**
+ * @generated
+ */
+ public RoleBindingReorientCommand(ReorientRelationshipRequest request) {
+ super(request.getLabel(), request.getRelationship(), request);
+ reorientDirection = request.getDirection();
+ oldEnd = request.getOldRelationshipEnd();
+ newEnd = request.getNewRelationshipEnd();
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canExecute() {
+ if(false == getElementToEdit() instanceof Dependency) {
+ return false;
+ }
+ if(reorientDirection == ReorientRelationshipRequest.REORIENT_SOURCE) {
+ return canReorientSource();
+ }
+ if(reorientDirection == ReorientRelationshipRequest.REORIENT_TARGET) {
+ return canReorientTarget();
+ }
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean canReorientSource() {
+ if(!(oldEnd instanceof NamedElement && newEnd instanceof NamedElement)) {
+ return false;
+ }
+ if(getLink().getSuppliers().size() != 1) {
+ return false;
+ }
+ NamedElement target = (NamedElement)getLink().getSuppliers().get(0);
+ if(!(getLink().eContainer() instanceof Package)) {
+ return false;
+ }
+ Package container = (Package)getLink().eContainer();
+ return UMLBaseItemSemanticEditPolicy.getLinkConstraints().canExistDependency_4017(container, getLink(), getNewSource(), target);
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean canReorientTarget() {
+ if(!(oldEnd instanceof NamedElement && newEnd instanceof NamedElement)) {
+ return false;
+ }
+ if(getLink().getClients().size() != 1) {
+ return false;
+ }
+ NamedElement source = (NamedElement)getLink().getClients().get(0);
+ if(!(getLink().eContainer() instanceof Package)) {
+ return false;
+ }
+ Package container = (Package)getLink().eContainer();
+ return UMLBaseItemSemanticEditPolicy.getLinkConstraints().canExistDependency_4017(container, getLink(), source, getNewTarget());
+ }
+
+ /**
+ * @generated
+ */
+ protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+ if(!canExecute()) {
+ throw new ExecutionException("Invalid arguments in reorient link command"); //$NON-NLS-1$
+ }
+ if(reorientDirection == ReorientRelationshipRequest.REORIENT_SOURCE) {
+ return reorientSource();
+ }
+ if(reorientDirection == ReorientRelationshipRequest.REORIENT_TARGET) {
+ return reorientTarget();
+ }
+ throw new IllegalStateException();
+ }
+
+ /**
+ * @generated
+ */
+ protected CommandResult reorientSource() throws ExecutionException {
+ getLink().getClients().remove(getOldSource());
+ getLink().getClients().add(getNewSource());
+ return CommandResult.newOKCommandResult(getLink());
+ }
+
+ /**
+ * @generated
+ */
+ protected CommandResult reorientTarget() throws ExecutionException {
+ getLink().getSuppliers().remove(getOldTarget());
+ getLink().getSuppliers().add(getNewTarget());
+ return CommandResult.newOKCommandResult(getLink());
+ }
+
+ /**
+ * @generated
+ */
+ protected Dependency getLink() {
+ return (Dependency)getElementToEdit();
+ }
+
+ /**
+ * @generated
+ */
+ protected NamedElement getOldSource() {
+ return (NamedElement)oldEnd;
+ }
+
+ /**
+ * @generated
+ */
+ protected NamedElement getNewSource() {
+ return (NamedElement)newEnd;
+ }
+
+ /**
+ * @generated
+ */
+ protected NamedElement getOldTarget() {
+ return (NamedElement)oldEnd;
+ }
+
+ /**
+ * @generated
+ */
+ protected NamedElement getNewTarget() {
+ return (NamedElement)newEnd;
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/SendOperationEventCreateCommand.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/SendOperationEventCreateCommand.java
new file mode 100644
index 00000000000..6f47c0098a7
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/SendOperationEventCreateCommand.java
@@ -0,0 +1,134 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.commands;
+
+import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gmf.runtime.common.core.command.CommandResult;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ConfigureRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.diagram.composite.providers.ElementInitializers;
+import org.eclipse.uml2.uml.Package;
+import org.eclipse.uml2.uml.SendOperationEvent;
+import org.eclipse.uml2.uml.UMLFactory;
+
+/**
+ * @generated
+ */
+public class SendOperationEventCreateCommand extends EditElementCommand {
+
+ /**
+ * @generated
+ */
+ private EClass eClass = null;
+
+ /**
+ * @generated
+ */
+ private EObject eObject = null;
+
+ /**
+ * @generated
+ */
+ public SendOperationEventCreateCommand(CreateElementRequest req, EObject eObject) {
+ super(req.getLabel(), null, req);
+ this.eObject = eObject;
+ this.eClass = eObject != null ? eObject.eClass() : null;
+ }
+
+ /**
+ * @generated
+ */
+ public static SendOperationEventCreateCommand create(CreateElementRequest req, EObject eObject) {
+ return new SendOperationEventCreateCommand(req, eObject);
+ }
+
+ /**
+ * @generated
+ */
+ public SendOperationEventCreateCommand(CreateElementRequest req) {
+ super(req.getLabel(), null, req);
+ }
+
+ /**
+ * FIXME: replace with setElementToEdit()
+ *
+ * @generated
+ */
+ protected EObject getElementToEdit() {
+
+ EObject container = ((CreateElementRequest)getRequest()).getContainer();
+ if(container instanceof View) {
+ container = ((View)container).getElement();
+ }
+ if(container != null) {
+ return container;
+ }
+ return eObject;
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canExecute() {
+
+ // Creation constraint for TopLevelNodes
+ if(!(getElementToEdit() instanceof Package)) {
+ return false;
+ }
+
+ return true;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+
+ SendOperationEvent newElement = UMLFactory.eINSTANCE.createSendOperationEvent();
+
+ Package owner = (Package)getElementToEdit();
+ owner.getPackagedElements().add(newElement);
+
+ ElementInitializers.getInstance().init_SendOperationEvent_2087(newElement);
+
+ doConfigure(newElement, monitor, info);
+
+ ((CreateElementRequest)getRequest()).setNewElement(newElement);
+ return CommandResult.newOKCommandResult(newElement);
+ }
+
+ /**
+ * @generated
+ */
+ protected void doConfigure(SendOperationEvent newElement, IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+ IElementType elementType = ((CreateElementRequest)getRequest()).getElementType();
+ ConfigureRequest configureRequest = new ConfigureRequest(getEditingDomain(), newElement, elementType);
+ configureRequest.setClientContext(((CreateElementRequest)getRequest()).getClientContext());
+ configureRequest.addParameters(getRequest().getParameters());
+ ICommand configureCommand = elementType.getEditCommand(configureRequest);
+ if(configureCommand != null && configureCommand.canExecute()) {
+ configureCommand.execute(monitor, info);
+ }
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/SendSignalEventCreateCommand.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/SendSignalEventCreateCommand.java
new file mode 100644
index 00000000000..5a6c27de61f
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/SendSignalEventCreateCommand.java
@@ -0,0 +1,134 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.commands;
+
+import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gmf.runtime.common.core.command.CommandResult;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ConfigureRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.diagram.composite.providers.ElementInitializers;
+import org.eclipse.uml2.uml.Package;
+import org.eclipse.uml2.uml.SendSignalEvent;
+import org.eclipse.uml2.uml.UMLFactory;
+
+/**
+ * @generated
+ */
+public class SendSignalEventCreateCommand extends EditElementCommand {
+
+ /**
+ * @generated
+ */
+ private EClass eClass = null;
+
+ /**
+ * @generated
+ */
+ private EObject eObject = null;
+
+ /**
+ * @generated
+ */
+ public SendSignalEventCreateCommand(CreateElementRequest req, EObject eObject) {
+ super(req.getLabel(), null, req);
+ this.eObject = eObject;
+ this.eClass = eObject != null ? eObject.eClass() : null;
+ }
+
+ /**
+ * @generated
+ */
+ public static SendSignalEventCreateCommand create(CreateElementRequest req, EObject eObject) {
+ return new SendSignalEventCreateCommand(req, eObject);
+ }
+
+ /**
+ * @generated
+ */
+ public SendSignalEventCreateCommand(CreateElementRequest req) {
+ super(req.getLabel(), null, req);
+ }
+
+ /**
+ * FIXME: replace with setElementToEdit()
+ *
+ * @generated
+ */
+ protected EObject getElementToEdit() {
+
+ EObject container = ((CreateElementRequest)getRequest()).getContainer();
+ if(container instanceof View) {
+ container = ((View)container).getElement();
+ }
+ if(container != null) {
+ return container;
+ }
+ return eObject;
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canExecute() {
+
+ // Creation constraint for TopLevelNodes
+ if(!(getElementToEdit() instanceof Package)) {
+ return false;
+ }
+
+ return true;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+
+ SendSignalEvent newElement = UMLFactory.eINSTANCE.createSendSignalEvent();
+
+ Package owner = (Package)getElementToEdit();
+ owner.getPackagedElements().add(newElement);
+
+ ElementInitializers.getInstance().init_SendSignalEvent_2086(newElement);
+
+ doConfigure(newElement, monitor, info);
+
+ ((CreateElementRequest)getRequest()).setNewElement(newElement);
+ return CommandResult.newOKCommandResult(newElement);
+ }
+
+ /**
+ * @generated
+ */
+ protected void doConfigure(SendSignalEvent newElement, IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+ IElementType elementType = ((CreateElementRequest)getRequest()).getElementType();
+ ConfigureRequest configureRequest = new ConfigureRequest(getEditingDomain(), newElement, elementType);
+ configureRequest.setClientContext(((CreateElementRequest)getRequest()).getClientContext());
+ configureRequest.addParameters(getRequest().getParameters());
+ ICommand configureCommand = elementType.getEditCommand(configureRequest);
+ if(configureCommand != null && configureCommand.canExecute()) {
+ configureCommand.execute(monitor, info);
+ }
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/SignalCreateCommand.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/SignalCreateCommand.java
new file mode 100644
index 00000000000..6f5bf7a135e
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/SignalCreateCommand.java
@@ -0,0 +1,134 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.commands;
+
+import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gmf.runtime.common.core.command.CommandResult;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ConfigureRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.diagram.composite.providers.ElementInitializers;
+import org.eclipse.uml2.uml.Package;
+import org.eclipse.uml2.uml.Signal;
+import org.eclipse.uml2.uml.UMLFactory;
+
+/**
+ * @generated
+ */
+public class SignalCreateCommand extends EditElementCommand {
+
+ /**
+ * @generated
+ */
+ private EClass eClass = null;
+
+ /**
+ * @generated
+ */
+ private EObject eObject = null;
+
+ /**
+ * @generated
+ */
+ public SignalCreateCommand(CreateElementRequest req, EObject eObject) {
+ super(req.getLabel(), null, req);
+ this.eObject = eObject;
+ this.eClass = eObject != null ? eObject.eClass() : null;
+ }
+
+ /**
+ * @generated
+ */
+ public static SignalCreateCommand create(CreateElementRequest req, EObject eObject) {
+ return new SignalCreateCommand(req, eObject);
+ }
+
+ /**
+ * @generated
+ */
+ public SignalCreateCommand(CreateElementRequest req) {
+ super(req.getLabel(), null, req);
+ }
+
+ /**
+ * FIXME: replace with setElementToEdit()
+ *
+ * @generated
+ */
+ protected EObject getElementToEdit() {
+
+ EObject container = ((CreateElementRequest)getRequest()).getContainer();
+ if(container instanceof View) {
+ container = ((View)container).getElement();
+ }
+ if(container != null) {
+ return container;
+ }
+ return eObject;
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canExecute() {
+
+ // Creation constraint for TopLevelNodes
+ if(!(getElementToEdit() instanceof Package)) {
+ return false;
+ }
+
+ return true;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+
+ Signal newElement = UMLFactory.eINSTANCE.createSignal();
+
+ Package owner = (Package)getElementToEdit();
+ owner.getPackagedElements().add(newElement);
+
+ ElementInitializers.getInstance().init_Signal_2081(newElement);
+
+ doConfigure(newElement, monitor, info);
+
+ ((CreateElementRequest)getRequest()).setNewElement(newElement);
+ return CommandResult.newOKCommandResult(newElement);
+ }
+
+ /**
+ * @generated
+ */
+ protected void doConfigure(Signal newElement, IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+ IElementType elementType = ((CreateElementRequest)getRequest()).getElementType();
+ ConfigureRequest configureRequest = new ConfigureRequest(getEditingDomain(), newElement, elementType);
+ configureRequest.setClientContext(((CreateElementRequest)getRequest()).getClientContext());
+ configureRequest.addParameters(getRequest().getParameters());
+ ICommand configureCommand = elementType.getEditCommand(configureRequest);
+ if(configureCommand != null && configureCommand.canExecute()) {
+ configureCommand.execute(monitor, info);
+ }
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/SignalCreateCommandCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/SignalCreateCommandCN.java
new file mode 100644
index 00000000000..476b1f1f735
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/SignalCreateCommandCN.java
@@ -0,0 +1,129 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.commands;
+
+import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gmf.runtime.common.core.command.CommandResult;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ConfigureRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.diagram.composite.providers.ElementInitializers;
+import org.eclipse.uml2.uml.Class;
+import org.eclipse.uml2.uml.Signal;
+import org.eclipse.uml2.uml.UMLFactory;
+
+/**
+ * @generated
+ */
+public class SignalCreateCommandCN extends EditElementCommand {
+
+ /**
+ * @generated
+ */
+ private EClass eClass = null;
+
+ /**
+ * @generated
+ */
+ private EObject eObject = null;
+
+ /**
+ * @generated
+ */
+ public SignalCreateCommandCN(CreateElementRequest req, EObject eObject) {
+ super(req.getLabel(), null, req);
+ this.eObject = eObject;
+ this.eClass = eObject != null ? eObject.eClass() : null;
+ }
+
+ /**
+ * @generated
+ */
+ public static SignalCreateCommandCN create(CreateElementRequest req, EObject eObject) {
+ return new SignalCreateCommandCN(req, eObject);
+ }
+
+ /**
+ * @generated
+ */
+ public SignalCreateCommandCN(CreateElementRequest req) {
+ super(req.getLabel(), null, req);
+ }
+
+ /**
+ * FIXME: replace with setElementToEdit()
+ *
+ * @generated
+ */
+ protected EObject getElementToEdit() {
+
+ EObject container = ((CreateElementRequest)getRequest()).getContainer();
+ if(container instanceof View) {
+ container = ((View)container).getElement();
+ }
+ if(container != null) {
+ return container;
+ }
+ return eObject;
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canExecute() {
+
+ return true;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+
+ Signal newElement = UMLFactory.eINSTANCE.createSignal();
+
+ Class owner = (Class)getElementToEdit();
+ owner.getNestedClassifiers().add(newElement);
+
+ ElementInitializers.getInstance().init_Signal_3095(newElement);
+
+ doConfigure(newElement, monitor, info);
+
+ ((CreateElementRequest)getRequest()).setNewElement(newElement);
+ return CommandResult.newOKCommandResult(newElement);
+ }
+
+ /**
+ * @generated
+ */
+ protected void doConfigure(Signal newElement, IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+ IElementType elementType = ((CreateElementRequest)getRequest()).getElementType();
+ ConfigureRequest configureRequest = new ConfigureRequest(getEditingDomain(), newElement, elementType);
+ configureRequest.setClientContext(((CreateElementRequest)getRequest()).getClientContext());
+ configureRequest.addParameters(getRequest().getParameters());
+ ICommand configureCommand = elementType.getEditCommand(configureRequest);
+ if(configureCommand != null && configureCommand.canExecute()) {
+ configureCommand.execute(monitor, info);
+ }
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/SignalEventCreateCommand.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/SignalEventCreateCommand.java
new file mode 100644
index 00000000000..943363dc618
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/SignalEventCreateCommand.java
@@ -0,0 +1,134 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.commands;
+
+import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gmf.runtime.common.core.command.CommandResult;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ConfigureRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.diagram.composite.providers.ElementInitializers;
+import org.eclipse.uml2.uml.Package;
+import org.eclipse.uml2.uml.SignalEvent;
+import org.eclipse.uml2.uml.UMLFactory;
+
+/**
+ * @generated
+ */
+public class SignalEventCreateCommand extends EditElementCommand {
+
+ /**
+ * @generated
+ */
+ private EClass eClass = null;
+
+ /**
+ * @generated
+ */
+ private EObject eObject = null;
+
+ /**
+ * @generated
+ */
+ public SignalEventCreateCommand(CreateElementRequest req, EObject eObject) {
+ super(req.getLabel(), null, req);
+ this.eObject = eObject;
+ this.eClass = eObject != null ? eObject.eClass() : null;
+ }
+
+ /**
+ * @generated
+ */
+ public static SignalEventCreateCommand create(CreateElementRequest req, EObject eObject) {
+ return new SignalEventCreateCommand(req, eObject);
+ }
+
+ /**
+ * @generated
+ */
+ public SignalEventCreateCommand(CreateElementRequest req) {
+ super(req.getLabel(), null, req);
+ }
+
+ /**
+ * FIXME: replace with setElementToEdit()
+ *
+ * @generated
+ */
+ protected EObject getElementToEdit() {
+
+ EObject container = ((CreateElementRequest)getRequest()).getContainer();
+ if(container instanceof View) {
+ container = ((View)container).getElement();
+ }
+ if(container != null) {
+ return container;
+ }
+ return eObject;
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canExecute() {
+
+ // Creation constraint for TopLevelNodes
+ if(!(getElementToEdit() instanceof Package)) {
+ return false;
+ }
+
+ return true;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+
+ SignalEvent newElement = UMLFactory.eINSTANCE.createSignalEvent();
+
+ Package owner = (Package)getElementToEdit();
+ owner.getPackagedElements().add(newElement);
+
+ ElementInitializers.getInstance().init_SignalEvent_2083(newElement);
+
+ doConfigure(newElement, monitor, info);
+
+ ((CreateElementRequest)getRequest()).setNewElement(newElement);
+ return CommandResult.newOKCommandResult(newElement);
+ }
+
+ /**
+ * @generated
+ */
+ protected void doConfigure(SignalEvent newElement, IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+ IElementType elementType = ((CreateElementRequest)getRequest()).getElementType();
+ ConfigureRequest configureRequest = new ConfigureRequest(getEditingDomain(), newElement, elementType);
+ configureRequest.setClientContext(((CreateElementRequest)getRequest()).getClientContext());
+ configureRequest.addParameters(getRequest().getParameters());
+ ICommand configureCommand = elementType.getEditCommand(configureRequest);
+ if(configureCommand != null && configureCommand.canExecute()) {
+ configureCommand.execute(monitor, info);
+ }
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/StateMachineCompositeCreateCommand.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/StateMachineCompositeCreateCommand.java
new file mode 100644
index 00000000000..ac56006cc53
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/StateMachineCompositeCreateCommand.java
@@ -0,0 +1,134 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.commands;
+
+import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gmf.runtime.common.core.command.CommandResult;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ConfigureRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.diagram.composite.providers.ElementInitializers;
+import org.eclipse.uml2.uml.Package;
+import org.eclipse.uml2.uml.StateMachine;
+import org.eclipse.uml2.uml.UMLFactory;
+
+/**
+ * @generated
+ */
+public class StateMachineCompositeCreateCommand extends EditElementCommand {
+
+ /**
+ * @generated
+ */
+ private EClass eClass = null;
+
+ /**
+ * @generated
+ */
+ private EObject eObject = null;
+
+ /**
+ * @generated
+ */
+ public StateMachineCompositeCreateCommand(CreateElementRequest req, EObject eObject) {
+ super(req.getLabel(), null, req);
+ this.eObject = eObject;
+ this.eClass = eObject != null ? eObject.eClass() : null;
+ }
+
+ /**
+ * @generated
+ */
+ public static StateMachineCompositeCreateCommand create(CreateElementRequest req, EObject eObject) {
+ return new StateMachineCompositeCreateCommand(req, eObject);
+ }
+
+ /**
+ * @generated
+ */
+ public StateMachineCompositeCreateCommand(CreateElementRequest req) {
+ super(req.getLabel(), null, req);
+ }
+
+ /**
+ * FIXME: replace with setElementToEdit()
+ *
+ * @generated
+ */
+ protected EObject getElementToEdit() {
+
+ EObject container = ((CreateElementRequest)getRequest()).getContainer();
+ if(container instanceof View) {
+ container = ((View)container).getElement();
+ }
+ if(container != null) {
+ return container;
+ }
+ return eObject;
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canExecute() {
+
+ // Creation constraint for TopLevelNodes
+ if(!(getElementToEdit() instanceof Package)) {
+ return false;
+ }
+
+ return true;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+
+ StateMachine newElement = UMLFactory.eINSTANCE.createStateMachine();
+
+ Package owner = (Package)getElementToEdit();
+ owner.getPackagedElements().add(newElement);
+
+ ElementInitializers.getInstance().init_StateMachine_2063(newElement);
+
+ doConfigure(newElement, monitor, info);
+
+ ((CreateElementRequest)getRequest()).setNewElement(newElement);
+ return CommandResult.newOKCommandResult(newElement);
+ }
+
+ /**
+ * @generated
+ */
+ protected void doConfigure(StateMachine newElement, IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+ IElementType elementType = ((CreateElementRequest)getRequest()).getElementType();
+ ConfigureRequest configureRequest = new ConfigureRequest(getEditingDomain(), newElement, elementType);
+ configureRequest.setClientContext(((CreateElementRequest)getRequest()).getClientContext());
+ configureRequest.addParameters(getRequest().getParameters());
+ ICommand configureCommand = elementType.getEditCommand(configureRequest);
+ if(configureCommand != null && configureCommand.canExecute()) {
+ configureCommand.execute(monitor, info);
+ }
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/StateMachineCompositeCreateCommandCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/StateMachineCompositeCreateCommandCN.java
new file mode 100644
index 00000000000..fe321989de5
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/StateMachineCompositeCreateCommandCN.java
@@ -0,0 +1,129 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.commands;
+
+import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gmf.runtime.common.core.command.CommandResult;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ConfigureRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.diagram.composite.providers.ElementInitializers;
+import org.eclipse.uml2.uml.Class;
+import org.eclipse.uml2.uml.StateMachine;
+import org.eclipse.uml2.uml.UMLFactory;
+
+/**
+ * @generated
+ */
+public class StateMachineCompositeCreateCommandCN extends EditElementCommand {
+
+ /**
+ * @generated
+ */
+ private EClass eClass = null;
+
+ /**
+ * @generated
+ */
+ private EObject eObject = null;
+
+ /**
+ * @generated
+ */
+ public StateMachineCompositeCreateCommandCN(CreateElementRequest req, EObject eObject) {
+ super(req.getLabel(), null, req);
+ this.eObject = eObject;
+ this.eClass = eObject != null ? eObject.eClass() : null;
+ }
+
+ /**
+ * @generated
+ */
+ public static StateMachineCompositeCreateCommandCN create(CreateElementRequest req, EObject eObject) {
+ return new StateMachineCompositeCreateCommandCN(req, eObject);
+ }
+
+ /**
+ * @generated
+ */
+ public StateMachineCompositeCreateCommandCN(CreateElementRequest req) {
+ super(req.getLabel(), null, req);
+ }
+
+ /**
+ * FIXME: replace with setElementToEdit()
+ *
+ * @generated
+ */
+ protected EObject getElementToEdit() {
+
+ EObject container = ((CreateElementRequest)getRequest()).getContainer();
+ if(container instanceof View) {
+ container = ((View)container).getElement();
+ }
+ if(container != null) {
+ return container;
+ }
+ return eObject;
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canExecute() {
+
+ return true;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+
+ StateMachine newElement = UMLFactory.eINSTANCE.createStateMachine();
+
+ Class owner = (Class)getElementToEdit();
+ owner.getNestedClassifiers().add(newElement);
+
+ ElementInitializers.getInstance().init_StateMachine_3075(newElement);
+
+ doConfigure(newElement, monitor, info);
+
+ ((CreateElementRequest)getRequest()).setNewElement(newElement);
+ return CommandResult.newOKCommandResult(newElement);
+ }
+
+ /**
+ * @generated
+ */
+ protected void doConfigure(StateMachine newElement, IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+ IElementType elementType = ((CreateElementRequest)getRequest()).getElementType();
+ ConfigureRequest configureRequest = new ConfigureRequest(getEditingDomain(), newElement, elementType);
+ configureRequest.setClientContext(((CreateElementRequest)getRequest()).getClientContext());
+ configureRequest.addParameters(getRequest().getParameters());
+ ICommand configureCommand = elementType.getEditCommand(configureRequest);
+ if(configureCommand != null && configureCommand.canExecute()) {
+ configureCommand.execute(monitor, info);
+ }
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/StateMachineCreateCommandCLN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/StateMachineCreateCommandCLN.java
new file mode 100644
index 00000000000..5d2c508ea53
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/StateMachineCreateCommandCLN.java
@@ -0,0 +1,129 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.commands;
+
+import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gmf.runtime.common.core.command.CommandResult;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ConfigureRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.diagram.composite.providers.ElementInitializers;
+import org.eclipse.uml2.uml.Class;
+import org.eclipse.uml2.uml.StateMachine;
+import org.eclipse.uml2.uml.UMLFactory;
+
+/**
+ * @generated
+ */
+public class StateMachineCreateCommandCLN extends EditElementCommand {
+
+ /**
+ * @generated
+ */
+ private EClass eClass = null;
+
+ /**
+ * @generated
+ */
+ private EObject eObject = null;
+
+ /**
+ * @generated
+ */
+ public StateMachineCreateCommandCLN(CreateElementRequest req, EObject eObject) {
+ super(req.getLabel(), null, req);
+ this.eObject = eObject;
+ this.eClass = eObject != null ? eObject.eClass() : null;
+ }
+
+ /**
+ * @generated
+ */
+ public static StateMachineCreateCommandCLN create(CreateElementRequest req, EObject eObject) {
+ return new StateMachineCreateCommandCLN(req, eObject);
+ }
+
+ /**
+ * @generated
+ */
+ public StateMachineCreateCommandCLN(CreateElementRequest req) {
+ super(req.getLabel(), null, req);
+ }
+
+ /**
+ * FIXME: replace with setElementToEdit()
+ *
+ * @generated
+ */
+ protected EObject getElementToEdit() {
+
+ EObject container = ((CreateElementRequest)getRequest()).getContainer();
+ if(container instanceof View) {
+ container = ((View)container).getElement();
+ }
+ if(container != null) {
+ return container;
+ }
+ return eObject;
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canExecute() {
+
+ return true;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+
+ StateMachine newElement = UMLFactory.eINSTANCE.createStateMachine();
+
+ Class owner = (Class)getElementToEdit();
+ owner.getNestedClassifiers().add(newElement);
+
+ ElementInitializers.getInstance().init_StateMachine_3106(newElement);
+
+ doConfigure(newElement, monitor, info);
+
+ ((CreateElementRequest)getRequest()).setNewElement(newElement);
+ return CommandResult.newOKCommandResult(newElement);
+ }
+
+ /**
+ * @generated
+ */
+ protected void doConfigure(StateMachine newElement, IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+ IElementType elementType = ((CreateElementRequest)getRequest()).getElementType();
+ ConfigureRequest configureRequest = new ConfigureRequest(getEditingDomain(), newElement, elementType);
+ configureRequest.setClientContext(((CreateElementRequest)getRequest()).getClientContext());
+ configureRequest.addParameters(getRequest().getParameters());
+ ICommand configureCommand = elementType.getEditCommand(configureRequest);
+ if(configureCommand != null && configureCommand.canExecute()) {
+ configureCommand.execute(monitor, info);
+ }
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/StringExpressionCreateCommand.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/StringExpressionCreateCommand.java
new file mode 100644
index 00000000000..7605fca2f6d
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/StringExpressionCreateCommand.java
@@ -0,0 +1,134 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.commands;
+
+import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gmf.runtime.common.core.command.CommandResult;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ConfigureRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.diagram.composite.providers.ElementInitializers;
+import org.eclipse.uml2.uml.Package;
+import org.eclipse.uml2.uml.StringExpression;
+import org.eclipse.uml2.uml.UMLFactory;
+
+/**
+ * @generated
+ */
+public class StringExpressionCreateCommand extends EditElementCommand {
+
+ /**
+ * @generated
+ */
+ private EClass eClass = null;
+
+ /**
+ * @generated
+ */
+ private EObject eObject = null;
+
+ /**
+ * @generated
+ */
+ public StringExpressionCreateCommand(CreateElementRequest req, EObject eObject) {
+ super(req.getLabel(), null, req);
+ this.eObject = eObject;
+ this.eClass = eObject != null ? eObject.eClass() : null;
+ }
+
+ /**
+ * @generated
+ */
+ public static StringExpressionCreateCommand create(CreateElementRequest req, EObject eObject) {
+ return new StringExpressionCreateCommand(req, eObject);
+ }
+
+ /**
+ * @generated
+ */
+ public StringExpressionCreateCommand(CreateElementRequest req) {
+ super(req.getLabel(), null, req);
+ }
+
+ /**
+ * FIXME: replace with setElementToEdit()
+ *
+ * @generated
+ */
+ protected EObject getElementToEdit() {
+
+ EObject container = ((CreateElementRequest)getRequest()).getContainer();
+ if(container instanceof View) {
+ container = ((View)container).getElement();
+ }
+ if(container != null) {
+ return container;
+ }
+ return eObject;
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canExecute() {
+
+ // Creation constraint for TopLevelNodes
+ if(!(getElementToEdit() instanceof Package)) {
+ return false;
+ }
+
+ return true;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+
+ StringExpression newElement = UMLFactory.eINSTANCE.createStringExpression();
+
+ Package owner = (Package)getElementToEdit();
+ owner.getPackagedElements().add(newElement);
+
+ ElementInitializers.getInstance().init_StringExpression_2100(newElement);
+
+ doConfigure(newElement, monitor, info);
+
+ ((CreateElementRequest)getRequest()).setNewElement(newElement);
+ return CommandResult.newOKCommandResult(newElement);
+ }
+
+ /**
+ * @generated
+ */
+ protected void doConfigure(StringExpression newElement, IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+ IElementType elementType = ((CreateElementRequest)getRequest()).getElementType();
+ ConfigureRequest configureRequest = new ConfigureRequest(getEditingDomain(), newElement, elementType);
+ configureRequest.setClientContext(((CreateElementRequest)getRequest()).getClientContext());
+ configureRequest.addParameters(getRequest().getParameters());
+ ICommand configureCommand = elementType.getEditCommand(configureRequest);
+ if(configureCommand != null && configureCommand.canExecute()) {
+ configureCommand.execute(monitor, info);
+ }
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/SubstitutionCreateCommand.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/SubstitutionCreateCommand.java
new file mode 100644
index 00000000000..cc4ef3546f0
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/SubstitutionCreateCommand.java
@@ -0,0 +1,168 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.commands;
+
+import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gmf.runtime.common.core.command.CommandResult;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ConfigureRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLBaseItemSemanticEditPolicy;
+import org.eclipse.papyrus.diagram.composite.providers.ElementInitializers;
+import org.eclipse.uml2.uml.NamedElement;
+import org.eclipse.uml2.uml.Package;
+import org.eclipse.uml2.uml.Substitution;
+import org.eclipse.uml2.uml.UMLFactory;
+
+/**
+ * @generated
+ */
+public class SubstitutionCreateCommand extends EditElementCommand {
+
+ /**
+ * @generated
+ */
+ protected final EObject source;
+
+ /**
+ * @generated
+ */
+ protected final EObject target;
+
+ /**
+ * @generated
+ */
+ protected Package container;
+
+ /**
+ * @generated
+ */
+ public SubstitutionCreateCommand(CreateRelationshipRequest request, EObject source, EObject target) {
+ super(request.getLabel(), null, request);
+ this.source = source;
+ this.target = target;
+ container = deduceContainer(source, target);
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canExecute() {
+ if(source == null && target == null) {
+ return false;
+ }
+ if(source != null && false == source instanceof NamedElement) {
+ return false;
+ }
+ if(target != null && false == target instanceof NamedElement) {
+ return false;
+ }
+ if(getSource() == null) {
+ return true; // link creation is in progress; source is not defined yet
+ }
+ // target may be null here but it's possible to check constraint
+ if(getContainer() == null) {
+ return false;
+ }
+ return UMLBaseItemSemanticEditPolicy.getLinkConstraints().canCreateSubstitution_4011(getContainer(), getSource(), getTarget());
+ }
+
+ /**
+ * @generated
+ */
+ protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+ if(!canExecute()) {
+ throw new ExecutionException("Invalid arguments in create link command"); //$NON-NLS-1$
+ }
+
+ Substitution newElement = UMLFactory.eINSTANCE.createSubstitution();
+ getContainer().getPackagedElements().add(newElement);
+ newElement.getClients().add(getSource());
+ newElement.getSuppliers().add(getTarget());
+ ElementInitializers.getInstance().init_Substitution_4011(newElement);
+ doConfigure(newElement, monitor, info);
+ ((CreateElementRequest)getRequest()).setNewElement(newElement);
+ return CommandResult.newOKCommandResult(newElement);
+
+ }
+
+ /**
+ * @generated
+ */
+ protected void doConfigure(Substitution newElement, IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+ IElementType elementType = ((CreateElementRequest)getRequest()).getElementType();
+ ConfigureRequest configureRequest = new ConfigureRequest(getEditingDomain(), newElement, elementType);
+ configureRequest.setClientContext(((CreateElementRequest)getRequest()).getClientContext());
+ configureRequest.addParameters(getRequest().getParameters());
+ configureRequest.setParameter(CreateRelationshipRequest.SOURCE, getSource());
+ configureRequest.setParameter(CreateRelationshipRequest.TARGET, getTarget());
+ ICommand configureCommand = elementType.getEditCommand(configureRequest);
+ if(configureCommand != null && configureCommand.canExecute()) {
+ configureCommand.execute(monitor, info);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setElementToEdit(EObject element) {
+ throw new UnsupportedOperationException();
+ }
+
+ /**
+ * @generated
+ */
+ protected NamedElement getSource() {
+ return (NamedElement)source;
+ }
+
+ /**
+ * @generated
+ */
+ protected NamedElement getTarget() {
+ return (NamedElement)target;
+ }
+
+ /**
+ * @generated
+ */
+ public Package getContainer() {
+ return container;
+ }
+
+ /**
+ * Default approach is to traverse ancestors of the source to find instance of container.
+ * Modify with appropriate logic.
+ *
+ * @generated
+ */
+ protected Package deduceContainer(EObject source, EObject target) {
+ // Find container element for the new link.
+ // Climb up by containment hierarchy starting from the source
+ // and return the first element that is instance of the container class.
+ for(EObject element = source; element != null; element = element.eContainer()) {
+ if(element instanceof Package) {
+ return (Package)element;
+ }
+ }
+ return null;
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/SubstitutionReorientCommand.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/SubstitutionReorientCommand.java
new file mode 100644
index 00000000000..331cb8eaa1b
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/SubstitutionReorientCommand.java
@@ -0,0 +1,178 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.commands;
+
+import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gmf.runtime.common.core.command.CommandResult;
+import org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientRelationshipRequest;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLBaseItemSemanticEditPolicy;
+import org.eclipse.uml2.uml.NamedElement;
+import org.eclipse.uml2.uml.Package;
+import org.eclipse.uml2.uml.Substitution;
+
+/**
+ * @generated
+ */
+public class SubstitutionReorientCommand extends EditElementCommand {
+
+ /**
+ * @generated
+ */
+ private final int reorientDirection;
+
+ /**
+ * @generated
+ */
+ private final EObject oldEnd;
+
+ /**
+ * @generated
+ */
+ private final EObject newEnd;
+
+ /**
+ * @generated
+ */
+ public SubstitutionReorientCommand(ReorientRelationshipRequest request) {
+ super(request.getLabel(), request.getRelationship(), request);
+ reorientDirection = request.getDirection();
+ oldEnd = request.getOldRelationshipEnd();
+ newEnd = request.getNewRelationshipEnd();
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canExecute() {
+ if(false == getElementToEdit() instanceof Substitution) {
+ return false;
+ }
+ if(reorientDirection == ReorientRelationshipRequest.REORIENT_SOURCE) {
+ return canReorientSource();
+ }
+ if(reorientDirection == ReorientRelationshipRequest.REORIENT_TARGET) {
+ return canReorientTarget();
+ }
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean canReorientSource() {
+ if(!(oldEnd instanceof NamedElement && newEnd instanceof NamedElement)) {
+ return false;
+ }
+ if(getLink().getSuppliers().size() != 1) {
+ return false;
+ }
+ NamedElement target = (NamedElement)getLink().getSuppliers().get(0);
+ if(!(getLink().eContainer() instanceof Package)) {
+ return false;
+ }
+ Package container = (Package)getLink().eContainer();
+ return UMLBaseItemSemanticEditPolicy.getLinkConstraints().canExistSubstitution_4011(container, getLink(), getNewSource(), target);
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean canReorientTarget() {
+ if(!(oldEnd instanceof NamedElement && newEnd instanceof NamedElement)) {
+ return false;
+ }
+ if(getLink().getClients().size() != 1) {
+ return false;
+ }
+ NamedElement source = (NamedElement)getLink().getClients().get(0);
+ if(!(getLink().eContainer() instanceof Package)) {
+ return false;
+ }
+ Package container = (Package)getLink().eContainer();
+ return UMLBaseItemSemanticEditPolicy.getLinkConstraints().canExistSubstitution_4011(container, getLink(), source, getNewTarget());
+ }
+
+ /**
+ * @generated
+ */
+ protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+ if(!canExecute()) {
+ throw new ExecutionException("Invalid arguments in reorient link command"); //$NON-NLS-1$
+ }
+ if(reorientDirection == ReorientRelationshipRequest.REORIENT_SOURCE) {
+ return reorientSource();
+ }
+ if(reorientDirection == ReorientRelationshipRequest.REORIENT_TARGET) {
+ return reorientTarget();
+ }
+ throw new IllegalStateException();
+ }
+
+ /**
+ * @generated
+ */
+ protected CommandResult reorientSource() throws ExecutionException {
+ getLink().getClients().remove(getOldSource());
+ getLink().getClients().add(getNewSource());
+ return CommandResult.newOKCommandResult(getLink());
+ }
+
+ /**
+ * @generated
+ */
+ protected CommandResult reorientTarget() throws ExecutionException {
+ getLink().getSuppliers().remove(getOldTarget());
+ getLink().getSuppliers().add(getNewTarget());
+ return CommandResult.newOKCommandResult(getLink());
+ }
+
+ /**
+ * @generated
+ */
+ protected Substitution getLink() {
+ return (Substitution)getElementToEdit();
+ }
+
+ /**
+ * @generated
+ */
+ protected NamedElement getOldSource() {
+ return (NamedElement)oldEnd;
+ }
+
+ /**
+ * @generated
+ */
+ protected NamedElement getNewSource() {
+ return (NamedElement)newEnd;
+ }
+
+ /**
+ * @generated
+ */
+ protected NamedElement getOldTarget() {
+ return (NamedElement)oldEnd;
+ }
+
+ /**
+ * @generated
+ */
+ protected NamedElement getNewTarget() {
+ return (NamedElement)newEnd;
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/TimeConstraintCreateCommand.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/TimeConstraintCreateCommand.java
new file mode 100644
index 00000000000..5b62876fabe
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/TimeConstraintCreateCommand.java
@@ -0,0 +1,135 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.commands;
+
+import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gmf.runtime.common.core.command.CommandResult;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ConfigureRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.diagram.composite.providers.ElementInitializers;
+import org.eclipse.uml2.uml.Namespace;
+import org.eclipse.uml2.uml.Package;
+import org.eclipse.uml2.uml.TimeConstraint;
+import org.eclipse.uml2.uml.UMLFactory;
+
+/**
+ * @generated
+ */
+public class TimeConstraintCreateCommand extends EditElementCommand {
+
+ /**
+ * @generated
+ */
+ private EClass eClass = null;
+
+ /**
+ * @generated
+ */
+ private EObject eObject = null;
+
+ /**
+ * @generated
+ */
+ public TimeConstraintCreateCommand(CreateElementRequest req, EObject eObject) {
+ super(req.getLabel(), null, req);
+ this.eObject = eObject;
+ this.eClass = eObject != null ? eObject.eClass() : null;
+ }
+
+ /**
+ * @generated
+ */
+ public static TimeConstraintCreateCommand create(CreateElementRequest req, EObject eObject) {
+ return new TimeConstraintCreateCommand(req, eObject);
+ }
+
+ /**
+ * @generated
+ */
+ public TimeConstraintCreateCommand(CreateElementRequest req) {
+ super(req.getLabel(), null, req);
+ }
+
+ /**
+ * FIXME: replace with setElementToEdit()
+ *
+ * @generated
+ */
+ protected EObject getElementToEdit() {
+
+ EObject container = ((CreateElementRequest)getRequest()).getContainer();
+ if(container instanceof View) {
+ container = ((View)container).getElement();
+ }
+ if(container != null) {
+ return container;
+ }
+ return eObject;
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canExecute() {
+
+ // Creation constraint for TopLevelNodes
+ if(!(getElementToEdit() instanceof Package)) {
+ return false;
+ }
+
+ return true;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+
+ TimeConstraint newElement = UMLFactory.eINSTANCE.createTimeConstraint();
+
+ Namespace owner = (Namespace)getElementToEdit();
+ owner.getOwnedRules().add(newElement);
+
+ ElementInitializers.getInstance().init_TimeConstraint_2111(newElement);
+
+ doConfigure(newElement, monitor, info);
+
+ ((CreateElementRequest)getRequest()).setNewElement(newElement);
+ return CommandResult.newOKCommandResult(newElement);
+ }
+
+ /**
+ * @generated
+ */
+ protected void doConfigure(TimeConstraint newElement, IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+ IElementType elementType = ((CreateElementRequest)getRequest()).getElementType();
+ ConfigureRequest configureRequest = new ConfigureRequest(getEditingDomain(), newElement, elementType);
+ configureRequest.setClientContext(((CreateElementRequest)getRequest()).getClientContext());
+ configureRequest.addParameters(getRequest().getParameters());
+ ICommand configureCommand = elementType.getEditCommand(configureRequest);
+ if(configureCommand != null && configureCommand.canExecute()) {
+ configureCommand.execute(monitor, info);
+ }
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/TimeConstraintCreateCommandCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/TimeConstraintCreateCommandCN.java
new file mode 100644
index 00000000000..8edcd72cd87
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/TimeConstraintCreateCommandCN.java
@@ -0,0 +1,129 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.commands;
+
+import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gmf.runtime.common.core.command.CommandResult;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ConfigureRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.diagram.composite.providers.ElementInitializers;
+import org.eclipse.uml2.uml.Namespace;
+import org.eclipse.uml2.uml.TimeConstraint;
+import org.eclipse.uml2.uml.UMLFactory;
+
+/**
+ * @generated
+ */
+public class TimeConstraintCreateCommandCN extends EditElementCommand {
+
+ /**
+ * @generated
+ */
+ private EClass eClass = null;
+
+ /**
+ * @generated
+ */
+ private EObject eObject = null;
+
+ /**
+ * @generated
+ */
+ public TimeConstraintCreateCommandCN(CreateElementRequest req, EObject eObject) {
+ super(req.getLabel(), null, req);
+ this.eObject = eObject;
+ this.eClass = eObject != null ? eObject.eClass() : null;
+ }
+
+ /**
+ * @generated
+ */
+ public static TimeConstraintCreateCommandCN create(CreateElementRequest req, EObject eObject) {
+ return new TimeConstraintCreateCommandCN(req, eObject);
+ }
+
+ /**
+ * @generated
+ */
+ public TimeConstraintCreateCommandCN(CreateElementRequest req) {
+ super(req.getLabel(), null, req);
+ }
+
+ /**
+ * FIXME: replace with setElementToEdit()
+ *
+ * @generated
+ */
+ protected EObject getElementToEdit() {
+
+ EObject container = ((CreateElementRequest)getRequest()).getContainer();
+ if(container instanceof View) {
+ container = ((View)container).getElement();
+ }
+ if(container != null) {
+ return container;
+ }
+ return eObject;
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canExecute() {
+
+ return true;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+
+ TimeConstraint newElement = UMLFactory.eINSTANCE.createTimeConstraint();
+
+ Namespace owner = (Namespace)getElementToEdit();
+ owner.getOwnedRules().add(newElement);
+
+ ElementInitializers.getInstance().init_TimeConstraint_3117(newElement);
+
+ doConfigure(newElement, monitor, info);
+
+ ((CreateElementRequest)getRequest()).setNewElement(newElement);
+ return CommandResult.newOKCommandResult(newElement);
+ }
+
+ /**
+ * @generated
+ */
+ protected void doConfigure(TimeConstraint newElement, IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+ IElementType elementType = ((CreateElementRequest)getRequest()).getElementType();
+ ConfigureRequest configureRequest = new ConfigureRequest(getEditingDomain(), newElement, elementType);
+ configureRequest.setClientContext(((CreateElementRequest)getRequest()).getClientContext());
+ configureRequest.addParameters(getRequest().getParameters());
+ ICommand configureCommand = elementType.getEditCommand(configureRequest);
+ if(configureCommand != null && configureCommand.canExecute()) {
+ configureCommand.execute(monitor, info);
+ }
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/TimeEventCreateCommand.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/TimeEventCreateCommand.java
new file mode 100644
index 00000000000..24615123741
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/TimeEventCreateCommand.java
@@ -0,0 +1,134 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.commands;
+
+import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gmf.runtime.common.core.command.CommandResult;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ConfigureRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.diagram.composite.providers.ElementInitializers;
+import org.eclipse.uml2.uml.Package;
+import org.eclipse.uml2.uml.TimeEvent;
+import org.eclipse.uml2.uml.UMLFactory;
+
+/**
+ * @generated
+ */
+public class TimeEventCreateCommand extends EditElementCommand {
+
+ /**
+ * @generated
+ */
+ private EClass eClass = null;
+
+ /**
+ * @generated
+ */
+ private EObject eObject = null;
+
+ /**
+ * @generated
+ */
+ public TimeEventCreateCommand(CreateElementRequest req, EObject eObject) {
+ super(req.getLabel(), null, req);
+ this.eObject = eObject;
+ this.eClass = eObject != null ? eObject.eClass() : null;
+ }
+
+ /**
+ * @generated
+ */
+ public static TimeEventCreateCommand create(CreateElementRequest req, EObject eObject) {
+ return new TimeEventCreateCommand(req, eObject);
+ }
+
+ /**
+ * @generated
+ */
+ public TimeEventCreateCommand(CreateElementRequest req) {
+ super(req.getLabel(), null, req);
+ }
+
+ /**
+ * FIXME: replace with setElementToEdit()
+ *
+ * @generated
+ */
+ protected EObject getElementToEdit() {
+
+ EObject container = ((CreateElementRequest)getRequest()).getContainer();
+ if(container instanceof View) {
+ container = ((View)container).getElement();
+ }
+ if(container != null) {
+ return container;
+ }
+ return eObject;
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canExecute() {
+
+ // Creation constraint for TopLevelNodes
+ if(!(getElementToEdit() instanceof Package)) {
+ return false;
+ }
+
+ return true;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+
+ TimeEvent newElement = UMLFactory.eINSTANCE.createTimeEvent();
+
+ Package owner = (Package)getElementToEdit();
+ owner.getPackagedElements().add(newElement);
+
+ ElementInitializers.getInstance().init_TimeEvent_2089(newElement);
+
+ doConfigure(newElement, monitor, info);
+
+ ((CreateElementRequest)getRequest()).setNewElement(newElement);
+ return CommandResult.newOKCommandResult(newElement);
+ }
+
+ /**
+ * @generated
+ */
+ protected void doConfigure(TimeEvent newElement, IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+ IElementType elementType = ((CreateElementRequest)getRequest()).getElementType();
+ ConfigureRequest configureRequest = new ConfigureRequest(getEditingDomain(), newElement, elementType);
+ configureRequest.setClientContext(((CreateElementRequest)getRequest()).getClientContext());
+ configureRequest.addParameters(getRequest().getParameters());
+ ICommand configureCommand = elementType.getEditCommand(configureRequest);
+ if(configureCommand != null && configureCommand.canExecute()) {
+ configureCommand.execute(monitor, info);
+ }
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/TimeExpressionCreateCommand.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/TimeExpressionCreateCommand.java
new file mode 100644
index 00000000000..9213ba0dd57
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/TimeExpressionCreateCommand.java
@@ -0,0 +1,134 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.commands;
+
+import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gmf.runtime.common.core.command.CommandResult;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ConfigureRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.diagram.composite.providers.ElementInitializers;
+import org.eclipse.uml2.uml.Package;
+import org.eclipse.uml2.uml.TimeExpression;
+import org.eclipse.uml2.uml.UMLFactory;
+
+/**
+ * @generated
+ */
+public class TimeExpressionCreateCommand extends EditElementCommand {
+
+ /**
+ * @generated
+ */
+ private EClass eClass = null;
+
+ /**
+ * @generated
+ */
+ private EObject eObject = null;
+
+ /**
+ * @generated
+ */
+ public TimeExpressionCreateCommand(CreateElementRequest req, EObject eObject) {
+ super(req.getLabel(), null, req);
+ this.eObject = eObject;
+ this.eClass = eObject != null ? eObject.eClass() : null;
+ }
+
+ /**
+ * @generated
+ */
+ public static TimeExpressionCreateCommand create(CreateElementRequest req, EObject eObject) {
+ return new TimeExpressionCreateCommand(req, eObject);
+ }
+
+ /**
+ * @generated
+ */
+ public TimeExpressionCreateCommand(CreateElementRequest req) {
+ super(req.getLabel(), null, req);
+ }
+
+ /**
+ * FIXME: replace with setElementToEdit()
+ *
+ * @generated
+ */
+ protected EObject getElementToEdit() {
+
+ EObject container = ((CreateElementRequest)getRequest()).getContainer();
+ if(container instanceof View) {
+ container = ((View)container).getElement();
+ }
+ if(container != null) {
+ return container;
+ }
+ return eObject;
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canExecute() {
+
+ // Creation constraint for TopLevelNodes
+ if(!(getElementToEdit() instanceof Package)) {
+ return false;
+ }
+
+ return true;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+
+ TimeExpression newElement = UMLFactory.eINSTANCE.createTimeExpression();
+
+ Package owner = (Package)getElementToEdit();
+ owner.getPackagedElements().add(newElement);
+
+ ElementInitializers.getInstance().init_TimeExpression_2102(newElement);
+
+ doConfigure(newElement, monitor, info);
+
+ ((CreateElementRequest)getRequest()).setNewElement(newElement);
+ return CommandResult.newOKCommandResult(newElement);
+ }
+
+ /**
+ * @generated
+ */
+ protected void doConfigure(TimeExpression newElement, IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+ IElementType elementType = ((CreateElementRequest)getRequest()).getElementType();
+ ConfigureRequest configureRequest = new ConfigureRequest(getEditingDomain(), newElement, elementType);
+ configureRequest.setClientContext(((CreateElementRequest)getRequest()).getClientContext());
+ configureRequest.addParameters(getRequest().getParameters());
+ ICommand configureCommand = elementType.getEditCommand(configureRequest);
+ if(configureCommand != null && configureCommand.canExecute()) {
+ configureCommand.execute(monitor, info);
+ }
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/TimeIntervalCreateCommand.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/TimeIntervalCreateCommand.java
new file mode 100644
index 00000000000..86d4c70363f
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/TimeIntervalCreateCommand.java
@@ -0,0 +1,134 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.commands;
+
+import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gmf.runtime.common.core.command.CommandResult;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ConfigureRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.diagram.composite.providers.ElementInitializers;
+import org.eclipse.uml2.uml.Package;
+import org.eclipse.uml2.uml.TimeInterval;
+import org.eclipse.uml2.uml.UMLFactory;
+
+/**
+ * @generated
+ */
+public class TimeIntervalCreateCommand extends EditElementCommand {
+
+ /**
+ * @generated
+ */
+ private EClass eClass = null;
+
+ /**
+ * @generated
+ */
+ private EObject eObject = null;
+
+ /**
+ * @generated
+ */
+ public TimeIntervalCreateCommand(CreateElementRequest req, EObject eObject) {
+ super(req.getLabel(), null, req);
+ this.eObject = eObject;
+ this.eClass = eObject != null ? eObject.eClass() : null;
+ }
+
+ /**
+ * @generated
+ */
+ public static TimeIntervalCreateCommand create(CreateElementRequest req, EObject eObject) {
+ return new TimeIntervalCreateCommand(req, eObject);
+ }
+
+ /**
+ * @generated
+ */
+ public TimeIntervalCreateCommand(CreateElementRequest req) {
+ super(req.getLabel(), null, req);
+ }
+
+ /**
+ * FIXME: replace with setElementToEdit()
+ *
+ * @generated
+ */
+ protected EObject getElementToEdit() {
+
+ EObject container = ((CreateElementRequest)getRequest()).getContainer();
+ if(container instanceof View) {
+ container = ((View)container).getElement();
+ }
+ if(container != null) {
+ return container;
+ }
+ return eObject;
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canExecute() {
+
+ // Creation constraint for TopLevelNodes
+ if(!(getElementToEdit() instanceof Package)) {
+ return false;
+ }
+
+ return true;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+
+ TimeInterval newElement = UMLFactory.eINSTANCE.createTimeInterval();
+
+ Package owner = (Package)getElementToEdit();
+ owner.getPackagedElements().add(newElement);
+
+ ElementInitializers.getInstance().init_TimeInterval_2105(newElement);
+
+ doConfigure(newElement, monitor, info);
+
+ ((CreateElementRequest)getRequest()).setNewElement(newElement);
+ return CommandResult.newOKCommandResult(newElement);
+ }
+
+ /**
+ * @generated
+ */
+ protected void doConfigure(TimeInterval newElement, IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+ IElementType elementType = ((CreateElementRequest)getRequest()).getElementType();
+ ConfigureRequest configureRequest = new ConfigureRequest(getEditingDomain(), newElement, elementType);
+ configureRequest.setClientContext(((CreateElementRequest)getRequest()).getClientContext());
+ configureRequest.addParameters(getRequest().getParameters());
+ ICommand configureCommand = elementType.getEditCommand(configureRequest);
+ if(configureCommand != null && configureCommand.canExecute()) {
+ configureCommand.execute(monitor, info);
+ }
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/TimeObservationCreateCommand.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/TimeObservationCreateCommand.java
new file mode 100644
index 00000000000..74b65ebe260
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/TimeObservationCreateCommand.java
@@ -0,0 +1,134 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.commands;
+
+import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gmf.runtime.common.core.command.CommandResult;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ConfigureRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.diagram.composite.providers.ElementInitializers;
+import org.eclipse.uml2.uml.Package;
+import org.eclipse.uml2.uml.TimeObservation;
+import org.eclipse.uml2.uml.UMLFactory;
+
+/**
+ * @generated
+ */
+public class TimeObservationCreateCommand extends EditElementCommand {
+
+ /**
+ * @generated
+ */
+ private EClass eClass = null;
+
+ /**
+ * @generated
+ */
+ private EObject eObject = null;
+
+ /**
+ * @generated
+ */
+ public TimeObservationCreateCommand(CreateElementRequest req, EObject eObject) {
+ super(req.getLabel(), null, req);
+ this.eObject = eObject;
+ this.eClass = eObject != null ? eObject.eClass() : null;
+ }
+
+ /**
+ * @generated
+ */
+ public static TimeObservationCreateCommand create(CreateElementRequest req, EObject eObject) {
+ return new TimeObservationCreateCommand(req, eObject);
+ }
+
+ /**
+ * @generated
+ */
+ public TimeObservationCreateCommand(CreateElementRequest req) {
+ super(req.getLabel(), null, req);
+ }
+
+ /**
+ * FIXME: replace with setElementToEdit()
+ *
+ * @generated
+ */
+ protected EObject getElementToEdit() {
+
+ EObject container = ((CreateElementRequest)getRequest()).getContainer();
+ if(container instanceof View) {
+ container = ((View)container).getElement();
+ }
+ if(container != null) {
+ return container;
+ }
+ return eObject;
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canExecute() {
+
+ // Creation constraint for TopLevelNodes
+ if(!(getElementToEdit() instanceof Package)) {
+ return false;
+ }
+
+ return true;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+
+ TimeObservation newElement = UMLFactory.eINSTANCE.createTimeObservation();
+
+ Package owner = (Package)getElementToEdit();
+ owner.getPackagedElements().add(newElement);
+
+ ElementInitializers.getInstance().init_TimeObservation_2094(newElement);
+
+ doConfigure(newElement, monitor, info);
+
+ ((CreateElementRequest)getRequest()).setNewElement(newElement);
+ return CommandResult.newOKCommandResult(newElement);
+ }
+
+ /**
+ * @generated
+ */
+ protected void doConfigure(TimeObservation newElement, IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+ IElementType elementType = ((CreateElementRequest)getRequest()).getElementType();
+ ConfigureRequest configureRequest = new ConfigureRequest(getEditingDomain(), newElement, elementType);
+ configureRequest.setClientContext(((CreateElementRequest)getRequest()).getClientContext());
+ configureRequest.addParameters(getRequest().getParameters());
+ ICommand configureCommand = elementType.getEditCommand(configureRequest);
+ if(configureCommand != null && configureCommand.canExecute()) {
+ configureCommand.execute(monitor, info);
+ }
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/TimeObservationEventCreateCommand.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/TimeObservationEventCreateCommand.java
new file mode 100644
index 00000000000..98d656b2338
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/TimeObservationEventCreateCommand.java
@@ -0,0 +1,106 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.commands;
+
+import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gmf.runtime.common.core.command.CommandResult;
+import org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLBaseItemSemanticEditPolicy;
+import org.eclipse.uml2.uml.NamedElement;
+import org.eclipse.uml2.uml.TimeObservation;
+
+/**
+ * @generated
+ */
+public class TimeObservationEventCreateCommand extends EditElementCommand {
+
+ /**
+ * @generated
+ */
+ protected final EObject source;
+
+ /**
+ * @generated
+ */
+ protected final EObject target;
+
+ /**
+ * @generated
+ */
+ public TimeObservationEventCreateCommand(CreateRelationshipRequest request, EObject source, EObject target) {
+ super(request.getLabel(), null, request);
+ this.source = source;
+ this.target = target;
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canExecute() {
+ if(source == null && target == null) {
+ return false;
+ }
+ if(source != null && false == source instanceof TimeObservation) {
+ return false;
+ }
+ if(target != null && false == target instanceof NamedElement) {
+ return false;
+ }
+ if(getSource() == null) {
+ return true; // link creation is in progress; source is not defined yet
+ }
+ // target may be null here but it's possible to check constraint
+ return UMLBaseItemSemanticEditPolicy.getLinkConstraints().canCreateTimeObservationEvent_4018(getSource(), getTarget());
+ }
+
+ /**
+ * @generated
+ */
+ protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+ if(!canExecute()) {
+ throw new ExecutionException("Invalid arguments in create link command"); //$NON-NLS-1$
+ }
+
+ if(getSource() != null && getTarget() != null) {
+ getSource().setEvent(getTarget());
+ }
+ return CommandResult.newOKCommandResult();
+
+ }
+
+ /**
+ * @generated
+ */
+ protected void setElementToEdit(EObject element) {
+ throw new UnsupportedOperationException();
+ }
+
+ /**
+ * @generated
+ */
+ protected TimeObservation getSource() {
+ return (TimeObservation)source;
+ }
+
+ /**
+ * @generated
+ */
+ protected NamedElement getTarget() {
+ return (NamedElement)target;
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/TimeObservationEventReorientCommand.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/TimeObservationEventReorientCommand.java
new file mode 100644
index 00000000000..acaf19e4523
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/TimeObservationEventReorientCommand.java
@@ -0,0 +1,160 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.commands;
+
+import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gmf.runtime.common.core.command.CommandResult;
+import org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientReferenceRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientRelationshipRequest;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLBaseItemSemanticEditPolicy;
+import org.eclipse.uml2.uml.NamedElement;
+import org.eclipse.uml2.uml.TimeObservation;
+
+/**
+ * @generated
+ */
+public class TimeObservationEventReorientCommand extends EditElementCommand {
+
+ /**
+ * @generated
+ */
+ private final int reorientDirection;
+
+ /**
+ * @generated
+ */
+ private final EObject referenceOwner;
+
+ /**
+ * @generated
+ */
+ private final EObject oldEnd;
+
+ /**
+ * @generated
+ */
+ private final EObject newEnd;
+
+ /**
+ * @generated
+ */
+ public TimeObservationEventReorientCommand(ReorientReferenceRelationshipRequest request) {
+ super(request.getLabel(), null, request);
+ reorientDirection = request.getDirection();
+ referenceOwner = request.getReferenceOwner();
+ oldEnd = request.getOldRelationshipEnd();
+ newEnd = request.getNewRelationshipEnd();
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canExecute() {
+ if(false == referenceOwner instanceof TimeObservation) {
+ return false;
+ }
+ if(reorientDirection == ReorientRelationshipRequest.REORIENT_SOURCE) {
+ return canReorientSource();
+ }
+ if(reorientDirection == ReorientRelationshipRequest.REORIENT_TARGET) {
+ return canReorientTarget();
+ }
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean canReorientSource() {
+ if(!(oldEnd instanceof NamedElement && newEnd instanceof TimeObservation)) {
+ return false;
+ }
+ return UMLBaseItemSemanticEditPolicy.getLinkConstraints().canExistTimeObservationEvent_4018(getNewSource(), getOldTarget());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean canReorientTarget() {
+ if(!(oldEnd instanceof NamedElement && newEnd instanceof NamedElement)) {
+ return false;
+ }
+ return UMLBaseItemSemanticEditPolicy.getLinkConstraints().canExistTimeObservationEvent_4018(getOldSource(), getNewTarget());
+ }
+
+ /**
+ * @generated
+ */
+ protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+ if(!canExecute()) {
+ throw new ExecutionException("Invalid arguments in reorient link command"); //$NON-NLS-1$
+ }
+ if(reorientDirection == ReorientRelationshipRequest.REORIENT_SOURCE) {
+ return reorientSource();
+ }
+ if(reorientDirection == ReorientRelationshipRequest.REORIENT_TARGET) {
+ return reorientTarget();
+ }
+ throw new IllegalStateException();
+ }
+
+ /**
+ * @generated
+ */
+ protected CommandResult reorientSource() throws ExecutionException {
+ getOldSource().setEvent(null);
+ getNewSource().setEvent(getOldTarget());
+ return CommandResult.newOKCommandResult(referenceOwner);
+ }
+
+ /**
+ * @generated
+ */
+ protected CommandResult reorientTarget() throws ExecutionException {
+ getOldSource().setEvent(getNewTarget());
+ return CommandResult.newOKCommandResult(referenceOwner);
+ }
+
+ /**
+ * @generated
+ */
+ protected TimeObservation getOldSource() {
+ return (TimeObservation)referenceOwner;
+ }
+
+ /**
+ * @generated
+ */
+ protected TimeObservation getNewSource() {
+ return (TimeObservation)newEnd;
+ }
+
+ /**
+ * @generated
+ */
+ protected NamedElement getOldTarget() {
+ return (NamedElement)oldEnd;
+ }
+
+ /**
+ * @generated
+ */
+ protected NamedElement getNewTarget() {
+ return (NamedElement)newEnd;
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/UsageCreateCommand.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/UsageCreateCommand.java
new file mode 100644
index 00000000000..3d4968e74d6
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/UsageCreateCommand.java
@@ -0,0 +1,168 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.commands;
+
+import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gmf.runtime.common.core.command.CommandResult;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ConfigureRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLBaseItemSemanticEditPolicy;
+import org.eclipse.papyrus.diagram.composite.providers.ElementInitializers;
+import org.eclipse.uml2.uml.NamedElement;
+import org.eclipse.uml2.uml.Package;
+import org.eclipse.uml2.uml.UMLFactory;
+import org.eclipse.uml2.uml.Usage;
+
+/**
+ * @generated
+ */
+public class UsageCreateCommand extends EditElementCommand {
+
+ /**
+ * @generated
+ */
+ protected final EObject source;
+
+ /**
+ * @generated
+ */
+ protected final EObject target;
+
+ /**
+ * @generated
+ */
+ protected Package container;
+
+ /**
+ * @generated
+ */
+ public UsageCreateCommand(CreateRelationshipRequest request, EObject source, EObject target) {
+ super(request.getLabel(), null, request);
+ this.source = source;
+ this.target = target;
+ container = deduceContainer(source, target);
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canExecute() {
+ if(source == null && target == null) {
+ return false;
+ }
+ if(source != null && false == source instanceof NamedElement) {
+ return false;
+ }
+ if(target != null && false == target instanceof NamedElement) {
+ return false;
+ }
+ if(getSource() == null) {
+ return true; // link creation is in progress; source is not defined yet
+ }
+ // target may be null here but it's possible to check constraint
+ if(getContainer() == null) {
+ return false;
+ }
+ return UMLBaseItemSemanticEditPolicy.getLinkConstraints().canCreateUsage_4008(getContainer(), getSource(), getTarget());
+ }
+
+ /**
+ * @generated
+ */
+ protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+ if(!canExecute()) {
+ throw new ExecutionException("Invalid arguments in create link command"); //$NON-NLS-1$
+ }
+
+ Usage newElement = UMLFactory.eINSTANCE.createUsage();
+ getContainer().getPackagedElements().add(newElement);
+ newElement.getClients().add(getSource());
+ newElement.getSuppliers().add(getTarget());
+ ElementInitializers.getInstance().init_Usage_4008(newElement);
+ doConfigure(newElement, monitor, info);
+ ((CreateElementRequest)getRequest()).setNewElement(newElement);
+ return CommandResult.newOKCommandResult(newElement);
+
+ }
+
+ /**
+ * @generated
+ */
+ protected void doConfigure(Usage newElement, IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+ IElementType elementType = ((CreateElementRequest)getRequest()).getElementType();
+ ConfigureRequest configureRequest = new ConfigureRequest(getEditingDomain(), newElement, elementType);
+ configureRequest.setClientContext(((CreateElementRequest)getRequest()).getClientContext());
+ configureRequest.addParameters(getRequest().getParameters());
+ configureRequest.setParameter(CreateRelationshipRequest.SOURCE, getSource());
+ configureRequest.setParameter(CreateRelationshipRequest.TARGET, getTarget());
+ ICommand configureCommand = elementType.getEditCommand(configureRequest);
+ if(configureCommand != null && configureCommand.canExecute()) {
+ configureCommand.execute(monitor, info);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setElementToEdit(EObject element) {
+ throw new UnsupportedOperationException();
+ }
+
+ /**
+ * @generated
+ */
+ protected NamedElement getSource() {
+ return (NamedElement)source;
+ }
+
+ /**
+ * @generated
+ */
+ protected NamedElement getTarget() {
+ return (NamedElement)target;
+ }
+
+ /**
+ * @generated
+ */
+ public Package getContainer() {
+ return container;
+ }
+
+ /**
+ * Default approach is to traverse ancestors of the source to find instance of container.
+ * Modify with appropriate logic.
+ *
+ * @generated
+ */
+ protected Package deduceContainer(EObject source, EObject target) {
+ // Find container element for the new link.
+ // Climb up by containment hierarchy starting from the source
+ // and return the first element that is instance of the container class.
+ for(EObject element = source; element != null; element = element.eContainer()) {
+ if(element instanceof Package) {
+ return (Package)element;
+ }
+ }
+ return null;
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/UsageReorientCommand.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/UsageReorientCommand.java
new file mode 100644
index 00000000000..a0513498201
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/UsageReorientCommand.java
@@ -0,0 +1,178 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.commands;
+
+import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gmf.runtime.common.core.command.CommandResult;
+import org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientRelationshipRequest;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLBaseItemSemanticEditPolicy;
+import org.eclipse.uml2.uml.NamedElement;
+import org.eclipse.uml2.uml.Package;
+import org.eclipse.uml2.uml.Usage;
+
+/**
+ * @generated
+ */
+public class UsageReorientCommand extends EditElementCommand {
+
+ /**
+ * @generated
+ */
+ private final int reorientDirection;
+
+ /**
+ * @generated
+ */
+ private final EObject oldEnd;
+
+ /**
+ * @generated
+ */
+ private final EObject newEnd;
+
+ /**
+ * @generated
+ */
+ public UsageReorientCommand(ReorientRelationshipRequest request) {
+ super(request.getLabel(), request.getRelationship(), request);
+ reorientDirection = request.getDirection();
+ oldEnd = request.getOldRelationshipEnd();
+ newEnd = request.getNewRelationshipEnd();
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canExecute() {
+ if(false == getElementToEdit() instanceof Usage) {
+ return false;
+ }
+ if(reorientDirection == ReorientRelationshipRequest.REORIENT_SOURCE) {
+ return canReorientSource();
+ }
+ if(reorientDirection == ReorientRelationshipRequest.REORIENT_TARGET) {
+ return canReorientTarget();
+ }
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean canReorientSource() {
+ if(!(oldEnd instanceof NamedElement && newEnd instanceof NamedElement)) {
+ return false;
+ }
+ if(getLink().getSuppliers().size() != 1) {
+ return false;
+ }
+ NamedElement target = (NamedElement)getLink().getSuppliers().get(0);
+ if(!(getLink().eContainer() instanceof Package)) {
+ return false;
+ }
+ Package container = (Package)getLink().eContainer();
+ return UMLBaseItemSemanticEditPolicy.getLinkConstraints().canExistUsage_4008(container, getLink(), getNewSource(), target);
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean canReorientTarget() {
+ if(!(oldEnd instanceof NamedElement && newEnd instanceof NamedElement)) {
+ return false;
+ }
+ if(getLink().getClients().size() != 1) {
+ return false;
+ }
+ NamedElement source = (NamedElement)getLink().getClients().get(0);
+ if(!(getLink().eContainer() instanceof Package)) {
+ return false;
+ }
+ Package container = (Package)getLink().eContainer();
+ return UMLBaseItemSemanticEditPolicy.getLinkConstraints().canExistUsage_4008(container, getLink(), source, getNewTarget());
+ }
+
+ /**
+ * @generated
+ */
+ protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+ if(!canExecute()) {
+ throw new ExecutionException("Invalid arguments in reorient link command"); //$NON-NLS-1$
+ }
+ if(reorientDirection == ReorientRelationshipRequest.REORIENT_SOURCE) {
+ return reorientSource();
+ }
+ if(reorientDirection == ReorientRelationshipRequest.REORIENT_TARGET) {
+ return reorientTarget();
+ }
+ throw new IllegalStateException();
+ }
+
+ /**
+ * @generated
+ */
+ protected CommandResult reorientSource() throws ExecutionException {
+ getLink().getClients().remove(getOldSource());
+ getLink().getClients().add(getNewSource());
+ return CommandResult.newOKCommandResult(getLink());
+ }
+
+ /**
+ * @generated
+ */
+ protected CommandResult reorientTarget() throws ExecutionException {
+ getLink().getSuppliers().remove(getOldTarget());
+ getLink().getSuppliers().add(getNewTarget());
+ return CommandResult.newOKCommandResult(getLink());
+ }
+
+ /**
+ * @generated
+ */
+ protected Usage getLink() {
+ return (Usage)getElementToEdit();
+ }
+
+ /**
+ * @generated
+ */
+ protected NamedElement getOldSource() {
+ return (NamedElement)oldEnd;
+ }
+
+ /**
+ * @generated
+ */
+ protected NamedElement getNewSource() {
+ return (NamedElement)newEnd;
+ }
+
+ /**
+ * @generated
+ */
+ protected NamedElement getOldTarget() {
+ return (NamedElement)oldEnd;
+ }
+
+ /**
+ * @generated
+ */
+ protected NamedElement getNewTarget() {
+ return (NamedElement)newEnd;
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/UseCaseCreateCommand.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/UseCaseCreateCommand.java
new file mode 100644
index 00000000000..6bb1dde22d8
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/UseCaseCreateCommand.java
@@ -0,0 +1,134 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.commands;
+
+import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gmf.runtime.common.core.command.CommandResult;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ConfigureRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.diagram.composite.providers.ElementInitializers;
+import org.eclipse.uml2.uml.Package;
+import org.eclipse.uml2.uml.UMLFactory;
+import org.eclipse.uml2.uml.UseCase;
+
+/**
+ * @generated
+ */
+public class UseCaseCreateCommand extends EditElementCommand {
+
+ /**
+ * @generated
+ */
+ private EClass eClass = null;
+
+ /**
+ * @generated
+ */
+ private EObject eObject = null;
+
+ /**
+ * @generated
+ */
+ public UseCaseCreateCommand(CreateElementRequest req, EObject eObject) {
+ super(req.getLabel(), null, req);
+ this.eObject = eObject;
+ this.eClass = eObject != null ? eObject.eClass() : null;
+ }
+
+ /**
+ * @generated
+ */
+ public static UseCaseCreateCommand create(CreateElementRequest req, EObject eObject) {
+ return new UseCaseCreateCommand(req, eObject);
+ }
+
+ /**
+ * @generated
+ */
+ public UseCaseCreateCommand(CreateElementRequest req) {
+ super(req.getLabel(), null, req);
+ }
+
+ /**
+ * FIXME: replace with setElementToEdit()
+ *
+ * @generated
+ */
+ protected EObject getElementToEdit() {
+
+ EObject container = ((CreateElementRequest)getRequest()).getContainer();
+ if(container instanceof View) {
+ container = ((View)container).getElement();
+ }
+ if(container != null) {
+ return container;
+ }
+ return eObject;
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canExecute() {
+
+ // Creation constraint for TopLevelNodes
+ if(!(getElementToEdit() instanceof Package)) {
+ return false;
+ }
+
+ return true;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+
+ UseCase newElement = UMLFactory.eINSTANCE.createUseCase();
+
+ Package owner = (Package)getElementToEdit();
+ owner.getPackagedElements().add(newElement);
+
+ ElementInitializers.getInstance().init_UseCase_2082(newElement);
+
+ doConfigure(newElement, monitor, info);
+
+ ((CreateElementRequest)getRequest()).setNewElement(newElement);
+ return CommandResult.newOKCommandResult(newElement);
+ }
+
+ /**
+ * @generated
+ */
+ protected void doConfigure(UseCase newElement, IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+ IElementType elementType = ((CreateElementRequest)getRequest()).getElementType();
+ ConfigureRequest configureRequest = new ConfigureRequest(getEditingDomain(), newElement, elementType);
+ configureRequest.setClientContext(((CreateElementRequest)getRequest()).getClientContext());
+ configureRequest.addParameters(getRequest().getParameters());
+ ICommand configureCommand = elementType.getEditCommand(configureRequest);
+ if(configureCommand != null && configureCommand.canExecute()) {
+ configureCommand.execute(monitor, info);
+ }
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/UseCaseCreateCommandCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/UseCaseCreateCommandCN.java
new file mode 100644
index 00000000000..c063b3c7a85
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/commands/UseCaseCreateCommandCN.java
@@ -0,0 +1,129 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.commands;
+
+import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gmf.runtime.common.core.command.CommandResult;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ConfigureRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.diagram.composite.providers.ElementInitializers;
+import org.eclipse.uml2.uml.Class;
+import org.eclipse.uml2.uml.UMLFactory;
+import org.eclipse.uml2.uml.UseCase;
+
+/**
+ * @generated
+ */
+public class UseCaseCreateCommandCN extends EditElementCommand {
+
+ /**
+ * @generated
+ */
+ private EClass eClass = null;
+
+ /**
+ * @generated
+ */
+ private EObject eObject = null;
+
+ /**
+ * @generated
+ */
+ public UseCaseCreateCommandCN(CreateElementRequest req, EObject eObject) {
+ super(req.getLabel(), null, req);
+ this.eObject = eObject;
+ this.eClass = eObject != null ? eObject.eClass() : null;
+ }
+
+ /**
+ * @generated
+ */
+ public static UseCaseCreateCommandCN create(CreateElementRequest req, EObject eObject) {
+ return new UseCaseCreateCommandCN(req, eObject);
+ }
+
+ /**
+ * @generated
+ */
+ public UseCaseCreateCommandCN(CreateElementRequest req) {
+ super(req.getLabel(), null, req);
+ }
+
+ /**
+ * FIXME: replace with setElementToEdit()
+ *
+ * @generated
+ */
+ protected EObject getElementToEdit() {
+
+ EObject container = ((CreateElementRequest)getRequest()).getContainer();
+ if(container instanceof View) {
+ container = ((View)container).getElement();
+ }
+ if(container != null) {
+ return container;
+ }
+ return eObject;
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canExecute() {
+
+ return true;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+
+ UseCase newElement = UMLFactory.eINSTANCE.createUseCase();
+
+ Class owner = (Class)getElementToEdit();
+ owner.getNestedClassifiers().add(newElement);
+
+ ElementInitializers.getInstance().init_UseCase_3096(newElement);
+
+ doConfigure(newElement, monitor, info);
+
+ ((CreateElementRequest)getRequest()).setNewElement(newElement);
+ return CommandResult.newOKCommandResult(newElement);
+ }
+
+ /**
+ * @generated
+ */
+ protected void doConfigure(UseCase newElement, IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+ IElementType elementType = ((CreateElementRequest)getRequest()).getElementType();
+ ConfigureRequest configureRequest = new ConfigureRequest(getEditingDomain(), newElement, elementType);
+ configureRequest.setClientContext(((CreateElementRequest)getRequest()).getClientContext());
+ configureRequest.addParameters(getRequest().getParameters());
+ ICommand configureCommand = elementType.getEditCommand(configureRequest);
+ if(configureCommand != null && configureCommand.canExecute()) {
+ configureCommand.execute(monitor, info);
+ }
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/AbstractionEditHelper.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/AbstractionEditHelper.java
new file mode 100644
index 00000000000..60b4ddc3584
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/AbstractionEditHelper.java
@@ -0,0 +1,22 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.helpers;
+
+import org.eclipse.papyrus.diagram.common.helper.UMLBaseEditHelper;
+
+/**
+ * @generated
+ */
+public class AbstractionEditHelper extends UMLBaseEditHelper {
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/ActivityEditHelper.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/ActivityEditHelper.java
new file mode 100644
index 00000000000..68306fb719a
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/ActivityEditHelper.java
@@ -0,0 +1,22 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.helpers;
+
+import org.eclipse.papyrus.diagram.common.helper.UMLBaseEditHelper;
+
+/**
+ * @generated
+ */
+public class ActivityEditHelper extends UMLBaseEditHelper {
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/ActorEditHelper.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/ActorEditHelper.java
new file mode 100644
index 00000000000..093aaefbb83
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/ActorEditHelper.java
@@ -0,0 +1,22 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.helpers;
+
+import org.eclipse.papyrus.diagram.common.helper.UMLBaseEditHelper;
+
+/**
+ * @generated
+ */
+public class ActorEditHelper extends UMLBaseEditHelper {
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/AnyReceiveEventEditHelper.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/AnyReceiveEventEditHelper.java
new file mode 100644
index 00000000000..3ba5b853ab5
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/AnyReceiveEventEditHelper.java
@@ -0,0 +1,22 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.helpers;
+
+import org.eclipse.papyrus.diagram.common.helper.UMLBaseEditHelper;
+
+/**
+ * @generated
+ */
+public class AnyReceiveEventEditHelper extends UMLBaseEditHelper {
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/ArtifactEditHelper.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/ArtifactEditHelper.java
new file mode 100644
index 00000000000..5dacaa7fa8b
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/ArtifactEditHelper.java
@@ -0,0 +1,22 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.helpers;
+
+import org.eclipse.papyrus.diagram.common.helper.UMLBaseEditHelper;
+
+/**
+ * @generated
+ */
+public class ArtifactEditHelper extends UMLBaseEditHelper {
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/CallEventEditHelper.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/CallEventEditHelper.java
new file mode 100644
index 00000000000..f346f25eb50
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/CallEventEditHelper.java
@@ -0,0 +1,22 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.helpers;
+
+import org.eclipse.papyrus.diagram.common.helper.UMLBaseEditHelper;
+
+/**
+ * @generated
+ */
+public class CallEventEditHelper extends UMLBaseEditHelper {
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/ChangeEventEditHelper.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/ChangeEventEditHelper.java
new file mode 100644
index 00000000000..395be918a8d
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/ChangeEventEditHelper.java
@@ -0,0 +1,22 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.helpers;
+
+import org.eclipse.papyrus.diagram.common.helper.UMLBaseEditHelper;
+
+/**
+ * @generated
+ */
+public class ChangeEventEditHelper extends UMLBaseEditHelper {
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/ClassEditHelper.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/ClassEditHelper.java
new file mode 100644
index 00000000000..cba8a210e98
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/ClassEditHelper.java
@@ -0,0 +1,22 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.helpers;
+
+import org.eclipse.papyrus.diagram.common.helper.UMLBaseEditHelper;
+
+/**
+ * @generated
+ */
+public class ClassEditHelper extends UMLBaseEditHelper {
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/CollaborationEditHelper.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/CollaborationEditHelper.java
new file mode 100644
index 00000000000..71112ef40b7
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/CollaborationEditHelper.java
@@ -0,0 +1,22 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.helpers;
+
+import org.eclipse.papyrus.diagram.common.helper.UMLBaseEditHelper;
+
+/**
+ * @generated
+ */
+public class CollaborationEditHelper extends UMLBaseEditHelper {
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/CollaborationRoleEditHelper.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/CollaborationRoleEditHelper.java
new file mode 100644
index 00000000000..036fc7d67cb
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/CollaborationRoleEditHelper.java
@@ -0,0 +1,22 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.helpers;
+
+import org.eclipse.papyrus.diagram.common.helper.UMLBaseEditHelper;
+
+/**
+ * @generated
+ */
+public class CollaborationRoleEditHelper extends UMLBaseEditHelper {
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/CollaborationUseEditHelper.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/CollaborationUseEditHelper.java
new file mode 100644
index 00000000000..ce644ae5a37
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/CollaborationUseEditHelper.java
@@ -0,0 +1,22 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.helpers;
+
+import org.eclipse.papyrus.diagram.common.helper.UMLBaseEditHelper;
+
+/**
+ * @generated
+ */
+public class CollaborationUseEditHelper extends UMLBaseEditHelper {
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/CommentEditHelper.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/CommentEditHelper.java
new file mode 100644
index 00000000000..b63e63d1bf5
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/CommentEditHelper.java
@@ -0,0 +1,22 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.helpers;
+
+import org.eclipse.papyrus.diagram.common.helper.UMLBaseEditHelper;
+
+/**
+ * @generated
+ */
+public class CommentEditHelper extends UMLBaseEditHelper {
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/ComponentEditHelper.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/ComponentEditHelper.java
new file mode 100644
index 00000000000..c889caf681f
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/ComponentEditHelper.java
@@ -0,0 +1,22 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.helpers;
+
+import org.eclipse.papyrus.diagram.common.helper.UMLBaseEditHelper;
+
+/**
+ * @generated
+ */
+public class ComponentEditHelper extends UMLBaseEditHelper {
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/ComponentRealizationEditHelper.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/ComponentRealizationEditHelper.java
new file mode 100644
index 00000000000..92cf0ef6127
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/ComponentRealizationEditHelper.java
@@ -0,0 +1,22 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.helpers;
+
+import org.eclipse.papyrus.diagram.common.helper.UMLBaseEditHelper;
+
+/**
+ * @generated
+ */
+public class ComponentRealizationEditHelper extends UMLBaseEditHelper {
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/ConnectorEditHelper.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/ConnectorEditHelper.java
new file mode 100644
index 00000000000..766f7b4a7b4
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/ConnectorEditHelper.java
@@ -0,0 +1,22 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.helpers;
+
+import org.eclipse.papyrus.diagram.common.helper.UMLBaseEditHelper;
+
+/**
+ * @generated
+ */
+public class ConnectorEditHelper extends UMLBaseEditHelper {
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/ConstraintEditHelper.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/ConstraintEditHelper.java
new file mode 100644
index 00000000000..d2bf65bd653
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/ConstraintEditHelper.java
@@ -0,0 +1,22 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.helpers;
+
+import org.eclipse.papyrus.diagram.common.helper.UMLBaseEditHelper;
+
+/**
+ * @generated
+ */
+public class ConstraintEditHelper extends UMLBaseEditHelper {
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/CreationEventEditHelper.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/CreationEventEditHelper.java
new file mode 100644
index 00000000000..812c4c98f30
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/CreationEventEditHelper.java
@@ -0,0 +1,22 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.helpers;
+
+import org.eclipse.papyrus.diagram.common.helper.UMLBaseEditHelper;
+
+/**
+ * @generated
+ */
+public class CreationEventEditHelper extends UMLBaseEditHelper {
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/DataTypeEditHelper.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/DataTypeEditHelper.java
new file mode 100644
index 00000000000..fee1c0c211b
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/DataTypeEditHelper.java
@@ -0,0 +1,22 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.helpers;
+
+import org.eclipse.papyrus.diagram.common.helper.UMLBaseEditHelper;
+
+/**
+ * @generated
+ */
+public class DataTypeEditHelper extends UMLBaseEditHelper {
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/DependencyEditHelper.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/DependencyEditHelper.java
new file mode 100644
index 00000000000..2b94806ee96
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/DependencyEditHelper.java
@@ -0,0 +1,22 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.helpers;
+
+import org.eclipse.papyrus.diagram.common.helper.UMLBaseEditHelper;
+
+/**
+ * @generated
+ */
+public class DependencyEditHelper extends UMLBaseEditHelper {
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/DeploymentEditHelper.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/DeploymentEditHelper.java
new file mode 100644
index 00000000000..c350b8c7c48
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/DeploymentEditHelper.java
@@ -0,0 +1,22 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.helpers;
+
+import org.eclipse.papyrus.diagram.common.helper.UMLBaseEditHelper;
+
+/**
+ * @generated
+ */
+public class DeploymentEditHelper extends UMLBaseEditHelper {
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/DeploymentSpecificationEditHelper.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/DeploymentSpecificationEditHelper.java
new file mode 100644
index 00000000000..0c3658a7ab0
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/DeploymentSpecificationEditHelper.java
@@ -0,0 +1,22 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.helpers;
+
+import org.eclipse.papyrus.diagram.common.helper.UMLBaseEditHelper;
+
+/**
+ * @generated
+ */
+public class DeploymentSpecificationEditHelper extends UMLBaseEditHelper {
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/DestructionEventEditHelper.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/DestructionEventEditHelper.java
new file mode 100644
index 00000000000..6522e020699
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/DestructionEventEditHelper.java
@@ -0,0 +1,22 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.helpers;
+
+import org.eclipse.papyrus.diagram.common.helper.UMLBaseEditHelper;
+
+/**
+ * @generated
+ */
+public class DestructionEventEditHelper extends UMLBaseEditHelper {
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/DeviceEditHelper.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/DeviceEditHelper.java
new file mode 100644
index 00000000000..9c5a171f9b4
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/DeviceEditHelper.java
@@ -0,0 +1,22 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.helpers;
+
+import org.eclipse.papyrus.diagram.common.helper.UMLBaseEditHelper;
+
+/**
+ * @generated
+ */
+public class DeviceEditHelper extends UMLBaseEditHelper {
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/DurationEditHelper.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/DurationEditHelper.java
new file mode 100644
index 00000000000..636cbfc1d1f
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/DurationEditHelper.java
@@ -0,0 +1,22 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.helpers;
+
+import org.eclipse.papyrus.diagram.common.helper.UMLBaseEditHelper;
+
+/**
+ * @generated
+ */
+public class DurationEditHelper extends UMLBaseEditHelper {
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/DurationIntervalEditHelper.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/DurationIntervalEditHelper.java
new file mode 100644
index 00000000000..1ef164dd22a
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/DurationIntervalEditHelper.java
@@ -0,0 +1,22 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.helpers;
+
+import org.eclipse.papyrus.diagram.common.helper.UMLBaseEditHelper;
+
+/**
+ * @generated
+ */
+public class DurationIntervalEditHelper extends UMLBaseEditHelper {
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/DurationObservationEditHelper.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/DurationObservationEditHelper.java
new file mode 100644
index 00000000000..56d223ea450
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/DurationObservationEditHelper.java
@@ -0,0 +1,22 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.helpers;
+
+import org.eclipse.papyrus.diagram.common.helper.UMLBaseEditHelper;
+
+/**
+ * @generated
+ */
+public class DurationObservationEditHelper extends UMLBaseEditHelper {
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/EnumerationEditHelper.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/EnumerationEditHelper.java
new file mode 100644
index 00000000000..497b5e2f0be
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/EnumerationEditHelper.java
@@ -0,0 +1,22 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.helpers;
+
+import org.eclipse.papyrus.diagram.common.helper.UMLBaseEditHelper;
+
+/**
+ * @generated
+ */
+public class EnumerationEditHelper extends UMLBaseEditHelper {
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/EnumerationLiteralEditHelper.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/EnumerationLiteralEditHelper.java
new file mode 100644
index 00000000000..573704bf4b9
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/EnumerationLiteralEditHelper.java
@@ -0,0 +1,22 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.helpers;
+
+import org.eclipse.papyrus.diagram.common.helper.UMLBaseEditHelper;
+
+/**
+ * @generated
+ */
+public class EnumerationLiteralEditHelper extends UMLBaseEditHelper {
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/ExecutionEnvironmentEditHelper.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/ExecutionEnvironmentEditHelper.java
new file mode 100644
index 00000000000..22485886a5c
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/ExecutionEnvironmentEditHelper.java
@@ -0,0 +1,22 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.helpers;
+
+import org.eclipse.papyrus.diagram.common.helper.UMLBaseEditHelper;
+
+/**
+ * @generated
+ */
+public class ExecutionEnvironmentEditHelper extends UMLBaseEditHelper {
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/ExecutionEventEditHelper.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/ExecutionEventEditHelper.java
new file mode 100644
index 00000000000..6f44374427b
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/ExecutionEventEditHelper.java
@@ -0,0 +1,22 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.helpers;
+
+import org.eclipse.papyrus.diagram.common.helper.UMLBaseEditHelper;
+
+/**
+ * @generated
+ */
+public class ExecutionEventEditHelper extends UMLBaseEditHelper {
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/ExpressionEditHelper.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/ExpressionEditHelper.java
new file mode 100644
index 00000000000..1729edcc697
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/ExpressionEditHelper.java
@@ -0,0 +1,22 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.helpers;
+
+import org.eclipse.papyrus.diagram.common.helper.UMLBaseEditHelper;
+
+/**
+ * @generated
+ */
+public class ExpressionEditHelper extends UMLBaseEditHelper {
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/FunctionBehaviorEditHelper.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/FunctionBehaviorEditHelper.java
new file mode 100644
index 00000000000..dd9fd451e0b
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/FunctionBehaviorEditHelper.java
@@ -0,0 +1,22 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.helpers;
+
+import org.eclipse.papyrus.diagram.common.helper.UMLBaseEditHelper;
+
+/**
+ * @generated
+ */
+public class FunctionBehaviorEditHelper extends UMLBaseEditHelper {
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/GeneralizationEditHelper.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/GeneralizationEditHelper.java
new file mode 100644
index 00000000000..66cca2c1339
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/GeneralizationEditHelper.java
@@ -0,0 +1,22 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.helpers;
+
+import org.eclipse.papyrus.diagram.common.helper.UMLBaseEditHelper;
+
+/**
+ * @generated
+ */
+public class GeneralizationEditHelper extends UMLBaseEditHelper {
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/InformationFlowEditHelper.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/InformationFlowEditHelper.java
new file mode 100644
index 00000000000..359e8f2229f
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/InformationFlowEditHelper.java
@@ -0,0 +1,22 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.helpers;
+
+import org.eclipse.papyrus.diagram.common.helper.UMLBaseEditHelper;
+
+/**
+ * @generated
+ */
+public class InformationFlowEditHelper extends UMLBaseEditHelper {
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/InformationItemEditHelper.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/InformationItemEditHelper.java
new file mode 100644
index 00000000000..e48d0a78fbf
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/InformationItemEditHelper.java
@@ -0,0 +1,22 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.helpers;
+
+import org.eclipse.papyrus.diagram.common.helper.UMLBaseEditHelper;
+
+/**
+ * @generated
+ */
+public class InformationItemEditHelper extends UMLBaseEditHelper {
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/InstanceValueEditHelper.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/InstanceValueEditHelper.java
new file mode 100644
index 00000000000..24676cd7243
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/InstanceValueEditHelper.java
@@ -0,0 +1,22 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.helpers;
+
+import org.eclipse.papyrus.diagram.common.helper.UMLBaseEditHelper;
+
+/**
+ * @generated
+ */
+public class InstanceValueEditHelper extends UMLBaseEditHelper {
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/InteractionConstraintEditHelper.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/InteractionConstraintEditHelper.java
new file mode 100644
index 00000000000..8b3e5f5493e
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/InteractionConstraintEditHelper.java
@@ -0,0 +1,22 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.helpers;
+
+import org.eclipse.papyrus.diagram.common.helper.UMLBaseEditHelper;
+
+/**
+ * @generated
+ */
+public class InteractionConstraintEditHelper extends UMLBaseEditHelper {
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/InteractionEditHelper.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/InteractionEditHelper.java
new file mode 100644
index 00000000000..f5776aa0acb
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/InteractionEditHelper.java
@@ -0,0 +1,22 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.helpers;
+
+import org.eclipse.papyrus.diagram.common.helper.UMLBaseEditHelper;
+
+/**
+ * @generated
+ */
+public class InteractionEditHelper extends UMLBaseEditHelper {
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/InterfaceEditHelper.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/InterfaceEditHelper.java
new file mode 100644
index 00000000000..523d77447bc
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/InterfaceEditHelper.java
@@ -0,0 +1,22 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.helpers;
+
+import org.eclipse.papyrus.diagram.common.helper.UMLBaseEditHelper;
+
+/**
+ * @generated
+ */
+public class InterfaceEditHelper extends UMLBaseEditHelper {
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/InterfaceRealizationEditHelper.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/InterfaceRealizationEditHelper.java
new file mode 100644
index 00000000000..b3e05cb1071
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/InterfaceRealizationEditHelper.java
@@ -0,0 +1,22 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.helpers;
+
+import org.eclipse.papyrus.diagram.common.helper.UMLBaseEditHelper;
+
+/**
+ * @generated
+ */
+public class InterfaceRealizationEditHelper extends UMLBaseEditHelper {
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/IntervalConstraintEditHelper.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/IntervalConstraintEditHelper.java
new file mode 100644
index 00000000000..7bca7c5987b
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/IntervalConstraintEditHelper.java
@@ -0,0 +1,22 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.helpers;
+
+import org.eclipse.papyrus.diagram.common.helper.UMLBaseEditHelper;
+
+/**
+ * @generated
+ */
+public class IntervalConstraintEditHelper extends UMLBaseEditHelper {
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/IntervalEditHelper.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/IntervalEditHelper.java
new file mode 100644
index 00000000000..babcc9494b5
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/IntervalEditHelper.java
@@ -0,0 +1,22 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.helpers;
+
+import org.eclipse.papyrus.diagram.common.helper.UMLBaseEditHelper;
+
+/**
+ * @generated
+ */
+public class IntervalEditHelper extends UMLBaseEditHelper {
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/LiteralBooleanEditHelper.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/LiteralBooleanEditHelper.java
new file mode 100644
index 00000000000..6814053c634
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/LiteralBooleanEditHelper.java
@@ -0,0 +1,22 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.helpers;
+
+import org.eclipse.papyrus.diagram.common.helper.UMLBaseEditHelper;
+
+/**
+ * @generated
+ */
+public class LiteralBooleanEditHelper extends UMLBaseEditHelper {
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/LiteralIntegerEditHelper.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/LiteralIntegerEditHelper.java
new file mode 100644
index 00000000000..bf33bc3e4e5
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/LiteralIntegerEditHelper.java
@@ -0,0 +1,22 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.helpers;
+
+import org.eclipse.papyrus.diagram.common.helper.UMLBaseEditHelper;
+
+/**
+ * @generated
+ */
+public class LiteralIntegerEditHelper extends UMLBaseEditHelper {
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/LiteralNullEditHelper.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/LiteralNullEditHelper.java
new file mode 100644
index 00000000000..29b37dc2073
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/LiteralNullEditHelper.java
@@ -0,0 +1,22 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.helpers;
+
+import org.eclipse.papyrus.diagram.common.helper.UMLBaseEditHelper;
+
+/**
+ * @generated
+ */
+public class LiteralNullEditHelper extends UMLBaseEditHelper {
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/LiteralStringEditHelper.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/LiteralStringEditHelper.java
new file mode 100644
index 00000000000..205f89f5e24
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/LiteralStringEditHelper.java
@@ -0,0 +1,22 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.helpers;
+
+import org.eclipse.papyrus.diagram.common.helper.UMLBaseEditHelper;
+
+/**
+ * @generated
+ */
+public class LiteralStringEditHelper extends UMLBaseEditHelper {
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/LiteralUnlimitedNaturalEditHelper.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/LiteralUnlimitedNaturalEditHelper.java
new file mode 100644
index 00000000000..ef8d3fbe4dd
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/LiteralUnlimitedNaturalEditHelper.java
@@ -0,0 +1,22 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.helpers;
+
+import org.eclipse.papyrus.diagram.common.helper.UMLBaseEditHelper;
+
+/**
+ * @generated
+ */
+public class LiteralUnlimitedNaturalEditHelper extends UMLBaseEditHelper {
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/ManifestationEditHelper.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/ManifestationEditHelper.java
new file mode 100644
index 00000000000..a439460b54a
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/ManifestationEditHelper.java
@@ -0,0 +1,22 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.helpers;
+
+import org.eclipse.papyrus.diagram.common.helper.UMLBaseEditHelper;
+
+/**
+ * @generated
+ */
+public class ManifestationEditHelper extends UMLBaseEditHelper {
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/NodeEditHelper.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/NodeEditHelper.java
new file mode 100644
index 00000000000..c9c600f0081
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/NodeEditHelper.java
@@ -0,0 +1,22 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.helpers;
+
+import org.eclipse.papyrus.diagram.common.helper.UMLBaseEditHelper;
+
+/**
+ * @generated
+ */
+public class NodeEditHelper extends UMLBaseEditHelper {
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/OpaqueBehaviorEditHelper.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/OpaqueBehaviorEditHelper.java
new file mode 100644
index 00000000000..75a7c30db46
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/OpaqueBehaviorEditHelper.java
@@ -0,0 +1,22 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.helpers;
+
+import org.eclipse.papyrus.diagram.common.helper.UMLBaseEditHelper;
+
+/**
+ * @generated
+ */
+public class OpaqueBehaviorEditHelper extends UMLBaseEditHelper {
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/OpaqueExpressionEditHelper.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/OpaqueExpressionEditHelper.java
new file mode 100644
index 00000000000..fc79c09e84d
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/OpaqueExpressionEditHelper.java
@@ -0,0 +1,22 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.helpers;
+
+import org.eclipse.papyrus.diagram.common.helper.UMLBaseEditHelper;
+
+/**
+ * @generated
+ */
+public class OpaqueExpressionEditHelper extends UMLBaseEditHelper {
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/PackageEditHelper.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/PackageEditHelper.java
new file mode 100644
index 00000000000..943b6897878
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/PackageEditHelper.java
@@ -0,0 +1,22 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.helpers;
+
+import org.eclipse.papyrus.diagram.common.helper.UMLBaseEditHelper;
+
+/**
+ * @generated
+ */
+public class PackageEditHelper extends UMLBaseEditHelper {
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/ParameterEditHelper.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/ParameterEditHelper.java
new file mode 100644
index 00000000000..93e2ddde4c6
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/ParameterEditHelper.java
@@ -0,0 +1,22 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.helpers;
+
+import org.eclipse.papyrus.diagram.common.helper.UMLBaseEditHelper;
+
+/**
+ * @generated
+ */
+public class ParameterEditHelper extends UMLBaseEditHelper {
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/PortEditHelper.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/PortEditHelper.java
new file mode 100644
index 00000000000..e6133302ce2
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/PortEditHelper.java
@@ -0,0 +1,22 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.helpers;
+
+import org.eclipse.papyrus.diagram.common.helper.UMLBaseEditHelper;
+
+/**
+ * @generated
+ */
+public class PortEditHelper extends UMLBaseEditHelper {
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/PrimitiveTypeEditHelper.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/PrimitiveTypeEditHelper.java
new file mode 100644
index 00000000000..aec6fe06e40
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/PrimitiveTypeEditHelper.java
@@ -0,0 +1,22 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.helpers;
+
+import org.eclipse.papyrus.diagram.common.helper.UMLBaseEditHelper;
+
+/**
+ * @generated
+ */
+public class PrimitiveTypeEditHelper extends UMLBaseEditHelper {
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/PropertyEditHelper.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/PropertyEditHelper.java
new file mode 100644
index 00000000000..04b5d0fbf25
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/PropertyEditHelper.java
@@ -0,0 +1,22 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.helpers;
+
+import org.eclipse.papyrus.diagram.common.helper.UMLBaseEditHelper;
+
+/**
+ * @generated
+ */
+public class PropertyEditHelper extends UMLBaseEditHelper {
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/ProtocolStateMachineEditHelper.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/ProtocolStateMachineEditHelper.java
new file mode 100644
index 00000000000..fb8ef8ac32d
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/ProtocolStateMachineEditHelper.java
@@ -0,0 +1,22 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.helpers;
+
+import org.eclipse.papyrus.diagram.common.helper.UMLBaseEditHelper;
+
+/**
+ * @generated
+ */
+public class ProtocolStateMachineEditHelper extends UMLBaseEditHelper {
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/RealizationEditHelper.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/RealizationEditHelper.java
new file mode 100644
index 00000000000..8a36f75b051
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/RealizationEditHelper.java
@@ -0,0 +1,22 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.helpers;
+
+import org.eclipse.papyrus.diagram.common.helper.UMLBaseEditHelper;
+
+/**
+ * @generated
+ */
+public class RealizationEditHelper extends UMLBaseEditHelper {
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/ReceptionEditHelper.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/ReceptionEditHelper.java
new file mode 100644
index 00000000000..8d41317a960
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/ReceptionEditHelper.java
@@ -0,0 +1,22 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.helpers;
+
+import org.eclipse.papyrus.diagram.common.helper.UMLBaseEditHelper;
+
+/**
+ * @generated
+ */
+public class ReceptionEditHelper extends UMLBaseEditHelper {
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/RoleBindingEditHelper.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/RoleBindingEditHelper.java
new file mode 100644
index 00000000000..31d8e851b88
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/RoleBindingEditHelper.java
@@ -0,0 +1,22 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.helpers;
+
+import org.eclipse.papyrus.diagram.common.helper.UMLBaseEditHelper;
+
+/**
+ * @generated
+ */
+public class RoleBindingEditHelper extends UMLBaseEditHelper {
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/SendOperationEventEditHelper.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/SendOperationEventEditHelper.java
new file mode 100644
index 00000000000..81dcdcee970
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/SendOperationEventEditHelper.java
@@ -0,0 +1,22 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.helpers;
+
+import org.eclipse.papyrus.diagram.common.helper.UMLBaseEditHelper;
+
+/**
+ * @generated
+ */
+public class SendOperationEventEditHelper extends UMLBaseEditHelper {
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/SendSignalEventEditHelper.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/SendSignalEventEditHelper.java
new file mode 100644
index 00000000000..09029cfd4f7
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/SendSignalEventEditHelper.java
@@ -0,0 +1,22 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.helpers;
+
+import org.eclipse.papyrus.diagram.common.helper.UMLBaseEditHelper;
+
+/**
+ * @generated
+ */
+public class SendSignalEventEditHelper extends UMLBaseEditHelper {
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/SignalEditHelper.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/SignalEditHelper.java
new file mode 100644
index 00000000000..7fd8b384716
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/SignalEditHelper.java
@@ -0,0 +1,22 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.helpers;
+
+import org.eclipse.papyrus.diagram.common.helper.UMLBaseEditHelper;
+
+/**
+ * @generated
+ */
+public class SignalEditHelper extends UMLBaseEditHelper {
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/SignalEventEditHelper.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/SignalEventEditHelper.java
new file mode 100644
index 00000000000..33a2160433e
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/SignalEventEditHelper.java
@@ -0,0 +1,22 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.helpers;
+
+import org.eclipse.papyrus.diagram.common.helper.UMLBaseEditHelper;
+
+/**
+ * @generated
+ */
+public class SignalEventEditHelper extends UMLBaseEditHelper {
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/StateMachineEditHelper.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/StateMachineEditHelper.java
new file mode 100644
index 00000000000..03fbe2fb879
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/StateMachineEditHelper.java
@@ -0,0 +1,22 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.helpers;
+
+import org.eclipse.papyrus.diagram.common.helper.UMLBaseEditHelper;
+
+/**
+ * @generated
+ */
+public class StateMachineEditHelper extends UMLBaseEditHelper {
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/StringExpressionEditHelper.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/StringExpressionEditHelper.java
new file mode 100644
index 00000000000..7230f416a60
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/StringExpressionEditHelper.java
@@ -0,0 +1,22 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.helpers;
+
+import org.eclipse.papyrus.diagram.common.helper.UMLBaseEditHelper;
+
+/**
+ * @generated
+ */
+public class StringExpressionEditHelper extends UMLBaseEditHelper {
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/SubstitutionEditHelper.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/SubstitutionEditHelper.java
new file mode 100644
index 00000000000..33c9073a645
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/SubstitutionEditHelper.java
@@ -0,0 +1,22 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.helpers;
+
+import org.eclipse.papyrus.diagram.common.helper.UMLBaseEditHelper;
+
+/**
+ * @generated
+ */
+public class SubstitutionEditHelper extends UMLBaseEditHelper {
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/TimeConstraintEditHelper.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/TimeConstraintEditHelper.java
new file mode 100644
index 00000000000..e11eb255699
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/TimeConstraintEditHelper.java
@@ -0,0 +1,22 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.helpers;
+
+import org.eclipse.papyrus.diagram.common.helper.UMLBaseEditHelper;
+
+/**
+ * @generated
+ */
+public class TimeConstraintEditHelper extends UMLBaseEditHelper {
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/TimeEventEditHelper.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/TimeEventEditHelper.java
new file mode 100644
index 00000000000..f49567c4dd1
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/TimeEventEditHelper.java
@@ -0,0 +1,22 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.helpers;
+
+import org.eclipse.papyrus.diagram.common.helper.UMLBaseEditHelper;
+
+/**
+ * @generated
+ */
+public class TimeEventEditHelper extends UMLBaseEditHelper {
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/TimeExpressionEditHelper.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/TimeExpressionEditHelper.java
new file mode 100644
index 00000000000..a4dfb775320
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/TimeExpressionEditHelper.java
@@ -0,0 +1,22 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.helpers;
+
+import org.eclipse.papyrus.diagram.common.helper.UMLBaseEditHelper;
+
+/**
+ * @generated
+ */
+public class TimeExpressionEditHelper extends UMLBaseEditHelper {
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/TimeIntervalEditHelper.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/TimeIntervalEditHelper.java
new file mode 100644
index 00000000000..7f741819d4f
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/TimeIntervalEditHelper.java
@@ -0,0 +1,22 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.helpers;
+
+import org.eclipse.papyrus.diagram.common.helper.UMLBaseEditHelper;
+
+/**
+ * @generated
+ */
+public class TimeIntervalEditHelper extends UMLBaseEditHelper {
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/TimeObservationEditHelper.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/TimeObservationEditHelper.java
new file mode 100644
index 00000000000..3875ccc0fa5
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/TimeObservationEditHelper.java
@@ -0,0 +1,22 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.helpers;
+
+import org.eclipse.papyrus.diagram.common.helper.UMLBaseEditHelper;
+
+/**
+ * @generated
+ */
+public class TimeObservationEditHelper extends UMLBaseEditHelper {
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/UMLBaseEditHelper.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/UMLBaseEditHelper.java
new file mode 100644
index 00000000000..e4a94236d98
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/UMLBaseEditHelper.java
@@ -0,0 +1,99 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.helpers;
+
+import org.eclipse.gmf.runtime.common.core.command.CompositeCommand;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.emf.type.core.ElementTypeRegistry;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.emf.type.core.edithelper.AbstractEditHelper;
+import org.eclipse.gmf.runtime.emf.type.core.edithelper.IEditHelperAdvice;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyReferenceRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.IEditCommandRequest;
+
+/**
+ * @generated
+ */
+public class UMLBaseEditHelper extends AbstractEditHelper {
+
+ /**
+ * @generated
+ */
+ public static final String EDIT_POLICY_COMMAND = "edit policy command"; //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ public static final String CONTEXT_ELEMENT_TYPE = "context element type"; //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ protected IEditHelperAdvice[] getEditHelperAdvice(IEditCommandRequest req) {
+ if(req.getParameter(CONTEXT_ELEMENT_TYPE) instanceof IElementType) {
+ return ElementTypeRegistry.getInstance().getEditHelperAdvice((IElementType)req.getParameter(CONTEXT_ELEMENT_TYPE));
+ }
+ return super.getEditHelperAdvice(req);
+ }
+
+ /**
+ * @generated
+ */
+ protected ICommand getInsteadCommand(IEditCommandRequest req) {
+ ICommand epCommand = (ICommand)req.getParameter(EDIT_POLICY_COMMAND);
+ req.setParameter(EDIT_POLICY_COMMAND, null);
+ ICommand ehCommand = super.getInsteadCommand(req);
+ if(epCommand == null) {
+ return ehCommand;
+ }
+ if(ehCommand == null) {
+ return epCommand;
+ }
+ CompositeCommand command = new CompositeCommand(null);
+ command.add(epCommand);
+ command.add(ehCommand);
+ return command;
+ }
+
+ /**
+ * @generated
+ */
+ protected ICommand getCreateCommand(CreateElementRequest req) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected ICommand getCreateRelationshipCommand(CreateRelationshipRequest req) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected ICommand getDestroyElementCommand(DestroyElementRequest req) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected ICommand getDestroyReferenceCommand(DestroyReferenceRequest req) {
+ return null;
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/UsageEditHelper.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/UsageEditHelper.java
new file mode 100644
index 00000000000..f36151e1036
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/UsageEditHelper.java
@@ -0,0 +1,22 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.helpers;
+
+import org.eclipse.papyrus.diagram.common.helper.UMLBaseEditHelper;
+
+/**
+ * @generated
+ */
+public class UsageEditHelper extends UMLBaseEditHelper {
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/UseCaseEditHelper.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/UseCaseEditHelper.java
new file mode 100644
index 00000000000..07d3558f526
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/helpers/UseCaseEditHelper.java
@@ -0,0 +1,22 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.helpers;
+
+import org.eclipse.papyrus.diagram.common.helper.UMLBaseEditHelper;
+
+/**
+ * @generated
+ */
+public class UseCaseEditHelper extends UMLBaseEditHelper {
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/AbstractionAppliedStereotypeEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/AbstractionAppliedStereotypeEditPart.java
new file mode 100644
index 00000000000..434e2bf32e1
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/AbstractionAppliedStereotypeEditPart.java
@@ -0,0 +1,742 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.ConnectionLocator;
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.emf.transaction.RunnableWithResult;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.AccessibleEditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.requests.DirectEditRequest;
+import org.eclipse.gef.tools.DirectEditManager;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.LabelEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
+import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
+import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
+import org.eclipse.gmf.runtime.notation.FontStyle;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
+import org.eclipse.jface.viewers.ICellEditorValidator;
+import org.eclipse.jface.window.Window;
+import org.eclipse.papyrus.diagram.common.directedit.MultilineLabelDirectEditManager;
+import org.eclipse.papyrus.diagram.common.editparts.ILabelRoleProvider;
+import org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition;
+import org.eclipse.papyrus.diagram.common.editpolicies.IMaskManagedLabelEditPolicy;
+import org.eclipse.papyrus.diagram.common.figure.node.ILabelFigure;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLTextSelectionEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.diagram.composite.providers.UMLParserProvider;
+import org.eclipse.papyrus.extensionpoints.editors.Activator;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
+import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
+import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.AccessibleEvent;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.FontData;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.ui.PlatformUI;
+
+/**
+ * @generated
+ */
+public class AbstractionAppliedStereotypeEditPart extends LabelEditPart implements ITextAwareEditPart
+
+, ILabelRoleProvider
+
+{
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 6020;
+
+ /**
+ * @generated
+ */
+ private DirectEditManager manager;
+
+ /**
+ * @generated
+ */
+ private IParser parser;
+
+ /**
+ * @generated
+ */
+ private List<?> parserElements;
+
+ /**
+ * @generated
+ */
+ private String defaultText;
+
+ /**
+ * direct edition mode (default, undefined, registered editor, etc.)
+ *
+ * @generated
+ */
+ protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
+
+ /**
+ * configuration from a registered edit dialog
+ *
+ * @generated
+ */
+ protected IDirectEditorConfiguration configuration;
+
+ /**
+ * @generated
+ */
+ static {
+ registerSnapBackPosition(UMLVisualIDRegistry.getType(org.eclipse.papyrus.diagram.composite.edit.parts.AbstractionAppliedStereotypeEditPart.VISUAL_ID), new Point(0, 30));
+ }
+
+ /**
+ * @generated
+ */
+ public AbstractionAppliedStereotypeEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
+ installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new CompositeStructureDiagramEditPart.LinkLabelDragPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ public int getKeyPoint() {
+ return ConnectionLocator.MIDDLE;
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelTextHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getText();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getText();
+ } else {
+ return ((Label)figure).getText();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelTextHelper(IFigure figure, String text) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setText(text);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setText(text);
+ } else {
+ ((Label)figure).setText(text);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIconHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getIcon();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getIcon();
+ } else {
+ return ((Label)figure).getIcon();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelIconHelper(IFigure figure, Image icon) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setIcon(icon);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setIcon(icon);
+ } else {
+ ((Label)figure).setIcon(icon);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabel(WrappingLabel figure) {
+ unregisterVisuals();
+ setFigure(figure);
+ defaultText = getLabelTextHelper(figure);
+ registerVisuals();
+ refreshVisuals();
+ }
+
+ /**
+ * @generated
+ */
+ protected List getModelChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject getParserElement() {
+ return resolveSemanticElement();
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIcon() {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelText() {
+ String text = null;
+ EObject parserElement = getParserElement();
+ if(parserElement != null && getParser() != null) {
+ text = getParser().getPrintString(new EObjectAdapter(parserElement), getParserOptions().intValue());
+ }
+ if(text == null || text.length() == 0) {
+ text = defaultText;
+ }
+ return text;
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabelText(String text) {
+ setLabelTextHelper(getFigure(), text);
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public String getEditText() {
+ if(getParserElement() == null || getParser() == null) {
+ return ""; //$NON-NLS-1$
+ }
+ return getParser().getEditString(new EObjectAdapter(getParserElement()), getParserOptions().intValue());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean isEditable() {
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ public ICellEditorValidator getEditTextValidator() {
+ return new ICellEditorValidator() {
+
+ public String isValid(final Object value) {
+ if(value instanceof String) {
+ final EObject element = getParserElement();
+ final IParser parser = getParser();
+ try {
+ IParserEditStatus valid = (IParserEditStatus)getEditingDomain().runExclusive(new RunnableWithResult.Impl() {
+
+ public void run() {
+ setResult(parser.isValidEditString(new EObjectAdapter(element), (String)value));
+ }
+ });
+ return valid.getCode() == ParserEditStatus.EDITABLE ? null : valid.getMessage();
+ } catch (InterruptedException ie) {
+ ie.printStackTrace();
+ }
+ }
+
+ // shouldn't get here
+ return null;
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ public IContentAssistProcessor getCompletionProcessor() {
+ if(getParserElement() == null || getParser() == null) {
+ return null;
+ }
+ return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
+ }
+
+ /**
+ * @generated
+ */
+ public ParserOptions getParserOptions() {
+ return ParserOptions.NONE;
+ }
+
+ /**
+ * @generated
+ */
+ public IParser getParser() {
+ if(parser == null) {
+ parser = UMLParserProvider.getParser(UMLElementTypes.Abstraction_4007, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.diagram.composite.edit.parts.AbstractionAppliedStereotypeEditPart.VISUAL_ID));
+ }
+ return parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected DirectEditManager getManager() {
+ if(manager == null) {
+ setManager(new MultilineLabelDirectEditManager(this, MultilineLabelDirectEditManager.getTextCellEditorClass(this), UMLEditPartFactory.getTextCellEditorLocator(this)));
+ }
+ return manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setManager(DirectEditManager manager) {
+ this.manager = manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit() {
+ getManager().show();
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit(Point eventLocation) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(eventLocation.getSWTPoint());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void performDirectEdit(char initialCharacter) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(initialCharacter);
+ } else {
+ performDirectEdit();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEditRequest(Request request) {
+
+ final Request theRequest = request;
+
+ if(IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
+ directEditionMode = getDirectEditionType();
+ }
+ switch(directEditionMode) {
+ case IDirectEdition.NO_DIRECT_EDITION:
+ // no direct edition mode => does nothing
+ return;
+ case IDirectEdition.EXTENDED_DIRECT_EDITOR:
+ updateExtendedEditorConfiguration();
+ if(configuration == null || configuration.getLanguage() == null) {
+ performDefaultDirectEditorEdit(theRequest);
+ } else {
+ configuration.preEditAction(resolveSemanticElement());
+ Dialog dialog = null;
+ if(configuration instanceof IPopupEditorConfiguration) {
+ IPopupEditorHelper helper = ((IPopupEditorConfiguration)configuration).createPopupEditorHelper(this);
+ helper.showEditor();
+ return;
+ } else if(configuration instanceof IAdvancedEditorConfiguration) {
+ dialog = ((IAdvancedEditorConfiguration)configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
+ } else if(configuration instanceof IDirectEditorConfiguration) {
+ dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), ((IDirectEditorConfiguration)configuration).getTextToEdit(resolveSemanticElement()), (IDirectEditorConfiguration)configuration);
+ } else {
+ return;
+ }
+ final Dialog finalDialog = dialog;
+
+ if(Window.OK == dialog.open()) {
+ TransactionalEditingDomain domain = getEditingDomain();
+ RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
+
+ @Override
+ protected void doExecute() {
+ configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog)finalDialog).getValue());
+
+ }
+ };
+ domain.getCommandStack().execute(command);
+ }
+ }
+ break;
+ case IDirectEdition.DEFAULT_DIRECT_EDITOR:
+
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ break;
+ default:
+ break;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshLabel();
+ refreshFont();
+ refreshFontColor();
+ refreshUnderline();
+ refreshStrikeThrough();
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshLabel() {
+ EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
+ if(maskLabelPolicy == null) {
+ setLabelTextHelper(getFigure(), getLabelText());
+ setLabelIconHelper(getFigure(), getLabelIcon());
+ }
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshUnderline() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextUnderline(style.isUnderline());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshStrikeThrough() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextStrikeThrough(style.isStrikeThrough());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshFont() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null) {
+ FontData fontData = new FontData(style.getFontName(), style.getFontHeight(), (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
+ setFont(fontData);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setFontColor(Color color) {
+ getFigure().setForegroundColor(color);
+ }
+
+ /**
+ * @generated
+ */
+ protected void addSemanticListeners() {
+ if(getParser() instanceof ISemanticParser) {
+ EObject element = resolveSemanticElement();
+ parserElements = ((ISemanticParser)getParser()).getSemanticElementsBeingParsed(element);
+ for(int i = 0; i < parserElements.size(); i++) {
+ addListenerFilter("SemanticModel" + i, this, (EObject)parserElements.get(i)); //$NON-NLS-1$
+ }
+ } else {
+ super.addSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeSemanticListeners() {
+ if(parserElements != null) {
+ for(int i = 0; i < parserElements.size(); i++) {
+ removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
+ }
+ } else {
+ super.removeSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected AccessibleEditPart getAccessibleEditPart() {
+ if(accessibleEP == null) {
+ accessibleEP = new AccessibleGraphicalEditPart() {
+
+ public void getName(AccessibleEvent e) {
+ e.result = getLabelTextHelper(getFigure());
+ }
+ };
+ }
+ return accessibleEP;
+ }
+
+ /**
+ * @generated
+ */
+ private View getFontStyleOwnerView() {
+ return getPrimaryView();
+ }
+
+ /**
+ * Returns the kind of associated editor for direct edition.
+ *
+ * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition
+ * @generated
+ */
+ public int getDirectEditionType() {
+ // The label is read-only (defined in GMFGen model)
+ return IDirectEdition.NO_DIRECT_EDITION;
+ }
+
+ /**
+ * Checks if an extended editor is present.
+ *
+ * @return <code>true</code> if an extended editor is present.
+ * @generated
+ */
+ protected boolean checkExtendedEditor() {
+ if(resolveSemanticElement() != null) {
+ return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ return false;
+ }
+
+ /**
+ * Checks if a default direct edition is available
+ *
+ * @return <code>true</code> if a default direct edition is available
+ * @generated
+ */
+ protected boolean checkDefaultEdition() {
+ return (getParser() != null);
+ }
+
+ /**
+ * Initializes the extended editor configuration
+ *
+ * @generated
+ */
+ protected void initExtendedEditorConfiguration() {
+ if(configuration == null) {
+ final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("")) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else {
+ configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ }
+ }
+
+ /**
+ * Updates the preference configuration
+ *
+ * @generated
+ */
+ protected void updateExtendedEditorConfiguration() {
+ String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("") && languagePreferred != configuration.getLanguage()) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else if(IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
+ configuration = null;
+ }
+ }
+
+ /**
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
+ protected void performDefaultDirectEditorEdit(final Request theRequest) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void handleNotificationEvent(Notification event) {
+ Object feature = event.getFeature();
+ if(NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
+ Integer c = (Integer)event.getNewValue();
+ setFontColor(DiagramColorRegistry.getInstance().getColor(c));
+ } else if(NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
+ refreshUnderline();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
+ refreshStrikeThrough();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
+ refreshFont();
+ } else {
+ if(getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
+ refreshLabel();
+ }
+ if(getParser() instanceof ISemanticParser) {
+ ISemanticParser modelParser = (ISemanticParser)getParser();
+ if(modelParser.areSemanticElementsAffected(null, event)) {
+ removeSemanticListeners();
+ if(resolveSemanticElement() != null) {
+ addSemanticListeners();
+ }
+ refreshLabel();
+ }
+ }
+ }
+
+ super.handleNotificationEvent(event);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createFigure() {
+ // Parent should assign one using setLabel() method
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ public String getLabelRole() {
+ return "Stereotype";//$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ public String getIconPathRole() {
+ return "";//$NON-NLS-1$
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/AbstractionEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/AbstractionEditPart.java
new file mode 100644
index 00000000000..08466948eff
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/AbstractionEditPart.java
@@ -0,0 +1,122 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import org.eclipse.draw2d.Connection;
+import org.eclipse.gef.EditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITreeBranchEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.diagram.common.editparts.UMLConnectionNodeEditPart;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeAbstractionLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeLinkLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.figure.edge.DashedEdgeFigure;
+import org.eclipse.papyrus.diagram.composite.edit.policies.AbstractionItemSemanticEditPolicy;
+
+/**
+ * @generated
+ */
+public class AbstractionEditPart extends
+
+UMLConnectionNodeEditPart implements ITreeBranchEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 4007;
+
+ /**
+ * @generated
+ */
+ public AbstractionEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new AbstractionItemSemanticEditPolicy());
+ installEditPolicy(AppliedStereotypeLinkLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeAbstractionLabelDisplayEditPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean addFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof AbstractionNameEditPart) {
+ ((AbstractionNameEditPart)childEditPart).setLabel(getPrimaryShape().getNameLabel());
+ return true;
+ }
+ if(childEditPart instanceof AbstractionAppliedStereotypeEditPart) {
+ ((AbstractionAppliedStereotypeEditPart)childEditPart).setLabel(getPrimaryShape().getAppliedStereotypeLabel());
+ return true;
+ }
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected void addChildVisual(EditPart childEditPart, int index) {
+ if(addFixedChild(childEditPart)) {
+ return;
+ }
+ super.addChildVisual(childEditPart, -1);
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean removeFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof AbstractionNameEditPart) {
+ return true;
+ }
+ if(childEditPart instanceof AbstractionAppliedStereotypeEditPart) {
+ return true;
+ }
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeChildVisual(EditPart childEditPart) {
+ if(removeFixedChild(childEditPart)) {
+ return;
+ }
+ super.removeChildVisual(childEditPart);
+ }
+
+ /**
+ * Creates figure for this edit part.
+ *
+ * Body of this method does not depend on settings in generation model
+ * so you may safely remove <i>generated</i> tag and modify it.
+ *
+ * @generated
+ */
+ protected Connection createConnectionFigure() {
+ return new DashedEdgeFigure();
+ }
+
+ /**
+ * @generated
+ */
+ public DashedEdgeFigure getPrimaryShape() {
+ return (DashedEdgeFigure)getFigure();
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/AbstractionNameEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/AbstractionNameEditPart.java
new file mode 100644
index 00000000000..f01cb72f7b9
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/AbstractionNameEditPart.java
@@ -0,0 +1,750 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.ConnectionLocator;
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.emf.transaction.RunnableWithResult;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.AccessibleEditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.requests.DirectEditRequest;
+import org.eclipse.gef.tools.DirectEditManager;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.LabelEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
+import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
+import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
+import org.eclipse.gmf.runtime.notation.FontStyle;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
+import org.eclipse.jface.viewers.ICellEditorValidator;
+import org.eclipse.jface.window.Window;
+import org.eclipse.papyrus.diagram.common.directedit.MultilineLabelDirectEditManager;
+import org.eclipse.papyrus.diagram.common.editparts.ILabelRoleProvider;
+import org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition;
+import org.eclipse.papyrus.diagram.common.editpolicies.IMaskManagedLabelEditPolicy;
+import org.eclipse.papyrus.diagram.common.figure.node.ILabelFigure;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLTextSelectionEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.diagram.composite.providers.UMLParserProvider;
+import org.eclipse.papyrus.extensionpoints.editors.Activator;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
+import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
+import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.AccessibleEvent;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.FontData;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.ui.PlatformUI;
+
+/**
+ * @generated
+ */
+public class AbstractionNameEditPart extends LabelEditPart implements ITextAwareEditPart
+
+, ILabelRoleProvider
+
+{
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 6006;
+
+ /**
+ * @generated
+ */
+ private DirectEditManager manager;
+
+ /**
+ * @generated
+ */
+ private IParser parser;
+
+ /**
+ * @generated
+ */
+ private List<?> parserElements;
+
+ /**
+ * @generated
+ */
+ private String defaultText;
+
+ /**
+ * direct edition mode (default, undefined, registered editor, etc.)
+ *
+ * @generated
+ */
+ protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
+
+ /**
+ * configuration from a registered edit dialog
+ *
+ * @generated
+ */
+ protected IDirectEditorConfiguration configuration;
+
+ /**
+ * @generated
+ */
+ static {
+ registerSnapBackPosition(UMLVisualIDRegistry.getType(org.eclipse.papyrus.diagram.composite.edit.parts.AbstractionNameEditPart.VISUAL_ID), new Point(0, 60));
+ }
+
+ /**
+ * @generated
+ */
+ public AbstractionNameEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
+ installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new CompositeStructureDiagramEditPart.LinkLabelDragPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ public int getKeyPoint() {
+ return ConnectionLocator.MIDDLE;
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelTextHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getText();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getText();
+ } else {
+ return ((Label)figure).getText();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelTextHelper(IFigure figure, String text) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setText(text);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setText(text);
+ } else {
+ ((Label)figure).setText(text);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIconHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getIcon();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getIcon();
+ } else {
+ return ((Label)figure).getIcon();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelIconHelper(IFigure figure, Image icon) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setIcon(icon);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setIcon(icon);
+ } else {
+ ((Label)figure).setIcon(icon);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabel(WrappingLabel figure) {
+ unregisterVisuals();
+ setFigure(figure);
+ defaultText = getLabelTextHelper(figure);
+ registerVisuals();
+ refreshVisuals();
+ }
+
+ /**
+ * @generated
+ */
+ protected List getModelChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject getParserElement() {
+ return resolveSemanticElement();
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIcon() {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelText() {
+ String text = null;
+ EObject parserElement = getParserElement();
+ if(parserElement != null && getParser() != null) {
+ text = getParser().getPrintString(new EObjectAdapter(parserElement), getParserOptions().intValue());
+ }
+ if(text == null || text.length() == 0) {
+ text = defaultText;
+ }
+ return text;
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabelText(String text) {
+ setLabelTextHelper(getFigure(), text);
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public String getEditText() {
+ if(getParserElement() == null || getParser() == null) {
+ return ""; //$NON-NLS-1$
+ }
+ return getParser().getEditString(new EObjectAdapter(getParserElement()), getParserOptions().intValue());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean isEditable() {
+ return getParser() != null;
+ }
+
+ /**
+ * @generated
+ */
+ public ICellEditorValidator getEditTextValidator() {
+ return new ICellEditorValidator() {
+
+ public String isValid(final Object value) {
+ if(value instanceof String) {
+ final EObject element = getParserElement();
+ final IParser parser = getParser();
+ try {
+ IParserEditStatus valid = (IParserEditStatus)getEditingDomain().runExclusive(new RunnableWithResult.Impl() {
+
+ public void run() {
+ setResult(parser.isValidEditString(new EObjectAdapter(element), (String)value));
+ }
+ });
+ return valid.getCode() == ParserEditStatus.EDITABLE ? null : valid.getMessage();
+ } catch (InterruptedException ie) {
+ ie.printStackTrace();
+ }
+ }
+
+ // shouldn't get here
+ return null;
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ public IContentAssistProcessor getCompletionProcessor() {
+ if(getParserElement() == null || getParser() == null) {
+ return null;
+ }
+ return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
+ }
+
+ /**
+ * @generated
+ */
+ public ParserOptions getParserOptions() {
+ return ParserOptions.NONE;
+ }
+
+ /**
+ * @generated
+ */
+ public IParser getParser() {
+ if(parser == null) {
+ parser = UMLParserProvider.getParser(UMLElementTypes.Abstraction_4007, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.diagram.composite.edit.parts.AbstractionNameEditPart.VISUAL_ID));
+ }
+ return parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected DirectEditManager getManager() {
+ if(manager == null) {
+ setManager(new MultilineLabelDirectEditManager(this, MultilineLabelDirectEditManager.getTextCellEditorClass(this), UMLEditPartFactory.getTextCellEditorLocator(this)));
+ }
+ return manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setManager(DirectEditManager manager) {
+ this.manager = manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit() {
+ getManager().show();
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit(Point eventLocation) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(eventLocation.getSWTPoint());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void performDirectEdit(char initialCharacter) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(initialCharacter);
+ } else {
+ performDirectEdit();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEditRequest(Request request) {
+
+ final Request theRequest = request;
+
+ if(IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
+ directEditionMode = getDirectEditionType();
+ }
+ switch(directEditionMode) {
+ case IDirectEdition.NO_DIRECT_EDITION:
+ // no direct edition mode => does nothing
+ return;
+ case IDirectEdition.EXTENDED_DIRECT_EDITOR:
+ updateExtendedEditorConfiguration();
+ if(configuration == null || configuration.getLanguage() == null) {
+ performDefaultDirectEditorEdit(theRequest);
+ } else {
+ configuration.preEditAction(resolveSemanticElement());
+ Dialog dialog = null;
+ if(configuration instanceof IPopupEditorConfiguration) {
+ IPopupEditorHelper helper = ((IPopupEditorConfiguration)configuration).createPopupEditorHelper(this);
+ helper.showEditor();
+ return;
+ } else if(configuration instanceof IAdvancedEditorConfiguration) {
+ dialog = ((IAdvancedEditorConfiguration)configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
+ } else if(configuration instanceof IDirectEditorConfiguration) {
+ dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), ((IDirectEditorConfiguration)configuration).getTextToEdit(resolveSemanticElement()), (IDirectEditorConfiguration)configuration);
+ } else {
+ return;
+ }
+ final Dialog finalDialog = dialog;
+
+ if(Window.OK == dialog.open()) {
+ TransactionalEditingDomain domain = getEditingDomain();
+ RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
+
+ @Override
+ protected void doExecute() {
+ configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog)finalDialog).getValue());
+
+ }
+ };
+ domain.getCommandStack().execute(command);
+ }
+ }
+ break;
+ case IDirectEdition.DEFAULT_DIRECT_EDITOR:
+
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ break;
+ default:
+ break;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshLabel();
+ refreshFont();
+ refreshFontColor();
+ refreshUnderline();
+ refreshStrikeThrough();
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshLabel() {
+ EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
+ if(maskLabelPolicy == null) {
+ setLabelTextHelper(getFigure(), getLabelText());
+ setLabelIconHelper(getFigure(), getLabelIcon());
+ }
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshUnderline() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextUnderline(style.isUnderline());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshStrikeThrough() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextStrikeThrough(style.isStrikeThrough());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshFont() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null) {
+ FontData fontData = new FontData(style.getFontName(), style.getFontHeight(), (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
+ setFont(fontData);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setFontColor(Color color) {
+ getFigure().setForegroundColor(color);
+ }
+
+ /**
+ * @generated
+ */
+ protected void addSemanticListeners() {
+ if(getParser() instanceof ISemanticParser) {
+ EObject element = resolveSemanticElement();
+ parserElements = ((ISemanticParser)getParser()).getSemanticElementsBeingParsed(element);
+ for(int i = 0; i < parserElements.size(); i++) {
+ addListenerFilter("SemanticModel" + i, this, (EObject)parserElements.get(i)); //$NON-NLS-1$
+ }
+ } else {
+ super.addSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeSemanticListeners() {
+ if(parserElements != null) {
+ for(int i = 0; i < parserElements.size(); i++) {
+ removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
+ }
+ } else {
+ super.removeSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected AccessibleEditPart getAccessibleEditPart() {
+ if(accessibleEP == null) {
+ accessibleEP = new AccessibleGraphicalEditPart() {
+
+ public void getName(AccessibleEvent e) {
+ e.result = getLabelTextHelper(getFigure());
+ }
+ };
+ }
+ return accessibleEP;
+ }
+
+ /**
+ * @generated
+ */
+ private View getFontStyleOwnerView() {
+ return getPrimaryView();
+ }
+
+ /**
+ * Returns the kind of associated editor for direct edition.
+ *
+ * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition
+ * @generated
+ */
+ public int getDirectEditionType() {
+ if(checkExtendedEditor()) {
+ initExtendedEditorConfiguration();
+ return IDirectEdition.EXTENDED_DIRECT_EDITOR;
+ }
+ if(checkDefaultEdition()) {
+ return IDirectEdition.DEFAULT_DIRECT_EDITOR;
+ }
+
+ // not a named element. no specific editor => do nothing
+ return IDirectEdition.NO_DIRECT_EDITION;
+ }
+
+ /**
+ * Checks if an extended editor is present.
+ *
+ * @return <code>true</code> if an extended editor is present.
+ * @generated
+ */
+ protected boolean checkExtendedEditor() {
+ if(resolveSemanticElement() != null) {
+ return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ return false;
+ }
+
+ /**
+ * Checks if a default direct edition is available
+ *
+ * @return <code>true</code> if a default direct edition is available
+ * @generated
+ */
+ protected boolean checkDefaultEdition() {
+ return (getParser() != null);
+ }
+
+ /**
+ * Initializes the extended editor configuration
+ *
+ * @generated
+ */
+ protected void initExtendedEditorConfiguration() {
+ if(configuration == null) {
+ final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("")) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else {
+ configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ }
+ }
+
+ /**
+ * Updates the preference configuration
+ *
+ * @generated
+ */
+ protected void updateExtendedEditorConfiguration() {
+ String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("") && languagePreferred != configuration.getLanguage()) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else if(IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
+ configuration = null;
+ }
+ }
+
+ /**
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
+ protected void performDefaultDirectEditorEdit(final Request theRequest) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void handleNotificationEvent(Notification event) {
+ Object feature = event.getFeature();
+ if(NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
+ Integer c = (Integer)event.getNewValue();
+ setFontColor(DiagramColorRegistry.getInstance().getColor(c));
+ } else if(NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
+ refreshUnderline();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
+ refreshStrikeThrough();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
+ refreshFont();
+ } else {
+ if(getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
+ refreshLabel();
+ }
+ if(getParser() instanceof ISemanticParser) {
+ ISemanticParser modelParser = (ISemanticParser)getParser();
+ if(modelParser.areSemanticElementsAffected(null, event)) {
+ removeSemanticListeners();
+ if(resolveSemanticElement() != null) {
+ addSemanticListeners();
+ }
+ refreshLabel();
+ }
+ }
+ }
+
+ super.handleNotificationEvent(event);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createFigure() {
+ // Parent should assign one using setLabel() method
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ public String getLabelRole() {
+ return "Name";//$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ public String getIconPathRole() {
+ return "";//$NON-NLS-1$
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ActivityCompositeCompartmentEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ActivityCompositeCompartmentEditPart.java
new file mode 100644
index 00000000000..c6163b75f99
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ActivityCompositeCompartmentEditPart.java
@@ -0,0 +1,123 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import org.eclipse.draw2d.geometry.Dimension;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.draw2d.geometry.Rectangle;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.GraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ShapeCompartmentEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.CreationEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.DragDropEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.ResizableCompartmentEditPolicy;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.diagram.common.editparts.NoScrollBarShapeCompartmentEditPart;
+import org.eclipse.papyrus.diagram.common.editpolicies.CustomContainerEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.DuplicatePasteEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.CustomDiagramDragDropEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.PortInCompartmentCreationEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.RemoveOrphanViewPolicy;
+import org.eclipse.papyrus.diagram.composite.edit.policies.ActivityCompositeCompartmentItemSemanticEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.Messages;
+
+/**
+ * @generated
+ */
+public class ActivityCompositeCompartmentEditPart
+
+extends NoScrollBarShapeCompartmentEditPart
+
+{
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 7063;
+
+ /**
+ * @generated
+ */
+ public ActivityCompositeCompartmentEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ public String getCompartmentName() {
+ return Messages.ActivityCompositeCompartmentEditPart_title;
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new ResizableCompartmentEditPolicy());
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new ActivityCompositeCompartmentItemSemanticEditPolicy());
+ installEditPolicy(EditPolicyRoles.CREATION_ROLE, new CreationEditPolicy());
+ installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new DragDropEditPolicy());
+ installEditPolicy(DuplicatePasteEditPolicy.PASTE_ROLE, new DuplicatePasteEditPolicy());
+ installEditPolicy("REMOVE_ORPHAN_VIEW", new RemoveOrphanViewPolicy()); //$NON-NLS-1$
+ installEditPolicy(EditPolicy.GRAPHICAL_NODE_ROLE, new CustomContainerEditPolicy());
+ installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new CustomDiagramDragDropEditPolicy());
+ installEditPolicy(EditPolicyRoles.CREATION_ROLE, new PortInCompartmentCreationEditPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ protected void setRatio(Double ratio) {
+ if(getFigure().getParent().getLayoutManager() instanceof ConstrainedToolbarLayout) {
+ super.setRatio(ratio);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void handleNotificationEvent(Notification notification) {
+ Object feature = notification.getFeature();
+ if(NotationPackage.eINSTANCE.getSize_Width().equals(feature) || NotationPackage.eINSTANCE.getSize_Height().equals(feature) || NotationPackage.eINSTANCE.getLocation_X().equals(feature) || NotationPackage.eINSTANCE.getLocation_Y().equals(feature)) {
+ refreshBounds();
+ }
+ super.handleNotificationEvent(notification);
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshBounds() {
+ int width = ((Integer)getStructuralFeatureValue(NotationPackage.eINSTANCE.getSize_Width())).intValue();
+ int height = ((Integer)getStructuralFeatureValue(NotationPackage.eINSTANCE.getSize_Height())).intValue();
+ Dimension size = new Dimension(width, height);
+ int x = ((Integer)getStructuralFeatureValue(NotationPackage.eINSTANCE.getLocation_X())).intValue();
+ int y = ((Integer)getStructuralFeatureValue(NotationPackage.eINSTANCE.getLocation_Y())).intValue();
+ Point loc = new Point(x, y);
+ ((GraphicalEditPart)getParent()).setLayoutConstraint(this, getFigure(), new Rectangle(loc, size));
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshBounds();
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ActivityCompositeCompartmentEditPartCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ActivityCompositeCompartmentEditPartCN.java
new file mode 100644
index 00000000000..1a5d5736335
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ActivityCompositeCompartmentEditPartCN.java
@@ -0,0 +1,123 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import org.eclipse.draw2d.geometry.Dimension;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.draw2d.geometry.Rectangle;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.GraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ShapeCompartmentEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.CreationEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.DragDropEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.ResizableCompartmentEditPolicy;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.diagram.common.editparts.NoScrollBarShapeCompartmentEditPart;
+import org.eclipse.papyrus.diagram.common.editpolicies.CustomContainerEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.DuplicatePasteEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.CustomDiagramDragDropEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.PortInCompartmentCreationEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.RemoveOrphanViewPolicy;
+import org.eclipse.papyrus.diagram.composite.edit.policies.ActivityCompositeCompartmentItemSemanticEditPolicyCN;
+import org.eclipse.papyrus.diagram.composite.part.Messages;
+
+/**
+ * @generated
+ */
+public class ActivityCompositeCompartmentEditPartCN
+
+extends NoScrollBarShapeCompartmentEditPart
+
+{
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 7050;
+
+ /**
+ * @generated
+ */
+ public ActivityCompositeCompartmentEditPartCN(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ public String getCompartmentName() {
+ return Messages.ActivityCompositeCompartmentEditPartCN_title;
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new ResizableCompartmentEditPolicy());
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new ActivityCompositeCompartmentItemSemanticEditPolicyCN());
+ installEditPolicy(EditPolicyRoles.CREATION_ROLE, new CreationEditPolicy());
+ installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new DragDropEditPolicy());
+ installEditPolicy(DuplicatePasteEditPolicy.PASTE_ROLE, new DuplicatePasteEditPolicy());
+ installEditPolicy("REMOVE_ORPHAN_VIEW", new RemoveOrphanViewPolicy()); //$NON-NLS-1$
+ installEditPolicy(EditPolicy.GRAPHICAL_NODE_ROLE, new CustomContainerEditPolicy());
+ installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new CustomDiagramDragDropEditPolicy());
+ installEditPolicy(EditPolicyRoles.CREATION_ROLE, new PortInCompartmentCreationEditPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ protected void setRatio(Double ratio) {
+ if(getFigure().getParent().getLayoutManager() instanceof ConstrainedToolbarLayout) {
+ super.setRatio(ratio);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void handleNotificationEvent(Notification notification) {
+ Object feature = notification.getFeature();
+ if(NotationPackage.eINSTANCE.getSize_Width().equals(feature) || NotationPackage.eINSTANCE.getSize_Height().equals(feature) || NotationPackage.eINSTANCE.getLocation_X().equals(feature) || NotationPackage.eINSTANCE.getLocation_Y().equals(feature)) {
+ refreshBounds();
+ }
+ super.handleNotificationEvent(notification);
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshBounds() {
+ int width = ((Integer)getStructuralFeatureValue(NotationPackage.eINSTANCE.getSize_Width())).intValue();
+ int height = ((Integer)getStructuralFeatureValue(NotationPackage.eINSTANCE.getSize_Height())).intValue();
+ Dimension size = new Dimension(width, height);
+ int x = ((Integer)getStructuralFeatureValue(NotationPackage.eINSTANCE.getLocation_X())).intValue();
+ int y = ((Integer)getStructuralFeatureValue(NotationPackage.eINSTANCE.getLocation_Y())).intValue();
+ Point loc = new Point(x, y);
+ ((GraphicalEditPart)getParent()).setLayoutConstraint(this, getFigure(), new Rectangle(loc, size));
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshBounds();
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ActivityCompositeEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ActivityCompositeEditPart.java
new file mode 100644
index 00000000000..d8a50862f62
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ActivityCompositeEditPart.java
@@ -0,0 +1,5406 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.ArrayList;
+import java.util.LinkedList;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.PositionConstants;
+import org.eclipse.draw2d.Shape;
+import org.eclipse.draw2d.StackLayout;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EStructuralFeature;
+import org.eclipse.gef.EditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.editpolicies.LayoutEditPolicy;
+import org.eclipse.gef.editpolicies.NonResizableEditPolicy;
+import org.eclipse.gef.requests.CreateRequest;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IBorderItemEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.CreationEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.DragDropEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.diagram.ui.figures.IBorderItemLocator;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.FigureUtilities;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.gef.ui.figures.DefaultSizeNodeFigure;
+import org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.jface.preference.PreferenceConverter;
+import org.eclipse.papyrus.diagram.common.editparts.NamedElementEditPart;
+import org.eclipse.papyrus.diagram.common.editpolicies.AffixedNodeAlignmentEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.BorderItemResizableEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.HyperLinkPopupBarEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.QualifiedNameDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.ShowHideClassifierContentsEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.ShowHideCompartmentEditPolicy;
+import org.eclipse.papyrus.diagram.common.helper.PreferenceInitializerForElementHelper;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.BehaviorLayoutEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.BehaviorResizableShapeEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.CustomDiagramDragDropEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.RemoveOrphanViewPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.figures.ActivityCompositeFigure;
+import org.eclipse.papyrus.diagram.composite.custom.locators.PortPositionLocator;
+import org.eclipse.papyrus.diagram.composite.edit.policies.ActivityCompositeItemSemanticEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorPlugin;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter;
+import org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper;
+import org.eclipse.swt.graphics.Color;
+
+/**
+ * @generated
+ */
+public class ActivityCompositeEditPart extends
+
+NamedElementEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 2060;
+
+ /**
+ * @generated
+ */
+ protected IFigure contentPane;
+
+ /**
+ * @generated
+ */
+ protected IFigure primaryShape;
+
+ /**
+ * @generated
+ */
+ public ActivityCompositeEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ installEditPolicy(EditPolicyRoles.CREATION_ROLE, new CreationEditPolicy());
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new ActivityCompositeItemSemanticEditPolicy());
+ installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new DragDropEditPolicy());
+ installEditPolicy(EditPolicy.LAYOUT_ROLE, createLayoutEditPolicy());
+ installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new CustomDiagramDragDropEditPolicy());
+ installEditPolicy(QualifiedNameDisplayEditPolicy.QUALIFIED_NAME_POLICY, new QualifiedNameDisplayEditPolicy());
+ installEditPolicy(AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeNodeLabelDisplayEditPolicy());
+ installEditPolicy(EditPolicyRoles.POPUPBAR_ROLE, new HyperLinkPopupBarEditPolicy());
+ installEditPolicy(EditPolicy.LAYOUT_ROLE, new BehaviorLayoutEditPolicy());
+ installEditPolicy(ShowHideClassifierContentsEditPolicy.SHOW_HIDE_CLASSIFIER_CONTENTS_POLICY, new ShowHideClassifierContentsEditPolicy());
+ installEditPolicy(ShowHideCompartmentEditPolicy.SHOW_HIDE_COMPARTMENT_POLICY, new ShowHideCompartmentEditPolicy());
+ installEditPolicy(AffixedNodeAlignmentEditPolicy.AFFIXED_CHILD_ALIGNMENT_ROLE, new AffixedNodeAlignmentEditPolicy());
+ installEditPolicy("REMOVE_ORPHAN_VIEW", new RemoveOrphanViewPolicy()); //$NON-NLS-1$
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new BehaviorResizableShapeEditPolicy());
+ // XXX need an SCR to runtime to have another abstract superclass that would let children add reasonable editpolicies
+ // removeEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CONNECTION_HANDLES_ROLE);
+ }
+
+ /**
+ * Papyrus codeGen
+ *
+ * @generated
+ **/
+ protected void handleNotificationEvent(Notification event) {
+ super.handleNotificationEvent(event);
+
+ }
+
+ /**
+ * @generated
+ */
+ protected LayoutEditPolicy createLayoutEditPolicy() {
+ org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy lep = new org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy() {
+
+ protected EditPolicy createChildEditPolicy(EditPart child) {
+ View childView = (View)child.getModel();
+ switch(UMLVisualIDRegistry.getVisualID(childView)) {
+ case PortEditPart.VISUAL_ID:
+ case ParameterEditPart.VISUAL_ID:
+
+ return new BorderItemResizableEditPolicy();
+
+ }
+ EditPolicy result = child.getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(result == null) {
+ result = new NonResizableEditPolicy();
+ }
+ return result;
+ }
+
+ protected Command getMoveChildrenCommand(Request request) {
+ return null;
+ }
+
+ protected Command getCreateCommand(CreateRequest request) {
+ return null;
+ }
+ };
+ return lep;
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createNodeShape() {
+ return primaryShape = new ActivityCompositeFigure();
+ }
+
+ /**
+ * @generated
+ */
+ public ActivityCompositeFigure getPrimaryShape() {
+ return (ActivityCompositeFigure)primaryShape;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean addFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof ActivityCompositeNameEditPart) {
+ ((ActivityCompositeNameEditPart)childEditPart).setLabel(getPrimaryShape().getNameLabel());
+ return true;
+ }
+
+ if(childEditPart instanceof ActivityCompositeCompartmentEditPart) {
+ IFigure pane = getPrimaryShape().getCompositeCompartmentFigure();
+ setupContentPane(pane); // FIXME each comparment should handle his content pane in his own way
+ pane.add(((ActivityCompositeCompartmentEditPart)childEditPart).getFigure());
+ return true;
+ }
+
+ //Papyrus Gencode :Affixed Port locator
+ if(childEditPart instanceof PortEditPart) {
+ IBorderItemLocator locator = new PortPositionLocator(getMainFigure(), PositionConstants.NONE);
+ getBorderedFigure().getBorderItemContainer().add(((PortEditPart)childEditPart).getFigure(), locator);
+ return true;
+ }
+
+ //Papyrus Gencode :Affixed Port locator
+ if(childEditPart instanceof ParameterEditPart) {
+ IBorderItemLocator locator = new PortPositionLocator(getMainFigure(), PositionConstants.NONE);
+ getBorderedFigure().getBorderItemContainer().add(((ParameterEditPart)childEditPart).getFigure(), locator);
+ return true;
+ }
+
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean removeFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof ActivityCompositeNameEditPart) {
+ return true;
+ }
+ if(childEditPart instanceof ActivityCompositeCompartmentEditPart) {
+ IFigure pane = getPrimaryShape().getCompositeCompartmentFigure();
+ setupContentPane(pane); // FIXME each comparment should handle his content pane in his own way
+ pane.remove(((ActivityCompositeCompartmentEditPart)childEditPart).getFigure());
+ return true;
+ }
+ if(childEditPart instanceof PortEditPart) {
+ getBorderedFigure().getBorderItemContainer().remove(((PortEditPart)childEditPart).getFigure());
+ return true;
+ }
+ if(childEditPart instanceof ParameterEditPart) {
+ getBorderedFigure().getBorderItemContainer().remove(((ParameterEditPart)childEditPart).getFigure());
+ return true;
+ }
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected void addChildVisual(EditPart childEditPart, int index) {
+ if(addFixedChild(childEditPart)) {
+ return;
+ }
+ super.addChildVisual(childEditPart, -1);
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeChildVisual(EditPart childEditPart) {
+ if(removeFixedChild(childEditPart)) {
+ return;
+ }
+ super.removeChildVisual(childEditPart);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure getContentPaneFor(IGraphicalEditPart editPart) {
+ if(editPart instanceof ActivityCompositeCompartmentEditPart) {
+ return getPrimaryShape().getCompositeCompartmentFigure();
+ }
+ if(editPart instanceof IBorderItemEditPart) {
+ return getBorderedFigure().getBorderItemContainer();
+ }
+ return getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ protected NodeFigure createNodePlate() {
+ String prefElementId = "Activity";
+ IPreferenceStore store = UMLDiagramEditorPlugin.getInstance().getPreferenceStore();
+ String preferenceConstantWitdh = PreferenceInitializerForElementHelper.getpreferenceKey(getNotationView(), prefElementId, PreferenceConstantHelper.WIDTH);
+ String preferenceConstantHeight = PreferenceInitializerForElementHelper.getpreferenceKey(getNotationView(), prefElementId, PreferenceConstantHelper.HEIGHT);
+ DefaultSizeNodeFigure result = new DefaultSizeNodeFigure(store.getInt(preferenceConstantWitdh), store.getInt(preferenceConstantHeight));
+
+ return result;
+ }
+
+ /**
+ * Creates figure for this edit part.
+ *
+ * Body of this method does not depend on settings in generation model
+ * so you may safely remove <i>generated</i> tag and modify it.
+ *
+ * @generated
+ */
+ protected NodeFigure createMainFigure() {
+ NodeFigure figure = createNodePlate();
+ figure.setLayoutManager(new StackLayout());
+ IFigure shape = createNodeShape();
+ figure.add(shape);
+ contentPane = setupContentPane(shape);
+ return figure;
+ }
+
+ /**
+ * Default implementation treats passed figure as content pane.
+ * Respects layout one may have set for generated figure.
+ *
+ * @param nodeShape
+ * instance of generated figure class
+ * @generated
+ */
+ protected IFigure setupContentPane(IFigure nodeShape) {
+ if(nodeShape.getLayoutManager() == null) {
+ ConstrainedToolbarLayout layout = new ConstrainedToolbarLayout();
+ layout.setSpacing(5);
+ nodeShape.setLayoutManager(layout);
+ }
+ return nodeShape; // use nodeShape itself as contentPane
+ }
+
+ /**
+ * @generated
+ */
+ public IFigure getContentPane() {
+ if(contentPane != null) {
+ return contentPane;
+ }
+ return super.getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ protected void setForegroundColor(Color color) {
+ if(primaryShape != null) {
+ primaryShape.setForegroundColor(color);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLineWidth(int width) {
+ if(primaryShape instanceof Shape) {
+ ((Shape)primaryShape).setLineWidth(width);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLineType(int style) {
+ if(primaryShape instanceof Shape) {
+ ((Shape)primaryShape).setLineStyle(style);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public EditPart getPrimaryChildEditPart() {
+ return getChildBySemanticHint(UMLVisualIDRegistry.getType(ActivityCompositeNameEditPart.VISUAL_ID));
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnSource() {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(12);
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ types.add(UMLElementTypes.Substitution_4011);
+ types.add(UMLElementTypes.Realization_4006);
+ types.add(UMLElementTypes.Manifestation_4012);
+ types.add(UMLElementTypes.Abstraction_4007);
+ types.add(UMLElementTypes.Usage_4008);
+ types.add(UMLElementTypes.Deployment_4009);
+ types.add(UMLElementTypes.Dependency_4017);
+ types.add(UMLElementTypes.Dependency_4010);
+ types.add(UMLElementTypes.Generalization_4015);
+ types.add(UMLElementTypes.InformationFlow_4021);
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnSourceAndTarget(IGraphicalEditPart targetEditPart) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMATypesForTarget(IElementType relationshipType) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(relationshipType == UMLElementTypes.ComponentRealization_4004) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InterfaceRealization_4005) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Substitution_4011) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Realization_4006) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Manifestation_4012) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Abstraction_4007) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Usage_4008) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Deployment_4009) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4017) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4010) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Generalization_4015) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ } else if(relationshipType == UMLElementTypes.InformationFlow_4021) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnTarget() {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(17);
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ types.add(UMLElementTypes.Substitution_4011);
+ types.add(UMLElementTypes.Realization_4006);
+ types.add(UMLElementTypes.Manifestation_4012);
+ types.add(UMLElementTypes.Abstraction_4007);
+ types.add(UMLElementTypes.Usage_4008);
+ types.add(UMLElementTypes.Deployment_4009);
+ types.add(UMLElementTypes.Dependency_4017);
+ types.add(UMLElementTypes.Dependency_4010);
+ types.add(UMLElementTypes.Generalization_4015);
+ types.add(UMLElementTypes.TimeObservationEvent_4018);
+ types.add(UMLElementTypes.DurationObservationEvent_4019);
+ types.add(UMLElementTypes.InformationItemRepresented_4020);
+ types.add(UMLElementTypes.InformationFlow_4021);
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMATypesForSource(IElementType relationshipType) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(relationshipType == UMLElementTypes.CommentAnnotatedElement_4002) {
+ types.add(UMLElementTypes.Comment_2109);
+ types.add(UMLElementTypes.Comment_3097);
+ } else if(relationshipType == UMLElementTypes.ConstraintConstrainedElement_4003) {
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.ComponentRealization_4004) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InterfaceRealization_4005) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Substitution_4011) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Realization_4006) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Manifestation_4012) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Abstraction_4007) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Usage_4008) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Deployment_4009) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4017) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4010) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Generalization_4015) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ } else if(relationshipType == UMLElementTypes.TimeObservationEvent_4018) {
+ types.add(UMLElementTypes.TimeObservation_2094);
+ } else if(relationshipType == UMLElementTypes.DurationObservationEvent_4019) {
+ types.add(UMLElementTypes.DurationObservation_2093);
+ } else if(relationshipType == UMLElementTypes.InformationItemRepresented_4020) {
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.InformationItem_3094);
+ } else if(relationshipType == UMLElementTypes.InformationFlow_4021) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public Object getPreferredValue(EStructuralFeature feature) {
+ IPreferenceStore preferenceStore = (IPreferenceStore)getDiagramPreferencesHint().getPreferenceStore();
+ Object result = null;
+
+ if(feature == NotationPackage.eINSTANCE.getLineStyle_LineColor() || feature == NotationPackage.eINSTANCE.getFontStyle_FontColor() || feature == NotationPackage.eINSTANCE.getFillStyle_FillColor()) {
+ String prefColor = null;
+ if(feature == NotationPackage.eINSTANCE.getLineStyle_LineColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("Activity", PreferenceConstantHelper.COLOR_LINE);
+ } else if(feature == NotationPackage.eINSTANCE.getFontStyle_FontColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("Activity", PreferenceConstantHelper.COLOR_FONT);
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_FillColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("Activity", PreferenceConstantHelper.COLOR_FILL);
+ }
+ result = FigureUtilities.RGBToInteger(PreferenceConverter.getColor((IPreferenceStore)preferenceStore, prefColor));
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_Transparency() || feature == NotationPackage.eINSTANCE.getFillStyle_Gradient()) {
+ String prefGradient = PreferenceConstantHelper.getElementConstant("Activity", PreferenceConstantHelper.COLOR_GRADIENT);
+ GradientPreferenceConverter gradientPreferenceConverter = new GradientPreferenceConverter(preferenceStore.getString(prefGradient));
+ if(feature == NotationPackage.eINSTANCE.getFillStyle_Transparency()) {
+ result = new Integer(gradientPreferenceConverter.getTransparency());
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_Gradient()) {
+ result = gradientPreferenceConverter.getGradientData();
+ }
+ }
+
+ if(result == null) {
+ result = getStructuralFeatureValue(feature);
+ }
+ return result;
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ActivityCompositeEditPartCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ActivityCompositeEditPartCN.java
new file mode 100644
index 00000000000..cc562961984
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ActivityCompositeEditPartCN.java
@@ -0,0 +1,5408 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.ArrayList;
+import java.util.LinkedList;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.PositionConstants;
+import org.eclipse.draw2d.Shape;
+import org.eclipse.draw2d.StackLayout;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EStructuralFeature;
+import org.eclipse.gef.EditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.editpolicies.LayoutEditPolicy;
+import org.eclipse.gef.editpolicies.NonResizableEditPolicy;
+import org.eclipse.gef.requests.CreateRequest;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IBorderItemEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.CreationEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.DragDropEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.diagram.ui.figures.IBorderItemLocator;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.FigureUtilities;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.gef.ui.figures.DefaultSizeNodeFigure;
+import org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.jface.preference.PreferenceConverter;
+import org.eclipse.papyrus.diagram.common.editparts.NamedElementEditPart;
+import org.eclipse.papyrus.diagram.common.editpolicies.AffixedNodeAlignmentEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.BorderItemResizableEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.HyperLinkPopupBarEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.QualifiedNameDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.ShowHideClassifierContentsEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.ShowHideCompartmentEditPolicy;
+import org.eclipse.papyrus.diagram.common.helper.PreferenceInitializerForElementHelper;
+import org.eclipse.papyrus.diagram.composite.custom.edit.parts.ConstrainedNamedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.BehaviorLayoutEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.BehaviorResizableShapeEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.CustomDiagramDragDropEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.NoScrollBehaviorResizableShapeEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.RemoveOrphanViewPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.figures.ActivityCompositeFigure;
+import org.eclipse.papyrus.diagram.composite.custom.locators.PortPositionLocator;
+import org.eclipse.papyrus.diagram.composite.edit.policies.ActivityCompositeItemSemanticEditPolicyCN;
+import org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorPlugin;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter;
+import org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper;
+import org.eclipse.swt.graphics.Color;
+
+/**
+ * @generated
+ */
+public class ActivityCompositeEditPartCN extends
+
+ConstrainedNamedElementEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 3072;
+
+ /**
+ * @generated
+ */
+ protected IFigure contentPane;
+
+ /**
+ * @generated
+ */
+ protected IFigure primaryShape;
+
+ /**
+ * @generated
+ */
+ public ActivityCompositeEditPartCN(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ installEditPolicy(EditPolicyRoles.CREATION_ROLE, new CreationEditPolicy());
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new ActivityCompositeItemSemanticEditPolicyCN());
+ installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new DragDropEditPolicy());
+ installEditPolicy(EditPolicy.LAYOUT_ROLE, createLayoutEditPolicy());
+ installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new CustomDiagramDragDropEditPolicy());
+ installEditPolicy(QualifiedNameDisplayEditPolicy.QUALIFIED_NAME_POLICY, new QualifiedNameDisplayEditPolicy());
+ installEditPolicy(AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeNodeLabelDisplayEditPolicy());
+ installEditPolicy(EditPolicyRoles.POPUPBAR_ROLE, new HyperLinkPopupBarEditPolicy());
+ installEditPolicy(EditPolicy.LAYOUT_ROLE, new BehaviorLayoutEditPolicy());
+ installEditPolicy(ShowHideClassifierContentsEditPolicy.SHOW_HIDE_CLASSIFIER_CONTENTS_POLICY, new ShowHideClassifierContentsEditPolicy());
+ installEditPolicy(ShowHideCompartmentEditPolicy.SHOW_HIDE_COMPARTMENT_POLICY, new ShowHideCompartmentEditPolicy());
+ installEditPolicy(AffixedNodeAlignmentEditPolicy.AFFIXED_CHILD_ALIGNMENT_ROLE, new AffixedNodeAlignmentEditPolicy());
+ installEditPolicy("REMOVE_ORPHAN_VIEW", new RemoveOrphanViewPolicy()); //$NON-NLS-1$
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new NoScrollBehaviorResizableShapeEditPolicy());
+ // XXX need an SCR to runtime to have another abstract superclass that would let children add reasonable editpolicies
+ // removeEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CONNECTION_HANDLES_ROLE);
+ }
+
+ /**
+ * Papyrus codeGen
+ *
+ * @generated
+ **/
+ protected void handleNotificationEvent(Notification event) {
+ super.handleNotificationEvent(event);
+
+ }
+
+ /**
+ * @generated
+ */
+ protected LayoutEditPolicy createLayoutEditPolicy() {
+ org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy lep = new org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy() {
+
+ protected EditPolicy createChildEditPolicy(EditPart child) {
+ View childView = (View)child.getModel();
+ switch(UMLVisualIDRegistry.getVisualID(childView)) {
+ case PortEditPart.VISUAL_ID:
+ case ParameterEditPart.VISUAL_ID:
+
+ return new BorderItemResizableEditPolicy();
+
+ }
+ EditPolicy result = child.getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(result == null) {
+ result = new NonResizableEditPolicy();
+ }
+ return result;
+ }
+
+ protected Command getMoveChildrenCommand(Request request) {
+ return null;
+ }
+
+ protected Command getCreateCommand(CreateRequest request) {
+ return null;
+ }
+ };
+ return lep;
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createNodeShape() {
+ return primaryShape = new ActivityCompositeFigure();
+ }
+
+ /**
+ * @generated
+ */
+ public ActivityCompositeFigure getPrimaryShape() {
+ return (ActivityCompositeFigure)primaryShape;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean addFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof ActivityCompositeNameEditPartCN) {
+ ((ActivityCompositeNameEditPartCN)childEditPart).setLabel(getPrimaryShape().getNameLabel());
+ return true;
+ }
+
+ if(childEditPart instanceof ActivityCompositeCompartmentEditPartCN) {
+ IFigure pane = getPrimaryShape().getCompositeCompartmentFigure();
+ setupContentPane(pane); // FIXME each comparment should handle his content pane in his own way
+ pane.add(((ActivityCompositeCompartmentEditPartCN)childEditPart).getFigure());
+ return true;
+ }
+
+ //Papyrus Gencode :Affixed Port locator
+ if(childEditPart instanceof PortEditPart) {
+ IBorderItemLocator locator = new PortPositionLocator(getMainFigure(), PositionConstants.NONE);
+ getBorderedFigure().getBorderItemContainer().add(((PortEditPart)childEditPart).getFigure(), locator);
+ return true;
+ }
+
+ //Papyrus Gencode :Affixed Port locator
+ if(childEditPart instanceof ParameterEditPart) {
+ IBorderItemLocator locator = new PortPositionLocator(getMainFigure(), PositionConstants.NONE);
+ getBorderedFigure().getBorderItemContainer().add(((ParameterEditPart)childEditPart).getFigure(), locator);
+ return true;
+ }
+
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean removeFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof ActivityCompositeNameEditPartCN) {
+ return true;
+ }
+ if(childEditPart instanceof ActivityCompositeCompartmentEditPartCN) {
+ IFigure pane = getPrimaryShape().getCompositeCompartmentFigure();
+ setupContentPane(pane); // FIXME each comparment should handle his content pane in his own way
+ pane.remove(((ActivityCompositeCompartmentEditPartCN)childEditPart).getFigure());
+ return true;
+ }
+ if(childEditPart instanceof PortEditPart) {
+ getBorderedFigure().getBorderItemContainer().remove(((PortEditPart)childEditPart).getFigure());
+ return true;
+ }
+ if(childEditPart instanceof ParameterEditPart) {
+ getBorderedFigure().getBorderItemContainer().remove(((ParameterEditPart)childEditPart).getFigure());
+ return true;
+ }
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected void addChildVisual(EditPart childEditPart, int index) {
+ if(addFixedChild(childEditPart)) {
+ return;
+ }
+ super.addChildVisual(childEditPart, -1);
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeChildVisual(EditPart childEditPart) {
+ if(removeFixedChild(childEditPart)) {
+ return;
+ }
+ super.removeChildVisual(childEditPart);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure getContentPaneFor(IGraphicalEditPart editPart) {
+ if(editPart instanceof ActivityCompositeCompartmentEditPartCN) {
+ return getPrimaryShape().getCompositeCompartmentFigure();
+ }
+ if(editPart instanceof IBorderItemEditPart) {
+ return getBorderedFigure().getBorderItemContainer();
+ }
+ return getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ protected NodeFigure createNodePlate() {
+ String prefElementId = "Activity";
+ IPreferenceStore store = UMLDiagramEditorPlugin.getInstance().getPreferenceStore();
+ String preferenceConstantWitdh = PreferenceInitializerForElementHelper.getpreferenceKey(getNotationView(), prefElementId, PreferenceConstantHelper.WIDTH);
+ String preferenceConstantHeight = PreferenceInitializerForElementHelper.getpreferenceKey(getNotationView(), prefElementId, PreferenceConstantHelper.HEIGHT);
+ DefaultSizeNodeFigure result = new DefaultSizeNodeFigure(store.getInt(preferenceConstantWitdh), store.getInt(preferenceConstantHeight));
+
+ return result;
+ }
+
+ /**
+ * Creates figure for this edit part.
+ *
+ * Body of this method does not depend on settings in generation model
+ * so you may safely remove <i>generated</i> tag and modify it.
+ *
+ * @generated
+ */
+ protected NodeFigure createMainFigure() {
+ NodeFigure figure = createNodePlate();
+ figure.setLayoutManager(new StackLayout());
+ IFigure shape = createNodeShape();
+ figure.add(shape);
+ contentPane = setupContentPane(shape);
+ return figure;
+ }
+
+ /**
+ * Default implementation treats passed figure as content pane.
+ * Respects layout one may have set for generated figure.
+ *
+ * @param nodeShape
+ * instance of generated figure class
+ * @generated
+ */
+ protected IFigure setupContentPane(IFigure nodeShape) {
+ if(nodeShape.getLayoutManager() == null) {
+ ConstrainedToolbarLayout layout = new ConstrainedToolbarLayout();
+ layout.setSpacing(5);
+ nodeShape.setLayoutManager(layout);
+ }
+ return nodeShape; // use nodeShape itself as contentPane
+ }
+
+ /**
+ * @generated
+ */
+ public IFigure getContentPane() {
+ if(contentPane != null) {
+ return contentPane;
+ }
+ return super.getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ protected void setForegroundColor(Color color) {
+ if(primaryShape != null) {
+ primaryShape.setForegroundColor(color);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLineWidth(int width) {
+ if(primaryShape instanceof Shape) {
+ ((Shape)primaryShape).setLineWidth(width);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLineType(int style) {
+ if(primaryShape instanceof Shape) {
+ ((Shape)primaryShape).setLineStyle(style);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public EditPart getPrimaryChildEditPart() {
+ return getChildBySemanticHint(UMLVisualIDRegistry.getType(ActivityCompositeNameEditPartCN.VISUAL_ID));
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnSource() {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(12);
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ types.add(UMLElementTypes.Substitution_4011);
+ types.add(UMLElementTypes.Realization_4006);
+ types.add(UMLElementTypes.Manifestation_4012);
+ types.add(UMLElementTypes.Abstraction_4007);
+ types.add(UMLElementTypes.Usage_4008);
+ types.add(UMLElementTypes.Deployment_4009);
+ types.add(UMLElementTypes.Dependency_4017);
+ types.add(UMLElementTypes.Dependency_4010);
+ types.add(UMLElementTypes.Generalization_4015);
+ types.add(UMLElementTypes.InformationFlow_4021);
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnSourceAndTarget(IGraphicalEditPart targetEditPart) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMATypesForTarget(IElementType relationshipType) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(relationshipType == UMLElementTypes.ComponentRealization_4004) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InterfaceRealization_4005) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Substitution_4011) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Realization_4006) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Manifestation_4012) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Abstraction_4007) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Usage_4008) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Deployment_4009) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4017) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4010) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Generalization_4015) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ } else if(relationshipType == UMLElementTypes.InformationFlow_4021) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnTarget() {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(17);
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ types.add(UMLElementTypes.Substitution_4011);
+ types.add(UMLElementTypes.Realization_4006);
+ types.add(UMLElementTypes.Manifestation_4012);
+ types.add(UMLElementTypes.Abstraction_4007);
+ types.add(UMLElementTypes.Usage_4008);
+ types.add(UMLElementTypes.Deployment_4009);
+ types.add(UMLElementTypes.Dependency_4017);
+ types.add(UMLElementTypes.Dependency_4010);
+ types.add(UMLElementTypes.Generalization_4015);
+ types.add(UMLElementTypes.TimeObservationEvent_4018);
+ types.add(UMLElementTypes.DurationObservationEvent_4019);
+ types.add(UMLElementTypes.InformationItemRepresented_4020);
+ types.add(UMLElementTypes.InformationFlow_4021);
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMATypesForSource(IElementType relationshipType) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(relationshipType == UMLElementTypes.CommentAnnotatedElement_4002) {
+ types.add(UMLElementTypes.Comment_2109);
+ types.add(UMLElementTypes.Comment_3097);
+ } else if(relationshipType == UMLElementTypes.ConstraintConstrainedElement_4003) {
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.ComponentRealization_4004) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InterfaceRealization_4005) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Substitution_4011) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Realization_4006) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Manifestation_4012) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Abstraction_4007) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Usage_4008) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Deployment_4009) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4017) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4010) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Generalization_4015) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ } else if(relationshipType == UMLElementTypes.TimeObservationEvent_4018) {
+ types.add(UMLElementTypes.TimeObservation_2094);
+ } else if(relationshipType == UMLElementTypes.DurationObservationEvent_4019) {
+ types.add(UMLElementTypes.DurationObservation_2093);
+ } else if(relationshipType == UMLElementTypes.InformationItemRepresented_4020) {
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.InformationItem_3094);
+ } else if(relationshipType == UMLElementTypes.InformationFlow_4021) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public Object getPreferredValue(EStructuralFeature feature) {
+ IPreferenceStore preferenceStore = (IPreferenceStore)getDiagramPreferencesHint().getPreferenceStore();
+ Object result = null;
+
+ if(feature == NotationPackage.eINSTANCE.getLineStyle_LineColor() || feature == NotationPackage.eINSTANCE.getFontStyle_FontColor() || feature == NotationPackage.eINSTANCE.getFillStyle_FillColor()) {
+ String prefColor = null;
+ if(feature == NotationPackage.eINSTANCE.getLineStyle_LineColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("Activity", PreferenceConstantHelper.COLOR_LINE);
+ } else if(feature == NotationPackage.eINSTANCE.getFontStyle_FontColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("Activity", PreferenceConstantHelper.COLOR_FONT);
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_FillColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("Activity", PreferenceConstantHelper.COLOR_FILL);
+ }
+ result = FigureUtilities.RGBToInteger(PreferenceConverter.getColor((IPreferenceStore)preferenceStore, prefColor));
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_Transparency() || feature == NotationPackage.eINSTANCE.getFillStyle_Gradient()) {
+ String prefGradient = PreferenceConstantHelper.getElementConstant("Activity", PreferenceConstantHelper.COLOR_GRADIENT);
+ GradientPreferenceConverter gradientPreferenceConverter = new GradientPreferenceConverter(preferenceStore.getString(prefGradient));
+ if(feature == NotationPackage.eINSTANCE.getFillStyle_Transparency()) {
+ result = new Integer(gradientPreferenceConverter.getTransparency());
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_Gradient()) {
+ result = gradientPreferenceConverter.getGradientData();
+ }
+ }
+
+ if(result == null) {
+ result = getStructuralFeatureValue(feature);
+ }
+ return result;
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ActivityCompositeNameEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ActivityCompositeNameEditPart.java
new file mode 100644
index 00000000000..b4bb102c599
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ActivityCompositeNameEditPart.java
@@ -0,0 +1,791 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EAnnotation;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.emf.transaction.RunnableWithResult;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.AccessibleEditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.requests.DirectEditRequest;
+import org.eclipse.gef.tools.DirectEditManager;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.CompartmentEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
+import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
+import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
+import org.eclipse.gmf.runtime.notation.FontStyle;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
+import org.eclipse.jface.viewers.ICellEditorValidator;
+import org.eclipse.jface.window.Window;
+import org.eclipse.papyrus.diagram.common.directedit.MultilineLabelDirectEditManager;
+import org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition;
+import org.eclipse.papyrus.diagram.common.editpolicies.IMaskManagedLabelEditPolicy;
+import org.eclipse.papyrus.diagram.common.figure.node.ILabelFigure;
+import org.eclipse.papyrus.diagram.common.util.DiagramEditPartsUtil;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLTextSelectionEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.diagram.composite.providers.UMLParserProvider;
+import org.eclipse.papyrus.extensionpoints.editors.Activator;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
+import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
+import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
+import org.eclipse.papyrus.umlutils.ui.VisualInformationPapyrusConstant;
+import org.eclipse.papyrus.umlutils.ui.helper.NameLabelIconHelper;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.AccessibleEvent;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.FontData;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.ui.PlatformUI;
+
+/**
+ * @generated
+ */
+public class ActivityCompositeNameEditPart extends CompartmentEditPart implements ITextAwareEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 5112;
+
+ /**
+ * @generated
+ */
+ private DirectEditManager manager;
+
+ /**
+ * @generated
+ */
+ private IParser parser;
+
+ /**
+ * @generated
+ */
+ private List<?> parserElements;
+
+ /**
+ * @generated
+ */
+ private String defaultText;
+
+ /**
+ * direct edition mode (default, undefined, registered editor, etc.)
+ *
+ * @generated
+ */
+ protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
+
+ /**
+ * configuration from a registered edit dialog
+ *
+ * @generated
+ */
+ protected IDirectEditorConfiguration configuration;
+
+ /**
+ * @generated
+ */
+ public ActivityCompositeNameEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
+ installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new CompositeStructureDiagramEditPart.NodeLabelDragPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelTextHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getText();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getText();
+ } else {
+ return ((Label)figure).getText();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelTextHelper(IFigure figure, String text) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setText(text);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setText(text);
+ } else {
+ ((Label)figure).setText(text);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIconHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getIcon();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getIcon();
+ } else {
+ return ((Label)figure).getIcon();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelIconHelper(IFigure figure, Image icon) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setIcon(icon);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setIcon(icon);
+ } else {
+ ((Label)figure).setIcon(icon);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabel(WrappingLabel figure) {
+ unregisterVisuals();
+ setFigure(figure);
+ defaultText = getLabelTextHelper(figure);
+ registerVisuals();
+ refreshVisuals();
+ }
+
+ /**
+ * @generated
+ */
+ protected List getModelChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject getParserElement() {
+ return resolveSemanticElement();
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIcon() {
+ EObject parserElement = getParserElement();
+ if(parserElement == null) {
+ return null;
+ }
+
+ List<View> views = DiagramEditPartsUtil.findViews(parserElement, getViewer());
+ for(View view : views) {
+ if(NameLabelIconHelper.showLabelIcon(view)) {
+ return UMLElementTypes.getImage(parserElement.eClass());
+ }
+ }
+ return null;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelText() {
+ String text = null;
+ EObject parserElement = getParserElement();
+ if(parserElement != null && getParser() != null) {
+ text = getParser().getPrintString(new EObjectAdapter(parserElement), getParserOptions().intValue());
+ }
+ if(text == null || text.length() == 0) {
+ text = defaultText;
+ }
+ return text;
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabelText(String text) {
+ setLabelTextHelper(getFigure(), text);
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public String getEditText() {
+ if(getParserElement() == null || getParser() == null) {
+ return ""; //$NON-NLS-1$
+ }
+ return getParser().getEditString(new EObjectAdapter(getParserElement()), getParserOptions().intValue());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean isEditable() {
+ return getParser() != null;
+ }
+
+ /**
+ * @generated
+ */
+ public ICellEditorValidator getEditTextValidator() {
+ return new ICellEditorValidator() {
+
+ public String isValid(final Object value) {
+ if(value instanceof String) {
+ final EObject element = getParserElement();
+ final IParser parser = getParser();
+ try {
+ IParserEditStatus valid = (IParserEditStatus)getEditingDomain().runExclusive(new RunnableWithResult.Impl() {
+
+ public void run() {
+ setResult(parser.isValidEditString(new EObjectAdapter(element), (String)value));
+ }
+ });
+ return valid.getCode() == ParserEditStatus.EDITABLE ? null : valid.getMessage();
+ } catch (InterruptedException ie) {
+ ie.printStackTrace();
+ }
+ }
+
+ // shouldn't get here
+ return null;
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ public IContentAssistProcessor getCompletionProcessor() {
+ if(getParserElement() == null || getParser() == null) {
+ return null;
+ }
+ return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
+ }
+
+ /**
+ * @generated
+ */
+ public ParserOptions getParserOptions() {
+ return ParserOptions.NONE;
+ }
+
+ /**
+ * @generated
+ */
+ public IParser getParser() {
+ if(parser == null) {
+ parser = UMLParserProvider.getParser(UMLElementTypes.Activity_2060, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.diagram.composite.edit.parts.ActivityCompositeNameEditPart.VISUAL_ID));
+ }
+ return parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected DirectEditManager getManager() {
+ if(manager == null) {
+ setManager(new MultilineLabelDirectEditManager(this, MultilineLabelDirectEditManager.getTextCellEditorClass(this), UMLEditPartFactory.getTextCellEditorLocator(this)));
+ }
+ return manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setManager(DirectEditManager manager) {
+ this.manager = manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit() {
+ getManager().show();
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit(Point eventLocation) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(eventLocation.getSWTPoint());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void performDirectEdit(char initialCharacter) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(initialCharacter);
+ } else {
+ performDirectEdit();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEditRequest(Request request) {
+
+ final Request theRequest = request;
+
+ if(IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
+ directEditionMode = getDirectEditionType();
+ }
+ switch(directEditionMode) {
+ case IDirectEdition.NO_DIRECT_EDITION:
+ // no direct edition mode => does nothing
+ return;
+ case IDirectEdition.EXTENDED_DIRECT_EDITOR:
+ updateExtendedEditorConfiguration();
+ if(configuration == null || configuration.getLanguage() == null) {
+ performDefaultDirectEditorEdit(theRequest);
+ } else {
+ configuration.preEditAction(resolveSemanticElement());
+ Dialog dialog = null;
+ if(configuration instanceof IPopupEditorConfiguration) {
+ IPopupEditorHelper helper = ((IPopupEditorConfiguration)configuration).createPopupEditorHelper(this);
+ helper.showEditor();
+ return;
+ } else if(configuration instanceof IAdvancedEditorConfiguration) {
+ dialog = ((IAdvancedEditorConfiguration)configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
+ } else if(configuration instanceof IDirectEditorConfiguration) {
+ dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), ((IDirectEditorConfiguration)configuration).getTextToEdit(resolveSemanticElement()), (IDirectEditorConfiguration)configuration);
+ } else {
+ return;
+ }
+ final Dialog finalDialog = dialog;
+
+ if(Window.OK == dialog.open()) {
+ TransactionalEditingDomain domain = getEditingDomain();
+ RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
+
+ @Override
+ protected void doExecute() {
+ configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog)finalDialog).getValue());
+
+ }
+ };
+ domain.getCommandStack().execute(command);
+ }
+ }
+ break;
+ case IDirectEdition.DEFAULT_DIRECT_EDITOR:
+
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ break;
+ default:
+ break;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshLabel();
+ refreshFont();
+ refreshFontColor();
+ refreshUnderline();
+ refreshStrikeThrough();
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshLabel() {
+ EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
+ if(maskLabelPolicy == null) {
+ setLabelTextHelper(getFigure(), getLabelText());
+ setLabelIconHelper(getFigure(), getLabelIcon());
+ }
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshUnderline() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextUnderline(style.isUnderline());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshStrikeThrough() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextStrikeThrough(style.isStrikeThrough());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshFont() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null) {
+ FontData fontData = new FontData(style.getFontName(), style.getFontHeight(), (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
+ setFont(fontData);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setFontColor(Color color) {
+ getFigure().setForegroundColor(color);
+ }
+
+ /**
+ * @generated
+ */
+ protected void addSemanticListeners() {
+ if(getParser() instanceof ISemanticParser) {
+ EObject element = resolveSemanticElement();
+ parserElements = ((ISemanticParser)getParser()).getSemanticElementsBeingParsed(element);
+ for(int i = 0; i < parserElements.size(); i++) {
+ addListenerFilter("SemanticModel" + i, this, (EObject)parserElements.get(i)); //$NON-NLS-1$
+ }
+ } else {
+ super.addSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeSemanticListeners() {
+ if(parserElements != null) {
+ for(int i = 0; i < parserElements.size(); i++) {
+ removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
+ }
+ } else {
+ super.removeSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected AccessibleEditPart getAccessibleEditPart() {
+ if(accessibleEP == null) {
+ accessibleEP = new AccessibleGraphicalEditPart() {
+
+ public void getName(AccessibleEvent e) {
+ e.result = getLabelTextHelper(getFigure());
+ }
+ };
+ }
+ return accessibleEP;
+ }
+
+ /**
+ * @generated
+ */
+ private View getFontStyleOwnerView() {
+ return (View)getModel();
+ }
+
+ /**
+ * Returns the kind of associated editor for direct edition.
+ *
+ * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition
+ * @generated
+ */
+ public int getDirectEditionType() {
+ if(checkExtendedEditor()) {
+ initExtendedEditorConfiguration();
+ return IDirectEdition.EXTENDED_DIRECT_EDITOR;
+ }
+ if(checkDefaultEdition()) {
+ return IDirectEdition.DEFAULT_DIRECT_EDITOR;
+ }
+
+ // not a named element. no specific editor => do nothing
+ return IDirectEdition.NO_DIRECT_EDITION;
+ }
+
+ /**
+ * Checks if an extended editor is present.
+ *
+ * @return <code>true</code> if an extended editor is present.
+ * @generated
+ */
+ protected boolean checkExtendedEditor() {
+ if(resolveSemanticElement() != null) {
+ return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ return false;
+ }
+
+ /**
+ * Checks if a default direct edition is available
+ *
+ * @return <code>true</code> if a default direct edition is available
+ * @generated
+ */
+ protected boolean checkDefaultEdition() {
+ return (getParser() != null);
+ }
+
+ /**
+ * Initializes the extended editor configuration
+ *
+ * @generated
+ */
+ protected void initExtendedEditorConfiguration() {
+ if(configuration == null) {
+ final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("")) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else {
+ configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ }
+ }
+
+ /**
+ * Updates the preference configuration
+ *
+ * @generated
+ */
+ protected void updateExtendedEditorConfiguration() {
+ String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("") && languagePreferred != configuration.getLanguage()) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else if(IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
+ configuration = null;
+ }
+ }
+
+ /**
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
+ protected void performDefaultDirectEditorEdit(final Request theRequest) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void addNotationalListeners() {
+ super.addNotationalListeners();
+ addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeNotationalListeners() {
+ super.removeNotationalListeners();
+ removeListenerFilter("PrimaryView"); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void handleNotificationEvent(Notification event) {
+ refreshLabel();
+ Object feature = event.getFeature();
+ if(NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
+ Integer c = (Integer)event.getNewValue();
+ setFontColor(DiagramColorRegistry.getInstance().getColor(c));
+ } else if(NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
+ refreshUnderline();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
+ refreshStrikeThrough();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
+ refreshFont();
+ } else {
+ if(getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
+ refreshLabel();
+ }
+ if(getParser() instanceof ISemanticParser) {
+ ISemanticParser modelParser = (ISemanticParser)getParser();
+ if(modelParser.areSemanticElementsAffected(null, event)) {
+ removeSemanticListeners();
+ if(resolveSemanticElement() != null) {
+ addSemanticListeners();
+ }
+ refreshLabel();
+ }
+ }
+ }
+
+ if(event.getNewValue() instanceof EAnnotation && VisualInformationPapyrusConstant.DISPLAY_NAMELABELICON.equals(((EAnnotation)event.getNewValue()).getSource())) {
+ refreshLabel();
+ }
+
+ super.handleNotificationEvent(event);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createFigure() {
+ // Parent should assign one using setLabel() method
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ private static final String ADD_PARENT_MODEL = "AddParentModel";
+
+ /**
+ * @generated
+ */
+ public void activate() {
+ super.activate();
+ addOwnerElementListeners();
+ }
+
+ /**
+ * @generated
+ */
+ protected void addOwnerElementListeners() {
+ addListenerFilter(ADD_PARENT_MODEL, this, ((View)getParent().getModel())); //$NON-NLS-1$
+
+ }
+
+ /**
+ * @generated
+ */
+ public void deactivate() {
+ removeOwnerElementListeners();
+ super.deactivate();
+
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeOwnerElementListeners() {
+ removeListenerFilter(ADD_PARENT_MODEL);
+
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ActivityCompositeNameEditPartCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ActivityCompositeNameEditPartCN.java
new file mode 100644
index 00000000000..e9fc121d7f5
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ActivityCompositeNameEditPartCN.java
@@ -0,0 +1,791 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EAnnotation;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.emf.transaction.RunnableWithResult;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.AccessibleEditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.requests.DirectEditRequest;
+import org.eclipse.gef.tools.DirectEditManager;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.CompartmentEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
+import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
+import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
+import org.eclipse.gmf.runtime.notation.FontStyle;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
+import org.eclipse.jface.viewers.ICellEditorValidator;
+import org.eclipse.jface.window.Window;
+import org.eclipse.papyrus.diagram.common.directedit.MultilineLabelDirectEditManager;
+import org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition;
+import org.eclipse.papyrus.diagram.common.editpolicies.IMaskManagedLabelEditPolicy;
+import org.eclipse.papyrus.diagram.common.figure.node.ILabelFigure;
+import org.eclipse.papyrus.diagram.common.util.DiagramEditPartsUtil;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLTextSelectionEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.diagram.composite.providers.UMLParserProvider;
+import org.eclipse.papyrus.extensionpoints.editors.Activator;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
+import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
+import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
+import org.eclipse.papyrus.umlutils.ui.VisualInformationPapyrusConstant;
+import org.eclipse.papyrus.umlutils.ui.helper.NameLabelIconHelper;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.AccessibleEvent;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.FontData;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.ui.PlatformUI;
+
+/**
+ * @generated
+ */
+public class ActivityCompositeNameEditPartCN extends CompartmentEditPart implements ITextAwareEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 5128;
+
+ /**
+ * @generated
+ */
+ private DirectEditManager manager;
+
+ /**
+ * @generated
+ */
+ private IParser parser;
+
+ /**
+ * @generated
+ */
+ private List<?> parserElements;
+
+ /**
+ * @generated
+ */
+ private String defaultText;
+
+ /**
+ * direct edition mode (default, undefined, registered editor, etc.)
+ *
+ * @generated
+ */
+ protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
+
+ /**
+ * configuration from a registered edit dialog
+ *
+ * @generated
+ */
+ protected IDirectEditorConfiguration configuration;
+
+ /**
+ * @generated
+ */
+ public ActivityCompositeNameEditPartCN(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
+ installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new CompositeStructureDiagramEditPart.NodeLabelDragPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelTextHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getText();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getText();
+ } else {
+ return ((Label)figure).getText();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelTextHelper(IFigure figure, String text) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setText(text);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setText(text);
+ } else {
+ ((Label)figure).setText(text);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIconHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getIcon();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getIcon();
+ } else {
+ return ((Label)figure).getIcon();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelIconHelper(IFigure figure, Image icon) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setIcon(icon);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setIcon(icon);
+ } else {
+ ((Label)figure).setIcon(icon);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabel(WrappingLabel figure) {
+ unregisterVisuals();
+ setFigure(figure);
+ defaultText = getLabelTextHelper(figure);
+ registerVisuals();
+ refreshVisuals();
+ }
+
+ /**
+ * @generated
+ */
+ protected List getModelChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject getParserElement() {
+ return resolveSemanticElement();
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIcon() {
+ EObject parserElement = getParserElement();
+ if(parserElement == null) {
+ return null;
+ }
+
+ List<View> views = DiagramEditPartsUtil.findViews(parserElement, getViewer());
+ for(View view : views) {
+ if(NameLabelIconHelper.showLabelIcon(view)) {
+ return UMLElementTypes.getImage(parserElement.eClass());
+ }
+ }
+ return null;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelText() {
+ String text = null;
+ EObject parserElement = getParserElement();
+ if(parserElement != null && getParser() != null) {
+ text = getParser().getPrintString(new EObjectAdapter(parserElement), getParserOptions().intValue());
+ }
+ if(text == null || text.length() == 0) {
+ text = defaultText;
+ }
+ return text;
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabelText(String text) {
+ setLabelTextHelper(getFigure(), text);
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public String getEditText() {
+ if(getParserElement() == null || getParser() == null) {
+ return ""; //$NON-NLS-1$
+ }
+ return getParser().getEditString(new EObjectAdapter(getParserElement()), getParserOptions().intValue());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean isEditable() {
+ return getParser() != null;
+ }
+
+ /**
+ * @generated
+ */
+ public ICellEditorValidator getEditTextValidator() {
+ return new ICellEditorValidator() {
+
+ public String isValid(final Object value) {
+ if(value instanceof String) {
+ final EObject element = getParserElement();
+ final IParser parser = getParser();
+ try {
+ IParserEditStatus valid = (IParserEditStatus)getEditingDomain().runExclusive(new RunnableWithResult.Impl() {
+
+ public void run() {
+ setResult(parser.isValidEditString(new EObjectAdapter(element), (String)value));
+ }
+ });
+ return valid.getCode() == ParserEditStatus.EDITABLE ? null : valid.getMessage();
+ } catch (InterruptedException ie) {
+ ie.printStackTrace();
+ }
+ }
+
+ // shouldn't get here
+ return null;
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ public IContentAssistProcessor getCompletionProcessor() {
+ if(getParserElement() == null || getParser() == null) {
+ return null;
+ }
+ return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
+ }
+
+ /**
+ * @generated
+ */
+ public ParserOptions getParserOptions() {
+ return ParserOptions.NONE;
+ }
+
+ /**
+ * @generated
+ */
+ public IParser getParser() {
+ if(parser == null) {
+ parser = UMLParserProvider.getParser(UMLElementTypes.Activity_3072, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.diagram.composite.edit.parts.ActivityCompositeNameEditPartCN.VISUAL_ID));
+ }
+ return parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected DirectEditManager getManager() {
+ if(manager == null) {
+ setManager(new MultilineLabelDirectEditManager(this, MultilineLabelDirectEditManager.getTextCellEditorClass(this), UMLEditPartFactory.getTextCellEditorLocator(this)));
+ }
+ return manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setManager(DirectEditManager manager) {
+ this.manager = manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit() {
+ getManager().show();
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit(Point eventLocation) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(eventLocation.getSWTPoint());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void performDirectEdit(char initialCharacter) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(initialCharacter);
+ } else {
+ performDirectEdit();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEditRequest(Request request) {
+
+ final Request theRequest = request;
+
+ if(IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
+ directEditionMode = getDirectEditionType();
+ }
+ switch(directEditionMode) {
+ case IDirectEdition.NO_DIRECT_EDITION:
+ // no direct edition mode => does nothing
+ return;
+ case IDirectEdition.EXTENDED_DIRECT_EDITOR:
+ updateExtendedEditorConfiguration();
+ if(configuration == null || configuration.getLanguage() == null) {
+ performDefaultDirectEditorEdit(theRequest);
+ } else {
+ configuration.preEditAction(resolveSemanticElement());
+ Dialog dialog = null;
+ if(configuration instanceof IPopupEditorConfiguration) {
+ IPopupEditorHelper helper = ((IPopupEditorConfiguration)configuration).createPopupEditorHelper(this);
+ helper.showEditor();
+ return;
+ } else if(configuration instanceof IAdvancedEditorConfiguration) {
+ dialog = ((IAdvancedEditorConfiguration)configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
+ } else if(configuration instanceof IDirectEditorConfiguration) {
+ dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), ((IDirectEditorConfiguration)configuration).getTextToEdit(resolveSemanticElement()), (IDirectEditorConfiguration)configuration);
+ } else {
+ return;
+ }
+ final Dialog finalDialog = dialog;
+
+ if(Window.OK == dialog.open()) {
+ TransactionalEditingDomain domain = getEditingDomain();
+ RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
+
+ @Override
+ protected void doExecute() {
+ configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog)finalDialog).getValue());
+
+ }
+ };
+ domain.getCommandStack().execute(command);
+ }
+ }
+ break;
+ case IDirectEdition.DEFAULT_DIRECT_EDITOR:
+
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ break;
+ default:
+ break;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshLabel();
+ refreshFont();
+ refreshFontColor();
+ refreshUnderline();
+ refreshStrikeThrough();
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshLabel() {
+ EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
+ if(maskLabelPolicy == null) {
+ setLabelTextHelper(getFigure(), getLabelText());
+ setLabelIconHelper(getFigure(), getLabelIcon());
+ }
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshUnderline() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextUnderline(style.isUnderline());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshStrikeThrough() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextStrikeThrough(style.isStrikeThrough());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshFont() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null) {
+ FontData fontData = new FontData(style.getFontName(), style.getFontHeight(), (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
+ setFont(fontData);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setFontColor(Color color) {
+ getFigure().setForegroundColor(color);
+ }
+
+ /**
+ * @generated
+ */
+ protected void addSemanticListeners() {
+ if(getParser() instanceof ISemanticParser) {
+ EObject element = resolveSemanticElement();
+ parserElements = ((ISemanticParser)getParser()).getSemanticElementsBeingParsed(element);
+ for(int i = 0; i < parserElements.size(); i++) {
+ addListenerFilter("SemanticModel" + i, this, (EObject)parserElements.get(i)); //$NON-NLS-1$
+ }
+ } else {
+ super.addSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeSemanticListeners() {
+ if(parserElements != null) {
+ for(int i = 0; i < parserElements.size(); i++) {
+ removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
+ }
+ } else {
+ super.removeSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected AccessibleEditPart getAccessibleEditPart() {
+ if(accessibleEP == null) {
+ accessibleEP = new AccessibleGraphicalEditPart() {
+
+ public void getName(AccessibleEvent e) {
+ e.result = getLabelTextHelper(getFigure());
+ }
+ };
+ }
+ return accessibleEP;
+ }
+
+ /**
+ * @generated
+ */
+ private View getFontStyleOwnerView() {
+ return (View)getModel();
+ }
+
+ /**
+ * Returns the kind of associated editor for direct edition.
+ *
+ * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition
+ * @generated
+ */
+ public int getDirectEditionType() {
+ if(checkExtendedEditor()) {
+ initExtendedEditorConfiguration();
+ return IDirectEdition.EXTENDED_DIRECT_EDITOR;
+ }
+ if(checkDefaultEdition()) {
+ return IDirectEdition.DEFAULT_DIRECT_EDITOR;
+ }
+
+ // not a named element. no specific editor => do nothing
+ return IDirectEdition.NO_DIRECT_EDITION;
+ }
+
+ /**
+ * Checks if an extended editor is present.
+ *
+ * @return <code>true</code> if an extended editor is present.
+ * @generated
+ */
+ protected boolean checkExtendedEditor() {
+ if(resolveSemanticElement() != null) {
+ return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ return false;
+ }
+
+ /**
+ * Checks if a default direct edition is available
+ *
+ * @return <code>true</code> if a default direct edition is available
+ * @generated
+ */
+ protected boolean checkDefaultEdition() {
+ return (getParser() != null);
+ }
+
+ /**
+ * Initializes the extended editor configuration
+ *
+ * @generated
+ */
+ protected void initExtendedEditorConfiguration() {
+ if(configuration == null) {
+ final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("")) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else {
+ configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ }
+ }
+
+ /**
+ * Updates the preference configuration
+ *
+ * @generated
+ */
+ protected void updateExtendedEditorConfiguration() {
+ String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("") && languagePreferred != configuration.getLanguage()) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else if(IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
+ configuration = null;
+ }
+ }
+
+ /**
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
+ protected void performDefaultDirectEditorEdit(final Request theRequest) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void addNotationalListeners() {
+ super.addNotationalListeners();
+ addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeNotationalListeners() {
+ super.removeNotationalListeners();
+ removeListenerFilter("PrimaryView"); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void handleNotificationEvent(Notification event) {
+ refreshLabel();
+ Object feature = event.getFeature();
+ if(NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
+ Integer c = (Integer)event.getNewValue();
+ setFontColor(DiagramColorRegistry.getInstance().getColor(c));
+ } else if(NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
+ refreshUnderline();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
+ refreshStrikeThrough();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
+ refreshFont();
+ } else {
+ if(getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
+ refreshLabel();
+ }
+ if(getParser() instanceof ISemanticParser) {
+ ISemanticParser modelParser = (ISemanticParser)getParser();
+ if(modelParser.areSemanticElementsAffected(null, event)) {
+ removeSemanticListeners();
+ if(resolveSemanticElement() != null) {
+ addSemanticListeners();
+ }
+ refreshLabel();
+ }
+ }
+ }
+
+ if(event.getNewValue() instanceof EAnnotation && VisualInformationPapyrusConstant.DISPLAY_NAMELABELICON.equals(((EAnnotation)event.getNewValue()).getSource())) {
+ refreshLabel();
+ }
+
+ super.handleNotificationEvent(event);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createFigure() {
+ // Parent should assign one using setLabel() method
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ private static final String ADD_PARENT_MODEL = "AddParentModel";
+
+ /**
+ * @generated
+ */
+ public void activate() {
+ super.activate();
+ addOwnerElementListeners();
+ }
+
+ /**
+ * @generated
+ */
+ protected void addOwnerElementListeners() {
+ addListenerFilter(ADD_PARENT_MODEL, this, ((View)getParent().getModel())); //$NON-NLS-1$
+
+ }
+
+ /**
+ * @generated
+ */
+ public void deactivate() {
+ removeOwnerElementListeners();
+ super.deactivate();
+
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeOwnerElementListeners() {
+ removeListenerFilter(ADD_PARENT_MODEL);
+
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ActivityEditPartCLN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ActivityEditPartCLN.java
new file mode 100644
index 00000000000..1a86b577e94
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ActivityEditPartCLN.java
@@ -0,0 +1,781 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EAnnotation;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.emf.transaction.RunnableWithResult;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.AccessibleEditPart;
+import org.eclipse.gef.DragTracker;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.requests.DirectEditRequest;
+import org.eclipse.gef.requests.SelectionRequest;
+import org.eclipse.gef.tools.DirectEditManager;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.CompartmentEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IPrimaryEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.ListItemComponentEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
+import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
+import org.eclipse.gmf.runtime.diagram.ui.tools.DragEditPartsTrackerEx;
+import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
+import org.eclipse.gmf.runtime.notation.FontStyle;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
+import org.eclipse.jface.viewers.ICellEditorValidator;
+import org.eclipse.jface.window.Window;
+import org.eclipse.papyrus.diagram.common.directedit.MultilineLabelDirectEditManager;
+import org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition;
+import org.eclipse.papyrus.diagram.common.editpolicies.IMaskManagedLabelEditPolicy;
+import org.eclipse.papyrus.diagram.common.figure.node.ILabelFigure;
+import org.eclipse.papyrus.diagram.common.util.DiagramEditPartsUtil;
+import org.eclipse.papyrus.diagram.composite.edit.policies.ActivityItemSemanticEditPolicyCLN;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLTextNonResizableEditPolicy;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLTextSelectionEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.diagram.composite.providers.UMLParserProvider;
+import org.eclipse.papyrus.extensionpoints.editors.Activator;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
+import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
+import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
+import org.eclipse.papyrus.umlutils.ui.VisualInformationPapyrusConstant;
+import org.eclipse.papyrus.umlutils.ui.helper.NameLabelIconHelper;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.AccessibleEvent;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.FontData;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.ui.PlatformUI;
+
+/**
+ * @generated
+ */
+public class ActivityEditPartCLN
+
+extends CompartmentEditPart
+
+implements ITextAwareEditPart, IPrimaryEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 3103;
+
+ /**
+ * @generated
+ */
+ private DirectEditManager manager;
+
+ /**
+ * @generated
+ */
+ private IParser parser;
+
+ /**
+ * @generated
+ */
+ private List<?> parserElements;
+
+ /**
+ * @generated
+ */
+ private String defaultText;
+
+ /**
+ * direct edition mode (default, undefined, registered editor, etc.)
+ *
+ * @generated
+ */
+ protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
+
+ /**
+ * configuration from a registered edit dialog
+ *
+ * @generated
+ */
+ protected IDirectEditorConfiguration configuration;
+
+ /**
+ * @generated
+ */
+ public ActivityEditPartCLN(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ public DragTracker getDragTracker(Request request) {
+ if(request instanceof SelectionRequest && ((SelectionRequest)request).getLastButtonPressed() == 3) {
+ return null;
+ }
+ return new DragEditPartsTrackerEx(this);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new ActivityItemSemanticEditPolicyCLN());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new UMLTextNonResizableEditPolicy());
+ installEditPolicy(EditPolicy.COMPONENT_ROLE, new ListItemComponentEditPolicy());
+ installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelTextHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getText();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getText();
+ } else {
+ return ((Label)figure).getText();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelTextHelper(IFigure figure, String text) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setText(text);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setText(text);
+ } else {
+ ((Label)figure).setText(text);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIconHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getIcon();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getIcon();
+ } else {
+ return ((Label)figure).getIcon();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelIconHelper(IFigure figure, Image icon) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setIcon(icon);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setIcon(icon);
+ } else {
+ ((Label)figure).setIcon(icon);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabel(IFigure figure) {
+ unregisterVisuals();
+ setFigure(figure);
+ defaultText = getLabelTextHelper(figure);
+ registerVisuals();
+ refreshVisuals();
+ }
+
+ /**
+ * @generated
+ */
+ protected List getModelChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject getParserElement() {
+ return resolveSemanticElement();
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIcon() {
+ EObject parserElement = getParserElement();
+ if(parserElement == null) {
+ return null;
+ }
+
+ List<View> views = DiagramEditPartsUtil.findViews(parserElement, getViewer());
+ for(View view : views) {
+ if(NameLabelIconHelper.showLabelIcon(view)) {
+ return UMLElementTypes.getImage(parserElement.eClass());
+ }
+ }
+ return null;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelText() {
+ String text = null;
+ EObject parserElement = getParserElement();
+ if(parserElement != null && getParser() != null) {
+ text = getParser().getPrintString(new EObjectAdapter(parserElement), getParserOptions().intValue());
+ }
+ if(text == null || text.length() == 0) {
+ text = defaultText;
+ }
+ return text;
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabelText(String text) {
+ setLabelTextHelper(getFigure(), text);
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public String getEditText() {
+ if(getParserElement() == null || getParser() == null) {
+ return ""; //$NON-NLS-1$
+ }
+ return getParser().getEditString(new EObjectAdapter(getParserElement()), getParserOptions().intValue());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean isEditable() {
+ return getParser() != null;
+ }
+
+ /**
+ * @generated
+ */
+ public ICellEditorValidator getEditTextValidator() {
+ return new ICellEditorValidator() {
+
+ public String isValid(final Object value) {
+ if(value instanceof String) {
+ final EObject element = getParserElement();
+ final IParser parser = getParser();
+ try {
+ IParserEditStatus valid = (IParserEditStatus)getEditingDomain().runExclusive(new RunnableWithResult.Impl() {
+
+ public void run() {
+ setResult(parser.isValidEditString(new EObjectAdapter(element), (String)value));
+ }
+ });
+ return valid.getCode() == ParserEditStatus.EDITABLE ? null : valid.getMessage();
+ } catch (InterruptedException ie) {
+ ie.printStackTrace();
+ }
+ }
+
+ // shouldn't get here
+ return null;
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ public IContentAssistProcessor getCompletionProcessor() {
+ if(getParserElement() == null || getParser() == null) {
+ return null;
+ }
+ return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
+ }
+
+ /**
+ * @generated
+ */
+ public ParserOptions getParserOptions() {
+ return ParserOptions.NONE;
+ }
+
+ /**
+ * @generated
+ */
+ public IParser getParser() {
+ if(parser == null) {
+ parser = UMLParserProvider.getParser(UMLElementTypes.Activity_3103, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.diagram.composite.edit.parts.ActivityEditPartCLN.VISUAL_ID));
+ }
+ return parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected DirectEditManager getManager() {
+ if(manager == null) {
+ setManager(new MultilineLabelDirectEditManager(this, MultilineLabelDirectEditManager.getTextCellEditorClass(this), UMLEditPartFactory.getTextCellEditorLocator(this)));
+ }
+ return manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setManager(DirectEditManager manager) {
+ this.manager = manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit() {
+ getManager().show();
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit(Point eventLocation) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(eventLocation.getSWTPoint());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void performDirectEdit(char initialCharacter) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(initialCharacter);
+ } else {
+ performDirectEdit();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEditRequest(Request request) {
+
+ final Request theRequest = request;
+
+ if(IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
+ directEditionMode = getDirectEditionType();
+ }
+ switch(directEditionMode) {
+ case IDirectEdition.NO_DIRECT_EDITION:
+ // no direct edition mode => does nothing
+ return;
+ case IDirectEdition.EXTENDED_DIRECT_EDITOR:
+ updateExtendedEditorConfiguration();
+ if(configuration == null || configuration.getLanguage() == null) {
+ performDefaultDirectEditorEdit(theRequest);
+ } else {
+ configuration.preEditAction(resolveSemanticElement());
+ Dialog dialog = null;
+ if(configuration instanceof IPopupEditorConfiguration) {
+ IPopupEditorHelper helper = ((IPopupEditorConfiguration)configuration).createPopupEditorHelper(this);
+ helper.showEditor();
+ return;
+ } else if(configuration instanceof IAdvancedEditorConfiguration) {
+ dialog = ((IAdvancedEditorConfiguration)configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
+ } else if(configuration instanceof IDirectEditorConfiguration) {
+ dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), ((IDirectEditorConfiguration)configuration).getTextToEdit(resolveSemanticElement()), (IDirectEditorConfiguration)configuration);
+ } else {
+ return;
+ }
+ final Dialog finalDialog = dialog;
+
+ if(Window.OK == dialog.open()) {
+ TransactionalEditingDomain domain = getEditingDomain();
+ RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
+
+ @Override
+ protected void doExecute() {
+ configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog)finalDialog).getValue());
+
+ }
+ };
+ domain.getCommandStack().execute(command);
+ }
+ }
+ break;
+ case IDirectEdition.DEFAULT_DIRECT_EDITOR:
+
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ break;
+ default:
+ break;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshLabel();
+ refreshFont();
+ refreshFontColor();
+ refreshUnderline();
+ refreshStrikeThrough();
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshLabel() {
+ EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
+ if(maskLabelPolicy == null) {
+ setLabelTextHelper(getFigure(), getLabelText());
+ setLabelIconHelper(getFigure(), getLabelIcon());
+ }
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshUnderline() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextUnderline(style.isUnderline());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshStrikeThrough() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextStrikeThrough(style.isStrikeThrough());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshFont() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null) {
+ FontData fontData = new FontData(style.getFontName(), style.getFontHeight(), (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
+ setFont(fontData);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setFontColor(Color color) {
+ getFigure().setForegroundColor(color);
+ }
+
+ /**
+ * @generated
+ */
+ protected void addSemanticListeners() {
+ if(getParser() instanceof ISemanticParser) {
+ EObject element = resolveSemanticElement();
+ parserElements = ((ISemanticParser)getParser()).getSemanticElementsBeingParsed(element);
+ for(int i = 0; i < parserElements.size(); i++) {
+ addListenerFilter("SemanticModel" + i, this, (EObject)parserElements.get(i)); //$NON-NLS-1$
+ }
+ } else {
+ super.addSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeSemanticListeners() {
+ if(parserElements != null) {
+ for(int i = 0; i < parserElements.size(); i++) {
+ removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
+ }
+ } else {
+ super.removeSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected AccessibleEditPart getAccessibleEditPart() {
+ if(accessibleEP == null) {
+ accessibleEP = new AccessibleGraphicalEditPart() {
+
+ public void getName(AccessibleEvent e) {
+ e.result = getLabelTextHelper(getFigure());
+ }
+ };
+ }
+ return accessibleEP;
+ }
+
+ /**
+ * @generated
+ */
+ private View getFontStyleOwnerView() {
+ return getPrimaryView();
+ }
+
+ /**
+ * Returns the kind of associated editor for direct edition.
+ *
+ * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition
+ * @generated
+ */
+ public int getDirectEditionType() {
+ if(checkExtendedEditor()) {
+ initExtendedEditorConfiguration();
+ return IDirectEdition.EXTENDED_DIRECT_EDITOR;
+ }
+ if(checkDefaultEdition()) {
+ return IDirectEdition.DEFAULT_DIRECT_EDITOR;
+ }
+
+ // not a named element. no specific editor => do nothing
+ return IDirectEdition.NO_DIRECT_EDITION;
+ }
+
+ /**
+ * Checks if an extended editor is present.
+ *
+ * @return <code>true</code> if an extended editor is present.
+ * @generated
+ */
+ protected boolean checkExtendedEditor() {
+ if(resolveSemanticElement() != null) {
+ return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ return false;
+ }
+
+ /**
+ * Checks if a default direct edition is available
+ *
+ * @return <code>true</code> if a default direct edition is available
+ * @generated
+ */
+ protected boolean checkDefaultEdition() {
+ return (getParser() != null);
+ }
+
+ /**
+ * Initializes the extended editor configuration
+ *
+ * @generated
+ */
+ protected void initExtendedEditorConfiguration() {
+ if(configuration == null) {
+ final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("")) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else {
+ configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ }
+ }
+
+ /**
+ * Updates the preference configuration
+ *
+ * @generated
+ */
+ protected void updateExtendedEditorConfiguration() {
+ String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("") && languagePreferred != configuration.getLanguage()) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else if(IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
+ configuration = null;
+ }
+ }
+
+ /**
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
+ protected void performDefaultDirectEditorEdit(final Request theRequest) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void addNotationalListeners() {
+ super.addNotationalListeners();
+ addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeNotationalListeners() {
+ super.removeNotationalListeners();
+ removeListenerFilter("PrimaryView"); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void handleNotificationEvent(Notification event) {
+ Object feature = event.getFeature();
+ if(NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
+ Integer c = (Integer)event.getNewValue();
+ setFontColor(DiagramColorRegistry.getInstance().getColor(c));
+ } else if(NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
+ refreshUnderline();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
+ refreshStrikeThrough();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
+ refreshFont();
+ } else {
+ if(getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
+ refreshLabel();
+ }
+ if(getParser() instanceof ISemanticParser) {
+ ISemanticParser modelParser = (ISemanticParser)getParser();
+ if(modelParser.areSemanticElementsAffected(null, event)) {
+ removeSemanticListeners();
+ if(resolveSemanticElement() != null) {
+ addSemanticListeners();
+ }
+ refreshLabel();
+ }
+ }
+ }
+ if(event.getNewValue() instanceof EAnnotation && VisualInformationPapyrusConstant.DISPLAY_NAMELABELICON.equals(((EAnnotation)event.getNewValue()).getSource())) {
+ refreshLabel();
+ }
+ super.handleNotificationEvent(event);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createFigure() {
+ IFigure label = createFigurePrim();
+ defaultText = getLabelTextHelper(label);
+ return label;
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createFigurePrim() {
+ return new WrappingLabel();
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ActorEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ActorEditPart.java
new file mode 100644
index 00000000000..7f2b34d6e5d
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ActorEditPart.java
@@ -0,0 +1,5397 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.ArrayList;
+import java.util.LinkedList;
+import java.util.List;
+
+import org.eclipse.draw2d.ColorConstants;
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.RectangleFigure;
+import org.eclipse.draw2d.Shape;
+import org.eclipse.draw2d.StackLayout;
+import org.eclipse.emf.ecore.EStructuralFeature;
+import org.eclipse.gef.EditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.editpolicies.LayoutEditPolicy;
+import org.eclipse.gef.editpolicies.NonResizableEditPolicy;
+import org.eclipse.gef.requests.CreateRequest;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ShapeNodeEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.FigureUtilities;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.gef.ui.figures.DefaultSizeNodeFigure;
+import org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.jface.preference.PreferenceConverter;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.HyperLinkPopupBarEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.QualifiedNameDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.helper.PreferenceInitializerForElementHelper;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.GraphicalNodeEditPolicy;
+import org.eclipse.papyrus.diagram.composite.edit.policies.ActorItemSemanticEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorPlugin;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter;
+import org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.Font;
+import org.eclipse.swt.widgets.Display;
+
+/**
+ * @generated
+ */
+public class ActorEditPart extends
+
+ShapeNodeEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 2077;
+
+ /**
+ * @generated
+ */
+ protected IFigure contentPane;
+
+ /**
+ * @generated
+ */
+ protected IFigure primaryShape;
+
+ /**
+ * @generated
+ */
+ public ActorEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new ActorItemSemanticEditPolicy());
+ installEditPolicy(EditPolicy.LAYOUT_ROLE, createLayoutEditPolicy());
+ installEditPolicy(QualifiedNameDisplayEditPolicy.QUALIFIED_NAME_POLICY, new QualifiedNameDisplayEditPolicy());
+ installEditPolicy(AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeNodeLabelDisplayEditPolicy());
+ installEditPolicy(EditPolicyRoles.POPUPBAR_ROLE, new HyperLinkPopupBarEditPolicy());
+ installEditPolicy(EditPolicy.GRAPHICAL_NODE_ROLE, new GraphicalNodeEditPolicy());
+ // XXX need an SCR to runtime to have another abstract superclass that would let children add reasonable editpolicies
+ // removeEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CONNECTION_HANDLES_ROLE);
+ }
+
+ /**
+ * @generated
+ */
+ protected LayoutEditPolicy createLayoutEditPolicy() {
+ org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy lep = new org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy() {
+
+ protected EditPolicy createChildEditPolicy(EditPart child) {
+ EditPolicy result = child.getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(result == null) {
+ result = new NonResizableEditPolicy();
+ }
+ return result;
+ }
+
+ protected Command getMoveChildrenCommand(Request request) {
+ return null;
+ }
+
+ protected Command getCreateCommand(CreateRequest request) {
+ return null;
+ }
+ };
+ return lep;
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createNodeShape() {
+ return primaryShape = new NamedElementDescriptor();
+ }
+
+ /**
+ * @generated
+ */
+ public NamedElementDescriptor getPrimaryShape() {
+ return (NamedElementDescriptor)primaryShape;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean addFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof ActorNameEditPart) {
+ ((ActorNameEditPart)childEditPart).setLabel(getPrimaryShape().getNamedElementNameLabel());
+ return true;
+ }
+
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean removeFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof ActorNameEditPart) {
+ return true;
+ }
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected void addChildVisual(EditPart childEditPart, int index) {
+ if(addFixedChild(childEditPart)) {
+ return;
+ }
+ super.addChildVisual(childEditPart, -1);
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeChildVisual(EditPart childEditPart) {
+ if(removeFixedChild(childEditPart)) {
+ return;
+ }
+ super.removeChildVisual(childEditPart);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure getContentPaneFor(IGraphicalEditPart editPart) {
+ return getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ protected NodeFigure createNodePlate() {
+ String prefElementId = "Actor";
+ IPreferenceStore store = UMLDiagramEditorPlugin.getInstance().getPreferenceStore();
+ String preferenceConstantWitdh = PreferenceInitializerForElementHelper.getpreferenceKey(getNotationView(), prefElementId, PreferenceConstantHelper.WIDTH);
+ String preferenceConstantHeight = PreferenceInitializerForElementHelper.getpreferenceKey(getNotationView(), prefElementId, PreferenceConstantHelper.HEIGHT);
+ DefaultSizeNodeFigure result = new DefaultSizeNodeFigure(store.getInt(preferenceConstantWitdh), store.getInt(preferenceConstantHeight));
+
+ return result;
+ }
+
+ /**
+ * Creates figure for this edit part.
+ *
+ * Body of this method does not depend on settings in generation model
+ * so you may safely remove <i>generated</i> tag and modify it.
+ *
+ * @generated
+ */
+ protected NodeFigure createNodeFigure() {
+ NodeFigure figure = createNodePlate();
+ figure.setLayoutManager(new StackLayout());
+ IFigure shape = createNodeShape();
+ figure.add(shape);
+ contentPane = setupContentPane(shape);
+ return figure;
+ }
+
+ /**
+ * Default implementation treats passed figure as content pane.
+ * Respects layout one may have set for generated figure.
+ *
+ * @param nodeShape
+ * instance of generated figure class
+ * @generated
+ */
+ protected IFigure setupContentPane(IFigure nodeShape) {
+ if(nodeShape.getLayoutManager() == null) {
+ ConstrainedToolbarLayout layout = new ConstrainedToolbarLayout();
+ layout.setSpacing(5);
+ nodeShape.setLayoutManager(layout);
+ }
+ return nodeShape; // use nodeShape itself as contentPane
+ }
+
+ /**
+ * @generated
+ */
+ public IFigure getContentPane() {
+ if(contentPane != null) {
+ return contentPane;
+ }
+ return super.getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ protected void setForegroundColor(Color color) {
+ if(primaryShape != null) {
+ primaryShape.setForegroundColor(color);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLineWidth(int width) {
+ if(primaryShape instanceof Shape) {
+ ((Shape)primaryShape).setLineWidth(width);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLineType(int style) {
+ if(primaryShape instanceof Shape) {
+ ((Shape)primaryShape).setLineStyle(style);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public EditPart getPrimaryChildEditPart() {
+ return getChildBySemanticHint(UMLVisualIDRegistry.getType(ActorNameEditPart.VISUAL_ID));
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnSource() {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(12);
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ types.add(UMLElementTypes.Substitution_4011);
+ types.add(UMLElementTypes.Realization_4006);
+ types.add(UMLElementTypes.Manifestation_4012);
+ types.add(UMLElementTypes.Abstraction_4007);
+ types.add(UMLElementTypes.Usage_4008);
+ types.add(UMLElementTypes.Deployment_4009);
+ types.add(UMLElementTypes.Dependency_4017);
+ types.add(UMLElementTypes.Dependency_4010);
+ types.add(UMLElementTypes.Generalization_4015);
+ types.add(UMLElementTypes.InformationFlow_4021);
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnSourceAndTarget(IGraphicalEditPart targetEditPart) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ActorEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ActorEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ActorEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ActorEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ActorEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ActorEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ActorEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ActorEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ActorEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ActorEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ActorEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ActorEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMATypesForTarget(IElementType relationshipType) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(relationshipType == UMLElementTypes.ComponentRealization_4004) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InterfaceRealization_4005) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Substitution_4011) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Realization_4006) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Manifestation_4012) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Abstraction_4007) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Usage_4008) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Deployment_4009) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4017) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4010) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Generalization_4015) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ } else if(relationshipType == UMLElementTypes.InformationFlow_4021) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnTarget() {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(17);
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ types.add(UMLElementTypes.Substitution_4011);
+ types.add(UMLElementTypes.Realization_4006);
+ types.add(UMLElementTypes.Manifestation_4012);
+ types.add(UMLElementTypes.Abstraction_4007);
+ types.add(UMLElementTypes.Usage_4008);
+ types.add(UMLElementTypes.Deployment_4009);
+ types.add(UMLElementTypes.Dependency_4017);
+ types.add(UMLElementTypes.Dependency_4010);
+ types.add(UMLElementTypes.Generalization_4015);
+ types.add(UMLElementTypes.TimeObservationEvent_4018);
+ types.add(UMLElementTypes.DurationObservationEvent_4019);
+ types.add(UMLElementTypes.InformationItemRepresented_4020);
+ types.add(UMLElementTypes.InformationFlow_4021);
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMATypesForSource(IElementType relationshipType) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(relationshipType == UMLElementTypes.CommentAnnotatedElement_4002) {
+ types.add(UMLElementTypes.Comment_2109);
+ types.add(UMLElementTypes.Comment_3097);
+ } else if(relationshipType == UMLElementTypes.ConstraintConstrainedElement_4003) {
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.ComponentRealization_4004) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InterfaceRealization_4005) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Substitution_4011) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Realization_4006) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Manifestation_4012) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Abstraction_4007) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Usage_4008) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Deployment_4009) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4017) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4010) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Generalization_4015) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ } else if(relationshipType == UMLElementTypes.TimeObservationEvent_4018) {
+ types.add(UMLElementTypes.TimeObservation_2094);
+ } else if(relationshipType == UMLElementTypes.DurationObservationEvent_4019) {
+ types.add(UMLElementTypes.DurationObservation_2093);
+ } else if(relationshipType == UMLElementTypes.InformationItemRepresented_4020) {
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.InformationItem_3094);
+ } else if(relationshipType == UMLElementTypes.InformationFlow_4021) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public class NamedElementDescriptor extends RectangleFigure {
+
+ /**
+ * @generated
+ */
+ private WrappingLabel fNamedElementNameLabel;
+
+ /**
+ * @generated
+ */
+ public NamedElementDescriptor() {
+ this.setLineWidth(1);
+ this.setForegroundColor(ColorConstants.black);
+ createContents();
+ }
+
+ /**
+ * @generated
+ */
+ private void createContents() {
+
+ fNamedElementNameLabel = new WrappingLabel();
+ fNamedElementNameLabel.setText("");
+ fNamedElementNameLabel.setForegroundColor(ColorConstants.black);
+
+ fNamedElementNameLabel.setFont(FNAMEDELEMENTNAMELABEL_FONT);
+
+ this.add(fNamedElementNameLabel);
+
+ }
+
+ /**
+ * @generated
+ */
+ private boolean myUseLocalCoordinates = false;
+
+ /**
+ * @generated
+ */
+ protected boolean useLocalCoordinates() {
+ return myUseLocalCoordinates;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setUseLocalCoordinates(boolean useLocalCoordinates) {
+ myUseLocalCoordinates = useLocalCoordinates;
+ }
+
+ /**
+ * @generated
+ */
+ public WrappingLabel getNamedElementNameLabel() {
+ return fNamedElementNameLabel;
+ }
+
+ }
+
+ /**
+ * @generated
+ */
+ static final Font FNAMEDELEMENTNAMELABEL_FONT = new Font(Display.getCurrent(), "Arial", 10, SWT.BOLD);
+
+ /**
+ * @generated
+ */
+ @Override
+ public Object getPreferredValue(EStructuralFeature feature) {
+ IPreferenceStore preferenceStore = (IPreferenceStore)getDiagramPreferencesHint().getPreferenceStore();
+ Object result = null;
+
+ if(feature == NotationPackage.eINSTANCE.getLineStyle_LineColor() || feature == NotationPackage.eINSTANCE.getFontStyle_FontColor() || feature == NotationPackage.eINSTANCE.getFillStyle_FillColor()) {
+ String prefColor = null;
+ if(feature == NotationPackage.eINSTANCE.getLineStyle_LineColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("Actor", PreferenceConstantHelper.COLOR_LINE);
+ } else if(feature == NotationPackage.eINSTANCE.getFontStyle_FontColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("Actor", PreferenceConstantHelper.COLOR_FONT);
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_FillColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("Actor", PreferenceConstantHelper.COLOR_FILL);
+ }
+ result = FigureUtilities.RGBToInteger(PreferenceConverter.getColor((IPreferenceStore)preferenceStore, prefColor));
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_Transparency() || feature == NotationPackage.eINSTANCE.getFillStyle_Gradient()) {
+ String prefGradient = PreferenceConstantHelper.getElementConstant("Actor", PreferenceConstantHelper.COLOR_GRADIENT);
+ GradientPreferenceConverter gradientPreferenceConverter = new GradientPreferenceConverter(preferenceStore.getString(prefGradient));
+ if(feature == NotationPackage.eINSTANCE.getFillStyle_Transparency()) {
+ result = new Integer(gradientPreferenceConverter.getTransparency());
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_Gradient()) {
+ result = gradientPreferenceConverter.getGradientData();
+ }
+ }
+
+ if(result == null) {
+ result = getStructuralFeatureValue(feature);
+ }
+ return result;
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ActorEditPartCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ActorEditPartCN.java
new file mode 100644
index 00000000000..143b7484497
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ActorEditPartCN.java
@@ -0,0 +1,5411 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.ArrayList;
+import java.util.LinkedList;
+import java.util.List;
+
+import org.eclipse.draw2d.ColorConstants;
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.RectangleFigure;
+import org.eclipse.draw2d.Shape;
+import org.eclipse.draw2d.StackLayout;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EStructuralFeature;
+import org.eclipse.gef.EditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.editpolicies.LayoutEditPolicy;
+import org.eclipse.gef.editpolicies.NonResizableEditPolicy;
+import org.eclipse.gef.requests.CreateRequest;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ShapeNodeEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.FigureUtilities;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.gef.ui.figures.DefaultSizeNodeFigure;
+import org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.jface.preference.PreferenceConverter;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.HyperLinkPopupBarEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.QualifiedNameDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.helper.PreferenceInitializerForElementHelper;
+import org.eclipse.papyrus.diagram.composite.custom.edit.parts.ConstrainedShapeNodeEditPart;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.GraphicalNodeEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.NoScrollClassifierResizableShapeEditPolicy;
+import org.eclipse.papyrus.diagram.composite.edit.policies.ActorItemSemanticEditPolicyCN;
+import org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorPlugin;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter;
+import org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.Font;
+import org.eclipse.swt.widgets.Display;
+
+/**
+ * @generated
+ */
+public class ActorEditPartCN extends
+
+ConstrainedShapeNodeEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 3091;
+
+ /**
+ * @generated
+ */
+ protected IFigure contentPane;
+
+ /**
+ * @generated
+ */
+ protected IFigure primaryShape;
+
+ /**
+ * @generated
+ */
+ public ActorEditPartCN(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new ActorItemSemanticEditPolicyCN());
+ installEditPolicy(EditPolicy.LAYOUT_ROLE, createLayoutEditPolicy());
+ installEditPolicy(QualifiedNameDisplayEditPolicy.QUALIFIED_NAME_POLICY, new QualifiedNameDisplayEditPolicy());
+ installEditPolicy(AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeNodeLabelDisplayEditPolicy());
+ installEditPolicy(EditPolicyRoles.POPUPBAR_ROLE, new HyperLinkPopupBarEditPolicy());
+ installEditPolicy(EditPolicy.GRAPHICAL_NODE_ROLE, new GraphicalNodeEditPolicy());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new NoScrollClassifierResizableShapeEditPolicy());
+ // XXX need an SCR to runtime to have another abstract superclass that would let children add reasonable editpolicies
+ // removeEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CONNECTION_HANDLES_ROLE);
+ }
+
+ /**
+ * Papyrus codeGen
+ *
+ * @generated
+ **/
+ protected void handleNotificationEvent(Notification event) {
+ super.handleNotificationEvent(event);
+
+ }
+
+ /**
+ * @generated
+ */
+ protected LayoutEditPolicy createLayoutEditPolicy() {
+ org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy lep = new org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy() {
+
+ protected EditPolicy createChildEditPolicy(EditPart child) {
+ EditPolicy result = child.getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(result == null) {
+ result = new NonResizableEditPolicy();
+ }
+ return result;
+ }
+
+ protected Command getMoveChildrenCommand(Request request) {
+ return null;
+ }
+
+ protected Command getCreateCommand(CreateRequest request) {
+ return null;
+ }
+ };
+ return lep;
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createNodeShape() {
+ return primaryShape = new NamedElementDescriptor();
+ }
+
+ /**
+ * @generated
+ */
+ public NamedElementDescriptor getPrimaryShape() {
+ return (NamedElementDescriptor)primaryShape;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean addFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof ActorNameEditPartCN) {
+ ((ActorNameEditPartCN)childEditPart).setLabel(getPrimaryShape().getNamedElementNameLabel());
+ return true;
+ }
+
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean removeFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof ActorNameEditPartCN) {
+ return true;
+ }
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected void addChildVisual(EditPart childEditPart, int index) {
+ if(addFixedChild(childEditPart)) {
+ return;
+ }
+ super.addChildVisual(childEditPart, -1);
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeChildVisual(EditPart childEditPart) {
+ if(removeFixedChild(childEditPart)) {
+ return;
+ }
+ super.removeChildVisual(childEditPart);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure getContentPaneFor(IGraphicalEditPart editPart) {
+ return getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ protected NodeFigure createNodePlate() {
+ String prefElementId = "Actor";
+ IPreferenceStore store = UMLDiagramEditorPlugin.getInstance().getPreferenceStore();
+ String preferenceConstantWitdh = PreferenceInitializerForElementHelper.getpreferenceKey(getNotationView(), prefElementId, PreferenceConstantHelper.WIDTH);
+ String preferenceConstantHeight = PreferenceInitializerForElementHelper.getpreferenceKey(getNotationView(), prefElementId, PreferenceConstantHelper.HEIGHT);
+ DefaultSizeNodeFigure result = new DefaultSizeNodeFigure(store.getInt(preferenceConstantWitdh), store.getInt(preferenceConstantHeight));
+
+ return result;
+ }
+
+ /**
+ * Creates figure for this edit part.
+ *
+ * Body of this method does not depend on settings in generation model
+ * so you may safely remove <i>generated</i> tag and modify it.
+ *
+ * @generated
+ */
+ protected NodeFigure createNodeFigure() {
+ NodeFigure figure = createNodePlate();
+ figure.setLayoutManager(new StackLayout());
+ IFigure shape = createNodeShape();
+ figure.add(shape);
+ contentPane = setupContentPane(shape);
+ return figure;
+ }
+
+ /**
+ * Default implementation treats passed figure as content pane.
+ * Respects layout one may have set for generated figure.
+ *
+ * @param nodeShape
+ * instance of generated figure class
+ * @generated
+ */
+ protected IFigure setupContentPane(IFigure nodeShape) {
+ if(nodeShape.getLayoutManager() == null) {
+ ConstrainedToolbarLayout layout = new ConstrainedToolbarLayout();
+ layout.setSpacing(5);
+ nodeShape.setLayoutManager(layout);
+ }
+ return nodeShape; // use nodeShape itself as contentPane
+ }
+
+ /**
+ * @generated
+ */
+ public IFigure getContentPane() {
+ if(contentPane != null) {
+ return contentPane;
+ }
+ return super.getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ protected void setForegroundColor(Color color) {
+ if(primaryShape != null) {
+ primaryShape.setForegroundColor(color);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLineWidth(int width) {
+ if(primaryShape instanceof Shape) {
+ ((Shape)primaryShape).setLineWidth(width);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLineType(int style) {
+ if(primaryShape instanceof Shape) {
+ ((Shape)primaryShape).setLineStyle(style);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public EditPart getPrimaryChildEditPart() {
+ return getChildBySemanticHint(UMLVisualIDRegistry.getType(ActorNameEditPartCN.VISUAL_ID));
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnSource() {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(12);
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ types.add(UMLElementTypes.Substitution_4011);
+ types.add(UMLElementTypes.Realization_4006);
+ types.add(UMLElementTypes.Manifestation_4012);
+ types.add(UMLElementTypes.Abstraction_4007);
+ types.add(UMLElementTypes.Usage_4008);
+ types.add(UMLElementTypes.Deployment_4009);
+ types.add(UMLElementTypes.Dependency_4017);
+ types.add(UMLElementTypes.Dependency_4010);
+ types.add(UMLElementTypes.Generalization_4015);
+ types.add(UMLElementTypes.InformationFlow_4021);
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnSourceAndTarget(IGraphicalEditPart targetEditPart) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ActorEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ActorEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ActorEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ActorEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ActorEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ActorEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ActorEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ActorEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ActorEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ActorEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ActorEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ActorEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMATypesForTarget(IElementType relationshipType) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(relationshipType == UMLElementTypes.ComponentRealization_4004) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InterfaceRealization_4005) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Substitution_4011) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Realization_4006) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Manifestation_4012) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Abstraction_4007) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Usage_4008) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Deployment_4009) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4017) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4010) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Generalization_4015) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ } else if(relationshipType == UMLElementTypes.InformationFlow_4021) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnTarget() {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(17);
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ types.add(UMLElementTypes.Substitution_4011);
+ types.add(UMLElementTypes.Realization_4006);
+ types.add(UMLElementTypes.Manifestation_4012);
+ types.add(UMLElementTypes.Abstraction_4007);
+ types.add(UMLElementTypes.Usage_4008);
+ types.add(UMLElementTypes.Deployment_4009);
+ types.add(UMLElementTypes.Dependency_4017);
+ types.add(UMLElementTypes.Dependency_4010);
+ types.add(UMLElementTypes.Generalization_4015);
+ types.add(UMLElementTypes.TimeObservationEvent_4018);
+ types.add(UMLElementTypes.DurationObservationEvent_4019);
+ types.add(UMLElementTypes.InformationItemRepresented_4020);
+ types.add(UMLElementTypes.InformationFlow_4021);
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMATypesForSource(IElementType relationshipType) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(relationshipType == UMLElementTypes.CommentAnnotatedElement_4002) {
+ types.add(UMLElementTypes.Comment_2109);
+ types.add(UMLElementTypes.Comment_3097);
+ } else if(relationshipType == UMLElementTypes.ConstraintConstrainedElement_4003) {
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.ComponentRealization_4004) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InterfaceRealization_4005) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Substitution_4011) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Realization_4006) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Manifestation_4012) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Abstraction_4007) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Usage_4008) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Deployment_4009) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4017) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4010) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Generalization_4015) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ } else if(relationshipType == UMLElementTypes.TimeObservationEvent_4018) {
+ types.add(UMLElementTypes.TimeObservation_2094);
+ } else if(relationshipType == UMLElementTypes.DurationObservationEvent_4019) {
+ types.add(UMLElementTypes.DurationObservation_2093);
+ } else if(relationshipType == UMLElementTypes.InformationItemRepresented_4020) {
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.InformationItem_3094);
+ } else if(relationshipType == UMLElementTypes.InformationFlow_4021) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public class NamedElementDescriptor extends RectangleFigure {
+
+ /**
+ * @generated
+ */
+ private WrappingLabel fNamedElementNameLabel;
+
+ /**
+ * @generated
+ */
+ public NamedElementDescriptor() {
+ this.setLineWidth(1);
+ this.setForegroundColor(ColorConstants.black);
+ createContents();
+ }
+
+ /**
+ * @generated
+ */
+ private void createContents() {
+
+ fNamedElementNameLabel = new WrappingLabel();
+ fNamedElementNameLabel.setText("");
+ fNamedElementNameLabel.setForegroundColor(ColorConstants.black);
+
+ fNamedElementNameLabel.setFont(FNAMEDELEMENTNAMELABEL_FONT);
+
+ this.add(fNamedElementNameLabel);
+
+ }
+
+ /**
+ * @generated
+ */
+ private boolean myUseLocalCoordinates = false;
+
+ /**
+ * @generated
+ */
+ protected boolean useLocalCoordinates() {
+ return myUseLocalCoordinates;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setUseLocalCoordinates(boolean useLocalCoordinates) {
+ myUseLocalCoordinates = useLocalCoordinates;
+ }
+
+ /**
+ * @generated
+ */
+ public WrappingLabel getNamedElementNameLabel() {
+ return fNamedElementNameLabel;
+ }
+
+ }
+
+ /**
+ * @generated
+ */
+ static final Font FNAMEDELEMENTNAMELABEL_FONT = new Font(Display.getCurrent(), "Arial", 10, SWT.BOLD);
+
+ /**
+ * @generated
+ */
+ @Override
+ public Object getPreferredValue(EStructuralFeature feature) {
+ IPreferenceStore preferenceStore = (IPreferenceStore)getDiagramPreferencesHint().getPreferenceStore();
+ Object result = null;
+
+ if(feature == NotationPackage.eINSTANCE.getLineStyle_LineColor() || feature == NotationPackage.eINSTANCE.getFontStyle_FontColor() || feature == NotationPackage.eINSTANCE.getFillStyle_FillColor()) {
+ String prefColor = null;
+ if(feature == NotationPackage.eINSTANCE.getLineStyle_LineColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("Actor", PreferenceConstantHelper.COLOR_LINE);
+ } else if(feature == NotationPackage.eINSTANCE.getFontStyle_FontColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("Actor", PreferenceConstantHelper.COLOR_FONT);
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_FillColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("Actor", PreferenceConstantHelper.COLOR_FILL);
+ }
+ result = FigureUtilities.RGBToInteger(PreferenceConverter.getColor((IPreferenceStore)preferenceStore, prefColor));
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_Transparency() || feature == NotationPackage.eINSTANCE.getFillStyle_Gradient()) {
+ String prefGradient = PreferenceConstantHelper.getElementConstant("Actor", PreferenceConstantHelper.COLOR_GRADIENT);
+ GradientPreferenceConverter gradientPreferenceConverter = new GradientPreferenceConverter(preferenceStore.getString(prefGradient));
+ if(feature == NotationPackage.eINSTANCE.getFillStyle_Transparency()) {
+ result = new Integer(gradientPreferenceConverter.getTransparency());
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_Gradient()) {
+ result = gradientPreferenceConverter.getGradientData();
+ }
+ }
+
+ if(result == null) {
+ result = getStructuralFeatureValue(feature);
+ }
+ return result;
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ActorNameEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ActorNameEditPart.java
new file mode 100644
index 00000000000..58c07937487
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ActorNameEditPart.java
@@ -0,0 +1,791 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EAnnotation;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.emf.transaction.RunnableWithResult;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.AccessibleEditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.requests.DirectEditRequest;
+import org.eclipse.gef.tools.DirectEditManager;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.CompartmentEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
+import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
+import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
+import org.eclipse.gmf.runtime.notation.FontStyle;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
+import org.eclipse.jface.viewers.ICellEditorValidator;
+import org.eclipse.jface.window.Window;
+import org.eclipse.papyrus.diagram.common.directedit.MultilineLabelDirectEditManager;
+import org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition;
+import org.eclipse.papyrus.diagram.common.editpolicies.IMaskManagedLabelEditPolicy;
+import org.eclipse.papyrus.diagram.common.figure.node.ILabelFigure;
+import org.eclipse.papyrus.diagram.common.util.DiagramEditPartsUtil;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLTextSelectionEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.diagram.composite.providers.UMLParserProvider;
+import org.eclipse.papyrus.extensionpoints.editors.Activator;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
+import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
+import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
+import org.eclipse.papyrus.umlutils.ui.VisualInformationPapyrusConstant;
+import org.eclipse.papyrus.umlutils.ui.helper.NameLabelIconHelper;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.AccessibleEvent;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.FontData;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.ui.PlatformUI;
+
+/**
+ * @generated
+ */
+public class ActorNameEditPart extends CompartmentEditPart implements ITextAwareEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 5160;
+
+ /**
+ * @generated
+ */
+ private DirectEditManager manager;
+
+ /**
+ * @generated
+ */
+ private IParser parser;
+
+ /**
+ * @generated
+ */
+ private List<?> parserElements;
+
+ /**
+ * @generated
+ */
+ private String defaultText;
+
+ /**
+ * direct edition mode (default, undefined, registered editor, etc.)
+ *
+ * @generated
+ */
+ protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
+
+ /**
+ * configuration from a registered edit dialog
+ *
+ * @generated
+ */
+ protected IDirectEditorConfiguration configuration;
+
+ /**
+ * @generated
+ */
+ public ActorNameEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
+ installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new CompositeStructureDiagramEditPart.NodeLabelDragPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelTextHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getText();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getText();
+ } else {
+ return ((Label)figure).getText();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelTextHelper(IFigure figure, String text) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setText(text);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setText(text);
+ } else {
+ ((Label)figure).setText(text);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIconHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getIcon();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getIcon();
+ } else {
+ return ((Label)figure).getIcon();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelIconHelper(IFigure figure, Image icon) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setIcon(icon);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setIcon(icon);
+ } else {
+ ((Label)figure).setIcon(icon);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabel(WrappingLabel figure) {
+ unregisterVisuals();
+ setFigure(figure);
+ defaultText = getLabelTextHelper(figure);
+ registerVisuals();
+ refreshVisuals();
+ }
+
+ /**
+ * @generated
+ */
+ protected List getModelChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject getParserElement() {
+ return resolveSemanticElement();
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIcon() {
+ EObject parserElement = getParserElement();
+ if(parserElement == null) {
+ return null;
+ }
+
+ List<View> views = DiagramEditPartsUtil.findViews(parserElement, getViewer());
+ for(View view : views) {
+ if(NameLabelIconHelper.showLabelIcon(view)) {
+ return UMLElementTypes.getImage(parserElement.eClass());
+ }
+ }
+ return null;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelText() {
+ String text = null;
+ EObject parserElement = getParserElement();
+ if(parserElement != null && getParser() != null) {
+ text = getParser().getPrintString(new EObjectAdapter(parserElement), getParserOptions().intValue());
+ }
+ if(text == null || text.length() == 0) {
+ text = defaultText;
+ }
+ return text;
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabelText(String text) {
+ setLabelTextHelper(getFigure(), text);
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public String getEditText() {
+ if(getParserElement() == null || getParser() == null) {
+ return ""; //$NON-NLS-1$
+ }
+ return getParser().getEditString(new EObjectAdapter(getParserElement()), getParserOptions().intValue());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean isEditable() {
+ return getParser() != null;
+ }
+
+ /**
+ * @generated
+ */
+ public ICellEditorValidator getEditTextValidator() {
+ return new ICellEditorValidator() {
+
+ public String isValid(final Object value) {
+ if(value instanceof String) {
+ final EObject element = getParserElement();
+ final IParser parser = getParser();
+ try {
+ IParserEditStatus valid = (IParserEditStatus)getEditingDomain().runExclusive(new RunnableWithResult.Impl() {
+
+ public void run() {
+ setResult(parser.isValidEditString(new EObjectAdapter(element), (String)value));
+ }
+ });
+ return valid.getCode() == ParserEditStatus.EDITABLE ? null : valid.getMessage();
+ } catch (InterruptedException ie) {
+ ie.printStackTrace();
+ }
+ }
+
+ // shouldn't get here
+ return null;
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ public IContentAssistProcessor getCompletionProcessor() {
+ if(getParserElement() == null || getParser() == null) {
+ return null;
+ }
+ return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
+ }
+
+ /**
+ * @generated
+ */
+ public ParserOptions getParserOptions() {
+ return ParserOptions.NONE;
+ }
+
+ /**
+ * @generated
+ */
+ public IParser getParser() {
+ if(parser == null) {
+ parser = UMLParserProvider.getParser(UMLElementTypes.Actor_2077, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.diagram.composite.edit.parts.ActorNameEditPart.VISUAL_ID));
+ }
+ return parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected DirectEditManager getManager() {
+ if(manager == null) {
+ setManager(new MultilineLabelDirectEditManager(this, MultilineLabelDirectEditManager.getTextCellEditorClass(this), UMLEditPartFactory.getTextCellEditorLocator(this)));
+ }
+ return manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setManager(DirectEditManager manager) {
+ this.manager = manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit() {
+ getManager().show();
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit(Point eventLocation) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(eventLocation.getSWTPoint());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void performDirectEdit(char initialCharacter) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(initialCharacter);
+ } else {
+ performDirectEdit();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEditRequest(Request request) {
+
+ final Request theRequest = request;
+
+ if(IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
+ directEditionMode = getDirectEditionType();
+ }
+ switch(directEditionMode) {
+ case IDirectEdition.NO_DIRECT_EDITION:
+ // no direct edition mode => does nothing
+ return;
+ case IDirectEdition.EXTENDED_DIRECT_EDITOR:
+ updateExtendedEditorConfiguration();
+ if(configuration == null || configuration.getLanguage() == null) {
+ performDefaultDirectEditorEdit(theRequest);
+ } else {
+ configuration.preEditAction(resolveSemanticElement());
+ Dialog dialog = null;
+ if(configuration instanceof IPopupEditorConfiguration) {
+ IPopupEditorHelper helper = ((IPopupEditorConfiguration)configuration).createPopupEditorHelper(this);
+ helper.showEditor();
+ return;
+ } else if(configuration instanceof IAdvancedEditorConfiguration) {
+ dialog = ((IAdvancedEditorConfiguration)configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
+ } else if(configuration instanceof IDirectEditorConfiguration) {
+ dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), ((IDirectEditorConfiguration)configuration).getTextToEdit(resolveSemanticElement()), (IDirectEditorConfiguration)configuration);
+ } else {
+ return;
+ }
+ final Dialog finalDialog = dialog;
+
+ if(Window.OK == dialog.open()) {
+ TransactionalEditingDomain domain = getEditingDomain();
+ RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
+
+ @Override
+ protected void doExecute() {
+ configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog)finalDialog).getValue());
+
+ }
+ };
+ domain.getCommandStack().execute(command);
+ }
+ }
+ break;
+ case IDirectEdition.DEFAULT_DIRECT_EDITOR:
+
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ break;
+ default:
+ break;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshLabel();
+ refreshFont();
+ refreshFontColor();
+ refreshUnderline();
+ refreshStrikeThrough();
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshLabel() {
+ EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
+ if(maskLabelPolicy == null) {
+ setLabelTextHelper(getFigure(), getLabelText());
+ setLabelIconHelper(getFigure(), getLabelIcon());
+ }
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshUnderline() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextUnderline(style.isUnderline());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshStrikeThrough() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextStrikeThrough(style.isStrikeThrough());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshFont() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null) {
+ FontData fontData = new FontData(style.getFontName(), style.getFontHeight(), (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
+ setFont(fontData);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setFontColor(Color color) {
+ getFigure().setForegroundColor(color);
+ }
+
+ /**
+ * @generated
+ */
+ protected void addSemanticListeners() {
+ if(getParser() instanceof ISemanticParser) {
+ EObject element = resolveSemanticElement();
+ parserElements = ((ISemanticParser)getParser()).getSemanticElementsBeingParsed(element);
+ for(int i = 0; i < parserElements.size(); i++) {
+ addListenerFilter("SemanticModel" + i, this, (EObject)parserElements.get(i)); //$NON-NLS-1$
+ }
+ } else {
+ super.addSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeSemanticListeners() {
+ if(parserElements != null) {
+ for(int i = 0; i < parserElements.size(); i++) {
+ removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
+ }
+ } else {
+ super.removeSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected AccessibleEditPart getAccessibleEditPart() {
+ if(accessibleEP == null) {
+ accessibleEP = new AccessibleGraphicalEditPart() {
+
+ public void getName(AccessibleEvent e) {
+ e.result = getLabelTextHelper(getFigure());
+ }
+ };
+ }
+ return accessibleEP;
+ }
+
+ /**
+ * @generated
+ */
+ private View getFontStyleOwnerView() {
+ return (View)getModel();
+ }
+
+ /**
+ * Returns the kind of associated editor for direct edition.
+ *
+ * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition
+ * @generated
+ */
+ public int getDirectEditionType() {
+ if(checkExtendedEditor()) {
+ initExtendedEditorConfiguration();
+ return IDirectEdition.EXTENDED_DIRECT_EDITOR;
+ }
+ if(checkDefaultEdition()) {
+ return IDirectEdition.DEFAULT_DIRECT_EDITOR;
+ }
+
+ // not a named element. no specific editor => do nothing
+ return IDirectEdition.NO_DIRECT_EDITION;
+ }
+
+ /**
+ * Checks if an extended editor is present.
+ *
+ * @return <code>true</code> if an extended editor is present.
+ * @generated
+ */
+ protected boolean checkExtendedEditor() {
+ if(resolveSemanticElement() != null) {
+ return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ return false;
+ }
+
+ /**
+ * Checks if a default direct edition is available
+ *
+ * @return <code>true</code> if a default direct edition is available
+ * @generated
+ */
+ protected boolean checkDefaultEdition() {
+ return (getParser() != null);
+ }
+
+ /**
+ * Initializes the extended editor configuration
+ *
+ * @generated
+ */
+ protected void initExtendedEditorConfiguration() {
+ if(configuration == null) {
+ final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("")) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else {
+ configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ }
+ }
+
+ /**
+ * Updates the preference configuration
+ *
+ * @generated
+ */
+ protected void updateExtendedEditorConfiguration() {
+ String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("") && languagePreferred != configuration.getLanguage()) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else if(IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
+ configuration = null;
+ }
+ }
+
+ /**
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
+ protected void performDefaultDirectEditorEdit(final Request theRequest) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void addNotationalListeners() {
+ super.addNotationalListeners();
+ addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeNotationalListeners() {
+ super.removeNotationalListeners();
+ removeListenerFilter("PrimaryView"); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void handleNotificationEvent(Notification event) {
+ refreshLabel();
+ Object feature = event.getFeature();
+ if(NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
+ Integer c = (Integer)event.getNewValue();
+ setFontColor(DiagramColorRegistry.getInstance().getColor(c));
+ } else if(NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
+ refreshUnderline();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
+ refreshStrikeThrough();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
+ refreshFont();
+ } else {
+ if(getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
+ refreshLabel();
+ }
+ if(getParser() instanceof ISemanticParser) {
+ ISemanticParser modelParser = (ISemanticParser)getParser();
+ if(modelParser.areSemanticElementsAffected(null, event)) {
+ removeSemanticListeners();
+ if(resolveSemanticElement() != null) {
+ addSemanticListeners();
+ }
+ refreshLabel();
+ }
+ }
+ }
+
+ if(event.getNewValue() instanceof EAnnotation && VisualInformationPapyrusConstant.DISPLAY_NAMELABELICON.equals(((EAnnotation)event.getNewValue()).getSource())) {
+ refreshLabel();
+ }
+
+ super.handleNotificationEvent(event);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createFigure() {
+ // Parent should assign one using setLabel() method
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ private static final String ADD_PARENT_MODEL = "AddParentModel";
+
+ /**
+ * @generated
+ */
+ public void activate() {
+ super.activate();
+ addOwnerElementListeners();
+ }
+
+ /**
+ * @generated
+ */
+ protected void addOwnerElementListeners() {
+ addListenerFilter(ADD_PARENT_MODEL, this, ((View)getParent().getModel())); //$NON-NLS-1$
+
+ }
+
+ /**
+ * @generated
+ */
+ public void deactivate() {
+ removeOwnerElementListeners();
+ super.deactivate();
+
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeOwnerElementListeners() {
+ removeListenerFilter(ADD_PARENT_MODEL);
+
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ActorNameEditPartCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ActorNameEditPartCN.java
new file mode 100644
index 00000000000..2b255fa5a5f
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ActorNameEditPartCN.java
@@ -0,0 +1,791 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EAnnotation;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.emf.transaction.RunnableWithResult;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.AccessibleEditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.requests.DirectEditRequest;
+import org.eclipse.gef.tools.DirectEditManager;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.CompartmentEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
+import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
+import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
+import org.eclipse.gmf.runtime.notation.FontStyle;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
+import org.eclipse.jface.viewers.ICellEditorValidator;
+import org.eclipse.jface.window.Window;
+import org.eclipse.papyrus.diagram.common.directedit.MultilineLabelDirectEditManager;
+import org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition;
+import org.eclipse.papyrus.diagram.common.editpolicies.IMaskManagedLabelEditPolicy;
+import org.eclipse.papyrus.diagram.common.figure.node.ILabelFigure;
+import org.eclipse.papyrus.diagram.common.util.DiagramEditPartsUtil;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLTextSelectionEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.diagram.composite.providers.UMLParserProvider;
+import org.eclipse.papyrus.extensionpoints.editors.Activator;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
+import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
+import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
+import org.eclipse.papyrus.umlutils.ui.VisualInformationPapyrusConstant;
+import org.eclipse.papyrus.umlutils.ui.helper.NameLabelIconHelper;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.AccessibleEvent;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.FontData;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.ui.PlatformUI;
+
+/**
+ * @generated
+ */
+public class ActorNameEditPartCN extends CompartmentEditPart implements ITextAwareEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 5144;
+
+ /**
+ * @generated
+ */
+ private DirectEditManager manager;
+
+ /**
+ * @generated
+ */
+ private IParser parser;
+
+ /**
+ * @generated
+ */
+ private List<?> parserElements;
+
+ /**
+ * @generated
+ */
+ private String defaultText;
+
+ /**
+ * direct edition mode (default, undefined, registered editor, etc.)
+ *
+ * @generated
+ */
+ protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
+
+ /**
+ * configuration from a registered edit dialog
+ *
+ * @generated
+ */
+ protected IDirectEditorConfiguration configuration;
+
+ /**
+ * @generated
+ */
+ public ActorNameEditPartCN(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
+ installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new CompositeStructureDiagramEditPart.NodeLabelDragPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelTextHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getText();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getText();
+ } else {
+ return ((Label)figure).getText();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelTextHelper(IFigure figure, String text) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setText(text);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setText(text);
+ } else {
+ ((Label)figure).setText(text);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIconHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getIcon();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getIcon();
+ } else {
+ return ((Label)figure).getIcon();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelIconHelper(IFigure figure, Image icon) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setIcon(icon);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setIcon(icon);
+ } else {
+ ((Label)figure).setIcon(icon);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabel(WrappingLabel figure) {
+ unregisterVisuals();
+ setFigure(figure);
+ defaultText = getLabelTextHelper(figure);
+ registerVisuals();
+ refreshVisuals();
+ }
+
+ /**
+ * @generated
+ */
+ protected List getModelChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject getParserElement() {
+ return resolveSemanticElement();
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIcon() {
+ EObject parserElement = getParserElement();
+ if(parserElement == null) {
+ return null;
+ }
+
+ List<View> views = DiagramEditPartsUtil.findViews(parserElement, getViewer());
+ for(View view : views) {
+ if(NameLabelIconHelper.showLabelIcon(view)) {
+ return UMLElementTypes.getImage(parserElement.eClass());
+ }
+ }
+ return null;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelText() {
+ String text = null;
+ EObject parserElement = getParserElement();
+ if(parserElement != null && getParser() != null) {
+ text = getParser().getPrintString(new EObjectAdapter(parserElement), getParserOptions().intValue());
+ }
+ if(text == null || text.length() == 0) {
+ text = defaultText;
+ }
+ return text;
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabelText(String text) {
+ setLabelTextHelper(getFigure(), text);
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public String getEditText() {
+ if(getParserElement() == null || getParser() == null) {
+ return ""; //$NON-NLS-1$
+ }
+ return getParser().getEditString(new EObjectAdapter(getParserElement()), getParserOptions().intValue());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean isEditable() {
+ return getParser() != null;
+ }
+
+ /**
+ * @generated
+ */
+ public ICellEditorValidator getEditTextValidator() {
+ return new ICellEditorValidator() {
+
+ public String isValid(final Object value) {
+ if(value instanceof String) {
+ final EObject element = getParserElement();
+ final IParser parser = getParser();
+ try {
+ IParserEditStatus valid = (IParserEditStatus)getEditingDomain().runExclusive(new RunnableWithResult.Impl() {
+
+ public void run() {
+ setResult(parser.isValidEditString(new EObjectAdapter(element), (String)value));
+ }
+ });
+ return valid.getCode() == ParserEditStatus.EDITABLE ? null : valid.getMessage();
+ } catch (InterruptedException ie) {
+ ie.printStackTrace();
+ }
+ }
+
+ // shouldn't get here
+ return null;
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ public IContentAssistProcessor getCompletionProcessor() {
+ if(getParserElement() == null || getParser() == null) {
+ return null;
+ }
+ return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
+ }
+
+ /**
+ * @generated
+ */
+ public ParserOptions getParserOptions() {
+ return ParserOptions.NONE;
+ }
+
+ /**
+ * @generated
+ */
+ public IParser getParser() {
+ if(parser == null) {
+ parser = UMLParserProvider.getParser(UMLElementTypes.Actor_3091, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.diagram.composite.edit.parts.ActorNameEditPartCN.VISUAL_ID));
+ }
+ return parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected DirectEditManager getManager() {
+ if(manager == null) {
+ setManager(new MultilineLabelDirectEditManager(this, MultilineLabelDirectEditManager.getTextCellEditorClass(this), UMLEditPartFactory.getTextCellEditorLocator(this)));
+ }
+ return manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setManager(DirectEditManager manager) {
+ this.manager = manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit() {
+ getManager().show();
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit(Point eventLocation) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(eventLocation.getSWTPoint());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void performDirectEdit(char initialCharacter) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(initialCharacter);
+ } else {
+ performDirectEdit();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEditRequest(Request request) {
+
+ final Request theRequest = request;
+
+ if(IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
+ directEditionMode = getDirectEditionType();
+ }
+ switch(directEditionMode) {
+ case IDirectEdition.NO_DIRECT_EDITION:
+ // no direct edition mode => does nothing
+ return;
+ case IDirectEdition.EXTENDED_DIRECT_EDITOR:
+ updateExtendedEditorConfiguration();
+ if(configuration == null || configuration.getLanguage() == null) {
+ performDefaultDirectEditorEdit(theRequest);
+ } else {
+ configuration.preEditAction(resolveSemanticElement());
+ Dialog dialog = null;
+ if(configuration instanceof IPopupEditorConfiguration) {
+ IPopupEditorHelper helper = ((IPopupEditorConfiguration)configuration).createPopupEditorHelper(this);
+ helper.showEditor();
+ return;
+ } else if(configuration instanceof IAdvancedEditorConfiguration) {
+ dialog = ((IAdvancedEditorConfiguration)configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
+ } else if(configuration instanceof IDirectEditorConfiguration) {
+ dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), ((IDirectEditorConfiguration)configuration).getTextToEdit(resolveSemanticElement()), (IDirectEditorConfiguration)configuration);
+ } else {
+ return;
+ }
+ final Dialog finalDialog = dialog;
+
+ if(Window.OK == dialog.open()) {
+ TransactionalEditingDomain domain = getEditingDomain();
+ RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
+
+ @Override
+ protected void doExecute() {
+ configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog)finalDialog).getValue());
+
+ }
+ };
+ domain.getCommandStack().execute(command);
+ }
+ }
+ break;
+ case IDirectEdition.DEFAULT_DIRECT_EDITOR:
+
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ break;
+ default:
+ break;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshLabel();
+ refreshFont();
+ refreshFontColor();
+ refreshUnderline();
+ refreshStrikeThrough();
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshLabel() {
+ EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
+ if(maskLabelPolicy == null) {
+ setLabelTextHelper(getFigure(), getLabelText());
+ setLabelIconHelper(getFigure(), getLabelIcon());
+ }
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshUnderline() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextUnderline(style.isUnderline());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshStrikeThrough() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextStrikeThrough(style.isStrikeThrough());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshFont() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null) {
+ FontData fontData = new FontData(style.getFontName(), style.getFontHeight(), (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
+ setFont(fontData);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setFontColor(Color color) {
+ getFigure().setForegroundColor(color);
+ }
+
+ /**
+ * @generated
+ */
+ protected void addSemanticListeners() {
+ if(getParser() instanceof ISemanticParser) {
+ EObject element = resolveSemanticElement();
+ parserElements = ((ISemanticParser)getParser()).getSemanticElementsBeingParsed(element);
+ for(int i = 0; i < parserElements.size(); i++) {
+ addListenerFilter("SemanticModel" + i, this, (EObject)parserElements.get(i)); //$NON-NLS-1$
+ }
+ } else {
+ super.addSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeSemanticListeners() {
+ if(parserElements != null) {
+ for(int i = 0; i < parserElements.size(); i++) {
+ removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
+ }
+ } else {
+ super.removeSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected AccessibleEditPart getAccessibleEditPart() {
+ if(accessibleEP == null) {
+ accessibleEP = new AccessibleGraphicalEditPart() {
+
+ public void getName(AccessibleEvent e) {
+ e.result = getLabelTextHelper(getFigure());
+ }
+ };
+ }
+ return accessibleEP;
+ }
+
+ /**
+ * @generated
+ */
+ private View getFontStyleOwnerView() {
+ return (View)getModel();
+ }
+
+ /**
+ * Returns the kind of associated editor for direct edition.
+ *
+ * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition
+ * @generated
+ */
+ public int getDirectEditionType() {
+ if(checkExtendedEditor()) {
+ initExtendedEditorConfiguration();
+ return IDirectEdition.EXTENDED_DIRECT_EDITOR;
+ }
+ if(checkDefaultEdition()) {
+ return IDirectEdition.DEFAULT_DIRECT_EDITOR;
+ }
+
+ // not a named element. no specific editor => do nothing
+ return IDirectEdition.NO_DIRECT_EDITION;
+ }
+
+ /**
+ * Checks if an extended editor is present.
+ *
+ * @return <code>true</code> if an extended editor is present.
+ * @generated
+ */
+ protected boolean checkExtendedEditor() {
+ if(resolveSemanticElement() != null) {
+ return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ return false;
+ }
+
+ /**
+ * Checks if a default direct edition is available
+ *
+ * @return <code>true</code> if a default direct edition is available
+ * @generated
+ */
+ protected boolean checkDefaultEdition() {
+ return (getParser() != null);
+ }
+
+ /**
+ * Initializes the extended editor configuration
+ *
+ * @generated
+ */
+ protected void initExtendedEditorConfiguration() {
+ if(configuration == null) {
+ final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("")) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else {
+ configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ }
+ }
+
+ /**
+ * Updates the preference configuration
+ *
+ * @generated
+ */
+ protected void updateExtendedEditorConfiguration() {
+ String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("") && languagePreferred != configuration.getLanguage()) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else if(IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
+ configuration = null;
+ }
+ }
+
+ /**
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
+ protected void performDefaultDirectEditorEdit(final Request theRequest) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void addNotationalListeners() {
+ super.addNotationalListeners();
+ addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeNotationalListeners() {
+ super.removeNotationalListeners();
+ removeListenerFilter("PrimaryView"); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void handleNotificationEvent(Notification event) {
+ refreshLabel();
+ Object feature = event.getFeature();
+ if(NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
+ Integer c = (Integer)event.getNewValue();
+ setFontColor(DiagramColorRegistry.getInstance().getColor(c));
+ } else if(NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
+ refreshUnderline();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
+ refreshStrikeThrough();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
+ refreshFont();
+ } else {
+ if(getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
+ refreshLabel();
+ }
+ if(getParser() instanceof ISemanticParser) {
+ ISemanticParser modelParser = (ISemanticParser)getParser();
+ if(modelParser.areSemanticElementsAffected(null, event)) {
+ removeSemanticListeners();
+ if(resolveSemanticElement() != null) {
+ addSemanticListeners();
+ }
+ refreshLabel();
+ }
+ }
+ }
+
+ if(event.getNewValue() instanceof EAnnotation && VisualInformationPapyrusConstant.DISPLAY_NAMELABELICON.equals(((EAnnotation)event.getNewValue()).getSource())) {
+ refreshLabel();
+ }
+
+ super.handleNotificationEvent(event);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createFigure() {
+ // Parent should assign one using setLabel() method
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ private static final String ADD_PARENT_MODEL = "AddParentModel";
+
+ /**
+ * @generated
+ */
+ public void activate() {
+ super.activate();
+ addOwnerElementListeners();
+ }
+
+ /**
+ * @generated
+ */
+ protected void addOwnerElementListeners() {
+ addListenerFilter(ADD_PARENT_MODEL, this, ((View)getParent().getModel())); //$NON-NLS-1$
+
+ }
+
+ /**
+ * @generated
+ */
+ public void deactivate() {
+ removeOwnerElementListeners();
+ super.deactivate();
+
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeOwnerElementListeners() {
+ removeListenerFilter(ADD_PARENT_MODEL);
+
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/AnyReceiveEventEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/AnyReceiveEventEditPart.java
new file mode 100644
index 00000000000..2b65372c113
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/AnyReceiveEventEditPart.java
@@ -0,0 +1,5167 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.ArrayList;
+import java.util.LinkedList;
+import java.util.List;
+
+import org.eclipse.draw2d.ColorConstants;
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.RectangleFigure;
+import org.eclipse.draw2d.Shape;
+import org.eclipse.draw2d.StackLayout;
+import org.eclipse.emf.ecore.EStructuralFeature;
+import org.eclipse.gef.EditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.editpolicies.LayoutEditPolicy;
+import org.eclipse.gef.editpolicies.NonResizableEditPolicy;
+import org.eclipse.gef.requests.CreateRequest;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ShapeNodeEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.FigureUtilities;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.gef.ui.figures.DefaultSizeNodeFigure;
+import org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.jface.preference.PreferenceConverter;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.HyperLinkPopupBarEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.QualifiedNameDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.helper.PreferenceInitializerForElementHelper;
+import org.eclipse.papyrus.diagram.composite.edit.policies.AnyReceiveEventItemSemanticEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorPlugin;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter;
+import org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.Font;
+import org.eclipse.swt.widgets.Display;
+
+/**
+ * @generated
+ */
+public class AnyReceiveEventEditPart extends
+
+ShapeNodeEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 2085;
+
+ /**
+ * @generated
+ */
+ protected IFigure contentPane;
+
+ /**
+ * @generated
+ */
+ protected IFigure primaryShape;
+
+ /**
+ * @generated
+ */
+ public AnyReceiveEventEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new AnyReceiveEventItemSemanticEditPolicy());
+ installEditPolicy(EditPolicy.LAYOUT_ROLE, createLayoutEditPolicy());
+ installEditPolicy(QualifiedNameDisplayEditPolicy.QUALIFIED_NAME_POLICY, new QualifiedNameDisplayEditPolicy());
+ installEditPolicy(AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeNodeLabelDisplayEditPolicy());
+ installEditPolicy(EditPolicyRoles.POPUPBAR_ROLE, new HyperLinkPopupBarEditPolicy());
+ // XXX need an SCR to runtime to have another abstract superclass that would let children add reasonable editpolicies
+ // removeEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CONNECTION_HANDLES_ROLE);
+ }
+
+ /**
+ * @generated
+ */
+ protected LayoutEditPolicy createLayoutEditPolicy() {
+ org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy lep = new org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy() {
+
+ protected EditPolicy createChildEditPolicy(EditPart child) {
+ EditPolicy result = child.getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(result == null) {
+ result = new NonResizableEditPolicy();
+ }
+ return result;
+ }
+
+ protected Command getMoveChildrenCommand(Request request) {
+ return null;
+ }
+
+ protected Command getCreateCommand(CreateRequest request) {
+ return null;
+ }
+ };
+ return lep;
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createNodeShape() {
+ return primaryShape = new NamedElementDescriptor();
+ }
+
+ /**
+ * @generated
+ */
+ public NamedElementDescriptor getPrimaryShape() {
+ return (NamedElementDescriptor)primaryShape;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean addFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof AnyReceiveEventNameEditPart) {
+ ((AnyReceiveEventNameEditPart)childEditPart).setLabel(getPrimaryShape().getNamedElementNameLabel());
+ return true;
+ }
+
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean removeFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof AnyReceiveEventNameEditPart) {
+ return true;
+ }
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected void addChildVisual(EditPart childEditPart, int index) {
+ if(addFixedChild(childEditPart)) {
+ return;
+ }
+ super.addChildVisual(childEditPart, -1);
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeChildVisual(EditPart childEditPart) {
+ if(removeFixedChild(childEditPart)) {
+ return;
+ }
+ super.removeChildVisual(childEditPart);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure getContentPaneFor(IGraphicalEditPart editPart) {
+ return getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ protected NodeFigure createNodePlate() {
+ String prefElementId = "AnyReceiveEvent";
+ IPreferenceStore store = UMLDiagramEditorPlugin.getInstance().getPreferenceStore();
+ String preferenceConstantWitdh = PreferenceInitializerForElementHelper.getpreferenceKey(getNotationView(), prefElementId, PreferenceConstantHelper.WIDTH);
+ String preferenceConstantHeight = PreferenceInitializerForElementHelper.getpreferenceKey(getNotationView(), prefElementId, PreferenceConstantHelper.HEIGHT);
+ DefaultSizeNodeFigure result = new DefaultSizeNodeFigure(store.getInt(preferenceConstantWitdh), store.getInt(preferenceConstantHeight));
+
+ return result;
+ }
+
+ /**
+ * Creates figure for this edit part.
+ *
+ * Body of this method does not depend on settings in generation model
+ * so you may safely remove <i>generated</i> tag and modify it.
+ *
+ * @generated
+ */
+ protected NodeFigure createNodeFigure() {
+ NodeFigure figure = createNodePlate();
+ figure.setLayoutManager(new StackLayout());
+ IFigure shape = createNodeShape();
+ figure.add(shape);
+ contentPane = setupContentPane(shape);
+ return figure;
+ }
+
+ /**
+ * Default implementation treats passed figure as content pane.
+ * Respects layout one may have set for generated figure.
+ *
+ * @param nodeShape
+ * instance of generated figure class
+ * @generated
+ */
+ protected IFigure setupContentPane(IFigure nodeShape) {
+ if(nodeShape.getLayoutManager() == null) {
+ ConstrainedToolbarLayout layout = new ConstrainedToolbarLayout();
+ layout.setSpacing(5);
+ nodeShape.setLayoutManager(layout);
+ }
+ return nodeShape; // use nodeShape itself as contentPane
+ }
+
+ /**
+ * @generated
+ */
+ public IFigure getContentPane() {
+ if(contentPane != null) {
+ return contentPane;
+ }
+ return super.getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ protected void setForegroundColor(Color color) {
+ if(primaryShape != null) {
+ primaryShape.setForegroundColor(color);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLineWidth(int width) {
+ if(primaryShape instanceof Shape) {
+ ((Shape)primaryShape).setLineWidth(width);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLineType(int style) {
+ if(primaryShape instanceof Shape) {
+ ((Shape)primaryShape).setLineStyle(style);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public EditPart getPrimaryChildEditPart() {
+ return getChildBySemanticHint(UMLVisualIDRegistry.getType(AnyReceiveEventNameEditPart.VISUAL_ID));
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnSource() {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(11);
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ types.add(UMLElementTypes.Substitution_4011);
+ types.add(UMLElementTypes.Realization_4006);
+ types.add(UMLElementTypes.Manifestation_4012);
+ types.add(UMLElementTypes.Abstraction_4007);
+ types.add(UMLElementTypes.Usage_4008);
+ types.add(UMLElementTypes.Deployment_4009);
+ types.add(UMLElementTypes.Dependency_4017);
+ types.add(UMLElementTypes.Dependency_4010);
+ types.add(UMLElementTypes.InformationFlow_4021);
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnSourceAndTarget(IGraphicalEditPart targetEditPart) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMATypesForTarget(IElementType relationshipType) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(relationshipType == UMLElementTypes.ComponentRealization_4004) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InterfaceRealization_4005) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Substitution_4011) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Realization_4006) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Manifestation_4012) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Abstraction_4007) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Usage_4008) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Deployment_4009) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4017) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4010) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InformationFlow_4021) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnTarget() {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(15);
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ types.add(UMLElementTypes.Substitution_4011);
+ types.add(UMLElementTypes.Realization_4006);
+ types.add(UMLElementTypes.Manifestation_4012);
+ types.add(UMLElementTypes.Abstraction_4007);
+ types.add(UMLElementTypes.Usage_4008);
+ types.add(UMLElementTypes.Deployment_4009);
+ types.add(UMLElementTypes.Dependency_4017);
+ types.add(UMLElementTypes.Dependency_4010);
+ types.add(UMLElementTypes.TimeObservationEvent_4018);
+ types.add(UMLElementTypes.DurationObservationEvent_4019);
+ types.add(UMLElementTypes.InformationFlow_4021);
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMATypesForSource(IElementType relationshipType) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(relationshipType == UMLElementTypes.CommentAnnotatedElement_4002) {
+ types.add(UMLElementTypes.Comment_2109);
+ types.add(UMLElementTypes.Comment_3097);
+ } else if(relationshipType == UMLElementTypes.ConstraintConstrainedElement_4003) {
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.ComponentRealization_4004) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InterfaceRealization_4005) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Substitution_4011) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Realization_4006) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Manifestation_4012) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Abstraction_4007) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Usage_4008) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Deployment_4009) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4017) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4010) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.TimeObservationEvent_4018) {
+ types.add(UMLElementTypes.TimeObservation_2094);
+ } else if(relationshipType == UMLElementTypes.DurationObservationEvent_4019) {
+ types.add(UMLElementTypes.DurationObservation_2093);
+ } else if(relationshipType == UMLElementTypes.InformationFlow_4021) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public class NamedElementDescriptor extends RectangleFigure {
+
+ /**
+ * @generated
+ */
+ private WrappingLabel fNamedElementNameLabel;
+
+ /**
+ * @generated
+ */
+ public NamedElementDescriptor() {
+ this.setLineWidth(1);
+ this.setForegroundColor(ColorConstants.black);
+ createContents();
+ }
+
+ /**
+ * @generated
+ */
+ private void createContents() {
+
+ fNamedElementNameLabel = new WrappingLabel();
+ fNamedElementNameLabel.setText("");
+ fNamedElementNameLabel.setForegroundColor(ColorConstants.black);
+
+ fNamedElementNameLabel.setFont(FNAMEDELEMENTNAMELABEL_FONT);
+
+ this.add(fNamedElementNameLabel);
+
+ }
+
+ /**
+ * @generated
+ */
+ private boolean myUseLocalCoordinates = false;
+
+ /**
+ * @generated
+ */
+ protected boolean useLocalCoordinates() {
+ return myUseLocalCoordinates;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setUseLocalCoordinates(boolean useLocalCoordinates) {
+ myUseLocalCoordinates = useLocalCoordinates;
+ }
+
+ /**
+ * @generated
+ */
+ public WrappingLabel getNamedElementNameLabel() {
+ return fNamedElementNameLabel;
+ }
+
+ }
+
+ /**
+ * @generated
+ */
+ static final Font FNAMEDELEMENTNAMELABEL_FONT = new Font(Display.getCurrent(), "Arial", 10, SWT.BOLD);
+
+ /**
+ * @generated
+ */
+ @Override
+ public Object getPreferredValue(EStructuralFeature feature) {
+ IPreferenceStore preferenceStore = (IPreferenceStore)getDiagramPreferencesHint().getPreferenceStore();
+ Object result = null;
+
+ if(feature == NotationPackage.eINSTANCE.getLineStyle_LineColor() || feature == NotationPackage.eINSTANCE.getFontStyle_FontColor() || feature == NotationPackage.eINSTANCE.getFillStyle_FillColor()) {
+ String prefColor = null;
+ if(feature == NotationPackage.eINSTANCE.getLineStyle_LineColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("AnyReceiveEvent", PreferenceConstantHelper.COLOR_LINE);
+ } else if(feature == NotationPackage.eINSTANCE.getFontStyle_FontColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("AnyReceiveEvent", PreferenceConstantHelper.COLOR_FONT);
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_FillColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("AnyReceiveEvent", PreferenceConstantHelper.COLOR_FILL);
+ }
+ result = FigureUtilities.RGBToInteger(PreferenceConverter.getColor((IPreferenceStore)preferenceStore, prefColor));
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_Transparency() || feature == NotationPackage.eINSTANCE.getFillStyle_Gradient()) {
+ String prefGradient = PreferenceConstantHelper.getElementConstant("AnyReceiveEvent", PreferenceConstantHelper.COLOR_GRADIENT);
+ GradientPreferenceConverter gradientPreferenceConverter = new GradientPreferenceConverter(preferenceStore.getString(prefGradient));
+ if(feature == NotationPackage.eINSTANCE.getFillStyle_Transparency()) {
+ result = new Integer(gradientPreferenceConverter.getTransparency());
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_Gradient()) {
+ result = gradientPreferenceConverter.getGradientData();
+ }
+ }
+
+ if(result == null) {
+ result = getStructuralFeatureValue(feature);
+ }
+ return result;
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/AnyReceiveEventNameEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/AnyReceiveEventNameEditPart.java
new file mode 100644
index 00000000000..fd18aa2d9cb
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/AnyReceiveEventNameEditPart.java
@@ -0,0 +1,791 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EAnnotation;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.emf.transaction.RunnableWithResult;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.AccessibleEditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.requests.DirectEditRequest;
+import org.eclipse.gef.tools.DirectEditManager;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.CompartmentEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
+import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
+import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
+import org.eclipse.gmf.runtime.notation.FontStyle;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
+import org.eclipse.jface.viewers.ICellEditorValidator;
+import org.eclipse.jface.window.Window;
+import org.eclipse.papyrus.diagram.common.directedit.MultilineLabelDirectEditManager;
+import org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition;
+import org.eclipse.papyrus.diagram.common.editpolicies.IMaskManagedLabelEditPolicy;
+import org.eclipse.papyrus.diagram.common.figure.node.ILabelFigure;
+import org.eclipse.papyrus.diagram.common.util.DiagramEditPartsUtil;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLTextSelectionEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.diagram.composite.providers.UMLParserProvider;
+import org.eclipse.papyrus.extensionpoints.editors.Activator;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
+import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
+import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
+import org.eclipse.papyrus.umlutils.ui.VisualInformationPapyrusConstant;
+import org.eclipse.papyrus.umlutils.ui.helper.NameLabelIconHelper;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.AccessibleEvent;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.FontData;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.ui.PlatformUI;
+
+/**
+ * @generated
+ */
+public class AnyReceiveEventNameEditPart extends CompartmentEditPart implements ITextAwareEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 5168;
+
+ /**
+ * @generated
+ */
+ private DirectEditManager manager;
+
+ /**
+ * @generated
+ */
+ private IParser parser;
+
+ /**
+ * @generated
+ */
+ private List<?> parserElements;
+
+ /**
+ * @generated
+ */
+ private String defaultText;
+
+ /**
+ * direct edition mode (default, undefined, registered editor, etc.)
+ *
+ * @generated
+ */
+ protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
+
+ /**
+ * configuration from a registered edit dialog
+ *
+ * @generated
+ */
+ protected IDirectEditorConfiguration configuration;
+
+ /**
+ * @generated
+ */
+ public AnyReceiveEventNameEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
+ installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new CompositeStructureDiagramEditPart.NodeLabelDragPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelTextHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getText();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getText();
+ } else {
+ return ((Label)figure).getText();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelTextHelper(IFigure figure, String text) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setText(text);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setText(text);
+ } else {
+ ((Label)figure).setText(text);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIconHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getIcon();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getIcon();
+ } else {
+ return ((Label)figure).getIcon();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelIconHelper(IFigure figure, Image icon) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setIcon(icon);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setIcon(icon);
+ } else {
+ ((Label)figure).setIcon(icon);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabel(WrappingLabel figure) {
+ unregisterVisuals();
+ setFigure(figure);
+ defaultText = getLabelTextHelper(figure);
+ registerVisuals();
+ refreshVisuals();
+ }
+
+ /**
+ * @generated
+ */
+ protected List getModelChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject getParserElement() {
+ return resolveSemanticElement();
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIcon() {
+ EObject parserElement = getParserElement();
+ if(parserElement == null) {
+ return null;
+ }
+
+ List<View> views = DiagramEditPartsUtil.findViews(parserElement, getViewer());
+ for(View view : views) {
+ if(NameLabelIconHelper.showLabelIcon(view)) {
+ return UMLElementTypes.getImage(parserElement.eClass());
+ }
+ }
+ return null;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelText() {
+ String text = null;
+ EObject parserElement = getParserElement();
+ if(parserElement != null && getParser() != null) {
+ text = getParser().getPrintString(new EObjectAdapter(parserElement), getParserOptions().intValue());
+ }
+ if(text == null || text.length() == 0) {
+ text = defaultText;
+ }
+ return text;
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabelText(String text) {
+ setLabelTextHelper(getFigure(), text);
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public String getEditText() {
+ if(getParserElement() == null || getParser() == null) {
+ return ""; //$NON-NLS-1$
+ }
+ return getParser().getEditString(new EObjectAdapter(getParserElement()), getParserOptions().intValue());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean isEditable() {
+ return getParser() != null;
+ }
+
+ /**
+ * @generated
+ */
+ public ICellEditorValidator getEditTextValidator() {
+ return new ICellEditorValidator() {
+
+ public String isValid(final Object value) {
+ if(value instanceof String) {
+ final EObject element = getParserElement();
+ final IParser parser = getParser();
+ try {
+ IParserEditStatus valid = (IParserEditStatus)getEditingDomain().runExclusive(new RunnableWithResult.Impl() {
+
+ public void run() {
+ setResult(parser.isValidEditString(new EObjectAdapter(element), (String)value));
+ }
+ });
+ return valid.getCode() == ParserEditStatus.EDITABLE ? null : valid.getMessage();
+ } catch (InterruptedException ie) {
+ ie.printStackTrace();
+ }
+ }
+
+ // shouldn't get here
+ return null;
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ public IContentAssistProcessor getCompletionProcessor() {
+ if(getParserElement() == null || getParser() == null) {
+ return null;
+ }
+ return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
+ }
+
+ /**
+ * @generated
+ */
+ public ParserOptions getParserOptions() {
+ return ParserOptions.NONE;
+ }
+
+ /**
+ * @generated
+ */
+ public IParser getParser() {
+ if(parser == null) {
+ parser = UMLParserProvider.getParser(UMLElementTypes.AnyReceiveEvent_2085, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.diagram.composite.edit.parts.AnyReceiveEventNameEditPart.VISUAL_ID));
+ }
+ return parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected DirectEditManager getManager() {
+ if(manager == null) {
+ setManager(new MultilineLabelDirectEditManager(this, MultilineLabelDirectEditManager.getTextCellEditorClass(this), UMLEditPartFactory.getTextCellEditorLocator(this)));
+ }
+ return manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setManager(DirectEditManager manager) {
+ this.manager = manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit() {
+ getManager().show();
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit(Point eventLocation) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(eventLocation.getSWTPoint());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void performDirectEdit(char initialCharacter) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(initialCharacter);
+ } else {
+ performDirectEdit();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEditRequest(Request request) {
+
+ final Request theRequest = request;
+
+ if(IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
+ directEditionMode = getDirectEditionType();
+ }
+ switch(directEditionMode) {
+ case IDirectEdition.NO_DIRECT_EDITION:
+ // no direct edition mode => does nothing
+ return;
+ case IDirectEdition.EXTENDED_DIRECT_EDITOR:
+ updateExtendedEditorConfiguration();
+ if(configuration == null || configuration.getLanguage() == null) {
+ performDefaultDirectEditorEdit(theRequest);
+ } else {
+ configuration.preEditAction(resolveSemanticElement());
+ Dialog dialog = null;
+ if(configuration instanceof IPopupEditorConfiguration) {
+ IPopupEditorHelper helper = ((IPopupEditorConfiguration)configuration).createPopupEditorHelper(this);
+ helper.showEditor();
+ return;
+ } else if(configuration instanceof IAdvancedEditorConfiguration) {
+ dialog = ((IAdvancedEditorConfiguration)configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
+ } else if(configuration instanceof IDirectEditorConfiguration) {
+ dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), ((IDirectEditorConfiguration)configuration).getTextToEdit(resolveSemanticElement()), (IDirectEditorConfiguration)configuration);
+ } else {
+ return;
+ }
+ final Dialog finalDialog = dialog;
+
+ if(Window.OK == dialog.open()) {
+ TransactionalEditingDomain domain = getEditingDomain();
+ RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
+
+ @Override
+ protected void doExecute() {
+ configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog)finalDialog).getValue());
+
+ }
+ };
+ domain.getCommandStack().execute(command);
+ }
+ }
+ break;
+ case IDirectEdition.DEFAULT_DIRECT_EDITOR:
+
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ break;
+ default:
+ break;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshLabel();
+ refreshFont();
+ refreshFontColor();
+ refreshUnderline();
+ refreshStrikeThrough();
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshLabel() {
+ EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
+ if(maskLabelPolicy == null) {
+ setLabelTextHelper(getFigure(), getLabelText());
+ setLabelIconHelper(getFigure(), getLabelIcon());
+ }
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshUnderline() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextUnderline(style.isUnderline());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshStrikeThrough() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextStrikeThrough(style.isStrikeThrough());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshFont() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null) {
+ FontData fontData = new FontData(style.getFontName(), style.getFontHeight(), (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
+ setFont(fontData);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setFontColor(Color color) {
+ getFigure().setForegroundColor(color);
+ }
+
+ /**
+ * @generated
+ */
+ protected void addSemanticListeners() {
+ if(getParser() instanceof ISemanticParser) {
+ EObject element = resolveSemanticElement();
+ parserElements = ((ISemanticParser)getParser()).getSemanticElementsBeingParsed(element);
+ for(int i = 0; i < parserElements.size(); i++) {
+ addListenerFilter("SemanticModel" + i, this, (EObject)parserElements.get(i)); //$NON-NLS-1$
+ }
+ } else {
+ super.addSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeSemanticListeners() {
+ if(parserElements != null) {
+ for(int i = 0; i < parserElements.size(); i++) {
+ removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
+ }
+ } else {
+ super.removeSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected AccessibleEditPart getAccessibleEditPart() {
+ if(accessibleEP == null) {
+ accessibleEP = new AccessibleGraphicalEditPart() {
+
+ public void getName(AccessibleEvent e) {
+ e.result = getLabelTextHelper(getFigure());
+ }
+ };
+ }
+ return accessibleEP;
+ }
+
+ /**
+ * @generated
+ */
+ private View getFontStyleOwnerView() {
+ return (View)getModel();
+ }
+
+ /**
+ * Returns the kind of associated editor for direct edition.
+ *
+ * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition
+ * @generated
+ */
+ public int getDirectEditionType() {
+ if(checkExtendedEditor()) {
+ initExtendedEditorConfiguration();
+ return IDirectEdition.EXTENDED_DIRECT_EDITOR;
+ }
+ if(checkDefaultEdition()) {
+ return IDirectEdition.DEFAULT_DIRECT_EDITOR;
+ }
+
+ // not a named element. no specific editor => do nothing
+ return IDirectEdition.NO_DIRECT_EDITION;
+ }
+
+ /**
+ * Checks if an extended editor is present.
+ *
+ * @return <code>true</code> if an extended editor is present.
+ * @generated
+ */
+ protected boolean checkExtendedEditor() {
+ if(resolveSemanticElement() != null) {
+ return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ return false;
+ }
+
+ /**
+ * Checks if a default direct edition is available
+ *
+ * @return <code>true</code> if a default direct edition is available
+ * @generated
+ */
+ protected boolean checkDefaultEdition() {
+ return (getParser() != null);
+ }
+
+ /**
+ * Initializes the extended editor configuration
+ *
+ * @generated
+ */
+ protected void initExtendedEditorConfiguration() {
+ if(configuration == null) {
+ final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("")) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else {
+ configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ }
+ }
+
+ /**
+ * Updates the preference configuration
+ *
+ * @generated
+ */
+ protected void updateExtendedEditorConfiguration() {
+ String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("") && languagePreferred != configuration.getLanguage()) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else if(IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
+ configuration = null;
+ }
+ }
+
+ /**
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
+ protected void performDefaultDirectEditorEdit(final Request theRequest) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void addNotationalListeners() {
+ super.addNotationalListeners();
+ addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeNotationalListeners() {
+ super.removeNotationalListeners();
+ removeListenerFilter("PrimaryView"); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void handleNotificationEvent(Notification event) {
+ refreshLabel();
+ Object feature = event.getFeature();
+ if(NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
+ Integer c = (Integer)event.getNewValue();
+ setFontColor(DiagramColorRegistry.getInstance().getColor(c));
+ } else if(NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
+ refreshUnderline();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
+ refreshStrikeThrough();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
+ refreshFont();
+ } else {
+ if(getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
+ refreshLabel();
+ }
+ if(getParser() instanceof ISemanticParser) {
+ ISemanticParser modelParser = (ISemanticParser)getParser();
+ if(modelParser.areSemanticElementsAffected(null, event)) {
+ removeSemanticListeners();
+ if(resolveSemanticElement() != null) {
+ addSemanticListeners();
+ }
+ refreshLabel();
+ }
+ }
+ }
+
+ if(event.getNewValue() instanceof EAnnotation && VisualInformationPapyrusConstant.DISPLAY_NAMELABELICON.equals(((EAnnotation)event.getNewValue()).getSource())) {
+ refreshLabel();
+ }
+
+ super.handleNotificationEvent(event);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createFigure() {
+ // Parent should assign one using setLabel() method
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ private static final String ADD_PARENT_MODEL = "AddParentModel";
+
+ /**
+ * @generated
+ */
+ public void activate() {
+ super.activate();
+ addOwnerElementListeners();
+ }
+
+ /**
+ * @generated
+ */
+ protected void addOwnerElementListeners() {
+ addListenerFilter(ADD_PARENT_MODEL, this, ((View)getParent().getModel())); //$NON-NLS-1$
+
+ }
+
+ /**
+ * @generated
+ */
+ public void deactivate() {
+ removeOwnerElementListeners();
+ super.deactivate();
+
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeOwnerElementListeners() {
+ removeListenerFilter(ADD_PARENT_MODEL);
+
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ArtifactEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ArtifactEditPart.java
new file mode 100644
index 00000000000..fe3d01b0c59
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ArtifactEditPart.java
@@ -0,0 +1,5397 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.ArrayList;
+import java.util.LinkedList;
+import java.util.List;
+
+import org.eclipse.draw2d.ColorConstants;
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.RectangleFigure;
+import org.eclipse.draw2d.Shape;
+import org.eclipse.draw2d.StackLayout;
+import org.eclipse.emf.ecore.EStructuralFeature;
+import org.eclipse.gef.EditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.editpolicies.LayoutEditPolicy;
+import org.eclipse.gef.editpolicies.NonResizableEditPolicy;
+import org.eclipse.gef.requests.CreateRequest;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ShapeNodeEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.FigureUtilities;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.gef.ui.figures.DefaultSizeNodeFigure;
+import org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.jface.preference.PreferenceConverter;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.HyperLinkPopupBarEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.QualifiedNameDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.helper.PreferenceInitializerForElementHelper;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.GraphicalNodeEditPolicy;
+import org.eclipse.papyrus.diagram.composite.edit.policies.ArtifactItemSemanticEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorPlugin;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter;
+import org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.Font;
+import org.eclipse.swt.widgets.Display;
+
+/**
+ * @generated
+ */
+public class ArtifactEditPart extends
+
+ShapeNodeEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 2079;
+
+ /**
+ * @generated
+ */
+ protected IFigure contentPane;
+
+ /**
+ * @generated
+ */
+ protected IFigure primaryShape;
+
+ /**
+ * @generated
+ */
+ public ArtifactEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new ArtifactItemSemanticEditPolicy());
+ installEditPolicy(EditPolicy.LAYOUT_ROLE, createLayoutEditPolicy());
+ installEditPolicy(QualifiedNameDisplayEditPolicy.QUALIFIED_NAME_POLICY, new QualifiedNameDisplayEditPolicy());
+ installEditPolicy(AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeNodeLabelDisplayEditPolicy());
+ installEditPolicy(EditPolicyRoles.POPUPBAR_ROLE, new HyperLinkPopupBarEditPolicy());
+ installEditPolicy(EditPolicy.GRAPHICAL_NODE_ROLE, new GraphicalNodeEditPolicy());
+ // XXX need an SCR to runtime to have another abstract superclass that would let children add reasonable editpolicies
+ // removeEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CONNECTION_HANDLES_ROLE);
+ }
+
+ /**
+ * @generated
+ */
+ protected LayoutEditPolicy createLayoutEditPolicy() {
+ org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy lep = new org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy() {
+
+ protected EditPolicy createChildEditPolicy(EditPart child) {
+ EditPolicy result = child.getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(result == null) {
+ result = new NonResizableEditPolicy();
+ }
+ return result;
+ }
+
+ protected Command getMoveChildrenCommand(Request request) {
+ return null;
+ }
+
+ protected Command getCreateCommand(CreateRequest request) {
+ return null;
+ }
+ };
+ return lep;
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createNodeShape() {
+ return primaryShape = new NamedElementDescriptor();
+ }
+
+ /**
+ * @generated
+ */
+ public NamedElementDescriptor getPrimaryShape() {
+ return (NamedElementDescriptor)primaryShape;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean addFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof ArtifactNameEditPart) {
+ ((ArtifactNameEditPart)childEditPart).setLabel(getPrimaryShape().getNamedElementNameLabel());
+ return true;
+ }
+
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean removeFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof ArtifactNameEditPart) {
+ return true;
+ }
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected void addChildVisual(EditPart childEditPart, int index) {
+ if(addFixedChild(childEditPart)) {
+ return;
+ }
+ super.addChildVisual(childEditPart, -1);
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeChildVisual(EditPart childEditPart) {
+ if(removeFixedChild(childEditPart)) {
+ return;
+ }
+ super.removeChildVisual(childEditPart);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure getContentPaneFor(IGraphicalEditPart editPart) {
+ return getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ protected NodeFigure createNodePlate() {
+ String prefElementId = "Artifact";
+ IPreferenceStore store = UMLDiagramEditorPlugin.getInstance().getPreferenceStore();
+ String preferenceConstantWitdh = PreferenceInitializerForElementHelper.getpreferenceKey(getNotationView(), prefElementId, PreferenceConstantHelper.WIDTH);
+ String preferenceConstantHeight = PreferenceInitializerForElementHelper.getpreferenceKey(getNotationView(), prefElementId, PreferenceConstantHelper.HEIGHT);
+ DefaultSizeNodeFigure result = new DefaultSizeNodeFigure(store.getInt(preferenceConstantWitdh), store.getInt(preferenceConstantHeight));
+
+ return result;
+ }
+
+ /**
+ * Creates figure for this edit part.
+ *
+ * Body of this method does not depend on settings in generation model
+ * so you may safely remove <i>generated</i> tag and modify it.
+ *
+ * @generated
+ */
+ protected NodeFigure createNodeFigure() {
+ NodeFigure figure = createNodePlate();
+ figure.setLayoutManager(new StackLayout());
+ IFigure shape = createNodeShape();
+ figure.add(shape);
+ contentPane = setupContentPane(shape);
+ return figure;
+ }
+
+ /**
+ * Default implementation treats passed figure as content pane.
+ * Respects layout one may have set for generated figure.
+ *
+ * @param nodeShape
+ * instance of generated figure class
+ * @generated
+ */
+ protected IFigure setupContentPane(IFigure nodeShape) {
+ if(nodeShape.getLayoutManager() == null) {
+ ConstrainedToolbarLayout layout = new ConstrainedToolbarLayout();
+ layout.setSpacing(5);
+ nodeShape.setLayoutManager(layout);
+ }
+ return nodeShape; // use nodeShape itself as contentPane
+ }
+
+ /**
+ * @generated
+ */
+ public IFigure getContentPane() {
+ if(contentPane != null) {
+ return contentPane;
+ }
+ return super.getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ protected void setForegroundColor(Color color) {
+ if(primaryShape != null) {
+ primaryShape.setForegroundColor(color);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLineWidth(int width) {
+ if(primaryShape instanceof Shape) {
+ ((Shape)primaryShape).setLineWidth(width);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLineType(int style) {
+ if(primaryShape instanceof Shape) {
+ ((Shape)primaryShape).setLineStyle(style);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public EditPart getPrimaryChildEditPart() {
+ return getChildBySemanticHint(UMLVisualIDRegistry.getType(ArtifactNameEditPart.VISUAL_ID));
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnSource() {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(12);
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ types.add(UMLElementTypes.Substitution_4011);
+ types.add(UMLElementTypes.Realization_4006);
+ types.add(UMLElementTypes.Manifestation_4012);
+ types.add(UMLElementTypes.Abstraction_4007);
+ types.add(UMLElementTypes.Usage_4008);
+ types.add(UMLElementTypes.Deployment_4009);
+ types.add(UMLElementTypes.Dependency_4017);
+ types.add(UMLElementTypes.Dependency_4010);
+ types.add(UMLElementTypes.Generalization_4015);
+ types.add(UMLElementTypes.InformationFlow_4021);
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnSourceAndTarget(IGraphicalEditPart targetEditPart) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ArtifactEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ArtifactEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ArtifactEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ArtifactEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ArtifactEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ArtifactEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ArtifactEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ArtifactEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ArtifactEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ArtifactEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ArtifactEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ArtifactEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMATypesForTarget(IElementType relationshipType) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(relationshipType == UMLElementTypes.ComponentRealization_4004) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InterfaceRealization_4005) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Substitution_4011) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Realization_4006) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Manifestation_4012) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Abstraction_4007) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Usage_4008) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Deployment_4009) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4017) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4010) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Generalization_4015) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ } else if(relationshipType == UMLElementTypes.InformationFlow_4021) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnTarget() {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(17);
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ types.add(UMLElementTypes.Substitution_4011);
+ types.add(UMLElementTypes.Realization_4006);
+ types.add(UMLElementTypes.Manifestation_4012);
+ types.add(UMLElementTypes.Abstraction_4007);
+ types.add(UMLElementTypes.Usage_4008);
+ types.add(UMLElementTypes.Deployment_4009);
+ types.add(UMLElementTypes.Dependency_4017);
+ types.add(UMLElementTypes.Dependency_4010);
+ types.add(UMLElementTypes.Generalization_4015);
+ types.add(UMLElementTypes.TimeObservationEvent_4018);
+ types.add(UMLElementTypes.DurationObservationEvent_4019);
+ types.add(UMLElementTypes.InformationItemRepresented_4020);
+ types.add(UMLElementTypes.InformationFlow_4021);
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMATypesForSource(IElementType relationshipType) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(relationshipType == UMLElementTypes.CommentAnnotatedElement_4002) {
+ types.add(UMLElementTypes.Comment_2109);
+ types.add(UMLElementTypes.Comment_3097);
+ } else if(relationshipType == UMLElementTypes.ConstraintConstrainedElement_4003) {
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.ComponentRealization_4004) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InterfaceRealization_4005) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Substitution_4011) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Realization_4006) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Manifestation_4012) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Abstraction_4007) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Usage_4008) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Deployment_4009) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4017) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4010) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Generalization_4015) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ } else if(relationshipType == UMLElementTypes.TimeObservationEvent_4018) {
+ types.add(UMLElementTypes.TimeObservation_2094);
+ } else if(relationshipType == UMLElementTypes.DurationObservationEvent_4019) {
+ types.add(UMLElementTypes.DurationObservation_2093);
+ } else if(relationshipType == UMLElementTypes.InformationItemRepresented_4020) {
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.InformationItem_3094);
+ } else if(relationshipType == UMLElementTypes.InformationFlow_4021) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public class NamedElementDescriptor extends RectangleFigure {
+
+ /**
+ * @generated
+ */
+ private WrappingLabel fNamedElementNameLabel;
+
+ /**
+ * @generated
+ */
+ public NamedElementDescriptor() {
+ this.setLineWidth(1);
+ this.setForegroundColor(ColorConstants.black);
+ createContents();
+ }
+
+ /**
+ * @generated
+ */
+ private void createContents() {
+
+ fNamedElementNameLabel = new WrappingLabel();
+ fNamedElementNameLabel.setText("");
+ fNamedElementNameLabel.setForegroundColor(ColorConstants.black);
+
+ fNamedElementNameLabel.setFont(FNAMEDELEMENTNAMELABEL_FONT);
+
+ this.add(fNamedElementNameLabel);
+
+ }
+
+ /**
+ * @generated
+ */
+ private boolean myUseLocalCoordinates = false;
+
+ /**
+ * @generated
+ */
+ protected boolean useLocalCoordinates() {
+ return myUseLocalCoordinates;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setUseLocalCoordinates(boolean useLocalCoordinates) {
+ myUseLocalCoordinates = useLocalCoordinates;
+ }
+
+ /**
+ * @generated
+ */
+ public WrappingLabel getNamedElementNameLabel() {
+ return fNamedElementNameLabel;
+ }
+
+ }
+
+ /**
+ * @generated
+ */
+ static final Font FNAMEDELEMENTNAMELABEL_FONT = new Font(Display.getCurrent(), "Arial", 10, SWT.BOLD);
+
+ /**
+ * @generated
+ */
+ @Override
+ public Object getPreferredValue(EStructuralFeature feature) {
+ IPreferenceStore preferenceStore = (IPreferenceStore)getDiagramPreferencesHint().getPreferenceStore();
+ Object result = null;
+
+ if(feature == NotationPackage.eINSTANCE.getLineStyle_LineColor() || feature == NotationPackage.eINSTANCE.getFontStyle_FontColor() || feature == NotationPackage.eINSTANCE.getFillStyle_FillColor()) {
+ String prefColor = null;
+ if(feature == NotationPackage.eINSTANCE.getLineStyle_LineColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("Artifact", PreferenceConstantHelper.COLOR_LINE);
+ } else if(feature == NotationPackage.eINSTANCE.getFontStyle_FontColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("Artifact", PreferenceConstantHelper.COLOR_FONT);
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_FillColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("Artifact", PreferenceConstantHelper.COLOR_FILL);
+ }
+ result = FigureUtilities.RGBToInteger(PreferenceConverter.getColor((IPreferenceStore)preferenceStore, prefColor));
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_Transparency() || feature == NotationPackage.eINSTANCE.getFillStyle_Gradient()) {
+ String prefGradient = PreferenceConstantHelper.getElementConstant("Artifact", PreferenceConstantHelper.COLOR_GRADIENT);
+ GradientPreferenceConverter gradientPreferenceConverter = new GradientPreferenceConverter(preferenceStore.getString(prefGradient));
+ if(feature == NotationPackage.eINSTANCE.getFillStyle_Transparency()) {
+ result = new Integer(gradientPreferenceConverter.getTransparency());
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_Gradient()) {
+ result = gradientPreferenceConverter.getGradientData();
+ }
+ }
+
+ if(result == null) {
+ result = getStructuralFeatureValue(feature);
+ }
+ return result;
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ArtifactEditPartCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ArtifactEditPartCN.java
new file mode 100644
index 00000000000..5c5c0ba17d4
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ArtifactEditPartCN.java
@@ -0,0 +1,5411 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.ArrayList;
+import java.util.LinkedList;
+import java.util.List;
+
+import org.eclipse.draw2d.ColorConstants;
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.RectangleFigure;
+import org.eclipse.draw2d.Shape;
+import org.eclipse.draw2d.StackLayout;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EStructuralFeature;
+import org.eclipse.gef.EditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.editpolicies.LayoutEditPolicy;
+import org.eclipse.gef.editpolicies.NonResizableEditPolicy;
+import org.eclipse.gef.requests.CreateRequest;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ShapeNodeEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.FigureUtilities;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.gef.ui.figures.DefaultSizeNodeFigure;
+import org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.jface.preference.PreferenceConverter;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.HyperLinkPopupBarEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.QualifiedNameDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.helper.PreferenceInitializerForElementHelper;
+import org.eclipse.papyrus.diagram.composite.custom.edit.parts.ConstrainedShapeNodeEditPart;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.GraphicalNodeEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.NoScrollClassifierResizableShapeEditPolicy;
+import org.eclipse.papyrus.diagram.composite.edit.policies.ArtifactItemSemanticEditPolicyCN;
+import org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorPlugin;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter;
+import org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.Font;
+import org.eclipse.swt.widgets.Display;
+
+/**
+ * @generated
+ */
+public class ArtifactEditPartCN extends
+
+ConstrainedShapeNodeEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 3093;
+
+ /**
+ * @generated
+ */
+ protected IFigure contentPane;
+
+ /**
+ * @generated
+ */
+ protected IFigure primaryShape;
+
+ /**
+ * @generated
+ */
+ public ArtifactEditPartCN(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new ArtifactItemSemanticEditPolicyCN());
+ installEditPolicy(EditPolicy.LAYOUT_ROLE, createLayoutEditPolicy());
+ installEditPolicy(QualifiedNameDisplayEditPolicy.QUALIFIED_NAME_POLICY, new QualifiedNameDisplayEditPolicy());
+ installEditPolicy(AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeNodeLabelDisplayEditPolicy());
+ installEditPolicy(EditPolicyRoles.POPUPBAR_ROLE, new HyperLinkPopupBarEditPolicy());
+ installEditPolicy(EditPolicy.GRAPHICAL_NODE_ROLE, new GraphicalNodeEditPolicy());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new NoScrollClassifierResizableShapeEditPolicy());
+ // XXX need an SCR to runtime to have another abstract superclass that would let children add reasonable editpolicies
+ // removeEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CONNECTION_HANDLES_ROLE);
+ }
+
+ /**
+ * Papyrus codeGen
+ *
+ * @generated
+ **/
+ protected void handleNotificationEvent(Notification event) {
+ super.handleNotificationEvent(event);
+
+ }
+
+ /**
+ * @generated
+ */
+ protected LayoutEditPolicy createLayoutEditPolicy() {
+ org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy lep = new org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy() {
+
+ protected EditPolicy createChildEditPolicy(EditPart child) {
+ EditPolicy result = child.getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(result == null) {
+ result = new NonResizableEditPolicy();
+ }
+ return result;
+ }
+
+ protected Command getMoveChildrenCommand(Request request) {
+ return null;
+ }
+
+ protected Command getCreateCommand(CreateRequest request) {
+ return null;
+ }
+ };
+ return lep;
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createNodeShape() {
+ return primaryShape = new NamedElementDescriptor();
+ }
+
+ /**
+ * @generated
+ */
+ public NamedElementDescriptor getPrimaryShape() {
+ return (NamedElementDescriptor)primaryShape;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean addFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof ArtifactNameEditPartCN) {
+ ((ArtifactNameEditPartCN)childEditPart).setLabel(getPrimaryShape().getNamedElementNameLabel());
+ return true;
+ }
+
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean removeFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof ArtifactNameEditPartCN) {
+ return true;
+ }
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected void addChildVisual(EditPart childEditPart, int index) {
+ if(addFixedChild(childEditPart)) {
+ return;
+ }
+ super.addChildVisual(childEditPart, -1);
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeChildVisual(EditPart childEditPart) {
+ if(removeFixedChild(childEditPart)) {
+ return;
+ }
+ super.removeChildVisual(childEditPart);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure getContentPaneFor(IGraphicalEditPart editPart) {
+ return getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ protected NodeFigure createNodePlate() {
+ String prefElementId = "Artifact";
+ IPreferenceStore store = UMLDiagramEditorPlugin.getInstance().getPreferenceStore();
+ String preferenceConstantWitdh = PreferenceInitializerForElementHelper.getpreferenceKey(getNotationView(), prefElementId, PreferenceConstantHelper.WIDTH);
+ String preferenceConstantHeight = PreferenceInitializerForElementHelper.getpreferenceKey(getNotationView(), prefElementId, PreferenceConstantHelper.HEIGHT);
+ DefaultSizeNodeFigure result = new DefaultSizeNodeFigure(store.getInt(preferenceConstantWitdh), store.getInt(preferenceConstantHeight));
+
+ return result;
+ }
+
+ /**
+ * Creates figure for this edit part.
+ *
+ * Body of this method does not depend on settings in generation model
+ * so you may safely remove <i>generated</i> tag and modify it.
+ *
+ * @generated
+ */
+ protected NodeFigure createNodeFigure() {
+ NodeFigure figure = createNodePlate();
+ figure.setLayoutManager(new StackLayout());
+ IFigure shape = createNodeShape();
+ figure.add(shape);
+ contentPane = setupContentPane(shape);
+ return figure;
+ }
+
+ /**
+ * Default implementation treats passed figure as content pane.
+ * Respects layout one may have set for generated figure.
+ *
+ * @param nodeShape
+ * instance of generated figure class
+ * @generated
+ */
+ protected IFigure setupContentPane(IFigure nodeShape) {
+ if(nodeShape.getLayoutManager() == null) {
+ ConstrainedToolbarLayout layout = new ConstrainedToolbarLayout();
+ layout.setSpacing(5);
+ nodeShape.setLayoutManager(layout);
+ }
+ return nodeShape; // use nodeShape itself as contentPane
+ }
+
+ /**
+ * @generated
+ */
+ public IFigure getContentPane() {
+ if(contentPane != null) {
+ return contentPane;
+ }
+ return super.getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ protected void setForegroundColor(Color color) {
+ if(primaryShape != null) {
+ primaryShape.setForegroundColor(color);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLineWidth(int width) {
+ if(primaryShape instanceof Shape) {
+ ((Shape)primaryShape).setLineWidth(width);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLineType(int style) {
+ if(primaryShape instanceof Shape) {
+ ((Shape)primaryShape).setLineStyle(style);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public EditPart getPrimaryChildEditPart() {
+ return getChildBySemanticHint(UMLVisualIDRegistry.getType(ArtifactNameEditPartCN.VISUAL_ID));
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnSource() {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(12);
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ types.add(UMLElementTypes.Substitution_4011);
+ types.add(UMLElementTypes.Realization_4006);
+ types.add(UMLElementTypes.Manifestation_4012);
+ types.add(UMLElementTypes.Abstraction_4007);
+ types.add(UMLElementTypes.Usage_4008);
+ types.add(UMLElementTypes.Deployment_4009);
+ types.add(UMLElementTypes.Dependency_4017);
+ types.add(UMLElementTypes.Dependency_4010);
+ types.add(UMLElementTypes.Generalization_4015);
+ types.add(UMLElementTypes.InformationFlow_4021);
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnSourceAndTarget(IGraphicalEditPart targetEditPart) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ArtifactEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ArtifactEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ArtifactEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMATypesForTarget(IElementType relationshipType) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(relationshipType == UMLElementTypes.ComponentRealization_4004) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InterfaceRealization_4005) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Substitution_4011) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Realization_4006) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Manifestation_4012) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Abstraction_4007) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Usage_4008) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Deployment_4009) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4017) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4010) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Generalization_4015) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ } else if(relationshipType == UMLElementTypes.InformationFlow_4021) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnTarget() {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(17);
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ types.add(UMLElementTypes.Substitution_4011);
+ types.add(UMLElementTypes.Realization_4006);
+ types.add(UMLElementTypes.Manifestation_4012);
+ types.add(UMLElementTypes.Abstraction_4007);
+ types.add(UMLElementTypes.Usage_4008);
+ types.add(UMLElementTypes.Deployment_4009);
+ types.add(UMLElementTypes.Dependency_4017);
+ types.add(UMLElementTypes.Dependency_4010);
+ types.add(UMLElementTypes.Generalization_4015);
+ types.add(UMLElementTypes.TimeObservationEvent_4018);
+ types.add(UMLElementTypes.DurationObservationEvent_4019);
+ types.add(UMLElementTypes.InformationItemRepresented_4020);
+ types.add(UMLElementTypes.InformationFlow_4021);
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMATypesForSource(IElementType relationshipType) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(relationshipType == UMLElementTypes.CommentAnnotatedElement_4002) {
+ types.add(UMLElementTypes.Comment_2109);
+ types.add(UMLElementTypes.Comment_3097);
+ } else if(relationshipType == UMLElementTypes.ConstraintConstrainedElement_4003) {
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.ComponentRealization_4004) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InterfaceRealization_4005) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Substitution_4011) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Realization_4006) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Manifestation_4012) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Abstraction_4007) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Usage_4008) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Deployment_4009) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4017) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4010) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Generalization_4015) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ } else if(relationshipType == UMLElementTypes.TimeObservationEvent_4018) {
+ types.add(UMLElementTypes.TimeObservation_2094);
+ } else if(relationshipType == UMLElementTypes.DurationObservationEvent_4019) {
+ types.add(UMLElementTypes.DurationObservation_2093);
+ } else if(relationshipType == UMLElementTypes.InformationItemRepresented_4020) {
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.InformationItem_3094);
+ } else if(relationshipType == UMLElementTypes.InformationFlow_4021) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public class NamedElementDescriptor extends RectangleFigure {
+
+ /**
+ * @generated
+ */
+ private WrappingLabel fNamedElementNameLabel;
+
+ /**
+ * @generated
+ */
+ public NamedElementDescriptor() {
+ this.setLineWidth(1);
+ this.setForegroundColor(ColorConstants.black);
+ createContents();
+ }
+
+ /**
+ * @generated
+ */
+ private void createContents() {
+
+ fNamedElementNameLabel = new WrappingLabel();
+ fNamedElementNameLabel.setText("");
+ fNamedElementNameLabel.setForegroundColor(ColorConstants.black);
+
+ fNamedElementNameLabel.setFont(FNAMEDELEMENTNAMELABEL_FONT);
+
+ this.add(fNamedElementNameLabel);
+
+ }
+
+ /**
+ * @generated
+ */
+ private boolean myUseLocalCoordinates = false;
+
+ /**
+ * @generated
+ */
+ protected boolean useLocalCoordinates() {
+ return myUseLocalCoordinates;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setUseLocalCoordinates(boolean useLocalCoordinates) {
+ myUseLocalCoordinates = useLocalCoordinates;
+ }
+
+ /**
+ * @generated
+ */
+ public WrappingLabel getNamedElementNameLabel() {
+ return fNamedElementNameLabel;
+ }
+
+ }
+
+ /**
+ * @generated
+ */
+ static final Font FNAMEDELEMENTNAMELABEL_FONT = new Font(Display.getCurrent(), "Arial", 10, SWT.BOLD);
+
+ /**
+ * @generated
+ */
+ @Override
+ public Object getPreferredValue(EStructuralFeature feature) {
+ IPreferenceStore preferenceStore = (IPreferenceStore)getDiagramPreferencesHint().getPreferenceStore();
+ Object result = null;
+
+ if(feature == NotationPackage.eINSTANCE.getLineStyle_LineColor() || feature == NotationPackage.eINSTANCE.getFontStyle_FontColor() || feature == NotationPackage.eINSTANCE.getFillStyle_FillColor()) {
+ String prefColor = null;
+ if(feature == NotationPackage.eINSTANCE.getLineStyle_LineColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("Artifact", PreferenceConstantHelper.COLOR_LINE);
+ } else if(feature == NotationPackage.eINSTANCE.getFontStyle_FontColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("Artifact", PreferenceConstantHelper.COLOR_FONT);
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_FillColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("Artifact", PreferenceConstantHelper.COLOR_FILL);
+ }
+ result = FigureUtilities.RGBToInteger(PreferenceConverter.getColor((IPreferenceStore)preferenceStore, prefColor));
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_Transparency() || feature == NotationPackage.eINSTANCE.getFillStyle_Gradient()) {
+ String prefGradient = PreferenceConstantHelper.getElementConstant("Artifact", PreferenceConstantHelper.COLOR_GRADIENT);
+ GradientPreferenceConverter gradientPreferenceConverter = new GradientPreferenceConverter(preferenceStore.getString(prefGradient));
+ if(feature == NotationPackage.eINSTANCE.getFillStyle_Transparency()) {
+ result = new Integer(gradientPreferenceConverter.getTransparency());
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_Gradient()) {
+ result = gradientPreferenceConverter.getGradientData();
+ }
+ }
+
+ if(result == null) {
+ result = getStructuralFeatureValue(feature);
+ }
+ return result;
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ArtifactNameEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ArtifactNameEditPart.java
new file mode 100644
index 00000000000..ae8022ba531
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ArtifactNameEditPart.java
@@ -0,0 +1,791 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EAnnotation;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.emf.transaction.RunnableWithResult;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.AccessibleEditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.requests.DirectEditRequest;
+import org.eclipse.gef.tools.DirectEditManager;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.CompartmentEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
+import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
+import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
+import org.eclipse.gmf.runtime.notation.FontStyle;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
+import org.eclipse.jface.viewers.ICellEditorValidator;
+import org.eclipse.jface.window.Window;
+import org.eclipse.papyrus.diagram.common.directedit.MultilineLabelDirectEditManager;
+import org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition;
+import org.eclipse.papyrus.diagram.common.editpolicies.IMaskManagedLabelEditPolicy;
+import org.eclipse.papyrus.diagram.common.figure.node.ILabelFigure;
+import org.eclipse.papyrus.diagram.common.util.DiagramEditPartsUtil;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLTextSelectionEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.diagram.composite.providers.UMLParserProvider;
+import org.eclipse.papyrus.extensionpoints.editors.Activator;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
+import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
+import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
+import org.eclipse.papyrus.umlutils.ui.VisualInformationPapyrusConstant;
+import org.eclipse.papyrus.umlutils.ui.helper.NameLabelIconHelper;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.AccessibleEvent;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.FontData;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.ui.PlatformUI;
+
+/**
+ * @generated
+ */
+public class ArtifactNameEditPart extends CompartmentEditPart implements ITextAwareEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 5162;
+
+ /**
+ * @generated
+ */
+ private DirectEditManager manager;
+
+ /**
+ * @generated
+ */
+ private IParser parser;
+
+ /**
+ * @generated
+ */
+ private List<?> parserElements;
+
+ /**
+ * @generated
+ */
+ private String defaultText;
+
+ /**
+ * direct edition mode (default, undefined, registered editor, etc.)
+ *
+ * @generated
+ */
+ protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
+
+ /**
+ * configuration from a registered edit dialog
+ *
+ * @generated
+ */
+ protected IDirectEditorConfiguration configuration;
+
+ /**
+ * @generated
+ */
+ public ArtifactNameEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
+ installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new CompositeStructureDiagramEditPart.NodeLabelDragPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelTextHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getText();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getText();
+ } else {
+ return ((Label)figure).getText();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelTextHelper(IFigure figure, String text) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setText(text);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setText(text);
+ } else {
+ ((Label)figure).setText(text);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIconHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getIcon();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getIcon();
+ } else {
+ return ((Label)figure).getIcon();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelIconHelper(IFigure figure, Image icon) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setIcon(icon);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setIcon(icon);
+ } else {
+ ((Label)figure).setIcon(icon);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabel(WrappingLabel figure) {
+ unregisterVisuals();
+ setFigure(figure);
+ defaultText = getLabelTextHelper(figure);
+ registerVisuals();
+ refreshVisuals();
+ }
+
+ /**
+ * @generated
+ */
+ protected List getModelChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject getParserElement() {
+ return resolveSemanticElement();
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIcon() {
+ EObject parserElement = getParserElement();
+ if(parserElement == null) {
+ return null;
+ }
+
+ List<View> views = DiagramEditPartsUtil.findViews(parserElement, getViewer());
+ for(View view : views) {
+ if(NameLabelIconHelper.showLabelIcon(view)) {
+ return UMLElementTypes.getImage(parserElement.eClass());
+ }
+ }
+ return null;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelText() {
+ String text = null;
+ EObject parserElement = getParserElement();
+ if(parserElement != null && getParser() != null) {
+ text = getParser().getPrintString(new EObjectAdapter(parserElement), getParserOptions().intValue());
+ }
+ if(text == null || text.length() == 0) {
+ text = defaultText;
+ }
+ return text;
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabelText(String text) {
+ setLabelTextHelper(getFigure(), text);
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public String getEditText() {
+ if(getParserElement() == null || getParser() == null) {
+ return ""; //$NON-NLS-1$
+ }
+ return getParser().getEditString(new EObjectAdapter(getParserElement()), getParserOptions().intValue());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean isEditable() {
+ return getParser() != null;
+ }
+
+ /**
+ * @generated
+ */
+ public ICellEditorValidator getEditTextValidator() {
+ return new ICellEditorValidator() {
+
+ public String isValid(final Object value) {
+ if(value instanceof String) {
+ final EObject element = getParserElement();
+ final IParser parser = getParser();
+ try {
+ IParserEditStatus valid = (IParserEditStatus)getEditingDomain().runExclusive(new RunnableWithResult.Impl() {
+
+ public void run() {
+ setResult(parser.isValidEditString(new EObjectAdapter(element), (String)value));
+ }
+ });
+ return valid.getCode() == ParserEditStatus.EDITABLE ? null : valid.getMessage();
+ } catch (InterruptedException ie) {
+ ie.printStackTrace();
+ }
+ }
+
+ // shouldn't get here
+ return null;
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ public IContentAssistProcessor getCompletionProcessor() {
+ if(getParserElement() == null || getParser() == null) {
+ return null;
+ }
+ return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
+ }
+
+ /**
+ * @generated
+ */
+ public ParserOptions getParserOptions() {
+ return ParserOptions.NONE;
+ }
+
+ /**
+ * @generated
+ */
+ public IParser getParser() {
+ if(parser == null) {
+ parser = UMLParserProvider.getParser(UMLElementTypes.Artifact_2079, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.diagram.composite.edit.parts.ArtifactNameEditPart.VISUAL_ID));
+ }
+ return parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected DirectEditManager getManager() {
+ if(manager == null) {
+ setManager(new MultilineLabelDirectEditManager(this, MultilineLabelDirectEditManager.getTextCellEditorClass(this), UMLEditPartFactory.getTextCellEditorLocator(this)));
+ }
+ return manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setManager(DirectEditManager manager) {
+ this.manager = manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit() {
+ getManager().show();
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit(Point eventLocation) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(eventLocation.getSWTPoint());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void performDirectEdit(char initialCharacter) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(initialCharacter);
+ } else {
+ performDirectEdit();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEditRequest(Request request) {
+
+ final Request theRequest = request;
+
+ if(IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
+ directEditionMode = getDirectEditionType();
+ }
+ switch(directEditionMode) {
+ case IDirectEdition.NO_DIRECT_EDITION:
+ // no direct edition mode => does nothing
+ return;
+ case IDirectEdition.EXTENDED_DIRECT_EDITOR:
+ updateExtendedEditorConfiguration();
+ if(configuration == null || configuration.getLanguage() == null) {
+ performDefaultDirectEditorEdit(theRequest);
+ } else {
+ configuration.preEditAction(resolveSemanticElement());
+ Dialog dialog = null;
+ if(configuration instanceof IPopupEditorConfiguration) {
+ IPopupEditorHelper helper = ((IPopupEditorConfiguration)configuration).createPopupEditorHelper(this);
+ helper.showEditor();
+ return;
+ } else if(configuration instanceof IAdvancedEditorConfiguration) {
+ dialog = ((IAdvancedEditorConfiguration)configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
+ } else if(configuration instanceof IDirectEditorConfiguration) {
+ dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), ((IDirectEditorConfiguration)configuration).getTextToEdit(resolveSemanticElement()), (IDirectEditorConfiguration)configuration);
+ } else {
+ return;
+ }
+ final Dialog finalDialog = dialog;
+
+ if(Window.OK == dialog.open()) {
+ TransactionalEditingDomain domain = getEditingDomain();
+ RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
+
+ @Override
+ protected void doExecute() {
+ configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog)finalDialog).getValue());
+
+ }
+ };
+ domain.getCommandStack().execute(command);
+ }
+ }
+ break;
+ case IDirectEdition.DEFAULT_DIRECT_EDITOR:
+
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ break;
+ default:
+ break;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshLabel();
+ refreshFont();
+ refreshFontColor();
+ refreshUnderline();
+ refreshStrikeThrough();
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshLabel() {
+ EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
+ if(maskLabelPolicy == null) {
+ setLabelTextHelper(getFigure(), getLabelText());
+ setLabelIconHelper(getFigure(), getLabelIcon());
+ }
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshUnderline() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextUnderline(style.isUnderline());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshStrikeThrough() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextStrikeThrough(style.isStrikeThrough());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshFont() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null) {
+ FontData fontData = new FontData(style.getFontName(), style.getFontHeight(), (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
+ setFont(fontData);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setFontColor(Color color) {
+ getFigure().setForegroundColor(color);
+ }
+
+ /**
+ * @generated
+ */
+ protected void addSemanticListeners() {
+ if(getParser() instanceof ISemanticParser) {
+ EObject element = resolveSemanticElement();
+ parserElements = ((ISemanticParser)getParser()).getSemanticElementsBeingParsed(element);
+ for(int i = 0; i < parserElements.size(); i++) {
+ addListenerFilter("SemanticModel" + i, this, (EObject)parserElements.get(i)); //$NON-NLS-1$
+ }
+ } else {
+ super.addSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeSemanticListeners() {
+ if(parserElements != null) {
+ for(int i = 0; i < parserElements.size(); i++) {
+ removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
+ }
+ } else {
+ super.removeSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected AccessibleEditPart getAccessibleEditPart() {
+ if(accessibleEP == null) {
+ accessibleEP = new AccessibleGraphicalEditPart() {
+
+ public void getName(AccessibleEvent e) {
+ e.result = getLabelTextHelper(getFigure());
+ }
+ };
+ }
+ return accessibleEP;
+ }
+
+ /**
+ * @generated
+ */
+ private View getFontStyleOwnerView() {
+ return (View)getModel();
+ }
+
+ /**
+ * Returns the kind of associated editor for direct edition.
+ *
+ * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition
+ * @generated
+ */
+ public int getDirectEditionType() {
+ if(checkExtendedEditor()) {
+ initExtendedEditorConfiguration();
+ return IDirectEdition.EXTENDED_DIRECT_EDITOR;
+ }
+ if(checkDefaultEdition()) {
+ return IDirectEdition.DEFAULT_DIRECT_EDITOR;
+ }
+
+ // not a named element. no specific editor => do nothing
+ return IDirectEdition.NO_DIRECT_EDITION;
+ }
+
+ /**
+ * Checks if an extended editor is present.
+ *
+ * @return <code>true</code> if an extended editor is present.
+ * @generated
+ */
+ protected boolean checkExtendedEditor() {
+ if(resolveSemanticElement() != null) {
+ return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ return false;
+ }
+
+ /**
+ * Checks if a default direct edition is available
+ *
+ * @return <code>true</code> if a default direct edition is available
+ * @generated
+ */
+ protected boolean checkDefaultEdition() {
+ return (getParser() != null);
+ }
+
+ /**
+ * Initializes the extended editor configuration
+ *
+ * @generated
+ */
+ protected void initExtendedEditorConfiguration() {
+ if(configuration == null) {
+ final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("")) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else {
+ configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ }
+ }
+
+ /**
+ * Updates the preference configuration
+ *
+ * @generated
+ */
+ protected void updateExtendedEditorConfiguration() {
+ String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("") && languagePreferred != configuration.getLanguage()) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else if(IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
+ configuration = null;
+ }
+ }
+
+ /**
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
+ protected void performDefaultDirectEditorEdit(final Request theRequest) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void addNotationalListeners() {
+ super.addNotationalListeners();
+ addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeNotationalListeners() {
+ super.removeNotationalListeners();
+ removeListenerFilter("PrimaryView"); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void handleNotificationEvent(Notification event) {
+ refreshLabel();
+ Object feature = event.getFeature();
+ if(NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
+ Integer c = (Integer)event.getNewValue();
+ setFontColor(DiagramColorRegistry.getInstance().getColor(c));
+ } else if(NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
+ refreshUnderline();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
+ refreshStrikeThrough();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
+ refreshFont();
+ } else {
+ if(getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
+ refreshLabel();
+ }
+ if(getParser() instanceof ISemanticParser) {
+ ISemanticParser modelParser = (ISemanticParser)getParser();
+ if(modelParser.areSemanticElementsAffected(null, event)) {
+ removeSemanticListeners();
+ if(resolveSemanticElement() != null) {
+ addSemanticListeners();
+ }
+ refreshLabel();
+ }
+ }
+ }
+
+ if(event.getNewValue() instanceof EAnnotation && VisualInformationPapyrusConstant.DISPLAY_NAMELABELICON.equals(((EAnnotation)event.getNewValue()).getSource())) {
+ refreshLabel();
+ }
+
+ super.handleNotificationEvent(event);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createFigure() {
+ // Parent should assign one using setLabel() method
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ private static final String ADD_PARENT_MODEL = "AddParentModel";
+
+ /**
+ * @generated
+ */
+ public void activate() {
+ super.activate();
+ addOwnerElementListeners();
+ }
+
+ /**
+ * @generated
+ */
+ protected void addOwnerElementListeners() {
+ addListenerFilter(ADD_PARENT_MODEL, this, ((View)getParent().getModel())); //$NON-NLS-1$
+
+ }
+
+ /**
+ * @generated
+ */
+ public void deactivate() {
+ removeOwnerElementListeners();
+ super.deactivate();
+
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeOwnerElementListeners() {
+ removeListenerFilter(ADD_PARENT_MODEL);
+
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ArtifactNameEditPartCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ArtifactNameEditPartCN.java
new file mode 100644
index 00000000000..c686f8b30fc
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ArtifactNameEditPartCN.java
@@ -0,0 +1,791 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EAnnotation;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.emf.transaction.RunnableWithResult;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.AccessibleEditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.requests.DirectEditRequest;
+import org.eclipse.gef.tools.DirectEditManager;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.CompartmentEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
+import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
+import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
+import org.eclipse.gmf.runtime.notation.FontStyle;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
+import org.eclipse.jface.viewers.ICellEditorValidator;
+import org.eclipse.jface.window.Window;
+import org.eclipse.papyrus.diagram.common.directedit.MultilineLabelDirectEditManager;
+import org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition;
+import org.eclipse.papyrus.diagram.common.editpolicies.IMaskManagedLabelEditPolicy;
+import org.eclipse.papyrus.diagram.common.figure.node.ILabelFigure;
+import org.eclipse.papyrus.diagram.common.util.DiagramEditPartsUtil;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLTextSelectionEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.diagram.composite.providers.UMLParserProvider;
+import org.eclipse.papyrus.extensionpoints.editors.Activator;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
+import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
+import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
+import org.eclipse.papyrus.umlutils.ui.VisualInformationPapyrusConstant;
+import org.eclipse.papyrus.umlutils.ui.helper.NameLabelIconHelper;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.AccessibleEvent;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.FontData;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.ui.PlatformUI;
+
+/**
+ * @generated
+ */
+public class ArtifactNameEditPartCN extends CompartmentEditPart implements ITextAwareEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 5146;
+
+ /**
+ * @generated
+ */
+ private DirectEditManager manager;
+
+ /**
+ * @generated
+ */
+ private IParser parser;
+
+ /**
+ * @generated
+ */
+ private List<?> parserElements;
+
+ /**
+ * @generated
+ */
+ private String defaultText;
+
+ /**
+ * direct edition mode (default, undefined, registered editor, etc.)
+ *
+ * @generated
+ */
+ protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
+
+ /**
+ * configuration from a registered edit dialog
+ *
+ * @generated
+ */
+ protected IDirectEditorConfiguration configuration;
+
+ /**
+ * @generated
+ */
+ public ArtifactNameEditPartCN(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
+ installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new CompositeStructureDiagramEditPart.NodeLabelDragPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelTextHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getText();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getText();
+ } else {
+ return ((Label)figure).getText();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelTextHelper(IFigure figure, String text) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setText(text);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setText(text);
+ } else {
+ ((Label)figure).setText(text);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIconHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getIcon();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getIcon();
+ } else {
+ return ((Label)figure).getIcon();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelIconHelper(IFigure figure, Image icon) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setIcon(icon);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setIcon(icon);
+ } else {
+ ((Label)figure).setIcon(icon);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabel(WrappingLabel figure) {
+ unregisterVisuals();
+ setFigure(figure);
+ defaultText = getLabelTextHelper(figure);
+ registerVisuals();
+ refreshVisuals();
+ }
+
+ /**
+ * @generated
+ */
+ protected List getModelChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject getParserElement() {
+ return resolveSemanticElement();
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIcon() {
+ EObject parserElement = getParserElement();
+ if(parserElement == null) {
+ return null;
+ }
+
+ List<View> views = DiagramEditPartsUtil.findViews(parserElement, getViewer());
+ for(View view : views) {
+ if(NameLabelIconHelper.showLabelIcon(view)) {
+ return UMLElementTypes.getImage(parserElement.eClass());
+ }
+ }
+ return null;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelText() {
+ String text = null;
+ EObject parserElement = getParserElement();
+ if(parserElement != null && getParser() != null) {
+ text = getParser().getPrintString(new EObjectAdapter(parserElement), getParserOptions().intValue());
+ }
+ if(text == null || text.length() == 0) {
+ text = defaultText;
+ }
+ return text;
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabelText(String text) {
+ setLabelTextHelper(getFigure(), text);
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public String getEditText() {
+ if(getParserElement() == null || getParser() == null) {
+ return ""; //$NON-NLS-1$
+ }
+ return getParser().getEditString(new EObjectAdapter(getParserElement()), getParserOptions().intValue());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean isEditable() {
+ return getParser() != null;
+ }
+
+ /**
+ * @generated
+ */
+ public ICellEditorValidator getEditTextValidator() {
+ return new ICellEditorValidator() {
+
+ public String isValid(final Object value) {
+ if(value instanceof String) {
+ final EObject element = getParserElement();
+ final IParser parser = getParser();
+ try {
+ IParserEditStatus valid = (IParserEditStatus)getEditingDomain().runExclusive(new RunnableWithResult.Impl() {
+
+ public void run() {
+ setResult(parser.isValidEditString(new EObjectAdapter(element), (String)value));
+ }
+ });
+ return valid.getCode() == ParserEditStatus.EDITABLE ? null : valid.getMessage();
+ } catch (InterruptedException ie) {
+ ie.printStackTrace();
+ }
+ }
+
+ // shouldn't get here
+ return null;
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ public IContentAssistProcessor getCompletionProcessor() {
+ if(getParserElement() == null || getParser() == null) {
+ return null;
+ }
+ return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
+ }
+
+ /**
+ * @generated
+ */
+ public ParserOptions getParserOptions() {
+ return ParserOptions.NONE;
+ }
+
+ /**
+ * @generated
+ */
+ public IParser getParser() {
+ if(parser == null) {
+ parser = UMLParserProvider.getParser(UMLElementTypes.Artifact_3093, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.diagram.composite.edit.parts.ArtifactNameEditPartCN.VISUAL_ID));
+ }
+ return parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected DirectEditManager getManager() {
+ if(manager == null) {
+ setManager(new MultilineLabelDirectEditManager(this, MultilineLabelDirectEditManager.getTextCellEditorClass(this), UMLEditPartFactory.getTextCellEditorLocator(this)));
+ }
+ return manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setManager(DirectEditManager manager) {
+ this.manager = manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit() {
+ getManager().show();
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit(Point eventLocation) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(eventLocation.getSWTPoint());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void performDirectEdit(char initialCharacter) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(initialCharacter);
+ } else {
+ performDirectEdit();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEditRequest(Request request) {
+
+ final Request theRequest = request;
+
+ if(IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
+ directEditionMode = getDirectEditionType();
+ }
+ switch(directEditionMode) {
+ case IDirectEdition.NO_DIRECT_EDITION:
+ // no direct edition mode => does nothing
+ return;
+ case IDirectEdition.EXTENDED_DIRECT_EDITOR:
+ updateExtendedEditorConfiguration();
+ if(configuration == null || configuration.getLanguage() == null) {
+ performDefaultDirectEditorEdit(theRequest);
+ } else {
+ configuration.preEditAction(resolveSemanticElement());
+ Dialog dialog = null;
+ if(configuration instanceof IPopupEditorConfiguration) {
+ IPopupEditorHelper helper = ((IPopupEditorConfiguration)configuration).createPopupEditorHelper(this);
+ helper.showEditor();
+ return;
+ } else if(configuration instanceof IAdvancedEditorConfiguration) {
+ dialog = ((IAdvancedEditorConfiguration)configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
+ } else if(configuration instanceof IDirectEditorConfiguration) {
+ dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), ((IDirectEditorConfiguration)configuration).getTextToEdit(resolveSemanticElement()), (IDirectEditorConfiguration)configuration);
+ } else {
+ return;
+ }
+ final Dialog finalDialog = dialog;
+
+ if(Window.OK == dialog.open()) {
+ TransactionalEditingDomain domain = getEditingDomain();
+ RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
+
+ @Override
+ protected void doExecute() {
+ configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog)finalDialog).getValue());
+
+ }
+ };
+ domain.getCommandStack().execute(command);
+ }
+ }
+ break;
+ case IDirectEdition.DEFAULT_DIRECT_EDITOR:
+
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ break;
+ default:
+ break;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshLabel();
+ refreshFont();
+ refreshFontColor();
+ refreshUnderline();
+ refreshStrikeThrough();
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshLabel() {
+ EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
+ if(maskLabelPolicy == null) {
+ setLabelTextHelper(getFigure(), getLabelText());
+ setLabelIconHelper(getFigure(), getLabelIcon());
+ }
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshUnderline() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextUnderline(style.isUnderline());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshStrikeThrough() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextStrikeThrough(style.isStrikeThrough());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshFont() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null) {
+ FontData fontData = new FontData(style.getFontName(), style.getFontHeight(), (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
+ setFont(fontData);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setFontColor(Color color) {
+ getFigure().setForegroundColor(color);
+ }
+
+ /**
+ * @generated
+ */
+ protected void addSemanticListeners() {
+ if(getParser() instanceof ISemanticParser) {
+ EObject element = resolveSemanticElement();
+ parserElements = ((ISemanticParser)getParser()).getSemanticElementsBeingParsed(element);
+ for(int i = 0; i < parserElements.size(); i++) {
+ addListenerFilter("SemanticModel" + i, this, (EObject)parserElements.get(i)); //$NON-NLS-1$
+ }
+ } else {
+ super.addSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeSemanticListeners() {
+ if(parserElements != null) {
+ for(int i = 0; i < parserElements.size(); i++) {
+ removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
+ }
+ } else {
+ super.removeSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected AccessibleEditPart getAccessibleEditPart() {
+ if(accessibleEP == null) {
+ accessibleEP = new AccessibleGraphicalEditPart() {
+
+ public void getName(AccessibleEvent e) {
+ e.result = getLabelTextHelper(getFigure());
+ }
+ };
+ }
+ return accessibleEP;
+ }
+
+ /**
+ * @generated
+ */
+ private View getFontStyleOwnerView() {
+ return (View)getModel();
+ }
+
+ /**
+ * Returns the kind of associated editor for direct edition.
+ *
+ * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition
+ * @generated
+ */
+ public int getDirectEditionType() {
+ if(checkExtendedEditor()) {
+ initExtendedEditorConfiguration();
+ return IDirectEdition.EXTENDED_DIRECT_EDITOR;
+ }
+ if(checkDefaultEdition()) {
+ return IDirectEdition.DEFAULT_DIRECT_EDITOR;
+ }
+
+ // not a named element. no specific editor => do nothing
+ return IDirectEdition.NO_DIRECT_EDITION;
+ }
+
+ /**
+ * Checks if an extended editor is present.
+ *
+ * @return <code>true</code> if an extended editor is present.
+ * @generated
+ */
+ protected boolean checkExtendedEditor() {
+ if(resolveSemanticElement() != null) {
+ return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ return false;
+ }
+
+ /**
+ * Checks if a default direct edition is available
+ *
+ * @return <code>true</code> if a default direct edition is available
+ * @generated
+ */
+ protected boolean checkDefaultEdition() {
+ return (getParser() != null);
+ }
+
+ /**
+ * Initializes the extended editor configuration
+ *
+ * @generated
+ */
+ protected void initExtendedEditorConfiguration() {
+ if(configuration == null) {
+ final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("")) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else {
+ configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ }
+ }
+
+ /**
+ * Updates the preference configuration
+ *
+ * @generated
+ */
+ protected void updateExtendedEditorConfiguration() {
+ String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("") && languagePreferred != configuration.getLanguage()) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else if(IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
+ configuration = null;
+ }
+ }
+
+ /**
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
+ protected void performDefaultDirectEditorEdit(final Request theRequest) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void addNotationalListeners() {
+ super.addNotationalListeners();
+ addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeNotationalListeners() {
+ super.removeNotationalListeners();
+ removeListenerFilter("PrimaryView"); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void handleNotificationEvent(Notification event) {
+ refreshLabel();
+ Object feature = event.getFeature();
+ if(NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
+ Integer c = (Integer)event.getNewValue();
+ setFontColor(DiagramColorRegistry.getInstance().getColor(c));
+ } else if(NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
+ refreshUnderline();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
+ refreshStrikeThrough();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
+ refreshFont();
+ } else {
+ if(getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
+ refreshLabel();
+ }
+ if(getParser() instanceof ISemanticParser) {
+ ISemanticParser modelParser = (ISemanticParser)getParser();
+ if(modelParser.areSemanticElementsAffected(null, event)) {
+ removeSemanticListeners();
+ if(resolveSemanticElement() != null) {
+ addSemanticListeners();
+ }
+ refreshLabel();
+ }
+ }
+ }
+
+ if(event.getNewValue() instanceof EAnnotation && VisualInformationPapyrusConstant.DISPLAY_NAMELABELICON.equals(((EAnnotation)event.getNewValue()).getSource())) {
+ refreshLabel();
+ }
+
+ super.handleNotificationEvent(event);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createFigure() {
+ // Parent should assign one using setLabel() method
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ private static final String ADD_PARENT_MODEL = "AddParentModel";
+
+ /**
+ * @generated
+ */
+ public void activate() {
+ super.activate();
+ addOwnerElementListeners();
+ }
+
+ /**
+ * @generated
+ */
+ protected void addOwnerElementListeners() {
+ addListenerFilter(ADD_PARENT_MODEL, this, ((View)getParent().getModel())); //$NON-NLS-1$
+
+ }
+
+ /**
+ * @generated
+ */
+ public void deactivate() {
+ removeOwnerElementListeners();
+ super.deactivate();
+
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeOwnerElementListeners() {
+ removeListenerFilter(ADD_PARENT_MODEL);
+
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/CallEventEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/CallEventEditPart.java
new file mode 100644
index 00000000000..0408d556048
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/CallEventEditPart.java
@@ -0,0 +1,5167 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.ArrayList;
+import java.util.LinkedList;
+import java.util.List;
+
+import org.eclipse.draw2d.ColorConstants;
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.RectangleFigure;
+import org.eclipse.draw2d.Shape;
+import org.eclipse.draw2d.StackLayout;
+import org.eclipse.emf.ecore.EStructuralFeature;
+import org.eclipse.gef.EditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.editpolicies.LayoutEditPolicy;
+import org.eclipse.gef.editpolicies.NonResizableEditPolicy;
+import org.eclipse.gef.requests.CreateRequest;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ShapeNodeEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.FigureUtilities;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.gef.ui.figures.DefaultSizeNodeFigure;
+import org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.jface.preference.PreferenceConverter;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.HyperLinkPopupBarEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.QualifiedNameDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.helper.PreferenceInitializerForElementHelper;
+import org.eclipse.papyrus.diagram.composite.edit.policies.CallEventItemSemanticEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorPlugin;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter;
+import org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.Font;
+import org.eclipse.swt.widgets.Display;
+
+/**
+ * @generated
+ */
+public class CallEventEditPart extends
+
+ShapeNodeEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 2084;
+
+ /**
+ * @generated
+ */
+ protected IFigure contentPane;
+
+ /**
+ * @generated
+ */
+ protected IFigure primaryShape;
+
+ /**
+ * @generated
+ */
+ public CallEventEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new CallEventItemSemanticEditPolicy());
+ installEditPolicy(EditPolicy.LAYOUT_ROLE, createLayoutEditPolicy());
+ installEditPolicy(QualifiedNameDisplayEditPolicy.QUALIFIED_NAME_POLICY, new QualifiedNameDisplayEditPolicy());
+ installEditPolicy(AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeNodeLabelDisplayEditPolicy());
+ installEditPolicy(EditPolicyRoles.POPUPBAR_ROLE, new HyperLinkPopupBarEditPolicy());
+ // XXX need an SCR to runtime to have another abstract superclass that would let children add reasonable editpolicies
+ // removeEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CONNECTION_HANDLES_ROLE);
+ }
+
+ /**
+ * @generated
+ */
+ protected LayoutEditPolicy createLayoutEditPolicy() {
+ org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy lep = new org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy() {
+
+ protected EditPolicy createChildEditPolicy(EditPart child) {
+ EditPolicy result = child.getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(result == null) {
+ result = new NonResizableEditPolicy();
+ }
+ return result;
+ }
+
+ protected Command getMoveChildrenCommand(Request request) {
+ return null;
+ }
+
+ protected Command getCreateCommand(CreateRequest request) {
+ return null;
+ }
+ };
+ return lep;
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createNodeShape() {
+ return primaryShape = new NamedElementDescriptor();
+ }
+
+ /**
+ * @generated
+ */
+ public NamedElementDescriptor getPrimaryShape() {
+ return (NamedElementDescriptor)primaryShape;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean addFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof CallEventNameEditPart) {
+ ((CallEventNameEditPart)childEditPart).setLabel(getPrimaryShape().getNamedElementNameLabel());
+ return true;
+ }
+
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean removeFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof CallEventNameEditPart) {
+ return true;
+ }
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected void addChildVisual(EditPart childEditPart, int index) {
+ if(addFixedChild(childEditPart)) {
+ return;
+ }
+ super.addChildVisual(childEditPart, -1);
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeChildVisual(EditPart childEditPart) {
+ if(removeFixedChild(childEditPart)) {
+ return;
+ }
+ super.removeChildVisual(childEditPart);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure getContentPaneFor(IGraphicalEditPart editPart) {
+ return getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ protected NodeFigure createNodePlate() {
+ String prefElementId = "CallEvent";
+ IPreferenceStore store = UMLDiagramEditorPlugin.getInstance().getPreferenceStore();
+ String preferenceConstantWitdh = PreferenceInitializerForElementHelper.getpreferenceKey(getNotationView(), prefElementId, PreferenceConstantHelper.WIDTH);
+ String preferenceConstantHeight = PreferenceInitializerForElementHelper.getpreferenceKey(getNotationView(), prefElementId, PreferenceConstantHelper.HEIGHT);
+ DefaultSizeNodeFigure result = new DefaultSizeNodeFigure(store.getInt(preferenceConstantWitdh), store.getInt(preferenceConstantHeight));
+
+ return result;
+ }
+
+ /**
+ * Creates figure for this edit part.
+ *
+ * Body of this method does not depend on settings in generation model
+ * so you may safely remove <i>generated</i> tag and modify it.
+ *
+ * @generated
+ */
+ protected NodeFigure createNodeFigure() {
+ NodeFigure figure = createNodePlate();
+ figure.setLayoutManager(new StackLayout());
+ IFigure shape = createNodeShape();
+ figure.add(shape);
+ contentPane = setupContentPane(shape);
+ return figure;
+ }
+
+ /**
+ * Default implementation treats passed figure as content pane.
+ * Respects layout one may have set for generated figure.
+ *
+ * @param nodeShape
+ * instance of generated figure class
+ * @generated
+ */
+ protected IFigure setupContentPane(IFigure nodeShape) {
+ if(nodeShape.getLayoutManager() == null) {
+ ConstrainedToolbarLayout layout = new ConstrainedToolbarLayout();
+ layout.setSpacing(5);
+ nodeShape.setLayoutManager(layout);
+ }
+ return nodeShape; // use nodeShape itself as contentPane
+ }
+
+ /**
+ * @generated
+ */
+ public IFigure getContentPane() {
+ if(contentPane != null) {
+ return contentPane;
+ }
+ return super.getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ protected void setForegroundColor(Color color) {
+ if(primaryShape != null) {
+ primaryShape.setForegroundColor(color);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLineWidth(int width) {
+ if(primaryShape instanceof Shape) {
+ ((Shape)primaryShape).setLineWidth(width);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLineType(int style) {
+ if(primaryShape instanceof Shape) {
+ ((Shape)primaryShape).setLineStyle(style);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public EditPart getPrimaryChildEditPart() {
+ return getChildBySemanticHint(UMLVisualIDRegistry.getType(CallEventNameEditPart.VISUAL_ID));
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnSource() {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(11);
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ types.add(UMLElementTypes.Substitution_4011);
+ types.add(UMLElementTypes.Realization_4006);
+ types.add(UMLElementTypes.Manifestation_4012);
+ types.add(UMLElementTypes.Abstraction_4007);
+ types.add(UMLElementTypes.Usage_4008);
+ types.add(UMLElementTypes.Deployment_4009);
+ types.add(UMLElementTypes.Dependency_4017);
+ types.add(UMLElementTypes.Dependency_4010);
+ types.add(UMLElementTypes.InformationFlow_4021);
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnSourceAndTarget(IGraphicalEditPart targetEditPart) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.CallEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.CallEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.CallEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.CallEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.CallEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.CallEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.CallEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.CallEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.CallEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.CallEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.CallEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMATypesForTarget(IElementType relationshipType) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(relationshipType == UMLElementTypes.ComponentRealization_4004) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InterfaceRealization_4005) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Substitution_4011) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Realization_4006) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Manifestation_4012) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Abstraction_4007) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Usage_4008) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Deployment_4009) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4017) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4010) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InformationFlow_4021) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnTarget() {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(15);
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ types.add(UMLElementTypes.Substitution_4011);
+ types.add(UMLElementTypes.Realization_4006);
+ types.add(UMLElementTypes.Manifestation_4012);
+ types.add(UMLElementTypes.Abstraction_4007);
+ types.add(UMLElementTypes.Usage_4008);
+ types.add(UMLElementTypes.Deployment_4009);
+ types.add(UMLElementTypes.Dependency_4017);
+ types.add(UMLElementTypes.Dependency_4010);
+ types.add(UMLElementTypes.TimeObservationEvent_4018);
+ types.add(UMLElementTypes.DurationObservationEvent_4019);
+ types.add(UMLElementTypes.InformationFlow_4021);
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMATypesForSource(IElementType relationshipType) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(relationshipType == UMLElementTypes.CommentAnnotatedElement_4002) {
+ types.add(UMLElementTypes.Comment_2109);
+ types.add(UMLElementTypes.Comment_3097);
+ } else if(relationshipType == UMLElementTypes.ConstraintConstrainedElement_4003) {
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.ComponentRealization_4004) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InterfaceRealization_4005) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Substitution_4011) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Realization_4006) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Manifestation_4012) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Abstraction_4007) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Usage_4008) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Deployment_4009) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4017) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4010) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.TimeObservationEvent_4018) {
+ types.add(UMLElementTypes.TimeObservation_2094);
+ } else if(relationshipType == UMLElementTypes.DurationObservationEvent_4019) {
+ types.add(UMLElementTypes.DurationObservation_2093);
+ } else if(relationshipType == UMLElementTypes.InformationFlow_4021) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public class NamedElementDescriptor extends RectangleFigure {
+
+ /**
+ * @generated
+ */
+ private WrappingLabel fNamedElementNameLabel;
+
+ /**
+ * @generated
+ */
+ public NamedElementDescriptor() {
+ this.setLineWidth(1);
+ this.setForegroundColor(ColorConstants.black);
+ createContents();
+ }
+
+ /**
+ * @generated
+ */
+ private void createContents() {
+
+ fNamedElementNameLabel = new WrappingLabel();
+ fNamedElementNameLabel.setText("");
+ fNamedElementNameLabel.setForegroundColor(ColorConstants.black);
+
+ fNamedElementNameLabel.setFont(FNAMEDELEMENTNAMELABEL_FONT);
+
+ this.add(fNamedElementNameLabel);
+
+ }
+
+ /**
+ * @generated
+ */
+ private boolean myUseLocalCoordinates = false;
+
+ /**
+ * @generated
+ */
+ protected boolean useLocalCoordinates() {
+ return myUseLocalCoordinates;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setUseLocalCoordinates(boolean useLocalCoordinates) {
+ myUseLocalCoordinates = useLocalCoordinates;
+ }
+
+ /**
+ * @generated
+ */
+ public WrappingLabel getNamedElementNameLabel() {
+ return fNamedElementNameLabel;
+ }
+
+ }
+
+ /**
+ * @generated
+ */
+ static final Font FNAMEDELEMENTNAMELABEL_FONT = new Font(Display.getCurrent(), "Arial", 10, SWT.BOLD);
+
+ /**
+ * @generated
+ */
+ @Override
+ public Object getPreferredValue(EStructuralFeature feature) {
+ IPreferenceStore preferenceStore = (IPreferenceStore)getDiagramPreferencesHint().getPreferenceStore();
+ Object result = null;
+
+ if(feature == NotationPackage.eINSTANCE.getLineStyle_LineColor() || feature == NotationPackage.eINSTANCE.getFontStyle_FontColor() || feature == NotationPackage.eINSTANCE.getFillStyle_FillColor()) {
+ String prefColor = null;
+ if(feature == NotationPackage.eINSTANCE.getLineStyle_LineColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("CallEvent", PreferenceConstantHelper.COLOR_LINE);
+ } else if(feature == NotationPackage.eINSTANCE.getFontStyle_FontColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("CallEvent", PreferenceConstantHelper.COLOR_FONT);
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_FillColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("CallEvent", PreferenceConstantHelper.COLOR_FILL);
+ }
+ result = FigureUtilities.RGBToInteger(PreferenceConverter.getColor((IPreferenceStore)preferenceStore, prefColor));
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_Transparency() || feature == NotationPackage.eINSTANCE.getFillStyle_Gradient()) {
+ String prefGradient = PreferenceConstantHelper.getElementConstant("CallEvent", PreferenceConstantHelper.COLOR_GRADIENT);
+ GradientPreferenceConverter gradientPreferenceConverter = new GradientPreferenceConverter(preferenceStore.getString(prefGradient));
+ if(feature == NotationPackage.eINSTANCE.getFillStyle_Transparency()) {
+ result = new Integer(gradientPreferenceConverter.getTransparency());
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_Gradient()) {
+ result = gradientPreferenceConverter.getGradientData();
+ }
+ }
+
+ if(result == null) {
+ result = getStructuralFeatureValue(feature);
+ }
+ return result;
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/CallEventNameEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/CallEventNameEditPart.java
new file mode 100644
index 00000000000..22eb01afd72
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/CallEventNameEditPart.java
@@ -0,0 +1,791 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EAnnotation;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.emf.transaction.RunnableWithResult;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.AccessibleEditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.requests.DirectEditRequest;
+import org.eclipse.gef.tools.DirectEditManager;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.CompartmentEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
+import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
+import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
+import org.eclipse.gmf.runtime.notation.FontStyle;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
+import org.eclipse.jface.viewers.ICellEditorValidator;
+import org.eclipse.jface.window.Window;
+import org.eclipse.papyrus.diagram.common.directedit.MultilineLabelDirectEditManager;
+import org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition;
+import org.eclipse.papyrus.diagram.common.editpolicies.IMaskManagedLabelEditPolicy;
+import org.eclipse.papyrus.diagram.common.figure.node.ILabelFigure;
+import org.eclipse.papyrus.diagram.common.util.DiagramEditPartsUtil;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLTextSelectionEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.diagram.composite.providers.UMLParserProvider;
+import org.eclipse.papyrus.extensionpoints.editors.Activator;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
+import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
+import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
+import org.eclipse.papyrus.umlutils.ui.VisualInformationPapyrusConstant;
+import org.eclipse.papyrus.umlutils.ui.helper.NameLabelIconHelper;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.AccessibleEvent;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.FontData;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.ui.PlatformUI;
+
+/**
+ * @generated
+ */
+public class CallEventNameEditPart extends CompartmentEditPart implements ITextAwareEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 5167;
+
+ /**
+ * @generated
+ */
+ private DirectEditManager manager;
+
+ /**
+ * @generated
+ */
+ private IParser parser;
+
+ /**
+ * @generated
+ */
+ private List<?> parserElements;
+
+ /**
+ * @generated
+ */
+ private String defaultText;
+
+ /**
+ * direct edition mode (default, undefined, registered editor, etc.)
+ *
+ * @generated
+ */
+ protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
+
+ /**
+ * configuration from a registered edit dialog
+ *
+ * @generated
+ */
+ protected IDirectEditorConfiguration configuration;
+
+ /**
+ * @generated
+ */
+ public CallEventNameEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
+ installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new CompositeStructureDiagramEditPart.NodeLabelDragPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelTextHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getText();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getText();
+ } else {
+ return ((Label)figure).getText();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelTextHelper(IFigure figure, String text) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setText(text);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setText(text);
+ } else {
+ ((Label)figure).setText(text);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIconHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getIcon();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getIcon();
+ } else {
+ return ((Label)figure).getIcon();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelIconHelper(IFigure figure, Image icon) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setIcon(icon);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setIcon(icon);
+ } else {
+ ((Label)figure).setIcon(icon);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabel(WrappingLabel figure) {
+ unregisterVisuals();
+ setFigure(figure);
+ defaultText = getLabelTextHelper(figure);
+ registerVisuals();
+ refreshVisuals();
+ }
+
+ /**
+ * @generated
+ */
+ protected List getModelChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject getParserElement() {
+ return resolveSemanticElement();
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIcon() {
+ EObject parserElement = getParserElement();
+ if(parserElement == null) {
+ return null;
+ }
+
+ List<View> views = DiagramEditPartsUtil.findViews(parserElement, getViewer());
+ for(View view : views) {
+ if(NameLabelIconHelper.showLabelIcon(view)) {
+ return UMLElementTypes.getImage(parserElement.eClass());
+ }
+ }
+ return null;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelText() {
+ String text = null;
+ EObject parserElement = getParserElement();
+ if(parserElement != null && getParser() != null) {
+ text = getParser().getPrintString(new EObjectAdapter(parserElement), getParserOptions().intValue());
+ }
+ if(text == null || text.length() == 0) {
+ text = defaultText;
+ }
+ return text;
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabelText(String text) {
+ setLabelTextHelper(getFigure(), text);
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public String getEditText() {
+ if(getParserElement() == null || getParser() == null) {
+ return ""; //$NON-NLS-1$
+ }
+ return getParser().getEditString(new EObjectAdapter(getParserElement()), getParserOptions().intValue());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean isEditable() {
+ return getParser() != null;
+ }
+
+ /**
+ * @generated
+ */
+ public ICellEditorValidator getEditTextValidator() {
+ return new ICellEditorValidator() {
+
+ public String isValid(final Object value) {
+ if(value instanceof String) {
+ final EObject element = getParserElement();
+ final IParser parser = getParser();
+ try {
+ IParserEditStatus valid = (IParserEditStatus)getEditingDomain().runExclusive(new RunnableWithResult.Impl() {
+
+ public void run() {
+ setResult(parser.isValidEditString(new EObjectAdapter(element), (String)value));
+ }
+ });
+ return valid.getCode() == ParserEditStatus.EDITABLE ? null : valid.getMessage();
+ } catch (InterruptedException ie) {
+ ie.printStackTrace();
+ }
+ }
+
+ // shouldn't get here
+ return null;
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ public IContentAssistProcessor getCompletionProcessor() {
+ if(getParserElement() == null || getParser() == null) {
+ return null;
+ }
+ return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
+ }
+
+ /**
+ * @generated
+ */
+ public ParserOptions getParserOptions() {
+ return ParserOptions.NONE;
+ }
+
+ /**
+ * @generated
+ */
+ public IParser getParser() {
+ if(parser == null) {
+ parser = UMLParserProvider.getParser(UMLElementTypes.CallEvent_2084, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.diagram.composite.edit.parts.CallEventNameEditPart.VISUAL_ID));
+ }
+ return parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected DirectEditManager getManager() {
+ if(manager == null) {
+ setManager(new MultilineLabelDirectEditManager(this, MultilineLabelDirectEditManager.getTextCellEditorClass(this), UMLEditPartFactory.getTextCellEditorLocator(this)));
+ }
+ return manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setManager(DirectEditManager manager) {
+ this.manager = manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit() {
+ getManager().show();
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit(Point eventLocation) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(eventLocation.getSWTPoint());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void performDirectEdit(char initialCharacter) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(initialCharacter);
+ } else {
+ performDirectEdit();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEditRequest(Request request) {
+
+ final Request theRequest = request;
+
+ if(IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
+ directEditionMode = getDirectEditionType();
+ }
+ switch(directEditionMode) {
+ case IDirectEdition.NO_DIRECT_EDITION:
+ // no direct edition mode => does nothing
+ return;
+ case IDirectEdition.EXTENDED_DIRECT_EDITOR:
+ updateExtendedEditorConfiguration();
+ if(configuration == null || configuration.getLanguage() == null) {
+ performDefaultDirectEditorEdit(theRequest);
+ } else {
+ configuration.preEditAction(resolveSemanticElement());
+ Dialog dialog = null;
+ if(configuration instanceof IPopupEditorConfiguration) {
+ IPopupEditorHelper helper = ((IPopupEditorConfiguration)configuration).createPopupEditorHelper(this);
+ helper.showEditor();
+ return;
+ } else if(configuration instanceof IAdvancedEditorConfiguration) {
+ dialog = ((IAdvancedEditorConfiguration)configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
+ } else if(configuration instanceof IDirectEditorConfiguration) {
+ dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), ((IDirectEditorConfiguration)configuration).getTextToEdit(resolveSemanticElement()), (IDirectEditorConfiguration)configuration);
+ } else {
+ return;
+ }
+ final Dialog finalDialog = dialog;
+
+ if(Window.OK == dialog.open()) {
+ TransactionalEditingDomain domain = getEditingDomain();
+ RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
+
+ @Override
+ protected void doExecute() {
+ configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog)finalDialog).getValue());
+
+ }
+ };
+ domain.getCommandStack().execute(command);
+ }
+ }
+ break;
+ case IDirectEdition.DEFAULT_DIRECT_EDITOR:
+
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ break;
+ default:
+ break;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshLabel();
+ refreshFont();
+ refreshFontColor();
+ refreshUnderline();
+ refreshStrikeThrough();
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshLabel() {
+ EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
+ if(maskLabelPolicy == null) {
+ setLabelTextHelper(getFigure(), getLabelText());
+ setLabelIconHelper(getFigure(), getLabelIcon());
+ }
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshUnderline() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextUnderline(style.isUnderline());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshStrikeThrough() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextStrikeThrough(style.isStrikeThrough());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshFont() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null) {
+ FontData fontData = new FontData(style.getFontName(), style.getFontHeight(), (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
+ setFont(fontData);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setFontColor(Color color) {
+ getFigure().setForegroundColor(color);
+ }
+
+ /**
+ * @generated
+ */
+ protected void addSemanticListeners() {
+ if(getParser() instanceof ISemanticParser) {
+ EObject element = resolveSemanticElement();
+ parserElements = ((ISemanticParser)getParser()).getSemanticElementsBeingParsed(element);
+ for(int i = 0; i < parserElements.size(); i++) {
+ addListenerFilter("SemanticModel" + i, this, (EObject)parserElements.get(i)); //$NON-NLS-1$
+ }
+ } else {
+ super.addSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeSemanticListeners() {
+ if(parserElements != null) {
+ for(int i = 0; i < parserElements.size(); i++) {
+ removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
+ }
+ } else {
+ super.removeSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected AccessibleEditPart getAccessibleEditPart() {
+ if(accessibleEP == null) {
+ accessibleEP = new AccessibleGraphicalEditPart() {
+
+ public void getName(AccessibleEvent e) {
+ e.result = getLabelTextHelper(getFigure());
+ }
+ };
+ }
+ return accessibleEP;
+ }
+
+ /**
+ * @generated
+ */
+ private View getFontStyleOwnerView() {
+ return (View)getModel();
+ }
+
+ /**
+ * Returns the kind of associated editor for direct edition.
+ *
+ * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition
+ * @generated
+ */
+ public int getDirectEditionType() {
+ if(checkExtendedEditor()) {
+ initExtendedEditorConfiguration();
+ return IDirectEdition.EXTENDED_DIRECT_EDITOR;
+ }
+ if(checkDefaultEdition()) {
+ return IDirectEdition.DEFAULT_DIRECT_EDITOR;
+ }
+
+ // not a named element. no specific editor => do nothing
+ return IDirectEdition.NO_DIRECT_EDITION;
+ }
+
+ /**
+ * Checks if an extended editor is present.
+ *
+ * @return <code>true</code> if an extended editor is present.
+ * @generated
+ */
+ protected boolean checkExtendedEditor() {
+ if(resolveSemanticElement() != null) {
+ return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ return false;
+ }
+
+ /**
+ * Checks if a default direct edition is available
+ *
+ * @return <code>true</code> if a default direct edition is available
+ * @generated
+ */
+ protected boolean checkDefaultEdition() {
+ return (getParser() != null);
+ }
+
+ /**
+ * Initializes the extended editor configuration
+ *
+ * @generated
+ */
+ protected void initExtendedEditorConfiguration() {
+ if(configuration == null) {
+ final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("")) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else {
+ configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ }
+ }
+
+ /**
+ * Updates the preference configuration
+ *
+ * @generated
+ */
+ protected void updateExtendedEditorConfiguration() {
+ String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("") && languagePreferred != configuration.getLanguage()) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else if(IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
+ configuration = null;
+ }
+ }
+
+ /**
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
+ protected void performDefaultDirectEditorEdit(final Request theRequest) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void addNotationalListeners() {
+ super.addNotationalListeners();
+ addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeNotationalListeners() {
+ super.removeNotationalListeners();
+ removeListenerFilter("PrimaryView"); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void handleNotificationEvent(Notification event) {
+ refreshLabel();
+ Object feature = event.getFeature();
+ if(NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
+ Integer c = (Integer)event.getNewValue();
+ setFontColor(DiagramColorRegistry.getInstance().getColor(c));
+ } else if(NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
+ refreshUnderline();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
+ refreshStrikeThrough();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
+ refreshFont();
+ } else {
+ if(getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
+ refreshLabel();
+ }
+ if(getParser() instanceof ISemanticParser) {
+ ISemanticParser modelParser = (ISemanticParser)getParser();
+ if(modelParser.areSemanticElementsAffected(null, event)) {
+ removeSemanticListeners();
+ if(resolveSemanticElement() != null) {
+ addSemanticListeners();
+ }
+ refreshLabel();
+ }
+ }
+ }
+
+ if(event.getNewValue() instanceof EAnnotation && VisualInformationPapyrusConstant.DISPLAY_NAMELABELICON.equals(((EAnnotation)event.getNewValue()).getSource())) {
+ refreshLabel();
+ }
+
+ super.handleNotificationEvent(event);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createFigure() {
+ // Parent should assign one using setLabel() method
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ private static final String ADD_PARENT_MODEL = "AddParentModel";
+
+ /**
+ * @generated
+ */
+ public void activate() {
+ super.activate();
+ addOwnerElementListeners();
+ }
+
+ /**
+ * @generated
+ */
+ protected void addOwnerElementListeners() {
+ addListenerFilter(ADD_PARENT_MODEL, this, ((View)getParent().getModel())); //$NON-NLS-1$
+
+ }
+
+ /**
+ * @generated
+ */
+ public void deactivate() {
+ removeOwnerElementListeners();
+ super.deactivate();
+
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeOwnerElementListeners() {
+ removeListenerFilter(ADD_PARENT_MODEL);
+
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ChangeEventEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ChangeEventEditPart.java
new file mode 100644
index 00000000000..618e5d8b89f
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ChangeEventEditPart.java
@@ -0,0 +1,5167 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.ArrayList;
+import java.util.LinkedList;
+import java.util.List;
+
+import org.eclipse.draw2d.ColorConstants;
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.RectangleFigure;
+import org.eclipse.draw2d.Shape;
+import org.eclipse.draw2d.StackLayout;
+import org.eclipse.emf.ecore.EStructuralFeature;
+import org.eclipse.gef.EditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.editpolicies.LayoutEditPolicy;
+import org.eclipse.gef.editpolicies.NonResizableEditPolicy;
+import org.eclipse.gef.requests.CreateRequest;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ShapeNodeEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.FigureUtilities;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.gef.ui.figures.DefaultSizeNodeFigure;
+import org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.jface.preference.PreferenceConverter;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.HyperLinkPopupBarEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.QualifiedNameDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.helper.PreferenceInitializerForElementHelper;
+import org.eclipse.papyrus.diagram.composite.edit.policies.ChangeEventItemSemanticEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorPlugin;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter;
+import org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.Font;
+import org.eclipse.swt.widgets.Display;
+
+/**
+ * @generated
+ */
+public class ChangeEventEditPart extends
+
+ShapeNodeEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 2088;
+
+ /**
+ * @generated
+ */
+ protected IFigure contentPane;
+
+ /**
+ * @generated
+ */
+ protected IFigure primaryShape;
+
+ /**
+ * @generated
+ */
+ public ChangeEventEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new ChangeEventItemSemanticEditPolicy());
+ installEditPolicy(EditPolicy.LAYOUT_ROLE, createLayoutEditPolicy());
+ installEditPolicy(QualifiedNameDisplayEditPolicy.QUALIFIED_NAME_POLICY, new QualifiedNameDisplayEditPolicy());
+ installEditPolicy(AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeNodeLabelDisplayEditPolicy());
+ installEditPolicy(EditPolicyRoles.POPUPBAR_ROLE, new HyperLinkPopupBarEditPolicy());
+ // XXX need an SCR to runtime to have another abstract superclass that would let children add reasonable editpolicies
+ // removeEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CONNECTION_HANDLES_ROLE);
+ }
+
+ /**
+ * @generated
+ */
+ protected LayoutEditPolicy createLayoutEditPolicy() {
+ org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy lep = new org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy() {
+
+ protected EditPolicy createChildEditPolicy(EditPart child) {
+ EditPolicy result = child.getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(result == null) {
+ result = new NonResizableEditPolicy();
+ }
+ return result;
+ }
+
+ protected Command getMoveChildrenCommand(Request request) {
+ return null;
+ }
+
+ protected Command getCreateCommand(CreateRequest request) {
+ return null;
+ }
+ };
+ return lep;
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createNodeShape() {
+ return primaryShape = new NamedElementDescriptor();
+ }
+
+ /**
+ * @generated
+ */
+ public NamedElementDescriptor getPrimaryShape() {
+ return (NamedElementDescriptor)primaryShape;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean addFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof ChangeEventNameEditPart) {
+ ((ChangeEventNameEditPart)childEditPart).setLabel(getPrimaryShape().getNamedElementNameLabel());
+ return true;
+ }
+
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean removeFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof ChangeEventNameEditPart) {
+ return true;
+ }
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected void addChildVisual(EditPart childEditPart, int index) {
+ if(addFixedChild(childEditPart)) {
+ return;
+ }
+ super.addChildVisual(childEditPart, -1);
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeChildVisual(EditPart childEditPart) {
+ if(removeFixedChild(childEditPart)) {
+ return;
+ }
+ super.removeChildVisual(childEditPart);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure getContentPaneFor(IGraphicalEditPart editPart) {
+ return getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ protected NodeFigure createNodePlate() {
+ String prefElementId = "ChangeEvent";
+ IPreferenceStore store = UMLDiagramEditorPlugin.getInstance().getPreferenceStore();
+ String preferenceConstantWitdh = PreferenceInitializerForElementHelper.getpreferenceKey(getNotationView(), prefElementId, PreferenceConstantHelper.WIDTH);
+ String preferenceConstantHeight = PreferenceInitializerForElementHelper.getpreferenceKey(getNotationView(), prefElementId, PreferenceConstantHelper.HEIGHT);
+ DefaultSizeNodeFigure result = new DefaultSizeNodeFigure(store.getInt(preferenceConstantWitdh), store.getInt(preferenceConstantHeight));
+
+ return result;
+ }
+
+ /**
+ * Creates figure for this edit part.
+ *
+ * Body of this method does not depend on settings in generation model
+ * so you may safely remove <i>generated</i> tag and modify it.
+ *
+ * @generated
+ */
+ protected NodeFigure createNodeFigure() {
+ NodeFigure figure = createNodePlate();
+ figure.setLayoutManager(new StackLayout());
+ IFigure shape = createNodeShape();
+ figure.add(shape);
+ contentPane = setupContentPane(shape);
+ return figure;
+ }
+
+ /**
+ * Default implementation treats passed figure as content pane.
+ * Respects layout one may have set for generated figure.
+ *
+ * @param nodeShape
+ * instance of generated figure class
+ * @generated
+ */
+ protected IFigure setupContentPane(IFigure nodeShape) {
+ if(nodeShape.getLayoutManager() == null) {
+ ConstrainedToolbarLayout layout = new ConstrainedToolbarLayout();
+ layout.setSpacing(5);
+ nodeShape.setLayoutManager(layout);
+ }
+ return nodeShape; // use nodeShape itself as contentPane
+ }
+
+ /**
+ * @generated
+ */
+ public IFigure getContentPane() {
+ if(contentPane != null) {
+ return contentPane;
+ }
+ return super.getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ protected void setForegroundColor(Color color) {
+ if(primaryShape != null) {
+ primaryShape.setForegroundColor(color);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLineWidth(int width) {
+ if(primaryShape instanceof Shape) {
+ ((Shape)primaryShape).setLineWidth(width);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLineType(int style) {
+ if(primaryShape instanceof Shape) {
+ ((Shape)primaryShape).setLineStyle(style);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public EditPart getPrimaryChildEditPart() {
+ return getChildBySemanticHint(UMLVisualIDRegistry.getType(ChangeEventNameEditPart.VISUAL_ID));
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnSource() {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(11);
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ types.add(UMLElementTypes.Substitution_4011);
+ types.add(UMLElementTypes.Realization_4006);
+ types.add(UMLElementTypes.Manifestation_4012);
+ types.add(UMLElementTypes.Abstraction_4007);
+ types.add(UMLElementTypes.Usage_4008);
+ types.add(UMLElementTypes.Deployment_4009);
+ types.add(UMLElementTypes.Dependency_4017);
+ types.add(UMLElementTypes.Dependency_4010);
+ types.add(UMLElementTypes.InformationFlow_4021);
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnSourceAndTarget(IGraphicalEditPart targetEditPart) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ChangeEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ChangeEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ChangeEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ChangeEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ChangeEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ChangeEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ChangeEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ChangeEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ChangeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ChangeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ChangeEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMATypesForTarget(IElementType relationshipType) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(relationshipType == UMLElementTypes.ComponentRealization_4004) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InterfaceRealization_4005) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Substitution_4011) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Realization_4006) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Manifestation_4012) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Abstraction_4007) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Usage_4008) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Deployment_4009) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4017) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4010) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InformationFlow_4021) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnTarget() {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(15);
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ types.add(UMLElementTypes.Substitution_4011);
+ types.add(UMLElementTypes.Realization_4006);
+ types.add(UMLElementTypes.Manifestation_4012);
+ types.add(UMLElementTypes.Abstraction_4007);
+ types.add(UMLElementTypes.Usage_4008);
+ types.add(UMLElementTypes.Deployment_4009);
+ types.add(UMLElementTypes.Dependency_4017);
+ types.add(UMLElementTypes.Dependency_4010);
+ types.add(UMLElementTypes.TimeObservationEvent_4018);
+ types.add(UMLElementTypes.DurationObservationEvent_4019);
+ types.add(UMLElementTypes.InformationFlow_4021);
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMATypesForSource(IElementType relationshipType) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(relationshipType == UMLElementTypes.CommentAnnotatedElement_4002) {
+ types.add(UMLElementTypes.Comment_2109);
+ types.add(UMLElementTypes.Comment_3097);
+ } else if(relationshipType == UMLElementTypes.ConstraintConstrainedElement_4003) {
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.ComponentRealization_4004) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InterfaceRealization_4005) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Substitution_4011) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Realization_4006) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Manifestation_4012) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Abstraction_4007) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Usage_4008) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Deployment_4009) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4017) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4010) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.TimeObservationEvent_4018) {
+ types.add(UMLElementTypes.TimeObservation_2094);
+ } else if(relationshipType == UMLElementTypes.DurationObservationEvent_4019) {
+ types.add(UMLElementTypes.DurationObservation_2093);
+ } else if(relationshipType == UMLElementTypes.InformationFlow_4021) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public class NamedElementDescriptor extends RectangleFigure {
+
+ /**
+ * @generated
+ */
+ private WrappingLabel fNamedElementNameLabel;
+
+ /**
+ * @generated
+ */
+ public NamedElementDescriptor() {
+ this.setLineWidth(1);
+ this.setForegroundColor(ColorConstants.black);
+ createContents();
+ }
+
+ /**
+ * @generated
+ */
+ private void createContents() {
+
+ fNamedElementNameLabel = new WrappingLabel();
+ fNamedElementNameLabel.setText("");
+ fNamedElementNameLabel.setForegroundColor(ColorConstants.black);
+
+ fNamedElementNameLabel.setFont(FNAMEDELEMENTNAMELABEL_FONT);
+
+ this.add(fNamedElementNameLabel);
+
+ }
+
+ /**
+ * @generated
+ */
+ private boolean myUseLocalCoordinates = false;
+
+ /**
+ * @generated
+ */
+ protected boolean useLocalCoordinates() {
+ return myUseLocalCoordinates;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setUseLocalCoordinates(boolean useLocalCoordinates) {
+ myUseLocalCoordinates = useLocalCoordinates;
+ }
+
+ /**
+ * @generated
+ */
+ public WrappingLabel getNamedElementNameLabel() {
+ return fNamedElementNameLabel;
+ }
+
+ }
+
+ /**
+ * @generated
+ */
+ static final Font FNAMEDELEMENTNAMELABEL_FONT = new Font(Display.getCurrent(), "Arial", 10, SWT.BOLD);
+
+ /**
+ * @generated
+ */
+ @Override
+ public Object getPreferredValue(EStructuralFeature feature) {
+ IPreferenceStore preferenceStore = (IPreferenceStore)getDiagramPreferencesHint().getPreferenceStore();
+ Object result = null;
+
+ if(feature == NotationPackage.eINSTANCE.getLineStyle_LineColor() || feature == NotationPackage.eINSTANCE.getFontStyle_FontColor() || feature == NotationPackage.eINSTANCE.getFillStyle_FillColor()) {
+ String prefColor = null;
+ if(feature == NotationPackage.eINSTANCE.getLineStyle_LineColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("ChangeEvent", PreferenceConstantHelper.COLOR_LINE);
+ } else if(feature == NotationPackage.eINSTANCE.getFontStyle_FontColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("ChangeEvent", PreferenceConstantHelper.COLOR_FONT);
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_FillColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("ChangeEvent", PreferenceConstantHelper.COLOR_FILL);
+ }
+ result = FigureUtilities.RGBToInteger(PreferenceConverter.getColor((IPreferenceStore)preferenceStore, prefColor));
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_Transparency() || feature == NotationPackage.eINSTANCE.getFillStyle_Gradient()) {
+ String prefGradient = PreferenceConstantHelper.getElementConstant("ChangeEvent", PreferenceConstantHelper.COLOR_GRADIENT);
+ GradientPreferenceConverter gradientPreferenceConverter = new GradientPreferenceConverter(preferenceStore.getString(prefGradient));
+ if(feature == NotationPackage.eINSTANCE.getFillStyle_Transparency()) {
+ result = new Integer(gradientPreferenceConverter.getTransparency());
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_Gradient()) {
+ result = gradientPreferenceConverter.getGradientData();
+ }
+ }
+
+ if(result == null) {
+ result = getStructuralFeatureValue(feature);
+ }
+ return result;
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ChangeEventNameEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ChangeEventNameEditPart.java
new file mode 100644
index 00000000000..b5177129af3
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ChangeEventNameEditPart.java
@@ -0,0 +1,791 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EAnnotation;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.emf.transaction.RunnableWithResult;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.AccessibleEditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.requests.DirectEditRequest;
+import org.eclipse.gef.tools.DirectEditManager;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.CompartmentEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
+import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
+import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
+import org.eclipse.gmf.runtime.notation.FontStyle;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
+import org.eclipse.jface.viewers.ICellEditorValidator;
+import org.eclipse.jface.window.Window;
+import org.eclipse.papyrus.diagram.common.directedit.MultilineLabelDirectEditManager;
+import org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition;
+import org.eclipse.papyrus.diagram.common.editpolicies.IMaskManagedLabelEditPolicy;
+import org.eclipse.papyrus.diagram.common.figure.node.ILabelFigure;
+import org.eclipse.papyrus.diagram.common.util.DiagramEditPartsUtil;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLTextSelectionEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.diagram.composite.providers.UMLParserProvider;
+import org.eclipse.papyrus.extensionpoints.editors.Activator;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
+import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
+import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
+import org.eclipse.papyrus.umlutils.ui.VisualInformationPapyrusConstant;
+import org.eclipse.papyrus.umlutils.ui.helper.NameLabelIconHelper;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.AccessibleEvent;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.FontData;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.ui.PlatformUI;
+
+/**
+ * @generated
+ */
+public class ChangeEventNameEditPart extends CompartmentEditPart implements ITextAwareEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 5171;
+
+ /**
+ * @generated
+ */
+ private DirectEditManager manager;
+
+ /**
+ * @generated
+ */
+ private IParser parser;
+
+ /**
+ * @generated
+ */
+ private List<?> parserElements;
+
+ /**
+ * @generated
+ */
+ private String defaultText;
+
+ /**
+ * direct edition mode (default, undefined, registered editor, etc.)
+ *
+ * @generated
+ */
+ protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
+
+ /**
+ * configuration from a registered edit dialog
+ *
+ * @generated
+ */
+ protected IDirectEditorConfiguration configuration;
+
+ /**
+ * @generated
+ */
+ public ChangeEventNameEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
+ installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new CompositeStructureDiagramEditPart.NodeLabelDragPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelTextHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getText();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getText();
+ } else {
+ return ((Label)figure).getText();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelTextHelper(IFigure figure, String text) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setText(text);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setText(text);
+ } else {
+ ((Label)figure).setText(text);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIconHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getIcon();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getIcon();
+ } else {
+ return ((Label)figure).getIcon();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelIconHelper(IFigure figure, Image icon) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setIcon(icon);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setIcon(icon);
+ } else {
+ ((Label)figure).setIcon(icon);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabel(WrappingLabel figure) {
+ unregisterVisuals();
+ setFigure(figure);
+ defaultText = getLabelTextHelper(figure);
+ registerVisuals();
+ refreshVisuals();
+ }
+
+ /**
+ * @generated
+ */
+ protected List getModelChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject getParserElement() {
+ return resolveSemanticElement();
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIcon() {
+ EObject parserElement = getParserElement();
+ if(parserElement == null) {
+ return null;
+ }
+
+ List<View> views = DiagramEditPartsUtil.findViews(parserElement, getViewer());
+ for(View view : views) {
+ if(NameLabelIconHelper.showLabelIcon(view)) {
+ return UMLElementTypes.getImage(parserElement.eClass());
+ }
+ }
+ return null;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelText() {
+ String text = null;
+ EObject parserElement = getParserElement();
+ if(parserElement != null && getParser() != null) {
+ text = getParser().getPrintString(new EObjectAdapter(parserElement), getParserOptions().intValue());
+ }
+ if(text == null || text.length() == 0) {
+ text = defaultText;
+ }
+ return text;
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabelText(String text) {
+ setLabelTextHelper(getFigure(), text);
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public String getEditText() {
+ if(getParserElement() == null || getParser() == null) {
+ return ""; //$NON-NLS-1$
+ }
+ return getParser().getEditString(new EObjectAdapter(getParserElement()), getParserOptions().intValue());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean isEditable() {
+ return getParser() != null;
+ }
+
+ /**
+ * @generated
+ */
+ public ICellEditorValidator getEditTextValidator() {
+ return new ICellEditorValidator() {
+
+ public String isValid(final Object value) {
+ if(value instanceof String) {
+ final EObject element = getParserElement();
+ final IParser parser = getParser();
+ try {
+ IParserEditStatus valid = (IParserEditStatus)getEditingDomain().runExclusive(new RunnableWithResult.Impl() {
+
+ public void run() {
+ setResult(parser.isValidEditString(new EObjectAdapter(element), (String)value));
+ }
+ });
+ return valid.getCode() == ParserEditStatus.EDITABLE ? null : valid.getMessage();
+ } catch (InterruptedException ie) {
+ ie.printStackTrace();
+ }
+ }
+
+ // shouldn't get here
+ return null;
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ public IContentAssistProcessor getCompletionProcessor() {
+ if(getParserElement() == null || getParser() == null) {
+ return null;
+ }
+ return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
+ }
+
+ /**
+ * @generated
+ */
+ public ParserOptions getParserOptions() {
+ return ParserOptions.NONE;
+ }
+
+ /**
+ * @generated
+ */
+ public IParser getParser() {
+ if(parser == null) {
+ parser = UMLParserProvider.getParser(UMLElementTypes.ChangeEvent_2088, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.diagram.composite.edit.parts.ChangeEventNameEditPart.VISUAL_ID));
+ }
+ return parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected DirectEditManager getManager() {
+ if(manager == null) {
+ setManager(new MultilineLabelDirectEditManager(this, MultilineLabelDirectEditManager.getTextCellEditorClass(this), UMLEditPartFactory.getTextCellEditorLocator(this)));
+ }
+ return manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setManager(DirectEditManager manager) {
+ this.manager = manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit() {
+ getManager().show();
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit(Point eventLocation) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(eventLocation.getSWTPoint());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void performDirectEdit(char initialCharacter) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(initialCharacter);
+ } else {
+ performDirectEdit();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEditRequest(Request request) {
+
+ final Request theRequest = request;
+
+ if(IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
+ directEditionMode = getDirectEditionType();
+ }
+ switch(directEditionMode) {
+ case IDirectEdition.NO_DIRECT_EDITION:
+ // no direct edition mode => does nothing
+ return;
+ case IDirectEdition.EXTENDED_DIRECT_EDITOR:
+ updateExtendedEditorConfiguration();
+ if(configuration == null || configuration.getLanguage() == null) {
+ performDefaultDirectEditorEdit(theRequest);
+ } else {
+ configuration.preEditAction(resolveSemanticElement());
+ Dialog dialog = null;
+ if(configuration instanceof IPopupEditorConfiguration) {
+ IPopupEditorHelper helper = ((IPopupEditorConfiguration)configuration).createPopupEditorHelper(this);
+ helper.showEditor();
+ return;
+ } else if(configuration instanceof IAdvancedEditorConfiguration) {
+ dialog = ((IAdvancedEditorConfiguration)configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
+ } else if(configuration instanceof IDirectEditorConfiguration) {
+ dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), ((IDirectEditorConfiguration)configuration).getTextToEdit(resolveSemanticElement()), (IDirectEditorConfiguration)configuration);
+ } else {
+ return;
+ }
+ final Dialog finalDialog = dialog;
+
+ if(Window.OK == dialog.open()) {
+ TransactionalEditingDomain domain = getEditingDomain();
+ RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
+
+ @Override
+ protected void doExecute() {
+ configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog)finalDialog).getValue());
+
+ }
+ };
+ domain.getCommandStack().execute(command);
+ }
+ }
+ break;
+ case IDirectEdition.DEFAULT_DIRECT_EDITOR:
+
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ break;
+ default:
+ break;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshLabel();
+ refreshFont();
+ refreshFontColor();
+ refreshUnderline();
+ refreshStrikeThrough();
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshLabel() {
+ EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
+ if(maskLabelPolicy == null) {
+ setLabelTextHelper(getFigure(), getLabelText());
+ setLabelIconHelper(getFigure(), getLabelIcon());
+ }
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshUnderline() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextUnderline(style.isUnderline());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshStrikeThrough() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextStrikeThrough(style.isStrikeThrough());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshFont() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null) {
+ FontData fontData = new FontData(style.getFontName(), style.getFontHeight(), (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
+ setFont(fontData);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setFontColor(Color color) {
+ getFigure().setForegroundColor(color);
+ }
+
+ /**
+ * @generated
+ */
+ protected void addSemanticListeners() {
+ if(getParser() instanceof ISemanticParser) {
+ EObject element = resolveSemanticElement();
+ parserElements = ((ISemanticParser)getParser()).getSemanticElementsBeingParsed(element);
+ for(int i = 0; i < parserElements.size(); i++) {
+ addListenerFilter("SemanticModel" + i, this, (EObject)parserElements.get(i)); //$NON-NLS-1$
+ }
+ } else {
+ super.addSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeSemanticListeners() {
+ if(parserElements != null) {
+ for(int i = 0; i < parserElements.size(); i++) {
+ removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
+ }
+ } else {
+ super.removeSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected AccessibleEditPart getAccessibleEditPart() {
+ if(accessibleEP == null) {
+ accessibleEP = new AccessibleGraphicalEditPart() {
+
+ public void getName(AccessibleEvent e) {
+ e.result = getLabelTextHelper(getFigure());
+ }
+ };
+ }
+ return accessibleEP;
+ }
+
+ /**
+ * @generated
+ */
+ private View getFontStyleOwnerView() {
+ return (View)getModel();
+ }
+
+ /**
+ * Returns the kind of associated editor for direct edition.
+ *
+ * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition
+ * @generated
+ */
+ public int getDirectEditionType() {
+ if(checkExtendedEditor()) {
+ initExtendedEditorConfiguration();
+ return IDirectEdition.EXTENDED_DIRECT_EDITOR;
+ }
+ if(checkDefaultEdition()) {
+ return IDirectEdition.DEFAULT_DIRECT_EDITOR;
+ }
+
+ // not a named element. no specific editor => do nothing
+ return IDirectEdition.NO_DIRECT_EDITION;
+ }
+
+ /**
+ * Checks if an extended editor is present.
+ *
+ * @return <code>true</code> if an extended editor is present.
+ * @generated
+ */
+ protected boolean checkExtendedEditor() {
+ if(resolveSemanticElement() != null) {
+ return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ return false;
+ }
+
+ /**
+ * Checks if a default direct edition is available
+ *
+ * @return <code>true</code> if a default direct edition is available
+ * @generated
+ */
+ protected boolean checkDefaultEdition() {
+ return (getParser() != null);
+ }
+
+ /**
+ * Initializes the extended editor configuration
+ *
+ * @generated
+ */
+ protected void initExtendedEditorConfiguration() {
+ if(configuration == null) {
+ final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("")) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else {
+ configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ }
+ }
+
+ /**
+ * Updates the preference configuration
+ *
+ * @generated
+ */
+ protected void updateExtendedEditorConfiguration() {
+ String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("") && languagePreferred != configuration.getLanguage()) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else if(IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
+ configuration = null;
+ }
+ }
+
+ /**
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
+ protected void performDefaultDirectEditorEdit(final Request theRequest) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void addNotationalListeners() {
+ super.addNotationalListeners();
+ addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeNotationalListeners() {
+ super.removeNotationalListeners();
+ removeListenerFilter("PrimaryView"); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void handleNotificationEvent(Notification event) {
+ refreshLabel();
+ Object feature = event.getFeature();
+ if(NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
+ Integer c = (Integer)event.getNewValue();
+ setFontColor(DiagramColorRegistry.getInstance().getColor(c));
+ } else if(NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
+ refreshUnderline();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
+ refreshStrikeThrough();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
+ refreshFont();
+ } else {
+ if(getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
+ refreshLabel();
+ }
+ if(getParser() instanceof ISemanticParser) {
+ ISemanticParser modelParser = (ISemanticParser)getParser();
+ if(modelParser.areSemanticElementsAffected(null, event)) {
+ removeSemanticListeners();
+ if(resolveSemanticElement() != null) {
+ addSemanticListeners();
+ }
+ refreshLabel();
+ }
+ }
+ }
+
+ if(event.getNewValue() instanceof EAnnotation && VisualInformationPapyrusConstant.DISPLAY_NAMELABELICON.equals(((EAnnotation)event.getNewValue()).getSource())) {
+ refreshLabel();
+ }
+
+ super.handleNotificationEvent(event);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createFigure() {
+ // Parent should assign one using setLabel() method
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ private static final String ADD_PARENT_MODEL = "AddParentModel";
+
+ /**
+ * @generated
+ */
+ public void activate() {
+ super.activate();
+ addOwnerElementListeners();
+ }
+
+ /**
+ * @generated
+ */
+ protected void addOwnerElementListeners() {
+ addListenerFilter(ADD_PARENT_MODEL, this, ((View)getParent().getModel())); //$NON-NLS-1$
+
+ }
+
+ /**
+ * @generated
+ */
+ public void deactivate() {
+ removeOwnerElementListeners();
+ super.deactivate();
+
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeOwnerElementListeners() {
+ removeListenerFilter(ADD_PARENT_MODEL);
+
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ClassCompositeCompartmentEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ClassCompositeCompartmentEditPart.java
new file mode 100644
index 00000000000..a317e3b3960
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ClassCompositeCompartmentEditPart.java
@@ -0,0 +1,123 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import org.eclipse.draw2d.geometry.Dimension;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.draw2d.geometry.Rectangle;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.GraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ShapeCompartmentEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.CreationEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.DragDropEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.ResizableCompartmentEditPolicy;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.diagram.common.editparts.NoScrollBarShapeCompartmentEditPart;
+import org.eclipse.papyrus.diagram.common.editpolicies.CustomContainerEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.DuplicatePasteEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.CustomDiagramDragDropEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.PortInCompartmentCreationEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.RemoveOrphanViewPolicy;
+import org.eclipse.papyrus.diagram.composite.edit.policies.ClassCompositeCompartmentItemSemanticEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.Messages;
+
+/**
+ * @generated
+ */
+public class ClassCompositeCompartmentEditPart
+
+extends NoScrollBarShapeCompartmentEditPart
+
+{
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 7073;
+
+ /**
+ * @generated
+ */
+ public ClassCompositeCompartmentEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ public String getCompartmentName() {
+ return Messages.ClassCompositeCompartmentEditPart_title;
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new ResizableCompartmentEditPolicy());
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new ClassCompositeCompartmentItemSemanticEditPolicy());
+ installEditPolicy(EditPolicyRoles.CREATION_ROLE, new CreationEditPolicy());
+ installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new DragDropEditPolicy());
+ installEditPolicy(DuplicatePasteEditPolicy.PASTE_ROLE, new DuplicatePasteEditPolicy());
+ installEditPolicy("REMOVE_ORPHAN_VIEW", new RemoveOrphanViewPolicy()); //$NON-NLS-1$
+ installEditPolicy(EditPolicy.GRAPHICAL_NODE_ROLE, new CustomContainerEditPolicy());
+ installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new CustomDiagramDragDropEditPolicy());
+ installEditPolicy(EditPolicyRoles.CREATION_ROLE, new PortInCompartmentCreationEditPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ protected void setRatio(Double ratio) {
+ if(getFigure().getParent().getLayoutManager() instanceof ConstrainedToolbarLayout) {
+ super.setRatio(ratio);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void handleNotificationEvent(Notification notification) {
+ Object feature = notification.getFeature();
+ if(NotationPackage.eINSTANCE.getSize_Width().equals(feature) || NotationPackage.eINSTANCE.getSize_Height().equals(feature) || NotationPackage.eINSTANCE.getLocation_X().equals(feature) || NotationPackage.eINSTANCE.getLocation_Y().equals(feature)) {
+ refreshBounds();
+ }
+ super.handleNotificationEvent(notification);
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshBounds() {
+ int width = ((Integer)getStructuralFeatureValue(NotationPackage.eINSTANCE.getSize_Width())).intValue();
+ int height = ((Integer)getStructuralFeatureValue(NotationPackage.eINSTANCE.getSize_Height())).intValue();
+ Dimension size = new Dimension(width, height);
+ int x = ((Integer)getStructuralFeatureValue(NotationPackage.eINSTANCE.getLocation_X())).intValue();
+ int y = ((Integer)getStructuralFeatureValue(NotationPackage.eINSTANCE.getLocation_Y())).intValue();
+ Point loc = new Point(x, y);
+ ((GraphicalEditPart)getParent()).setLayoutConstraint(this, getFigure(), new Rectangle(loc, size));
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshBounds();
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ClassCompositeCompartmentEditPartCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ClassCompositeCompartmentEditPartCN.java
new file mode 100644
index 00000000000..61010ee4d44
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ClassCompositeCompartmentEditPartCN.java
@@ -0,0 +1,123 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import org.eclipse.draw2d.geometry.Dimension;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.draw2d.geometry.Rectangle;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.GraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ShapeCompartmentEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.CreationEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.DragDropEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.ResizableCompartmentEditPolicy;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.diagram.common.editparts.NoScrollBarShapeCompartmentEditPart;
+import org.eclipse.papyrus.diagram.common.editpolicies.CustomContainerEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.DuplicatePasteEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.CustomDiagramDragDropEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.PortInCompartmentCreationEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.RemoveOrphanViewPolicy;
+import org.eclipse.papyrus.diagram.composite.edit.policies.ClassCompositeCompartmentItemSemanticEditPolicyCN;
+import org.eclipse.papyrus.diagram.composite.part.Messages;
+
+/**
+ * @generated
+ */
+public class ClassCompositeCompartmentEditPartCN
+
+extends NoScrollBarShapeCompartmentEditPart
+
+{
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 7060;
+
+ /**
+ * @generated
+ */
+ public ClassCompositeCompartmentEditPartCN(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ public String getCompartmentName() {
+ return Messages.ClassCompositeCompartmentEditPartCN_title;
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new ResizableCompartmentEditPolicy());
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new ClassCompositeCompartmentItemSemanticEditPolicyCN());
+ installEditPolicy(EditPolicyRoles.CREATION_ROLE, new CreationEditPolicy());
+ installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new DragDropEditPolicy());
+ installEditPolicy(DuplicatePasteEditPolicy.PASTE_ROLE, new DuplicatePasteEditPolicy());
+ installEditPolicy("REMOVE_ORPHAN_VIEW", new RemoveOrphanViewPolicy()); //$NON-NLS-1$
+ installEditPolicy(EditPolicy.GRAPHICAL_NODE_ROLE, new CustomContainerEditPolicy());
+ installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new CustomDiagramDragDropEditPolicy());
+ installEditPolicy(EditPolicyRoles.CREATION_ROLE, new PortInCompartmentCreationEditPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ protected void setRatio(Double ratio) {
+ if(getFigure().getParent().getLayoutManager() instanceof ConstrainedToolbarLayout) {
+ super.setRatio(ratio);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void handleNotificationEvent(Notification notification) {
+ Object feature = notification.getFeature();
+ if(NotationPackage.eINSTANCE.getSize_Width().equals(feature) || NotationPackage.eINSTANCE.getSize_Height().equals(feature) || NotationPackage.eINSTANCE.getLocation_X().equals(feature) || NotationPackage.eINSTANCE.getLocation_Y().equals(feature)) {
+ refreshBounds();
+ }
+ super.handleNotificationEvent(notification);
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshBounds() {
+ int width = ((Integer)getStructuralFeatureValue(NotationPackage.eINSTANCE.getSize_Width())).intValue();
+ int height = ((Integer)getStructuralFeatureValue(NotationPackage.eINSTANCE.getSize_Height())).intValue();
+ Dimension size = new Dimension(width, height);
+ int x = ((Integer)getStructuralFeatureValue(NotationPackage.eINSTANCE.getLocation_X())).intValue();
+ int y = ((Integer)getStructuralFeatureValue(NotationPackage.eINSTANCE.getLocation_Y())).intValue();
+ Point loc = new Point(x, y);
+ ((GraphicalEditPart)getParent()).setLayoutConstraint(this, getFigure(), new Rectangle(loc, size));
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshBounds();
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ClassCompositeEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ClassCompositeEditPart.java
new file mode 100644
index 00000000000..67d8b1ce7eb
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ClassCompositeEditPart.java
@@ -0,0 +1,5396 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.ArrayList;
+import java.util.LinkedList;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.PositionConstants;
+import org.eclipse.draw2d.Shape;
+import org.eclipse.draw2d.StackLayout;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EStructuralFeature;
+import org.eclipse.gef.EditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.editpolicies.LayoutEditPolicy;
+import org.eclipse.gef.editpolicies.NonResizableEditPolicy;
+import org.eclipse.gef.requests.CreateRequest;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IBorderItemEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.CreationEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.DragDropEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.diagram.ui.figures.IBorderItemLocator;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.FigureUtilities;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.gef.ui.figures.DefaultSizeNodeFigure;
+import org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.jface.preference.PreferenceConverter;
+import org.eclipse.papyrus.diagram.common.editparts.NamedElementEditPart;
+import org.eclipse.papyrus.diagram.common.editpolicies.AffixedNodeAlignmentEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.BorderItemResizableEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.HyperLinkPopupBarEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.QualifiedNameDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.ShowHideClassifierContentsEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.ShowHideCompartmentEditPolicy;
+import org.eclipse.papyrus.diagram.common.helper.PreferenceInitializerForElementHelper;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.CustomDiagramDragDropEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.EncapsulatedClassifierResizableShapeEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.GraphicalNodeEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.RemoveOrphanViewPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.StructuredClassifierLayoutEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.figures.ClassCompositeFigure;
+import org.eclipse.papyrus.diagram.composite.custom.locators.PortPositionLocator;
+import org.eclipse.papyrus.diagram.composite.edit.policies.ClassCompositeItemSemanticEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorPlugin;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter;
+import org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper;
+import org.eclipse.swt.graphics.Color;
+
+/**
+ * @generated
+ */
+public class ClassCompositeEditPart extends
+
+NamedElementEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 2073;
+
+ /**
+ * @generated
+ */
+ protected IFigure contentPane;
+
+ /**
+ * @generated
+ */
+ protected IFigure primaryShape;
+
+ /**
+ * @generated
+ */
+ public ClassCompositeEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ installEditPolicy(EditPolicyRoles.CREATION_ROLE, new CreationEditPolicy());
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new ClassCompositeItemSemanticEditPolicy());
+ installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new DragDropEditPolicy());
+ installEditPolicy(EditPolicy.LAYOUT_ROLE, createLayoutEditPolicy());
+ installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new CustomDiagramDragDropEditPolicy());
+ installEditPolicy(QualifiedNameDisplayEditPolicy.QUALIFIED_NAME_POLICY, new QualifiedNameDisplayEditPolicy());
+ installEditPolicy(AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeNodeLabelDisplayEditPolicy());
+ installEditPolicy(EditPolicyRoles.POPUPBAR_ROLE, new HyperLinkPopupBarEditPolicy());
+ installEditPolicy(EditPolicy.GRAPHICAL_NODE_ROLE, new GraphicalNodeEditPolicy());
+ installEditPolicy(EditPolicy.LAYOUT_ROLE, new StructuredClassifierLayoutEditPolicy());
+ installEditPolicy(ShowHideClassifierContentsEditPolicy.SHOW_HIDE_CLASSIFIER_CONTENTS_POLICY, new ShowHideClassifierContentsEditPolicy());
+ installEditPolicy(ShowHideCompartmentEditPolicy.SHOW_HIDE_COMPARTMENT_POLICY, new ShowHideCompartmentEditPolicy());
+ installEditPolicy(AffixedNodeAlignmentEditPolicy.AFFIXED_CHILD_ALIGNMENT_ROLE, new AffixedNodeAlignmentEditPolicy());
+ installEditPolicy("REMOVE_ORPHAN_VIEW", new RemoveOrphanViewPolicy()); //$NON-NLS-1$
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new EncapsulatedClassifierResizableShapeEditPolicy());
+ // XXX need an SCR to runtime to have another abstract superclass that would let children add reasonable editpolicies
+ // removeEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CONNECTION_HANDLES_ROLE);
+ }
+
+ /**
+ * Papyrus codeGen
+ *
+ * @generated
+ **/
+ protected void handleNotificationEvent(Notification event) {
+ super.handleNotificationEvent(event);
+
+ }
+
+ /**
+ * @generated
+ */
+ protected LayoutEditPolicy createLayoutEditPolicy() {
+ org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy lep = new org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy() {
+
+ protected EditPolicy createChildEditPolicy(EditPart child) {
+ View childView = (View)child.getModel();
+ switch(UMLVisualIDRegistry.getVisualID(childView)) {
+ case PortEditPart.VISUAL_ID:
+
+ return new BorderItemResizableEditPolicy();
+
+ }
+ EditPolicy result = child.getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(result == null) {
+ result = new NonResizableEditPolicy();
+ }
+ return result;
+ }
+
+ protected Command getMoveChildrenCommand(Request request) {
+ return null;
+ }
+
+ protected Command getCreateCommand(CreateRequest request) {
+ return null;
+ }
+ };
+ return lep;
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createNodeShape() {
+ return primaryShape = new ClassCompositeFigure();
+ }
+
+ /**
+ * @generated
+ */
+ public ClassCompositeFigure getPrimaryShape() {
+ return (ClassCompositeFigure)primaryShape;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean addFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof ClassCompositeNameEditPart) {
+ ((ClassCompositeNameEditPart)childEditPart).setLabel(getPrimaryShape().getNameLabel());
+ return true;
+ }
+
+ if(childEditPart instanceof ClassCompositeCompartmentEditPart) {
+ IFigure pane = getPrimaryShape().getCompositeCompartmentFigure();
+ setupContentPane(pane); // FIXME each comparment should handle his content pane in his own way
+ pane.add(((ClassCompositeCompartmentEditPart)childEditPart).getFigure());
+ return true;
+ }
+
+ //Papyrus Gencode :Affixed Port locator
+ if(childEditPart instanceof PortEditPart) {
+ IBorderItemLocator locator = new PortPositionLocator(getMainFigure(), PositionConstants.NONE);
+ getBorderedFigure().getBorderItemContainer().add(((PortEditPart)childEditPart).getFigure(), locator);
+ return true;
+ }
+
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean removeFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof ClassCompositeNameEditPart) {
+ return true;
+ }
+ if(childEditPart instanceof ClassCompositeCompartmentEditPart) {
+ IFigure pane = getPrimaryShape().getCompositeCompartmentFigure();
+ setupContentPane(pane); // FIXME each comparment should handle his content pane in his own way
+ pane.remove(((ClassCompositeCompartmentEditPart)childEditPart).getFigure());
+ return true;
+ }
+ if(childEditPart instanceof PortEditPart) {
+ getBorderedFigure().getBorderItemContainer().remove(((PortEditPart)childEditPart).getFigure());
+ return true;
+ }
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected void addChildVisual(EditPart childEditPart, int index) {
+ if(addFixedChild(childEditPart)) {
+ return;
+ }
+ super.addChildVisual(childEditPart, -1);
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeChildVisual(EditPart childEditPart) {
+ if(removeFixedChild(childEditPart)) {
+ return;
+ }
+ super.removeChildVisual(childEditPart);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure getContentPaneFor(IGraphicalEditPart editPart) {
+ if(editPart instanceof ClassCompositeCompartmentEditPart) {
+ return getPrimaryShape().getCompositeCompartmentFigure();
+ }
+ if(editPart instanceof IBorderItemEditPart) {
+ return getBorderedFigure().getBorderItemContainer();
+ }
+ return getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ protected NodeFigure createNodePlate() {
+ String prefElementId = "Class";
+ IPreferenceStore store = UMLDiagramEditorPlugin.getInstance().getPreferenceStore();
+ String preferenceConstantWitdh = PreferenceInitializerForElementHelper.getpreferenceKey(getNotationView(), prefElementId, PreferenceConstantHelper.WIDTH);
+ String preferenceConstantHeight = PreferenceInitializerForElementHelper.getpreferenceKey(getNotationView(), prefElementId, PreferenceConstantHelper.HEIGHT);
+ DefaultSizeNodeFigure result = new DefaultSizeNodeFigure(store.getInt(preferenceConstantWitdh), store.getInt(preferenceConstantHeight));
+
+ return result;
+ }
+
+ /**
+ * Creates figure for this edit part.
+ *
+ * Body of this method does not depend on settings in generation model
+ * so you may safely remove <i>generated</i> tag and modify it.
+ *
+ * @generated
+ */
+ protected NodeFigure createMainFigure() {
+ NodeFigure figure = createNodePlate();
+ figure.setLayoutManager(new StackLayout());
+ IFigure shape = createNodeShape();
+ figure.add(shape);
+ contentPane = setupContentPane(shape);
+ return figure;
+ }
+
+ /**
+ * Default implementation treats passed figure as content pane.
+ * Respects layout one may have set for generated figure.
+ *
+ * @param nodeShape
+ * instance of generated figure class
+ * @generated
+ */
+ protected IFigure setupContentPane(IFigure nodeShape) {
+ if(nodeShape.getLayoutManager() == null) {
+ ConstrainedToolbarLayout layout = new ConstrainedToolbarLayout();
+ layout.setSpacing(5);
+ nodeShape.setLayoutManager(layout);
+ }
+ return nodeShape; // use nodeShape itself as contentPane
+ }
+
+ /**
+ * @generated
+ */
+ public IFigure getContentPane() {
+ if(contentPane != null) {
+ return contentPane;
+ }
+ return super.getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ protected void setForegroundColor(Color color) {
+ if(primaryShape != null) {
+ primaryShape.setForegroundColor(color);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLineWidth(int width) {
+ if(primaryShape instanceof Shape) {
+ ((Shape)primaryShape).setLineWidth(width);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLineType(int style) {
+ if(primaryShape instanceof Shape) {
+ ((Shape)primaryShape).setLineStyle(style);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public EditPart getPrimaryChildEditPart() {
+ return getChildBySemanticHint(UMLVisualIDRegistry.getType(ClassCompositeNameEditPart.VISUAL_ID));
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnSource() {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(12);
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ types.add(UMLElementTypes.Substitution_4011);
+ types.add(UMLElementTypes.Realization_4006);
+ types.add(UMLElementTypes.Manifestation_4012);
+ types.add(UMLElementTypes.Abstraction_4007);
+ types.add(UMLElementTypes.Usage_4008);
+ types.add(UMLElementTypes.Deployment_4009);
+ types.add(UMLElementTypes.Dependency_4017);
+ types.add(UMLElementTypes.Dependency_4010);
+ types.add(UMLElementTypes.Generalization_4015);
+ types.add(UMLElementTypes.InformationFlow_4021);
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnSourceAndTarget(IGraphicalEditPart targetEditPart) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ClassCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ClassCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ClassCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMATypesForTarget(IElementType relationshipType) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(relationshipType == UMLElementTypes.ComponentRealization_4004) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InterfaceRealization_4005) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Substitution_4011) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Realization_4006) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Manifestation_4012) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Abstraction_4007) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Usage_4008) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Deployment_4009) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4017) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4010) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Generalization_4015) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ } else if(relationshipType == UMLElementTypes.InformationFlow_4021) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnTarget() {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(17);
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ types.add(UMLElementTypes.Substitution_4011);
+ types.add(UMLElementTypes.Realization_4006);
+ types.add(UMLElementTypes.Manifestation_4012);
+ types.add(UMLElementTypes.Abstraction_4007);
+ types.add(UMLElementTypes.Usage_4008);
+ types.add(UMLElementTypes.Deployment_4009);
+ types.add(UMLElementTypes.Dependency_4017);
+ types.add(UMLElementTypes.Dependency_4010);
+ types.add(UMLElementTypes.Generalization_4015);
+ types.add(UMLElementTypes.TimeObservationEvent_4018);
+ types.add(UMLElementTypes.DurationObservationEvent_4019);
+ types.add(UMLElementTypes.InformationItemRepresented_4020);
+ types.add(UMLElementTypes.InformationFlow_4021);
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMATypesForSource(IElementType relationshipType) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(relationshipType == UMLElementTypes.CommentAnnotatedElement_4002) {
+ types.add(UMLElementTypes.Comment_2109);
+ types.add(UMLElementTypes.Comment_3097);
+ } else if(relationshipType == UMLElementTypes.ConstraintConstrainedElement_4003) {
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.ComponentRealization_4004) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InterfaceRealization_4005) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Substitution_4011) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Realization_4006) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Manifestation_4012) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Abstraction_4007) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Usage_4008) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Deployment_4009) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4017) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4010) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Generalization_4015) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ } else if(relationshipType == UMLElementTypes.TimeObservationEvent_4018) {
+ types.add(UMLElementTypes.TimeObservation_2094);
+ } else if(relationshipType == UMLElementTypes.DurationObservationEvent_4019) {
+ types.add(UMLElementTypes.DurationObservation_2093);
+ } else if(relationshipType == UMLElementTypes.InformationItemRepresented_4020) {
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.InformationItem_3094);
+ } else if(relationshipType == UMLElementTypes.InformationFlow_4021) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public Object getPreferredValue(EStructuralFeature feature) {
+ IPreferenceStore preferenceStore = (IPreferenceStore)getDiagramPreferencesHint().getPreferenceStore();
+ Object result = null;
+
+ if(feature == NotationPackage.eINSTANCE.getLineStyle_LineColor() || feature == NotationPackage.eINSTANCE.getFontStyle_FontColor() || feature == NotationPackage.eINSTANCE.getFillStyle_FillColor()) {
+ String prefColor = null;
+ if(feature == NotationPackage.eINSTANCE.getLineStyle_LineColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("Class", PreferenceConstantHelper.COLOR_LINE);
+ } else if(feature == NotationPackage.eINSTANCE.getFontStyle_FontColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("Class", PreferenceConstantHelper.COLOR_FONT);
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_FillColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("Class", PreferenceConstantHelper.COLOR_FILL);
+ }
+ result = FigureUtilities.RGBToInteger(PreferenceConverter.getColor((IPreferenceStore)preferenceStore, prefColor));
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_Transparency() || feature == NotationPackage.eINSTANCE.getFillStyle_Gradient()) {
+ String prefGradient = PreferenceConstantHelper.getElementConstant("Class", PreferenceConstantHelper.COLOR_GRADIENT);
+ GradientPreferenceConverter gradientPreferenceConverter = new GradientPreferenceConverter(preferenceStore.getString(prefGradient));
+ if(feature == NotationPackage.eINSTANCE.getFillStyle_Transparency()) {
+ result = new Integer(gradientPreferenceConverter.getTransparency());
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_Gradient()) {
+ result = gradientPreferenceConverter.getGradientData();
+ }
+ }
+
+ if(result == null) {
+ result = getStructuralFeatureValue(feature);
+ }
+ return result;
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ClassCompositeEditPartCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ClassCompositeEditPartCN.java
new file mode 100644
index 00000000000..372e5a3a726
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ClassCompositeEditPartCN.java
@@ -0,0 +1,5398 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.ArrayList;
+import java.util.LinkedList;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.PositionConstants;
+import org.eclipse.draw2d.Shape;
+import org.eclipse.draw2d.StackLayout;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EStructuralFeature;
+import org.eclipse.gef.EditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.editpolicies.LayoutEditPolicy;
+import org.eclipse.gef.editpolicies.NonResizableEditPolicy;
+import org.eclipse.gef.requests.CreateRequest;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IBorderItemEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.CreationEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.DragDropEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.diagram.ui.figures.IBorderItemLocator;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.FigureUtilities;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.gef.ui.figures.DefaultSizeNodeFigure;
+import org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.jface.preference.PreferenceConverter;
+import org.eclipse.papyrus.diagram.common.editparts.NamedElementEditPart;
+import org.eclipse.papyrus.diagram.common.editpolicies.AffixedNodeAlignmentEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.BorderItemResizableEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.HyperLinkPopupBarEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.QualifiedNameDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.ShowHideClassifierContentsEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.ShowHideCompartmentEditPolicy;
+import org.eclipse.papyrus.diagram.common.helper.PreferenceInitializerForElementHelper;
+import org.eclipse.papyrus.diagram.composite.custom.edit.parts.ConstrainedNamedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.CustomDiagramDragDropEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.EncapsulatedClassifierResizableShapeEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.GraphicalNodeEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.NoScrollClassifierResizableShapeEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.RemoveOrphanViewPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.StructuredClassifierLayoutEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.figures.ClassCompositeFigure;
+import org.eclipse.papyrus.diagram.composite.custom.locators.PortPositionLocator;
+import org.eclipse.papyrus.diagram.composite.edit.policies.ClassCompositeItemSemanticEditPolicyCN;
+import org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorPlugin;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter;
+import org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper;
+import org.eclipse.swt.graphics.Color;
+
+/**
+ * @generated
+ */
+public class ClassCompositeEditPartCN extends
+
+ConstrainedNamedElementEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 3085;
+
+ /**
+ * @generated
+ */
+ protected IFigure contentPane;
+
+ /**
+ * @generated
+ */
+ protected IFigure primaryShape;
+
+ /**
+ * @generated
+ */
+ public ClassCompositeEditPartCN(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ installEditPolicy(EditPolicyRoles.CREATION_ROLE, new CreationEditPolicy());
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new ClassCompositeItemSemanticEditPolicyCN());
+ installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new DragDropEditPolicy());
+ installEditPolicy(EditPolicy.LAYOUT_ROLE, createLayoutEditPolicy());
+ installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new CustomDiagramDragDropEditPolicy());
+ installEditPolicy(QualifiedNameDisplayEditPolicy.QUALIFIED_NAME_POLICY, new QualifiedNameDisplayEditPolicy());
+ installEditPolicy(AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeNodeLabelDisplayEditPolicy());
+ installEditPolicy(EditPolicyRoles.POPUPBAR_ROLE, new HyperLinkPopupBarEditPolicy());
+ installEditPolicy(EditPolicy.GRAPHICAL_NODE_ROLE, new GraphicalNodeEditPolicy());
+ installEditPolicy(EditPolicy.LAYOUT_ROLE, new StructuredClassifierLayoutEditPolicy());
+ installEditPolicy(ShowHideClassifierContentsEditPolicy.SHOW_HIDE_CLASSIFIER_CONTENTS_POLICY, new ShowHideClassifierContentsEditPolicy());
+ installEditPolicy(ShowHideCompartmentEditPolicy.SHOW_HIDE_COMPARTMENT_POLICY, new ShowHideCompartmentEditPolicy());
+ installEditPolicy(AffixedNodeAlignmentEditPolicy.AFFIXED_CHILD_ALIGNMENT_ROLE, new AffixedNodeAlignmentEditPolicy());
+ installEditPolicy("REMOVE_ORPHAN_VIEW", new RemoveOrphanViewPolicy()); //$NON-NLS-1$
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new NoScrollClassifierResizableShapeEditPolicy());
+ // XXX need an SCR to runtime to have another abstract superclass that would let children add reasonable editpolicies
+ // removeEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CONNECTION_HANDLES_ROLE);
+ }
+
+ /**
+ * Papyrus codeGen
+ *
+ * @generated
+ **/
+ protected void handleNotificationEvent(Notification event) {
+ super.handleNotificationEvent(event);
+
+ }
+
+ /**
+ * @generated
+ */
+ protected LayoutEditPolicy createLayoutEditPolicy() {
+ org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy lep = new org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy() {
+
+ protected EditPolicy createChildEditPolicy(EditPart child) {
+ View childView = (View)child.getModel();
+ switch(UMLVisualIDRegistry.getVisualID(childView)) {
+ case PortEditPart.VISUAL_ID:
+
+ return new BorderItemResizableEditPolicy();
+
+ }
+ EditPolicy result = child.getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(result == null) {
+ result = new NonResizableEditPolicy();
+ }
+ return result;
+ }
+
+ protected Command getMoveChildrenCommand(Request request) {
+ return null;
+ }
+
+ protected Command getCreateCommand(CreateRequest request) {
+ return null;
+ }
+ };
+ return lep;
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createNodeShape() {
+ return primaryShape = new ClassCompositeFigure();
+ }
+
+ /**
+ * @generated
+ */
+ public ClassCompositeFigure getPrimaryShape() {
+ return (ClassCompositeFigure)primaryShape;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean addFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof ClassCompositeNameEditPartCN) {
+ ((ClassCompositeNameEditPartCN)childEditPart).setLabel(getPrimaryShape().getNameLabel());
+ return true;
+ }
+
+ if(childEditPart instanceof ClassCompositeCompartmentEditPartCN) {
+ IFigure pane = getPrimaryShape().getCompositeCompartmentFigure();
+ setupContentPane(pane); // FIXME each comparment should handle his content pane in his own way
+ pane.add(((ClassCompositeCompartmentEditPartCN)childEditPart).getFigure());
+ return true;
+ }
+
+ //Papyrus Gencode :Affixed Port locator
+ if(childEditPart instanceof PortEditPart) {
+ IBorderItemLocator locator = new PortPositionLocator(getMainFigure(), PositionConstants.NONE);
+ getBorderedFigure().getBorderItemContainer().add(((PortEditPart)childEditPart).getFigure(), locator);
+ return true;
+ }
+
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean removeFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof ClassCompositeNameEditPartCN) {
+ return true;
+ }
+ if(childEditPart instanceof ClassCompositeCompartmentEditPartCN) {
+ IFigure pane = getPrimaryShape().getCompositeCompartmentFigure();
+ setupContentPane(pane); // FIXME each comparment should handle his content pane in his own way
+ pane.remove(((ClassCompositeCompartmentEditPartCN)childEditPart).getFigure());
+ return true;
+ }
+ if(childEditPart instanceof PortEditPart) {
+ getBorderedFigure().getBorderItemContainer().remove(((PortEditPart)childEditPart).getFigure());
+ return true;
+ }
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected void addChildVisual(EditPart childEditPart, int index) {
+ if(addFixedChild(childEditPart)) {
+ return;
+ }
+ super.addChildVisual(childEditPart, -1);
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeChildVisual(EditPart childEditPart) {
+ if(removeFixedChild(childEditPart)) {
+ return;
+ }
+ super.removeChildVisual(childEditPart);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure getContentPaneFor(IGraphicalEditPart editPart) {
+ if(editPart instanceof ClassCompositeCompartmentEditPartCN) {
+ return getPrimaryShape().getCompositeCompartmentFigure();
+ }
+ if(editPart instanceof IBorderItemEditPart) {
+ return getBorderedFigure().getBorderItemContainer();
+ }
+ return getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ protected NodeFigure createNodePlate() {
+ String prefElementId = "Class";
+ IPreferenceStore store = UMLDiagramEditorPlugin.getInstance().getPreferenceStore();
+ String preferenceConstantWitdh = PreferenceInitializerForElementHelper.getpreferenceKey(getNotationView(), prefElementId, PreferenceConstantHelper.WIDTH);
+ String preferenceConstantHeight = PreferenceInitializerForElementHelper.getpreferenceKey(getNotationView(), prefElementId, PreferenceConstantHelper.HEIGHT);
+ DefaultSizeNodeFigure result = new DefaultSizeNodeFigure(store.getInt(preferenceConstantWitdh), store.getInt(preferenceConstantHeight));
+
+ return result;
+ }
+
+ /**
+ * Creates figure for this edit part.
+ *
+ * Body of this method does not depend on settings in generation model
+ * so you may safely remove <i>generated</i> tag and modify it.
+ *
+ * @generated
+ */
+ protected NodeFigure createMainFigure() {
+ NodeFigure figure = createNodePlate();
+ figure.setLayoutManager(new StackLayout());
+ IFigure shape = createNodeShape();
+ figure.add(shape);
+ contentPane = setupContentPane(shape);
+ return figure;
+ }
+
+ /**
+ * Default implementation treats passed figure as content pane.
+ * Respects layout one may have set for generated figure.
+ *
+ * @param nodeShape
+ * instance of generated figure class
+ * @generated
+ */
+ protected IFigure setupContentPane(IFigure nodeShape) {
+ if(nodeShape.getLayoutManager() == null) {
+ ConstrainedToolbarLayout layout = new ConstrainedToolbarLayout();
+ layout.setSpacing(5);
+ nodeShape.setLayoutManager(layout);
+ }
+ return nodeShape; // use nodeShape itself as contentPane
+ }
+
+ /**
+ * @generated
+ */
+ public IFigure getContentPane() {
+ if(contentPane != null) {
+ return contentPane;
+ }
+ return super.getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ protected void setForegroundColor(Color color) {
+ if(primaryShape != null) {
+ primaryShape.setForegroundColor(color);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLineWidth(int width) {
+ if(primaryShape instanceof Shape) {
+ ((Shape)primaryShape).setLineWidth(width);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLineType(int style) {
+ if(primaryShape instanceof Shape) {
+ ((Shape)primaryShape).setLineStyle(style);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public EditPart getPrimaryChildEditPart() {
+ return getChildBySemanticHint(UMLVisualIDRegistry.getType(ClassCompositeNameEditPartCN.VISUAL_ID));
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnSource() {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(12);
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ types.add(UMLElementTypes.Substitution_4011);
+ types.add(UMLElementTypes.Realization_4006);
+ types.add(UMLElementTypes.Manifestation_4012);
+ types.add(UMLElementTypes.Abstraction_4007);
+ types.add(UMLElementTypes.Usage_4008);
+ types.add(UMLElementTypes.Deployment_4009);
+ types.add(UMLElementTypes.Dependency_4017);
+ types.add(UMLElementTypes.Dependency_4010);
+ types.add(UMLElementTypes.Generalization_4015);
+ types.add(UMLElementTypes.InformationFlow_4021);
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnSourceAndTarget(IGraphicalEditPart targetEditPart) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMATypesForTarget(IElementType relationshipType) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(relationshipType == UMLElementTypes.ComponentRealization_4004) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InterfaceRealization_4005) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Substitution_4011) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Realization_4006) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Manifestation_4012) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Abstraction_4007) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Usage_4008) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Deployment_4009) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4017) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4010) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Generalization_4015) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ } else if(relationshipType == UMLElementTypes.InformationFlow_4021) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnTarget() {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(17);
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ types.add(UMLElementTypes.Substitution_4011);
+ types.add(UMLElementTypes.Realization_4006);
+ types.add(UMLElementTypes.Manifestation_4012);
+ types.add(UMLElementTypes.Abstraction_4007);
+ types.add(UMLElementTypes.Usage_4008);
+ types.add(UMLElementTypes.Deployment_4009);
+ types.add(UMLElementTypes.Dependency_4017);
+ types.add(UMLElementTypes.Dependency_4010);
+ types.add(UMLElementTypes.Generalization_4015);
+ types.add(UMLElementTypes.TimeObservationEvent_4018);
+ types.add(UMLElementTypes.DurationObservationEvent_4019);
+ types.add(UMLElementTypes.InformationItemRepresented_4020);
+ types.add(UMLElementTypes.InformationFlow_4021);
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMATypesForSource(IElementType relationshipType) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(relationshipType == UMLElementTypes.CommentAnnotatedElement_4002) {
+ types.add(UMLElementTypes.Comment_2109);
+ types.add(UMLElementTypes.Comment_3097);
+ } else if(relationshipType == UMLElementTypes.ConstraintConstrainedElement_4003) {
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.ComponentRealization_4004) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InterfaceRealization_4005) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Substitution_4011) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Realization_4006) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Manifestation_4012) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Abstraction_4007) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Usage_4008) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Deployment_4009) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4017) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4010) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Generalization_4015) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ } else if(relationshipType == UMLElementTypes.TimeObservationEvent_4018) {
+ types.add(UMLElementTypes.TimeObservation_2094);
+ } else if(relationshipType == UMLElementTypes.DurationObservationEvent_4019) {
+ types.add(UMLElementTypes.DurationObservation_2093);
+ } else if(relationshipType == UMLElementTypes.InformationItemRepresented_4020) {
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.InformationItem_3094);
+ } else if(relationshipType == UMLElementTypes.InformationFlow_4021) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public Object getPreferredValue(EStructuralFeature feature) {
+ IPreferenceStore preferenceStore = (IPreferenceStore)getDiagramPreferencesHint().getPreferenceStore();
+ Object result = null;
+
+ if(feature == NotationPackage.eINSTANCE.getLineStyle_LineColor() || feature == NotationPackage.eINSTANCE.getFontStyle_FontColor() || feature == NotationPackage.eINSTANCE.getFillStyle_FillColor()) {
+ String prefColor = null;
+ if(feature == NotationPackage.eINSTANCE.getLineStyle_LineColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("Class", PreferenceConstantHelper.COLOR_LINE);
+ } else if(feature == NotationPackage.eINSTANCE.getFontStyle_FontColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("Class", PreferenceConstantHelper.COLOR_FONT);
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_FillColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("Class", PreferenceConstantHelper.COLOR_FILL);
+ }
+ result = FigureUtilities.RGBToInteger(PreferenceConverter.getColor((IPreferenceStore)preferenceStore, prefColor));
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_Transparency() || feature == NotationPackage.eINSTANCE.getFillStyle_Gradient()) {
+ String prefGradient = PreferenceConstantHelper.getElementConstant("Class", PreferenceConstantHelper.COLOR_GRADIENT);
+ GradientPreferenceConverter gradientPreferenceConverter = new GradientPreferenceConverter(preferenceStore.getString(prefGradient));
+ if(feature == NotationPackage.eINSTANCE.getFillStyle_Transparency()) {
+ result = new Integer(gradientPreferenceConverter.getTransparency());
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_Gradient()) {
+ result = gradientPreferenceConverter.getGradientData();
+ }
+ }
+
+ if(result == null) {
+ result = getStructuralFeatureValue(feature);
+ }
+ return result;
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ClassCompositeNameEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ClassCompositeNameEditPart.java
new file mode 100644
index 00000000000..685e060bb4e
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ClassCompositeNameEditPart.java
@@ -0,0 +1,791 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EAnnotation;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.emf.transaction.RunnableWithResult;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.AccessibleEditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.requests.DirectEditRequest;
+import org.eclipse.gef.tools.DirectEditManager;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.CompartmentEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
+import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
+import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
+import org.eclipse.gmf.runtime.notation.FontStyle;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
+import org.eclipse.jface.viewers.ICellEditorValidator;
+import org.eclipse.jface.window.Window;
+import org.eclipse.papyrus.diagram.common.directedit.MultilineLabelDirectEditManager;
+import org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition;
+import org.eclipse.papyrus.diagram.common.editpolicies.IMaskManagedLabelEditPolicy;
+import org.eclipse.papyrus.diagram.common.figure.node.ILabelFigure;
+import org.eclipse.papyrus.diagram.common.util.DiagramEditPartsUtil;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLTextSelectionEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.diagram.composite.providers.UMLParserProvider;
+import org.eclipse.papyrus.extensionpoints.editors.Activator;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
+import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
+import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
+import org.eclipse.papyrus.umlutils.ui.VisualInformationPapyrusConstant;
+import org.eclipse.papyrus.umlutils.ui.helper.NameLabelIconHelper;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.AccessibleEvent;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.FontData;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.ui.PlatformUI;
+
+/**
+ * @generated
+ */
+public class ClassCompositeNameEditPart extends CompartmentEditPart implements ITextAwareEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 5156;
+
+ /**
+ * @generated
+ */
+ private DirectEditManager manager;
+
+ /**
+ * @generated
+ */
+ private IParser parser;
+
+ /**
+ * @generated
+ */
+ private List<?> parserElements;
+
+ /**
+ * @generated
+ */
+ private String defaultText;
+
+ /**
+ * direct edition mode (default, undefined, registered editor, etc.)
+ *
+ * @generated
+ */
+ protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
+
+ /**
+ * configuration from a registered edit dialog
+ *
+ * @generated
+ */
+ protected IDirectEditorConfiguration configuration;
+
+ /**
+ * @generated
+ */
+ public ClassCompositeNameEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
+ installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new CompositeStructureDiagramEditPart.NodeLabelDragPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelTextHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getText();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getText();
+ } else {
+ return ((Label)figure).getText();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelTextHelper(IFigure figure, String text) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setText(text);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setText(text);
+ } else {
+ ((Label)figure).setText(text);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIconHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getIcon();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getIcon();
+ } else {
+ return ((Label)figure).getIcon();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelIconHelper(IFigure figure, Image icon) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setIcon(icon);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setIcon(icon);
+ } else {
+ ((Label)figure).setIcon(icon);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabel(WrappingLabel figure) {
+ unregisterVisuals();
+ setFigure(figure);
+ defaultText = getLabelTextHelper(figure);
+ registerVisuals();
+ refreshVisuals();
+ }
+
+ /**
+ * @generated
+ */
+ protected List getModelChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject getParserElement() {
+ return resolveSemanticElement();
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIcon() {
+ EObject parserElement = getParserElement();
+ if(parserElement == null) {
+ return null;
+ }
+
+ List<View> views = DiagramEditPartsUtil.findViews(parserElement, getViewer());
+ for(View view : views) {
+ if(NameLabelIconHelper.showLabelIcon(view)) {
+ return UMLElementTypes.getImage(parserElement.eClass());
+ }
+ }
+ return null;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelText() {
+ String text = null;
+ EObject parserElement = getParserElement();
+ if(parserElement != null && getParser() != null) {
+ text = getParser().getPrintString(new EObjectAdapter(parserElement), getParserOptions().intValue());
+ }
+ if(text == null || text.length() == 0) {
+ text = defaultText;
+ }
+ return text;
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabelText(String text) {
+ setLabelTextHelper(getFigure(), text);
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public String getEditText() {
+ if(getParserElement() == null || getParser() == null) {
+ return ""; //$NON-NLS-1$
+ }
+ return getParser().getEditString(new EObjectAdapter(getParserElement()), getParserOptions().intValue());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean isEditable() {
+ return getParser() != null;
+ }
+
+ /**
+ * @generated
+ */
+ public ICellEditorValidator getEditTextValidator() {
+ return new ICellEditorValidator() {
+
+ public String isValid(final Object value) {
+ if(value instanceof String) {
+ final EObject element = getParserElement();
+ final IParser parser = getParser();
+ try {
+ IParserEditStatus valid = (IParserEditStatus)getEditingDomain().runExclusive(new RunnableWithResult.Impl() {
+
+ public void run() {
+ setResult(parser.isValidEditString(new EObjectAdapter(element), (String)value));
+ }
+ });
+ return valid.getCode() == ParserEditStatus.EDITABLE ? null : valid.getMessage();
+ } catch (InterruptedException ie) {
+ ie.printStackTrace();
+ }
+ }
+
+ // shouldn't get here
+ return null;
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ public IContentAssistProcessor getCompletionProcessor() {
+ if(getParserElement() == null || getParser() == null) {
+ return null;
+ }
+ return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
+ }
+
+ /**
+ * @generated
+ */
+ public ParserOptions getParserOptions() {
+ return ParserOptions.NONE;
+ }
+
+ /**
+ * @generated
+ */
+ public IParser getParser() {
+ if(parser == null) {
+ parser = UMLParserProvider.getParser(UMLElementTypes.Class_2073, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.diagram.composite.edit.parts.ClassCompositeNameEditPart.VISUAL_ID));
+ }
+ return parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected DirectEditManager getManager() {
+ if(manager == null) {
+ setManager(new MultilineLabelDirectEditManager(this, MultilineLabelDirectEditManager.getTextCellEditorClass(this), UMLEditPartFactory.getTextCellEditorLocator(this)));
+ }
+ return manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setManager(DirectEditManager manager) {
+ this.manager = manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit() {
+ getManager().show();
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit(Point eventLocation) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(eventLocation.getSWTPoint());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void performDirectEdit(char initialCharacter) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(initialCharacter);
+ } else {
+ performDirectEdit();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEditRequest(Request request) {
+
+ final Request theRequest = request;
+
+ if(IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
+ directEditionMode = getDirectEditionType();
+ }
+ switch(directEditionMode) {
+ case IDirectEdition.NO_DIRECT_EDITION:
+ // no direct edition mode => does nothing
+ return;
+ case IDirectEdition.EXTENDED_DIRECT_EDITOR:
+ updateExtendedEditorConfiguration();
+ if(configuration == null || configuration.getLanguage() == null) {
+ performDefaultDirectEditorEdit(theRequest);
+ } else {
+ configuration.preEditAction(resolveSemanticElement());
+ Dialog dialog = null;
+ if(configuration instanceof IPopupEditorConfiguration) {
+ IPopupEditorHelper helper = ((IPopupEditorConfiguration)configuration).createPopupEditorHelper(this);
+ helper.showEditor();
+ return;
+ } else if(configuration instanceof IAdvancedEditorConfiguration) {
+ dialog = ((IAdvancedEditorConfiguration)configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
+ } else if(configuration instanceof IDirectEditorConfiguration) {
+ dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), ((IDirectEditorConfiguration)configuration).getTextToEdit(resolveSemanticElement()), (IDirectEditorConfiguration)configuration);
+ } else {
+ return;
+ }
+ final Dialog finalDialog = dialog;
+
+ if(Window.OK == dialog.open()) {
+ TransactionalEditingDomain domain = getEditingDomain();
+ RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
+
+ @Override
+ protected void doExecute() {
+ configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog)finalDialog).getValue());
+
+ }
+ };
+ domain.getCommandStack().execute(command);
+ }
+ }
+ break;
+ case IDirectEdition.DEFAULT_DIRECT_EDITOR:
+
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ break;
+ default:
+ break;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshLabel();
+ refreshFont();
+ refreshFontColor();
+ refreshUnderline();
+ refreshStrikeThrough();
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshLabel() {
+ EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
+ if(maskLabelPolicy == null) {
+ setLabelTextHelper(getFigure(), getLabelText());
+ setLabelIconHelper(getFigure(), getLabelIcon());
+ }
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshUnderline() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextUnderline(style.isUnderline());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshStrikeThrough() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextStrikeThrough(style.isStrikeThrough());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshFont() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null) {
+ FontData fontData = new FontData(style.getFontName(), style.getFontHeight(), (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
+ setFont(fontData);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setFontColor(Color color) {
+ getFigure().setForegroundColor(color);
+ }
+
+ /**
+ * @generated
+ */
+ protected void addSemanticListeners() {
+ if(getParser() instanceof ISemanticParser) {
+ EObject element = resolveSemanticElement();
+ parserElements = ((ISemanticParser)getParser()).getSemanticElementsBeingParsed(element);
+ for(int i = 0; i < parserElements.size(); i++) {
+ addListenerFilter("SemanticModel" + i, this, (EObject)parserElements.get(i)); //$NON-NLS-1$
+ }
+ } else {
+ super.addSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeSemanticListeners() {
+ if(parserElements != null) {
+ for(int i = 0; i < parserElements.size(); i++) {
+ removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
+ }
+ } else {
+ super.removeSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected AccessibleEditPart getAccessibleEditPart() {
+ if(accessibleEP == null) {
+ accessibleEP = new AccessibleGraphicalEditPart() {
+
+ public void getName(AccessibleEvent e) {
+ e.result = getLabelTextHelper(getFigure());
+ }
+ };
+ }
+ return accessibleEP;
+ }
+
+ /**
+ * @generated
+ */
+ private View getFontStyleOwnerView() {
+ return (View)getModel();
+ }
+
+ /**
+ * Returns the kind of associated editor for direct edition.
+ *
+ * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition
+ * @generated
+ */
+ public int getDirectEditionType() {
+ if(checkExtendedEditor()) {
+ initExtendedEditorConfiguration();
+ return IDirectEdition.EXTENDED_DIRECT_EDITOR;
+ }
+ if(checkDefaultEdition()) {
+ return IDirectEdition.DEFAULT_DIRECT_EDITOR;
+ }
+
+ // not a named element. no specific editor => do nothing
+ return IDirectEdition.NO_DIRECT_EDITION;
+ }
+
+ /**
+ * Checks if an extended editor is present.
+ *
+ * @return <code>true</code> if an extended editor is present.
+ * @generated
+ */
+ protected boolean checkExtendedEditor() {
+ if(resolveSemanticElement() != null) {
+ return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ return false;
+ }
+
+ /**
+ * Checks if a default direct edition is available
+ *
+ * @return <code>true</code> if a default direct edition is available
+ * @generated
+ */
+ protected boolean checkDefaultEdition() {
+ return (getParser() != null);
+ }
+
+ /**
+ * Initializes the extended editor configuration
+ *
+ * @generated
+ */
+ protected void initExtendedEditorConfiguration() {
+ if(configuration == null) {
+ final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("")) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else {
+ configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ }
+ }
+
+ /**
+ * Updates the preference configuration
+ *
+ * @generated
+ */
+ protected void updateExtendedEditorConfiguration() {
+ String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("") && languagePreferred != configuration.getLanguage()) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else if(IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
+ configuration = null;
+ }
+ }
+
+ /**
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
+ protected void performDefaultDirectEditorEdit(final Request theRequest) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void addNotationalListeners() {
+ super.addNotationalListeners();
+ addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeNotationalListeners() {
+ super.removeNotationalListeners();
+ removeListenerFilter("PrimaryView"); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void handleNotificationEvent(Notification event) {
+ refreshLabel();
+ Object feature = event.getFeature();
+ if(NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
+ Integer c = (Integer)event.getNewValue();
+ setFontColor(DiagramColorRegistry.getInstance().getColor(c));
+ } else if(NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
+ refreshUnderline();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
+ refreshStrikeThrough();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
+ refreshFont();
+ } else {
+ if(getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
+ refreshLabel();
+ }
+ if(getParser() instanceof ISemanticParser) {
+ ISemanticParser modelParser = (ISemanticParser)getParser();
+ if(modelParser.areSemanticElementsAffected(null, event)) {
+ removeSemanticListeners();
+ if(resolveSemanticElement() != null) {
+ addSemanticListeners();
+ }
+ refreshLabel();
+ }
+ }
+ }
+
+ if(event.getNewValue() instanceof EAnnotation && VisualInformationPapyrusConstant.DISPLAY_NAMELABELICON.equals(((EAnnotation)event.getNewValue()).getSource())) {
+ refreshLabel();
+ }
+
+ super.handleNotificationEvent(event);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createFigure() {
+ // Parent should assign one using setLabel() method
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ private static final String ADD_PARENT_MODEL = "AddParentModel";
+
+ /**
+ * @generated
+ */
+ public void activate() {
+ super.activate();
+ addOwnerElementListeners();
+ }
+
+ /**
+ * @generated
+ */
+ protected void addOwnerElementListeners() {
+ addListenerFilter(ADD_PARENT_MODEL, this, ((View)getParent().getModel())); //$NON-NLS-1$
+
+ }
+
+ /**
+ * @generated
+ */
+ public void deactivate() {
+ removeOwnerElementListeners();
+ super.deactivate();
+
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeOwnerElementListeners() {
+ removeListenerFilter(ADD_PARENT_MODEL);
+
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ClassCompositeNameEditPartCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ClassCompositeNameEditPartCN.java
new file mode 100644
index 00000000000..71b33d3ee10
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ClassCompositeNameEditPartCN.java
@@ -0,0 +1,791 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EAnnotation;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.emf.transaction.RunnableWithResult;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.AccessibleEditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.requests.DirectEditRequest;
+import org.eclipse.gef.tools.DirectEditManager;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.CompartmentEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
+import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
+import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
+import org.eclipse.gmf.runtime.notation.FontStyle;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
+import org.eclipse.jface.viewers.ICellEditorValidator;
+import org.eclipse.jface.window.Window;
+import org.eclipse.papyrus.diagram.common.directedit.MultilineLabelDirectEditManager;
+import org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition;
+import org.eclipse.papyrus.diagram.common.editpolicies.IMaskManagedLabelEditPolicy;
+import org.eclipse.papyrus.diagram.common.figure.node.ILabelFigure;
+import org.eclipse.papyrus.diagram.common.util.DiagramEditPartsUtil;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLTextSelectionEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.diagram.composite.providers.UMLParserProvider;
+import org.eclipse.papyrus.extensionpoints.editors.Activator;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
+import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
+import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
+import org.eclipse.papyrus.umlutils.ui.VisualInformationPapyrusConstant;
+import org.eclipse.papyrus.umlutils.ui.helper.NameLabelIconHelper;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.AccessibleEvent;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.FontData;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.ui.PlatformUI;
+
+/**
+ * @generated
+ */
+public class ClassCompositeNameEditPartCN extends CompartmentEditPart implements ITextAwareEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 5155;
+
+ /**
+ * @generated
+ */
+ private DirectEditManager manager;
+
+ /**
+ * @generated
+ */
+ private IParser parser;
+
+ /**
+ * @generated
+ */
+ private List<?> parserElements;
+
+ /**
+ * @generated
+ */
+ private String defaultText;
+
+ /**
+ * direct edition mode (default, undefined, registered editor, etc.)
+ *
+ * @generated
+ */
+ protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
+
+ /**
+ * configuration from a registered edit dialog
+ *
+ * @generated
+ */
+ protected IDirectEditorConfiguration configuration;
+
+ /**
+ * @generated
+ */
+ public ClassCompositeNameEditPartCN(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
+ installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new CompositeStructureDiagramEditPart.NodeLabelDragPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelTextHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getText();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getText();
+ } else {
+ return ((Label)figure).getText();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelTextHelper(IFigure figure, String text) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setText(text);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setText(text);
+ } else {
+ ((Label)figure).setText(text);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIconHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getIcon();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getIcon();
+ } else {
+ return ((Label)figure).getIcon();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelIconHelper(IFigure figure, Image icon) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setIcon(icon);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setIcon(icon);
+ } else {
+ ((Label)figure).setIcon(icon);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabel(WrappingLabel figure) {
+ unregisterVisuals();
+ setFigure(figure);
+ defaultText = getLabelTextHelper(figure);
+ registerVisuals();
+ refreshVisuals();
+ }
+
+ /**
+ * @generated
+ */
+ protected List getModelChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject getParserElement() {
+ return resolveSemanticElement();
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIcon() {
+ EObject parserElement = getParserElement();
+ if(parserElement == null) {
+ return null;
+ }
+
+ List<View> views = DiagramEditPartsUtil.findViews(parserElement, getViewer());
+ for(View view : views) {
+ if(NameLabelIconHelper.showLabelIcon(view)) {
+ return UMLElementTypes.getImage(parserElement.eClass());
+ }
+ }
+ return null;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelText() {
+ String text = null;
+ EObject parserElement = getParserElement();
+ if(parserElement != null && getParser() != null) {
+ text = getParser().getPrintString(new EObjectAdapter(parserElement), getParserOptions().intValue());
+ }
+ if(text == null || text.length() == 0) {
+ text = defaultText;
+ }
+ return text;
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabelText(String text) {
+ setLabelTextHelper(getFigure(), text);
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public String getEditText() {
+ if(getParserElement() == null || getParser() == null) {
+ return ""; //$NON-NLS-1$
+ }
+ return getParser().getEditString(new EObjectAdapter(getParserElement()), getParserOptions().intValue());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean isEditable() {
+ return getParser() != null;
+ }
+
+ /**
+ * @generated
+ */
+ public ICellEditorValidator getEditTextValidator() {
+ return new ICellEditorValidator() {
+
+ public String isValid(final Object value) {
+ if(value instanceof String) {
+ final EObject element = getParserElement();
+ final IParser parser = getParser();
+ try {
+ IParserEditStatus valid = (IParserEditStatus)getEditingDomain().runExclusive(new RunnableWithResult.Impl() {
+
+ public void run() {
+ setResult(parser.isValidEditString(new EObjectAdapter(element), (String)value));
+ }
+ });
+ return valid.getCode() == ParserEditStatus.EDITABLE ? null : valid.getMessage();
+ } catch (InterruptedException ie) {
+ ie.printStackTrace();
+ }
+ }
+
+ // shouldn't get here
+ return null;
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ public IContentAssistProcessor getCompletionProcessor() {
+ if(getParserElement() == null || getParser() == null) {
+ return null;
+ }
+ return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
+ }
+
+ /**
+ * @generated
+ */
+ public ParserOptions getParserOptions() {
+ return ParserOptions.NONE;
+ }
+
+ /**
+ * @generated
+ */
+ public IParser getParser() {
+ if(parser == null) {
+ parser = UMLParserProvider.getParser(UMLElementTypes.Class_3085, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.diagram.composite.edit.parts.ClassCompositeNameEditPartCN.VISUAL_ID));
+ }
+ return parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected DirectEditManager getManager() {
+ if(manager == null) {
+ setManager(new MultilineLabelDirectEditManager(this, MultilineLabelDirectEditManager.getTextCellEditorClass(this), UMLEditPartFactory.getTextCellEditorLocator(this)));
+ }
+ return manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setManager(DirectEditManager manager) {
+ this.manager = manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit() {
+ getManager().show();
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit(Point eventLocation) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(eventLocation.getSWTPoint());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void performDirectEdit(char initialCharacter) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(initialCharacter);
+ } else {
+ performDirectEdit();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEditRequest(Request request) {
+
+ final Request theRequest = request;
+
+ if(IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
+ directEditionMode = getDirectEditionType();
+ }
+ switch(directEditionMode) {
+ case IDirectEdition.NO_DIRECT_EDITION:
+ // no direct edition mode => does nothing
+ return;
+ case IDirectEdition.EXTENDED_DIRECT_EDITOR:
+ updateExtendedEditorConfiguration();
+ if(configuration == null || configuration.getLanguage() == null) {
+ performDefaultDirectEditorEdit(theRequest);
+ } else {
+ configuration.preEditAction(resolveSemanticElement());
+ Dialog dialog = null;
+ if(configuration instanceof IPopupEditorConfiguration) {
+ IPopupEditorHelper helper = ((IPopupEditorConfiguration)configuration).createPopupEditorHelper(this);
+ helper.showEditor();
+ return;
+ } else if(configuration instanceof IAdvancedEditorConfiguration) {
+ dialog = ((IAdvancedEditorConfiguration)configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
+ } else if(configuration instanceof IDirectEditorConfiguration) {
+ dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), ((IDirectEditorConfiguration)configuration).getTextToEdit(resolveSemanticElement()), (IDirectEditorConfiguration)configuration);
+ } else {
+ return;
+ }
+ final Dialog finalDialog = dialog;
+
+ if(Window.OK == dialog.open()) {
+ TransactionalEditingDomain domain = getEditingDomain();
+ RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
+
+ @Override
+ protected void doExecute() {
+ configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog)finalDialog).getValue());
+
+ }
+ };
+ domain.getCommandStack().execute(command);
+ }
+ }
+ break;
+ case IDirectEdition.DEFAULT_DIRECT_EDITOR:
+
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ break;
+ default:
+ break;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshLabel();
+ refreshFont();
+ refreshFontColor();
+ refreshUnderline();
+ refreshStrikeThrough();
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshLabel() {
+ EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
+ if(maskLabelPolicy == null) {
+ setLabelTextHelper(getFigure(), getLabelText());
+ setLabelIconHelper(getFigure(), getLabelIcon());
+ }
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshUnderline() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextUnderline(style.isUnderline());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshStrikeThrough() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextStrikeThrough(style.isStrikeThrough());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshFont() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null) {
+ FontData fontData = new FontData(style.getFontName(), style.getFontHeight(), (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
+ setFont(fontData);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setFontColor(Color color) {
+ getFigure().setForegroundColor(color);
+ }
+
+ /**
+ * @generated
+ */
+ protected void addSemanticListeners() {
+ if(getParser() instanceof ISemanticParser) {
+ EObject element = resolveSemanticElement();
+ parserElements = ((ISemanticParser)getParser()).getSemanticElementsBeingParsed(element);
+ for(int i = 0; i < parserElements.size(); i++) {
+ addListenerFilter("SemanticModel" + i, this, (EObject)parserElements.get(i)); //$NON-NLS-1$
+ }
+ } else {
+ super.addSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeSemanticListeners() {
+ if(parserElements != null) {
+ for(int i = 0; i < parserElements.size(); i++) {
+ removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
+ }
+ } else {
+ super.removeSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected AccessibleEditPart getAccessibleEditPart() {
+ if(accessibleEP == null) {
+ accessibleEP = new AccessibleGraphicalEditPart() {
+
+ public void getName(AccessibleEvent e) {
+ e.result = getLabelTextHelper(getFigure());
+ }
+ };
+ }
+ return accessibleEP;
+ }
+
+ /**
+ * @generated
+ */
+ private View getFontStyleOwnerView() {
+ return (View)getModel();
+ }
+
+ /**
+ * Returns the kind of associated editor for direct edition.
+ *
+ * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition
+ * @generated
+ */
+ public int getDirectEditionType() {
+ if(checkExtendedEditor()) {
+ initExtendedEditorConfiguration();
+ return IDirectEdition.EXTENDED_DIRECT_EDITOR;
+ }
+ if(checkDefaultEdition()) {
+ return IDirectEdition.DEFAULT_DIRECT_EDITOR;
+ }
+
+ // not a named element. no specific editor => do nothing
+ return IDirectEdition.NO_DIRECT_EDITION;
+ }
+
+ /**
+ * Checks if an extended editor is present.
+ *
+ * @return <code>true</code> if an extended editor is present.
+ * @generated
+ */
+ protected boolean checkExtendedEditor() {
+ if(resolveSemanticElement() != null) {
+ return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ return false;
+ }
+
+ /**
+ * Checks if a default direct edition is available
+ *
+ * @return <code>true</code> if a default direct edition is available
+ * @generated
+ */
+ protected boolean checkDefaultEdition() {
+ return (getParser() != null);
+ }
+
+ /**
+ * Initializes the extended editor configuration
+ *
+ * @generated
+ */
+ protected void initExtendedEditorConfiguration() {
+ if(configuration == null) {
+ final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("")) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else {
+ configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ }
+ }
+
+ /**
+ * Updates the preference configuration
+ *
+ * @generated
+ */
+ protected void updateExtendedEditorConfiguration() {
+ String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("") && languagePreferred != configuration.getLanguage()) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else if(IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
+ configuration = null;
+ }
+ }
+
+ /**
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
+ protected void performDefaultDirectEditorEdit(final Request theRequest) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void addNotationalListeners() {
+ super.addNotationalListeners();
+ addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeNotationalListeners() {
+ super.removeNotationalListeners();
+ removeListenerFilter("PrimaryView"); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void handleNotificationEvent(Notification event) {
+ refreshLabel();
+ Object feature = event.getFeature();
+ if(NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
+ Integer c = (Integer)event.getNewValue();
+ setFontColor(DiagramColorRegistry.getInstance().getColor(c));
+ } else if(NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
+ refreshUnderline();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
+ refreshStrikeThrough();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
+ refreshFont();
+ } else {
+ if(getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
+ refreshLabel();
+ }
+ if(getParser() instanceof ISemanticParser) {
+ ISemanticParser modelParser = (ISemanticParser)getParser();
+ if(modelParser.areSemanticElementsAffected(null, event)) {
+ removeSemanticListeners();
+ if(resolveSemanticElement() != null) {
+ addSemanticListeners();
+ }
+ refreshLabel();
+ }
+ }
+ }
+
+ if(event.getNewValue() instanceof EAnnotation && VisualInformationPapyrusConstant.DISPLAY_NAMELABELICON.equals(((EAnnotation)event.getNewValue()).getSource())) {
+ refreshLabel();
+ }
+
+ super.handleNotificationEvent(event);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createFigure() {
+ // Parent should assign one using setLabel() method
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ private static final String ADD_PARENT_MODEL = "AddParentModel";
+
+ /**
+ * @generated
+ */
+ public void activate() {
+ super.activate();
+ addOwnerElementListeners();
+ }
+
+ /**
+ * @generated
+ */
+ protected void addOwnerElementListeners() {
+ addListenerFilter(ADD_PARENT_MODEL, this, ((View)getParent().getModel())); //$NON-NLS-1$
+
+ }
+
+ /**
+ * @generated
+ */
+ public void deactivate() {
+ removeOwnerElementListeners();
+ super.deactivate();
+
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeOwnerElementListeners() {
+ removeListenerFilter(ADD_PARENT_MODEL);
+
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ClassEditPartCLN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ClassEditPartCLN.java
new file mode 100644
index 00000000000..66ee4fabf7e
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ClassEditPartCLN.java
@@ -0,0 +1,781 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EAnnotation;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.emf.transaction.RunnableWithResult;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.AccessibleEditPart;
+import org.eclipse.gef.DragTracker;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.requests.DirectEditRequest;
+import org.eclipse.gef.requests.SelectionRequest;
+import org.eclipse.gef.tools.DirectEditManager;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.CompartmentEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IPrimaryEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.ListItemComponentEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
+import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
+import org.eclipse.gmf.runtime.diagram.ui.tools.DragEditPartsTrackerEx;
+import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
+import org.eclipse.gmf.runtime.notation.FontStyle;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
+import org.eclipse.jface.viewers.ICellEditorValidator;
+import org.eclipse.jface.window.Window;
+import org.eclipse.papyrus.diagram.common.directedit.MultilineLabelDirectEditManager;
+import org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition;
+import org.eclipse.papyrus.diagram.common.editpolicies.IMaskManagedLabelEditPolicy;
+import org.eclipse.papyrus.diagram.common.figure.node.ILabelFigure;
+import org.eclipse.papyrus.diagram.common.util.DiagramEditPartsUtil;
+import org.eclipse.papyrus.diagram.composite.edit.policies.ClassItemSemanticEditPolicyCLN;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLTextNonResizableEditPolicy;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLTextSelectionEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.diagram.composite.providers.UMLParserProvider;
+import org.eclipse.papyrus.extensionpoints.editors.Activator;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
+import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
+import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
+import org.eclipse.papyrus.umlutils.ui.VisualInformationPapyrusConstant;
+import org.eclipse.papyrus.umlutils.ui.helper.NameLabelIconHelper;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.AccessibleEvent;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.FontData;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.ui.PlatformUI;
+
+/**
+ * @generated
+ */
+public class ClassEditPartCLN
+
+extends CompartmentEditPart
+
+implements ITextAwareEditPart, IPrimaryEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 3114;
+
+ /**
+ * @generated
+ */
+ private DirectEditManager manager;
+
+ /**
+ * @generated
+ */
+ private IParser parser;
+
+ /**
+ * @generated
+ */
+ private List<?> parserElements;
+
+ /**
+ * @generated
+ */
+ private String defaultText;
+
+ /**
+ * direct edition mode (default, undefined, registered editor, etc.)
+ *
+ * @generated
+ */
+ protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
+
+ /**
+ * configuration from a registered edit dialog
+ *
+ * @generated
+ */
+ protected IDirectEditorConfiguration configuration;
+
+ /**
+ * @generated
+ */
+ public ClassEditPartCLN(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ public DragTracker getDragTracker(Request request) {
+ if(request instanceof SelectionRequest && ((SelectionRequest)request).getLastButtonPressed() == 3) {
+ return null;
+ }
+ return new DragEditPartsTrackerEx(this);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new ClassItemSemanticEditPolicyCLN());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new UMLTextNonResizableEditPolicy());
+ installEditPolicy(EditPolicy.COMPONENT_ROLE, new ListItemComponentEditPolicy());
+ installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelTextHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getText();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getText();
+ } else {
+ return ((Label)figure).getText();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelTextHelper(IFigure figure, String text) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setText(text);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setText(text);
+ } else {
+ ((Label)figure).setText(text);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIconHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getIcon();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getIcon();
+ } else {
+ return ((Label)figure).getIcon();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelIconHelper(IFigure figure, Image icon) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setIcon(icon);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setIcon(icon);
+ } else {
+ ((Label)figure).setIcon(icon);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabel(IFigure figure) {
+ unregisterVisuals();
+ setFigure(figure);
+ defaultText = getLabelTextHelper(figure);
+ registerVisuals();
+ refreshVisuals();
+ }
+
+ /**
+ * @generated
+ */
+ protected List getModelChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject getParserElement() {
+ return resolveSemanticElement();
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIcon() {
+ EObject parserElement = getParserElement();
+ if(parserElement == null) {
+ return null;
+ }
+
+ List<View> views = DiagramEditPartsUtil.findViews(parserElement, getViewer());
+ for(View view : views) {
+ if(NameLabelIconHelper.showLabelIcon(view)) {
+ return UMLElementTypes.getImage(parserElement.eClass());
+ }
+ }
+ return null;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelText() {
+ String text = null;
+ EObject parserElement = getParserElement();
+ if(parserElement != null && getParser() != null) {
+ text = getParser().getPrintString(new EObjectAdapter(parserElement), getParserOptions().intValue());
+ }
+ if(text == null || text.length() == 0) {
+ text = defaultText;
+ }
+ return text;
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabelText(String text) {
+ setLabelTextHelper(getFigure(), text);
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public String getEditText() {
+ if(getParserElement() == null || getParser() == null) {
+ return ""; //$NON-NLS-1$
+ }
+ return getParser().getEditString(new EObjectAdapter(getParserElement()), getParserOptions().intValue());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean isEditable() {
+ return getParser() != null;
+ }
+
+ /**
+ * @generated
+ */
+ public ICellEditorValidator getEditTextValidator() {
+ return new ICellEditorValidator() {
+
+ public String isValid(final Object value) {
+ if(value instanceof String) {
+ final EObject element = getParserElement();
+ final IParser parser = getParser();
+ try {
+ IParserEditStatus valid = (IParserEditStatus)getEditingDomain().runExclusive(new RunnableWithResult.Impl() {
+
+ public void run() {
+ setResult(parser.isValidEditString(new EObjectAdapter(element), (String)value));
+ }
+ });
+ return valid.getCode() == ParserEditStatus.EDITABLE ? null : valid.getMessage();
+ } catch (InterruptedException ie) {
+ ie.printStackTrace();
+ }
+ }
+
+ // shouldn't get here
+ return null;
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ public IContentAssistProcessor getCompletionProcessor() {
+ if(getParserElement() == null || getParser() == null) {
+ return null;
+ }
+ return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
+ }
+
+ /**
+ * @generated
+ */
+ public ParserOptions getParserOptions() {
+ return ParserOptions.NONE;
+ }
+
+ /**
+ * @generated
+ */
+ public IParser getParser() {
+ if(parser == null) {
+ parser = UMLParserProvider.getParser(UMLElementTypes.Class_3114, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.diagram.composite.edit.parts.ClassEditPartCLN.VISUAL_ID));
+ }
+ return parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected DirectEditManager getManager() {
+ if(manager == null) {
+ setManager(new MultilineLabelDirectEditManager(this, MultilineLabelDirectEditManager.getTextCellEditorClass(this), UMLEditPartFactory.getTextCellEditorLocator(this)));
+ }
+ return manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setManager(DirectEditManager manager) {
+ this.manager = manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit() {
+ getManager().show();
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit(Point eventLocation) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(eventLocation.getSWTPoint());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void performDirectEdit(char initialCharacter) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(initialCharacter);
+ } else {
+ performDirectEdit();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEditRequest(Request request) {
+
+ final Request theRequest = request;
+
+ if(IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
+ directEditionMode = getDirectEditionType();
+ }
+ switch(directEditionMode) {
+ case IDirectEdition.NO_DIRECT_EDITION:
+ // no direct edition mode => does nothing
+ return;
+ case IDirectEdition.EXTENDED_DIRECT_EDITOR:
+ updateExtendedEditorConfiguration();
+ if(configuration == null || configuration.getLanguage() == null) {
+ performDefaultDirectEditorEdit(theRequest);
+ } else {
+ configuration.preEditAction(resolveSemanticElement());
+ Dialog dialog = null;
+ if(configuration instanceof IPopupEditorConfiguration) {
+ IPopupEditorHelper helper = ((IPopupEditorConfiguration)configuration).createPopupEditorHelper(this);
+ helper.showEditor();
+ return;
+ } else if(configuration instanceof IAdvancedEditorConfiguration) {
+ dialog = ((IAdvancedEditorConfiguration)configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
+ } else if(configuration instanceof IDirectEditorConfiguration) {
+ dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), ((IDirectEditorConfiguration)configuration).getTextToEdit(resolveSemanticElement()), (IDirectEditorConfiguration)configuration);
+ } else {
+ return;
+ }
+ final Dialog finalDialog = dialog;
+
+ if(Window.OK == dialog.open()) {
+ TransactionalEditingDomain domain = getEditingDomain();
+ RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
+
+ @Override
+ protected void doExecute() {
+ configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog)finalDialog).getValue());
+
+ }
+ };
+ domain.getCommandStack().execute(command);
+ }
+ }
+ break;
+ case IDirectEdition.DEFAULT_DIRECT_EDITOR:
+
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ break;
+ default:
+ break;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshLabel();
+ refreshFont();
+ refreshFontColor();
+ refreshUnderline();
+ refreshStrikeThrough();
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshLabel() {
+ EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
+ if(maskLabelPolicy == null) {
+ setLabelTextHelper(getFigure(), getLabelText());
+ setLabelIconHelper(getFigure(), getLabelIcon());
+ }
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshUnderline() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextUnderline(style.isUnderline());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshStrikeThrough() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextStrikeThrough(style.isStrikeThrough());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshFont() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null) {
+ FontData fontData = new FontData(style.getFontName(), style.getFontHeight(), (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
+ setFont(fontData);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setFontColor(Color color) {
+ getFigure().setForegroundColor(color);
+ }
+
+ /**
+ * @generated
+ */
+ protected void addSemanticListeners() {
+ if(getParser() instanceof ISemanticParser) {
+ EObject element = resolveSemanticElement();
+ parserElements = ((ISemanticParser)getParser()).getSemanticElementsBeingParsed(element);
+ for(int i = 0; i < parserElements.size(); i++) {
+ addListenerFilter("SemanticModel" + i, this, (EObject)parserElements.get(i)); //$NON-NLS-1$
+ }
+ } else {
+ super.addSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeSemanticListeners() {
+ if(parserElements != null) {
+ for(int i = 0; i < parserElements.size(); i++) {
+ removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
+ }
+ } else {
+ super.removeSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected AccessibleEditPart getAccessibleEditPart() {
+ if(accessibleEP == null) {
+ accessibleEP = new AccessibleGraphicalEditPart() {
+
+ public void getName(AccessibleEvent e) {
+ e.result = getLabelTextHelper(getFigure());
+ }
+ };
+ }
+ return accessibleEP;
+ }
+
+ /**
+ * @generated
+ */
+ private View getFontStyleOwnerView() {
+ return getPrimaryView();
+ }
+
+ /**
+ * Returns the kind of associated editor for direct edition.
+ *
+ * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition
+ * @generated
+ */
+ public int getDirectEditionType() {
+ if(checkExtendedEditor()) {
+ initExtendedEditorConfiguration();
+ return IDirectEdition.EXTENDED_DIRECT_EDITOR;
+ }
+ if(checkDefaultEdition()) {
+ return IDirectEdition.DEFAULT_DIRECT_EDITOR;
+ }
+
+ // not a named element. no specific editor => do nothing
+ return IDirectEdition.NO_DIRECT_EDITION;
+ }
+
+ /**
+ * Checks if an extended editor is present.
+ *
+ * @return <code>true</code> if an extended editor is present.
+ * @generated
+ */
+ protected boolean checkExtendedEditor() {
+ if(resolveSemanticElement() != null) {
+ return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ return false;
+ }
+
+ /**
+ * Checks if a default direct edition is available
+ *
+ * @return <code>true</code> if a default direct edition is available
+ * @generated
+ */
+ protected boolean checkDefaultEdition() {
+ return (getParser() != null);
+ }
+
+ /**
+ * Initializes the extended editor configuration
+ *
+ * @generated
+ */
+ protected void initExtendedEditorConfiguration() {
+ if(configuration == null) {
+ final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("")) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else {
+ configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ }
+ }
+
+ /**
+ * Updates the preference configuration
+ *
+ * @generated
+ */
+ protected void updateExtendedEditorConfiguration() {
+ String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("") && languagePreferred != configuration.getLanguage()) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else if(IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
+ configuration = null;
+ }
+ }
+
+ /**
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
+ protected void performDefaultDirectEditorEdit(final Request theRequest) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void addNotationalListeners() {
+ super.addNotationalListeners();
+ addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeNotationalListeners() {
+ super.removeNotationalListeners();
+ removeListenerFilter("PrimaryView"); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void handleNotificationEvent(Notification event) {
+ Object feature = event.getFeature();
+ if(NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
+ Integer c = (Integer)event.getNewValue();
+ setFontColor(DiagramColorRegistry.getInstance().getColor(c));
+ } else if(NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
+ refreshUnderline();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
+ refreshStrikeThrough();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
+ refreshFont();
+ } else {
+ if(getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
+ refreshLabel();
+ }
+ if(getParser() instanceof ISemanticParser) {
+ ISemanticParser modelParser = (ISemanticParser)getParser();
+ if(modelParser.areSemanticElementsAffected(null, event)) {
+ removeSemanticListeners();
+ if(resolveSemanticElement() != null) {
+ addSemanticListeners();
+ }
+ refreshLabel();
+ }
+ }
+ }
+ if(event.getNewValue() instanceof EAnnotation && VisualInformationPapyrusConstant.DISPLAY_NAMELABELICON.equals(((EAnnotation)event.getNewValue()).getSource())) {
+ refreshLabel();
+ }
+ super.handleNotificationEvent(event);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createFigure() {
+ IFigure label = createFigurePrim();
+ defaultText = getLabelTextHelper(label);
+ return label;
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createFigurePrim() {
+ return new WrappingLabel();
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/CollaborationCompositeCompartmentEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/CollaborationCompositeCompartmentEditPart.java
new file mode 100644
index 00000000000..c7c0d5c2c4f
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/CollaborationCompositeCompartmentEditPart.java
@@ -0,0 +1,122 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import org.eclipse.draw2d.geometry.Dimension;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.draw2d.geometry.Rectangle;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.GraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ShapeCompartmentEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.CreationEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.DragDropEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.ResizableCompartmentEditPolicy;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.diagram.common.editparts.NoScrollBarShapeCompartmentEditPart;
+import org.eclipse.papyrus.diagram.common.editpolicies.CustomContainerEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.DuplicatePasteEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.CustomDiagramDragDropEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.RemoveOrphanViewPolicy;
+import org.eclipse.papyrus.diagram.composite.edit.policies.CollaborationCompositeCompartmentItemSemanticEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.Messages;
+
+/**
+ * @generated
+ */
+public class CollaborationCompositeCompartmentEditPart
+
+extends NoScrollBarShapeCompartmentEditPart
+
+{
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 7075;
+
+ /**
+ * @generated
+ */
+ public CollaborationCompositeCompartmentEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ public String getCompartmentName() {
+ return Messages.CollaborationCompositeCompartmentEditPart_title;
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new ResizableCompartmentEditPolicy());
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new CollaborationCompositeCompartmentItemSemanticEditPolicy());
+ installEditPolicy(EditPolicyRoles.CREATION_ROLE, new CreationEditPolicy());
+ installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new DragDropEditPolicy());
+ installEditPolicy(DuplicatePasteEditPolicy.PASTE_ROLE, new DuplicatePasteEditPolicy());
+ installEditPolicy("REMOVE_ORPHAN_VIEW", new RemoveOrphanViewPolicy()); //$NON-NLS-1$
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new org.eclipse.papyrus.diagram.composite.custom.edit.policies.CollaborationCompositeCompartmentItemSemanticEditPolicy());
+ installEditPolicy(EditPolicy.GRAPHICAL_NODE_ROLE, new CustomContainerEditPolicy());
+ installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new CustomDiagramDragDropEditPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ protected void setRatio(Double ratio) {
+ if(getFigure().getParent().getLayoutManager() instanceof ConstrainedToolbarLayout) {
+ super.setRatio(ratio);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void handleNotificationEvent(Notification notification) {
+ Object feature = notification.getFeature();
+ if(NotationPackage.eINSTANCE.getSize_Width().equals(feature) || NotationPackage.eINSTANCE.getSize_Height().equals(feature) || NotationPackage.eINSTANCE.getLocation_X().equals(feature) || NotationPackage.eINSTANCE.getLocation_Y().equals(feature)) {
+ refreshBounds();
+ }
+ super.handleNotificationEvent(notification);
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshBounds() {
+ int width = ((Integer)getStructuralFeatureValue(NotationPackage.eINSTANCE.getSize_Width())).intValue();
+ int height = ((Integer)getStructuralFeatureValue(NotationPackage.eINSTANCE.getSize_Height())).intValue();
+ Dimension size = new Dimension(width, height);
+ int x = ((Integer)getStructuralFeatureValue(NotationPackage.eINSTANCE.getLocation_X())).intValue();
+ int y = ((Integer)getStructuralFeatureValue(NotationPackage.eINSTANCE.getLocation_Y())).intValue();
+ Point loc = new Point(x, y);
+ ((GraphicalEditPart)getParent()).setLayoutConstraint(this, getFigure(), new Rectangle(loc, size));
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshBounds();
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/CollaborationCompositeCompartmentEditPartCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/CollaborationCompositeCompartmentEditPartCN.java
new file mode 100644
index 00000000000..ceb6af953f9
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/CollaborationCompositeCompartmentEditPartCN.java
@@ -0,0 +1,123 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import org.eclipse.draw2d.geometry.Dimension;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.draw2d.geometry.Rectangle;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.GraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ShapeCompartmentEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.CreationEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.DragDropEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.ResizableCompartmentEditPolicy;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.diagram.common.editparts.NoScrollBarShapeCompartmentEditPart;
+import org.eclipse.papyrus.diagram.common.editpolicies.CustomContainerEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.DuplicatePasteEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.CollaborationCompositeCompartmentItemSemanticEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.CustomDiagramDragDropEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.RemoveOrphanViewPolicy;
+import org.eclipse.papyrus.diagram.composite.edit.policies.CollaborationCompositeCompartmentItemSemanticEditPolicyCN;
+import org.eclipse.papyrus.diagram.composite.part.Messages;
+
+/**
+ * @generated
+ */
+public class CollaborationCompositeCompartmentEditPartCN
+
+extends NoScrollBarShapeCompartmentEditPart
+
+{
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 7061;
+
+ /**
+ * @generated
+ */
+ public CollaborationCompositeCompartmentEditPartCN(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ public String getCompartmentName() {
+ return Messages.CollaborationCompositeCompartmentEditPartCN_title;
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new ResizableCompartmentEditPolicy());
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new CollaborationCompositeCompartmentItemSemanticEditPolicyCN());
+ installEditPolicy(EditPolicyRoles.CREATION_ROLE, new CreationEditPolicy());
+ installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new DragDropEditPolicy());
+ installEditPolicy(DuplicatePasteEditPolicy.PASTE_ROLE, new DuplicatePasteEditPolicy());
+ installEditPolicy("REMOVE_ORPHAN_VIEW", new RemoveOrphanViewPolicy()); //$NON-NLS-1$
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new CollaborationCompositeCompartmentItemSemanticEditPolicy());
+ installEditPolicy(EditPolicy.GRAPHICAL_NODE_ROLE, new CustomContainerEditPolicy());
+ installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new CustomDiagramDragDropEditPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ protected void setRatio(Double ratio) {
+ if(getFigure().getParent().getLayoutManager() instanceof ConstrainedToolbarLayout) {
+ super.setRatio(ratio);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void handleNotificationEvent(Notification notification) {
+ Object feature = notification.getFeature();
+ if(NotationPackage.eINSTANCE.getSize_Width().equals(feature) || NotationPackage.eINSTANCE.getSize_Height().equals(feature) || NotationPackage.eINSTANCE.getLocation_X().equals(feature) || NotationPackage.eINSTANCE.getLocation_Y().equals(feature)) {
+ refreshBounds();
+ }
+ super.handleNotificationEvent(notification);
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshBounds() {
+ int width = ((Integer)getStructuralFeatureValue(NotationPackage.eINSTANCE.getSize_Width())).intValue();
+ int height = ((Integer)getStructuralFeatureValue(NotationPackage.eINSTANCE.getSize_Height())).intValue();
+ Dimension size = new Dimension(width, height);
+ int x = ((Integer)getStructuralFeatureValue(NotationPackage.eINSTANCE.getLocation_X())).intValue();
+ int y = ((Integer)getStructuralFeatureValue(NotationPackage.eINSTANCE.getLocation_Y())).intValue();
+ Point loc = new Point(x, y);
+ ((GraphicalEditPart)getParent()).setLayoutConstraint(this, getFigure(), new Rectangle(loc, size));
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshBounds();
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/CollaborationCompositeEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/CollaborationCompositeEditPart.java
new file mode 100644
index 00000000000..f62fd43e3ec
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/CollaborationCompositeEditPart.java
@@ -0,0 +1,5356 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.ArrayList;
+import java.util.LinkedList;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Shape;
+import org.eclipse.draw2d.StackLayout;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EStructuralFeature;
+import org.eclipse.gef.EditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.editpolicies.LayoutEditPolicy;
+import org.eclipse.gef.editpolicies.NonResizableEditPolicy;
+import org.eclipse.gef.requests.CreateRequest;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.FigureUtilities;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.gef.ui.figures.DefaultSizeNodeFigure;
+import org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.jface.preference.PreferenceConverter;
+import org.eclipse.papyrus.diagram.common.editparts.NamedElementEditPart;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.HyperLinkPopupBarEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.QualifiedNameDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.ShowHideClassifierContentsEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.ShowHideCompartmentEditPolicy;
+import org.eclipse.papyrus.diagram.common.helper.PreferenceInitializerForElementHelper;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.CustomDiagramDragDropEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.figures.CollaborationCompositeFigure;
+import org.eclipse.papyrus.diagram.composite.edit.policies.CollaborationCompositeItemSemanticEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorPlugin;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter;
+import org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper;
+import org.eclipse.swt.graphics.Color;
+
+/**
+ * @generated
+ */
+public class CollaborationCompositeEditPart extends
+
+NamedElementEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 2075;
+
+ /**
+ * @generated
+ */
+ protected IFigure contentPane;
+
+ /**
+ * @generated
+ */
+ protected IFigure primaryShape;
+
+ /**
+ * @generated
+ */
+ public CollaborationCompositeEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new CollaborationCompositeItemSemanticEditPolicy());
+ installEditPolicy(EditPolicy.LAYOUT_ROLE, createLayoutEditPolicy());
+ installEditPolicy(QualifiedNameDisplayEditPolicy.QUALIFIED_NAME_POLICY, new QualifiedNameDisplayEditPolicy());
+ installEditPolicy(AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeNodeLabelDisplayEditPolicy());
+ installEditPolicy(EditPolicyRoles.POPUPBAR_ROLE, new HyperLinkPopupBarEditPolicy());
+ installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new CustomDiagramDragDropEditPolicy());
+ installEditPolicy(ShowHideClassifierContentsEditPolicy.SHOW_HIDE_CLASSIFIER_CONTENTS_POLICY, new ShowHideClassifierContentsEditPolicy());
+ installEditPolicy(ShowHideCompartmentEditPolicy.SHOW_HIDE_COMPARTMENT_POLICY, new ShowHideCompartmentEditPolicy());
+ // XXX need an SCR to runtime to have another abstract superclass that would let children add reasonable editpolicies
+ // removeEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CONNECTION_HANDLES_ROLE);
+ }
+
+ /**
+ * Papyrus codeGen
+ *
+ * @generated
+ **/
+ protected void handleNotificationEvent(Notification event) {
+ super.handleNotificationEvent(event);
+
+ }
+
+ /**
+ * @generated
+ */
+ protected LayoutEditPolicy createLayoutEditPolicy() {
+ org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy lep = new org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy() {
+
+ protected EditPolicy createChildEditPolicy(EditPart child) {
+ EditPolicy result = child.getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(result == null) {
+ result = new NonResizableEditPolicy();
+ }
+ return result;
+ }
+
+ protected Command getMoveChildrenCommand(Request request) {
+ return null;
+ }
+
+ protected Command getCreateCommand(CreateRequest request) {
+ return null;
+ }
+ };
+ return lep;
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createNodeShape() {
+ return primaryShape = new CollaborationCompositeFigure();
+ }
+
+ /**
+ * @generated
+ */
+ public CollaborationCompositeFigure getPrimaryShape() {
+ return (CollaborationCompositeFigure)primaryShape;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean addFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof CollaborationCompositeNameEditPart) {
+ ((CollaborationCompositeNameEditPart)childEditPart).setLabel(getPrimaryShape().getNameLabel());
+ return true;
+ }
+
+ if(childEditPart instanceof CollaborationCompositeCompartmentEditPart) {
+ IFigure pane = getPrimaryShape().getCompositeCompartmentFigure();
+ setupContentPane(pane); // FIXME each comparment should handle his content pane in his own way
+ pane.add(((CollaborationCompositeCompartmentEditPart)childEditPart).getFigure());
+ return true;
+ }
+
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean removeFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof CollaborationCompositeNameEditPart) {
+ return true;
+ }
+ if(childEditPart instanceof CollaborationCompositeCompartmentEditPart) {
+ IFigure pane = getPrimaryShape().getCompositeCompartmentFigure();
+ setupContentPane(pane); // FIXME each comparment should handle his content pane in his own way
+ pane.remove(((CollaborationCompositeCompartmentEditPart)childEditPart).getFigure());
+ return true;
+ }
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected void addChildVisual(EditPart childEditPart, int index) {
+ if(addFixedChild(childEditPart)) {
+ return;
+ }
+ super.addChildVisual(childEditPart, -1);
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeChildVisual(EditPart childEditPart) {
+ if(removeFixedChild(childEditPart)) {
+ return;
+ }
+ super.removeChildVisual(childEditPart);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure getContentPaneFor(IGraphicalEditPart editPart) {
+ if(editPart instanceof CollaborationCompositeCompartmentEditPart) {
+ return getPrimaryShape().getCompositeCompartmentFigure();
+ }
+ return getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ protected NodeFigure createNodePlate() {
+ String prefElementId = "Collaboration";
+ IPreferenceStore store = UMLDiagramEditorPlugin.getInstance().getPreferenceStore();
+ String preferenceConstantWitdh = PreferenceInitializerForElementHelper.getpreferenceKey(getNotationView(), prefElementId, PreferenceConstantHelper.WIDTH);
+ String preferenceConstantHeight = PreferenceInitializerForElementHelper.getpreferenceKey(getNotationView(), prefElementId, PreferenceConstantHelper.HEIGHT);
+ DefaultSizeNodeFigure result = new DefaultSizeNodeFigure(store.getInt(preferenceConstantWitdh), store.getInt(preferenceConstantHeight));
+
+ return result;
+ }
+
+ /**
+ * Creates figure for this edit part.
+ *
+ * Body of this method does not depend on settings in generation model
+ * so you may safely remove <i>generated</i> tag and modify it.
+ *
+ * @generated
+ */
+ protected NodeFigure createNodeFigure() {
+ NodeFigure figure = createNodePlate();
+ figure.setLayoutManager(new StackLayout());
+ IFigure shape = createNodeShape();
+ figure.add(shape);
+ contentPane = setupContentPane(shape);
+ return figure;
+ }
+
+ /**
+ * Default implementation treats passed figure as content pane.
+ * Respects layout one may have set for generated figure.
+ *
+ * @param nodeShape
+ * instance of generated figure class
+ * @generated
+ */
+ protected IFigure setupContentPane(IFigure nodeShape) {
+ if(nodeShape.getLayoutManager() == null) {
+ ConstrainedToolbarLayout layout = new ConstrainedToolbarLayout();
+ layout.setSpacing(5);
+ nodeShape.setLayoutManager(layout);
+ }
+ return nodeShape; // use nodeShape itself as contentPane
+ }
+
+ /**
+ * @generated
+ */
+ public IFigure getContentPane() {
+ if(contentPane != null) {
+ return contentPane;
+ }
+ return super.getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ protected void setForegroundColor(Color color) {
+ if(primaryShape != null) {
+ primaryShape.setForegroundColor(color);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLineWidth(int width) {
+ if(primaryShape instanceof Shape) {
+ ((Shape)primaryShape).setLineWidth(width);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLineType(int style) {
+ if(primaryShape instanceof Shape) {
+ ((Shape)primaryShape).setLineStyle(style);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public EditPart getPrimaryChildEditPart() {
+ return getChildBySemanticHint(UMLVisualIDRegistry.getType(CollaborationCompositeNameEditPart.VISUAL_ID));
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnSource() {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(12);
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ types.add(UMLElementTypes.Substitution_4011);
+ types.add(UMLElementTypes.Realization_4006);
+ types.add(UMLElementTypes.Manifestation_4012);
+ types.add(UMLElementTypes.Abstraction_4007);
+ types.add(UMLElementTypes.Usage_4008);
+ types.add(UMLElementTypes.Deployment_4009);
+ types.add(UMLElementTypes.Dependency_4017);
+ types.add(UMLElementTypes.Dependency_4010);
+ types.add(UMLElementTypes.Generalization_4015);
+ types.add(UMLElementTypes.InformationFlow_4021);
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnSourceAndTarget(IGraphicalEditPart targetEditPart) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMATypesForTarget(IElementType relationshipType) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(relationshipType == UMLElementTypes.ComponentRealization_4004) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InterfaceRealization_4005) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Substitution_4011) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Realization_4006) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Manifestation_4012) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Abstraction_4007) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Usage_4008) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Deployment_4009) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4017) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4010) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Generalization_4015) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ } else if(relationshipType == UMLElementTypes.InformationFlow_4021) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnTarget() {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(17);
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ types.add(UMLElementTypes.Substitution_4011);
+ types.add(UMLElementTypes.Realization_4006);
+ types.add(UMLElementTypes.Manifestation_4012);
+ types.add(UMLElementTypes.Abstraction_4007);
+ types.add(UMLElementTypes.Usage_4008);
+ types.add(UMLElementTypes.Deployment_4009);
+ types.add(UMLElementTypes.Dependency_4017);
+ types.add(UMLElementTypes.Dependency_4010);
+ types.add(UMLElementTypes.Generalization_4015);
+ types.add(UMLElementTypes.TimeObservationEvent_4018);
+ types.add(UMLElementTypes.DurationObservationEvent_4019);
+ types.add(UMLElementTypes.InformationItemRepresented_4020);
+ types.add(UMLElementTypes.InformationFlow_4021);
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMATypesForSource(IElementType relationshipType) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(relationshipType == UMLElementTypes.CommentAnnotatedElement_4002) {
+ types.add(UMLElementTypes.Comment_2109);
+ types.add(UMLElementTypes.Comment_3097);
+ } else if(relationshipType == UMLElementTypes.ConstraintConstrainedElement_4003) {
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.ComponentRealization_4004) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InterfaceRealization_4005) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Substitution_4011) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Realization_4006) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Manifestation_4012) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Abstraction_4007) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Usage_4008) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Deployment_4009) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4017) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4010) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Generalization_4015) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ } else if(relationshipType == UMLElementTypes.TimeObservationEvent_4018) {
+ types.add(UMLElementTypes.TimeObservation_2094);
+ } else if(relationshipType == UMLElementTypes.DurationObservationEvent_4019) {
+ types.add(UMLElementTypes.DurationObservation_2093);
+ } else if(relationshipType == UMLElementTypes.InformationItemRepresented_4020) {
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.InformationItem_3094);
+ } else if(relationshipType == UMLElementTypes.InformationFlow_4021) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public Object getPreferredValue(EStructuralFeature feature) {
+ IPreferenceStore preferenceStore = (IPreferenceStore)getDiagramPreferencesHint().getPreferenceStore();
+ Object result = null;
+
+ if(feature == NotationPackage.eINSTANCE.getLineStyle_LineColor() || feature == NotationPackage.eINSTANCE.getFontStyle_FontColor() || feature == NotationPackage.eINSTANCE.getFillStyle_FillColor()) {
+ String prefColor = null;
+ if(feature == NotationPackage.eINSTANCE.getLineStyle_LineColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("Collaboration", PreferenceConstantHelper.COLOR_LINE);
+ } else if(feature == NotationPackage.eINSTANCE.getFontStyle_FontColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("Collaboration", PreferenceConstantHelper.COLOR_FONT);
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_FillColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("Collaboration", PreferenceConstantHelper.COLOR_FILL);
+ }
+ result = FigureUtilities.RGBToInteger(PreferenceConverter.getColor((IPreferenceStore)preferenceStore, prefColor));
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_Transparency() || feature == NotationPackage.eINSTANCE.getFillStyle_Gradient()) {
+ String prefGradient = PreferenceConstantHelper.getElementConstant("Collaboration", PreferenceConstantHelper.COLOR_GRADIENT);
+ GradientPreferenceConverter gradientPreferenceConverter = new GradientPreferenceConverter(preferenceStore.getString(prefGradient));
+ if(feature == NotationPackage.eINSTANCE.getFillStyle_Transparency()) {
+ result = new Integer(gradientPreferenceConverter.getTransparency());
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_Gradient()) {
+ result = gradientPreferenceConverter.getGradientData();
+ }
+ }
+
+ if(result == null) {
+ result = getStructuralFeatureValue(feature);
+ }
+ return result;
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/CollaborationCompositeEditPartCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/CollaborationCompositeEditPartCN.java
new file mode 100644
index 00000000000..98f2d7fed52
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/CollaborationCompositeEditPartCN.java
@@ -0,0 +1,5359 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.ArrayList;
+import java.util.LinkedList;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Shape;
+import org.eclipse.draw2d.StackLayout;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EStructuralFeature;
+import org.eclipse.gef.EditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.editpolicies.LayoutEditPolicy;
+import org.eclipse.gef.editpolicies.NonResizableEditPolicy;
+import org.eclipse.gef.requests.CreateRequest;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.FigureUtilities;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.gef.ui.figures.DefaultSizeNodeFigure;
+import org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.jface.preference.PreferenceConverter;
+import org.eclipse.papyrus.diagram.common.editparts.NamedElementEditPart;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.HyperLinkPopupBarEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.QualifiedNameDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.ShowHideClassifierContentsEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.ShowHideCompartmentEditPolicy;
+import org.eclipse.papyrus.diagram.common.helper.PreferenceInitializerForElementHelper;
+import org.eclipse.papyrus.diagram.composite.custom.edit.parts.ConstrainedNamedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.CustomDiagramDragDropEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.NoScrollBehaviorResizableShapeEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.figures.CollaborationCompositeFigure;
+import org.eclipse.papyrus.diagram.composite.edit.policies.CollaborationCompositeItemSemanticEditPolicyCN;
+import org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorPlugin;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter;
+import org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper;
+import org.eclipse.swt.graphics.Color;
+
+/**
+ * @generated
+ */
+public class CollaborationCompositeEditPartCN extends
+
+ConstrainedNamedElementEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 3086;
+
+ /**
+ * @generated
+ */
+ protected IFigure contentPane;
+
+ /**
+ * @generated
+ */
+ protected IFigure primaryShape;
+
+ /**
+ * @generated
+ */
+ public CollaborationCompositeEditPartCN(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new CollaborationCompositeItemSemanticEditPolicyCN());
+ installEditPolicy(EditPolicy.LAYOUT_ROLE, createLayoutEditPolicy());
+ installEditPolicy(QualifiedNameDisplayEditPolicy.QUALIFIED_NAME_POLICY, new QualifiedNameDisplayEditPolicy());
+ installEditPolicy(AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeNodeLabelDisplayEditPolicy());
+ installEditPolicy(EditPolicyRoles.POPUPBAR_ROLE, new HyperLinkPopupBarEditPolicy());
+ installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new CustomDiagramDragDropEditPolicy());
+ installEditPolicy(ShowHideClassifierContentsEditPolicy.SHOW_HIDE_CLASSIFIER_CONTENTS_POLICY, new ShowHideClassifierContentsEditPolicy());
+ installEditPolicy(ShowHideCompartmentEditPolicy.SHOW_HIDE_COMPARTMENT_POLICY, new ShowHideCompartmentEditPolicy());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new NoScrollBehaviorResizableShapeEditPolicy());
+ // XXX need an SCR to runtime to have another abstract superclass that would let children add reasonable editpolicies
+ // removeEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CONNECTION_HANDLES_ROLE);
+ }
+
+ /**
+ * Papyrus codeGen
+ *
+ * @generated
+ **/
+ protected void handleNotificationEvent(Notification event) {
+ super.handleNotificationEvent(event);
+
+ }
+
+ /**
+ * @generated
+ */
+ protected LayoutEditPolicy createLayoutEditPolicy() {
+ org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy lep = new org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy() {
+
+ protected EditPolicy createChildEditPolicy(EditPart child) {
+ EditPolicy result = child.getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(result == null) {
+ result = new NonResizableEditPolicy();
+ }
+ return result;
+ }
+
+ protected Command getMoveChildrenCommand(Request request) {
+ return null;
+ }
+
+ protected Command getCreateCommand(CreateRequest request) {
+ return null;
+ }
+ };
+ return lep;
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createNodeShape() {
+ return primaryShape = new CollaborationCompositeFigure();
+ }
+
+ /**
+ * @generated
+ */
+ public CollaborationCompositeFigure getPrimaryShape() {
+ return (CollaborationCompositeFigure)primaryShape;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean addFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof CollaborationCompositeNameEditPartCN) {
+ ((CollaborationCompositeNameEditPartCN)childEditPart).setLabel(getPrimaryShape().getNameLabel());
+ return true;
+ }
+
+ if(childEditPart instanceof CollaborationCompositeCompartmentEditPartCN) {
+ IFigure pane = getPrimaryShape().getCompositeCompartmentFigure();
+ setupContentPane(pane); // FIXME each comparment should handle his content pane in his own way
+ pane.add(((CollaborationCompositeCompartmentEditPartCN)childEditPart).getFigure());
+ return true;
+ }
+
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean removeFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof CollaborationCompositeNameEditPartCN) {
+ return true;
+ }
+ if(childEditPart instanceof CollaborationCompositeCompartmentEditPartCN) {
+ IFigure pane = getPrimaryShape().getCompositeCompartmentFigure();
+ setupContentPane(pane); // FIXME each comparment should handle his content pane in his own way
+ pane.remove(((CollaborationCompositeCompartmentEditPartCN)childEditPart).getFigure());
+ return true;
+ }
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected void addChildVisual(EditPart childEditPart, int index) {
+ if(addFixedChild(childEditPart)) {
+ return;
+ }
+ super.addChildVisual(childEditPart, -1);
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeChildVisual(EditPart childEditPart) {
+ if(removeFixedChild(childEditPart)) {
+ return;
+ }
+ super.removeChildVisual(childEditPart);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure getContentPaneFor(IGraphicalEditPart editPart) {
+ if(editPart instanceof CollaborationCompositeCompartmentEditPartCN) {
+ return getPrimaryShape().getCompositeCompartmentFigure();
+ }
+ return getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ protected NodeFigure createNodePlate() {
+ String prefElementId = "Collaboration";
+ IPreferenceStore store = UMLDiagramEditorPlugin.getInstance().getPreferenceStore();
+ String preferenceConstantWitdh = PreferenceInitializerForElementHelper.getpreferenceKey(getNotationView(), prefElementId, PreferenceConstantHelper.WIDTH);
+ String preferenceConstantHeight = PreferenceInitializerForElementHelper.getpreferenceKey(getNotationView(), prefElementId, PreferenceConstantHelper.HEIGHT);
+ DefaultSizeNodeFigure result = new DefaultSizeNodeFigure(store.getInt(preferenceConstantWitdh), store.getInt(preferenceConstantHeight));
+
+ return result;
+ }
+
+ /**
+ * Creates figure for this edit part.
+ *
+ * Body of this method does not depend on settings in generation model
+ * so you may safely remove <i>generated</i> tag and modify it.
+ *
+ * @generated
+ */
+ protected NodeFigure createNodeFigure() {
+ NodeFigure figure = createNodePlate();
+ figure.setLayoutManager(new StackLayout());
+ IFigure shape = createNodeShape();
+ figure.add(shape);
+ contentPane = setupContentPane(shape);
+ return figure;
+ }
+
+ /**
+ * Default implementation treats passed figure as content pane.
+ * Respects layout one may have set for generated figure.
+ *
+ * @param nodeShape
+ * instance of generated figure class
+ * @generated
+ */
+ protected IFigure setupContentPane(IFigure nodeShape) {
+ if(nodeShape.getLayoutManager() == null) {
+ ConstrainedToolbarLayout layout = new ConstrainedToolbarLayout();
+ layout.setSpacing(5);
+ nodeShape.setLayoutManager(layout);
+ }
+ return nodeShape; // use nodeShape itself as contentPane
+ }
+
+ /**
+ * @generated
+ */
+ public IFigure getContentPane() {
+ if(contentPane != null) {
+ return contentPane;
+ }
+ return super.getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ protected void setForegroundColor(Color color) {
+ if(primaryShape != null) {
+ primaryShape.setForegroundColor(color);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLineWidth(int width) {
+ if(primaryShape instanceof Shape) {
+ ((Shape)primaryShape).setLineWidth(width);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLineType(int style) {
+ if(primaryShape instanceof Shape) {
+ ((Shape)primaryShape).setLineStyle(style);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public EditPart getPrimaryChildEditPart() {
+ return getChildBySemanticHint(UMLVisualIDRegistry.getType(CollaborationCompositeNameEditPartCN.VISUAL_ID));
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnSource() {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(12);
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ types.add(UMLElementTypes.Substitution_4011);
+ types.add(UMLElementTypes.Realization_4006);
+ types.add(UMLElementTypes.Manifestation_4012);
+ types.add(UMLElementTypes.Abstraction_4007);
+ types.add(UMLElementTypes.Usage_4008);
+ types.add(UMLElementTypes.Deployment_4009);
+ types.add(UMLElementTypes.Dependency_4017);
+ types.add(UMLElementTypes.Dependency_4010);
+ types.add(UMLElementTypes.Generalization_4015);
+ types.add(UMLElementTypes.InformationFlow_4021);
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnSourceAndTarget(IGraphicalEditPart targetEditPart) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMATypesForTarget(IElementType relationshipType) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(relationshipType == UMLElementTypes.ComponentRealization_4004) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InterfaceRealization_4005) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Substitution_4011) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Realization_4006) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Manifestation_4012) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Abstraction_4007) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Usage_4008) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Deployment_4009) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4017) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4010) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Generalization_4015) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ } else if(relationshipType == UMLElementTypes.InformationFlow_4021) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnTarget() {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(17);
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ types.add(UMLElementTypes.Substitution_4011);
+ types.add(UMLElementTypes.Realization_4006);
+ types.add(UMLElementTypes.Manifestation_4012);
+ types.add(UMLElementTypes.Abstraction_4007);
+ types.add(UMLElementTypes.Usage_4008);
+ types.add(UMLElementTypes.Deployment_4009);
+ types.add(UMLElementTypes.Dependency_4017);
+ types.add(UMLElementTypes.Dependency_4010);
+ types.add(UMLElementTypes.Generalization_4015);
+ types.add(UMLElementTypes.TimeObservationEvent_4018);
+ types.add(UMLElementTypes.DurationObservationEvent_4019);
+ types.add(UMLElementTypes.InformationItemRepresented_4020);
+ types.add(UMLElementTypes.InformationFlow_4021);
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMATypesForSource(IElementType relationshipType) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(relationshipType == UMLElementTypes.CommentAnnotatedElement_4002) {
+ types.add(UMLElementTypes.Comment_2109);
+ types.add(UMLElementTypes.Comment_3097);
+ } else if(relationshipType == UMLElementTypes.ConstraintConstrainedElement_4003) {
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.ComponentRealization_4004) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InterfaceRealization_4005) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Substitution_4011) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Realization_4006) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Manifestation_4012) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Abstraction_4007) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Usage_4008) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Deployment_4009) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4017) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4010) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Generalization_4015) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ } else if(relationshipType == UMLElementTypes.TimeObservationEvent_4018) {
+ types.add(UMLElementTypes.TimeObservation_2094);
+ } else if(relationshipType == UMLElementTypes.DurationObservationEvent_4019) {
+ types.add(UMLElementTypes.DurationObservation_2093);
+ } else if(relationshipType == UMLElementTypes.InformationItemRepresented_4020) {
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.InformationItem_3094);
+ } else if(relationshipType == UMLElementTypes.InformationFlow_4021) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public Object getPreferredValue(EStructuralFeature feature) {
+ IPreferenceStore preferenceStore = (IPreferenceStore)getDiagramPreferencesHint().getPreferenceStore();
+ Object result = null;
+
+ if(feature == NotationPackage.eINSTANCE.getLineStyle_LineColor() || feature == NotationPackage.eINSTANCE.getFontStyle_FontColor() || feature == NotationPackage.eINSTANCE.getFillStyle_FillColor()) {
+ String prefColor = null;
+ if(feature == NotationPackage.eINSTANCE.getLineStyle_LineColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("Collaboration", PreferenceConstantHelper.COLOR_LINE);
+ } else if(feature == NotationPackage.eINSTANCE.getFontStyle_FontColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("Collaboration", PreferenceConstantHelper.COLOR_FONT);
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_FillColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("Collaboration", PreferenceConstantHelper.COLOR_FILL);
+ }
+ result = FigureUtilities.RGBToInteger(PreferenceConverter.getColor((IPreferenceStore)preferenceStore, prefColor));
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_Transparency() || feature == NotationPackage.eINSTANCE.getFillStyle_Gradient()) {
+ String prefGradient = PreferenceConstantHelper.getElementConstant("Collaboration", PreferenceConstantHelper.COLOR_GRADIENT);
+ GradientPreferenceConverter gradientPreferenceConverter = new GradientPreferenceConverter(preferenceStore.getString(prefGradient));
+ if(feature == NotationPackage.eINSTANCE.getFillStyle_Transparency()) {
+ result = new Integer(gradientPreferenceConverter.getTransparency());
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_Gradient()) {
+ result = gradientPreferenceConverter.getGradientData();
+ }
+ }
+
+ if(result == null) {
+ result = getStructuralFeatureValue(feature);
+ }
+ return result;
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/CollaborationCompositeNameEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/CollaborationCompositeNameEditPart.java
new file mode 100644
index 00000000000..85e7051912b
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/CollaborationCompositeNameEditPart.java
@@ -0,0 +1,791 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EAnnotation;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.emf.transaction.RunnableWithResult;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.AccessibleEditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.requests.DirectEditRequest;
+import org.eclipse.gef.tools.DirectEditManager;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.CompartmentEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
+import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
+import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
+import org.eclipse.gmf.runtime.notation.FontStyle;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
+import org.eclipse.jface.viewers.ICellEditorValidator;
+import org.eclipse.jface.window.Window;
+import org.eclipse.papyrus.diagram.common.directedit.MultilineLabelDirectEditManager;
+import org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition;
+import org.eclipse.papyrus.diagram.common.editpolicies.IMaskManagedLabelEditPolicy;
+import org.eclipse.papyrus.diagram.common.figure.node.ILabelFigure;
+import org.eclipse.papyrus.diagram.common.util.DiagramEditPartsUtil;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLTextSelectionEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.diagram.composite.providers.UMLParserProvider;
+import org.eclipse.papyrus.extensionpoints.editors.Activator;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
+import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
+import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
+import org.eclipse.papyrus.umlutils.ui.VisualInformationPapyrusConstant;
+import org.eclipse.papyrus.umlutils.ui.helper.NameLabelIconHelper;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.AccessibleEvent;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.FontData;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.ui.PlatformUI;
+
+/**
+ * @generated
+ */
+public class CollaborationCompositeNameEditPart extends CompartmentEditPart implements ITextAwareEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 5158;
+
+ /**
+ * @generated
+ */
+ private DirectEditManager manager;
+
+ /**
+ * @generated
+ */
+ private IParser parser;
+
+ /**
+ * @generated
+ */
+ private List<?> parserElements;
+
+ /**
+ * @generated
+ */
+ private String defaultText;
+
+ /**
+ * direct edition mode (default, undefined, registered editor, etc.)
+ *
+ * @generated
+ */
+ protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
+
+ /**
+ * configuration from a registered edit dialog
+ *
+ * @generated
+ */
+ protected IDirectEditorConfiguration configuration;
+
+ /**
+ * @generated
+ */
+ public CollaborationCompositeNameEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
+ installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new CompositeStructureDiagramEditPart.NodeLabelDragPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelTextHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getText();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getText();
+ } else {
+ return ((Label)figure).getText();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelTextHelper(IFigure figure, String text) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setText(text);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setText(text);
+ } else {
+ ((Label)figure).setText(text);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIconHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getIcon();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getIcon();
+ } else {
+ return ((Label)figure).getIcon();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelIconHelper(IFigure figure, Image icon) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setIcon(icon);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setIcon(icon);
+ } else {
+ ((Label)figure).setIcon(icon);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabel(WrappingLabel figure) {
+ unregisterVisuals();
+ setFigure(figure);
+ defaultText = getLabelTextHelper(figure);
+ registerVisuals();
+ refreshVisuals();
+ }
+
+ /**
+ * @generated
+ */
+ protected List getModelChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject getParserElement() {
+ return resolveSemanticElement();
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIcon() {
+ EObject parserElement = getParserElement();
+ if(parserElement == null) {
+ return null;
+ }
+
+ List<View> views = DiagramEditPartsUtil.findViews(parserElement, getViewer());
+ for(View view : views) {
+ if(NameLabelIconHelper.showLabelIcon(view)) {
+ return UMLElementTypes.getImage(parserElement.eClass());
+ }
+ }
+ return null;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelText() {
+ String text = null;
+ EObject parserElement = getParserElement();
+ if(parserElement != null && getParser() != null) {
+ text = getParser().getPrintString(new EObjectAdapter(parserElement), getParserOptions().intValue());
+ }
+ if(text == null || text.length() == 0) {
+ text = defaultText;
+ }
+ return text;
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabelText(String text) {
+ setLabelTextHelper(getFigure(), text);
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public String getEditText() {
+ if(getParserElement() == null || getParser() == null) {
+ return ""; //$NON-NLS-1$
+ }
+ return getParser().getEditString(new EObjectAdapter(getParserElement()), getParserOptions().intValue());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean isEditable() {
+ return getParser() != null;
+ }
+
+ /**
+ * @generated
+ */
+ public ICellEditorValidator getEditTextValidator() {
+ return new ICellEditorValidator() {
+
+ public String isValid(final Object value) {
+ if(value instanceof String) {
+ final EObject element = getParserElement();
+ final IParser parser = getParser();
+ try {
+ IParserEditStatus valid = (IParserEditStatus)getEditingDomain().runExclusive(new RunnableWithResult.Impl() {
+
+ public void run() {
+ setResult(parser.isValidEditString(new EObjectAdapter(element), (String)value));
+ }
+ });
+ return valid.getCode() == ParserEditStatus.EDITABLE ? null : valid.getMessage();
+ } catch (InterruptedException ie) {
+ ie.printStackTrace();
+ }
+ }
+
+ // shouldn't get here
+ return null;
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ public IContentAssistProcessor getCompletionProcessor() {
+ if(getParserElement() == null || getParser() == null) {
+ return null;
+ }
+ return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
+ }
+
+ /**
+ * @generated
+ */
+ public ParserOptions getParserOptions() {
+ return ParserOptions.NONE;
+ }
+
+ /**
+ * @generated
+ */
+ public IParser getParser() {
+ if(parser == null) {
+ parser = UMLParserProvider.getParser(UMLElementTypes.Collaboration_2075, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.diagram.composite.edit.parts.CollaborationCompositeNameEditPart.VISUAL_ID));
+ }
+ return parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected DirectEditManager getManager() {
+ if(manager == null) {
+ setManager(new MultilineLabelDirectEditManager(this, MultilineLabelDirectEditManager.getTextCellEditorClass(this), UMLEditPartFactory.getTextCellEditorLocator(this)));
+ }
+ return manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setManager(DirectEditManager manager) {
+ this.manager = manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit() {
+ getManager().show();
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit(Point eventLocation) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(eventLocation.getSWTPoint());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void performDirectEdit(char initialCharacter) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(initialCharacter);
+ } else {
+ performDirectEdit();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEditRequest(Request request) {
+
+ final Request theRequest = request;
+
+ if(IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
+ directEditionMode = getDirectEditionType();
+ }
+ switch(directEditionMode) {
+ case IDirectEdition.NO_DIRECT_EDITION:
+ // no direct edition mode => does nothing
+ return;
+ case IDirectEdition.EXTENDED_DIRECT_EDITOR:
+ updateExtendedEditorConfiguration();
+ if(configuration == null || configuration.getLanguage() == null) {
+ performDefaultDirectEditorEdit(theRequest);
+ } else {
+ configuration.preEditAction(resolveSemanticElement());
+ Dialog dialog = null;
+ if(configuration instanceof IPopupEditorConfiguration) {
+ IPopupEditorHelper helper = ((IPopupEditorConfiguration)configuration).createPopupEditorHelper(this);
+ helper.showEditor();
+ return;
+ } else if(configuration instanceof IAdvancedEditorConfiguration) {
+ dialog = ((IAdvancedEditorConfiguration)configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
+ } else if(configuration instanceof IDirectEditorConfiguration) {
+ dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), ((IDirectEditorConfiguration)configuration).getTextToEdit(resolveSemanticElement()), (IDirectEditorConfiguration)configuration);
+ } else {
+ return;
+ }
+ final Dialog finalDialog = dialog;
+
+ if(Window.OK == dialog.open()) {
+ TransactionalEditingDomain domain = getEditingDomain();
+ RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
+
+ @Override
+ protected void doExecute() {
+ configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog)finalDialog).getValue());
+
+ }
+ };
+ domain.getCommandStack().execute(command);
+ }
+ }
+ break;
+ case IDirectEdition.DEFAULT_DIRECT_EDITOR:
+
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ break;
+ default:
+ break;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshLabel();
+ refreshFont();
+ refreshFontColor();
+ refreshUnderline();
+ refreshStrikeThrough();
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshLabel() {
+ EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
+ if(maskLabelPolicy == null) {
+ setLabelTextHelper(getFigure(), getLabelText());
+ setLabelIconHelper(getFigure(), getLabelIcon());
+ }
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshUnderline() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextUnderline(style.isUnderline());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshStrikeThrough() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextStrikeThrough(style.isStrikeThrough());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshFont() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null) {
+ FontData fontData = new FontData(style.getFontName(), style.getFontHeight(), (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
+ setFont(fontData);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setFontColor(Color color) {
+ getFigure().setForegroundColor(color);
+ }
+
+ /**
+ * @generated
+ */
+ protected void addSemanticListeners() {
+ if(getParser() instanceof ISemanticParser) {
+ EObject element = resolveSemanticElement();
+ parserElements = ((ISemanticParser)getParser()).getSemanticElementsBeingParsed(element);
+ for(int i = 0; i < parserElements.size(); i++) {
+ addListenerFilter("SemanticModel" + i, this, (EObject)parserElements.get(i)); //$NON-NLS-1$
+ }
+ } else {
+ super.addSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeSemanticListeners() {
+ if(parserElements != null) {
+ for(int i = 0; i < parserElements.size(); i++) {
+ removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
+ }
+ } else {
+ super.removeSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected AccessibleEditPart getAccessibleEditPart() {
+ if(accessibleEP == null) {
+ accessibleEP = new AccessibleGraphicalEditPart() {
+
+ public void getName(AccessibleEvent e) {
+ e.result = getLabelTextHelper(getFigure());
+ }
+ };
+ }
+ return accessibleEP;
+ }
+
+ /**
+ * @generated
+ */
+ private View getFontStyleOwnerView() {
+ return (View)getModel();
+ }
+
+ /**
+ * Returns the kind of associated editor for direct edition.
+ *
+ * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition
+ * @generated
+ */
+ public int getDirectEditionType() {
+ if(checkExtendedEditor()) {
+ initExtendedEditorConfiguration();
+ return IDirectEdition.EXTENDED_DIRECT_EDITOR;
+ }
+ if(checkDefaultEdition()) {
+ return IDirectEdition.DEFAULT_DIRECT_EDITOR;
+ }
+
+ // not a named element. no specific editor => do nothing
+ return IDirectEdition.NO_DIRECT_EDITION;
+ }
+
+ /**
+ * Checks if an extended editor is present.
+ *
+ * @return <code>true</code> if an extended editor is present.
+ * @generated
+ */
+ protected boolean checkExtendedEditor() {
+ if(resolveSemanticElement() != null) {
+ return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ return false;
+ }
+
+ /**
+ * Checks if a default direct edition is available
+ *
+ * @return <code>true</code> if a default direct edition is available
+ * @generated
+ */
+ protected boolean checkDefaultEdition() {
+ return (getParser() != null);
+ }
+
+ /**
+ * Initializes the extended editor configuration
+ *
+ * @generated
+ */
+ protected void initExtendedEditorConfiguration() {
+ if(configuration == null) {
+ final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("")) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else {
+ configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ }
+ }
+
+ /**
+ * Updates the preference configuration
+ *
+ * @generated
+ */
+ protected void updateExtendedEditorConfiguration() {
+ String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("") && languagePreferred != configuration.getLanguage()) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else if(IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
+ configuration = null;
+ }
+ }
+
+ /**
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
+ protected void performDefaultDirectEditorEdit(final Request theRequest) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void addNotationalListeners() {
+ super.addNotationalListeners();
+ addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeNotationalListeners() {
+ super.removeNotationalListeners();
+ removeListenerFilter("PrimaryView"); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void handleNotificationEvent(Notification event) {
+ refreshLabel();
+ Object feature = event.getFeature();
+ if(NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
+ Integer c = (Integer)event.getNewValue();
+ setFontColor(DiagramColorRegistry.getInstance().getColor(c));
+ } else if(NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
+ refreshUnderline();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
+ refreshStrikeThrough();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
+ refreshFont();
+ } else {
+ if(getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
+ refreshLabel();
+ }
+ if(getParser() instanceof ISemanticParser) {
+ ISemanticParser modelParser = (ISemanticParser)getParser();
+ if(modelParser.areSemanticElementsAffected(null, event)) {
+ removeSemanticListeners();
+ if(resolveSemanticElement() != null) {
+ addSemanticListeners();
+ }
+ refreshLabel();
+ }
+ }
+ }
+
+ if(event.getNewValue() instanceof EAnnotation && VisualInformationPapyrusConstant.DISPLAY_NAMELABELICON.equals(((EAnnotation)event.getNewValue()).getSource())) {
+ refreshLabel();
+ }
+
+ super.handleNotificationEvent(event);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createFigure() {
+ // Parent should assign one using setLabel() method
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ private static final String ADD_PARENT_MODEL = "AddParentModel";
+
+ /**
+ * @generated
+ */
+ public void activate() {
+ super.activate();
+ addOwnerElementListeners();
+ }
+
+ /**
+ * @generated
+ */
+ protected void addOwnerElementListeners() {
+ addListenerFilter(ADD_PARENT_MODEL, this, ((View)getParent().getModel())); //$NON-NLS-1$
+
+ }
+
+ /**
+ * @generated
+ */
+ public void deactivate() {
+ removeOwnerElementListeners();
+ super.deactivate();
+
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeOwnerElementListeners() {
+ removeListenerFilter(ADD_PARENT_MODEL);
+
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/CollaborationCompositeNameEditPartCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/CollaborationCompositeNameEditPartCN.java
new file mode 100644
index 00000000000..7646da0019a
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/CollaborationCompositeNameEditPartCN.java
@@ -0,0 +1,791 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EAnnotation;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.emf.transaction.RunnableWithResult;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.AccessibleEditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.requests.DirectEditRequest;
+import org.eclipse.gef.tools.DirectEditManager;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.CompartmentEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
+import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
+import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
+import org.eclipse.gmf.runtime.notation.FontStyle;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
+import org.eclipse.jface.viewers.ICellEditorValidator;
+import org.eclipse.jface.window.Window;
+import org.eclipse.papyrus.diagram.common.directedit.MultilineLabelDirectEditManager;
+import org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition;
+import org.eclipse.papyrus.diagram.common.editpolicies.IMaskManagedLabelEditPolicy;
+import org.eclipse.papyrus.diagram.common.figure.node.ILabelFigure;
+import org.eclipse.papyrus.diagram.common.util.DiagramEditPartsUtil;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLTextSelectionEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.diagram.composite.providers.UMLParserProvider;
+import org.eclipse.papyrus.extensionpoints.editors.Activator;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
+import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
+import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
+import org.eclipse.papyrus.umlutils.ui.VisualInformationPapyrusConstant;
+import org.eclipse.papyrus.umlutils.ui.helper.NameLabelIconHelper;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.AccessibleEvent;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.FontData;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.ui.PlatformUI;
+
+/**
+ * @generated
+ */
+public class CollaborationCompositeNameEditPartCN extends CompartmentEditPart implements ITextAwareEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 5141;
+
+ /**
+ * @generated
+ */
+ private DirectEditManager manager;
+
+ /**
+ * @generated
+ */
+ private IParser parser;
+
+ /**
+ * @generated
+ */
+ private List<?> parserElements;
+
+ /**
+ * @generated
+ */
+ private String defaultText;
+
+ /**
+ * direct edition mode (default, undefined, registered editor, etc.)
+ *
+ * @generated
+ */
+ protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
+
+ /**
+ * configuration from a registered edit dialog
+ *
+ * @generated
+ */
+ protected IDirectEditorConfiguration configuration;
+
+ /**
+ * @generated
+ */
+ public CollaborationCompositeNameEditPartCN(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
+ installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new CompositeStructureDiagramEditPart.NodeLabelDragPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelTextHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getText();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getText();
+ } else {
+ return ((Label)figure).getText();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelTextHelper(IFigure figure, String text) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setText(text);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setText(text);
+ } else {
+ ((Label)figure).setText(text);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIconHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getIcon();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getIcon();
+ } else {
+ return ((Label)figure).getIcon();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelIconHelper(IFigure figure, Image icon) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setIcon(icon);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setIcon(icon);
+ } else {
+ ((Label)figure).setIcon(icon);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabel(WrappingLabel figure) {
+ unregisterVisuals();
+ setFigure(figure);
+ defaultText = getLabelTextHelper(figure);
+ registerVisuals();
+ refreshVisuals();
+ }
+
+ /**
+ * @generated
+ */
+ protected List getModelChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject getParserElement() {
+ return resolveSemanticElement();
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIcon() {
+ EObject parserElement = getParserElement();
+ if(parserElement == null) {
+ return null;
+ }
+
+ List<View> views = DiagramEditPartsUtil.findViews(parserElement, getViewer());
+ for(View view : views) {
+ if(NameLabelIconHelper.showLabelIcon(view)) {
+ return UMLElementTypes.getImage(parserElement.eClass());
+ }
+ }
+ return null;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelText() {
+ String text = null;
+ EObject parserElement = getParserElement();
+ if(parserElement != null && getParser() != null) {
+ text = getParser().getPrintString(new EObjectAdapter(parserElement), getParserOptions().intValue());
+ }
+ if(text == null || text.length() == 0) {
+ text = defaultText;
+ }
+ return text;
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabelText(String text) {
+ setLabelTextHelper(getFigure(), text);
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public String getEditText() {
+ if(getParserElement() == null || getParser() == null) {
+ return ""; //$NON-NLS-1$
+ }
+ return getParser().getEditString(new EObjectAdapter(getParserElement()), getParserOptions().intValue());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean isEditable() {
+ return getParser() != null;
+ }
+
+ /**
+ * @generated
+ */
+ public ICellEditorValidator getEditTextValidator() {
+ return new ICellEditorValidator() {
+
+ public String isValid(final Object value) {
+ if(value instanceof String) {
+ final EObject element = getParserElement();
+ final IParser parser = getParser();
+ try {
+ IParserEditStatus valid = (IParserEditStatus)getEditingDomain().runExclusive(new RunnableWithResult.Impl() {
+
+ public void run() {
+ setResult(parser.isValidEditString(new EObjectAdapter(element), (String)value));
+ }
+ });
+ return valid.getCode() == ParserEditStatus.EDITABLE ? null : valid.getMessage();
+ } catch (InterruptedException ie) {
+ ie.printStackTrace();
+ }
+ }
+
+ // shouldn't get here
+ return null;
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ public IContentAssistProcessor getCompletionProcessor() {
+ if(getParserElement() == null || getParser() == null) {
+ return null;
+ }
+ return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
+ }
+
+ /**
+ * @generated
+ */
+ public ParserOptions getParserOptions() {
+ return ParserOptions.NONE;
+ }
+
+ /**
+ * @generated
+ */
+ public IParser getParser() {
+ if(parser == null) {
+ parser = UMLParserProvider.getParser(UMLElementTypes.Collaboration_3086, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.diagram.composite.edit.parts.CollaborationCompositeNameEditPartCN.VISUAL_ID));
+ }
+ return parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected DirectEditManager getManager() {
+ if(manager == null) {
+ setManager(new MultilineLabelDirectEditManager(this, MultilineLabelDirectEditManager.getTextCellEditorClass(this), UMLEditPartFactory.getTextCellEditorLocator(this)));
+ }
+ return manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setManager(DirectEditManager manager) {
+ this.manager = manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit() {
+ getManager().show();
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit(Point eventLocation) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(eventLocation.getSWTPoint());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void performDirectEdit(char initialCharacter) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(initialCharacter);
+ } else {
+ performDirectEdit();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEditRequest(Request request) {
+
+ final Request theRequest = request;
+
+ if(IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
+ directEditionMode = getDirectEditionType();
+ }
+ switch(directEditionMode) {
+ case IDirectEdition.NO_DIRECT_EDITION:
+ // no direct edition mode => does nothing
+ return;
+ case IDirectEdition.EXTENDED_DIRECT_EDITOR:
+ updateExtendedEditorConfiguration();
+ if(configuration == null || configuration.getLanguage() == null) {
+ performDefaultDirectEditorEdit(theRequest);
+ } else {
+ configuration.preEditAction(resolveSemanticElement());
+ Dialog dialog = null;
+ if(configuration instanceof IPopupEditorConfiguration) {
+ IPopupEditorHelper helper = ((IPopupEditorConfiguration)configuration).createPopupEditorHelper(this);
+ helper.showEditor();
+ return;
+ } else if(configuration instanceof IAdvancedEditorConfiguration) {
+ dialog = ((IAdvancedEditorConfiguration)configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
+ } else if(configuration instanceof IDirectEditorConfiguration) {
+ dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), ((IDirectEditorConfiguration)configuration).getTextToEdit(resolveSemanticElement()), (IDirectEditorConfiguration)configuration);
+ } else {
+ return;
+ }
+ final Dialog finalDialog = dialog;
+
+ if(Window.OK == dialog.open()) {
+ TransactionalEditingDomain domain = getEditingDomain();
+ RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
+
+ @Override
+ protected void doExecute() {
+ configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog)finalDialog).getValue());
+
+ }
+ };
+ domain.getCommandStack().execute(command);
+ }
+ }
+ break;
+ case IDirectEdition.DEFAULT_DIRECT_EDITOR:
+
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ break;
+ default:
+ break;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshLabel();
+ refreshFont();
+ refreshFontColor();
+ refreshUnderline();
+ refreshStrikeThrough();
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshLabel() {
+ EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
+ if(maskLabelPolicy == null) {
+ setLabelTextHelper(getFigure(), getLabelText());
+ setLabelIconHelper(getFigure(), getLabelIcon());
+ }
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshUnderline() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextUnderline(style.isUnderline());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshStrikeThrough() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextStrikeThrough(style.isStrikeThrough());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshFont() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null) {
+ FontData fontData = new FontData(style.getFontName(), style.getFontHeight(), (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
+ setFont(fontData);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setFontColor(Color color) {
+ getFigure().setForegroundColor(color);
+ }
+
+ /**
+ * @generated
+ */
+ protected void addSemanticListeners() {
+ if(getParser() instanceof ISemanticParser) {
+ EObject element = resolveSemanticElement();
+ parserElements = ((ISemanticParser)getParser()).getSemanticElementsBeingParsed(element);
+ for(int i = 0; i < parserElements.size(); i++) {
+ addListenerFilter("SemanticModel" + i, this, (EObject)parserElements.get(i)); //$NON-NLS-1$
+ }
+ } else {
+ super.addSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeSemanticListeners() {
+ if(parserElements != null) {
+ for(int i = 0; i < parserElements.size(); i++) {
+ removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
+ }
+ } else {
+ super.removeSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected AccessibleEditPart getAccessibleEditPart() {
+ if(accessibleEP == null) {
+ accessibleEP = new AccessibleGraphicalEditPart() {
+
+ public void getName(AccessibleEvent e) {
+ e.result = getLabelTextHelper(getFigure());
+ }
+ };
+ }
+ return accessibleEP;
+ }
+
+ /**
+ * @generated
+ */
+ private View getFontStyleOwnerView() {
+ return (View)getModel();
+ }
+
+ /**
+ * Returns the kind of associated editor for direct edition.
+ *
+ * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition
+ * @generated
+ */
+ public int getDirectEditionType() {
+ if(checkExtendedEditor()) {
+ initExtendedEditorConfiguration();
+ return IDirectEdition.EXTENDED_DIRECT_EDITOR;
+ }
+ if(checkDefaultEdition()) {
+ return IDirectEdition.DEFAULT_DIRECT_EDITOR;
+ }
+
+ // not a named element. no specific editor => do nothing
+ return IDirectEdition.NO_DIRECT_EDITION;
+ }
+
+ /**
+ * Checks if an extended editor is present.
+ *
+ * @return <code>true</code> if an extended editor is present.
+ * @generated
+ */
+ protected boolean checkExtendedEditor() {
+ if(resolveSemanticElement() != null) {
+ return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ return false;
+ }
+
+ /**
+ * Checks if a default direct edition is available
+ *
+ * @return <code>true</code> if a default direct edition is available
+ * @generated
+ */
+ protected boolean checkDefaultEdition() {
+ return (getParser() != null);
+ }
+
+ /**
+ * Initializes the extended editor configuration
+ *
+ * @generated
+ */
+ protected void initExtendedEditorConfiguration() {
+ if(configuration == null) {
+ final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("")) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else {
+ configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ }
+ }
+
+ /**
+ * Updates the preference configuration
+ *
+ * @generated
+ */
+ protected void updateExtendedEditorConfiguration() {
+ String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("") && languagePreferred != configuration.getLanguage()) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else if(IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
+ configuration = null;
+ }
+ }
+
+ /**
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
+ protected void performDefaultDirectEditorEdit(final Request theRequest) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void addNotationalListeners() {
+ super.addNotationalListeners();
+ addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeNotationalListeners() {
+ super.removeNotationalListeners();
+ removeListenerFilter("PrimaryView"); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void handleNotificationEvent(Notification event) {
+ refreshLabel();
+ Object feature = event.getFeature();
+ if(NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
+ Integer c = (Integer)event.getNewValue();
+ setFontColor(DiagramColorRegistry.getInstance().getColor(c));
+ } else if(NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
+ refreshUnderline();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
+ refreshStrikeThrough();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
+ refreshFont();
+ } else {
+ if(getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
+ refreshLabel();
+ }
+ if(getParser() instanceof ISemanticParser) {
+ ISemanticParser modelParser = (ISemanticParser)getParser();
+ if(modelParser.areSemanticElementsAffected(null, event)) {
+ removeSemanticListeners();
+ if(resolveSemanticElement() != null) {
+ addSemanticListeners();
+ }
+ refreshLabel();
+ }
+ }
+ }
+
+ if(event.getNewValue() instanceof EAnnotation && VisualInformationPapyrusConstant.DISPLAY_NAMELABELICON.equals(((EAnnotation)event.getNewValue()).getSource())) {
+ refreshLabel();
+ }
+
+ super.handleNotificationEvent(event);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createFigure() {
+ // Parent should assign one using setLabel() method
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ private static final String ADD_PARENT_MODEL = "AddParentModel";
+
+ /**
+ * @generated
+ */
+ public void activate() {
+ super.activate();
+ addOwnerElementListeners();
+ }
+
+ /**
+ * @generated
+ */
+ protected void addOwnerElementListeners() {
+ addListenerFilter(ADD_PARENT_MODEL, this, ((View)getParent().getModel())); //$NON-NLS-1$
+
+ }
+
+ /**
+ * @generated
+ */
+ public void deactivate() {
+ removeOwnerElementListeners();
+ super.deactivate();
+
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeOwnerElementListeners() {
+ removeListenerFilter(ADD_PARENT_MODEL);
+
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/CollaborationEditPartCLN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/CollaborationEditPartCLN.java
new file mode 100644
index 00000000000..e71132cf6fd
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/CollaborationEditPartCLN.java
@@ -0,0 +1,781 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EAnnotation;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.emf.transaction.RunnableWithResult;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.AccessibleEditPart;
+import org.eclipse.gef.DragTracker;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.requests.DirectEditRequest;
+import org.eclipse.gef.requests.SelectionRequest;
+import org.eclipse.gef.tools.DirectEditManager;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.CompartmentEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IPrimaryEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.ListItemComponentEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
+import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
+import org.eclipse.gmf.runtime.diagram.ui.tools.DragEditPartsTrackerEx;
+import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
+import org.eclipse.gmf.runtime.notation.FontStyle;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
+import org.eclipse.jface.viewers.ICellEditorValidator;
+import org.eclipse.jface.window.Window;
+import org.eclipse.papyrus.diagram.common.directedit.MultilineLabelDirectEditManager;
+import org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition;
+import org.eclipse.papyrus.diagram.common.editpolicies.IMaskManagedLabelEditPolicy;
+import org.eclipse.papyrus.diagram.common.figure.node.ILabelFigure;
+import org.eclipse.papyrus.diagram.common.util.DiagramEditPartsUtil;
+import org.eclipse.papyrus.diagram.composite.edit.policies.CollaborationItemSemanticEditPolicyCLN;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLTextNonResizableEditPolicy;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLTextSelectionEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.diagram.composite.providers.UMLParserProvider;
+import org.eclipse.papyrus.extensionpoints.editors.Activator;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
+import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
+import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
+import org.eclipse.papyrus.umlutils.ui.VisualInformationPapyrusConstant;
+import org.eclipse.papyrus.umlutils.ui.helper.NameLabelIconHelper;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.AccessibleEvent;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.FontData;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.ui.PlatformUI;
+
+/**
+ * @generated
+ */
+public class CollaborationEditPartCLN
+
+extends CompartmentEditPart
+
+implements ITextAwareEditPart, IPrimaryEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 3109;
+
+ /**
+ * @generated
+ */
+ private DirectEditManager manager;
+
+ /**
+ * @generated
+ */
+ private IParser parser;
+
+ /**
+ * @generated
+ */
+ private List<?> parserElements;
+
+ /**
+ * @generated
+ */
+ private String defaultText;
+
+ /**
+ * direct edition mode (default, undefined, registered editor, etc.)
+ *
+ * @generated
+ */
+ protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
+
+ /**
+ * configuration from a registered edit dialog
+ *
+ * @generated
+ */
+ protected IDirectEditorConfiguration configuration;
+
+ /**
+ * @generated
+ */
+ public CollaborationEditPartCLN(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ public DragTracker getDragTracker(Request request) {
+ if(request instanceof SelectionRequest && ((SelectionRequest)request).getLastButtonPressed() == 3) {
+ return null;
+ }
+ return new DragEditPartsTrackerEx(this);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new CollaborationItemSemanticEditPolicyCLN());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new UMLTextNonResizableEditPolicy());
+ installEditPolicy(EditPolicy.COMPONENT_ROLE, new ListItemComponentEditPolicy());
+ installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelTextHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getText();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getText();
+ } else {
+ return ((Label)figure).getText();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelTextHelper(IFigure figure, String text) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setText(text);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setText(text);
+ } else {
+ ((Label)figure).setText(text);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIconHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getIcon();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getIcon();
+ } else {
+ return ((Label)figure).getIcon();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelIconHelper(IFigure figure, Image icon) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setIcon(icon);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setIcon(icon);
+ } else {
+ ((Label)figure).setIcon(icon);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabel(IFigure figure) {
+ unregisterVisuals();
+ setFigure(figure);
+ defaultText = getLabelTextHelper(figure);
+ registerVisuals();
+ refreshVisuals();
+ }
+
+ /**
+ * @generated
+ */
+ protected List getModelChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject getParserElement() {
+ return resolveSemanticElement();
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIcon() {
+ EObject parserElement = getParserElement();
+ if(parserElement == null) {
+ return null;
+ }
+
+ List<View> views = DiagramEditPartsUtil.findViews(parserElement, getViewer());
+ for(View view : views) {
+ if(NameLabelIconHelper.showLabelIcon(view)) {
+ return UMLElementTypes.getImage(parserElement.eClass());
+ }
+ }
+ return null;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelText() {
+ String text = null;
+ EObject parserElement = getParserElement();
+ if(parserElement != null && getParser() != null) {
+ text = getParser().getPrintString(new EObjectAdapter(parserElement), getParserOptions().intValue());
+ }
+ if(text == null || text.length() == 0) {
+ text = defaultText;
+ }
+ return text;
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabelText(String text) {
+ setLabelTextHelper(getFigure(), text);
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public String getEditText() {
+ if(getParserElement() == null || getParser() == null) {
+ return ""; //$NON-NLS-1$
+ }
+ return getParser().getEditString(new EObjectAdapter(getParserElement()), getParserOptions().intValue());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean isEditable() {
+ return getParser() != null;
+ }
+
+ /**
+ * @generated
+ */
+ public ICellEditorValidator getEditTextValidator() {
+ return new ICellEditorValidator() {
+
+ public String isValid(final Object value) {
+ if(value instanceof String) {
+ final EObject element = getParserElement();
+ final IParser parser = getParser();
+ try {
+ IParserEditStatus valid = (IParserEditStatus)getEditingDomain().runExclusive(new RunnableWithResult.Impl() {
+
+ public void run() {
+ setResult(parser.isValidEditString(new EObjectAdapter(element), (String)value));
+ }
+ });
+ return valid.getCode() == ParserEditStatus.EDITABLE ? null : valid.getMessage();
+ } catch (InterruptedException ie) {
+ ie.printStackTrace();
+ }
+ }
+
+ // shouldn't get here
+ return null;
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ public IContentAssistProcessor getCompletionProcessor() {
+ if(getParserElement() == null || getParser() == null) {
+ return null;
+ }
+ return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
+ }
+
+ /**
+ * @generated
+ */
+ public ParserOptions getParserOptions() {
+ return ParserOptions.NONE;
+ }
+
+ /**
+ * @generated
+ */
+ public IParser getParser() {
+ if(parser == null) {
+ parser = UMLParserProvider.getParser(UMLElementTypes.Collaboration_3109, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.diagram.composite.edit.parts.CollaborationEditPartCLN.VISUAL_ID));
+ }
+ return parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected DirectEditManager getManager() {
+ if(manager == null) {
+ setManager(new MultilineLabelDirectEditManager(this, MultilineLabelDirectEditManager.getTextCellEditorClass(this), UMLEditPartFactory.getTextCellEditorLocator(this)));
+ }
+ return manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setManager(DirectEditManager manager) {
+ this.manager = manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit() {
+ getManager().show();
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit(Point eventLocation) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(eventLocation.getSWTPoint());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void performDirectEdit(char initialCharacter) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(initialCharacter);
+ } else {
+ performDirectEdit();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEditRequest(Request request) {
+
+ final Request theRequest = request;
+
+ if(IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
+ directEditionMode = getDirectEditionType();
+ }
+ switch(directEditionMode) {
+ case IDirectEdition.NO_DIRECT_EDITION:
+ // no direct edition mode => does nothing
+ return;
+ case IDirectEdition.EXTENDED_DIRECT_EDITOR:
+ updateExtendedEditorConfiguration();
+ if(configuration == null || configuration.getLanguage() == null) {
+ performDefaultDirectEditorEdit(theRequest);
+ } else {
+ configuration.preEditAction(resolveSemanticElement());
+ Dialog dialog = null;
+ if(configuration instanceof IPopupEditorConfiguration) {
+ IPopupEditorHelper helper = ((IPopupEditorConfiguration)configuration).createPopupEditorHelper(this);
+ helper.showEditor();
+ return;
+ } else if(configuration instanceof IAdvancedEditorConfiguration) {
+ dialog = ((IAdvancedEditorConfiguration)configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
+ } else if(configuration instanceof IDirectEditorConfiguration) {
+ dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), ((IDirectEditorConfiguration)configuration).getTextToEdit(resolveSemanticElement()), (IDirectEditorConfiguration)configuration);
+ } else {
+ return;
+ }
+ final Dialog finalDialog = dialog;
+
+ if(Window.OK == dialog.open()) {
+ TransactionalEditingDomain domain = getEditingDomain();
+ RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
+
+ @Override
+ protected void doExecute() {
+ configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog)finalDialog).getValue());
+
+ }
+ };
+ domain.getCommandStack().execute(command);
+ }
+ }
+ break;
+ case IDirectEdition.DEFAULT_DIRECT_EDITOR:
+
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ break;
+ default:
+ break;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshLabel();
+ refreshFont();
+ refreshFontColor();
+ refreshUnderline();
+ refreshStrikeThrough();
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshLabel() {
+ EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
+ if(maskLabelPolicy == null) {
+ setLabelTextHelper(getFigure(), getLabelText());
+ setLabelIconHelper(getFigure(), getLabelIcon());
+ }
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshUnderline() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextUnderline(style.isUnderline());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshStrikeThrough() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextStrikeThrough(style.isStrikeThrough());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshFont() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null) {
+ FontData fontData = new FontData(style.getFontName(), style.getFontHeight(), (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
+ setFont(fontData);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setFontColor(Color color) {
+ getFigure().setForegroundColor(color);
+ }
+
+ /**
+ * @generated
+ */
+ protected void addSemanticListeners() {
+ if(getParser() instanceof ISemanticParser) {
+ EObject element = resolveSemanticElement();
+ parserElements = ((ISemanticParser)getParser()).getSemanticElementsBeingParsed(element);
+ for(int i = 0; i < parserElements.size(); i++) {
+ addListenerFilter("SemanticModel" + i, this, (EObject)parserElements.get(i)); //$NON-NLS-1$
+ }
+ } else {
+ super.addSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeSemanticListeners() {
+ if(parserElements != null) {
+ for(int i = 0; i < parserElements.size(); i++) {
+ removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
+ }
+ } else {
+ super.removeSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected AccessibleEditPart getAccessibleEditPart() {
+ if(accessibleEP == null) {
+ accessibleEP = new AccessibleGraphicalEditPart() {
+
+ public void getName(AccessibleEvent e) {
+ e.result = getLabelTextHelper(getFigure());
+ }
+ };
+ }
+ return accessibleEP;
+ }
+
+ /**
+ * @generated
+ */
+ private View getFontStyleOwnerView() {
+ return getPrimaryView();
+ }
+
+ /**
+ * Returns the kind of associated editor for direct edition.
+ *
+ * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition
+ * @generated
+ */
+ public int getDirectEditionType() {
+ if(checkExtendedEditor()) {
+ initExtendedEditorConfiguration();
+ return IDirectEdition.EXTENDED_DIRECT_EDITOR;
+ }
+ if(checkDefaultEdition()) {
+ return IDirectEdition.DEFAULT_DIRECT_EDITOR;
+ }
+
+ // not a named element. no specific editor => do nothing
+ return IDirectEdition.NO_DIRECT_EDITION;
+ }
+
+ /**
+ * Checks if an extended editor is present.
+ *
+ * @return <code>true</code> if an extended editor is present.
+ * @generated
+ */
+ protected boolean checkExtendedEditor() {
+ if(resolveSemanticElement() != null) {
+ return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ return false;
+ }
+
+ /**
+ * Checks if a default direct edition is available
+ *
+ * @return <code>true</code> if a default direct edition is available
+ * @generated
+ */
+ protected boolean checkDefaultEdition() {
+ return (getParser() != null);
+ }
+
+ /**
+ * Initializes the extended editor configuration
+ *
+ * @generated
+ */
+ protected void initExtendedEditorConfiguration() {
+ if(configuration == null) {
+ final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("")) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else {
+ configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ }
+ }
+
+ /**
+ * Updates the preference configuration
+ *
+ * @generated
+ */
+ protected void updateExtendedEditorConfiguration() {
+ String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("") && languagePreferred != configuration.getLanguage()) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else if(IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
+ configuration = null;
+ }
+ }
+
+ /**
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
+ protected void performDefaultDirectEditorEdit(final Request theRequest) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void addNotationalListeners() {
+ super.addNotationalListeners();
+ addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeNotationalListeners() {
+ super.removeNotationalListeners();
+ removeListenerFilter("PrimaryView"); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void handleNotificationEvent(Notification event) {
+ Object feature = event.getFeature();
+ if(NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
+ Integer c = (Integer)event.getNewValue();
+ setFontColor(DiagramColorRegistry.getInstance().getColor(c));
+ } else if(NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
+ refreshUnderline();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
+ refreshStrikeThrough();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
+ refreshFont();
+ } else {
+ if(getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
+ refreshLabel();
+ }
+ if(getParser() instanceof ISemanticParser) {
+ ISemanticParser modelParser = (ISemanticParser)getParser();
+ if(modelParser.areSemanticElementsAffected(null, event)) {
+ removeSemanticListeners();
+ if(resolveSemanticElement() != null) {
+ addSemanticListeners();
+ }
+ refreshLabel();
+ }
+ }
+ }
+ if(event.getNewValue() instanceof EAnnotation && VisualInformationPapyrusConstant.DISPLAY_NAMELABELICON.equals(((EAnnotation)event.getNewValue()).getSource())) {
+ refreshLabel();
+ }
+ super.handleNotificationEvent(event);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createFigure() {
+ IFigure label = createFigurePrim();
+ defaultText = getLabelTextHelper(label);
+ return label;
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createFigurePrim() {
+ return new WrappingLabel();
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/CollaborationRoleEditPartCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/CollaborationRoleEditPartCN.java
new file mode 100644
index 00000000000..ffbca63621d
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/CollaborationRoleEditPartCN.java
@@ -0,0 +1,5113 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.ArrayList;
+import java.util.LinkedList;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Shape;
+import org.eclipse.draw2d.StackLayout;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EStructuralFeature;
+import org.eclipse.gef.EditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.editpolicies.LayoutEditPolicy;
+import org.eclipse.gef.editpolicies.NonResizableEditPolicy;
+import org.eclipse.gef.requests.CreateRequest;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.FigureUtilities;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.gef.ui.figures.DefaultSizeNodeFigure;
+import org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.jface.preference.PreferenceConverter;
+import org.eclipse.papyrus.diagram.common.editparts.NamedElementEditPart;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.HyperLinkPopupBarEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.QualifiedNameDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.helper.PreferenceInitializerForElementHelper;
+import org.eclipse.papyrus.diagram.composite.custom.edit.parts.ConstrainedNamedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.CollaborationRoleItemSemanticEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.GraphicalNodeEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.NoScrollBehaviorResizableShapeEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.figures.CollaborationRoleFigure;
+import org.eclipse.papyrus.diagram.composite.edit.policies.CollaborationRoleItemSemanticEditPolicyCN;
+import org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorPlugin;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter;
+import org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper;
+import org.eclipse.swt.graphics.Color;
+
+/**
+ * @generated
+ */
+public class CollaborationRoleEditPartCN extends
+
+ConstrainedNamedElementEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 3115;
+
+ /**
+ * @generated
+ */
+ protected IFigure contentPane;
+
+ /**
+ * @generated
+ */
+ protected IFigure primaryShape;
+
+ /**
+ * @generated
+ */
+ public CollaborationRoleEditPartCN(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new CollaborationRoleItemSemanticEditPolicyCN());
+ installEditPolicy(EditPolicy.LAYOUT_ROLE, createLayoutEditPolicy());
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new CollaborationRoleItemSemanticEditPolicy());
+ installEditPolicy(EditPolicy.GRAPHICAL_NODE_ROLE, new GraphicalNodeEditPolicy());
+ installEditPolicy(QualifiedNameDisplayEditPolicy.QUALIFIED_NAME_POLICY, new QualifiedNameDisplayEditPolicy());
+ installEditPolicy(AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeNodeLabelDisplayEditPolicy());
+ installEditPolicy(EditPolicyRoles.POPUPBAR_ROLE, new HyperLinkPopupBarEditPolicy());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new NoScrollBehaviorResizableShapeEditPolicy());
+ // XXX need an SCR to runtime to have another abstract superclass that would let children add reasonable editpolicies
+ // removeEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CONNECTION_HANDLES_ROLE);
+ }
+
+ /**
+ * Papyrus codeGen
+ *
+ * @generated
+ **/
+ protected void handleNotificationEvent(Notification event) {
+ super.handleNotificationEvent(event);
+
+ }
+
+ /**
+ * @generated
+ */
+ protected LayoutEditPolicy createLayoutEditPolicy() {
+ org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy lep = new org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy() {
+
+ protected EditPolicy createChildEditPolicy(EditPart child) {
+ EditPolicy result = child.getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(result == null) {
+ result = new NonResizableEditPolicy();
+ }
+ return result;
+ }
+
+ protected Command getMoveChildrenCommand(Request request) {
+ return null;
+ }
+
+ protected Command getCreateCommand(CreateRequest request) {
+ return null;
+ }
+ };
+ return lep;
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createNodeShape() {
+ return primaryShape = new CollaborationRoleFigure();
+ }
+
+ /**
+ * @generated
+ */
+ public CollaborationRoleFigure getPrimaryShape() {
+ return (CollaborationRoleFigure)primaryShape;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean addFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof CollaborationRoleNameEditPartCN) {
+ ((CollaborationRoleNameEditPartCN)childEditPart).setLabel(getPrimaryShape().getNameLabel());
+ return true;
+ }
+
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean removeFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof CollaborationRoleNameEditPartCN) {
+ return true;
+ }
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected void addChildVisual(EditPart childEditPart, int index) {
+ if(addFixedChild(childEditPart)) {
+ return;
+ }
+ super.addChildVisual(childEditPart, -1);
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeChildVisual(EditPart childEditPart) {
+ if(removeFixedChild(childEditPart)) {
+ return;
+ }
+ super.removeChildVisual(childEditPart);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure getContentPaneFor(IGraphicalEditPart editPart) {
+ return getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ protected NodeFigure createNodePlate() {
+ String prefElementId = "CollaborationRole";
+ IPreferenceStore store = UMLDiagramEditorPlugin.getInstance().getPreferenceStore();
+ String preferenceConstantWitdh = PreferenceInitializerForElementHelper.getpreferenceKey(getNotationView(), prefElementId, PreferenceConstantHelper.WIDTH);
+ String preferenceConstantHeight = PreferenceInitializerForElementHelper.getpreferenceKey(getNotationView(), prefElementId, PreferenceConstantHelper.HEIGHT);
+ DefaultSizeNodeFigure result = new DefaultSizeNodeFigure(store.getInt(preferenceConstantWitdh), store.getInt(preferenceConstantHeight));
+
+ return result;
+ }
+
+ /**
+ * Creates figure for this edit part.
+ *
+ * Body of this method does not depend on settings in generation model
+ * so you may safely remove <i>generated</i> tag and modify it.
+ *
+ * @generated
+ */
+ protected NodeFigure createNodeFigure() {
+ NodeFigure figure = createNodePlate();
+ figure.setLayoutManager(new StackLayout());
+ IFigure shape = createNodeShape();
+ figure.add(shape);
+ contentPane = setupContentPane(shape);
+ return figure;
+ }
+
+ /**
+ * Default implementation treats passed figure as content pane.
+ * Respects layout one may have set for generated figure.
+ *
+ * @param nodeShape
+ * instance of generated figure class
+ * @generated
+ */
+ protected IFigure setupContentPane(IFigure nodeShape) {
+ if(nodeShape.getLayoutManager() == null) {
+ ConstrainedToolbarLayout layout = new ConstrainedToolbarLayout();
+ layout.setSpacing(5);
+ nodeShape.setLayoutManager(layout);
+ }
+ return nodeShape; // use nodeShape itself as contentPane
+ }
+
+ /**
+ * @generated
+ */
+ public IFigure getContentPane() {
+ if(contentPane != null) {
+ return contentPane;
+ }
+ return super.getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ protected void setForegroundColor(Color color) {
+ if(primaryShape != null) {
+ primaryShape.setForegroundColor(color);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLineWidth(int width) {
+ if(primaryShape instanceof Shape) {
+ ((Shape)primaryShape).setLineWidth(width);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLineType(int style) {
+ if(primaryShape instanceof Shape) {
+ ((Shape)primaryShape).setLineStyle(style);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public EditPart getPrimaryChildEditPart() {
+ return getChildBySemanticHint(UMLVisualIDRegistry.getType(CollaborationRoleNameEditPartCN.VISUAL_ID));
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnSource() {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(11);
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ types.add(UMLElementTypes.Substitution_4011);
+ types.add(UMLElementTypes.Realization_4006);
+ types.add(UMLElementTypes.Manifestation_4012);
+ types.add(UMLElementTypes.Abstraction_4007);
+ types.add(UMLElementTypes.Usage_4008);
+ types.add(UMLElementTypes.Deployment_4009);
+ types.add(UMLElementTypes.Dependency_4017);
+ types.add(UMLElementTypes.Dependency_4010);
+ types.add(UMLElementTypes.InformationFlow_4021);
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnSourceAndTarget(IGraphicalEditPart targetEditPart) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMATypesForTarget(IElementType relationshipType) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(relationshipType == UMLElementTypes.ComponentRealization_4004) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InterfaceRealization_4005) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Substitution_4011) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Realization_4006) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Manifestation_4012) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Abstraction_4007) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Usage_4008) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Deployment_4009) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4017) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4010) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InformationFlow_4021) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnTarget() {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(15);
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ types.add(UMLElementTypes.Substitution_4011);
+ types.add(UMLElementTypes.Realization_4006);
+ types.add(UMLElementTypes.Manifestation_4012);
+ types.add(UMLElementTypes.Abstraction_4007);
+ types.add(UMLElementTypes.Usage_4008);
+ types.add(UMLElementTypes.Deployment_4009);
+ types.add(UMLElementTypes.Dependency_4017);
+ types.add(UMLElementTypes.Dependency_4010);
+ types.add(UMLElementTypes.TimeObservationEvent_4018);
+ types.add(UMLElementTypes.DurationObservationEvent_4019);
+ types.add(UMLElementTypes.InformationFlow_4021);
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMATypesForSource(IElementType relationshipType) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(relationshipType == UMLElementTypes.CommentAnnotatedElement_4002) {
+ types.add(UMLElementTypes.Comment_2109);
+ types.add(UMLElementTypes.Comment_3097);
+ } else if(relationshipType == UMLElementTypes.ConstraintConstrainedElement_4003) {
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.ComponentRealization_4004) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InterfaceRealization_4005) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Substitution_4011) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Realization_4006) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Manifestation_4012) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Abstraction_4007) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Usage_4008) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Deployment_4009) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4017) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4010) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.TimeObservationEvent_4018) {
+ types.add(UMLElementTypes.TimeObservation_2094);
+ } else if(relationshipType == UMLElementTypes.DurationObservationEvent_4019) {
+ types.add(UMLElementTypes.DurationObservation_2093);
+ } else if(relationshipType == UMLElementTypes.InformationFlow_4021) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public Object getPreferredValue(EStructuralFeature feature) {
+ IPreferenceStore preferenceStore = (IPreferenceStore)getDiagramPreferencesHint().getPreferenceStore();
+ Object result = null;
+
+ if(feature == NotationPackage.eINSTANCE.getLineStyle_LineColor() || feature == NotationPackage.eINSTANCE.getFontStyle_FontColor() || feature == NotationPackage.eINSTANCE.getFillStyle_FillColor()) {
+ String prefColor = null;
+ if(feature == NotationPackage.eINSTANCE.getLineStyle_LineColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("CollaborationRole", PreferenceConstantHelper.COLOR_LINE);
+ } else if(feature == NotationPackage.eINSTANCE.getFontStyle_FontColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("CollaborationRole", PreferenceConstantHelper.COLOR_FONT);
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_FillColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("CollaborationRole", PreferenceConstantHelper.COLOR_FILL);
+ }
+ result = FigureUtilities.RGBToInteger(PreferenceConverter.getColor((IPreferenceStore)preferenceStore, prefColor));
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_Transparency() || feature == NotationPackage.eINSTANCE.getFillStyle_Gradient()) {
+ String prefGradient = PreferenceConstantHelper.getElementConstant("CollaborationRole", PreferenceConstantHelper.COLOR_GRADIENT);
+ GradientPreferenceConverter gradientPreferenceConverter = new GradientPreferenceConverter(preferenceStore.getString(prefGradient));
+ if(feature == NotationPackage.eINSTANCE.getFillStyle_Transparency()) {
+ result = new Integer(gradientPreferenceConverter.getTransparency());
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_Gradient()) {
+ result = gradientPreferenceConverter.getGradientData();
+ }
+ }
+
+ if(result == null) {
+ result = getStructuralFeatureValue(feature);
+ }
+ return result;
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/CollaborationRoleNameEditPartCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/CollaborationRoleNameEditPartCN.java
new file mode 100644
index 00000000000..4b7cc852f64
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/CollaborationRoleNameEditPartCN.java
@@ -0,0 +1,783 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EAnnotation;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.emf.transaction.RunnableWithResult;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.AccessibleEditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.requests.DirectEditRequest;
+import org.eclipse.gef.tools.DirectEditManager;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.CompartmentEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
+import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
+import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
+import org.eclipse.gmf.runtime.notation.FontStyle;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
+import org.eclipse.jface.viewers.ICellEditorValidator;
+import org.eclipse.jface.window.Window;
+import org.eclipse.papyrus.diagram.common.directedit.MultilineLabelDirectEditManager;
+import org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition;
+import org.eclipse.papyrus.diagram.common.editpolicies.IMaskManagedLabelEditPolicy;
+import org.eclipse.papyrus.diagram.common.figure.node.ILabelFigure;
+import org.eclipse.papyrus.diagram.common.util.DiagramEditPartsUtil;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLTextSelectionEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.diagram.composite.providers.UMLParserProvider;
+import org.eclipse.papyrus.extensionpoints.editors.Activator;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
+import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
+import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
+import org.eclipse.papyrus.umlutils.ui.VisualInformationPapyrusConstant;
+import org.eclipse.papyrus.umlutils.ui.helper.NameLabelIconHelper;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.AccessibleEvent;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.FontData;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.ui.PlatformUI;
+
+/**
+ * @generated
+ */
+public class CollaborationRoleNameEditPartCN extends CompartmentEditPart implements ITextAwareEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 5198;
+
+ /**
+ * @generated
+ */
+ private DirectEditManager manager;
+
+ /**
+ * @generated
+ */
+ private IParser parser;
+
+ /**
+ * @generated
+ */
+ private List<?> parserElements;
+
+ /**
+ * @generated
+ */
+ private String defaultText;
+
+ /**
+ * direct edition mode (default, undefined, registered editor, etc.)
+ *
+ * @generated
+ */
+ protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
+
+ /**
+ * configuration from a registered edit dialog
+ *
+ * @generated
+ */
+ protected IDirectEditorConfiguration configuration;
+
+ /**
+ * @generated
+ */
+ public CollaborationRoleNameEditPartCN(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
+ installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new CompositeStructureDiagramEditPart.NodeLabelDragPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelTextHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getText();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getText();
+ } else {
+ return ((Label)figure).getText();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelTextHelper(IFigure figure, String text) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setText(text);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setText(text);
+ } else {
+ ((Label)figure).setText(text);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIconHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getIcon();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getIcon();
+ } else {
+ return ((Label)figure).getIcon();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelIconHelper(IFigure figure, Image icon) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setIcon(icon);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setIcon(icon);
+ } else {
+ ((Label)figure).setIcon(icon);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabel(WrappingLabel figure) {
+ unregisterVisuals();
+ setFigure(figure);
+ defaultText = getLabelTextHelper(figure);
+ registerVisuals();
+ refreshVisuals();
+ }
+
+ /**
+ * @generated
+ */
+ protected List getModelChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject getParserElement() {
+ return resolveSemanticElement();
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIcon() {
+ EObject parserElement = getParserElement();
+ if(parserElement == null) {
+ return null;
+ }
+
+ List<View> views = DiagramEditPartsUtil.findViews(parserElement, getViewer());
+ for(View view : views) {
+ if(NameLabelIconHelper.showLabelIcon(view)) {
+ return UMLElementTypes.getImage(parserElement.eClass());
+ }
+ }
+ return null;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelText() {
+ String text = null;
+ EObject parserElement = getParserElement();
+ if(parserElement != null && getParser() != null) {
+ text = getParser().getPrintString(new EObjectAdapter(parserElement), getParserOptions().intValue());
+ }
+ if(text == null || text.length() == 0) {
+ text = defaultText;
+ }
+ return text;
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabelText(String text) {
+ setLabelTextHelper(getFigure(), text);
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public String getEditText() {
+ if(getParserElement() == null || getParser() == null) {
+ return ""; //$NON-NLS-1$
+ }
+ return getParser().getEditString(new EObjectAdapter(getParserElement()), getParserOptions().intValue());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean isEditable() {
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ public ICellEditorValidator getEditTextValidator() {
+ return new ICellEditorValidator() {
+
+ public String isValid(final Object value) {
+ if(value instanceof String) {
+ final EObject element = getParserElement();
+ final IParser parser = getParser();
+ try {
+ IParserEditStatus valid = (IParserEditStatus)getEditingDomain().runExclusive(new RunnableWithResult.Impl() {
+
+ public void run() {
+ setResult(parser.isValidEditString(new EObjectAdapter(element), (String)value));
+ }
+ });
+ return valid.getCode() == ParserEditStatus.EDITABLE ? null : valid.getMessage();
+ } catch (InterruptedException ie) {
+ ie.printStackTrace();
+ }
+ }
+
+ // shouldn't get here
+ return null;
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ public IContentAssistProcessor getCompletionProcessor() {
+ if(getParserElement() == null || getParser() == null) {
+ return null;
+ }
+ return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
+ }
+
+ /**
+ * @generated
+ */
+ public ParserOptions getParserOptions() {
+ return ParserOptions.NONE;
+ }
+
+ /**
+ * @generated
+ */
+ public IParser getParser() {
+ if(parser == null) {
+ parser = UMLParserProvider.getParser(UMLElementTypes.ConnectableElement_3115, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.diagram.composite.edit.parts.CollaborationRoleNameEditPartCN.VISUAL_ID));
+ }
+ return parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected DirectEditManager getManager() {
+ if(manager == null) {
+ setManager(new MultilineLabelDirectEditManager(this, MultilineLabelDirectEditManager.getTextCellEditorClass(this), UMLEditPartFactory.getTextCellEditorLocator(this)));
+ }
+ return manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setManager(DirectEditManager manager) {
+ this.manager = manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit() {
+ getManager().show();
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit(Point eventLocation) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(eventLocation.getSWTPoint());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void performDirectEdit(char initialCharacter) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(initialCharacter);
+ } else {
+ performDirectEdit();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEditRequest(Request request) {
+
+ final Request theRequest = request;
+
+ if(IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
+ directEditionMode = getDirectEditionType();
+ }
+ switch(directEditionMode) {
+ case IDirectEdition.NO_DIRECT_EDITION:
+ // no direct edition mode => does nothing
+ return;
+ case IDirectEdition.EXTENDED_DIRECT_EDITOR:
+ updateExtendedEditorConfiguration();
+ if(configuration == null || configuration.getLanguage() == null) {
+ performDefaultDirectEditorEdit(theRequest);
+ } else {
+ configuration.preEditAction(resolveSemanticElement());
+ Dialog dialog = null;
+ if(configuration instanceof IPopupEditorConfiguration) {
+ IPopupEditorHelper helper = ((IPopupEditorConfiguration)configuration).createPopupEditorHelper(this);
+ helper.showEditor();
+ return;
+ } else if(configuration instanceof IAdvancedEditorConfiguration) {
+ dialog = ((IAdvancedEditorConfiguration)configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
+ } else if(configuration instanceof IDirectEditorConfiguration) {
+ dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), ((IDirectEditorConfiguration)configuration).getTextToEdit(resolveSemanticElement()), (IDirectEditorConfiguration)configuration);
+ } else {
+ return;
+ }
+ final Dialog finalDialog = dialog;
+
+ if(Window.OK == dialog.open()) {
+ TransactionalEditingDomain domain = getEditingDomain();
+ RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
+
+ @Override
+ protected void doExecute() {
+ configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog)finalDialog).getValue());
+
+ }
+ };
+ domain.getCommandStack().execute(command);
+ }
+ }
+ break;
+ case IDirectEdition.DEFAULT_DIRECT_EDITOR:
+
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ break;
+ default:
+ break;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshLabel();
+ refreshFont();
+ refreshFontColor();
+ refreshUnderline();
+ refreshStrikeThrough();
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshLabel() {
+ EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
+ if(maskLabelPolicy == null) {
+ setLabelTextHelper(getFigure(), getLabelText());
+ setLabelIconHelper(getFigure(), getLabelIcon());
+ }
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshUnderline() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextUnderline(style.isUnderline());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshStrikeThrough() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextStrikeThrough(style.isStrikeThrough());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshFont() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null) {
+ FontData fontData = new FontData(style.getFontName(), style.getFontHeight(), (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
+ setFont(fontData);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setFontColor(Color color) {
+ getFigure().setForegroundColor(color);
+ }
+
+ /**
+ * @generated
+ */
+ protected void addSemanticListeners() {
+ if(getParser() instanceof ISemanticParser) {
+ EObject element = resolveSemanticElement();
+ parserElements = ((ISemanticParser)getParser()).getSemanticElementsBeingParsed(element);
+ for(int i = 0; i < parserElements.size(); i++) {
+ addListenerFilter("SemanticModel" + i, this, (EObject)parserElements.get(i)); //$NON-NLS-1$
+ }
+ } else {
+ super.addSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeSemanticListeners() {
+ if(parserElements != null) {
+ for(int i = 0; i < parserElements.size(); i++) {
+ removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
+ }
+ } else {
+ super.removeSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected AccessibleEditPart getAccessibleEditPart() {
+ if(accessibleEP == null) {
+ accessibleEP = new AccessibleGraphicalEditPart() {
+
+ public void getName(AccessibleEvent e) {
+ e.result = getLabelTextHelper(getFigure());
+ }
+ };
+ }
+ return accessibleEP;
+ }
+
+ /**
+ * @generated
+ */
+ private View getFontStyleOwnerView() {
+ return (View)getModel();
+ }
+
+ /**
+ * Returns the kind of associated editor for direct edition.
+ *
+ * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition
+ * @generated
+ */
+ public int getDirectEditionType() {
+ // The label is read-only (defined in GMFGen model)
+ return IDirectEdition.NO_DIRECT_EDITION;
+ }
+
+ /**
+ * Checks if an extended editor is present.
+ *
+ * @return <code>true</code> if an extended editor is present.
+ * @generated
+ */
+ protected boolean checkExtendedEditor() {
+ if(resolveSemanticElement() != null) {
+ return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ return false;
+ }
+
+ /**
+ * Checks if a default direct edition is available
+ *
+ * @return <code>true</code> if a default direct edition is available
+ * @generated
+ */
+ protected boolean checkDefaultEdition() {
+ return (getParser() != null);
+ }
+
+ /**
+ * Initializes the extended editor configuration
+ *
+ * @generated
+ */
+ protected void initExtendedEditorConfiguration() {
+ if(configuration == null) {
+ final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("")) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else {
+ configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ }
+ }
+
+ /**
+ * Updates the preference configuration
+ *
+ * @generated
+ */
+ protected void updateExtendedEditorConfiguration() {
+ String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("") && languagePreferred != configuration.getLanguage()) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else if(IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
+ configuration = null;
+ }
+ }
+
+ /**
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
+ protected void performDefaultDirectEditorEdit(final Request theRequest) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void addNotationalListeners() {
+ super.addNotationalListeners();
+ addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeNotationalListeners() {
+ super.removeNotationalListeners();
+ removeListenerFilter("PrimaryView"); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void handleNotificationEvent(Notification event) {
+ refreshLabel();
+ Object feature = event.getFeature();
+ if(NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
+ Integer c = (Integer)event.getNewValue();
+ setFontColor(DiagramColorRegistry.getInstance().getColor(c));
+ } else if(NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
+ refreshUnderline();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
+ refreshStrikeThrough();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
+ refreshFont();
+ } else {
+ if(getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
+ refreshLabel();
+ }
+ if(getParser() instanceof ISemanticParser) {
+ ISemanticParser modelParser = (ISemanticParser)getParser();
+ if(modelParser.areSemanticElementsAffected(null, event)) {
+ removeSemanticListeners();
+ if(resolveSemanticElement() != null) {
+ addSemanticListeners();
+ }
+ refreshLabel();
+ }
+ }
+ }
+
+ if(event.getNewValue() instanceof EAnnotation && VisualInformationPapyrusConstant.DISPLAY_NAMELABELICON.equals(((EAnnotation)event.getNewValue()).getSource())) {
+ refreshLabel();
+ }
+
+ super.handleNotificationEvent(event);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createFigure() {
+ // Parent should assign one using setLabel() method
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ private static final String ADD_PARENT_MODEL = "AddParentModel";
+
+ /**
+ * @generated
+ */
+ public void activate() {
+ super.activate();
+ addOwnerElementListeners();
+ }
+
+ /**
+ * @generated
+ */
+ protected void addOwnerElementListeners() {
+ addListenerFilter(ADD_PARENT_MODEL, this, ((View)getParent().getModel())); //$NON-NLS-1$
+
+ }
+
+ /**
+ * @generated
+ */
+ public void deactivate() {
+ removeOwnerElementListeners();
+ super.deactivate();
+
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeOwnerElementListeners() {
+ removeListenerFilter(ADD_PARENT_MODEL);
+
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/CollaborationUseEditPartCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/CollaborationUseEditPartCN.java
new file mode 100644
index 00000000000..2bf3340320d
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/CollaborationUseEditPartCN.java
@@ -0,0 +1,5112 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.ArrayList;
+import java.util.LinkedList;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Shape;
+import org.eclipse.draw2d.StackLayout;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EStructuralFeature;
+import org.eclipse.gef.EditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.editpolicies.LayoutEditPolicy;
+import org.eclipse.gef.editpolicies.NonResizableEditPolicy;
+import org.eclipse.gef.requests.CreateRequest;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.FigureUtilities;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.gef.ui.figures.DefaultSizeNodeFigure;
+import org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.jface.preference.PreferenceConverter;
+import org.eclipse.papyrus.diagram.common.editparts.NamedElementEditPart;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.HyperLinkPopupBarEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.QualifiedNameDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.helper.PreferenceInitializerForElementHelper;
+import org.eclipse.papyrus.diagram.composite.custom.edit.parts.ConstrainedNamedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.CustomDiagramDragDropEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.NoScrollBehaviorResizableShapeEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.figures.CollaborationUseFigure;
+import org.eclipse.papyrus.diagram.composite.edit.policies.CollaborationUseItemSemanticEditPolicyCN;
+import org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorPlugin;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter;
+import org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper;
+import org.eclipse.swt.graphics.Color;
+
+/**
+ * @generated
+ */
+public class CollaborationUseEditPartCN extends
+
+ConstrainedNamedElementEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 3071;
+
+ /**
+ * @generated
+ */
+ protected IFigure contentPane;
+
+ /**
+ * @generated
+ */
+ protected IFigure primaryShape;
+
+ /**
+ * @generated
+ */
+ public CollaborationUseEditPartCN(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new CollaborationUseItemSemanticEditPolicyCN());
+ installEditPolicy(EditPolicy.LAYOUT_ROLE, createLayoutEditPolicy());
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new org.eclipse.papyrus.diagram.composite.custom.edit.policies.CollaborationUseItemSemanticEditPolicyCN());
+ installEditPolicy(QualifiedNameDisplayEditPolicy.QUALIFIED_NAME_POLICY, new QualifiedNameDisplayEditPolicy());
+ installEditPolicy(AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeNodeLabelDisplayEditPolicy());
+ installEditPolicy(EditPolicyRoles.POPUPBAR_ROLE, new HyperLinkPopupBarEditPolicy());
+ installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new CustomDiagramDragDropEditPolicy());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new NoScrollBehaviorResizableShapeEditPolicy());
+ // XXX need an SCR to runtime to have another abstract superclass that would let children add reasonable editpolicies
+ // removeEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CONNECTION_HANDLES_ROLE);
+ }
+
+ /**
+ * Papyrus codeGen
+ *
+ * @generated
+ **/
+ protected void handleNotificationEvent(Notification event) {
+ super.handleNotificationEvent(event);
+
+ }
+
+ /**
+ * @generated
+ */
+ protected LayoutEditPolicy createLayoutEditPolicy() {
+ org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy lep = new org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy() {
+
+ protected EditPolicy createChildEditPolicy(EditPart child) {
+ EditPolicy result = child.getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(result == null) {
+ result = new NonResizableEditPolicy();
+ }
+ return result;
+ }
+
+ protected Command getMoveChildrenCommand(Request request) {
+ return null;
+ }
+
+ protected Command getCreateCommand(CreateRequest request) {
+ return null;
+ }
+ };
+ return lep;
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createNodeShape() {
+ return primaryShape = new CollaborationUseFigure();
+ }
+
+ /**
+ * @generated
+ */
+ public CollaborationUseFigure getPrimaryShape() {
+ return (CollaborationUseFigure)primaryShape;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean addFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof CollaborationUseNameEditPart) {
+ ((CollaborationUseNameEditPart)childEditPart).setLabel(getPrimaryShape().getNameLabel());
+ return true;
+ }
+
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean removeFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof CollaborationUseNameEditPart) {
+ return true;
+ }
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected void addChildVisual(EditPart childEditPart, int index) {
+ if(addFixedChild(childEditPart)) {
+ return;
+ }
+ super.addChildVisual(childEditPart, -1);
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeChildVisual(EditPart childEditPart) {
+ if(removeFixedChild(childEditPart)) {
+ return;
+ }
+ super.removeChildVisual(childEditPart);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure getContentPaneFor(IGraphicalEditPart editPart) {
+ return getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ protected NodeFigure createNodePlate() {
+ String prefElementId = "CollaborationUse";
+ IPreferenceStore store = UMLDiagramEditorPlugin.getInstance().getPreferenceStore();
+ String preferenceConstantWitdh = PreferenceInitializerForElementHelper.getpreferenceKey(getNotationView(), prefElementId, PreferenceConstantHelper.WIDTH);
+ String preferenceConstantHeight = PreferenceInitializerForElementHelper.getpreferenceKey(getNotationView(), prefElementId, PreferenceConstantHelper.HEIGHT);
+ DefaultSizeNodeFigure result = new DefaultSizeNodeFigure(store.getInt(preferenceConstantWitdh), store.getInt(preferenceConstantHeight));
+
+ return result;
+ }
+
+ /**
+ * Creates figure for this edit part.
+ *
+ * Body of this method does not depend on settings in generation model
+ * so you may safely remove <i>generated</i> tag and modify it.
+ *
+ * @generated
+ */
+ protected NodeFigure createNodeFigure() {
+ NodeFigure figure = createNodePlate();
+ figure.setLayoutManager(new StackLayout());
+ IFigure shape = createNodeShape();
+ figure.add(shape);
+ contentPane = setupContentPane(shape);
+ return figure;
+ }
+
+ /**
+ * Default implementation treats passed figure as content pane.
+ * Respects layout one may have set for generated figure.
+ *
+ * @param nodeShape
+ * instance of generated figure class
+ * @generated
+ */
+ protected IFigure setupContentPane(IFigure nodeShape) {
+ if(nodeShape.getLayoutManager() == null) {
+ ConstrainedToolbarLayout layout = new ConstrainedToolbarLayout();
+ layout.setSpacing(5);
+ nodeShape.setLayoutManager(layout);
+ }
+ return nodeShape; // use nodeShape itself as contentPane
+ }
+
+ /**
+ * @generated
+ */
+ public IFigure getContentPane() {
+ if(contentPane != null) {
+ return contentPane;
+ }
+ return super.getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ protected void setForegroundColor(Color color) {
+ if(primaryShape != null) {
+ primaryShape.setForegroundColor(color);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLineWidth(int width) {
+ if(primaryShape instanceof Shape) {
+ ((Shape)primaryShape).setLineWidth(width);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLineType(int style) {
+ if(primaryShape instanceof Shape) {
+ ((Shape)primaryShape).setLineStyle(style);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public EditPart getPrimaryChildEditPart() {
+ return getChildBySemanticHint(UMLVisualIDRegistry.getType(CollaborationUseNameEditPart.VISUAL_ID));
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnSource() {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(11);
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ types.add(UMLElementTypes.Substitution_4011);
+ types.add(UMLElementTypes.Realization_4006);
+ types.add(UMLElementTypes.Manifestation_4012);
+ types.add(UMLElementTypes.Abstraction_4007);
+ types.add(UMLElementTypes.Usage_4008);
+ types.add(UMLElementTypes.Deployment_4009);
+ types.add(UMLElementTypes.Dependency_4017);
+ types.add(UMLElementTypes.Dependency_4010);
+ types.add(UMLElementTypes.InformationFlow_4021);
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnSourceAndTarget(IGraphicalEditPart targetEditPart) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMATypesForTarget(IElementType relationshipType) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(relationshipType == UMLElementTypes.ComponentRealization_4004) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InterfaceRealization_4005) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Substitution_4011) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Realization_4006) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Manifestation_4012) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Abstraction_4007) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Usage_4008) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Deployment_4009) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4017) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4010) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InformationFlow_4021) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnTarget() {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(15);
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ types.add(UMLElementTypes.Substitution_4011);
+ types.add(UMLElementTypes.Realization_4006);
+ types.add(UMLElementTypes.Manifestation_4012);
+ types.add(UMLElementTypes.Abstraction_4007);
+ types.add(UMLElementTypes.Usage_4008);
+ types.add(UMLElementTypes.Deployment_4009);
+ types.add(UMLElementTypes.Dependency_4017);
+ types.add(UMLElementTypes.Dependency_4010);
+ types.add(UMLElementTypes.TimeObservationEvent_4018);
+ types.add(UMLElementTypes.DurationObservationEvent_4019);
+ types.add(UMLElementTypes.InformationFlow_4021);
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMATypesForSource(IElementType relationshipType) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(relationshipType == UMLElementTypes.CommentAnnotatedElement_4002) {
+ types.add(UMLElementTypes.Comment_2109);
+ types.add(UMLElementTypes.Comment_3097);
+ } else if(relationshipType == UMLElementTypes.ConstraintConstrainedElement_4003) {
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.ComponentRealization_4004) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InterfaceRealization_4005) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Substitution_4011) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Realization_4006) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Manifestation_4012) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Abstraction_4007) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Usage_4008) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Deployment_4009) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4017) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4010) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.TimeObservationEvent_4018) {
+ types.add(UMLElementTypes.TimeObservation_2094);
+ } else if(relationshipType == UMLElementTypes.DurationObservationEvent_4019) {
+ types.add(UMLElementTypes.DurationObservation_2093);
+ } else if(relationshipType == UMLElementTypes.InformationFlow_4021) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public Object getPreferredValue(EStructuralFeature feature) {
+ IPreferenceStore preferenceStore = (IPreferenceStore)getDiagramPreferencesHint().getPreferenceStore();
+ Object result = null;
+
+ if(feature == NotationPackage.eINSTANCE.getLineStyle_LineColor() || feature == NotationPackage.eINSTANCE.getFontStyle_FontColor() || feature == NotationPackage.eINSTANCE.getFillStyle_FillColor()) {
+ String prefColor = null;
+ if(feature == NotationPackage.eINSTANCE.getLineStyle_LineColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("CollaborationUse", PreferenceConstantHelper.COLOR_LINE);
+ } else if(feature == NotationPackage.eINSTANCE.getFontStyle_FontColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("CollaborationUse", PreferenceConstantHelper.COLOR_FONT);
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_FillColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("CollaborationUse", PreferenceConstantHelper.COLOR_FILL);
+ }
+ result = FigureUtilities.RGBToInteger(PreferenceConverter.getColor((IPreferenceStore)preferenceStore, prefColor));
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_Transparency() || feature == NotationPackage.eINSTANCE.getFillStyle_Gradient()) {
+ String prefGradient = PreferenceConstantHelper.getElementConstant("CollaborationUse", PreferenceConstantHelper.COLOR_GRADIENT);
+ GradientPreferenceConverter gradientPreferenceConverter = new GradientPreferenceConverter(preferenceStore.getString(prefGradient));
+ if(feature == NotationPackage.eINSTANCE.getFillStyle_Transparency()) {
+ result = new Integer(gradientPreferenceConverter.getTransparency());
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_Gradient()) {
+ result = gradientPreferenceConverter.getGradientData();
+ }
+ }
+
+ if(result == null) {
+ result = getStructuralFeatureValue(feature);
+ }
+ return result;
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/CollaborationUseNameEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/CollaborationUseNameEditPart.java
new file mode 100644
index 00000000000..20ebce5b1da
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/CollaborationUseNameEditPart.java
@@ -0,0 +1,793 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EAnnotation;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.emf.transaction.RunnableWithResult;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.AccessibleEditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.requests.DirectEditRequest;
+import org.eclipse.gef.tools.DirectEditManager;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.CompartmentEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
+import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
+import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
+import org.eclipse.gmf.runtime.notation.FontStyle;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
+import org.eclipse.jface.viewers.ICellEditorValidator;
+import org.eclipse.jface.window.Window;
+import org.eclipse.papyrus.diagram.common.directedit.MultilineLabelDirectEditManager;
+import org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition;
+import org.eclipse.papyrus.diagram.common.editpolicies.IMaskManagedLabelEditPolicy;
+import org.eclipse.papyrus.diagram.common.figure.node.ILabelFigure;
+import org.eclipse.papyrus.diagram.common.util.DiagramEditPartsUtil;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.CollaborationUseLabelEditPolicy;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLTextSelectionEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.diagram.composite.providers.UMLParserProvider;
+import org.eclipse.papyrus.extensionpoints.editors.Activator;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
+import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
+import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
+import org.eclipse.papyrus.umlutils.ui.VisualInformationPapyrusConstant;
+import org.eclipse.papyrus.umlutils.ui.helper.NameLabelIconHelper;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.AccessibleEvent;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.FontData;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.ui.PlatformUI;
+
+/**
+ * @generated
+ */
+public class CollaborationUseNameEditPart extends CompartmentEditPart implements ITextAwareEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 5127;
+
+ /**
+ * @generated
+ */
+ private DirectEditManager manager;
+
+ /**
+ * @generated
+ */
+ private IParser parser;
+
+ /**
+ * @generated
+ */
+ private List<?> parserElements;
+
+ /**
+ * @generated
+ */
+ private String defaultText;
+
+ /**
+ * direct edition mode (default, undefined, registered editor, etc.)
+ *
+ * @generated
+ */
+ protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
+
+ /**
+ * configuration from a registered edit dialog
+ *
+ * @generated
+ */
+ protected IDirectEditorConfiguration configuration;
+
+ /**
+ * @generated
+ */
+ public CollaborationUseNameEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
+ installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new CompositeStructureDiagramEditPart.NodeLabelDragPolicy());
+ installEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY, new CollaborationUseLabelEditPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelTextHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getText();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getText();
+ } else {
+ return ((Label)figure).getText();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelTextHelper(IFigure figure, String text) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setText(text);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setText(text);
+ } else {
+ ((Label)figure).setText(text);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIconHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getIcon();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getIcon();
+ } else {
+ return ((Label)figure).getIcon();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelIconHelper(IFigure figure, Image icon) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setIcon(icon);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setIcon(icon);
+ } else {
+ ((Label)figure).setIcon(icon);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabel(WrappingLabel figure) {
+ unregisterVisuals();
+ setFigure(figure);
+ defaultText = getLabelTextHelper(figure);
+ registerVisuals();
+ refreshVisuals();
+ }
+
+ /**
+ * @generated
+ */
+ protected List getModelChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject getParserElement() {
+ return resolveSemanticElement();
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIcon() {
+ EObject parserElement = getParserElement();
+ if(parserElement == null) {
+ return null;
+ }
+
+ List<View> views = DiagramEditPartsUtil.findViews(parserElement, getViewer());
+ for(View view : views) {
+ if(NameLabelIconHelper.showLabelIcon(view)) {
+ return UMLElementTypes.getImage(parserElement.eClass());
+ }
+ }
+ return null;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelText() {
+ String text = null;
+ EObject parserElement = getParserElement();
+ if(parserElement != null && getParser() != null) {
+ text = getParser().getPrintString(new EObjectAdapter(parserElement), getParserOptions().intValue());
+ }
+ if(text == null || text.length() == 0) {
+ text = defaultText;
+ }
+ return text;
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabelText(String text) {
+ setLabelTextHelper(getFigure(), text);
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public String getEditText() {
+ if(getParserElement() == null || getParser() == null) {
+ return ""; //$NON-NLS-1$
+ }
+ return getParser().getEditString(new EObjectAdapter(getParserElement()), getParserOptions().intValue());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean isEditable() {
+ return getParser() != null;
+ }
+
+ /**
+ * @generated
+ */
+ public ICellEditorValidator getEditTextValidator() {
+ return new ICellEditorValidator() {
+
+ public String isValid(final Object value) {
+ if(value instanceof String) {
+ final EObject element = getParserElement();
+ final IParser parser = getParser();
+ try {
+ IParserEditStatus valid = (IParserEditStatus)getEditingDomain().runExclusive(new RunnableWithResult.Impl() {
+
+ public void run() {
+ setResult(parser.isValidEditString(new EObjectAdapter(element), (String)value));
+ }
+ });
+ return valid.getCode() == ParserEditStatus.EDITABLE ? null : valid.getMessage();
+ } catch (InterruptedException ie) {
+ ie.printStackTrace();
+ }
+ }
+
+ // shouldn't get here
+ return null;
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ public IContentAssistProcessor getCompletionProcessor() {
+ if(getParserElement() == null || getParser() == null) {
+ return null;
+ }
+ return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
+ }
+
+ /**
+ * @generated
+ */
+ public ParserOptions getParserOptions() {
+ return ParserOptions.NONE;
+ }
+
+ /**
+ * @generated
+ */
+ public IParser getParser() {
+ if(parser == null) {
+ parser = UMLParserProvider.getParser(UMLElementTypes.CollaborationUse_3071, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.diagram.composite.edit.parts.CollaborationUseNameEditPart.VISUAL_ID));
+ }
+ return parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected DirectEditManager getManager() {
+ if(manager == null) {
+ setManager(new MultilineLabelDirectEditManager(this, MultilineLabelDirectEditManager.getTextCellEditorClass(this), UMLEditPartFactory.getTextCellEditorLocator(this)));
+ }
+ return manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setManager(DirectEditManager manager) {
+ this.manager = manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit() {
+ getManager().show();
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit(Point eventLocation) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(eventLocation.getSWTPoint());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void performDirectEdit(char initialCharacter) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(initialCharacter);
+ } else {
+ performDirectEdit();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEditRequest(Request request) {
+
+ final Request theRequest = request;
+
+ if(IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
+ directEditionMode = getDirectEditionType();
+ }
+ switch(directEditionMode) {
+ case IDirectEdition.NO_DIRECT_EDITION:
+ // no direct edition mode => does nothing
+ return;
+ case IDirectEdition.EXTENDED_DIRECT_EDITOR:
+ updateExtendedEditorConfiguration();
+ if(configuration == null || configuration.getLanguage() == null) {
+ performDefaultDirectEditorEdit(theRequest);
+ } else {
+ configuration.preEditAction(resolveSemanticElement());
+ Dialog dialog = null;
+ if(configuration instanceof IPopupEditorConfiguration) {
+ IPopupEditorHelper helper = ((IPopupEditorConfiguration)configuration).createPopupEditorHelper(this);
+ helper.showEditor();
+ return;
+ } else if(configuration instanceof IAdvancedEditorConfiguration) {
+ dialog = ((IAdvancedEditorConfiguration)configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
+ } else if(configuration instanceof IDirectEditorConfiguration) {
+ dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), ((IDirectEditorConfiguration)configuration).getTextToEdit(resolveSemanticElement()), (IDirectEditorConfiguration)configuration);
+ } else {
+ return;
+ }
+ final Dialog finalDialog = dialog;
+
+ if(Window.OK == dialog.open()) {
+ TransactionalEditingDomain domain = getEditingDomain();
+ RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
+
+ @Override
+ protected void doExecute() {
+ configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog)finalDialog).getValue());
+
+ }
+ };
+ domain.getCommandStack().execute(command);
+ }
+ }
+ break;
+ case IDirectEdition.DEFAULT_DIRECT_EDITOR:
+
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ break;
+ default:
+ break;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshLabel();
+ refreshFont();
+ refreshFontColor();
+ refreshUnderline();
+ refreshStrikeThrough();
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshLabel() {
+ EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
+ if(maskLabelPolicy == null) {
+ setLabelTextHelper(getFigure(), getLabelText());
+ setLabelIconHelper(getFigure(), getLabelIcon());
+ }
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshUnderline() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextUnderline(style.isUnderline());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshStrikeThrough() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextStrikeThrough(style.isStrikeThrough());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshFont() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null) {
+ FontData fontData = new FontData(style.getFontName(), style.getFontHeight(), (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
+ setFont(fontData);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setFontColor(Color color) {
+ getFigure().setForegroundColor(color);
+ }
+
+ /**
+ * @generated
+ */
+ protected void addSemanticListeners() {
+ if(getParser() instanceof ISemanticParser) {
+ EObject element = resolveSemanticElement();
+ parserElements = ((ISemanticParser)getParser()).getSemanticElementsBeingParsed(element);
+ for(int i = 0; i < parserElements.size(); i++) {
+ addListenerFilter("SemanticModel" + i, this, (EObject)parserElements.get(i)); //$NON-NLS-1$
+ }
+ } else {
+ super.addSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeSemanticListeners() {
+ if(parserElements != null) {
+ for(int i = 0; i < parserElements.size(); i++) {
+ removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
+ }
+ } else {
+ super.removeSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected AccessibleEditPart getAccessibleEditPart() {
+ if(accessibleEP == null) {
+ accessibleEP = new AccessibleGraphicalEditPart() {
+
+ public void getName(AccessibleEvent e) {
+ e.result = getLabelTextHelper(getFigure());
+ }
+ };
+ }
+ return accessibleEP;
+ }
+
+ /**
+ * @generated
+ */
+ private View getFontStyleOwnerView() {
+ return (View)getModel();
+ }
+
+ /**
+ * Returns the kind of associated editor for direct edition.
+ *
+ * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition
+ * @generated
+ */
+ public int getDirectEditionType() {
+ if(checkExtendedEditor()) {
+ initExtendedEditorConfiguration();
+ return IDirectEdition.EXTENDED_DIRECT_EDITOR;
+ }
+ if(checkDefaultEdition()) {
+ return IDirectEdition.DEFAULT_DIRECT_EDITOR;
+ }
+
+ // not a named element. no specific editor => do nothing
+ return IDirectEdition.NO_DIRECT_EDITION;
+ }
+
+ /**
+ * Checks if an extended editor is present.
+ *
+ * @return <code>true</code> if an extended editor is present.
+ * @generated
+ */
+ protected boolean checkExtendedEditor() {
+ if(resolveSemanticElement() != null) {
+ return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ return false;
+ }
+
+ /**
+ * Checks if a default direct edition is available
+ *
+ * @return <code>true</code> if a default direct edition is available
+ * @generated
+ */
+ protected boolean checkDefaultEdition() {
+ return (getParser() != null);
+ }
+
+ /**
+ * Initializes the extended editor configuration
+ *
+ * @generated
+ */
+ protected void initExtendedEditorConfiguration() {
+ if(configuration == null) {
+ final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("")) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else {
+ configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ }
+ }
+
+ /**
+ * Updates the preference configuration
+ *
+ * @generated
+ */
+ protected void updateExtendedEditorConfiguration() {
+ String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("") && languagePreferred != configuration.getLanguage()) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else if(IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
+ configuration = null;
+ }
+ }
+
+ /**
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
+ protected void performDefaultDirectEditorEdit(final Request theRequest) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void addNotationalListeners() {
+ super.addNotationalListeners();
+ addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeNotationalListeners() {
+ super.removeNotationalListeners();
+ removeListenerFilter("PrimaryView"); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void handleNotificationEvent(Notification event) {
+ refreshLabel();
+ Object feature = event.getFeature();
+ if(NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
+ Integer c = (Integer)event.getNewValue();
+ setFontColor(DiagramColorRegistry.getInstance().getColor(c));
+ } else if(NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
+ refreshUnderline();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
+ refreshStrikeThrough();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
+ refreshFont();
+ } else {
+ if(getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
+ refreshLabel();
+ }
+ if(getParser() instanceof ISemanticParser) {
+ ISemanticParser modelParser = (ISemanticParser)getParser();
+ if(modelParser.areSemanticElementsAffected(null, event)) {
+ removeSemanticListeners();
+ if(resolveSemanticElement() != null) {
+ addSemanticListeners();
+ }
+ refreshLabel();
+ }
+ }
+ }
+
+ if(event.getNewValue() instanceof EAnnotation && VisualInformationPapyrusConstant.DISPLAY_NAMELABELICON.equals(((EAnnotation)event.getNewValue()).getSource())) {
+ refreshLabel();
+ }
+
+ super.handleNotificationEvent(event);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createFigure() {
+ // Parent should assign one using setLabel() method
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ private static final String ADD_PARENT_MODEL = "AddParentModel";
+
+ /**
+ * @generated
+ */
+ public void activate() {
+ super.activate();
+ addOwnerElementListeners();
+ }
+
+ /**
+ * @generated
+ */
+ protected void addOwnerElementListeners() {
+ addListenerFilter(ADD_PARENT_MODEL, this, ((View)getParent().getModel())); //$NON-NLS-1$
+
+ }
+
+ /**
+ * @generated
+ */
+ public void deactivate() {
+ removeOwnerElementListeners();
+ super.deactivate();
+
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeOwnerElementListeners() {
+ removeListenerFilter(ADD_PARENT_MODEL);
+
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/CommentAnnotatedElementEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/CommentAnnotatedElementEditPart.java
new file mode 100644
index 00000000000..bba9872ac30
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/CommentAnnotatedElementEditPart.java
@@ -0,0 +1,88 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import org.eclipse.draw2d.Connection;
+import org.eclipse.draw2d.Graphics;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ConnectionNodeEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITreeBranchEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.PolylineConnectionEx;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.diagram.composite.edit.policies.CommentAnnotatedElementItemSemanticEditPolicy;
+
+/**
+ * @generated
+ */
+public class CommentAnnotatedElementEditPart extends ConnectionNodeEditPart
+
+implements ITreeBranchEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 4002;
+
+ /**
+ * @generated
+ */
+ public CommentAnnotatedElementEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new CommentAnnotatedElementItemSemanticEditPolicy());
+ }
+
+ /**
+ * Creates figure for this edit part.
+ *
+ * Body of this method does not depend on settings in generation model
+ * so you may safely remove <i>generated</i> tag and modify it.
+ *
+ * @generated
+ */
+
+ protected Connection createConnectionFigure() {
+ return new LinkDescriptor();
+ }
+
+ /**
+ * @generated
+ */
+ public LinkDescriptor getPrimaryShape() {
+ return (LinkDescriptor)getFigure();
+ }
+
+ /**
+ * @generated
+ */
+ public class LinkDescriptor extends PolylineConnectionEx {
+
+ /**
+ * @generated
+ */
+ public LinkDescriptor() {
+ this.setLineWidth(1);
+ this.setLineStyle(Graphics.LINE_DASH);
+
+ }
+
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/CommentBodyEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/CommentBodyEditPart.java
new file mode 100644
index 00000000000..f58cb2b7a38
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/CommentBodyEditPart.java
@@ -0,0 +1,772 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.emf.transaction.RunnableWithResult;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.AccessibleEditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.requests.DirectEditRequest;
+import org.eclipse.gef.tools.DirectEditManager;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.CompartmentEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
+import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
+import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
+import org.eclipse.gmf.runtime.notation.FontStyle;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
+import org.eclipse.jface.viewers.ICellEditorValidator;
+import org.eclipse.jface.window.Window;
+import org.eclipse.papyrus.diagram.common.directedit.MultilineLabelDirectEditManager;
+import org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition;
+import org.eclipse.papyrus.diagram.common.editpolicies.IMaskManagedLabelEditPolicy;
+import org.eclipse.papyrus.diagram.common.figure.node.HTMLCornerBentFigure;
+import org.eclipse.papyrus.diagram.common.figure.node.ILabelFigure;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLTextSelectionEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.diagram.composite.providers.UMLParserProvider;
+import org.eclipse.papyrus.extensionpoints.editors.Activator;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
+import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
+import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.AccessibleEvent;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.FontData;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.ui.PlatformUI;
+
+/**
+ * @generated
+ */
+public class CommentBodyEditPart extends CompartmentEditPart implements ITextAwareEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 5192;
+
+ /**
+ * @generated
+ */
+ private DirectEditManager manager;
+
+ /**
+ * @generated
+ */
+ private IParser parser;
+
+ /**
+ * @generated
+ */
+ private List<?> parserElements;
+
+ /**
+ * @generated
+ */
+ private String defaultText;
+
+ /**
+ * direct edition mode (default, undefined, registered editor, etc.)
+ *
+ * @generated
+ */
+ protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
+
+ /**
+ * configuration from a registered edit dialog
+ *
+ * @generated
+ */
+ protected IDirectEditorConfiguration configuration;
+
+ /**
+ * @generated
+ */
+ public CommentBodyEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
+ installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new CompositeStructureDiagramEditPart.NodeLabelDragPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelTextHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getText();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getText();
+ } else {
+ return ((Label)figure).getText();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelTextHelper(IFigure figure, String text) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setText(text);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setText(text);
+ } else {
+ ((Label)figure).setText(text);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIconHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getIcon();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getIcon();
+ } else {
+ return ((Label)figure).getIcon();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelIconHelper(IFigure figure, Image icon) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setIcon(icon);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setIcon(icon);
+ } else {
+ ((Label)figure).setIcon(icon);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabel(HTMLCornerBentFigure figure) {
+ unregisterVisuals();
+ setFigure(figure);
+ defaultText = getLabelTextHelper(figure);
+ registerVisuals();
+ refreshVisuals();
+ }
+
+ /**
+ * @generated
+ */
+ protected List getModelChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject getParserElement() {
+ return resolveSemanticElement();
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIcon() {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelText() {
+ String text = null;
+ EObject parserElement = getParserElement();
+ if(parserElement != null && getParser() != null) {
+ text = getParser().getPrintString(new EObjectAdapter(parserElement), getParserOptions().intValue());
+ }
+ if(text == null || text.length() == 0) {
+ text = defaultText;
+ }
+ return text;
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabelText(String text) {
+ setLabelTextHelper(getFigure(), text);
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public String getEditText() {
+ if(getParserElement() == null || getParser() == null) {
+ return ""; //$NON-NLS-1$
+ }
+ return getParser().getEditString(new EObjectAdapter(getParserElement()), getParserOptions().intValue());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean isEditable() {
+ return getParser() != null;
+ }
+
+ /**
+ * @generated
+ */
+ public ICellEditorValidator getEditTextValidator() {
+ return new ICellEditorValidator() {
+
+ public String isValid(final Object value) {
+ if(value instanceof String) {
+ final EObject element = getParserElement();
+ final IParser parser = getParser();
+ try {
+ IParserEditStatus valid = (IParserEditStatus)getEditingDomain().runExclusive(new RunnableWithResult.Impl() {
+
+ public void run() {
+ setResult(parser.isValidEditString(new EObjectAdapter(element), (String)value));
+ }
+ });
+ return valid.getCode() == ParserEditStatus.EDITABLE ? null : valid.getMessage();
+ } catch (InterruptedException ie) {
+ ie.printStackTrace();
+ }
+ }
+
+ // shouldn't get here
+ return null;
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ public IContentAssistProcessor getCompletionProcessor() {
+ if(getParserElement() == null || getParser() == null) {
+ return null;
+ }
+ return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
+ }
+
+ /**
+ * @generated
+ */
+ public ParserOptions getParserOptions() {
+ return ParserOptions.NONE;
+ }
+
+ /**
+ * @generated
+ */
+ public IParser getParser() {
+ if(parser == null) {
+ parser = UMLParserProvider.getParser(UMLElementTypes.Comment_2109, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.diagram.composite.edit.parts.CommentBodyEditPart.VISUAL_ID));
+ }
+ return parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected DirectEditManager getManager() {
+ if(manager == null) {
+ setManager(new MultilineLabelDirectEditManager(this, MultilineLabelDirectEditManager.getTextCellEditorClass(this), UMLEditPartFactory.getTextCellEditorLocator(this)));
+ }
+ return manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setManager(DirectEditManager manager) {
+ this.manager = manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit() {
+ getManager().show();
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit(Point eventLocation) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(eventLocation.getSWTPoint());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void performDirectEdit(char initialCharacter) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(initialCharacter);
+ } else {
+ performDirectEdit();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEditRequest(Request request) {
+
+ final Request theRequest = request;
+
+ if(IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
+ directEditionMode = getDirectEditionType();
+ }
+ switch(directEditionMode) {
+ case IDirectEdition.NO_DIRECT_EDITION:
+ // no direct edition mode => does nothing
+ return;
+ case IDirectEdition.EXTENDED_DIRECT_EDITOR:
+ updateExtendedEditorConfiguration();
+ if(configuration == null || configuration.getLanguage() == null) {
+ performDefaultDirectEditorEdit(theRequest);
+ } else {
+ configuration.preEditAction(resolveSemanticElement());
+ Dialog dialog = null;
+ if(configuration instanceof IPopupEditorConfiguration) {
+ IPopupEditorHelper helper = ((IPopupEditorConfiguration)configuration).createPopupEditorHelper(this);
+ helper.showEditor();
+ return;
+ } else if(configuration instanceof IAdvancedEditorConfiguration) {
+ dialog = ((IAdvancedEditorConfiguration)configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
+ } else if(configuration instanceof IDirectEditorConfiguration) {
+ dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), ((IDirectEditorConfiguration)configuration).getTextToEdit(resolveSemanticElement()), (IDirectEditorConfiguration)configuration);
+ } else {
+ return;
+ }
+ final Dialog finalDialog = dialog;
+
+ if(Window.OK == dialog.open()) {
+ TransactionalEditingDomain domain = getEditingDomain();
+ RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
+
+ @Override
+ protected void doExecute() {
+ configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog)finalDialog).getValue());
+
+ }
+ };
+ domain.getCommandStack().execute(command);
+ }
+ }
+ break;
+ case IDirectEdition.DEFAULT_DIRECT_EDITOR:
+
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ break;
+ default:
+ break;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshLabel();
+ refreshFont();
+ refreshFontColor();
+ refreshUnderline();
+ refreshStrikeThrough();
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshLabel() {
+ EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
+ if(maskLabelPolicy == null) {
+ setLabelTextHelper(getFigure(), getLabelText());
+ setLabelIconHelper(getFigure(), getLabelIcon());
+ }
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshUnderline() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextUnderline(style.isUnderline());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshStrikeThrough() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextStrikeThrough(style.isStrikeThrough());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshFont() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null) {
+ FontData fontData = new FontData(style.getFontName(), style.getFontHeight(), (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
+ setFont(fontData);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setFontColor(Color color) {
+ getFigure().setForegroundColor(color);
+ }
+
+ /**
+ * @generated
+ */
+ protected void addSemanticListeners() {
+ if(getParser() instanceof ISemanticParser) {
+ EObject element = resolveSemanticElement();
+ parserElements = ((ISemanticParser)getParser()).getSemanticElementsBeingParsed(element);
+ for(int i = 0; i < parserElements.size(); i++) {
+ addListenerFilter("SemanticModel" + i, this, (EObject)parserElements.get(i)); //$NON-NLS-1$
+ }
+ } else {
+ super.addSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeSemanticListeners() {
+ if(parserElements != null) {
+ for(int i = 0; i < parserElements.size(); i++) {
+ removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
+ }
+ } else {
+ super.removeSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected AccessibleEditPart getAccessibleEditPart() {
+ if(accessibleEP == null) {
+ accessibleEP = new AccessibleGraphicalEditPart() {
+
+ public void getName(AccessibleEvent e) {
+ e.result = getLabelTextHelper(getFigure());
+ }
+ };
+ }
+ return accessibleEP;
+ }
+
+ /**
+ * @generated
+ */
+ private View getFontStyleOwnerView() {
+ return (View)getModel();
+ }
+
+ /**
+ * Returns the kind of associated editor for direct edition.
+ *
+ * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition
+ * @generated
+ */
+ public int getDirectEditionType() {
+ if(checkExtendedEditor()) {
+ initExtendedEditorConfiguration();
+ return IDirectEdition.EXTENDED_DIRECT_EDITOR;
+ }
+ if(checkDefaultEdition()) {
+ return IDirectEdition.DEFAULT_DIRECT_EDITOR;
+ }
+
+ // not a named element. no specific editor => do nothing
+ return IDirectEdition.NO_DIRECT_EDITION;
+ }
+
+ /**
+ * Checks if an extended editor is present.
+ *
+ * @return <code>true</code> if an extended editor is present.
+ * @generated
+ */
+ protected boolean checkExtendedEditor() {
+ if(resolveSemanticElement() != null) {
+ return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ return false;
+ }
+
+ /**
+ * Checks if a default direct edition is available
+ *
+ * @return <code>true</code> if a default direct edition is available
+ * @generated
+ */
+ protected boolean checkDefaultEdition() {
+ return (getParser() != null);
+ }
+
+ /**
+ * Initializes the extended editor configuration
+ *
+ * @generated
+ */
+ protected void initExtendedEditorConfiguration() {
+ if(configuration == null) {
+ final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("")) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else {
+ configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ }
+ }
+
+ /**
+ * Updates the preference configuration
+ *
+ * @generated
+ */
+ protected void updateExtendedEditorConfiguration() {
+ String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("") && languagePreferred != configuration.getLanguage()) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else if(IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
+ configuration = null;
+ }
+ }
+
+ /**
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
+ protected void performDefaultDirectEditorEdit(final Request theRequest) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void addNotationalListeners() {
+ super.addNotationalListeners();
+ addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeNotationalListeners() {
+ super.removeNotationalListeners();
+ removeListenerFilter("PrimaryView"); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void handleNotificationEvent(Notification event) {
+ refreshLabel();
+ Object feature = event.getFeature();
+ if(NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
+ Integer c = (Integer)event.getNewValue();
+ setFontColor(DiagramColorRegistry.getInstance().getColor(c));
+ } else if(NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
+ refreshUnderline();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
+ refreshStrikeThrough();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
+ refreshFont();
+ } else {
+ if(getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
+ refreshLabel();
+ }
+ if(getParser() instanceof ISemanticParser) {
+ ISemanticParser modelParser = (ISemanticParser)getParser();
+ if(modelParser.areSemanticElementsAffected(null, event)) {
+ removeSemanticListeners();
+ if(resolveSemanticElement() != null) {
+ addSemanticListeners();
+ }
+ refreshLabel();
+ }
+ }
+ }
+
+ super.handleNotificationEvent(event);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createFigure() {
+ // Parent should assign one using setLabel() method
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ private static final String ADD_PARENT_MODEL = "AddParentModel";
+
+ /**
+ * @generated
+ */
+ public void activate() {
+ super.activate();
+ addOwnerElementListeners();
+ }
+
+ /**
+ * @generated
+ */
+ protected void addOwnerElementListeners() {
+ addListenerFilter(ADD_PARENT_MODEL, this, ((View)getParent().getModel())); //$NON-NLS-1$
+
+ }
+
+ /**
+ * @generated
+ */
+ public void deactivate() {
+ removeOwnerElementListeners();
+ super.deactivate();
+
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeOwnerElementListeners() {
+ removeListenerFilter(ADD_PARENT_MODEL);
+
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/CommentBodyEditPartCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/CommentBodyEditPartCN.java
new file mode 100644
index 00000000000..698b67a063a
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/CommentBodyEditPartCN.java
@@ -0,0 +1,772 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.emf.transaction.RunnableWithResult;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.AccessibleEditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.requests.DirectEditRequest;
+import org.eclipse.gef.tools.DirectEditManager;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.CompartmentEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
+import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
+import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
+import org.eclipse.gmf.runtime.notation.FontStyle;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
+import org.eclipse.jface.viewers.ICellEditorValidator;
+import org.eclipse.jface.window.Window;
+import org.eclipse.papyrus.diagram.common.directedit.MultilineLabelDirectEditManager;
+import org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition;
+import org.eclipse.papyrus.diagram.common.editpolicies.IMaskManagedLabelEditPolicy;
+import org.eclipse.papyrus.diagram.common.figure.node.HTMLCornerBentFigure;
+import org.eclipse.papyrus.diagram.common.figure.node.ILabelFigure;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLTextSelectionEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.diagram.composite.providers.UMLParserProvider;
+import org.eclipse.papyrus.extensionpoints.editors.Activator;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
+import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
+import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.AccessibleEvent;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.FontData;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.ui.PlatformUI;
+
+/**
+ * @generated
+ */
+public class CommentBodyEditPartCN extends CompartmentEditPart implements ITextAwareEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 5150;
+
+ /**
+ * @generated
+ */
+ private DirectEditManager manager;
+
+ /**
+ * @generated
+ */
+ private IParser parser;
+
+ /**
+ * @generated
+ */
+ private List<?> parserElements;
+
+ /**
+ * @generated
+ */
+ private String defaultText;
+
+ /**
+ * direct edition mode (default, undefined, registered editor, etc.)
+ *
+ * @generated
+ */
+ protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
+
+ /**
+ * configuration from a registered edit dialog
+ *
+ * @generated
+ */
+ protected IDirectEditorConfiguration configuration;
+
+ /**
+ * @generated
+ */
+ public CommentBodyEditPartCN(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
+ installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new CompositeStructureDiagramEditPart.NodeLabelDragPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelTextHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getText();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getText();
+ } else {
+ return ((Label)figure).getText();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelTextHelper(IFigure figure, String text) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setText(text);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setText(text);
+ } else {
+ ((Label)figure).setText(text);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIconHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getIcon();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getIcon();
+ } else {
+ return ((Label)figure).getIcon();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelIconHelper(IFigure figure, Image icon) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setIcon(icon);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setIcon(icon);
+ } else {
+ ((Label)figure).setIcon(icon);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabel(HTMLCornerBentFigure figure) {
+ unregisterVisuals();
+ setFigure(figure);
+ defaultText = getLabelTextHelper(figure);
+ registerVisuals();
+ refreshVisuals();
+ }
+
+ /**
+ * @generated
+ */
+ protected List getModelChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject getParserElement() {
+ return resolveSemanticElement();
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIcon() {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelText() {
+ String text = null;
+ EObject parserElement = getParserElement();
+ if(parserElement != null && getParser() != null) {
+ text = getParser().getPrintString(new EObjectAdapter(parserElement), getParserOptions().intValue());
+ }
+ if(text == null || text.length() == 0) {
+ text = defaultText;
+ }
+ return text;
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabelText(String text) {
+ setLabelTextHelper(getFigure(), text);
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public String getEditText() {
+ if(getParserElement() == null || getParser() == null) {
+ return ""; //$NON-NLS-1$
+ }
+ return getParser().getEditString(new EObjectAdapter(getParserElement()), getParserOptions().intValue());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean isEditable() {
+ return getParser() != null;
+ }
+
+ /**
+ * @generated
+ */
+ public ICellEditorValidator getEditTextValidator() {
+ return new ICellEditorValidator() {
+
+ public String isValid(final Object value) {
+ if(value instanceof String) {
+ final EObject element = getParserElement();
+ final IParser parser = getParser();
+ try {
+ IParserEditStatus valid = (IParserEditStatus)getEditingDomain().runExclusive(new RunnableWithResult.Impl() {
+
+ public void run() {
+ setResult(parser.isValidEditString(new EObjectAdapter(element), (String)value));
+ }
+ });
+ return valid.getCode() == ParserEditStatus.EDITABLE ? null : valid.getMessage();
+ } catch (InterruptedException ie) {
+ ie.printStackTrace();
+ }
+ }
+
+ // shouldn't get here
+ return null;
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ public IContentAssistProcessor getCompletionProcessor() {
+ if(getParserElement() == null || getParser() == null) {
+ return null;
+ }
+ return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
+ }
+
+ /**
+ * @generated
+ */
+ public ParserOptions getParserOptions() {
+ return ParserOptions.NONE;
+ }
+
+ /**
+ * @generated
+ */
+ public IParser getParser() {
+ if(parser == null) {
+ parser = UMLParserProvider.getParser(UMLElementTypes.Comment_3097, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.diagram.composite.edit.parts.CommentBodyEditPartCN.VISUAL_ID));
+ }
+ return parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected DirectEditManager getManager() {
+ if(manager == null) {
+ setManager(new MultilineLabelDirectEditManager(this, MultilineLabelDirectEditManager.getTextCellEditorClass(this), UMLEditPartFactory.getTextCellEditorLocator(this)));
+ }
+ return manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setManager(DirectEditManager manager) {
+ this.manager = manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit() {
+ getManager().show();
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit(Point eventLocation) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(eventLocation.getSWTPoint());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void performDirectEdit(char initialCharacter) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(initialCharacter);
+ } else {
+ performDirectEdit();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEditRequest(Request request) {
+
+ final Request theRequest = request;
+
+ if(IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
+ directEditionMode = getDirectEditionType();
+ }
+ switch(directEditionMode) {
+ case IDirectEdition.NO_DIRECT_EDITION:
+ // no direct edition mode => does nothing
+ return;
+ case IDirectEdition.EXTENDED_DIRECT_EDITOR:
+ updateExtendedEditorConfiguration();
+ if(configuration == null || configuration.getLanguage() == null) {
+ performDefaultDirectEditorEdit(theRequest);
+ } else {
+ configuration.preEditAction(resolveSemanticElement());
+ Dialog dialog = null;
+ if(configuration instanceof IPopupEditorConfiguration) {
+ IPopupEditorHelper helper = ((IPopupEditorConfiguration)configuration).createPopupEditorHelper(this);
+ helper.showEditor();
+ return;
+ } else if(configuration instanceof IAdvancedEditorConfiguration) {
+ dialog = ((IAdvancedEditorConfiguration)configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
+ } else if(configuration instanceof IDirectEditorConfiguration) {
+ dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), ((IDirectEditorConfiguration)configuration).getTextToEdit(resolveSemanticElement()), (IDirectEditorConfiguration)configuration);
+ } else {
+ return;
+ }
+ final Dialog finalDialog = dialog;
+
+ if(Window.OK == dialog.open()) {
+ TransactionalEditingDomain domain = getEditingDomain();
+ RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
+
+ @Override
+ protected void doExecute() {
+ configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog)finalDialog).getValue());
+
+ }
+ };
+ domain.getCommandStack().execute(command);
+ }
+ }
+ break;
+ case IDirectEdition.DEFAULT_DIRECT_EDITOR:
+
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ break;
+ default:
+ break;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshLabel();
+ refreshFont();
+ refreshFontColor();
+ refreshUnderline();
+ refreshStrikeThrough();
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshLabel() {
+ EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
+ if(maskLabelPolicy == null) {
+ setLabelTextHelper(getFigure(), getLabelText());
+ setLabelIconHelper(getFigure(), getLabelIcon());
+ }
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshUnderline() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextUnderline(style.isUnderline());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshStrikeThrough() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextStrikeThrough(style.isStrikeThrough());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshFont() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null) {
+ FontData fontData = new FontData(style.getFontName(), style.getFontHeight(), (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
+ setFont(fontData);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setFontColor(Color color) {
+ getFigure().setForegroundColor(color);
+ }
+
+ /**
+ * @generated
+ */
+ protected void addSemanticListeners() {
+ if(getParser() instanceof ISemanticParser) {
+ EObject element = resolveSemanticElement();
+ parserElements = ((ISemanticParser)getParser()).getSemanticElementsBeingParsed(element);
+ for(int i = 0; i < parserElements.size(); i++) {
+ addListenerFilter("SemanticModel" + i, this, (EObject)parserElements.get(i)); //$NON-NLS-1$
+ }
+ } else {
+ super.addSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeSemanticListeners() {
+ if(parserElements != null) {
+ for(int i = 0; i < parserElements.size(); i++) {
+ removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
+ }
+ } else {
+ super.removeSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected AccessibleEditPart getAccessibleEditPart() {
+ if(accessibleEP == null) {
+ accessibleEP = new AccessibleGraphicalEditPart() {
+
+ public void getName(AccessibleEvent e) {
+ e.result = getLabelTextHelper(getFigure());
+ }
+ };
+ }
+ return accessibleEP;
+ }
+
+ /**
+ * @generated
+ */
+ private View getFontStyleOwnerView() {
+ return (View)getModel();
+ }
+
+ /**
+ * Returns the kind of associated editor for direct edition.
+ *
+ * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition
+ * @generated
+ */
+ public int getDirectEditionType() {
+ if(checkExtendedEditor()) {
+ initExtendedEditorConfiguration();
+ return IDirectEdition.EXTENDED_DIRECT_EDITOR;
+ }
+ if(checkDefaultEdition()) {
+ return IDirectEdition.DEFAULT_DIRECT_EDITOR;
+ }
+
+ // not a named element. no specific editor => do nothing
+ return IDirectEdition.NO_DIRECT_EDITION;
+ }
+
+ /**
+ * Checks if an extended editor is present.
+ *
+ * @return <code>true</code> if an extended editor is present.
+ * @generated
+ */
+ protected boolean checkExtendedEditor() {
+ if(resolveSemanticElement() != null) {
+ return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ return false;
+ }
+
+ /**
+ * Checks if a default direct edition is available
+ *
+ * @return <code>true</code> if a default direct edition is available
+ * @generated
+ */
+ protected boolean checkDefaultEdition() {
+ return (getParser() != null);
+ }
+
+ /**
+ * Initializes the extended editor configuration
+ *
+ * @generated
+ */
+ protected void initExtendedEditorConfiguration() {
+ if(configuration == null) {
+ final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("")) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else {
+ configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ }
+ }
+
+ /**
+ * Updates the preference configuration
+ *
+ * @generated
+ */
+ protected void updateExtendedEditorConfiguration() {
+ String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("") && languagePreferred != configuration.getLanguage()) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else if(IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
+ configuration = null;
+ }
+ }
+
+ /**
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
+ protected void performDefaultDirectEditorEdit(final Request theRequest) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void addNotationalListeners() {
+ super.addNotationalListeners();
+ addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeNotationalListeners() {
+ super.removeNotationalListeners();
+ removeListenerFilter("PrimaryView"); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void handleNotificationEvent(Notification event) {
+ refreshLabel();
+ Object feature = event.getFeature();
+ if(NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
+ Integer c = (Integer)event.getNewValue();
+ setFontColor(DiagramColorRegistry.getInstance().getColor(c));
+ } else if(NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
+ refreshUnderline();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
+ refreshStrikeThrough();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
+ refreshFont();
+ } else {
+ if(getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
+ refreshLabel();
+ }
+ if(getParser() instanceof ISemanticParser) {
+ ISemanticParser modelParser = (ISemanticParser)getParser();
+ if(modelParser.areSemanticElementsAffected(null, event)) {
+ removeSemanticListeners();
+ if(resolveSemanticElement() != null) {
+ addSemanticListeners();
+ }
+ refreshLabel();
+ }
+ }
+ }
+
+ super.handleNotificationEvent(event);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createFigure() {
+ // Parent should assign one using setLabel() method
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ private static final String ADD_PARENT_MODEL = "AddParentModel";
+
+ /**
+ * @generated
+ */
+ public void activate() {
+ super.activate();
+ addOwnerElementListeners();
+ }
+
+ /**
+ * @generated
+ */
+ protected void addOwnerElementListeners() {
+ addListenerFilter(ADD_PARENT_MODEL, this, ((View)getParent().getModel())); //$NON-NLS-1$
+
+ }
+
+ /**
+ * @generated
+ */
+ public void deactivate() {
+ removeOwnerElementListeners();
+ super.deactivate();
+
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeOwnerElementListeners() {
+ removeListenerFilter(ADD_PARENT_MODEL);
+
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/CommentEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/CommentEditPart.java
new file mode 100644
index 00000000000..1a8237d2112
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/CommentEditPart.java
@@ -0,0 +1,727 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.ArrayList;
+import java.util.LinkedList;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Shape;
+import org.eclipse.draw2d.StackLayout;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EStructuralFeature;
+import org.eclipse.gef.EditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.editpolicies.LayoutEditPolicy;
+import org.eclipse.gef.editpolicies.NonResizableEditPolicy;
+import org.eclipse.gef.requests.CreateRequest;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.FigureUtilities;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.gef.ui.figures.DefaultSizeNodeFigure;
+import org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.jface.preference.PreferenceConverter;
+import org.eclipse.papyrus.diagram.common.editparts.AbstractCommentEditPart;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.figure.node.HTMLCornerBentFigure;
+import org.eclipse.papyrus.diagram.common.helper.PreferenceInitializerForElementHelper;
+import org.eclipse.papyrus.diagram.composite.edit.policies.CommentItemSemanticEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorPlugin;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter;
+import org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper;
+import org.eclipse.swt.graphics.Color;
+
+/**
+ * @generated
+ */
+public class CommentEditPart extends
+
+AbstractCommentEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 2109;
+
+ /**
+ * @generated
+ */
+ protected IFigure contentPane;
+
+ /**
+ * @generated
+ */
+ protected IFigure primaryShape;
+
+ /**
+ * @generated
+ */
+ public CommentEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new CommentItemSemanticEditPolicy());
+ installEditPolicy(EditPolicy.LAYOUT_ROLE, createLayoutEditPolicy());
+ installEditPolicy(AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeNodeLabelDisplayEditPolicy());
+ // XXX need an SCR to runtime to have another abstract superclass that would let children add reasonable editpolicies
+ // removeEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CONNECTION_HANDLES_ROLE);
+ }
+
+ /**
+ * Papyrus codeGen
+ *
+ * @generated
+ **/
+ protected void handleNotificationEvent(Notification event) {
+ super.handleNotificationEvent(event);
+
+ }
+
+ /**
+ * @generated
+ */
+ protected LayoutEditPolicy createLayoutEditPolicy() {
+ org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy lep = new org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy() {
+
+ protected EditPolicy createChildEditPolicy(EditPart child) {
+ EditPolicy result = child.getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(result == null) {
+ result = new NonResizableEditPolicy();
+ }
+ return result;
+ }
+
+ protected Command getMoveChildrenCommand(Request request) {
+ return null;
+ }
+
+ protected Command getCreateCommand(CreateRequest request) {
+ return null;
+ }
+ };
+ return lep;
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createNodeShape() {
+ return primaryShape = new HTMLCornerBentFigure();
+ }
+
+ /**
+ * @generated
+ */
+ public HTMLCornerBentFigure getPrimaryShape() {
+ return (HTMLCornerBentFigure)primaryShape;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean addFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof CommentBodyEditPart) {
+ ((CommentBodyEditPart)childEditPart).setLabel(getPrimaryShape().getCornerBentFigure());
+ return true;
+ }
+
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean removeFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof CommentBodyEditPart) {
+ return true;
+ }
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected void addChildVisual(EditPart childEditPart, int index) {
+ if(addFixedChild(childEditPart)) {
+ return;
+ }
+ super.addChildVisual(childEditPart, -1);
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeChildVisual(EditPart childEditPart) {
+ if(removeFixedChild(childEditPart)) {
+ return;
+ }
+ super.removeChildVisual(childEditPart);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure getContentPaneFor(IGraphicalEditPart editPart) {
+ return getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ protected NodeFigure createNodePlate() {
+ String prefElementId = "Comment";
+ IPreferenceStore store = UMLDiagramEditorPlugin.getInstance().getPreferenceStore();
+ String preferenceConstantWitdh = PreferenceInitializerForElementHelper.getpreferenceKey(getNotationView(), prefElementId, PreferenceConstantHelper.WIDTH);
+ String preferenceConstantHeight = PreferenceInitializerForElementHelper.getpreferenceKey(getNotationView(), prefElementId, PreferenceConstantHelper.HEIGHT);
+ DefaultSizeNodeFigure result = new DefaultSizeNodeFigure(store.getInt(preferenceConstantWitdh), store.getInt(preferenceConstantHeight));
+
+ return result;
+ }
+
+ /**
+ * Creates figure for this edit part.
+ *
+ * Body of this method does not depend on settings in generation model
+ * so you may safely remove <i>generated</i> tag and modify it.
+ *
+ * @generated
+ */
+ protected NodeFigure createNodeFigure() {
+ NodeFigure figure = createNodePlate();
+ figure.setLayoutManager(new StackLayout());
+ IFigure shape = createNodeShape();
+ figure.add(shape);
+ contentPane = setupContentPane(shape);
+ return figure;
+ }
+
+ /**
+ * Default implementation treats passed figure as content pane.
+ * Respects layout one may have set for generated figure.
+ *
+ * @param nodeShape
+ * instance of generated figure class
+ * @generated
+ */
+ protected IFigure setupContentPane(IFigure nodeShape) {
+ if(nodeShape.getLayoutManager() == null) {
+ ConstrainedToolbarLayout layout = new ConstrainedToolbarLayout();
+ layout.setSpacing(5);
+ nodeShape.setLayoutManager(layout);
+ }
+ return nodeShape; // use nodeShape itself as contentPane
+ }
+
+ /**
+ * @generated
+ */
+ public IFigure getContentPane() {
+ if(contentPane != null) {
+ return contentPane;
+ }
+ return super.getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ protected void setForegroundColor(Color color) {
+ if(primaryShape != null) {
+ primaryShape.setForegroundColor(color);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLineWidth(int width) {
+ if(primaryShape instanceof Shape) {
+ ((Shape)primaryShape).setLineWidth(width);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLineType(int style) {
+ if(primaryShape instanceof Shape) {
+ ((Shape)primaryShape).setLineStyle(style);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public EditPart getPrimaryChildEditPart() {
+ return getChildBySemanticHint(UMLVisualIDRegistry.getType(CommentBodyEditPart.VISUAL_ID));
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnSource() {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(1);
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnSourceAndTarget(IGraphicalEditPart targetEditPart) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.CommentEditPart) {
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ }
+ if(targetEditPart instanceof CommentEditPartCN) {
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMATypesForTarget(IElementType relationshipType) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(relationshipType == UMLElementTypes.CommentAnnotatedElement_4002) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.Comment_2109);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.Comment_3097);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnTarget() {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(2);
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMATypesForSource(IElementType relationshipType) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(relationshipType == UMLElementTypes.CommentAnnotatedElement_4002) {
+ types.add(UMLElementTypes.Comment_2109);
+ types.add(UMLElementTypes.Comment_3097);
+ } else if(relationshipType == UMLElementTypes.ConstraintConstrainedElement_4003) {
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public Object getPreferredValue(EStructuralFeature feature) {
+ IPreferenceStore preferenceStore = (IPreferenceStore)getDiagramPreferencesHint().getPreferenceStore();
+ Object result = null;
+
+ if(feature == NotationPackage.eINSTANCE.getLineStyle_LineColor() || feature == NotationPackage.eINSTANCE.getFontStyle_FontColor() || feature == NotationPackage.eINSTANCE.getFillStyle_FillColor()) {
+ String prefColor = null;
+ if(feature == NotationPackage.eINSTANCE.getLineStyle_LineColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("Comment", PreferenceConstantHelper.COLOR_LINE);
+ } else if(feature == NotationPackage.eINSTANCE.getFontStyle_FontColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("Comment", PreferenceConstantHelper.COLOR_FONT);
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_FillColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("Comment", PreferenceConstantHelper.COLOR_FILL);
+ }
+ result = FigureUtilities.RGBToInteger(PreferenceConverter.getColor((IPreferenceStore)preferenceStore, prefColor));
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_Transparency() || feature == NotationPackage.eINSTANCE.getFillStyle_Gradient()) {
+ String prefGradient = PreferenceConstantHelper.getElementConstant("Comment", PreferenceConstantHelper.COLOR_GRADIENT);
+ GradientPreferenceConverter gradientPreferenceConverter = new GradientPreferenceConverter(preferenceStore.getString(prefGradient));
+ if(feature == NotationPackage.eINSTANCE.getFillStyle_Transparency()) {
+ result = new Integer(gradientPreferenceConverter.getTransparency());
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_Gradient()) {
+ result = gradientPreferenceConverter.getGradientData();
+ }
+ }
+
+ if(result == null) {
+ result = getStructuralFeatureValue(feature);
+ }
+ return result;
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/CommentEditPartCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/CommentEditPartCN.java
new file mode 100644
index 00000000000..a38f91c5fe2
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/CommentEditPartCN.java
@@ -0,0 +1,729 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.ArrayList;
+import java.util.LinkedList;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Shape;
+import org.eclipse.draw2d.StackLayout;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EStructuralFeature;
+import org.eclipse.gef.EditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.editpolicies.LayoutEditPolicy;
+import org.eclipse.gef.editpolicies.NonResizableEditPolicy;
+import org.eclipse.gef.requests.CreateRequest;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.FigureUtilities;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.gef.ui.figures.DefaultSizeNodeFigure;
+import org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.jface.preference.PreferenceConverter;
+import org.eclipse.papyrus.diagram.common.editparts.AbstractCommentEditPart;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.figure.node.HTMLCornerBentFigure;
+import org.eclipse.papyrus.diagram.common.helper.PreferenceInitializerForElementHelper;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.NoScrollClassifierResizableShapeEditPolicy;
+import org.eclipse.papyrus.diagram.composite.edit.policies.CommentItemSemanticEditPolicyCN;
+import org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorPlugin;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter;
+import org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper;
+import org.eclipse.swt.graphics.Color;
+
+/**
+ * @generated
+ */
+public class CommentEditPartCN extends
+
+AbstractCommentEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 3097;
+
+ /**
+ * @generated
+ */
+ protected IFigure contentPane;
+
+ /**
+ * @generated
+ */
+ protected IFigure primaryShape;
+
+ /**
+ * @generated
+ */
+ public CommentEditPartCN(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new CommentItemSemanticEditPolicyCN());
+ installEditPolicy(EditPolicy.LAYOUT_ROLE, createLayoutEditPolicy());
+ installEditPolicy(AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeNodeLabelDisplayEditPolicy());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new NoScrollClassifierResizableShapeEditPolicy());
+ // XXX need an SCR to runtime to have another abstract superclass that would let children add reasonable editpolicies
+ // removeEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CONNECTION_HANDLES_ROLE);
+ }
+
+ /**
+ * Papyrus codeGen
+ *
+ * @generated
+ **/
+ protected void handleNotificationEvent(Notification event) {
+ super.handleNotificationEvent(event);
+
+ }
+
+ /**
+ * @generated
+ */
+ protected LayoutEditPolicy createLayoutEditPolicy() {
+ org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy lep = new org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy() {
+
+ protected EditPolicy createChildEditPolicy(EditPart child) {
+ EditPolicy result = child.getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(result == null) {
+ result = new NonResizableEditPolicy();
+ }
+ return result;
+ }
+
+ protected Command getMoveChildrenCommand(Request request) {
+ return null;
+ }
+
+ protected Command getCreateCommand(CreateRequest request) {
+ return null;
+ }
+ };
+ return lep;
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createNodeShape() {
+ return primaryShape = new HTMLCornerBentFigure();
+ }
+
+ /**
+ * @generated
+ */
+ public HTMLCornerBentFigure getPrimaryShape() {
+ return (HTMLCornerBentFigure)primaryShape;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean addFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof CommentBodyEditPartCN) {
+ ((CommentBodyEditPartCN)childEditPart).setLabel(getPrimaryShape().getCornerBentFigure());
+ return true;
+ }
+
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean removeFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof CommentBodyEditPartCN) {
+ return true;
+ }
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected void addChildVisual(EditPart childEditPart, int index) {
+ if(addFixedChild(childEditPart)) {
+ return;
+ }
+ super.addChildVisual(childEditPart, -1);
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeChildVisual(EditPart childEditPart) {
+ if(removeFixedChild(childEditPart)) {
+ return;
+ }
+ super.removeChildVisual(childEditPart);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure getContentPaneFor(IGraphicalEditPart editPart) {
+ return getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ protected NodeFigure createNodePlate() {
+ String prefElementId = "Comment";
+ IPreferenceStore store = UMLDiagramEditorPlugin.getInstance().getPreferenceStore();
+ String preferenceConstantWitdh = PreferenceInitializerForElementHelper.getpreferenceKey(getNotationView(), prefElementId, PreferenceConstantHelper.WIDTH);
+ String preferenceConstantHeight = PreferenceInitializerForElementHelper.getpreferenceKey(getNotationView(), prefElementId, PreferenceConstantHelper.HEIGHT);
+ DefaultSizeNodeFigure result = new DefaultSizeNodeFigure(store.getInt(preferenceConstantWitdh), store.getInt(preferenceConstantHeight));
+
+ return result;
+ }
+
+ /**
+ * Creates figure for this edit part.
+ *
+ * Body of this method does not depend on settings in generation model
+ * so you may safely remove <i>generated</i> tag and modify it.
+ *
+ * @generated
+ */
+ protected NodeFigure createNodeFigure() {
+ NodeFigure figure = createNodePlate();
+ figure.setLayoutManager(new StackLayout());
+ IFigure shape = createNodeShape();
+ figure.add(shape);
+ contentPane = setupContentPane(shape);
+ return figure;
+ }
+
+ /**
+ * Default implementation treats passed figure as content pane.
+ * Respects layout one may have set for generated figure.
+ *
+ * @param nodeShape
+ * instance of generated figure class
+ * @generated
+ */
+ protected IFigure setupContentPane(IFigure nodeShape) {
+ if(nodeShape.getLayoutManager() == null) {
+ ConstrainedToolbarLayout layout = new ConstrainedToolbarLayout();
+ layout.setSpacing(5);
+ nodeShape.setLayoutManager(layout);
+ }
+ return nodeShape; // use nodeShape itself as contentPane
+ }
+
+ /**
+ * @generated
+ */
+ public IFigure getContentPane() {
+ if(contentPane != null) {
+ return contentPane;
+ }
+ return super.getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ protected void setForegroundColor(Color color) {
+ if(primaryShape != null) {
+ primaryShape.setForegroundColor(color);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLineWidth(int width) {
+ if(primaryShape instanceof Shape) {
+ ((Shape)primaryShape).setLineWidth(width);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLineType(int style) {
+ if(primaryShape instanceof Shape) {
+ ((Shape)primaryShape).setLineStyle(style);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public EditPart getPrimaryChildEditPart() {
+ return getChildBySemanticHint(UMLVisualIDRegistry.getType(CommentBodyEditPartCN.VISUAL_ID));
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnSource() {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(1);
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnSourceAndTarget(IGraphicalEditPart targetEditPart) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ }
+ if(targetEditPart instanceof CommentEditPart) {
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.CommentEditPartCN) {
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMATypesForTarget(IElementType relationshipType) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(relationshipType == UMLElementTypes.CommentAnnotatedElement_4002) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.Comment_2109);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.Comment_3097);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnTarget() {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(2);
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMATypesForSource(IElementType relationshipType) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(relationshipType == UMLElementTypes.CommentAnnotatedElement_4002) {
+ types.add(UMLElementTypes.Comment_2109);
+ types.add(UMLElementTypes.Comment_3097);
+ } else if(relationshipType == UMLElementTypes.ConstraintConstrainedElement_4003) {
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public Object getPreferredValue(EStructuralFeature feature) {
+ IPreferenceStore preferenceStore = (IPreferenceStore)getDiagramPreferencesHint().getPreferenceStore();
+ Object result = null;
+
+ if(feature == NotationPackage.eINSTANCE.getLineStyle_LineColor() || feature == NotationPackage.eINSTANCE.getFontStyle_FontColor() || feature == NotationPackage.eINSTANCE.getFillStyle_FillColor()) {
+ String prefColor = null;
+ if(feature == NotationPackage.eINSTANCE.getLineStyle_LineColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("Comment", PreferenceConstantHelper.COLOR_LINE);
+ } else if(feature == NotationPackage.eINSTANCE.getFontStyle_FontColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("Comment", PreferenceConstantHelper.COLOR_FONT);
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_FillColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("Comment", PreferenceConstantHelper.COLOR_FILL);
+ }
+ result = FigureUtilities.RGBToInteger(PreferenceConverter.getColor((IPreferenceStore)preferenceStore, prefColor));
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_Transparency() || feature == NotationPackage.eINSTANCE.getFillStyle_Gradient()) {
+ String prefGradient = PreferenceConstantHelper.getElementConstant("Comment", PreferenceConstantHelper.COLOR_GRADIENT);
+ GradientPreferenceConverter gradientPreferenceConverter = new GradientPreferenceConverter(preferenceStore.getString(prefGradient));
+ if(feature == NotationPackage.eINSTANCE.getFillStyle_Transparency()) {
+ result = new Integer(gradientPreferenceConverter.getTransparency());
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_Gradient()) {
+ result = gradientPreferenceConverter.getGradientData();
+ }
+ }
+
+ if(result == null) {
+ result = getStructuralFeatureValue(feature);
+ }
+ return result;
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ComponentCompositeCompartmentEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ComponentCompositeCompartmentEditPart.java
new file mode 100644
index 00000000000..db95c0b5068
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ComponentCompositeCompartmentEditPart.java
@@ -0,0 +1,123 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import org.eclipse.draw2d.geometry.Dimension;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.draw2d.geometry.Rectangle;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.GraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ShapeCompartmentEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.CreationEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.DragDropEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.ResizableCompartmentEditPolicy;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.diagram.common.editparts.NoScrollBarShapeCompartmentEditPart;
+import org.eclipse.papyrus.diagram.common.editpolicies.CustomContainerEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.DuplicatePasteEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.CustomDiagramDragDropEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.PortInCompartmentCreationEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.RemoveOrphanViewPolicy;
+import org.eclipse.papyrus.diagram.composite.edit.policies.ComponentCompositeCompartmentItemSemanticEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.Messages;
+
+/**
+ * @generated
+ */
+public class ComponentCompositeCompartmentEditPart
+
+extends NoScrollBarShapeCompartmentEditPart
+
+{
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 7069;
+
+ /**
+ * @generated
+ */
+ public ComponentCompositeCompartmentEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ public String getCompartmentName() {
+ return Messages.ComponentCompositeCompartmentEditPart_title;
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new ResizableCompartmentEditPolicy());
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new ComponentCompositeCompartmentItemSemanticEditPolicy());
+ installEditPolicy(EditPolicyRoles.CREATION_ROLE, new CreationEditPolicy());
+ installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new DragDropEditPolicy());
+ installEditPolicy(DuplicatePasteEditPolicy.PASTE_ROLE, new DuplicatePasteEditPolicy());
+ installEditPolicy("REMOVE_ORPHAN_VIEW", new RemoveOrphanViewPolicy()); //$NON-NLS-1$
+ installEditPolicy(EditPolicy.GRAPHICAL_NODE_ROLE, new CustomContainerEditPolicy());
+ installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new CustomDiagramDragDropEditPolicy());
+ installEditPolicy(EditPolicyRoles.CREATION_ROLE, new PortInCompartmentCreationEditPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ protected void setRatio(Double ratio) {
+ if(getFigure().getParent().getLayoutManager() instanceof ConstrainedToolbarLayout) {
+ super.setRatio(ratio);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void handleNotificationEvent(Notification notification) {
+ Object feature = notification.getFeature();
+ if(NotationPackage.eINSTANCE.getSize_Width().equals(feature) || NotationPackage.eINSTANCE.getSize_Height().equals(feature) || NotationPackage.eINSTANCE.getLocation_X().equals(feature) || NotationPackage.eINSTANCE.getLocation_Y().equals(feature)) {
+ refreshBounds();
+ }
+ super.handleNotificationEvent(notification);
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshBounds() {
+ int width = ((Integer)getStructuralFeatureValue(NotationPackage.eINSTANCE.getSize_Width())).intValue();
+ int height = ((Integer)getStructuralFeatureValue(NotationPackage.eINSTANCE.getSize_Height())).intValue();
+ Dimension size = new Dimension(width, height);
+ int x = ((Integer)getStructuralFeatureValue(NotationPackage.eINSTANCE.getLocation_X())).intValue();
+ int y = ((Integer)getStructuralFeatureValue(NotationPackage.eINSTANCE.getLocation_Y())).intValue();
+ Point loc = new Point(x, y);
+ ((GraphicalEditPart)getParent()).setLayoutConstraint(this, getFigure(), new Rectangle(loc, size));
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshBounds();
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ComponentCompositeCompartmentEditPartCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ComponentCompositeCompartmentEditPartCN.java
new file mode 100644
index 00000000000..ea9bd36b2ec
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ComponentCompositeCompartmentEditPartCN.java
@@ -0,0 +1,123 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import org.eclipse.draw2d.geometry.Dimension;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.draw2d.geometry.Rectangle;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.GraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ShapeCompartmentEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.CreationEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.DragDropEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.ResizableCompartmentEditPolicy;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.diagram.common.editparts.NoScrollBarShapeCompartmentEditPart;
+import org.eclipse.papyrus.diagram.common.editpolicies.CustomContainerEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.DuplicatePasteEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.CustomDiagramDragDropEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.PortInCompartmentCreationEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.RemoveOrphanViewPolicy;
+import org.eclipse.papyrus.diagram.composite.edit.policies.ComponentCompositeCompartmentItemSemanticEditPolicyCN;
+import org.eclipse.papyrus.diagram.composite.part.Messages;
+
+/**
+ * @generated
+ */
+public class ComponentCompositeCompartmentEditPartCN
+
+extends NoScrollBarShapeCompartmentEditPart
+
+{
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 7056;
+
+ /**
+ * @generated
+ */
+ public ComponentCompositeCompartmentEditPartCN(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ public String getCompartmentName() {
+ return Messages.ComponentCompositeCompartmentEditPartCN_title;
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new ResizableCompartmentEditPolicy());
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new ComponentCompositeCompartmentItemSemanticEditPolicyCN());
+ installEditPolicy(EditPolicyRoles.CREATION_ROLE, new CreationEditPolicy());
+ installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new DragDropEditPolicy());
+ installEditPolicy(DuplicatePasteEditPolicy.PASTE_ROLE, new DuplicatePasteEditPolicy());
+ installEditPolicy("REMOVE_ORPHAN_VIEW", new RemoveOrphanViewPolicy()); //$NON-NLS-1$
+ installEditPolicy(EditPolicy.GRAPHICAL_NODE_ROLE, new CustomContainerEditPolicy());
+ installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new CustomDiagramDragDropEditPolicy());
+ installEditPolicy(EditPolicyRoles.CREATION_ROLE, new PortInCompartmentCreationEditPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ protected void setRatio(Double ratio) {
+ if(getFigure().getParent().getLayoutManager() instanceof ConstrainedToolbarLayout) {
+ super.setRatio(ratio);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void handleNotificationEvent(Notification notification) {
+ Object feature = notification.getFeature();
+ if(NotationPackage.eINSTANCE.getSize_Width().equals(feature) || NotationPackage.eINSTANCE.getSize_Height().equals(feature) || NotationPackage.eINSTANCE.getLocation_X().equals(feature) || NotationPackage.eINSTANCE.getLocation_Y().equals(feature)) {
+ refreshBounds();
+ }
+ super.handleNotificationEvent(notification);
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshBounds() {
+ int width = ((Integer)getStructuralFeatureValue(NotationPackage.eINSTANCE.getSize_Width())).intValue();
+ int height = ((Integer)getStructuralFeatureValue(NotationPackage.eINSTANCE.getSize_Height())).intValue();
+ Dimension size = new Dimension(width, height);
+ int x = ((Integer)getStructuralFeatureValue(NotationPackage.eINSTANCE.getLocation_X())).intValue();
+ int y = ((Integer)getStructuralFeatureValue(NotationPackage.eINSTANCE.getLocation_Y())).intValue();
+ Point loc = new Point(x, y);
+ ((GraphicalEditPart)getParent()).setLayoutConstraint(this, getFigure(), new Rectangle(loc, size));
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshBounds();
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ComponentCompositeEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ComponentCompositeEditPart.java
new file mode 100644
index 00000000000..65c792b988e
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ComponentCompositeEditPart.java
@@ -0,0 +1,5396 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.ArrayList;
+import java.util.LinkedList;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.PositionConstants;
+import org.eclipse.draw2d.Shape;
+import org.eclipse.draw2d.StackLayout;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EStructuralFeature;
+import org.eclipse.gef.EditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.editpolicies.LayoutEditPolicy;
+import org.eclipse.gef.editpolicies.NonResizableEditPolicy;
+import org.eclipse.gef.requests.CreateRequest;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IBorderItemEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.CreationEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.DragDropEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.diagram.ui.figures.IBorderItemLocator;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.FigureUtilities;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.gef.ui.figures.DefaultSizeNodeFigure;
+import org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.jface.preference.PreferenceConverter;
+import org.eclipse.papyrus.diagram.common.editparts.NamedElementEditPart;
+import org.eclipse.papyrus.diagram.common.editpolicies.AffixedNodeAlignmentEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.BorderItemResizableEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.HyperLinkPopupBarEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.QualifiedNameDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.ShowHideClassifierContentsEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.ShowHideCompartmentEditPolicy;
+import org.eclipse.papyrus.diagram.common.helper.PreferenceInitializerForElementHelper;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.CustomDiagramDragDropEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.EncapsulatedClassifierResizableShapeEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.GraphicalNodeEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.RemoveOrphanViewPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.StructuredClassifierLayoutEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.figures.ComponentCompositeFigure;
+import org.eclipse.papyrus.diagram.composite.custom.locators.PortPositionLocator;
+import org.eclipse.papyrus.diagram.composite.edit.policies.ComponentCompositeItemSemanticEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorPlugin;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter;
+import org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper;
+import org.eclipse.swt.graphics.Color;
+
+/**
+ * @generated
+ */
+public class ComponentCompositeEditPart extends
+
+NamedElementEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 2069;
+
+ /**
+ * @generated
+ */
+ protected IFigure contentPane;
+
+ /**
+ * @generated
+ */
+ protected IFigure primaryShape;
+
+ /**
+ * @generated
+ */
+ public ComponentCompositeEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ installEditPolicy(EditPolicyRoles.CREATION_ROLE, new CreationEditPolicy());
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new ComponentCompositeItemSemanticEditPolicy());
+ installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new DragDropEditPolicy());
+ installEditPolicy(EditPolicy.LAYOUT_ROLE, createLayoutEditPolicy());
+ installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new CustomDiagramDragDropEditPolicy());
+ installEditPolicy(QualifiedNameDisplayEditPolicy.QUALIFIED_NAME_POLICY, new QualifiedNameDisplayEditPolicy());
+ installEditPolicy(AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeNodeLabelDisplayEditPolicy());
+ installEditPolicy(EditPolicyRoles.POPUPBAR_ROLE, new HyperLinkPopupBarEditPolicy());
+ installEditPolicy(EditPolicy.GRAPHICAL_NODE_ROLE, new GraphicalNodeEditPolicy());
+ installEditPolicy(EditPolicy.LAYOUT_ROLE, new StructuredClassifierLayoutEditPolicy());
+ installEditPolicy(ShowHideClassifierContentsEditPolicy.SHOW_HIDE_CLASSIFIER_CONTENTS_POLICY, new ShowHideClassifierContentsEditPolicy());
+ installEditPolicy(ShowHideCompartmentEditPolicy.SHOW_HIDE_COMPARTMENT_POLICY, new ShowHideCompartmentEditPolicy());
+ installEditPolicy(AffixedNodeAlignmentEditPolicy.AFFIXED_CHILD_ALIGNMENT_ROLE, new AffixedNodeAlignmentEditPolicy());
+ installEditPolicy("REMOVE_ORPHAN_VIEW", new RemoveOrphanViewPolicy()); //$NON-NLS-1$
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new EncapsulatedClassifierResizableShapeEditPolicy());
+ // XXX need an SCR to runtime to have another abstract superclass that would let children add reasonable editpolicies
+ // removeEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CONNECTION_HANDLES_ROLE);
+ }
+
+ /**
+ * Papyrus codeGen
+ *
+ * @generated
+ **/
+ protected void handleNotificationEvent(Notification event) {
+ super.handleNotificationEvent(event);
+
+ }
+
+ /**
+ * @generated
+ */
+ protected LayoutEditPolicy createLayoutEditPolicy() {
+ org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy lep = new org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy() {
+
+ protected EditPolicy createChildEditPolicy(EditPart child) {
+ View childView = (View)child.getModel();
+ switch(UMLVisualIDRegistry.getVisualID(childView)) {
+ case PortEditPart.VISUAL_ID:
+
+ return new BorderItemResizableEditPolicy();
+
+ }
+ EditPolicy result = child.getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(result == null) {
+ result = new NonResizableEditPolicy();
+ }
+ return result;
+ }
+
+ protected Command getMoveChildrenCommand(Request request) {
+ return null;
+ }
+
+ protected Command getCreateCommand(CreateRequest request) {
+ return null;
+ }
+ };
+ return lep;
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createNodeShape() {
+ return primaryShape = new ComponentCompositeFigure();
+ }
+
+ /**
+ * @generated
+ */
+ public ComponentCompositeFigure getPrimaryShape() {
+ return (ComponentCompositeFigure)primaryShape;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean addFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof ComponentCompositeNameEditPart) {
+ ((ComponentCompositeNameEditPart)childEditPart).setLabel(getPrimaryShape().getNameLabel());
+ return true;
+ }
+
+ if(childEditPart instanceof ComponentCompositeCompartmentEditPart) {
+ IFigure pane = getPrimaryShape().getCompositeCompartmentFigure();
+ setupContentPane(pane); // FIXME each comparment should handle his content pane in his own way
+ pane.add(((ComponentCompositeCompartmentEditPart)childEditPart).getFigure());
+ return true;
+ }
+
+ //Papyrus Gencode :Affixed Port locator
+ if(childEditPart instanceof PortEditPart) {
+ IBorderItemLocator locator = new PortPositionLocator(getMainFigure(), PositionConstants.NONE);
+ getBorderedFigure().getBorderItemContainer().add(((PortEditPart)childEditPart).getFigure(), locator);
+ return true;
+ }
+
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean removeFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof ComponentCompositeNameEditPart) {
+ return true;
+ }
+ if(childEditPart instanceof ComponentCompositeCompartmentEditPart) {
+ IFigure pane = getPrimaryShape().getCompositeCompartmentFigure();
+ setupContentPane(pane); // FIXME each comparment should handle his content pane in his own way
+ pane.remove(((ComponentCompositeCompartmentEditPart)childEditPart).getFigure());
+ return true;
+ }
+ if(childEditPart instanceof PortEditPart) {
+ getBorderedFigure().getBorderItemContainer().remove(((PortEditPart)childEditPart).getFigure());
+ return true;
+ }
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected void addChildVisual(EditPart childEditPart, int index) {
+ if(addFixedChild(childEditPart)) {
+ return;
+ }
+ super.addChildVisual(childEditPart, -1);
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeChildVisual(EditPart childEditPart) {
+ if(removeFixedChild(childEditPart)) {
+ return;
+ }
+ super.removeChildVisual(childEditPart);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure getContentPaneFor(IGraphicalEditPart editPart) {
+ if(editPart instanceof ComponentCompositeCompartmentEditPart) {
+ return getPrimaryShape().getCompositeCompartmentFigure();
+ }
+ if(editPart instanceof IBorderItemEditPart) {
+ return getBorderedFigure().getBorderItemContainer();
+ }
+ return getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ protected NodeFigure createNodePlate() {
+ String prefElementId = "Component";
+ IPreferenceStore store = UMLDiagramEditorPlugin.getInstance().getPreferenceStore();
+ String preferenceConstantWitdh = PreferenceInitializerForElementHelper.getpreferenceKey(getNotationView(), prefElementId, PreferenceConstantHelper.WIDTH);
+ String preferenceConstantHeight = PreferenceInitializerForElementHelper.getpreferenceKey(getNotationView(), prefElementId, PreferenceConstantHelper.HEIGHT);
+ DefaultSizeNodeFigure result = new DefaultSizeNodeFigure(store.getInt(preferenceConstantWitdh), store.getInt(preferenceConstantHeight));
+
+ return result;
+ }
+
+ /**
+ * Creates figure for this edit part.
+ *
+ * Body of this method does not depend on settings in generation model
+ * so you may safely remove <i>generated</i> tag and modify it.
+ *
+ * @generated
+ */
+ protected NodeFigure createMainFigure() {
+ NodeFigure figure = createNodePlate();
+ figure.setLayoutManager(new StackLayout());
+ IFigure shape = createNodeShape();
+ figure.add(shape);
+ contentPane = setupContentPane(shape);
+ return figure;
+ }
+
+ /**
+ * Default implementation treats passed figure as content pane.
+ * Respects layout one may have set for generated figure.
+ *
+ * @param nodeShape
+ * instance of generated figure class
+ * @generated
+ */
+ protected IFigure setupContentPane(IFigure nodeShape) {
+ if(nodeShape.getLayoutManager() == null) {
+ ConstrainedToolbarLayout layout = new ConstrainedToolbarLayout();
+ layout.setSpacing(5);
+ nodeShape.setLayoutManager(layout);
+ }
+ return nodeShape; // use nodeShape itself as contentPane
+ }
+
+ /**
+ * @generated
+ */
+ public IFigure getContentPane() {
+ if(contentPane != null) {
+ return contentPane;
+ }
+ return super.getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ protected void setForegroundColor(Color color) {
+ if(primaryShape != null) {
+ primaryShape.setForegroundColor(color);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLineWidth(int width) {
+ if(primaryShape instanceof Shape) {
+ ((Shape)primaryShape).setLineWidth(width);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLineType(int style) {
+ if(primaryShape instanceof Shape) {
+ ((Shape)primaryShape).setLineStyle(style);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public EditPart getPrimaryChildEditPart() {
+ return getChildBySemanticHint(UMLVisualIDRegistry.getType(ComponentCompositeNameEditPart.VISUAL_ID));
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnSource() {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(12);
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ types.add(UMLElementTypes.Substitution_4011);
+ types.add(UMLElementTypes.Realization_4006);
+ types.add(UMLElementTypes.Manifestation_4012);
+ types.add(UMLElementTypes.Abstraction_4007);
+ types.add(UMLElementTypes.Usage_4008);
+ types.add(UMLElementTypes.Deployment_4009);
+ types.add(UMLElementTypes.Dependency_4017);
+ types.add(UMLElementTypes.Dependency_4010);
+ types.add(UMLElementTypes.Generalization_4015);
+ types.add(UMLElementTypes.InformationFlow_4021);
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnSourceAndTarget(IGraphicalEditPart targetEditPart) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMATypesForTarget(IElementType relationshipType) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(relationshipType == UMLElementTypes.ComponentRealization_4004) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InterfaceRealization_4005) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Substitution_4011) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Realization_4006) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Manifestation_4012) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Abstraction_4007) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Usage_4008) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Deployment_4009) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4017) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4010) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Generalization_4015) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ } else if(relationshipType == UMLElementTypes.InformationFlow_4021) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnTarget() {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(17);
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ types.add(UMLElementTypes.Substitution_4011);
+ types.add(UMLElementTypes.Realization_4006);
+ types.add(UMLElementTypes.Manifestation_4012);
+ types.add(UMLElementTypes.Abstraction_4007);
+ types.add(UMLElementTypes.Usage_4008);
+ types.add(UMLElementTypes.Deployment_4009);
+ types.add(UMLElementTypes.Dependency_4017);
+ types.add(UMLElementTypes.Dependency_4010);
+ types.add(UMLElementTypes.Generalization_4015);
+ types.add(UMLElementTypes.TimeObservationEvent_4018);
+ types.add(UMLElementTypes.DurationObservationEvent_4019);
+ types.add(UMLElementTypes.InformationItemRepresented_4020);
+ types.add(UMLElementTypes.InformationFlow_4021);
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMATypesForSource(IElementType relationshipType) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(relationshipType == UMLElementTypes.CommentAnnotatedElement_4002) {
+ types.add(UMLElementTypes.Comment_2109);
+ types.add(UMLElementTypes.Comment_3097);
+ } else if(relationshipType == UMLElementTypes.ConstraintConstrainedElement_4003) {
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.ComponentRealization_4004) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InterfaceRealization_4005) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Substitution_4011) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Realization_4006) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Manifestation_4012) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Abstraction_4007) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Usage_4008) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Deployment_4009) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4017) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4010) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Generalization_4015) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ } else if(relationshipType == UMLElementTypes.TimeObservationEvent_4018) {
+ types.add(UMLElementTypes.TimeObservation_2094);
+ } else if(relationshipType == UMLElementTypes.DurationObservationEvent_4019) {
+ types.add(UMLElementTypes.DurationObservation_2093);
+ } else if(relationshipType == UMLElementTypes.InformationItemRepresented_4020) {
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.InformationItem_3094);
+ } else if(relationshipType == UMLElementTypes.InformationFlow_4021) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public Object getPreferredValue(EStructuralFeature feature) {
+ IPreferenceStore preferenceStore = (IPreferenceStore)getDiagramPreferencesHint().getPreferenceStore();
+ Object result = null;
+
+ if(feature == NotationPackage.eINSTANCE.getLineStyle_LineColor() || feature == NotationPackage.eINSTANCE.getFontStyle_FontColor() || feature == NotationPackage.eINSTANCE.getFillStyle_FillColor()) {
+ String prefColor = null;
+ if(feature == NotationPackage.eINSTANCE.getLineStyle_LineColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("Component", PreferenceConstantHelper.COLOR_LINE);
+ } else if(feature == NotationPackage.eINSTANCE.getFontStyle_FontColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("Component", PreferenceConstantHelper.COLOR_FONT);
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_FillColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("Component", PreferenceConstantHelper.COLOR_FILL);
+ }
+ result = FigureUtilities.RGBToInteger(PreferenceConverter.getColor((IPreferenceStore)preferenceStore, prefColor));
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_Transparency() || feature == NotationPackage.eINSTANCE.getFillStyle_Gradient()) {
+ String prefGradient = PreferenceConstantHelper.getElementConstant("Component", PreferenceConstantHelper.COLOR_GRADIENT);
+ GradientPreferenceConverter gradientPreferenceConverter = new GradientPreferenceConverter(preferenceStore.getString(prefGradient));
+ if(feature == NotationPackage.eINSTANCE.getFillStyle_Transparency()) {
+ result = new Integer(gradientPreferenceConverter.getTransparency());
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_Gradient()) {
+ result = gradientPreferenceConverter.getGradientData();
+ }
+ }
+
+ if(result == null) {
+ result = getStructuralFeatureValue(feature);
+ }
+ return result;
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ComponentCompositeEditPartCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ComponentCompositeEditPartCN.java
new file mode 100644
index 00000000000..6f11613e267
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ComponentCompositeEditPartCN.java
@@ -0,0 +1,5398 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.ArrayList;
+import java.util.LinkedList;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.PositionConstants;
+import org.eclipse.draw2d.Shape;
+import org.eclipse.draw2d.StackLayout;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EStructuralFeature;
+import org.eclipse.gef.EditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.editpolicies.LayoutEditPolicy;
+import org.eclipse.gef.editpolicies.NonResizableEditPolicy;
+import org.eclipse.gef.requests.CreateRequest;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IBorderItemEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.CreationEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.DragDropEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.diagram.ui.figures.IBorderItemLocator;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.FigureUtilities;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.gef.ui.figures.DefaultSizeNodeFigure;
+import org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.jface.preference.PreferenceConverter;
+import org.eclipse.papyrus.diagram.common.editparts.NamedElementEditPart;
+import org.eclipse.papyrus.diagram.common.editpolicies.AffixedNodeAlignmentEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.BorderItemResizableEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.HyperLinkPopupBarEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.QualifiedNameDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.ShowHideClassifierContentsEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.ShowHideCompartmentEditPolicy;
+import org.eclipse.papyrus.diagram.common.helper.PreferenceInitializerForElementHelper;
+import org.eclipse.papyrus.diagram.composite.custom.edit.parts.ConstrainedNamedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.CustomDiagramDragDropEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.EncapsulatedClassifierResizableShapeEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.GraphicalNodeEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.NoScrollBehaviorResizableShapeEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.RemoveOrphanViewPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.StructuredClassifierLayoutEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.figures.ComponentCompositeFigure;
+import org.eclipse.papyrus.diagram.composite.custom.locators.PortPositionLocator;
+import org.eclipse.papyrus.diagram.composite.edit.policies.ComponentCompositeItemSemanticEditPolicyCN;
+import org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorPlugin;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter;
+import org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper;
+import org.eclipse.swt.graphics.Color;
+
+/**
+ * @generated
+ */
+public class ComponentCompositeEditPartCN extends
+
+ConstrainedNamedElementEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 3081;
+
+ /**
+ * @generated
+ */
+ protected IFigure contentPane;
+
+ /**
+ * @generated
+ */
+ protected IFigure primaryShape;
+
+ /**
+ * @generated
+ */
+ public ComponentCompositeEditPartCN(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ installEditPolicy(EditPolicyRoles.CREATION_ROLE, new CreationEditPolicy());
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new ComponentCompositeItemSemanticEditPolicyCN());
+ installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new DragDropEditPolicy());
+ installEditPolicy(EditPolicy.LAYOUT_ROLE, createLayoutEditPolicy());
+ installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new CustomDiagramDragDropEditPolicy());
+ installEditPolicy(QualifiedNameDisplayEditPolicy.QUALIFIED_NAME_POLICY, new QualifiedNameDisplayEditPolicy());
+ installEditPolicy(AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeNodeLabelDisplayEditPolicy());
+ installEditPolicy(EditPolicyRoles.POPUPBAR_ROLE, new HyperLinkPopupBarEditPolicy());
+ installEditPolicy(EditPolicy.GRAPHICAL_NODE_ROLE, new GraphicalNodeEditPolicy());
+ installEditPolicy(EditPolicy.LAYOUT_ROLE, new StructuredClassifierLayoutEditPolicy());
+ installEditPolicy(ShowHideClassifierContentsEditPolicy.SHOW_HIDE_CLASSIFIER_CONTENTS_POLICY, new ShowHideClassifierContentsEditPolicy());
+ installEditPolicy(ShowHideCompartmentEditPolicy.SHOW_HIDE_COMPARTMENT_POLICY, new ShowHideCompartmentEditPolicy());
+ installEditPolicy(AffixedNodeAlignmentEditPolicy.AFFIXED_CHILD_ALIGNMENT_ROLE, new AffixedNodeAlignmentEditPolicy());
+ installEditPolicy("REMOVE_ORPHAN_VIEW", new RemoveOrphanViewPolicy()); //$NON-NLS-1$
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new NoScrollBehaviorResizableShapeEditPolicy());
+ // XXX need an SCR to runtime to have another abstract superclass that would let children add reasonable editpolicies
+ // removeEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CONNECTION_HANDLES_ROLE);
+ }
+
+ /**
+ * Papyrus codeGen
+ *
+ * @generated
+ **/
+ protected void handleNotificationEvent(Notification event) {
+ super.handleNotificationEvent(event);
+
+ }
+
+ /**
+ * @generated
+ */
+ protected LayoutEditPolicy createLayoutEditPolicy() {
+ org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy lep = new org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy() {
+
+ protected EditPolicy createChildEditPolicy(EditPart child) {
+ View childView = (View)child.getModel();
+ switch(UMLVisualIDRegistry.getVisualID(childView)) {
+ case PortEditPart.VISUAL_ID:
+
+ return new BorderItemResizableEditPolicy();
+
+ }
+ EditPolicy result = child.getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(result == null) {
+ result = new NonResizableEditPolicy();
+ }
+ return result;
+ }
+
+ protected Command getMoveChildrenCommand(Request request) {
+ return null;
+ }
+
+ protected Command getCreateCommand(CreateRequest request) {
+ return null;
+ }
+ };
+ return lep;
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createNodeShape() {
+ return primaryShape = new ComponentCompositeFigure();
+ }
+
+ /**
+ * @generated
+ */
+ public ComponentCompositeFigure getPrimaryShape() {
+ return (ComponentCompositeFigure)primaryShape;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean addFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof ComponentCompositeNameEditPartCN) {
+ ((ComponentCompositeNameEditPartCN)childEditPart).setLabel(getPrimaryShape().getNameLabel());
+ return true;
+ }
+
+ if(childEditPart instanceof ComponentCompositeCompartmentEditPartCN) {
+ IFigure pane = getPrimaryShape().getCompositeCompartmentFigure();
+ setupContentPane(pane); // FIXME each comparment should handle his content pane in his own way
+ pane.add(((ComponentCompositeCompartmentEditPartCN)childEditPart).getFigure());
+ return true;
+ }
+
+ //Papyrus Gencode :Affixed Port locator
+ if(childEditPart instanceof PortEditPart) {
+ IBorderItemLocator locator = new PortPositionLocator(getMainFigure(), PositionConstants.NONE);
+ getBorderedFigure().getBorderItemContainer().add(((PortEditPart)childEditPart).getFigure(), locator);
+ return true;
+ }
+
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean removeFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof ComponentCompositeNameEditPartCN) {
+ return true;
+ }
+ if(childEditPart instanceof ComponentCompositeCompartmentEditPartCN) {
+ IFigure pane = getPrimaryShape().getCompositeCompartmentFigure();
+ setupContentPane(pane); // FIXME each comparment should handle his content pane in his own way
+ pane.remove(((ComponentCompositeCompartmentEditPartCN)childEditPart).getFigure());
+ return true;
+ }
+ if(childEditPart instanceof PortEditPart) {
+ getBorderedFigure().getBorderItemContainer().remove(((PortEditPart)childEditPart).getFigure());
+ return true;
+ }
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected void addChildVisual(EditPart childEditPart, int index) {
+ if(addFixedChild(childEditPart)) {
+ return;
+ }
+ super.addChildVisual(childEditPart, -1);
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeChildVisual(EditPart childEditPart) {
+ if(removeFixedChild(childEditPart)) {
+ return;
+ }
+ super.removeChildVisual(childEditPart);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure getContentPaneFor(IGraphicalEditPart editPart) {
+ if(editPart instanceof ComponentCompositeCompartmentEditPartCN) {
+ return getPrimaryShape().getCompositeCompartmentFigure();
+ }
+ if(editPart instanceof IBorderItemEditPart) {
+ return getBorderedFigure().getBorderItemContainer();
+ }
+ return getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ protected NodeFigure createNodePlate() {
+ String prefElementId = "Component";
+ IPreferenceStore store = UMLDiagramEditorPlugin.getInstance().getPreferenceStore();
+ String preferenceConstantWitdh = PreferenceInitializerForElementHelper.getpreferenceKey(getNotationView(), prefElementId, PreferenceConstantHelper.WIDTH);
+ String preferenceConstantHeight = PreferenceInitializerForElementHelper.getpreferenceKey(getNotationView(), prefElementId, PreferenceConstantHelper.HEIGHT);
+ DefaultSizeNodeFigure result = new DefaultSizeNodeFigure(store.getInt(preferenceConstantWitdh), store.getInt(preferenceConstantHeight));
+
+ return result;
+ }
+
+ /**
+ * Creates figure for this edit part.
+ *
+ * Body of this method does not depend on settings in generation model
+ * so you may safely remove <i>generated</i> tag and modify it.
+ *
+ * @generated
+ */
+ protected NodeFigure createMainFigure() {
+ NodeFigure figure = createNodePlate();
+ figure.setLayoutManager(new StackLayout());
+ IFigure shape = createNodeShape();
+ figure.add(shape);
+ contentPane = setupContentPane(shape);
+ return figure;
+ }
+
+ /**
+ * Default implementation treats passed figure as content pane.
+ * Respects layout one may have set for generated figure.
+ *
+ * @param nodeShape
+ * instance of generated figure class
+ * @generated
+ */
+ protected IFigure setupContentPane(IFigure nodeShape) {
+ if(nodeShape.getLayoutManager() == null) {
+ ConstrainedToolbarLayout layout = new ConstrainedToolbarLayout();
+ layout.setSpacing(5);
+ nodeShape.setLayoutManager(layout);
+ }
+ return nodeShape; // use nodeShape itself as contentPane
+ }
+
+ /**
+ * @generated
+ */
+ public IFigure getContentPane() {
+ if(contentPane != null) {
+ return contentPane;
+ }
+ return super.getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ protected void setForegroundColor(Color color) {
+ if(primaryShape != null) {
+ primaryShape.setForegroundColor(color);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLineWidth(int width) {
+ if(primaryShape instanceof Shape) {
+ ((Shape)primaryShape).setLineWidth(width);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLineType(int style) {
+ if(primaryShape instanceof Shape) {
+ ((Shape)primaryShape).setLineStyle(style);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public EditPart getPrimaryChildEditPart() {
+ return getChildBySemanticHint(UMLVisualIDRegistry.getType(ComponentCompositeNameEditPartCN.VISUAL_ID));
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnSource() {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(12);
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ types.add(UMLElementTypes.Substitution_4011);
+ types.add(UMLElementTypes.Realization_4006);
+ types.add(UMLElementTypes.Manifestation_4012);
+ types.add(UMLElementTypes.Abstraction_4007);
+ types.add(UMLElementTypes.Usage_4008);
+ types.add(UMLElementTypes.Deployment_4009);
+ types.add(UMLElementTypes.Dependency_4017);
+ types.add(UMLElementTypes.Dependency_4010);
+ types.add(UMLElementTypes.Generalization_4015);
+ types.add(UMLElementTypes.InformationFlow_4021);
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnSourceAndTarget(IGraphicalEditPart targetEditPart) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMATypesForTarget(IElementType relationshipType) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(relationshipType == UMLElementTypes.ComponentRealization_4004) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InterfaceRealization_4005) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Substitution_4011) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Realization_4006) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Manifestation_4012) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Abstraction_4007) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Usage_4008) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Deployment_4009) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4017) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4010) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Generalization_4015) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ } else if(relationshipType == UMLElementTypes.InformationFlow_4021) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnTarget() {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(17);
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ types.add(UMLElementTypes.Substitution_4011);
+ types.add(UMLElementTypes.Realization_4006);
+ types.add(UMLElementTypes.Manifestation_4012);
+ types.add(UMLElementTypes.Abstraction_4007);
+ types.add(UMLElementTypes.Usage_4008);
+ types.add(UMLElementTypes.Deployment_4009);
+ types.add(UMLElementTypes.Dependency_4017);
+ types.add(UMLElementTypes.Dependency_4010);
+ types.add(UMLElementTypes.Generalization_4015);
+ types.add(UMLElementTypes.TimeObservationEvent_4018);
+ types.add(UMLElementTypes.DurationObservationEvent_4019);
+ types.add(UMLElementTypes.InformationItemRepresented_4020);
+ types.add(UMLElementTypes.InformationFlow_4021);
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMATypesForSource(IElementType relationshipType) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(relationshipType == UMLElementTypes.CommentAnnotatedElement_4002) {
+ types.add(UMLElementTypes.Comment_2109);
+ types.add(UMLElementTypes.Comment_3097);
+ } else if(relationshipType == UMLElementTypes.ConstraintConstrainedElement_4003) {
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.ComponentRealization_4004) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InterfaceRealization_4005) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Substitution_4011) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Realization_4006) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Manifestation_4012) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Abstraction_4007) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Usage_4008) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Deployment_4009) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4017) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4010) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Generalization_4015) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ } else if(relationshipType == UMLElementTypes.TimeObservationEvent_4018) {
+ types.add(UMLElementTypes.TimeObservation_2094);
+ } else if(relationshipType == UMLElementTypes.DurationObservationEvent_4019) {
+ types.add(UMLElementTypes.DurationObservation_2093);
+ } else if(relationshipType == UMLElementTypes.InformationItemRepresented_4020) {
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.InformationItem_3094);
+ } else if(relationshipType == UMLElementTypes.InformationFlow_4021) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public Object getPreferredValue(EStructuralFeature feature) {
+ IPreferenceStore preferenceStore = (IPreferenceStore)getDiagramPreferencesHint().getPreferenceStore();
+ Object result = null;
+
+ if(feature == NotationPackage.eINSTANCE.getLineStyle_LineColor() || feature == NotationPackage.eINSTANCE.getFontStyle_FontColor() || feature == NotationPackage.eINSTANCE.getFillStyle_FillColor()) {
+ String prefColor = null;
+ if(feature == NotationPackage.eINSTANCE.getLineStyle_LineColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("Component", PreferenceConstantHelper.COLOR_LINE);
+ } else if(feature == NotationPackage.eINSTANCE.getFontStyle_FontColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("Component", PreferenceConstantHelper.COLOR_FONT);
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_FillColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("Component", PreferenceConstantHelper.COLOR_FILL);
+ }
+ result = FigureUtilities.RGBToInteger(PreferenceConverter.getColor((IPreferenceStore)preferenceStore, prefColor));
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_Transparency() || feature == NotationPackage.eINSTANCE.getFillStyle_Gradient()) {
+ String prefGradient = PreferenceConstantHelper.getElementConstant("Component", PreferenceConstantHelper.COLOR_GRADIENT);
+ GradientPreferenceConverter gradientPreferenceConverter = new GradientPreferenceConverter(preferenceStore.getString(prefGradient));
+ if(feature == NotationPackage.eINSTANCE.getFillStyle_Transparency()) {
+ result = new Integer(gradientPreferenceConverter.getTransparency());
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_Gradient()) {
+ result = gradientPreferenceConverter.getGradientData();
+ }
+ }
+
+ if(result == null) {
+ result = getStructuralFeatureValue(feature);
+ }
+ return result;
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ComponentCompositeNameEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ComponentCompositeNameEditPart.java
new file mode 100644
index 00000000000..3688e031f6f
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ComponentCompositeNameEditPart.java
@@ -0,0 +1,791 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EAnnotation;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.emf.transaction.RunnableWithResult;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.AccessibleEditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.requests.DirectEditRequest;
+import org.eclipse.gef.tools.DirectEditManager;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.CompartmentEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
+import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
+import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
+import org.eclipse.gmf.runtime.notation.FontStyle;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
+import org.eclipse.jface.viewers.ICellEditorValidator;
+import org.eclipse.jface.window.Window;
+import org.eclipse.papyrus.diagram.common.directedit.MultilineLabelDirectEditManager;
+import org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition;
+import org.eclipse.papyrus.diagram.common.editpolicies.IMaskManagedLabelEditPolicy;
+import org.eclipse.papyrus.diagram.common.figure.node.ILabelFigure;
+import org.eclipse.papyrus.diagram.common.util.DiagramEditPartsUtil;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLTextSelectionEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.diagram.composite.providers.UMLParserProvider;
+import org.eclipse.papyrus.extensionpoints.editors.Activator;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
+import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
+import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
+import org.eclipse.papyrus.umlutils.ui.VisualInformationPapyrusConstant;
+import org.eclipse.papyrus.umlutils.ui.helper.NameLabelIconHelper;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.AccessibleEvent;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.FontData;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.ui.PlatformUI;
+
+/**
+ * @generated
+ */
+public class ComponentCompositeNameEditPart extends CompartmentEditPart implements ITextAwareEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 5121;
+
+ /**
+ * @generated
+ */
+ private DirectEditManager manager;
+
+ /**
+ * @generated
+ */
+ private IParser parser;
+
+ /**
+ * @generated
+ */
+ private List<?> parserElements;
+
+ /**
+ * @generated
+ */
+ private String defaultText;
+
+ /**
+ * direct edition mode (default, undefined, registered editor, etc.)
+ *
+ * @generated
+ */
+ protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
+
+ /**
+ * configuration from a registered edit dialog
+ *
+ * @generated
+ */
+ protected IDirectEditorConfiguration configuration;
+
+ /**
+ * @generated
+ */
+ public ComponentCompositeNameEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
+ installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new CompositeStructureDiagramEditPart.NodeLabelDragPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelTextHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getText();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getText();
+ } else {
+ return ((Label)figure).getText();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelTextHelper(IFigure figure, String text) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setText(text);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setText(text);
+ } else {
+ ((Label)figure).setText(text);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIconHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getIcon();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getIcon();
+ } else {
+ return ((Label)figure).getIcon();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelIconHelper(IFigure figure, Image icon) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setIcon(icon);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setIcon(icon);
+ } else {
+ ((Label)figure).setIcon(icon);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabel(WrappingLabel figure) {
+ unregisterVisuals();
+ setFigure(figure);
+ defaultText = getLabelTextHelper(figure);
+ registerVisuals();
+ refreshVisuals();
+ }
+
+ /**
+ * @generated
+ */
+ protected List getModelChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject getParserElement() {
+ return resolveSemanticElement();
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIcon() {
+ EObject parserElement = getParserElement();
+ if(parserElement == null) {
+ return null;
+ }
+
+ List<View> views = DiagramEditPartsUtil.findViews(parserElement, getViewer());
+ for(View view : views) {
+ if(NameLabelIconHelper.showLabelIcon(view)) {
+ return UMLElementTypes.getImage(parserElement.eClass());
+ }
+ }
+ return null;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelText() {
+ String text = null;
+ EObject parserElement = getParserElement();
+ if(parserElement != null && getParser() != null) {
+ text = getParser().getPrintString(new EObjectAdapter(parserElement), getParserOptions().intValue());
+ }
+ if(text == null || text.length() == 0) {
+ text = defaultText;
+ }
+ return text;
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabelText(String text) {
+ setLabelTextHelper(getFigure(), text);
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public String getEditText() {
+ if(getParserElement() == null || getParser() == null) {
+ return ""; //$NON-NLS-1$
+ }
+ return getParser().getEditString(new EObjectAdapter(getParserElement()), getParserOptions().intValue());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean isEditable() {
+ return getParser() != null;
+ }
+
+ /**
+ * @generated
+ */
+ public ICellEditorValidator getEditTextValidator() {
+ return new ICellEditorValidator() {
+
+ public String isValid(final Object value) {
+ if(value instanceof String) {
+ final EObject element = getParserElement();
+ final IParser parser = getParser();
+ try {
+ IParserEditStatus valid = (IParserEditStatus)getEditingDomain().runExclusive(new RunnableWithResult.Impl() {
+
+ public void run() {
+ setResult(parser.isValidEditString(new EObjectAdapter(element), (String)value));
+ }
+ });
+ return valid.getCode() == ParserEditStatus.EDITABLE ? null : valid.getMessage();
+ } catch (InterruptedException ie) {
+ ie.printStackTrace();
+ }
+ }
+
+ // shouldn't get here
+ return null;
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ public IContentAssistProcessor getCompletionProcessor() {
+ if(getParserElement() == null || getParser() == null) {
+ return null;
+ }
+ return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
+ }
+
+ /**
+ * @generated
+ */
+ public ParserOptions getParserOptions() {
+ return ParserOptions.NONE;
+ }
+
+ /**
+ * @generated
+ */
+ public IParser getParser() {
+ if(parser == null) {
+ parser = UMLParserProvider.getParser(UMLElementTypes.Component_2069, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.diagram.composite.edit.parts.ComponentCompositeNameEditPart.VISUAL_ID));
+ }
+ return parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected DirectEditManager getManager() {
+ if(manager == null) {
+ setManager(new MultilineLabelDirectEditManager(this, MultilineLabelDirectEditManager.getTextCellEditorClass(this), UMLEditPartFactory.getTextCellEditorLocator(this)));
+ }
+ return manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setManager(DirectEditManager manager) {
+ this.manager = manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit() {
+ getManager().show();
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit(Point eventLocation) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(eventLocation.getSWTPoint());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void performDirectEdit(char initialCharacter) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(initialCharacter);
+ } else {
+ performDirectEdit();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEditRequest(Request request) {
+
+ final Request theRequest = request;
+
+ if(IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
+ directEditionMode = getDirectEditionType();
+ }
+ switch(directEditionMode) {
+ case IDirectEdition.NO_DIRECT_EDITION:
+ // no direct edition mode => does nothing
+ return;
+ case IDirectEdition.EXTENDED_DIRECT_EDITOR:
+ updateExtendedEditorConfiguration();
+ if(configuration == null || configuration.getLanguage() == null) {
+ performDefaultDirectEditorEdit(theRequest);
+ } else {
+ configuration.preEditAction(resolveSemanticElement());
+ Dialog dialog = null;
+ if(configuration instanceof IPopupEditorConfiguration) {
+ IPopupEditorHelper helper = ((IPopupEditorConfiguration)configuration).createPopupEditorHelper(this);
+ helper.showEditor();
+ return;
+ } else if(configuration instanceof IAdvancedEditorConfiguration) {
+ dialog = ((IAdvancedEditorConfiguration)configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
+ } else if(configuration instanceof IDirectEditorConfiguration) {
+ dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), ((IDirectEditorConfiguration)configuration).getTextToEdit(resolveSemanticElement()), (IDirectEditorConfiguration)configuration);
+ } else {
+ return;
+ }
+ final Dialog finalDialog = dialog;
+
+ if(Window.OK == dialog.open()) {
+ TransactionalEditingDomain domain = getEditingDomain();
+ RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
+
+ @Override
+ protected void doExecute() {
+ configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog)finalDialog).getValue());
+
+ }
+ };
+ domain.getCommandStack().execute(command);
+ }
+ }
+ break;
+ case IDirectEdition.DEFAULT_DIRECT_EDITOR:
+
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ break;
+ default:
+ break;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshLabel();
+ refreshFont();
+ refreshFontColor();
+ refreshUnderline();
+ refreshStrikeThrough();
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshLabel() {
+ EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
+ if(maskLabelPolicy == null) {
+ setLabelTextHelper(getFigure(), getLabelText());
+ setLabelIconHelper(getFigure(), getLabelIcon());
+ }
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshUnderline() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextUnderline(style.isUnderline());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshStrikeThrough() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextStrikeThrough(style.isStrikeThrough());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshFont() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null) {
+ FontData fontData = new FontData(style.getFontName(), style.getFontHeight(), (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
+ setFont(fontData);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setFontColor(Color color) {
+ getFigure().setForegroundColor(color);
+ }
+
+ /**
+ * @generated
+ */
+ protected void addSemanticListeners() {
+ if(getParser() instanceof ISemanticParser) {
+ EObject element = resolveSemanticElement();
+ parserElements = ((ISemanticParser)getParser()).getSemanticElementsBeingParsed(element);
+ for(int i = 0; i < parserElements.size(); i++) {
+ addListenerFilter("SemanticModel" + i, this, (EObject)parserElements.get(i)); //$NON-NLS-1$
+ }
+ } else {
+ super.addSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeSemanticListeners() {
+ if(parserElements != null) {
+ for(int i = 0; i < parserElements.size(); i++) {
+ removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
+ }
+ } else {
+ super.removeSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected AccessibleEditPart getAccessibleEditPart() {
+ if(accessibleEP == null) {
+ accessibleEP = new AccessibleGraphicalEditPart() {
+
+ public void getName(AccessibleEvent e) {
+ e.result = getLabelTextHelper(getFigure());
+ }
+ };
+ }
+ return accessibleEP;
+ }
+
+ /**
+ * @generated
+ */
+ private View getFontStyleOwnerView() {
+ return (View)getModel();
+ }
+
+ /**
+ * Returns the kind of associated editor for direct edition.
+ *
+ * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition
+ * @generated
+ */
+ public int getDirectEditionType() {
+ if(checkExtendedEditor()) {
+ initExtendedEditorConfiguration();
+ return IDirectEdition.EXTENDED_DIRECT_EDITOR;
+ }
+ if(checkDefaultEdition()) {
+ return IDirectEdition.DEFAULT_DIRECT_EDITOR;
+ }
+
+ // not a named element. no specific editor => do nothing
+ return IDirectEdition.NO_DIRECT_EDITION;
+ }
+
+ /**
+ * Checks if an extended editor is present.
+ *
+ * @return <code>true</code> if an extended editor is present.
+ * @generated
+ */
+ protected boolean checkExtendedEditor() {
+ if(resolveSemanticElement() != null) {
+ return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ return false;
+ }
+
+ /**
+ * Checks if a default direct edition is available
+ *
+ * @return <code>true</code> if a default direct edition is available
+ * @generated
+ */
+ protected boolean checkDefaultEdition() {
+ return (getParser() != null);
+ }
+
+ /**
+ * Initializes the extended editor configuration
+ *
+ * @generated
+ */
+ protected void initExtendedEditorConfiguration() {
+ if(configuration == null) {
+ final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("")) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else {
+ configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ }
+ }
+
+ /**
+ * Updates the preference configuration
+ *
+ * @generated
+ */
+ protected void updateExtendedEditorConfiguration() {
+ String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("") && languagePreferred != configuration.getLanguage()) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else if(IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
+ configuration = null;
+ }
+ }
+
+ /**
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
+ protected void performDefaultDirectEditorEdit(final Request theRequest) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void addNotationalListeners() {
+ super.addNotationalListeners();
+ addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeNotationalListeners() {
+ super.removeNotationalListeners();
+ removeListenerFilter("PrimaryView"); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void handleNotificationEvent(Notification event) {
+ refreshLabel();
+ Object feature = event.getFeature();
+ if(NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
+ Integer c = (Integer)event.getNewValue();
+ setFontColor(DiagramColorRegistry.getInstance().getColor(c));
+ } else if(NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
+ refreshUnderline();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
+ refreshStrikeThrough();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
+ refreshFont();
+ } else {
+ if(getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
+ refreshLabel();
+ }
+ if(getParser() instanceof ISemanticParser) {
+ ISemanticParser modelParser = (ISemanticParser)getParser();
+ if(modelParser.areSemanticElementsAffected(null, event)) {
+ removeSemanticListeners();
+ if(resolveSemanticElement() != null) {
+ addSemanticListeners();
+ }
+ refreshLabel();
+ }
+ }
+ }
+
+ if(event.getNewValue() instanceof EAnnotation && VisualInformationPapyrusConstant.DISPLAY_NAMELABELICON.equals(((EAnnotation)event.getNewValue()).getSource())) {
+ refreshLabel();
+ }
+
+ super.handleNotificationEvent(event);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createFigure() {
+ // Parent should assign one using setLabel() method
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ private static final String ADD_PARENT_MODEL = "AddParentModel";
+
+ /**
+ * @generated
+ */
+ public void activate() {
+ super.activate();
+ addOwnerElementListeners();
+ }
+
+ /**
+ * @generated
+ */
+ protected void addOwnerElementListeners() {
+ addListenerFilter(ADD_PARENT_MODEL, this, ((View)getParent().getModel())); //$NON-NLS-1$
+
+ }
+
+ /**
+ * @generated
+ */
+ public void deactivate() {
+ removeOwnerElementListeners();
+ super.deactivate();
+
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeOwnerElementListeners() {
+ removeListenerFilter(ADD_PARENT_MODEL);
+
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ComponentCompositeNameEditPartCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ComponentCompositeNameEditPartCN.java
new file mode 100644
index 00000000000..6254d0d7258
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ComponentCompositeNameEditPartCN.java
@@ -0,0 +1,791 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EAnnotation;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.emf.transaction.RunnableWithResult;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.AccessibleEditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.requests.DirectEditRequest;
+import org.eclipse.gef.tools.DirectEditManager;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.CompartmentEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
+import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
+import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
+import org.eclipse.gmf.runtime.notation.FontStyle;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
+import org.eclipse.jface.viewers.ICellEditorValidator;
+import org.eclipse.jface.window.Window;
+import org.eclipse.papyrus.diagram.common.directedit.MultilineLabelDirectEditManager;
+import org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition;
+import org.eclipse.papyrus.diagram.common.editpolicies.IMaskManagedLabelEditPolicy;
+import org.eclipse.papyrus.diagram.common.figure.node.ILabelFigure;
+import org.eclipse.papyrus.diagram.common.util.DiagramEditPartsUtil;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLTextSelectionEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.diagram.composite.providers.UMLParserProvider;
+import org.eclipse.papyrus.extensionpoints.editors.Activator;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
+import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
+import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
+import org.eclipse.papyrus.umlutils.ui.VisualInformationPapyrusConstant;
+import org.eclipse.papyrus.umlutils.ui.helper.NameLabelIconHelper;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.AccessibleEvent;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.FontData;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.ui.PlatformUI;
+
+/**
+ * @generated
+ */
+public class ComponentCompositeNameEditPartCN extends CompartmentEditPart implements ITextAwareEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 5137;
+
+ /**
+ * @generated
+ */
+ private DirectEditManager manager;
+
+ /**
+ * @generated
+ */
+ private IParser parser;
+
+ /**
+ * @generated
+ */
+ private List<?> parserElements;
+
+ /**
+ * @generated
+ */
+ private String defaultText;
+
+ /**
+ * direct edition mode (default, undefined, registered editor, etc.)
+ *
+ * @generated
+ */
+ protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
+
+ /**
+ * configuration from a registered edit dialog
+ *
+ * @generated
+ */
+ protected IDirectEditorConfiguration configuration;
+
+ /**
+ * @generated
+ */
+ public ComponentCompositeNameEditPartCN(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
+ installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new CompositeStructureDiagramEditPart.NodeLabelDragPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelTextHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getText();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getText();
+ } else {
+ return ((Label)figure).getText();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelTextHelper(IFigure figure, String text) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setText(text);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setText(text);
+ } else {
+ ((Label)figure).setText(text);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIconHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getIcon();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getIcon();
+ } else {
+ return ((Label)figure).getIcon();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelIconHelper(IFigure figure, Image icon) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setIcon(icon);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setIcon(icon);
+ } else {
+ ((Label)figure).setIcon(icon);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabel(WrappingLabel figure) {
+ unregisterVisuals();
+ setFigure(figure);
+ defaultText = getLabelTextHelper(figure);
+ registerVisuals();
+ refreshVisuals();
+ }
+
+ /**
+ * @generated
+ */
+ protected List getModelChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject getParserElement() {
+ return resolveSemanticElement();
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIcon() {
+ EObject parserElement = getParserElement();
+ if(parserElement == null) {
+ return null;
+ }
+
+ List<View> views = DiagramEditPartsUtil.findViews(parserElement, getViewer());
+ for(View view : views) {
+ if(NameLabelIconHelper.showLabelIcon(view)) {
+ return UMLElementTypes.getImage(parserElement.eClass());
+ }
+ }
+ return null;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelText() {
+ String text = null;
+ EObject parserElement = getParserElement();
+ if(parserElement != null && getParser() != null) {
+ text = getParser().getPrintString(new EObjectAdapter(parserElement), getParserOptions().intValue());
+ }
+ if(text == null || text.length() == 0) {
+ text = defaultText;
+ }
+ return text;
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabelText(String text) {
+ setLabelTextHelper(getFigure(), text);
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public String getEditText() {
+ if(getParserElement() == null || getParser() == null) {
+ return ""; //$NON-NLS-1$
+ }
+ return getParser().getEditString(new EObjectAdapter(getParserElement()), getParserOptions().intValue());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean isEditable() {
+ return getParser() != null;
+ }
+
+ /**
+ * @generated
+ */
+ public ICellEditorValidator getEditTextValidator() {
+ return new ICellEditorValidator() {
+
+ public String isValid(final Object value) {
+ if(value instanceof String) {
+ final EObject element = getParserElement();
+ final IParser parser = getParser();
+ try {
+ IParserEditStatus valid = (IParserEditStatus)getEditingDomain().runExclusive(new RunnableWithResult.Impl() {
+
+ public void run() {
+ setResult(parser.isValidEditString(new EObjectAdapter(element), (String)value));
+ }
+ });
+ return valid.getCode() == ParserEditStatus.EDITABLE ? null : valid.getMessage();
+ } catch (InterruptedException ie) {
+ ie.printStackTrace();
+ }
+ }
+
+ // shouldn't get here
+ return null;
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ public IContentAssistProcessor getCompletionProcessor() {
+ if(getParserElement() == null || getParser() == null) {
+ return null;
+ }
+ return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
+ }
+
+ /**
+ * @generated
+ */
+ public ParserOptions getParserOptions() {
+ return ParserOptions.NONE;
+ }
+
+ /**
+ * @generated
+ */
+ public IParser getParser() {
+ if(parser == null) {
+ parser = UMLParserProvider.getParser(UMLElementTypes.Component_3081, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.diagram.composite.edit.parts.ComponentCompositeNameEditPartCN.VISUAL_ID));
+ }
+ return parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected DirectEditManager getManager() {
+ if(manager == null) {
+ setManager(new MultilineLabelDirectEditManager(this, MultilineLabelDirectEditManager.getTextCellEditorClass(this), UMLEditPartFactory.getTextCellEditorLocator(this)));
+ }
+ return manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setManager(DirectEditManager manager) {
+ this.manager = manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit() {
+ getManager().show();
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit(Point eventLocation) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(eventLocation.getSWTPoint());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void performDirectEdit(char initialCharacter) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(initialCharacter);
+ } else {
+ performDirectEdit();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEditRequest(Request request) {
+
+ final Request theRequest = request;
+
+ if(IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
+ directEditionMode = getDirectEditionType();
+ }
+ switch(directEditionMode) {
+ case IDirectEdition.NO_DIRECT_EDITION:
+ // no direct edition mode => does nothing
+ return;
+ case IDirectEdition.EXTENDED_DIRECT_EDITOR:
+ updateExtendedEditorConfiguration();
+ if(configuration == null || configuration.getLanguage() == null) {
+ performDefaultDirectEditorEdit(theRequest);
+ } else {
+ configuration.preEditAction(resolveSemanticElement());
+ Dialog dialog = null;
+ if(configuration instanceof IPopupEditorConfiguration) {
+ IPopupEditorHelper helper = ((IPopupEditorConfiguration)configuration).createPopupEditorHelper(this);
+ helper.showEditor();
+ return;
+ } else if(configuration instanceof IAdvancedEditorConfiguration) {
+ dialog = ((IAdvancedEditorConfiguration)configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
+ } else if(configuration instanceof IDirectEditorConfiguration) {
+ dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), ((IDirectEditorConfiguration)configuration).getTextToEdit(resolveSemanticElement()), (IDirectEditorConfiguration)configuration);
+ } else {
+ return;
+ }
+ final Dialog finalDialog = dialog;
+
+ if(Window.OK == dialog.open()) {
+ TransactionalEditingDomain domain = getEditingDomain();
+ RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
+
+ @Override
+ protected void doExecute() {
+ configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog)finalDialog).getValue());
+
+ }
+ };
+ domain.getCommandStack().execute(command);
+ }
+ }
+ break;
+ case IDirectEdition.DEFAULT_DIRECT_EDITOR:
+
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ break;
+ default:
+ break;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshLabel();
+ refreshFont();
+ refreshFontColor();
+ refreshUnderline();
+ refreshStrikeThrough();
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshLabel() {
+ EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
+ if(maskLabelPolicy == null) {
+ setLabelTextHelper(getFigure(), getLabelText());
+ setLabelIconHelper(getFigure(), getLabelIcon());
+ }
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshUnderline() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextUnderline(style.isUnderline());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshStrikeThrough() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextStrikeThrough(style.isStrikeThrough());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshFont() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null) {
+ FontData fontData = new FontData(style.getFontName(), style.getFontHeight(), (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
+ setFont(fontData);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setFontColor(Color color) {
+ getFigure().setForegroundColor(color);
+ }
+
+ /**
+ * @generated
+ */
+ protected void addSemanticListeners() {
+ if(getParser() instanceof ISemanticParser) {
+ EObject element = resolveSemanticElement();
+ parserElements = ((ISemanticParser)getParser()).getSemanticElementsBeingParsed(element);
+ for(int i = 0; i < parserElements.size(); i++) {
+ addListenerFilter("SemanticModel" + i, this, (EObject)parserElements.get(i)); //$NON-NLS-1$
+ }
+ } else {
+ super.addSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeSemanticListeners() {
+ if(parserElements != null) {
+ for(int i = 0; i < parserElements.size(); i++) {
+ removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
+ }
+ } else {
+ super.removeSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected AccessibleEditPart getAccessibleEditPart() {
+ if(accessibleEP == null) {
+ accessibleEP = new AccessibleGraphicalEditPart() {
+
+ public void getName(AccessibleEvent e) {
+ e.result = getLabelTextHelper(getFigure());
+ }
+ };
+ }
+ return accessibleEP;
+ }
+
+ /**
+ * @generated
+ */
+ private View getFontStyleOwnerView() {
+ return (View)getModel();
+ }
+
+ /**
+ * Returns the kind of associated editor for direct edition.
+ *
+ * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition
+ * @generated
+ */
+ public int getDirectEditionType() {
+ if(checkExtendedEditor()) {
+ initExtendedEditorConfiguration();
+ return IDirectEdition.EXTENDED_DIRECT_EDITOR;
+ }
+ if(checkDefaultEdition()) {
+ return IDirectEdition.DEFAULT_DIRECT_EDITOR;
+ }
+
+ // not a named element. no specific editor => do nothing
+ return IDirectEdition.NO_DIRECT_EDITION;
+ }
+
+ /**
+ * Checks if an extended editor is present.
+ *
+ * @return <code>true</code> if an extended editor is present.
+ * @generated
+ */
+ protected boolean checkExtendedEditor() {
+ if(resolveSemanticElement() != null) {
+ return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ return false;
+ }
+
+ /**
+ * Checks if a default direct edition is available
+ *
+ * @return <code>true</code> if a default direct edition is available
+ * @generated
+ */
+ protected boolean checkDefaultEdition() {
+ return (getParser() != null);
+ }
+
+ /**
+ * Initializes the extended editor configuration
+ *
+ * @generated
+ */
+ protected void initExtendedEditorConfiguration() {
+ if(configuration == null) {
+ final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("")) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else {
+ configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ }
+ }
+
+ /**
+ * Updates the preference configuration
+ *
+ * @generated
+ */
+ protected void updateExtendedEditorConfiguration() {
+ String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("") && languagePreferred != configuration.getLanguage()) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else if(IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
+ configuration = null;
+ }
+ }
+
+ /**
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
+ protected void performDefaultDirectEditorEdit(final Request theRequest) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void addNotationalListeners() {
+ super.addNotationalListeners();
+ addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeNotationalListeners() {
+ super.removeNotationalListeners();
+ removeListenerFilter("PrimaryView"); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void handleNotificationEvent(Notification event) {
+ refreshLabel();
+ Object feature = event.getFeature();
+ if(NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
+ Integer c = (Integer)event.getNewValue();
+ setFontColor(DiagramColorRegistry.getInstance().getColor(c));
+ } else if(NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
+ refreshUnderline();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
+ refreshStrikeThrough();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
+ refreshFont();
+ } else {
+ if(getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
+ refreshLabel();
+ }
+ if(getParser() instanceof ISemanticParser) {
+ ISemanticParser modelParser = (ISemanticParser)getParser();
+ if(modelParser.areSemanticElementsAffected(null, event)) {
+ removeSemanticListeners();
+ if(resolveSemanticElement() != null) {
+ addSemanticListeners();
+ }
+ refreshLabel();
+ }
+ }
+ }
+
+ if(event.getNewValue() instanceof EAnnotation && VisualInformationPapyrusConstant.DISPLAY_NAMELABELICON.equals(((EAnnotation)event.getNewValue()).getSource())) {
+ refreshLabel();
+ }
+
+ super.handleNotificationEvent(event);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createFigure() {
+ // Parent should assign one using setLabel() method
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ private static final String ADD_PARENT_MODEL = "AddParentModel";
+
+ /**
+ * @generated
+ */
+ public void activate() {
+ super.activate();
+ addOwnerElementListeners();
+ }
+
+ /**
+ * @generated
+ */
+ protected void addOwnerElementListeners() {
+ addListenerFilter(ADD_PARENT_MODEL, this, ((View)getParent().getModel())); //$NON-NLS-1$
+
+ }
+
+ /**
+ * @generated
+ */
+ public void deactivate() {
+ removeOwnerElementListeners();
+ super.deactivate();
+
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeOwnerElementListeners() {
+ removeListenerFilter(ADD_PARENT_MODEL);
+
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ComponentRealizationAppliedStereotypeEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ComponentRealizationAppliedStereotypeEditPart.java
new file mode 100644
index 00000000000..c8572a4f282
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ComponentRealizationAppliedStereotypeEditPart.java
@@ -0,0 +1,742 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.ConnectionLocator;
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.emf.transaction.RunnableWithResult;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.AccessibleEditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.requests.DirectEditRequest;
+import org.eclipse.gef.tools.DirectEditManager;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.LabelEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
+import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
+import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
+import org.eclipse.gmf.runtime.notation.FontStyle;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
+import org.eclipse.jface.viewers.ICellEditorValidator;
+import org.eclipse.jface.window.Window;
+import org.eclipse.papyrus.diagram.common.directedit.MultilineLabelDirectEditManager;
+import org.eclipse.papyrus.diagram.common.editparts.ILabelRoleProvider;
+import org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition;
+import org.eclipse.papyrus.diagram.common.editpolicies.IMaskManagedLabelEditPolicy;
+import org.eclipse.papyrus.diagram.common.figure.node.ILabelFigure;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLTextSelectionEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.diagram.composite.providers.UMLParserProvider;
+import org.eclipse.papyrus.extensionpoints.editors.Activator;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
+import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
+import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.AccessibleEvent;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.FontData;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.ui.PlatformUI;
+
+/**
+ * @generated
+ */
+public class ComponentRealizationAppliedStereotypeEditPart extends LabelEditPart implements ITextAwareEditPart
+
+, ILabelRoleProvider
+
+{
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 6015;
+
+ /**
+ * @generated
+ */
+ private DirectEditManager manager;
+
+ /**
+ * @generated
+ */
+ private IParser parser;
+
+ /**
+ * @generated
+ */
+ private List<?> parserElements;
+
+ /**
+ * @generated
+ */
+ private String defaultText;
+
+ /**
+ * direct edition mode (default, undefined, registered editor, etc.)
+ *
+ * @generated
+ */
+ protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
+
+ /**
+ * configuration from a registered edit dialog
+ *
+ * @generated
+ */
+ protected IDirectEditorConfiguration configuration;
+
+ /**
+ * @generated
+ */
+ static {
+ registerSnapBackPosition(UMLVisualIDRegistry.getType(org.eclipse.papyrus.diagram.composite.edit.parts.ComponentRealizationAppliedStereotypeEditPart.VISUAL_ID), new Point(0, 30));
+ }
+
+ /**
+ * @generated
+ */
+ public ComponentRealizationAppliedStereotypeEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
+ installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new CompositeStructureDiagramEditPart.LinkLabelDragPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ public int getKeyPoint() {
+ return ConnectionLocator.MIDDLE;
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelTextHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getText();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getText();
+ } else {
+ return ((Label)figure).getText();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelTextHelper(IFigure figure, String text) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setText(text);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setText(text);
+ } else {
+ ((Label)figure).setText(text);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIconHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getIcon();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getIcon();
+ } else {
+ return ((Label)figure).getIcon();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelIconHelper(IFigure figure, Image icon) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setIcon(icon);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setIcon(icon);
+ } else {
+ ((Label)figure).setIcon(icon);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabel(WrappingLabel figure) {
+ unregisterVisuals();
+ setFigure(figure);
+ defaultText = getLabelTextHelper(figure);
+ registerVisuals();
+ refreshVisuals();
+ }
+
+ /**
+ * @generated
+ */
+ protected List getModelChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject getParserElement() {
+ return resolveSemanticElement();
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIcon() {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelText() {
+ String text = null;
+ EObject parserElement = getParserElement();
+ if(parserElement != null && getParser() != null) {
+ text = getParser().getPrintString(new EObjectAdapter(parserElement), getParserOptions().intValue());
+ }
+ if(text == null || text.length() == 0) {
+ text = defaultText;
+ }
+ return text;
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabelText(String text) {
+ setLabelTextHelper(getFigure(), text);
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public String getEditText() {
+ if(getParserElement() == null || getParser() == null) {
+ return ""; //$NON-NLS-1$
+ }
+ return getParser().getEditString(new EObjectAdapter(getParserElement()), getParserOptions().intValue());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean isEditable() {
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ public ICellEditorValidator getEditTextValidator() {
+ return new ICellEditorValidator() {
+
+ public String isValid(final Object value) {
+ if(value instanceof String) {
+ final EObject element = getParserElement();
+ final IParser parser = getParser();
+ try {
+ IParserEditStatus valid = (IParserEditStatus)getEditingDomain().runExclusive(new RunnableWithResult.Impl() {
+
+ public void run() {
+ setResult(parser.isValidEditString(new EObjectAdapter(element), (String)value));
+ }
+ });
+ return valid.getCode() == ParserEditStatus.EDITABLE ? null : valid.getMessage();
+ } catch (InterruptedException ie) {
+ ie.printStackTrace();
+ }
+ }
+
+ // shouldn't get here
+ return null;
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ public IContentAssistProcessor getCompletionProcessor() {
+ if(getParserElement() == null || getParser() == null) {
+ return null;
+ }
+ return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
+ }
+
+ /**
+ * @generated
+ */
+ public ParserOptions getParserOptions() {
+ return ParserOptions.NONE;
+ }
+
+ /**
+ * @generated
+ */
+ public IParser getParser() {
+ if(parser == null) {
+ parser = UMLParserProvider.getParser(UMLElementTypes.ComponentRealization_4004, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.diagram.composite.edit.parts.ComponentRealizationAppliedStereotypeEditPart.VISUAL_ID));
+ }
+ return parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected DirectEditManager getManager() {
+ if(manager == null) {
+ setManager(new MultilineLabelDirectEditManager(this, MultilineLabelDirectEditManager.getTextCellEditorClass(this), UMLEditPartFactory.getTextCellEditorLocator(this)));
+ }
+ return manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setManager(DirectEditManager manager) {
+ this.manager = manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit() {
+ getManager().show();
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit(Point eventLocation) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(eventLocation.getSWTPoint());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void performDirectEdit(char initialCharacter) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(initialCharacter);
+ } else {
+ performDirectEdit();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEditRequest(Request request) {
+
+ final Request theRequest = request;
+
+ if(IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
+ directEditionMode = getDirectEditionType();
+ }
+ switch(directEditionMode) {
+ case IDirectEdition.NO_DIRECT_EDITION:
+ // no direct edition mode => does nothing
+ return;
+ case IDirectEdition.EXTENDED_DIRECT_EDITOR:
+ updateExtendedEditorConfiguration();
+ if(configuration == null || configuration.getLanguage() == null) {
+ performDefaultDirectEditorEdit(theRequest);
+ } else {
+ configuration.preEditAction(resolveSemanticElement());
+ Dialog dialog = null;
+ if(configuration instanceof IPopupEditorConfiguration) {
+ IPopupEditorHelper helper = ((IPopupEditorConfiguration)configuration).createPopupEditorHelper(this);
+ helper.showEditor();
+ return;
+ } else if(configuration instanceof IAdvancedEditorConfiguration) {
+ dialog = ((IAdvancedEditorConfiguration)configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
+ } else if(configuration instanceof IDirectEditorConfiguration) {
+ dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), ((IDirectEditorConfiguration)configuration).getTextToEdit(resolveSemanticElement()), (IDirectEditorConfiguration)configuration);
+ } else {
+ return;
+ }
+ final Dialog finalDialog = dialog;
+
+ if(Window.OK == dialog.open()) {
+ TransactionalEditingDomain domain = getEditingDomain();
+ RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
+
+ @Override
+ protected void doExecute() {
+ configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog)finalDialog).getValue());
+
+ }
+ };
+ domain.getCommandStack().execute(command);
+ }
+ }
+ break;
+ case IDirectEdition.DEFAULT_DIRECT_EDITOR:
+
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ break;
+ default:
+ break;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshLabel();
+ refreshFont();
+ refreshFontColor();
+ refreshUnderline();
+ refreshStrikeThrough();
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshLabel() {
+ EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
+ if(maskLabelPolicy == null) {
+ setLabelTextHelper(getFigure(), getLabelText());
+ setLabelIconHelper(getFigure(), getLabelIcon());
+ }
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshUnderline() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextUnderline(style.isUnderline());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshStrikeThrough() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextStrikeThrough(style.isStrikeThrough());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshFont() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null) {
+ FontData fontData = new FontData(style.getFontName(), style.getFontHeight(), (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
+ setFont(fontData);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setFontColor(Color color) {
+ getFigure().setForegroundColor(color);
+ }
+
+ /**
+ * @generated
+ */
+ protected void addSemanticListeners() {
+ if(getParser() instanceof ISemanticParser) {
+ EObject element = resolveSemanticElement();
+ parserElements = ((ISemanticParser)getParser()).getSemanticElementsBeingParsed(element);
+ for(int i = 0; i < parserElements.size(); i++) {
+ addListenerFilter("SemanticModel" + i, this, (EObject)parserElements.get(i)); //$NON-NLS-1$
+ }
+ } else {
+ super.addSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeSemanticListeners() {
+ if(parserElements != null) {
+ for(int i = 0; i < parserElements.size(); i++) {
+ removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
+ }
+ } else {
+ super.removeSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected AccessibleEditPart getAccessibleEditPart() {
+ if(accessibleEP == null) {
+ accessibleEP = new AccessibleGraphicalEditPart() {
+
+ public void getName(AccessibleEvent e) {
+ e.result = getLabelTextHelper(getFigure());
+ }
+ };
+ }
+ return accessibleEP;
+ }
+
+ /**
+ * @generated
+ */
+ private View getFontStyleOwnerView() {
+ return getPrimaryView();
+ }
+
+ /**
+ * Returns the kind of associated editor for direct edition.
+ *
+ * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition
+ * @generated
+ */
+ public int getDirectEditionType() {
+ // The label is read-only (defined in GMFGen model)
+ return IDirectEdition.NO_DIRECT_EDITION;
+ }
+
+ /**
+ * Checks if an extended editor is present.
+ *
+ * @return <code>true</code> if an extended editor is present.
+ * @generated
+ */
+ protected boolean checkExtendedEditor() {
+ if(resolveSemanticElement() != null) {
+ return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ return false;
+ }
+
+ /**
+ * Checks if a default direct edition is available
+ *
+ * @return <code>true</code> if a default direct edition is available
+ * @generated
+ */
+ protected boolean checkDefaultEdition() {
+ return (getParser() != null);
+ }
+
+ /**
+ * Initializes the extended editor configuration
+ *
+ * @generated
+ */
+ protected void initExtendedEditorConfiguration() {
+ if(configuration == null) {
+ final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("")) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else {
+ configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ }
+ }
+
+ /**
+ * Updates the preference configuration
+ *
+ * @generated
+ */
+ protected void updateExtendedEditorConfiguration() {
+ String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("") && languagePreferred != configuration.getLanguage()) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else if(IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
+ configuration = null;
+ }
+ }
+
+ /**
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
+ protected void performDefaultDirectEditorEdit(final Request theRequest) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void handleNotificationEvent(Notification event) {
+ Object feature = event.getFeature();
+ if(NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
+ Integer c = (Integer)event.getNewValue();
+ setFontColor(DiagramColorRegistry.getInstance().getColor(c));
+ } else if(NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
+ refreshUnderline();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
+ refreshStrikeThrough();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
+ refreshFont();
+ } else {
+ if(getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
+ refreshLabel();
+ }
+ if(getParser() instanceof ISemanticParser) {
+ ISemanticParser modelParser = (ISemanticParser)getParser();
+ if(modelParser.areSemanticElementsAffected(null, event)) {
+ removeSemanticListeners();
+ if(resolveSemanticElement() != null) {
+ addSemanticListeners();
+ }
+ refreshLabel();
+ }
+ }
+ }
+
+ super.handleNotificationEvent(event);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createFigure() {
+ // Parent should assign one using setLabel() method
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ public String getLabelRole() {
+ return "Stereotype";//$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ public String getIconPathRole() {
+ return "";//$NON-NLS-1$
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ComponentRealizationEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ComponentRealizationEditPart.java
new file mode 100644
index 00000000000..265749b7326
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ComponentRealizationEditPart.java
@@ -0,0 +1,121 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import org.eclipse.draw2d.Connection;
+import org.eclipse.gef.EditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITreeBranchEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.diagram.common.editparts.UMLConnectionNodeEditPart;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeLinkLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.figure.edge.InterfaceRealizationFigure;
+import org.eclipse.papyrus.diagram.composite.edit.policies.ComponentRealizationItemSemanticEditPolicy;
+
+/**
+ * @generated
+ */
+public class ComponentRealizationEditPart extends
+
+UMLConnectionNodeEditPart implements ITreeBranchEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 4004;
+
+ /**
+ * @generated
+ */
+ public ComponentRealizationEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new ComponentRealizationItemSemanticEditPolicy());
+ installEditPolicy(AppliedStereotypeLinkLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeLinkLabelDisplayEditPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean addFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof ComponentRealizationNameEditPart) {
+ ((ComponentRealizationNameEditPart)childEditPart).setLabel(getPrimaryShape().getNameLabel());
+ return true;
+ }
+ if(childEditPart instanceof ComponentRealizationAppliedStereotypeEditPart) {
+ ((ComponentRealizationAppliedStereotypeEditPart)childEditPart).setLabel(getPrimaryShape().getAppliedStereotypeLabel());
+ return true;
+ }
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected void addChildVisual(EditPart childEditPart, int index) {
+ if(addFixedChild(childEditPart)) {
+ return;
+ }
+ super.addChildVisual(childEditPart, -1);
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean removeFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof ComponentRealizationNameEditPart) {
+ return true;
+ }
+ if(childEditPart instanceof ComponentRealizationAppliedStereotypeEditPart) {
+ return true;
+ }
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeChildVisual(EditPart childEditPart) {
+ if(removeFixedChild(childEditPart)) {
+ return;
+ }
+ super.removeChildVisual(childEditPart);
+ }
+
+ /**
+ * Creates figure for this edit part.
+ *
+ * Body of this method does not depend on settings in generation model
+ * so you may safely remove <i>generated</i> tag and modify it.
+ *
+ * @generated
+ */
+ protected Connection createConnectionFigure() {
+ return new InterfaceRealizationFigure();
+ }
+
+ /**
+ * @generated
+ */
+ public InterfaceRealizationFigure getPrimaryShape() {
+ return (InterfaceRealizationFigure)getFigure();
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ComponentRealizationNameEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ComponentRealizationNameEditPart.java
new file mode 100644
index 00000000000..3fabbca7ccd
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ComponentRealizationNameEditPart.java
@@ -0,0 +1,750 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.ConnectionLocator;
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.emf.transaction.RunnableWithResult;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.AccessibleEditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.requests.DirectEditRequest;
+import org.eclipse.gef.tools.DirectEditManager;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.LabelEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
+import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
+import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
+import org.eclipse.gmf.runtime.notation.FontStyle;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
+import org.eclipse.jface.viewers.ICellEditorValidator;
+import org.eclipse.jface.window.Window;
+import org.eclipse.papyrus.diagram.common.directedit.MultilineLabelDirectEditManager;
+import org.eclipse.papyrus.diagram.common.editparts.ILabelRoleProvider;
+import org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition;
+import org.eclipse.papyrus.diagram.common.editpolicies.IMaskManagedLabelEditPolicy;
+import org.eclipse.papyrus.diagram.common.figure.node.ILabelFigure;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLTextSelectionEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.diagram.composite.providers.UMLParserProvider;
+import org.eclipse.papyrus.extensionpoints.editors.Activator;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
+import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
+import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.AccessibleEvent;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.FontData;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.ui.PlatformUI;
+
+/**
+ * @generated
+ */
+public class ComponentRealizationNameEditPart extends LabelEditPart implements ITextAwareEditPart
+
+, ILabelRoleProvider
+
+{
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 6001;
+
+ /**
+ * @generated
+ */
+ private DirectEditManager manager;
+
+ /**
+ * @generated
+ */
+ private IParser parser;
+
+ /**
+ * @generated
+ */
+ private List<?> parserElements;
+
+ /**
+ * @generated
+ */
+ private String defaultText;
+
+ /**
+ * direct edition mode (default, undefined, registered editor, etc.)
+ *
+ * @generated
+ */
+ protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
+
+ /**
+ * configuration from a registered edit dialog
+ *
+ * @generated
+ */
+ protected IDirectEditorConfiguration configuration;
+
+ /**
+ * @generated
+ */
+ static {
+ registerSnapBackPosition(UMLVisualIDRegistry.getType(org.eclipse.papyrus.diagram.composite.edit.parts.ComponentRealizationNameEditPart.VISUAL_ID), new Point(0, 60));
+ }
+
+ /**
+ * @generated
+ */
+ public ComponentRealizationNameEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
+ installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new CompositeStructureDiagramEditPart.LinkLabelDragPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ public int getKeyPoint() {
+ return ConnectionLocator.MIDDLE;
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelTextHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getText();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getText();
+ } else {
+ return ((Label)figure).getText();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelTextHelper(IFigure figure, String text) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setText(text);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setText(text);
+ } else {
+ ((Label)figure).setText(text);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIconHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getIcon();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getIcon();
+ } else {
+ return ((Label)figure).getIcon();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelIconHelper(IFigure figure, Image icon) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setIcon(icon);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setIcon(icon);
+ } else {
+ ((Label)figure).setIcon(icon);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabel(WrappingLabel figure) {
+ unregisterVisuals();
+ setFigure(figure);
+ defaultText = getLabelTextHelper(figure);
+ registerVisuals();
+ refreshVisuals();
+ }
+
+ /**
+ * @generated
+ */
+ protected List getModelChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject getParserElement() {
+ return resolveSemanticElement();
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIcon() {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelText() {
+ String text = null;
+ EObject parserElement = getParserElement();
+ if(parserElement != null && getParser() != null) {
+ text = getParser().getPrintString(new EObjectAdapter(parserElement), getParserOptions().intValue());
+ }
+ if(text == null || text.length() == 0) {
+ text = defaultText;
+ }
+ return text;
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabelText(String text) {
+ setLabelTextHelper(getFigure(), text);
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public String getEditText() {
+ if(getParserElement() == null || getParser() == null) {
+ return ""; //$NON-NLS-1$
+ }
+ return getParser().getEditString(new EObjectAdapter(getParserElement()), getParserOptions().intValue());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean isEditable() {
+ return getParser() != null;
+ }
+
+ /**
+ * @generated
+ */
+ public ICellEditorValidator getEditTextValidator() {
+ return new ICellEditorValidator() {
+
+ public String isValid(final Object value) {
+ if(value instanceof String) {
+ final EObject element = getParserElement();
+ final IParser parser = getParser();
+ try {
+ IParserEditStatus valid = (IParserEditStatus)getEditingDomain().runExclusive(new RunnableWithResult.Impl() {
+
+ public void run() {
+ setResult(parser.isValidEditString(new EObjectAdapter(element), (String)value));
+ }
+ });
+ return valid.getCode() == ParserEditStatus.EDITABLE ? null : valid.getMessage();
+ } catch (InterruptedException ie) {
+ ie.printStackTrace();
+ }
+ }
+
+ // shouldn't get here
+ return null;
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ public IContentAssistProcessor getCompletionProcessor() {
+ if(getParserElement() == null || getParser() == null) {
+ return null;
+ }
+ return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
+ }
+
+ /**
+ * @generated
+ */
+ public ParserOptions getParserOptions() {
+ return ParserOptions.NONE;
+ }
+
+ /**
+ * @generated
+ */
+ public IParser getParser() {
+ if(parser == null) {
+ parser = UMLParserProvider.getParser(UMLElementTypes.ComponentRealization_4004, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.diagram.composite.edit.parts.ComponentRealizationNameEditPart.VISUAL_ID));
+ }
+ return parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected DirectEditManager getManager() {
+ if(manager == null) {
+ setManager(new MultilineLabelDirectEditManager(this, MultilineLabelDirectEditManager.getTextCellEditorClass(this), UMLEditPartFactory.getTextCellEditorLocator(this)));
+ }
+ return manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setManager(DirectEditManager manager) {
+ this.manager = manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit() {
+ getManager().show();
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit(Point eventLocation) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(eventLocation.getSWTPoint());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void performDirectEdit(char initialCharacter) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(initialCharacter);
+ } else {
+ performDirectEdit();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEditRequest(Request request) {
+
+ final Request theRequest = request;
+
+ if(IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
+ directEditionMode = getDirectEditionType();
+ }
+ switch(directEditionMode) {
+ case IDirectEdition.NO_DIRECT_EDITION:
+ // no direct edition mode => does nothing
+ return;
+ case IDirectEdition.EXTENDED_DIRECT_EDITOR:
+ updateExtendedEditorConfiguration();
+ if(configuration == null || configuration.getLanguage() == null) {
+ performDefaultDirectEditorEdit(theRequest);
+ } else {
+ configuration.preEditAction(resolveSemanticElement());
+ Dialog dialog = null;
+ if(configuration instanceof IPopupEditorConfiguration) {
+ IPopupEditorHelper helper = ((IPopupEditorConfiguration)configuration).createPopupEditorHelper(this);
+ helper.showEditor();
+ return;
+ } else if(configuration instanceof IAdvancedEditorConfiguration) {
+ dialog = ((IAdvancedEditorConfiguration)configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
+ } else if(configuration instanceof IDirectEditorConfiguration) {
+ dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), ((IDirectEditorConfiguration)configuration).getTextToEdit(resolveSemanticElement()), (IDirectEditorConfiguration)configuration);
+ } else {
+ return;
+ }
+ final Dialog finalDialog = dialog;
+
+ if(Window.OK == dialog.open()) {
+ TransactionalEditingDomain domain = getEditingDomain();
+ RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
+
+ @Override
+ protected void doExecute() {
+ configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog)finalDialog).getValue());
+
+ }
+ };
+ domain.getCommandStack().execute(command);
+ }
+ }
+ break;
+ case IDirectEdition.DEFAULT_DIRECT_EDITOR:
+
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ break;
+ default:
+ break;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshLabel();
+ refreshFont();
+ refreshFontColor();
+ refreshUnderline();
+ refreshStrikeThrough();
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshLabel() {
+ EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
+ if(maskLabelPolicy == null) {
+ setLabelTextHelper(getFigure(), getLabelText());
+ setLabelIconHelper(getFigure(), getLabelIcon());
+ }
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshUnderline() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextUnderline(style.isUnderline());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshStrikeThrough() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextStrikeThrough(style.isStrikeThrough());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshFont() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null) {
+ FontData fontData = new FontData(style.getFontName(), style.getFontHeight(), (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
+ setFont(fontData);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setFontColor(Color color) {
+ getFigure().setForegroundColor(color);
+ }
+
+ /**
+ * @generated
+ */
+ protected void addSemanticListeners() {
+ if(getParser() instanceof ISemanticParser) {
+ EObject element = resolveSemanticElement();
+ parserElements = ((ISemanticParser)getParser()).getSemanticElementsBeingParsed(element);
+ for(int i = 0; i < parserElements.size(); i++) {
+ addListenerFilter("SemanticModel" + i, this, (EObject)parserElements.get(i)); //$NON-NLS-1$
+ }
+ } else {
+ super.addSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeSemanticListeners() {
+ if(parserElements != null) {
+ for(int i = 0; i < parserElements.size(); i++) {
+ removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
+ }
+ } else {
+ super.removeSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected AccessibleEditPart getAccessibleEditPart() {
+ if(accessibleEP == null) {
+ accessibleEP = new AccessibleGraphicalEditPart() {
+
+ public void getName(AccessibleEvent e) {
+ e.result = getLabelTextHelper(getFigure());
+ }
+ };
+ }
+ return accessibleEP;
+ }
+
+ /**
+ * @generated
+ */
+ private View getFontStyleOwnerView() {
+ return getPrimaryView();
+ }
+
+ /**
+ * Returns the kind of associated editor for direct edition.
+ *
+ * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition
+ * @generated
+ */
+ public int getDirectEditionType() {
+ if(checkExtendedEditor()) {
+ initExtendedEditorConfiguration();
+ return IDirectEdition.EXTENDED_DIRECT_EDITOR;
+ }
+ if(checkDefaultEdition()) {
+ return IDirectEdition.DEFAULT_DIRECT_EDITOR;
+ }
+
+ // not a named element. no specific editor => do nothing
+ return IDirectEdition.NO_DIRECT_EDITION;
+ }
+
+ /**
+ * Checks if an extended editor is present.
+ *
+ * @return <code>true</code> if an extended editor is present.
+ * @generated
+ */
+ protected boolean checkExtendedEditor() {
+ if(resolveSemanticElement() != null) {
+ return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ return false;
+ }
+
+ /**
+ * Checks if a default direct edition is available
+ *
+ * @return <code>true</code> if a default direct edition is available
+ * @generated
+ */
+ protected boolean checkDefaultEdition() {
+ return (getParser() != null);
+ }
+
+ /**
+ * Initializes the extended editor configuration
+ *
+ * @generated
+ */
+ protected void initExtendedEditorConfiguration() {
+ if(configuration == null) {
+ final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("")) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else {
+ configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ }
+ }
+
+ /**
+ * Updates the preference configuration
+ *
+ * @generated
+ */
+ protected void updateExtendedEditorConfiguration() {
+ String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("") && languagePreferred != configuration.getLanguage()) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else if(IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
+ configuration = null;
+ }
+ }
+
+ /**
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
+ protected void performDefaultDirectEditorEdit(final Request theRequest) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void handleNotificationEvent(Notification event) {
+ Object feature = event.getFeature();
+ if(NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
+ Integer c = (Integer)event.getNewValue();
+ setFontColor(DiagramColorRegistry.getInstance().getColor(c));
+ } else if(NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
+ refreshUnderline();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
+ refreshStrikeThrough();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
+ refreshFont();
+ } else {
+ if(getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
+ refreshLabel();
+ }
+ if(getParser() instanceof ISemanticParser) {
+ ISemanticParser modelParser = (ISemanticParser)getParser();
+ if(modelParser.areSemanticElementsAffected(null, event)) {
+ removeSemanticListeners();
+ if(resolveSemanticElement() != null) {
+ addSemanticListeners();
+ }
+ refreshLabel();
+ }
+ }
+ }
+
+ super.handleNotificationEvent(event);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createFigure() {
+ // Parent should assign one using setLabel() method
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ public String getLabelRole() {
+ return "Name";//$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ public String getIconPathRole() {
+ return "";//$NON-NLS-1$
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/CompositeStructureDiagramEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/CompositeStructureDiagramEditPart.java
new file mode 100644
index 00000000000..2340050f5ac
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/CompositeStructureDiagramEditPart.java
@@ -0,0 +1,146 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EAnnotation;
+import org.eclipse.gef.GraphicalEditPart;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.editpolicies.NonResizableEditPolicy;
+import org.eclipse.gef.handles.MoveHandle;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.DiagramEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.NonResizableLabelEditPolicy;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.diagram.common.editpolicies.DuplicatePasteEditPolicy;
+import org.eclipse.papyrus.diagram.common.providers.ViewInfo;
+import org.eclipse.papyrus.diagram.common.util.MDTUtil;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.CustomDiagramDragDropEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.RemoveOrphanViewPolicy;
+import org.eclipse.papyrus.diagram.composite.edit.policies.CompositeStructureDiagramItemSemanticEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+
+/**
+ * @generated
+ */
+public class CompositeStructureDiagramEditPart extends DiagramEditPart {
+
+ /**
+ * @generated
+ */
+ public final static String MODEL_ID = "CompositeStructure"; //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 1000;
+
+ /**
+ * @generated
+ */
+ public CompositeStructureDiagramEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(DuplicatePasteEditPolicy.PASTE_ROLE, new DuplicatePasteEditPolicy());
+
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new CompositeStructureDiagramItemSemanticEditPolicy());
+
+ installEditPolicy("REMOVE_ORPHAN_VIEW", new RemoveOrphanViewPolicy()); //$NON-NLS-1$
+ installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new CustomDiagramDragDropEditPolicy());
+ // removeEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.POPUPBAR_ROLE);
+ }
+
+ /**
+ * @generated
+ */
+ /* package-local */static class NodeLabelDragPolicy extends NonResizableEditPolicy {
+
+ /**
+ * @generated
+ */
+ @SuppressWarnings("rawtypes")
+ protected List createSelectionHandles() {
+ MoveHandle h = new MoveHandle((GraphicalEditPart)getHost());
+ h.setBorder(null);
+ return Collections.singletonList(h);
+ }
+
+ /**
+ * @generated
+ */
+ public Command getCommand(Request request) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ public boolean understandsRequest(Request request) {
+ return false;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ /* package-local */static class LinkLabelDragPolicy extends NonResizableLabelEditPolicy {
+
+ /**
+ * @generated
+ */
+ @SuppressWarnings("rawtypes")
+ protected List createSelectionHandles() {
+ MoveHandle mh = new MoveHandle((GraphicalEditPart)getHost());
+ mh.setBorder(null);
+ return Collections.singletonList(mh);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void handleNotificationEvent(Notification event) {
+
+ super.handleNotificationEvent(event);
+ if(event.getNotifier() instanceof EAnnotation) {
+ EAnnotation eAnnotation = (EAnnotation)event.getNotifier();
+ if(eAnnotation.getSource() != null && eAnnotation.getSource().equals(MDTUtil.FilterViewAndLabelsSource)) {
+ //modification form MOSKitt approach, canonical policies are not called
+ MDTUtil.filterDiagramViews(this.getDiagramView());
+ }
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public Object getAdapter(Class adapter) {
+
+ if(adapter != null && adapter.equals(ViewInfo.class)) {
+ return UMLVisualIDRegistry.getDiagramViewInfo();
+ }
+ return super.getAdapter(adapter);
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ConnectorAppliedStereotypeEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ConnectorAppliedStereotypeEditPart.java
new file mode 100644
index 00000000000..3387353d2be
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ConnectorAppliedStereotypeEditPart.java
@@ -0,0 +1,742 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.ConnectionLocator;
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.emf.transaction.RunnableWithResult;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.AccessibleEditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.requests.DirectEditRequest;
+import org.eclipse.gef.tools.DirectEditManager;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.LabelEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
+import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
+import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
+import org.eclipse.gmf.runtime.notation.FontStyle;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
+import org.eclipse.jface.viewers.ICellEditorValidator;
+import org.eclipse.jface.window.Window;
+import org.eclipse.papyrus.diagram.common.directedit.MultilineLabelDirectEditManager;
+import org.eclipse.papyrus.diagram.common.editparts.ILabelRoleProvider;
+import org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition;
+import org.eclipse.papyrus.diagram.common.editpolicies.IMaskManagedLabelEditPolicy;
+import org.eclipse.papyrus.diagram.common.figure.node.ILabelFigure;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLTextSelectionEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.diagram.composite.providers.UMLParserProvider;
+import org.eclipse.papyrus.extensionpoints.editors.Activator;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
+import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
+import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.AccessibleEvent;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.FontData;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.ui.PlatformUI;
+
+/**
+ * @generated
+ */
+public class ConnectorAppliedStereotypeEditPart extends LabelEditPart implements ITextAwareEditPart
+
+, ILabelRoleProvider
+
+{
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 6025;
+
+ /**
+ * @generated
+ */
+ private DirectEditManager manager;
+
+ /**
+ * @generated
+ */
+ private IParser parser;
+
+ /**
+ * @generated
+ */
+ private List<?> parserElements;
+
+ /**
+ * @generated
+ */
+ private String defaultText;
+
+ /**
+ * direct edition mode (default, undefined, registered editor, etc.)
+ *
+ * @generated
+ */
+ protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
+
+ /**
+ * configuration from a registered edit dialog
+ *
+ * @generated
+ */
+ protected IDirectEditorConfiguration configuration;
+
+ /**
+ * @generated
+ */
+ static {
+ registerSnapBackPosition(UMLVisualIDRegistry.getType(org.eclipse.papyrus.diagram.composite.edit.parts.ConnectorAppliedStereotypeEditPart.VISUAL_ID), new Point(0, 60));
+ }
+
+ /**
+ * @generated
+ */
+ public ConnectorAppliedStereotypeEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
+ installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new CompositeStructureDiagramEditPart.LinkLabelDragPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ public int getKeyPoint() {
+ return ConnectionLocator.MIDDLE;
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelTextHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getText();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getText();
+ } else {
+ return ((Label)figure).getText();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelTextHelper(IFigure figure, String text) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setText(text);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setText(text);
+ } else {
+ ((Label)figure).setText(text);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIconHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getIcon();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getIcon();
+ } else {
+ return ((Label)figure).getIcon();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelIconHelper(IFigure figure, Image icon) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setIcon(icon);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setIcon(icon);
+ } else {
+ ((Label)figure).setIcon(icon);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabel(WrappingLabel figure) {
+ unregisterVisuals();
+ setFigure(figure);
+ defaultText = getLabelTextHelper(figure);
+ registerVisuals();
+ refreshVisuals();
+ }
+
+ /**
+ * @generated
+ */
+ protected List getModelChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject getParserElement() {
+ return resolveSemanticElement();
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIcon() {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelText() {
+ String text = null;
+ EObject parserElement = getParserElement();
+ if(parserElement != null && getParser() != null) {
+ text = getParser().getPrintString(new EObjectAdapter(parserElement), getParserOptions().intValue());
+ }
+ if(text == null || text.length() == 0) {
+ text = defaultText;
+ }
+ return text;
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabelText(String text) {
+ setLabelTextHelper(getFigure(), text);
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public String getEditText() {
+ if(getParserElement() == null || getParser() == null) {
+ return ""; //$NON-NLS-1$
+ }
+ return getParser().getEditString(new EObjectAdapter(getParserElement()), getParserOptions().intValue());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean isEditable() {
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ public ICellEditorValidator getEditTextValidator() {
+ return new ICellEditorValidator() {
+
+ public String isValid(final Object value) {
+ if(value instanceof String) {
+ final EObject element = getParserElement();
+ final IParser parser = getParser();
+ try {
+ IParserEditStatus valid = (IParserEditStatus)getEditingDomain().runExclusive(new RunnableWithResult.Impl() {
+
+ public void run() {
+ setResult(parser.isValidEditString(new EObjectAdapter(element), (String)value));
+ }
+ });
+ return valid.getCode() == ParserEditStatus.EDITABLE ? null : valid.getMessage();
+ } catch (InterruptedException ie) {
+ ie.printStackTrace();
+ }
+ }
+
+ // shouldn't get here
+ return null;
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ public IContentAssistProcessor getCompletionProcessor() {
+ if(getParserElement() == null || getParser() == null) {
+ return null;
+ }
+ return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
+ }
+
+ /**
+ * @generated
+ */
+ public ParserOptions getParserOptions() {
+ return ParserOptions.NONE;
+ }
+
+ /**
+ * @generated
+ */
+ public IParser getParser() {
+ if(parser == null) {
+ parser = UMLParserProvider.getParser(UMLElementTypes.Connector_4013, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.diagram.composite.edit.parts.ConnectorAppliedStereotypeEditPart.VISUAL_ID));
+ }
+ return parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected DirectEditManager getManager() {
+ if(manager == null) {
+ setManager(new MultilineLabelDirectEditManager(this, MultilineLabelDirectEditManager.getTextCellEditorClass(this), UMLEditPartFactory.getTextCellEditorLocator(this)));
+ }
+ return manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setManager(DirectEditManager manager) {
+ this.manager = manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit() {
+ getManager().show();
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit(Point eventLocation) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(eventLocation.getSWTPoint());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void performDirectEdit(char initialCharacter) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(initialCharacter);
+ } else {
+ performDirectEdit();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEditRequest(Request request) {
+
+ final Request theRequest = request;
+
+ if(IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
+ directEditionMode = getDirectEditionType();
+ }
+ switch(directEditionMode) {
+ case IDirectEdition.NO_DIRECT_EDITION:
+ // no direct edition mode => does nothing
+ return;
+ case IDirectEdition.EXTENDED_DIRECT_EDITOR:
+ updateExtendedEditorConfiguration();
+ if(configuration == null || configuration.getLanguage() == null) {
+ performDefaultDirectEditorEdit(theRequest);
+ } else {
+ configuration.preEditAction(resolveSemanticElement());
+ Dialog dialog = null;
+ if(configuration instanceof IPopupEditorConfiguration) {
+ IPopupEditorHelper helper = ((IPopupEditorConfiguration)configuration).createPopupEditorHelper(this);
+ helper.showEditor();
+ return;
+ } else if(configuration instanceof IAdvancedEditorConfiguration) {
+ dialog = ((IAdvancedEditorConfiguration)configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
+ } else if(configuration instanceof IDirectEditorConfiguration) {
+ dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), ((IDirectEditorConfiguration)configuration).getTextToEdit(resolveSemanticElement()), (IDirectEditorConfiguration)configuration);
+ } else {
+ return;
+ }
+ final Dialog finalDialog = dialog;
+
+ if(Window.OK == dialog.open()) {
+ TransactionalEditingDomain domain = getEditingDomain();
+ RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
+
+ @Override
+ protected void doExecute() {
+ configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog)finalDialog).getValue());
+
+ }
+ };
+ domain.getCommandStack().execute(command);
+ }
+ }
+ break;
+ case IDirectEdition.DEFAULT_DIRECT_EDITOR:
+
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ break;
+ default:
+ break;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshLabel();
+ refreshFont();
+ refreshFontColor();
+ refreshUnderline();
+ refreshStrikeThrough();
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshLabel() {
+ EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
+ if(maskLabelPolicy == null) {
+ setLabelTextHelper(getFigure(), getLabelText());
+ setLabelIconHelper(getFigure(), getLabelIcon());
+ }
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshUnderline() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextUnderline(style.isUnderline());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshStrikeThrough() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextStrikeThrough(style.isStrikeThrough());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshFont() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null) {
+ FontData fontData = new FontData(style.getFontName(), style.getFontHeight(), (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
+ setFont(fontData);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setFontColor(Color color) {
+ getFigure().setForegroundColor(color);
+ }
+
+ /**
+ * @generated
+ */
+ protected void addSemanticListeners() {
+ if(getParser() instanceof ISemanticParser) {
+ EObject element = resolveSemanticElement();
+ parserElements = ((ISemanticParser)getParser()).getSemanticElementsBeingParsed(element);
+ for(int i = 0; i < parserElements.size(); i++) {
+ addListenerFilter("SemanticModel" + i, this, (EObject)parserElements.get(i)); //$NON-NLS-1$
+ }
+ } else {
+ super.addSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeSemanticListeners() {
+ if(parserElements != null) {
+ for(int i = 0; i < parserElements.size(); i++) {
+ removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
+ }
+ } else {
+ super.removeSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected AccessibleEditPart getAccessibleEditPart() {
+ if(accessibleEP == null) {
+ accessibleEP = new AccessibleGraphicalEditPart() {
+
+ public void getName(AccessibleEvent e) {
+ e.result = getLabelTextHelper(getFigure());
+ }
+ };
+ }
+ return accessibleEP;
+ }
+
+ /**
+ * @generated
+ */
+ private View getFontStyleOwnerView() {
+ return getPrimaryView();
+ }
+
+ /**
+ * Returns the kind of associated editor for direct edition.
+ *
+ * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition
+ * @generated
+ */
+ public int getDirectEditionType() {
+ // The label is read-only (defined in GMFGen model)
+ return IDirectEdition.NO_DIRECT_EDITION;
+ }
+
+ /**
+ * Checks if an extended editor is present.
+ *
+ * @return <code>true</code> if an extended editor is present.
+ * @generated
+ */
+ protected boolean checkExtendedEditor() {
+ if(resolveSemanticElement() != null) {
+ return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ return false;
+ }
+
+ /**
+ * Checks if a default direct edition is available
+ *
+ * @return <code>true</code> if a default direct edition is available
+ * @generated
+ */
+ protected boolean checkDefaultEdition() {
+ return (getParser() != null);
+ }
+
+ /**
+ * Initializes the extended editor configuration
+ *
+ * @generated
+ */
+ protected void initExtendedEditorConfiguration() {
+ if(configuration == null) {
+ final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("")) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else {
+ configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ }
+ }
+
+ /**
+ * Updates the preference configuration
+ *
+ * @generated
+ */
+ protected void updateExtendedEditorConfiguration() {
+ String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("") && languagePreferred != configuration.getLanguage()) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else if(IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
+ configuration = null;
+ }
+ }
+
+ /**
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
+ protected void performDefaultDirectEditorEdit(final Request theRequest) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void handleNotificationEvent(Notification event) {
+ Object feature = event.getFeature();
+ if(NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
+ Integer c = (Integer)event.getNewValue();
+ setFontColor(DiagramColorRegistry.getInstance().getColor(c));
+ } else if(NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
+ refreshUnderline();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
+ refreshStrikeThrough();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
+ refreshFont();
+ } else {
+ if(getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
+ refreshLabel();
+ }
+ if(getParser() instanceof ISemanticParser) {
+ ISemanticParser modelParser = (ISemanticParser)getParser();
+ if(modelParser.areSemanticElementsAffected(null, event)) {
+ removeSemanticListeners();
+ if(resolveSemanticElement() != null) {
+ addSemanticListeners();
+ }
+ refreshLabel();
+ }
+ }
+ }
+
+ super.handleNotificationEvent(event);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createFigure() {
+ // Parent should assign one using setLabel() method
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ public String getLabelRole() {
+ return "Stereotype";//$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ public String getIconPathRole() {
+ return "";//$NON-NLS-1$
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ConnectorEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ConnectorEditPart.java
new file mode 100644
index 00000000000..0dae050f794
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ConnectorEditPart.java
@@ -0,0 +1,135 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import org.eclipse.draw2d.Connection;
+import org.eclipse.gef.EditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITreeBranchEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.diagram.common.editparts.UMLConnectionNodeEditPart;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeLinkLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.figures.ConnectorFigure;
+import org.eclipse.papyrus.diagram.composite.edit.policies.ConnectorItemSemanticEditPolicy;
+
+/**
+ * @generated
+ */
+public class ConnectorEditPart extends
+
+UMLConnectionNodeEditPart implements ITreeBranchEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 4013;
+
+ /**
+ * @generated
+ */
+ public ConnectorEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new ConnectorItemSemanticEditPolicy());
+ installEditPolicy(AppliedStereotypeLinkLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeLinkLabelDisplayEditPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean addFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof ConnectorAppliedStereotypeEditPart) {
+ ((ConnectorAppliedStereotypeEditPart)childEditPart).setLabel(getPrimaryShape().getAppliedStereotypeLabel());
+ return true;
+ }
+ if(childEditPart instanceof ConnectorNameEditPart) {
+ ((ConnectorNameEditPart)childEditPart).setLabel(getPrimaryShape().getNameLabel());
+ return true;
+ }
+ if(childEditPart instanceof ConnectorMultiplicitySourceEditPart) {
+ ((ConnectorMultiplicitySourceEditPart)childEditPart).setLabel(getPrimaryShape().getMultiplicitySourceLabel());
+ return true;
+ }
+ if(childEditPart instanceof ConnectorMultiplicityTargetEditPart) {
+ ((ConnectorMultiplicityTargetEditPart)childEditPart).setLabel(getPrimaryShape().getMultiplicityTargetLabel());
+ return true;
+ }
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected void addChildVisual(EditPart childEditPart, int index) {
+ if(addFixedChild(childEditPart)) {
+ return;
+ }
+ super.addChildVisual(childEditPart, -1);
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean removeFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof ConnectorAppliedStereotypeEditPart) {
+ return true;
+ }
+ if(childEditPart instanceof ConnectorNameEditPart) {
+ return true;
+ }
+ if(childEditPart instanceof ConnectorMultiplicitySourceEditPart) {
+ return true;
+ }
+ if(childEditPart instanceof ConnectorMultiplicityTargetEditPart) {
+ return true;
+ }
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeChildVisual(EditPart childEditPart) {
+ if(removeFixedChild(childEditPart)) {
+ return;
+ }
+ super.removeChildVisual(childEditPart);
+ }
+
+ /**
+ * Creates figure for this edit part.
+ *
+ * Body of this method does not depend on settings in generation model
+ * so you may safely remove <i>generated</i> tag and modify it.
+ *
+ * @generated
+ */
+ protected Connection createConnectionFigure() {
+ return new ConnectorFigure();
+ }
+
+ /**
+ * @generated
+ */
+ public ConnectorFigure getPrimaryShape() {
+ return (ConnectorFigure)getFigure();
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ConnectorMultiplicitySourceEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ConnectorMultiplicitySourceEditPart.java
new file mode 100644
index 00000000000..99675c2d8ef
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ConnectorMultiplicitySourceEditPart.java
@@ -0,0 +1,742 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.ConnectionLocator;
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.emf.transaction.RunnableWithResult;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.AccessibleEditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.requests.DirectEditRequest;
+import org.eclipse.gef.tools.DirectEditManager;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.LabelEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
+import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
+import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
+import org.eclipse.gmf.runtime.notation.FontStyle;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
+import org.eclipse.jface.viewers.ICellEditorValidator;
+import org.eclipse.jface.window.Window;
+import org.eclipse.papyrus.diagram.common.directedit.MultilineLabelDirectEditManager;
+import org.eclipse.papyrus.diagram.common.editparts.ILabelRoleProvider;
+import org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition;
+import org.eclipse.papyrus.diagram.common.editpolicies.IMaskManagedLabelEditPolicy;
+import org.eclipse.papyrus.diagram.common.figure.node.ILabelFigure;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLTextSelectionEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.diagram.composite.providers.UMLParserProvider;
+import org.eclipse.papyrus.extensionpoints.editors.Activator;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
+import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
+import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.AccessibleEvent;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.FontData;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.ui.PlatformUI;
+
+/**
+ * @generated
+ */
+public class ConnectorMultiplicitySourceEditPart extends LabelEditPart implements ITextAwareEditPart
+
+, ILabelRoleProvider
+
+{
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 6051;
+
+ /**
+ * @generated
+ */
+ private DirectEditManager manager;
+
+ /**
+ * @generated
+ */
+ private IParser parser;
+
+ /**
+ * @generated
+ */
+ private List<?> parserElements;
+
+ /**
+ * @generated
+ */
+ private String defaultText;
+
+ /**
+ * direct edition mode (default, undefined, registered editor, etc.)
+ *
+ * @generated
+ */
+ protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
+
+ /**
+ * configuration from a registered edit dialog
+ *
+ * @generated
+ */
+ protected IDirectEditorConfiguration configuration;
+
+ /**
+ * @generated
+ */
+ static {
+ registerSnapBackPosition(UMLVisualIDRegistry.getType(org.eclipse.papyrus.diagram.composite.edit.parts.ConnectorMultiplicitySourceEditPart.VISUAL_ID), new Point(0, 20));
+ }
+
+ /**
+ * @generated
+ */
+ public ConnectorMultiplicitySourceEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
+ installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new CompositeStructureDiagramEditPart.LinkLabelDragPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ public int getKeyPoint() {
+ return ConnectionLocator.SOURCE;
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelTextHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getText();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getText();
+ } else {
+ return ((Label)figure).getText();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelTextHelper(IFigure figure, String text) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setText(text);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setText(text);
+ } else {
+ ((Label)figure).setText(text);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIconHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getIcon();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getIcon();
+ } else {
+ return ((Label)figure).getIcon();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelIconHelper(IFigure figure, Image icon) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setIcon(icon);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setIcon(icon);
+ } else {
+ ((Label)figure).setIcon(icon);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabel(WrappingLabel figure) {
+ unregisterVisuals();
+ setFigure(figure);
+ defaultText = getLabelTextHelper(figure);
+ registerVisuals();
+ refreshVisuals();
+ }
+
+ /**
+ * @generated
+ */
+ protected List getModelChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject getParserElement() {
+ return resolveSemanticElement();
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIcon() {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelText() {
+ String text = null;
+ EObject parserElement = getParserElement();
+ if(parserElement != null && getParser() != null) {
+ text = getParser().getPrintString(new EObjectAdapter(parserElement), getParserOptions().intValue());
+ }
+ if(text == null || text.length() == 0) {
+ text = defaultText;
+ }
+ return text;
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabelText(String text) {
+ setLabelTextHelper(getFigure(), text);
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public String getEditText() {
+ if(getParserElement() == null || getParser() == null) {
+ return ""; //$NON-NLS-1$
+ }
+ return getParser().getEditString(new EObjectAdapter(getParserElement()), getParserOptions().intValue());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean isEditable() {
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ public ICellEditorValidator getEditTextValidator() {
+ return new ICellEditorValidator() {
+
+ public String isValid(final Object value) {
+ if(value instanceof String) {
+ final EObject element = getParserElement();
+ final IParser parser = getParser();
+ try {
+ IParserEditStatus valid = (IParserEditStatus)getEditingDomain().runExclusive(new RunnableWithResult.Impl() {
+
+ public void run() {
+ setResult(parser.isValidEditString(new EObjectAdapter(element), (String)value));
+ }
+ });
+ return valid.getCode() == ParserEditStatus.EDITABLE ? null : valid.getMessage();
+ } catch (InterruptedException ie) {
+ ie.printStackTrace();
+ }
+ }
+
+ // shouldn't get here
+ return null;
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ public IContentAssistProcessor getCompletionProcessor() {
+ if(getParserElement() == null || getParser() == null) {
+ return null;
+ }
+ return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
+ }
+
+ /**
+ * @generated
+ */
+ public ParserOptions getParserOptions() {
+ return ParserOptions.NONE;
+ }
+
+ /**
+ * @generated
+ */
+ public IParser getParser() {
+ if(parser == null) {
+ parser = UMLParserProvider.getParser(UMLElementTypes.Connector_4013, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.diagram.composite.edit.parts.ConnectorMultiplicitySourceEditPart.VISUAL_ID));
+ }
+ return parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected DirectEditManager getManager() {
+ if(manager == null) {
+ setManager(new MultilineLabelDirectEditManager(this, MultilineLabelDirectEditManager.getTextCellEditorClass(this), UMLEditPartFactory.getTextCellEditorLocator(this)));
+ }
+ return manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setManager(DirectEditManager manager) {
+ this.manager = manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit() {
+ getManager().show();
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit(Point eventLocation) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(eventLocation.getSWTPoint());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void performDirectEdit(char initialCharacter) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(initialCharacter);
+ } else {
+ performDirectEdit();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEditRequest(Request request) {
+
+ final Request theRequest = request;
+
+ if(IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
+ directEditionMode = getDirectEditionType();
+ }
+ switch(directEditionMode) {
+ case IDirectEdition.NO_DIRECT_EDITION:
+ // no direct edition mode => does nothing
+ return;
+ case IDirectEdition.EXTENDED_DIRECT_EDITOR:
+ updateExtendedEditorConfiguration();
+ if(configuration == null || configuration.getLanguage() == null) {
+ performDefaultDirectEditorEdit(theRequest);
+ } else {
+ configuration.preEditAction(resolveSemanticElement());
+ Dialog dialog = null;
+ if(configuration instanceof IPopupEditorConfiguration) {
+ IPopupEditorHelper helper = ((IPopupEditorConfiguration)configuration).createPopupEditorHelper(this);
+ helper.showEditor();
+ return;
+ } else if(configuration instanceof IAdvancedEditorConfiguration) {
+ dialog = ((IAdvancedEditorConfiguration)configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
+ } else if(configuration instanceof IDirectEditorConfiguration) {
+ dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), ((IDirectEditorConfiguration)configuration).getTextToEdit(resolveSemanticElement()), (IDirectEditorConfiguration)configuration);
+ } else {
+ return;
+ }
+ final Dialog finalDialog = dialog;
+
+ if(Window.OK == dialog.open()) {
+ TransactionalEditingDomain domain = getEditingDomain();
+ RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
+
+ @Override
+ protected void doExecute() {
+ configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog)finalDialog).getValue());
+
+ }
+ };
+ domain.getCommandStack().execute(command);
+ }
+ }
+ break;
+ case IDirectEdition.DEFAULT_DIRECT_EDITOR:
+
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ break;
+ default:
+ break;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshLabel();
+ refreshFont();
+ refreshFontColor();
+ refreshUnderline();
+ refreshStrikeThrough();
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshLabel() {
+ EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
+ if(maskLabelPolicy == null) {
+ setLabelTextHelper(getFigure(), getLabelText());
+ setLabelIconHelper(getFigure(), getLabelIcon());
+ }
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshUnderline() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextUnderline(style.isUnderline());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshStrikeThrough() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextStrikeThrough(style.isStrikeThrough());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshFont() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null) {
+ FontData fontData = new FontData(style.getFontName(), style.getFontHeight(), (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
+ setFont(fontData);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setFontColor(Color color) {
+ getFigure().setForegroundColor(color);
+ }
+
+ /**
+ * @generated
+ */
+ protected void addSemanticListeners() {
+ if(getParser() instanceof ISemanticParser) {
+ EObject element = resolveSemanticElement();
+ parserElements = ((ISemanticParser)getParser()).getSemanticElementsBeingParsed(element);
+ for(int i = 0; i < parserElements.size(); i++) {
+ addListenerFilter("SemanticModel" + i, this, (EObject)parserElements.get(i)); //$NON-NLS-1$
+ }
+ } else {
+ super.addSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeSemanticListeners() {
+ if(parserElements != null) {
+ for(int i = 0; i < parserElements.size(); i++) {
+ removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
+ }
+ } else {
+ super.removeSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected AccessibleEditPart getAccessibleEditPart() {
+ if(accessibleEP == null) {
+ accessibleEP = new AccessibleGraphicalEditPart() {
+
+ public void getName(AccessibleEvent e) {
+ e.result = getLabelTextHelper(getFigure());
+ }
+ };
+ }
+ return accessibleEP;
+ }
+
+ /**
+ * @generated
+ */
+ private View getFontStyleOwnerView() {
+ return getPrimaryView();
+ }
+
+ /**
+ * Returns the kind of associated editor for direct edition.
+ *
+ * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition
+ * @generated
+ */
+ public int getDirectEditionType() {
+ // The label is read-only (defined in GMFGen model)
+ return IDirectEdition.NO_DIRECT_EDITION;
+ }
+
+ /**
+ * Checks if an extended editor is present.
+ *
+ * @return <code>true</code> if an extended editor is present.
+ * @generated
+ */
+ protected boolean checkExtendedEditor() {
+ if(resolveSemanticElement() != null) {
+ return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ return false;
+ }
+
+ /**
+ * Checks if a default direct edition is available
+ *
+ * @return <code>true</code> if a default direct edition is available
+ * @generated
+ */
+ protected boolean checkDefaultEdition() {
+ return (getParser() != null);
+ }
+
+ /**
+ * Initializes the extended editor configuration
+ *
+ * @generated
+ */
+ protected void initExtendedEditorConfiguration() {
+ if(configuration == null) {
+ final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("")) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else {
+ configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ }
+ }
+
+ /**
+ * Updates the preference configuration
+ *
+ * @generated
+ */
+ protected void updateExtendedEditorConfiguration() {
+ String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("") && languagePreferred != configuration.getLanguage()) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else if(IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
+ configuration = null;
+ }
+ }
+
+ /**
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
+ protected void performDefaultDirectEditorEdit(final Request theRequest) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void handleNotificationEvent(Notification event) {
+ Object feature = event.getFeature();
+ if(NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
+ Integer c = (Integer)event.getNewValue();
+ setFontColor(DiagramColorRegistry.getInstance().getColor(c));
+ } else if(NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
+ refreshUnderline();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
+ refreshStrikeThrough();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
+ refreshFont();
+ } else {
+ if(getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
+ refreshLabel();
+ }
+ if(getParser() instanceof ISemanticParser) {
+ ISemanticParser modelParser = (ISemanticParser)getParser();
+ if(modelParser.areSemanticElementsAffected(null, event)) {
+ removeSemanticListeners();
+ if(resolveSemanticElement() != null) {
+ addSemanticListeners();
+ }
+ refreshLabel();
+ }
+ }
+ }
+
+ super.handleNotificationEvent(event);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createFigure() {
+ // Parent should assign one using setLabel() method
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ public String getLabelRole() {
+ return "SourceMultiplicity";//$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ public String getIconPathRole() {
+ return "";//$NON-NLS-1$
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ConnectorMultiplicityTargetEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ConnectorMultiplicityTargetEditPart.java
new file mode 100644
index 00000000000..51175b89fd8
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ConnectorMultiplicityTargetEditPart.java
@@ -0,0 +1,742 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.ConnectionLocator;
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.emf.transaction.RunnableWithResult;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.AccessibleEditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.requests.DirectEditRequest;
+import org.eclipse.gef.tools.DirectEditManager;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.LabelEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
+import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
+import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
+import org.eclipse.gmf.runtime.notation.FontStyle;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
+import org.eclipse.jface.viewers.ICellEditorValidator;
+import org.eclipse.jface.window.Window;
+import org.eclipse.papyrus.diagram.common.directedit.MultilineLabelDirectEditManager;
+import org.eclipse.papyrus.diagram.common.editparts.ILabelRoleProvider;
+import org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition;
+import org.eclipse.papyrus.diagram.common.editpolicies.IMaskManagedLabelEditPolicy;
+import org.eclipse.papyrus.diagram.common.figure.node.ILabelFigure;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLTextSelectionEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.diagram.composite.providers.UMLParserProvider;
+import org.eclipse.papyrus.extensionpoints.editors.Activator;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
+import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
+import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.AccessibleEvent;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.FontData;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.ui.PlatformUI;
+
+/**
+ * @generated
+ */
+public class ConnectorMultiplicityTargetEditPart extends LabelEditPart implements ITextAwareEditPart
+
+, ILabelRoleProvider
+
+{
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 6052;
+
+ /**
+ * @generated
+ */
+ private DirectEditManager manager;
+
+ /**
+ * @generated
+ */
+ private IParser parser;
+
+ /**
+ * @generated
+ */
+ private List<?> parserElements;
+
+ /**
+ * @generated
+ */
+ private String defaultText;
+
+ /**
+ * direct edition mode (default, undefined, registered editor, etc.)
+ *
+ * @generated
+ */
+ protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
+
+ /**
+ * configuration from a registered edit dialog
+ *
+ * @generated
+ */
+ protected IDirectEditorConfiguration configuration;
+
+ /**
+ * @generated
+ */
+ static {
+ registerSnapBackPosition(UMLVisualIDRegistry.getType(org.eclipse.papyrus.diagram.composite.edit.parts.ConnectorMultiplicityTargetEditPart.VISUAL_ID), new Point(0, 20));
+ }
+
+ /**
+ * @generated
+ */
+ public ConnectorMultiplicityTargetEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
+ installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new CompositeStructureDiagramEditPart.LinkLabelDragPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ public int getKeyPoint() {
+ return ConnectionLocator.TARGET;
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelTextHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getText();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getText();
+ } else {
+ return ((Label)figure).getText();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelTextHelper(IFigure figure, String text) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setText(text);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setText(text);
+ } else {
+ ((Label)figure).setText(text);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIconHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getIcon();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getIcon();
+ } else {
+ return ((Label)figure).getIcon();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelIconHelper(IFigure figure, Image icon) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setIcon(icon);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setIcon(icon);
+ } else {
+ ((Label)figure).setIcon(icon);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabel(WrappingLabel figure) {
+ unregisterVisuals();
+ setFigure(figure);
+ defaultText = getLabelTextHelper(figure);
+ registerVisuals();
+ refreshVisuals();
+ }
+
+ /**
+ * @generated
+ */
+ protected List getModelChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject getParserElement() {
+ return resolveSemanticElement();
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIcon() {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelText() {
+ String text = null;
+ EObject parserElement = getParserElement();
+ if(parserElement != null && getParser() != null) {
+ text = getParser().getPrintString(new EObjectAdapter(parserElement), getParserOptions().intValue());
+ }
+ if(text == null || text.length() == 0) {
+ text = defaultText;
+ }
+ return text;
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabelText(String text) {
+ setLabelTextHelper(getFigure(), text);
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public String getEditText() {
+ if(getParserElement() == null || getParser() == null) {
+ return ""; //$NON-NLS-1$
+ }
+ return getParser().getEditString(new EObjectAdapter(getParserElement()), getParserOptions().intValue());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean isEditable() {
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ public ICellEditorValidator getEditTextValidator() {
+ return new ICellEditorValidator() {
+
+ public String isValid(final Object value) {
+ if(value instanceof String) {
+ final EObject element = getParserElement();
+ final IParser parser = getParser();
+ try {
+ IParserEditStatus valid = (IParserEditStatus)getEditingDomain().runExclusive(new RunnableWithResult.Impl() {
+
+ public void run() {
+ setResult(parser.isValidEditString(new EObjectAdapter(element), (String)value));
+ }
+ });
+ return valid.getCode() == ParserEditStatus.EDITABLE ? null : valid.getMessage();
+ } catch (InterruptedException ie) {
+ ie.printStackTrace();
+ }
+ }
+
+ // shouldn't get here
+ return null;
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ public IContentAssistProcessor getCompletionProcessor() {
+ if(getParserElement() == null || getParser() == null) {
+ return null;
+ }
+ return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
+ }
+
+ /**
+ * @generated
+ */
+ public ParserOptions getParserOptions() {
+ return ParserOptions.NONE;
+ }
+
+ /**
+ * @generated
+ */
+ public IParser getParser() {
+ if(parser == null) {
+ parser = UMLParserProvider.getParser(UMLElementTypes.Connector_4013, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.diagram.composite.edit.parts.ConnectorMultiplicityTargetEditPart.VISUAL_ID));
+ }
+ return parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected DirectEditManager getManager() {
+ if(manager == null) {
+ setManager(new MultilineLabelDirectEditManager(this, MultilineLabelDirectEditManager.getTextCellEditorClass(this), UMLEditPartFactory.getTextCellEditorLocator(this)));
+ }
+ return manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setManager(DirectEditManager manager) {
+ this.manager = manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit() {
+ getManager().show();
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit(Point eventLocation) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(eventLocation.getSWTPoint());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void performDirectEdit(char initialCharacter) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(initialCharacter);
+ } else {
+ performDirectEdit();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEditRequest(Request request) {
+
+ final Request theRequest = request;
+
+ if(IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
+ directEditionMode = getDirectEditionType();
+ }
+ switch(directEditionMode) {
+ case IDirectEdition.NO_DIRECT_EDITION:
+ // no direct edition mode => does nothing
+ return;
+ case IDirectEdition.EXTENDED_DIRECT_EDITOR:
+ updateExtendedEditorConfiguration();
+ if(configuration == null || configuration.getLanguage() == null) {
+ performDefaultDirectEditorEdit(theRequest);
+ } else {
+ configuration.preEditAction(resolveSemanticElement());
+ Dialog dialog = null;
+ if(configuration instanceof IPopupEditorConfiguration) {
+ IPopupEditorHelper helper = ((IPopupEditorConfiguration)configuration).createPopupEditorHelper(this);
+ helper.showEditor();
+ return;
+ } else if(configuration instanceof IAdvancedEditorConfiguration) {
+ dialog = ((IAdvancedEditorConfiguration)configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
+ } else if(configuration instanceof IDirectEditorConfiguration) {
+ dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), ((IDirectEditorConfiguration)configuration).getTextToEdit(resolveSemanticElement()), (IDirectEditorConfiguration)configuration);
+ } else {
+ return;
+ }
+ final Dialog finalDialog = dialog;
+
+ if(Window.OK == dialog.open()) {
+ TransactionalEditingDomain domain = getEditingDomain();
+ RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
+
+ @Override
+ protected void doExecute() {
+ configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog)finalDialog).getValue());
+
+ }
+ };
+ domain.getCommandStack().execute(command);
+ }
+ }
+ break;
+ case IDirectEdition.DEFAULT_DIRECT_EDITOR:
+
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ break;
+ default:
+ break;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshLabel();
+ refreshFont();
+ refreshFontColor();
+ refreshUnderline();
+ refreshStrikeThrough();
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshLabel() {
+ EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
+ if(maskLabelPolicy == null) {
+ setLabelTextHelper(getFigure(), getLabelText());
+ setLabelIconHelper(getFigure(), getLabelIcon());
+ }
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshUnderline() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextUnderline(style.isUnderline());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshStrikeThrough() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextStrikeThrough(style.isStrikeThrough());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshFont() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null) {
+ FontData fontData = new FontData(style.getFontName(), style.getFontHeight(), (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
+ setFont(fontData);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setFontColor(Color color) {
+ getFigure().setForegroundColor(color);
+ }
+
+ /**
+ * @generated
+ */
+ protected void addSemanticListeners() {
+ if(getParser() instanceof ISemanticParser) {
+ EObject element = resolveSemanticElement();
+ parserElements = ((ISemanticParser)getParser()).getSemanticElementsBeingParsed(element);
+ for(int i = 0; i < parserElements.size(); i++) {
+ addListenerFilter("SemanticModel" + i, this, (EObject)parserElements.get(i)); //$NON-NLS-1$
+ }
+ } else {
+ super.addSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeSemanticListeners() {
+ if(parserElements != null) {
+ for(int i = 0; i < parserElements.size(); i++) {
+ removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
+ }
+ } else {
+ super.removeSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected AccessibleEditPart getAccessibleEditPart() {
+ if(accessibleEP == null) {
+ accessibleEP = new AccessibleGraphicalEditPart() {
+
+ public void getName(AccessibleEvent e) {
+ e.result = getLabelTextHelper(getFigure());
+ }
+ };
+ }
+ return accessibleEP;
+ }
+
+ /**
+ * @generated
+ */
+ private View getFontStyleOwnerView() {
+ return getPrimaryView();
+ }
+
+ /**
+ * Returns the kind of associated editor for direct edition.
+ *
+ * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition
+ * @generated
+ */
+ public int getDirectEditionType() {
+ // The label is read-only (defined in GMFGen model)
+ return IDirectEdition.NO_DIRECT_EDITION;
+ }
+
+ /**
+ * Checks if an extended editor is present.
+ *
+ * @return <code>true</code> if an extended editor is present.
+ * @generated
+ */
+ protected boolean checkExtendedEditor() {
+ if(resolveSemanticElement() != null) {
+ return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ return false;
+ }
+
+ /**
+ * Checks if a default direct edition is available
+ *
+ * @return <code>true</code> if a default direct edition is available
+ * @generated
+ */
+ protected boolean checkDefaultEdition() {
+ return (getParser() != null);
+ }
+
+ /**
+ * Initializes the extended editor configuration
+ *
+ * @generated
+ */
+ protected void initExtendedEditorConfiguration() {
+ if(configuration == null) {
+ final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("")) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else {
+ configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ }
+ }
+
+ /**
+ * Updates the preference configuration
+ *
+ * @generated
+ */
+ protected void updateExtendedEditorConfiguration() {
+ String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("") && languagePreferred != configuration.getLanguage()) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else if(IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
+ configuration = null;
+ }
+ }
+
+ /**
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
+ protected void performDefaultDirectEditorEdit(final Request theRequest) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void handleNotificationEvent(Notification event) {
+ Object feature = event.getFeature();
+ if(NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
+ Integer c = (Integer)event.getNewValue();
+ setFontColor(DiagramColorRegistry.getInstance().getColor(c));
+ } else if(NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
+ refreshUnderline();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
+ refreshStrikeThrough();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
+ refreshFont();
+ } else {
+ if(getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
+ refreshLabel();
+ }
+ if(getParser() instanceof ISemanticParser) {
+ ISemanticParser modelParser = (ISemanticParser)getParser();
+ if(modelParser.areSemanticElementsAffected(null, event)) {
+ removeSemanticListeners();
+ if(resolveSemanticElement() != null) {
+ addSemanticListeners();
+ }
+ refreshLabel();
+ }
+ }
+ }
+
+ super.handleNotificationEvent(event);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createFigure() {
+ // Parent should assign one using setLabel() method
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ public String getLabelRole() {
+ return "TargetMultiplicity";//$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ public String getIconPathRole() {
+ return "";//$NON-NLS-1$
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ConnectorNameEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ConnectorNameEditPart.java
new file mode 100644
index 00000000000..ca5eb58c095
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ConnectorNameEditPart.java
@@ -0,0 +1,770 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.ConnectionLocator;
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EAnnotation;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.emf.transaction.RunnableWithResult;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.AccessibleEditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.requests.DirectEditRequest;
+import org.eclipse.gef.tools.DirectEditManager;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.LabelEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
+import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
+import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
+import org.eclipse.gmf.runtime.notation.FontStyle;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
+import org.eclipse.jface.viewers.ICellEditorValidator;
+import org.eclipse.jface.window.Window;
+import org.eclipse.papyrus.diagram.common.directedit.MultilineLabelDirectEditManager;
+import org.eclipse.papyrus.diagram.common.editparts.ILabelRoleProvider;
+import org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition;
+import org.eclipse.papyrus.diagram.common.editpolicies.IMaskManagedLabelEditPolicy;
+import org.eclipse.papyrus.diagram.common.figure.node.ILabelFigure;
+import org.eclipse.papyrus.diagram.common.util.DiagramEditPartsUtil;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLTextSelectionEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.diagram.composite.providers.UMLParserProvider;
+import org.eclipse.papyrus.extensionpoints.editors.Activator;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
+import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
+import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
+import org.eclipse.papyrus.umlutils.ui.VisualInformationPapyrusConstant;
+import org.eclipse.papyrus.umlutils.ui.helper.NameLabelIconHelper;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.AccessibleEvent;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.FontData;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.ui.PlatformUI;
+
+/**
+ * @generated
+ */
+public class ConnectorNameEditPart extends LabelEditPart implements ITextAwareEditPart
+
+, ILabelRoleProvider
+
+{
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 6050;
+
+ /**
+ * @generated
+ */
+ private DirectEditManager manager;
+
+ /**
+ * @generated
+ */
+ private IParser parser;
+
+ /**
+ * @generated
+ */
+ private List<?> parserElements;
+
+ /**
+ * @generated
+ */
+ private String defaultText;
+
+ /**
+ * direct edition mode (default, undefined, registered editor, etc.)
+ *
+ * @generated
+ */
+ protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
+
+ /**
+ * configuration from a registered edit dialog
+ *
+ * @generated
+ */
+ protected IDirectEditorConfiguration configuration;
+
+ /**
+ * @generated
+ */
+ static {
+ registerSnapBackPosition(UMLVisualIDRegistry.getType(org.eclipse.papyrus.diagram.composite.edit.parts.ConnectorNameEditPart.VISUAL_ID), new Point(0, -20));
+ }
+
+ /**
+ * @generated
+ */
+ public ConnectorNameEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
+ installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new CompositeStructureDiagramEditPart.LinkLabelDragPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ public int getKeyPoint() {
+ return ConnectionLocator.MIDDLE;
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelTextHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getText();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getText();
+ } else {
+ return ((Label)figure).getText();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelTextHelper(IFigure figure, String text) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setText(text);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setText(text);
+ } else {
+ ((Label)figure).setText(text);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIconHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getIcon();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getIcon();
+ } else {
+ return ((Label)figure).getIcon();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelIconHelper(IFigure figure, Image icon) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setIcon(icon);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setIcon(icon);
+ } else {
+ ((Label)figure).setIcon(icon);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabel(WrappingLabel figure) {
+ unregisterVisuals();
+ setFigure(figure);
+ defaultText = getLabelTextHelper(figure);
+ registerVisuals();
+ refreshVisuals();
+ }
+
+ /**
+ * @generated
+ */
+ protected List getModelChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject getParserElement() {
+ return resolveSemanticElement();
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIcon() {
+ EObject parserElement = getParserElement();
+ if(parserElement == null) {
+ return null;
+ }
+
+ List<View> views = DiagramEditPartsUtil.findViews(parserElement, getViewer());
+ for(View view : views) {
+ if(NameLabelIconHelper.showLabelIcon(view)) {
+ return UMLElementTypes.getImage(parserElement.eClass());
+ }
+ }
+ return null;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelText() {
+ String text = null;
+ EObject parserElement = getParserElement();
+ if(parserElement != null && getParser() != null) {
+ text = getParser().getPrintString(new EObjectAdapter(parserElement), getParserOptions().intValue());
+ }
+ if(text == null || text.length() == 0) {
+ text = defaultText;
+ }
+ return text;
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabelText(String text) {
+ setLabelTextHelper(getFigure(), text);
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public String getEditText() {
+ if(getParserElement() == null || getParser() == null) {
+ return ""; //$NON-NLS-1$
+ }
+ return getParser().getEditString(new EObjectAdapter(getParserElement()), getParserOptions().intValue());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean isEditable() {
+ return getParser() != null;
+ }
+
+ /**
+ * @generated
+ */
+ public ICellEditorValidator getEditTextValidator() {
+ return new ICellEditorValidator() {
+
+ public String isValid(final Object value) {
+ if(value instanceof String) {
+ final EObject element = getParserElement();
+ final IParser parser = getParser();
+ try {
+ IParserEditStatus valid = (IParserEditStatus)getEditingDomain().runExclusive(new RunnableWithResult.Impl() {
+
+ public void run() {
+ setResult(parser.isValidEditString(new EObjectAdapter(element), (String)value));
+ }
+ });
+ return valid.getCode() == ParserEditStatus.EDITABLE ? null : valid.getMessage();
+ } catch (InterruptedException ie) {
+ ie.printStackTrace();
+ }
+ }
+
+ // shouldn't get here
+ return null;
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ public IContentAssistProcessor getCompletionProcessor() {
+ if(getParserElement() == null || getParser() == null) {
+ return null;
+ }
+ return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
+ }
+
+ /**
+ * @generated
+ */
+ public ParserOptions getParserOptions() {
+ return ParserOptions.NONE;
+ }
+
+ /**
+ * @generated
+ */
+ public IParser getParser() {
+ if(parser == null) {
+ parser = UMLParserProvider.getParser(UMLElementTypes.Connector_4013, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.diagram.composite.edit.parts.ConnectorNameEditPart.VISUAL_ID));
+ }
+ return parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected DirectEditManager getManager() {
+ if(manager == null) {
+ setManager(new MultilineLabelDirectEditManager(this, MultilineLabelDirectEditManager.getTextCellEditorClass(this), UMLEditPartFactory.getTextCellEditorLocator(this)));
+ }
+ return manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setManager(DirectEditManager manager) {
+ this.manager = manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit() {
+ getManager().show();
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit(Point eventLocation) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(eventLocation.getSWTPoint());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void performDirectEdit(char initialCharacter) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(initialCharacter);
+ } else {
+ performDirectEdit();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEditRequest(Request request) {
+
+ final Request theRequest = request;
+
+ if(IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
+ directEditionMode = getDirectEditionType();
+ }
+ switch(directEditionMode) {
+ case IDirectEdition.NO_DIRECT_EDITION:
+ // no direct edition mode => does nothing
+ return;
+ case IDirectEdition.EXTENDED_DIRECT_EDITOR:
+ updateExtendedEditorConfiguration();
+ if(configuration == null || configuration.getLanguage() == null) {
+ performDefaultDirectEditorEdit(theRequest);
+ } else {
+ configuration.preEditAction(resolveSemanticElement());
+ Dialog dialog = null;
+ if(configuration instanceof IPopupEditorConfiguration) {
+ IPopupEditorHelper helper = ((IPopupEditorConfiguration)configuration).createPopupEditorHelper(this);
+ helper.showEditor();
+ return;
+ } else if(configuration instanceof IAdvancedEditorConfiguration) {
+ dialog = ((IAdvancedEditorConfiguration)configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
+ } else if(configuration instanceof IDirectEditorConfiguration) {
+ dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), ((IDirectEditorConfiguration)configuration).getTextToEdit(resolveSemanticElement()), (IDirectEditorConfiguration)configuration);
+ } else {
+ return;
+ }
+ final Dialog finalDialog = dialog;
+
+ if(Window.OK == dialog.open()) {
+ TransactionalEditingDomain domain = getEditingDomain();
+ RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
+
+ @Override
+ protected void doExecute() {
+ configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog)finalDialog).getValue());
+
+ }
+ };
+ domain.getCommandStack().execute(command);
+ }
+ }
+ break;
+ case IDirectEdition.DEFAULT_DIRECT_EDITOR:
+
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ break;
+ default:
+ break;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshLabel();
+ refreshFont();
+ refreshFontColor();
+ refreshUnderline();
+ refreshStrikeThrough();
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshLabel() {
+ EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
+ if(maskLabelPolicy == null) {
+ setLabelTextHelper(getFigure(), getLabelText());
+ setLabelIconHelper(getFigure(), getLabelIcon());
+ }
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshUnderline() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextUnderline(style.isUnderline());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshStrikeThrough() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextStrikeThrough(style.isStrikeThrough());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshFont() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null) {
+ FontData fontData = new FontData(style.getFontName(), style.getFontHeight(), (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
+ setFont(fontData);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setFontColor(Color color) {
+ getFigure().setForegroundColor(color);
+ }
+
+ /**
+ * @generated
+ */
+ protected void addSemanticListeners() {
+ if(getParser() instanceof ISemanticParser) {
+ EObject element = resolveSemanticElement();
+ parserElements = ((ISemanticParser)getParser()).getSemanticElementsBeingParsed(element);
+ for(int i = 0; i < parserElements.size(); i++) {
+ addListenerFilter("SemanticModel" + i, this, (EObject)parserElements.get(i)); //$NON-NLS-1$
+ }
+ } else {
+ super.addSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeSemanticListeners() {
+ if(parserElements != null) {
+ for(int i = 0; i < parserElements.size(); i++) {
+ removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
+ }
+ } else {
+ super.removeSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected AccessibleEditPart getAccessibleEditPart() {
+ if(accessibleEP == null) {
+ accessibleEP = new AccessibleGraphicalEditPart() {
+
+ public void getName(AccessibleEvent e) {
+ e.result = getLabelTextHelper(getFigure());
+ }
+ };
+ }
+ return accessibleEP;
+ }
+
+ /**
+ * @generated
+ */
+ private View getFontStyleOwnerView() {
+ return getPrimaryView();
+ }
+
+ /**
+ * Returns the kind of associated editor for direct edition.
+ *
+ * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition
+ * @generated
+ */
+ public int getDirectEditionType() {
+ if(checkExtendedEditor()) {
+ initExtendedEditorConfiguration();
+ return IDirectEdition.EXTENDED_DIRECT_EDITOR;
+ }
+ if(checkDefaultEdition()) {
+ return IDirectEdition.DEFAULT_DIRECT_EDITOR;
+ }
+
+ // not a named element. no specific editor => do nothing
+ return IDirectEdition.NO_DIRECT_EDITION;
+ }
+
+ /**
+ * Checks if an extended editor is present.
+ *
+ * @return <code>true</code> if an extended editor is present.
+ * @generated
+ */
+ protected boolean checkExtendedEditor() {
+ if(resolveSemanticElement() != null) {
+ return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ return false;
+ }
+
+ /**
+ * Checks if a default direct edition is available
+ *
+ * @return <code>true</code> if a default direct edition is available
+ * @generated
+ */
+ protected boolean checkDefaultEdition() {
+ return (getParser() != null);
+ }
+
+ /**
+ * Initializes the extended editor configuration
+ *
+ * @generated
+ */
+ protected void initExtendedEditorConfiguration() {
+ if(configuration == null) {
+ final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("")) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else {
+ configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ }
+ }
+
+ /**
+ * Updates the preference configuration
+ *
+ * @generated
+ */
+ protected void updateExtendedEditorConfiguration() {
+ String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("") && languagePreferred != configuration.getLanguage()) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else if(IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
+ configuration = null;
+ }
+ }
+
+ /**
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
+ protected void performDefaultDirectEditorEdit(final Request theRequest) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void handleNotificationEvent(Notification event) {
+ Object feature = event.getFeature();
+ if(NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
+ Integer c = (Integer)event.getNewValue();
+ setFontColor(DiagramColorRegistry.getInstance().getColor(c));
+ } else if(NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
+ refreshUnderline();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
+ refreshStrikeThrough();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
+ refreshFont();
+ } else {
+ if(getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
+ refreshLabel();
+ }
+ if(getParser() instanceof ISemanticParser) {
+ ISemanticParser modelParser = (ISemanticParser)getParser();
+ if(modelParser.areSemanticElementsAffected(null, event)) {
+ removeSemanticListeners();
+ if(resolveSemanticElement() != null) {
+ addSemanticListeners();
+ }
+ refreshLabel();
+ }
+ }
+ }
+
+ if(event.getNewValue() instanceof EAnnotation && VisualInformationPapyrusConstant.DISPLAY_NAMELABELICON.equals(((EAnnotation)event.getNewValue()).getSource())) {
+ refreshLabel();
+ }
+
+ super.handleNotificationEvent(event);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createFigure() {
+ // Parent should assign one using setLabel() method
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ public String getLabelRole() {
+ return "Name";//$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ public String getIconPathRole() {
+ return "";//$NON-NLS-1$
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ConstraintConstrainedElementEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ConstraintConstrainedElementEditPart.java
new file mode 100644
index 00000000000..15796846a68
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ConstraintConstrainedElementEditPart.java
@@ -0,0 +1,88 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import org.eclipse.draw2d.Connection;
+import org.eclipse.draw2d.Graphics;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ConnectionNodeEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITreeBranchEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.PolylineConnectionEx;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.diagram.composite.edit.policies.ConstraintConstrainedElementItemSemanticEditPolicy;
+
+/**
+ * @generated
+ */
+public class ConstraintConstrainedElementEditPart extends ConnectionNodeEditPart
+
+implements ITreeBranchEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 4003;
+
+ /**
+ * @generated
+ */
+ public ConstraintConstrainedElementEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new ConstraintConstrainedElementItemSemanticEditPolicy());
+ }
+
+ /**
+ * Creates figure for this edit part.
+ *
+ * Body of this method does not depend on settings in generation model
+ * so you may safely remove <i>generated</i> tag and modify it.
+ *
+ * @generated
+ */
+
+ protected Connection createConnectionFigure() {
+ return new LinkDescriptor();
+ }
+
+ /**
+ * @generated
+ */
+ public LinkDescriptor getPrimaryShape() {
+ return (LinkDescriptor)getFigure();
+ }
+
+ /**
+ * @generated
+ */
+ public class LinkDescriptor extends PolylineConnectionEx {
+
+ /**
+ * @generated
+ */
+ public LinkDescriptor() {
+ this.setLineWidth(1);
+ this.setLineStyle(Graphics.LINE_DASH);
+
+ }
+
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ConstraintEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ConstraintEditPart.java
new file mode 100644
index 00000000000..4cdc316915d
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ConstraintEditPart.java
@@ -0,0 +1,5459 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.ArrayList;
+import java.util.LinkedList;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Shape;
+import org.eclipse.draw2d.StackLayout;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EStructuralFeature;
+import org.eclipse.gef.EditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.editpolicies.LayoutEditPolicy;
+import org.eclipse.gef.editpolicies.NonResizableEditPolicy;
+import org.eclipse.gef.requests.CreateRequest;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.FigureUtilities;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.gef.ui.figures.DefaultSizeNodeFigure;
+import org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.jface.preference.PreferenceConverter;
+import org.eclipse.papyrus.diagram.common.editparts.AbstractConstraintEditPart;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.figure.node.ConstraintFigure;
+import org.eclipse.papyrus.diagram.common.helper.PreferenceInitializerForElementHelper;
+import org.eclipse.papyrus.diagram.composite.edit.policies.ConstraintItemSemanticEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorPlugin;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter;
+import org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper;
+import org.eclipse.swt.graphics.Color;
+
+/**
+ * @generated
+ */
+public class ConstraintEditPart extends
+
+AbstractConstraintEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 2114;
+
+ /**
+ * @generated
+ */
+ protected IFigure contentPane;
+
+ /**
+ * @generated
+ */
+ protected IFigure primaryShape;
+
+ /**
+ * @generated
+ */
+ public ConstraintEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new ConstraintItemSemanticEditPolicy());
+ installEditPolicy(EditPolicy.LAYOUT_ROLE, createLayoutEditPolicy());
+ installEditPolicy(AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeNodeLabelDisplayEditPolicy());
+ // XXX need an SCR to runtime to have another abstract superclass that would let children add reasonable editpolicies
+ // removeEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CONNECTION_HANDLES_ROLE);
+ }
+
+ /**
+ * Papyrus codeGen
+ *
+ * @generated
+ **/
+ protected void handleNotificationEvent(Notification event) {
+ super.handleNotificationEvent(event);
+
+ }
+
+ /**
+ * @generated
+ */
+ protected LayoutEditPolicy createLayoutEditPolicy() {
+ org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy lep = new org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy() {
+
+ protected EditPolicy createChildEditPolicy(EditPart child) {
+ EditPolicy result = child.getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(result == null) {
+ result = new NonResizableEditPolicy();
+ }
+ return result;
+ }
+
+ protected Command getMoveChildrenCommand(Request request) {
+ return null;
+ }
+
+ protected Command getCreateCommand(CreateRequest request) {
+ return null;
+ }
+ };
+ return lep;
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createNodeShape() {
+ return primaryShape = new ConstraintFigure();
+ }
+
+ /**
+ * @generated
+ */
+ public ConstraintFigure getPrimaryShape() {
+ return (ConstraintFigure)primaryShape;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean addFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof ConstraintNameEditPart) {
+ ((ConstraintNameEditPart)childEditPart).setLabel(getPrimaryShape().getNameLabel());
+ return true;
+ }
+ if(childEditPart instanceof ConstraintSpecificationEditPart) {
+ ((ConstraintSpecificationEditPart)childEditPart).setLabel(getPrimaryShape().getConstraintFigure());
+ return true;
+ }
+
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean removeFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof ConstraintNameEditPart) {
+ return true;
+ }
+ if(childEditPart instanceof ConstraintSpecificationEditPart) {
+ return true;
+ }
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected void addChildVisual(EditPart childEditPart, int index) {
+ if(addFixedChild(childEditPart)) {
+ return;
+ }
+ super.addChildVisual(childEditPart, -1);
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeChildVisual(EditPart childEditPart) {
+ if(removeFixedChild(childEditPart)) {
+ return;
+ }
+ super.removeChildVisual(childEditPart);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure getContentPaneFor(IGraphicalEditPart editPart) {
+ return getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ protected NodeFigure createNodePlate() {
+ String prefElementId = "Constraint";
+ IPreferenceStore store = UMLDiagramEditorPlugin.getInstance().getPreferenceStore();
+ String preferenceConstantWitdh = PreferenceInitializerForElementHelper.getpreferenceKey(getNotationView(), prefElementId, PreferenceConstantHelper.WIDTH);
+ String preferenceConstantHeight = PreferenceInitializerForElementHelper.getpreferenceKey(getNotationView(), prefElementId, PreferenceConstantHelper.HEIGHT);
+ DefaultSizeNodeFigure result = new DefaultSizeNodeFigure(store.getInt(preferenceConstantWitdh), store.getInt(preferenceConstantHeight));
+
+ return result;
+ }
+
+ /**
+ * Creates figure for this edit part.
+ *
+ * Body of this method does not depend on settings in generation model
+ * so you may safely remove <i>generated</i> tag and modify it.
+ *
+ * @generated
+ */
+ protected NodeFigure createNodeFigure() {
+ NodeFigure figure = createNodePlate();
+ figure.setLayoutManager(new StackLayout());
+ IFigure shape = createNodeShape();
+ figure.add(shape);
+ contentPane = setupContentPane(shape);
+ return figure;
+ }
+
+ /**
+ * Default implementation treats passed figure as content pane.
+ * Respects layout one may have set for generated figure.
+ *
+ * @param nodeShape
+ * instance of generated figure class
+ * @generated
+ */
+ protected IFigure setupContentPane(IFigure nodeShape) {
+ if(nodeShape.getLayoutManager() == null) {
+ ConstrainedToolbarLayout layout = new ConstrainedToolbarLayout();
+ layout.setSpacing(5);
+ nodeShape.setLayoutManager(layout);
+ }
+ return nodeShape; // use nodeShape itself as contentPane
+ }
+
+ /**
+ * @generated
+ */
+ public IFigure getContentPane() {
+ if(contentPane != null) {
+ return contentPane;
+ }
+ return super.getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ protected void setForegroundColor(Color color) {
+ if(primaryShape != null) {
+ primaryShape.setForegroundColor(color);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLineWidth(int width) {
+ if(primaryShape instanceof Shape) {
+ ((Shape)primaryShape).setLineWidth(width);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLineType(int style) {
+ if(primaryShape instanceof Shape) {
+ ((Shape)primaryShape).setLineStyle(style);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public EditPart getPrimaryChildEditPart() {
+ return getChildBySemanticHint(UMLVisualIDRegistry.getType(ConstraintNameEditPart.VISUAL_ID));
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnSource() {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(12);
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ types.add(UMLElementTypes.Substitution_4011);
+ types.add(UMLElementTypes.Realization_4006);
+ types.add(UMLElementTypes.Manifestation_4012);
+ types.add(UMLElementTypes.Abstraction_4007);
+ types.add(UMLElementTypes.Usage_4008);
+ types.add(UMLElementTypes.Deployment_4009);
+ types.add(UMLElementTypes.Dependency_4017);
+ types.add(UMLElementTypes.Dependency_4010);
+ types.add(UMLElementTypes.InformationFlow_4021);
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnSourceAndTarget(IGraphicalEditPart targetEditPart) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof CommentEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ConstraintEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof CommentEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMATypesForTarget(IElementType relationshipType) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(relationshipType == UMLElementTypes.ConstraintConstrainedElement_4003) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.Comment_2109);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.Comment_3097);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.ComponentRealization_4004) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InterfaceRealization_4005) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Substitution_4011) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Realization_4006) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Manifestation_4012) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Abstraction_4007) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Usage_4008) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Deployment_4009) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4017) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4010) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InformationFlow_4021) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnTarget() {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(15);
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ types.add(UMLElementTypes.Substitution_4011);
+ types.add(UMLElementTypes.Realization_4006);
+ types.add(UMLElementTypes.Manifestation_4012);
+ types.add(UMLElementTypes.Abstraction_4007);
+ types.add(UMLElementTypes.Usage_4008);
+ types.add(UMLElementTypes.Deployment_4009);
+ types.add(UMLElementTypes.Dependency_4017);
+ types.add(UMLElementTypes.Dependency_4010);
+ types.add(UMLElementTypes.TimeObservationEvent_4018);
+ types.add(UMLElementTypes.DurationObservationEvent_4019);
+ types.add(UMLElementTypes.InformationFlow_4021);
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMATypesForSource(IElementType relationshipType) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(relationshipType == UMLElementTypes.CommentAnnotatedElement_4002) {
+ types.add(UMLElementTypes.Comment_2109);
+ types.add(UMLElementTypes.Comment_3097);
+ } else if(relationshipType == UMLElementTypes.ConstraintConstrainedElement_4003) {
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.ComponentRealization_4004) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InterfaceRealization_4005) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Substitution_4011) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Realization_4006) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Manifestation_4012) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Abstraction_4007) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Usage_4008) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Deployment_4009) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4017) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4010) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.TimeObservationEvent_4018) {
+ types.add(UMLElementTypes.TimeObservation_2094);
+ } else if(relationshipType == UMLElementTypes.DurationObservationEvent_4019) {
+ types.add(UMLElementTypes.DurationObservation_2093);
+ } else if(relationshipType == UMLElementTypes.InformationFlow_4021) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public Object getPreferredValue(EStructuralFeature feature) {
+ IPreferenceStore preferenceStore = (IPreferenceStore)getDiagramPreferencesHint().getPreferenceStore();
+ Object result = null;
+
+ if(feature == NotationPackage.eINSTANCE.getLineStyle_LineColor() || feature == NotationPackage.eINSTANCE.getFontStyle_FontColor() || feature == NotationPackage.eINSTANCE.getFillStyle_FillColor()) {
+ String prefColor = null;
+ if(feature == NotationPackage.eINSTANCE.getLineStyle_LineColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("Constraint", PreferenceConstantHelper.COLOR_LINE);
+ } else if(feature == NotationPackage.eINSTANCE.getFontStyle_FontColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("Constraint", PreferenceConstantHelper.COLOR_FONT);
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_FillColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("Constraint", PreferenceConstantHelper.COLOR_FILL);
+ }
+ result = FigureUtilities.RGBToInteger(PreferenceConverter.getColor((IPreferenceStore)preferenceStore, prefColor));
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_Transparency() || feature == NotationPackage.eINSTANCE.getFillStyle_Gradient()) {
+ String prefGradient = PreferenceConstantHelper.getElementConstant("Constraint", PreferenceConstantHelper.COLOR_GRADIENT);
+ GradientPreferenceConverter gradientPreferenceConverter = new GradientPreferenceConverter(preferenceStore.getString(prefGradient));
+ if(feature == NotationPackage.eINSTANCE.getFillStyle_Transparency()) {
+ result = new Integer(gradientPreferenceConverter.getTransparency());
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_Gradient()) {
+ result = gradientPreferenceConverter.getGradientData();
+ }
+ }
+
+ if(result == null) {
+ result = getStructuralFeatureValue(feature);
+ }
+ return result;
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ConstraintEditPartCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ConstraintEditPartCN.java
new file mode 100644
index 00000000000..633062aceb3
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ConstraintEditPartCN.java
@@ -0,0 +1,5461 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.ArrayList;
+import java.util.LinkedList;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Shape;
+import org.eclipse.draw2d.StackLayout;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EStructuralFeature;
+import org.eclipse.gef.EditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.editpolicies.LayoutEditPolicy;
+import org.eclipse.gef.editpolicies.NonResizableEditPolicy;
+import org.eclipse.gef.requests.CreateRequest;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.FigureUtilities;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.gef.ui.figures.DefaultSizeNodeFigure;
+import org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.jface.preference.PreferenceConverter;
+import org.eclipse.papyrus.diagram.common.editparts.AbstractConstraintEditPart;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.figure.node.ConstraintFigure;
+import org.eclipse.papyrus.diagram.common.helper.PreferenceInitializerForElementHelper;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.NoScrollClassifierResizableShapeEditPolicy;
+import org.eclipse.papyrus.diagram.composite.edit.policies.ConstraintItemSemanticEditPolicyCN;
+import org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorPlugin;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter;
+import org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper;
+import org.eclipse.swt.graphics.Color;
+
+/**
+ * @generated
+ */
+public class ConstraintEditPartCN extends
+
+AbstractConstraintEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 3120;
+
+ /**
+ * @generated
+ */
+ protected IFigure contentPane;
+
+ /**
+ * @generated
+ */
+ protected IFigure primaryShape;
+
+ /**
+ * @generated
+ */
+ public ConstraintEditPartCN(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new ConstraintItemSemanticEditPolicyCN());
+ installEditPolicy(EditPolicy.LAYOUT_ROLE, createLayoutEditPolicy());
+ installEditPolicy(AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeNodeLabelDisplayEditPolicy());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new NoScrollClassifierResizableShapeEditPolicy());
+ // XXX need an SCR to runtime to have another abstract superclass that would let children add reasonable editpolicies
+ // removeEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CONNECTION_HANDLES_ROLE);
+ }
+
+ /**
+ * Papyrus codeGen
+ *
+ * @generated
+ **/
+ protected void handleNotificationEvent(Notification event) {
+ super.handleNotificationEvent(event);
+
+ }
+
+ /**
+ * @generated
+ */
+ protected LayoutEditPolicy createLayoutEditPolicy() {
+ org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy lep = new org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy() {
+
+ protected EditPolicy createChildEditPolicy(EditPart child) {
+ EditPolicy result = child.getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(result == null) {
+ result = new NonResizableEditPolicy();
+ }
+ return result;
+ }
+
+ protected Command getMoveChildrenCommand(Request request) {
+ return null;
+ }
+
+ protected Command getCreateCommand(CreateRequest request) {
+ return null;
+ }
+ };
+ return lep;
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createNodeShape() {
+ return primaryShape = new ConstraintFigure();
+ }
+
+ /**
+ * @generated
+ */
+ public ConstraintFigure getPrimaryShape() {
+ return (ConstraintFigure)primaryShape;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean addFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof ConstraintNameEditPartCN) {
+ ((ConstraintNameEditPartCN)childEditPart).setLabel(getPrimaryShape().getNameLabel());
+ return true;
+ }
+ if(childEditPart instanceof ConstraintSpecificationEditPartCN) {
+ ((ConstraintSpecificationEditPartCN)childEditPart).setLabel(getPrimaryShape().getConstraintFigure());
+ return true;
+ }
+
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean removeFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof ConstraintNameEditPartCN) {
+ return true;
+ }
+ if(childEditPart instanceof ConstraintSpecificationEditPartCN) {
+ return true;
+ }
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected void addChildVisual(EditPart childEditPart, int index) {
+ if(addFixedChild(childEditPart)) {
+ return;
+ }
+ super.addChildVisual(childEditPart, -1);
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeChildVisual(EditPart childEditPart) {
+ if(removeFixedChild(childEditPart)) {
+ return;
+ }
+ super.removeChildVisual(childEditPart);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure getContentPaneFor(IGraphicalEditPart editPart) {
+ return getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ protected NodeFigure createNodePlate() {
+ String prefElementId = "Constraint";
+ IPreferenceStore store = UMLDiagramEditorPlugin.getInstance().getPreferenceStore();
+ String preferenceConstantWitdh = PreferenceInitializerForElementHelper.getpreferenceKey(getNotationView(), prefElementId, PreferenceConstantHelper.WIDTH);
+ String preferenceConstantHeight = PreferenceInitializerForElementHelper.getpreferenceKey(getNotationView(), prefElementId, PreferenceConstantHelper.HEIGHT);
+ DefaultSizeNodeFigure result = new DefaultSizeNodeFigure(store.getInt(preferenceConstantWitdh), store.getInt(preferenceConstantHeight));
+
+ return result;
+ }
+
+ /**
+ * Creates figure for this edit part.
+ *
+ * Body of this method does not depend on settings in generation model
+ * so you may safely remove <i>generated</i> tag and modify it.
+ *
+ * @generated
+ */
+ protected NodeFigure createNodeFigure() {
+ NodeFigure figure = createNodePlate();
+ figure.setLayoutManager(new StackLayout());
+ IFigure shape = createNodeShape();
+ figure.add(shape);
+ contentPane = setupContentPane(shape);
+ return figure;
+ }
+
+ /**
+ * Default implementation treats passed figure as content pane.
+ * Respects layout one may have set for generated figure.
+ *
+ * @param nodeShape
+ * instance of generated figure class
+ * @generated
+ */
+ protected IFigure setupContentPane(IFigure nodeShape) {
+ if(nodeShape.getLayoutManager() == null) {
+ ConstrainedToolbarLayout layout = new ConstrainedToolbarLayout();
+ layout.setSpacing(5);
+ nodeShape.setLayoutManager(layout);
+ }
+ return nodeShape; // use nodeShape itself as contentPane
+ }
+
+ /**
+ * @generated
+ */
+ public IFigure getContentPane() {
+ if(contentPane != null) {
+ return contentPane;
+ }
+ return super.getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ protected void setForegroundColor(Color color) {
+ if(primaryShape != null) {
+ primaryShape.setForegroundColor(color);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLineWidth(int width) {
+ if(primaryShape instanceof Shape) {
+ ((Shape)primaryShape).setLineWidth(width);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLineType(int style) {
+ if(primaryShape instanceof Shape) {
+ ((Shape)primaryShape).setLineStyle(style);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public EditPart getPrimaryChildEditPart() {
+ return getChildBySemanticHint(UMLVisualIDRegistry.getType(ConstraintNameEditPartCN.VISUAL_ID));
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnSource() {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(12);
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ types.add(UMLElementTypes.Substitution_4011);
+ types.add(UMLElementTypes.Realization_4006);
+ types.add(UMLElementTypes.Manifestation_4012);
+ types.add(UMLElementTypes.Abstraction_4007);
+ types.add(UMLElementTypes.Usage_4008);
+ types.add(UMLElementTypes.Deployment_4009);
+ types.add(UMLElementTypes.Dependency_4017);
+ types.add(UMLElementTypes.Dependency_4010);
+ types.add(UMLElementTypes.InformationFlow_4021);
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnSourceAndTarget(IGraphicalEditPart targetEditPart) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof CommentEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof CommentEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ConstraintEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMATypesForTarget(IElementType relationshipType) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(relationshipType == UMLElementTypes.ConstraintConstrainedElement_4003) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.Comment_2109);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.Comment_3097);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.ComponentRealization_4004) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InterfaceRealization_4005) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Substitution_4011) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Realization_4006) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Manifestation_4012) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Abstraction_4007) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Usage_4008) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Deployment_4009) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4017) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4010) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InformationFlow_4021) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnTarget() {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(15);
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ types.add(UMLElementTypes.Substitution_4011);
+ types.add(UMLElementTypes.Realization_4006);
+ types.add(UMLElementTypes.Manifestation_4012);
+ types.add(UMLElementTypes.Abstraction_4007);
+ types.add(UMLElementTypes.Usage_4008);
+ types.add(UMLElementTypes.Deployment_4009);
+ types.add(UMLElementTypes.Dependency_4017);
+ types.add(UMLElementTypes.Dependency_4010);
+ types.add(UMLElementTypes.TimeObservationEvent_4018);
+ types.add(UMLElementTypes.DurationObservationEvent_4019);
+ types.add(UMLElementTypes.InformationFlow_4021);
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMATypesForSource(IElementType relationshipType) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(relationshipType == UMLElementTypes.CommentAnnotatedElement_4002) {
+ types.add(UMLElementTypes.Comment_2109);
+ types.add(UMLElementTypes.Comment_3097);
+ } else if(relationshipType == UMLElementTypes.ConstraintConstrainedElement_4003) {
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.ComponentRealization_4004) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InterfaceRealization_4005) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Substitution_4011) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Realization_4006) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Manifestation_4012) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Abstraction_4007) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Usage_4008) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Deployment_4009) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4017) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4010) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.TimeObservationEvent_4018) {
+ types.add(UMLElementTypes.TimeObservation_2094);
+ } else if(relationshipType == UMLElementTypes.DurationObservationEvent_4019) {
+ types.add(UMLElementTypes.DurationObservation_2093);
+ } else if(relationshipType == UMLElementTypes.InformationFlow_4021) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public Object getPreferredValue(EStructuralFeature feature) {
+ IPreferenceStore preferenceStore = (IPreferenceStore)getDiagramPreferencesHint().getPreferenceStore();
+ Object result = null;
+
+ if(feature == NotationPackage.eINSTANCE.getLineStyle_LineColor() || feature == NotationPackage.eINSTANCE.getFontStyle_FontColor() || feature == NotationPackage.eINSTANCE.getFillStyle_FillColor()) {
+ String prefColor = null;
+ if(feature == NotationPackage.eINSTANCE.getLineStyle_LineColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("Constraint", PreferenceConstantHelper.COLOR_LINE);
+ } else if(feature == NotationPackage.eINSTANCE.getFontStyle_FontColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("Constraint", PreferenceConstantHelper.COLOR_FONT);
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_FillColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("Constraint", PreferenceConstantHelper.COLOR_FILL);
+ }
+ result = FigureUtilities.RGBToInteger(PreferenceConverter.getColor((IPreferenceStore)preferenceStore, prefColor));
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_Transparency() || feature == NotationPackage.eINSTANCE.getFillStyle_Gradient()) {
+ String prefGradient = PreferenceConstantHelper.getElementConstant("Constraint", PreferenceConstantHelper.COLOR_GRADIENT);
+ GradientPreferenceConverter gradientPreferenceConverter = new GradientPreferenceConverter(preferenceStore.getString(prefGradient));
+ if(feature == NotationPackage.eINSTANCE.getFillStyle_Transparency()) {
+ result = new Integer(gradientPreferenceConverter.getTransparency());
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_Gradient()) {
+ result = gradientPreferenceConverter.getGradientData();
+ }
+ }
+
+ if(result == null) {
+ result = getStructuralFeatureValue(feature);
+ }
+ return result;
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ConstraintNameEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ConstraintNameEditPart.java
new file mode 100644
index 00000000000..0637e34f557
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ConstraintNameEditPart.java
@@ -0,0 +1,791 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EAnnotation;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.emf.transaction.RunnableWithResult;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.AccessibleEditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.requests.DirectEditRequest;
+import org.eclipse.gef.tools.DirectEditManager;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.CompartmentEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
+import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
+import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
+import org.eclipse.gmf.runtime.notation.FontStyle;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
+import org.eclipse.jface.viewers.ICellEditorValidator;
+import org.eclipse.jface.window.Window;
+import org.eclipse.papyrus.diagram.common.directedit.MultilineLabelDirectEditManager;
+import org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition;
+import org.eclipse.papyrus.diagram.common.editpolicies.IMaskManagedLabelEditPolicy;
+import org.eclipse.papyrus.diagram.common.figure.node.ILabelFigure;
+import org.eclipse.papyrus.diagram.common.util.DiagramEditPartsUtil;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLTextSelectionEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.diagram.composite.providers.UMLParserProvider;
+import org.eclipse.papyrus.extensionpoints.editors.Activator;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
+import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
+import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
+import org.eclipse.papyrus.umlutils.ui.VisualInformationPapyrusConstant;
+import org.eclipse.papyrus.umlutils.ui.helper.NameLabelIconHelper;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.AccessibleEvent;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.FontData;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.ui.PlatformUI;
+
+/**
+ * @generated
+ */
+public class ConstraintNameEditPart extends CompartmentEditPart implements ITextAwareEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 5197;
+
+ /**
+ * @generated
+ */
+ private DirectEditManager manager;
+
+ /**
+ * @generated
+ */
+ private IParser parser;
+
+ /**
+ * @generated
+ */
+ private List<?> parserElements;
+
+ /**
+ * @generated
+ */
+ private String defaultText;
+
+ /**
+ * direct edition mode (default, undefined, registered editor, etc.)
+ *
+ * @generated
+ */
+ protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
+
+ /**
+ * configuration from a registered edit dialog
+ *
+ * @generated
+ */
+ protected IDirectEditorConfiguration configuration;
+
+ /**
+ * @generated
+ */
+ public ConstraintNameEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
+ installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new CompositeStructureDiagramEditPart.NodeLabelDragPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelTextHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getText();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getText();
+ } else {
+ return ((Label)figure).getText();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelTextHelper(IFigure figure, String text) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setText(text);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setText(text);
+ } else {
+ ((Label)figure).setText(text);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIconHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getIcon();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getIcon();
+ } else {
+ return ((Label)figure).getIcon();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelIconHelper(IFigure figure, Image icon) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setIcon(icon);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setIcon(icon);
+ } else {
+ ((Label)figure).setIcon(icon);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabel(WrappingLabel figure) {
+ unregisterVisuals();
+ setFigure(figure);
+ defaultText = getLabelTextHelper(figure);
+ registerVisuals();
+ refreshVisuals();
+ }
+
+ /**
+ * @generated
+ */
+ protected List getModelChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject getParserElement() {
+ return resolveSemanticElement();
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIcon() {
+ EObject parserElement = getParserElement();
+ if(parserElement == null) {
+ return null;
+ }
+
+ List<View> views = DiagramEditPartsUtil.findViews(parserElement, getViewer());
+ for(View view : views) {
+ if(NameLabelIconHelper.showLabelIcon(view)) {
+ return UMLElementTypes.getImage(parserElement.eClass());
+ }
+ }
+ return null;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelText() {
+ String text = null;
+ EObject parserElement = getParserElement();
+ if(parserElement != null && getParser() != null) {
+ text = getParser().getPrintString(new EObjectAdapter(parserElement), getParserOptions().intValue());
+ }
+ if(text == null || text.length() == 0) {
+ text = defaultText;
+ }
+ return text;
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabelText(String text) {
+ setLabelTextHelper(getFigure(), text);
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public String getEditText() {
+ if(getParserElement() == null || getParser() == null) {
+ return ""; //$NON-NLS-1$
+ }
+ return getParser().getEditString(new EObjectAdapter(getParserElement()), getParserOptions().intValue());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean isEditable() {
+ return getParser() != null;
+ }
+
+ /**
+ * @generated
+ */
+ public ICellEditorValidator getEditTextValidator() {
+ return new ICellEditorValidator() {
+
+ public String isValid(final Object value) {
+ if(value instanceof String) {
+ final EObject element = getParserElement();
+ final IParser parser = getParser();
+ try {
+ IParserEditStatus valid = (IParserEditStatus)getEditingDomain().runExclusive(new RunnableWithResult.Impl() {
+
+ public void run() {
+ setResult(parser.isValidEditString(new EObjectAdapter(element), (String)value));
+ }
+ });
+ return valid.getCode() == ParserEditStatus.EDITABLE ? null : valid.getMessage();
+ } catch (InterruptedException ie) {
+ ie.printStackTrace();
+ }
+ }
+
+ // shouldn't get here
+ return null;
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ public IContentAssistProcessor getCompletionProcessor() {
+ if(getParserElement() == null || getParser() == null) {
+ return null;
+ }
+ return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
+ }
+
+ /**
+ * @generated
+ */
+ public ParserOptions getParserOptions() {
+ return ParserOptions.NONE;
+ }
+
+ /**
+ * @generated
+ */
+ public IParser getParser() {
+ if(parser == null) {
+ parser = UMLParserProvider.getParser(UMLElementTypes.Constraint_2114, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.diagram.composite.edit.parts.ConstraintNameEditPart.VISUAL_ID));
+ }
+ return parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected DirectEditManager getManager() {
+ if(manager == null) {
+ setManager(new MultilineLabelDirectEditManager(this, MultilineLabelDirectEditManager.getTextCellEditorClass(this), UMLEditPartFactory.getTextCellEditorLocator(this)));
+ }
+ return manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setManager(DirectEditManager manager) {
+ this.manager = manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit() {
+ getManager().show();
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit(Point eventLocation) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(eventLocation.getSWTPoint());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void performDirectEdit(char initialCharacter) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(initialCharacter);
+ } else {
+ performDirectEdit();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEditRequest(Request request) {
+
+ final Request theRequest = request;
+
+ if(IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
+ directEditionMode = getDirectEditionType();
+ }
+ switch(directEditionMode) {
+ case IDirectEdition.NO_DIRECT_EDITION:
+ // no direct edition mode => does nothing
+ return;
+ case IDirectEdition.EXTENDED_DIRECT_EDITOR:
+ updateExtendedEditorConfiguration();
+ if(configuration == null || configuration.getLanguage() == null) {
+ performDefaultDirectEditorEdit(theRequest);
+ } else {
+ configuration.preEditAction(resolveSemanticElement());
+ Dialog dialog = null;
+ if(configuration instanceof IPopupEditorConfiguration) {
+ IPopupEditorHelper helper = ((IPopupEditorConfiguration)configuration).createPopupEditorHelper(this);
+ helper.showEditor();
+ return;
+ } else if(configuration instanceof IAdvancedEditorConfiguration) {
+ dialog = ((IAdvancedEditorConfiguration)configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
+ } else if(configuration instanceof IDirectEditorConfiguration) {
+ dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), ((IDirectEditorConfiguration)configuration).getTextToEdit(resolveSemanticElement()), (IDirectEditorConfiguration)configuration);
+ } else {
+ return;
+ }
+ final Dialog finalDialog = dialog;
+
+ if(Window.OK == dialog.open()) {
+ TransactionalEditingDomain domain = getEditingDomain();
+ RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
+
+ @Override
+ protected void doExecute() {
+ configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog)finalDialog).getValue());
+
+ }
+ };
+ domain.getCommandStack().execute(command);
+ }
+ }
+ break;
+ case IDirectEdition.DEFAULT_DIRECT_EDITOR:
+
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ break;
+ default:
+ break;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshLabel();
+ refreshFont();
+ refreshFontColor();
+ refreshUnderline();
+ refreshStrikeThrough();
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshLabel() {
+ EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
+ if(maskLabelPolicy == null) {
+ setLabelTextHelper(getFigure(), getLabelText());
+ setLabelIconHelper(getFigure(), getLabelIcon());
+ }
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshUnderline() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextUnderline(style.isUnderline());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshStrikeThrough() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextStrikeThrough(style.isStrikeThrough());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshFont() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null) {
+ FontData fontData = new FontData(style.getFontName(), style.getFontHeight(), (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
+ setFont(fontData);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setFontColor(Color color) {
+ getFigure().setForegroundColor(color);
+ }
+
+ /**
+ * @generated
+ */
+ protected void addSemanticListeners() {
+ if(getParser() instanceof ISemanticParser) {
+ EObject element = resolveSemanticElement();
+ parserElements = ((ISemanticParser)getParser()).getSemanticElementsBeingParsed(element);
+ for(int i = 0; i < parserElements.size(); i++) {
+ addListenerFilter("SemanticModel" + i, this, (EObject)parserElements.get(i)); //$NON-NLS-1$
+ }
+ } else {
+ super.addSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeSemanticListeners() {
+ if(parserElements != null) {
+ for(int i = 0; i < parserElements.size(); i++) {
+ removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
+ }
+ } else {
+ super.removeSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected AccessibleEditPart getAccessibleEditPart() {
+ if(accessibleEP == null) {
+ accessibleEP = new AccessibleGraphicalEditPart() {
+
+ public void getName(AccessibleEvent e) {
+ e.result = getLabelTextHelper(getFigure());
+ }
+ };
+ }
+ return accessibleEP;
+ }
+
+ /**
+ * @generated
+ */
+ private View getFontStyleOwnerView() {
+ return (View)getModel();
+ }
+
+ /**
+ * Returns the kind of associated editor for direct edition.
+ *
+ * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition
+ * @generated
+ */
+ public int getDirectEditionType() {
+ if(checkExtendedEditor()) {
+ initExtendedEditorConfiguration();
+ return IDirectEdition.EXTENDED_DIRECT_EDITOR;
+ }
+ if(checkDefaultEdition()) {
+ return IDirectEdition.DEFAULT_DIRECT_EDITOR;
+ }
+
+ // not a named element. no specific editor => do nothing
+ return IDirectEdition.NO_DIRECT_EDITION;
+ }
+
+ /**
+ * Checks if an extended editor is present.
+ *
+ * @return <code>true</code> if an extended editor is present.
+ * @generated
+ */
+ protected boolean checkExtendedEditor() {
+ if(resolveSemanticElement() != null) {
+ return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ return false;
+ }
+
+ /**
+ * Checks if a default direct edition is available
+ *
+ * @return <code>true</code> if a default direct edition is available
+ * @generated
+ */
+ protected boolean checkDefaultEdition() {
+ return (getParser() != null);
+ }
+
+ /**
+ * Initializes the extended editor configuration
+ *
+ * @generated
+ */
+ protected void initExtendedEditorConfiguration() {
+ if(configuration == null) {
+ final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("")) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else {
+ configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ }
+ }
+
+ /**
+ * Updates the preference configuration
+ *
+ * @generated
+ */
+ protected void updateExtendedEditorConfiguration() {
+ String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("") && languagePreferred != configuration.getLanguage()) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else if(IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
+ configuration = null;
+ }
+ }
+
+ /**
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
+ protected void performDefaultDirectEditorEdit(final Request theRequest) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void addNotationalListeners() {
+ super.addNotationalListeners();
+ addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeNotationalListeners() {
+ super.removeNotationalListeners();
+ removeListenerFilter("PrimaryView"); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void handleNotificationEvent(Notification event) {
+ refreshLabel();
+ Object feature = event.getFeature();
+ if(NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
+ Integer c = (Integer)event.getNewValue();
+ setFontColor(DiagramColorRegistry.getInstance().getColor(c));
+ } else if(NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
+ refreshUnderline();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
+ refreshStrikeThrough();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
+ refreshFont();
+ } else {
+ if(getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
+ refreshLabel();
+ }
+ if(getParser() instanceof ISemanticParser) {
+ ISemanticParser modelParser = (ISemanticParser)getParser();
+ if(modelParser.areSemanticElementsAffected(null, event)) {
+ removeSemanticListeners();
+ if(resolveSemanticElement() != null) {
+ addSemanticListeners();
+ }
+ refreshLabel();
+ }
+ }
+ }
+
+ if(event.getNewValue() instanceof EAnnotation && VisualInformationPapyrusConstant.DISPLAY_NAMELABELICON.equals(((EAnnotation)event.getNewValue()).getSource())) {
+ refreshLabel();
+ }
+
+ super.handleNotificationEvent(event);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createFigure() {
+ // Parent should assign one using setLabel() method
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ private static final String ADD_PARENT_MODEL = "AddParentModel";
+
+ /**
+ * @generated
+ */
+ public void activate() {
+ super.activate();
+ addOwnerElementListeners();
+ }
+
+ /**
+ * @generated
+ */
+ protected void addOwnerElementListeners() {
+ addListenerFilter(ADD_PARENT_MODEL, this, ((View)getParent().getModel())); //$NON-NLS-1$
+
+ }
+
+ /**
+ * @generated
+ */
+ public void deactivate() {
+ removeOwnerElementListeners();
+ super.deactivate();
+
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeOwnerElementListeners() {
+ removeListenerFilter(ADD_PARENT_MODEL);
+
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ConstraintNameEditPartCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ConstraintNameEditPartCN.java
new file mode 100644
index 00000000000..589d2efb54b
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ConstraintNameEditPartCN.java
@@ -0,0 +1,791 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EAnnotation;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.emf.transaction.RunnableWithResult;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.AccessibleEditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.requests.DirectEditRequest;
+import org.eclipse.gef.tools.DirectEditManager;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.CompartmentEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
+import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
+import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
+import org.eclipse.gmf.runtime.notation.FontStyle;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
+import org.eclipse.jface.viewers.ICellEditorValidator;
+import org.eclipse.jface.window.Window;
+import org.eclipse.papyrus.diagram.common.directedit.MultilineLabelDirectEditManager;
+import org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition;
+import org.eclipse.papyrus.diagram.common.editpolicies.IMaskManagedLabelEditPolicy;
+import org.eclipse.papyrus.diagram.common.figure.node.ILabelFigure;
+import org.eclipse.papyrus.diagram.common.util.DiagramEditPartsUtil;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLTextSelectionEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.diagram.composite.providers.UMLParserProvider;
+import org.eclipse.papyrus.extensionpoints.editors.Activator;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
+import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
+import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
+import org.eclipse.papyrus.umlutils.ui.VisualInformationPapyrusConstant;
+import org.eclipse.papyrus.umlutils.ui.helper.NameLabelIconHelper;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.AccessibleEvent;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.FontData;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.ui.PlatformUI;
+
+/**
+ * @generated
+ */
+public class ConstraintNameEditPartCN extends CompartmentEditPart implements ITextAwareEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 6048;
+
+ /**
+ * @generated
+ */
+ private DirectEditManager manager;
+
+ /**
+ * @generated
+ */
+ private IParser parser;
+
+ /**
+ * @generated
+ */
+ private List<?> parserElements;
+
+ /**
+ * @generated
+ */
+ private String defaultText;
+
+ /**
+ * direct edition mode (default, undefined, registered editor, etc.)
+ *
+ * @generated
+ */
+ protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
+
+ /**
+ * configuration from a registered edit dialog
+ *
+ * @generated
+ */
+ protected IDirectEditorConfiguration configuration;
+
+ /**
+ * @generated
+ */
+ public ConstraintNameEditPartCN(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
+ installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new CompositeStructureDiagramEditPart.NodeLabelDragPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelTextHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getText();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getText();
+ } else {
+ return ((Label)figure).getText();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelTextHelper(IFigure figure, String text) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setText(text);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setText(text);
+ } else {
+ ((Label)figure).setText(text);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIconHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getIcon();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getIcon();
+ } else {
+ return ((Label)figure).getIcon();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelIconHelper(IFigure figure, Image icon) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setIcon(icon);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setIcon(icon);
+ } else {
+ ((Label)figure).setIcon(icon);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabel(WrappingLabel figure) {
+ unregisterVisuals();
+ setFigure(figure);
+ defaultText = getLabelTextHelper(figure);
+ registerVisuals();
+ refreshVisuals();
+ }
+
+ /**
+ * @generated
+ */
+ protected List getModelChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject getParserElement() {
+ return resolveSemanticElement();
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIcon() {
+ EObject parserElement = getParserElement();
+ if(parserElement == null) {
+ return null;
+ }
+
+ List<View> views = DiagramEditPartsUtil.findViews(parserElement, getViewer());
+ for(View view : views) {
+ if(NameLabelIconHelper.showLabelIcon(view)) {
+ return UMLElementTypes.getImage(parserElement.eClass());
+ }
+ }
+ return null;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelText() {
+ String text = null;
+ EObject parserElement = getParserElement();
+ if(parserElement != null && getParser() != null) {
+ text = getParser().getPrintString(new EObjectAdapter(parserElement), getParserOptions().intValue());
+ }
+ if(text == null || text.length() == 0) {
+ text = defaultText;
+ }
+ return text;
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabelText(String text) {
+ setLabelTextHelper(getFigure(), text);
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public String getEditText() {
+ if(getParserElement() == null || getParser() == null) {
+ return ""; //$NON-NLS-1$
+ }
+ return getParser().getEditString(new EObjectAdapter(getParserElement()), getParserOptions().intValue());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean isEditable() {
+ return getParser() != null;
+ }
+
+ /**
+ * @generated
+ */
+ public ICellEditorValidator getEditTextValidator() {
+ return new ICellEditorValidator() {
+
+ public String isValid(final Object value) {
+ if(value instanceof String) {
+ final EObject element = getParserElement();
+ final IParser parser = getParser();
+ try {
+ IParserEditStatus valid = (IParserEditStatus)getEditingDomain().runExclusive(new RunnableWithResult.Impl() {
+
+ public void run() {
+ setResult(parser.isValidEditString(new EObjectAdapter(element), (String)value));
+ }
+ });
+ return valid.getCode() == ParserEditStatus.EDITABLE ? null : valid.getMessage();
+ } catch (InterruptedException ie) {
+ ie.printStackTrace();
+ }
+ }
+
+ // shouldn't get here
+ return null;
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ public IContentAssistProcessor getCompletionProcessor() {
+ if(getParserElement() == null || getParser() == null) {
+ return null;
+ }
+ return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
+ }
+
+ /**
+ * @generated
+ */
+ public ParserOptions getParserOptions() {
+ return ParserOptions.NONE;
+ }
+
+ /**
+ * @generated
+ */
+ public IParser getParser() {
+ if(parser == null) {
+ parser = UMLParserProvider.getParser(UMLElementTypes.Constraint_3120, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.diagram.composite.edit.parts.ConstraintNameEditPartCN.VISUAL_ID));
+ }
+ return parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected DirectEditManager getManager() {
+ if(manager == null) {
+ setManager(new MultilineLabelDirectEditManager(this, MultilineLabelDirectEditManager.getTextCellEditorClass(this), UMLEditPartFactory.getTextCellEditorLocator(this)));
+ }
+ return manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setManager(DirectEditManager manager) {
+ this.manager = manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit() {
+ getManager().show();
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit(Point eventLocation) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(eventLocation.getSWTPoint());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void performDirectEdit(char initialCharacter) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(initialCharacter);
+ } else {
+ performDirectEdit();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEditRequest(Request request) {
+
+ final Request theRequest = request;
+
+ if(IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
+ directEditionMode = getDirectEditionType();
+ }
+ switch(directEditionMode) {
+ case IDirectEdition.NO_DIRECT_EDITION:
+ // no direct edition mode => does nothing
+ return;
+ case IDirectEdition.EXTENDED_DIRECT_EDITOR:
+ updateExtendedEditorConfiguration();
+ if(configuration == null || configuration.getLanguage() == null) {
+ performDefaultDirectEditorEdit(theRequest);
+ } else {
+ configuration.preEditAction(resolveSemanticElement());
+ Dialog dialog = null;
+ if(configuration instanceof IPopupEditorConfiguration) {
+ IPopupEditorHelper helper = ((IPopupEditorConfiguration)configuration).createPopupEditorHelper(this);
+ helper.showEditor();
+ return;
+ } else if(configuration instanceof IAdvancedEditorConfiguration) {
+ dialog = ((IAdvancedEditorConfiguration)configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
+ } else if(configuration instanceof IDirectEditorConfiguration) {
+ dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), ((IDirectEditorConfiguration)configuration).getTextToEdit(resolveSemanticElement()), (IDirectEditorConfiguration)configuration);
+ } else {
+ return;
+ }
+ final Dialog finalDialog = dialog;
+
+ if(Window.OK == dialog.open()) {
+ TransactionalEditingDomain domain = getEditingDomain();
+ RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
+
+ @Override
+ protected void doExecute() {
+ configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog)finalDialog).getValue());
+
+ }
+ };
+ domain.getCommandStack().execute(command);
+ }
+ }
+ break;
+ case IDirectEdition.DEFAULT_DIRECT_EDITOR:
+
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ break;
+ default:
+ break;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshLabel();
+ refreshFont();
+ refreshFontColor();
+ refreshUnderline();
+ refreshStrikeThrough();
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshLabel() {
+ EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
+ if(maskLabelPolicy == null) {
+ setLabelTextHelper(getFigure(), getLabelText());
+ setLabelIconHelper(getFigure(), getLabelIcon());
+ }
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshUnderline() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextUnderline(style.isUnderline());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshStrikeThrough() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextStrikeThrough(style.isStrikeThrough());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshFont() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null) {
+ FontData fontData = new FontData(style.getFontName(), style.getFontHeight(), (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
+ setFont(fontData);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setFontColor(Color color) {
+ getFigure().setForegroundColor(color);
+ }
+
+ /**
+ * @generated
+ */
+ protected void addSemanticListeners() {
+ if(getParser() instanceof ISemanticParser) {
+ EObject element = resolveSemanticElement();
+ parserElements = ((ISemanticParser)getParser()).getSemanticElementsBeingParsed(element);
+ for(int i = 0; i < parserElements.size(); i++) {
+ addListenerFilter("SemanticModel" + i, this, (EObject)parserElements.get(i)); //$NON-NLS-1$
+ }
+ } else {
+ super.addSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeSemanticListeners() {
+ if(parserElements != null) {
+ for(int i = 0; i < parserElements.size(); i++) {
+ removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
+ }
+ } else {
+ super.removeSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected AccessibleEditPart getAccessibleEditPart() {
+ if(accessibleEP == null) {
+ accessibleEP = new AccessibleGraphicalEditPart() {
+
+ public void getName(AccessibleEvent e) {
+ e.result = getLabelTextHelper(getFigure());
+ }
+ };
+ }
+ return accessibleEP;
+ }
+
+ /**
+ * @generated
+ */
+ private View getFontStyleOwnerView() {
+ return (View)getModel();
+ }
+
+ /**
+ * Returns the kind of associated editor for direct edition.
+ *
+ * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition
+ * @generated
+ */
+ public int getDirectEditionType() {
+ if(checkExtendedEditor()) {
+ initExtendedEditorConfiguration();
+ return IDirectEdition.EXTENDED_DIRECT_EDITOR;
+ }
+ if(checkDefaultEdition()) {
+ return IDirectEdition.DEFAULT_DIRECT_EDITOR;
+ }
+
+ // not a named element. no specific editor => do nothing
+ return IDirectEdition.NO_DIRECT_EDITION;
+ }
+
+ /**
+ * Checks if an extended editor is present.
+ *
+ * @return <code>true</code> if an extended editor is present.
+ * @generated
+ */
+ protected boolean checkExtendedEditor() {
+ if(resolveSemanticElement() != null) {
+ return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ return false;
+ }
+
+ /**
+ * Checks if a default direct edition is available
+ *
+ * @return <code>true</code> if a default direct edition is available
+ * @generated
+ */
+ protected boolean checkDefaultEdition() {
+ return (getParser() != null);
+ }
+
+ /**
+ * Initializes the extended editor configuration
+ *
+ * @generated
+ */
+ protected void initExtendedEditorConfiguration() {
+ if(configuration == null) {
+ final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("")) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else {
+ configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ }
+ }
+
+ /**
+ * Updates the preference configuration
+ *
+ * @generated
+ */
+ protected void updateExtendedEditorConfiguration() {
+ String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("") && languagePreferred != configuration.getLanguage()) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else if(IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
+ configuration = null;
+ }
+ }
+
+ /**
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
+ protected void performDefaultDirectEditorEdit(final Request theRequest) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void addNotationalListeners() {
+ super.addNotationalListeners();
+ addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeNotationalListeners() {
+ super.removeNotationalListeners();
+ removeListenerFilter("PrimaryView"); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void handleNotificationEvent(Notification event) {
+ refreshLabel();
+ Object feature = event.getFeature();
+ if(NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
+ Integer c = (Integer)event.getNewValue();
+ setFontColor(DiagramColorRegistry.getInstance().getColor(c));
+ } else if(NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
+ refreshUnderline();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
+ refreshStrikeThrough();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
+ refreshFont();
+ } else {
+ if(getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
+ refreshLabel();
+ }
+ if(getParser() instanceof ISemanticParser) {
+ ISemanticParser modelParser = (ISemanticParser)getParser();
+ if(modelParser.areSemanticElementsAffected(null, event)) {
+ removeSemanticListeners();
+ if(resolveSemanticElement() != null) {
+ addSemanticListeners();
+ }
+ refreshLabel();
+ }
+ }
+ }
+
+ if(event.getNewValue() instanceof EAnnotation && VisualInformationPapyrusConstant.DISPLAY_NAMELABELICON.equals(((EAnnotation)event.getNewValue()).getSource())) {
+ refreshLabel();
+ }
+
+ super.handleNotificationEvent(event);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createFigure() {
+ // Parent should assign one using setLabel() method
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ private static final String ADD_PARENT_MODEL = "AddParentModel";
+
+ /**
+ * @generated
+ */
+ public void activate() {
+ super.activate();
+ addOwnerElementListeners();
+ }
+
+ /**
+ * @generated
+ */
+ protected void addOwnerElementListeners() {
+ addListenerFilter(ADD_PARENT_MODEL, this, ((View)getParent().getModel())); //$NON-NLS-1$
+
+ }
+
+ /**
+ * @generated
+ */
+ public void deactivate() {
+ removeOwnerElementListeners();
+ super.deactivate();
+
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeOwnerElementListeners() {
+ removeListenerFilter(ADD_PARENT_MODEL);
+
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ConstraintSpecificationEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ConstraintSpecificationEditPart.java
new file mode 100644
index 00000000000..b165a56c677
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ConstraintSpecificationEditPart.java
@@ -0,0 +1,772 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.emf.transaction.RunnableWithResult;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.AccessibleEditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.requests.DirectEditRequest;
+import org.eclipse.gef.tools.DirectEditManager;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.CompartmentEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
+import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
+import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
+import org.eclipse.gmf.runtime.notation.FontStyle;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
+import org.eclipse.jface.viewers.ICellEditorValidator;
+import org.eclipse.jface.window.Window;
+import org.eclipse.papyrus.diagram.common.directedit.MultilineLabelDirectEditManager;
+import org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition;
+import org.eclipse.papyrus.diagram.common.editpolicies.IMaskManagedLabelEditPolicy;
+import org.eclipse.papyrus.diagram.common.figure.node.ConstraintFigure;
+import org.eclipse.papyrus.diagram.common.figure.node.ILabelFigure;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLTextSelectionEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.diagram.composite.providers.UMLParserProvider;
+import org.eclipse.papyrus.extensionpoints.editors.Activator;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
+import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
+import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.AccessibleEvent;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.FontData;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.ui.PlatformUI;
+
+/**
+ * @generated
+ */
+public class ConstraintSpecificationEditPart extends CompartmentEditPart implements ITextAwareEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 6039;
+
+ /**
+ * @generated
+ */
+ private DirectEditManager manager;
+
+ /**
+ * @generated
+ */
+ private IParser parser;
+
+ /**
+ * @generated
+ */
+ private List<?> parserElements;
+
+ /**
+ * @generated
+ */
+ private String defaultText;
+
+ /**
+ * direct edition mode (default, undefined, registered editor, etc.)
+ *
+ * @generated
+ */
+ protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
+
+ /**
+ * configuration from a registered edit dialog
+ *
+ * @generated
+ */
+ protected IDirectEditorConfiguration configuration;
+
+ /**
+ * @generated
+ */
+ public ConstraintSpecificationEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
+ installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new CompositeStructureDiagramEditPart.NodeLabelDragPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelTextHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getText();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getText();
+ } else {
+ return ((Label)figure).getText();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelTextHelper(IFigure figure, String text) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setText(text);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setText(text);
+ } else {
+ ((Label)figure).setText(text);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIconHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getIcon();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getIcon();
+ } else {
+ return ((Label)figure).getIcon();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelIconHelper(IFigure figure, Image icon) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setIcon(icon);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setIcon(icon);
+ } else {
+ ((Label)figure).setIcon(icon);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabel(ConstraintFigure figure) {
+ unregisterVisuals();
+ setFigure(figure);
+ defaultText = getLabelTextHelper(figure);
+ registerVisuals();
+ refreshVisuals();
+ }
+
+ /**
+ * @generated
+ */
+ protected List getModelChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject getParserElement() {
+ return resolveSemanticElement();
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIcon() {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelText() {
+ String text = null;
+ EObject parserElement = getParserElement();
+ if(parserElement != null && getParser() != null) {
+ text = getParser().getPrintString(new EObjectAdapter(parserElement), getParserOptions().intValue());
+ }
+ if(text == null || text.length() == 0) {
+ text = defaultText;
+ }
+ return text;
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabelText(String text) {
+ setLabelTextHelper(getFigure(), text);
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public String getEditText() {
+ if(getParserElement() == null || getParser() == null) {
+ return ""; //$NON-NLS-1$
+ }
+ return getParser().getEditString(new EObjectAdapter(getParserElement()), getParserOptions().intValue());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean isEditable() {
+ return getParser() != null;
+ }
+
+ /**
+ * @generated
+ */
+ public ICellEditorValidator getEditTextValidator() {
+ return new ICellEditorValidator() {
+
+ public String isValid(final Object value) {
+ if(value instanceof String) {
+ final EObject element = getParserElement();
+ final IParser parser = getParser();
+ try {
+ IParserEditStatus valid = (IParserEditStatus)getEditingDomain().runExclusive(new RunnableWithResult.Impl() {
+
+ public void run() {
+ setResult(parser.isValidEditString(new EObjectAdapter(element), (String)value));
+ }
+ });
+ return valid.getCode() == ParserEditStatus.EDITABLE ? null : valid.getMessage();
+ } catch (InterruptedException ie) {
+ ie.printStackTrace();
+ }
+ }
+
+ // shouldn't get here
+ return null;
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ public IContentAssistProcessor getCompletionProcessor() {
+ if(getParserElement() == null || getParser() == null) {
+ return null;
+ }
+ return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
+ }
+
+ /**
+ * @generated
+ */
+ public ParserOptions getParserOptions() {
+ return ParserOptions.NONE;
+ }
+
+ /**
+ * @generated
+ */
+ public IParser getParser() {
+ if(parser == null) {
+ parser = UMLParserProvider.getParser(UMLElementTypes.Constraint_2114, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.diagram.composite.edit.parts.ConstraintSpecificationEditPart.VISUAL_ID));
+ }
+ return parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected DirectEditManager getManager() {
+ if(manager == null) {
+ setManager(new MultilineLabelDirectEditManager(this, MultilineLabelDirectEditManager.getTextCellEditorClass(this), UMLEditPartFactory.getTextCellEditorLocator(this)));
+ }
+ return manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setManager(DirectEditManager manager) {
+ this.manager = manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit() {
+ getManager().show();
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit(Point eventLocation) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(eventLocation.getSWTPoint());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void performDirectEdit(char initialCharacter) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(initialCharacter);
+ } else {
+ performDirectEdit();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEditRequest(Request request) {
+
+ final Request theRequest = request;
+
+ if(IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
+ directEditionMode = getDirectEditionType();
+ }
+ switch(directEditionMode) {
+ case IDirectEdition.NO_DIRECT_EDITION:
+ // no direct edition mode => does nothing
+ return;
+ case IDirectEdition.EXTENDED_DIRECT_EDITOR:
+ updateExtendedEditorConfiguration();
+ if(configuration == null || configuration.getLanguage() == null) {
+ performDefaultDirectEditorEdit(theRequest);
+ } else {
+ configuration.preEditAction(resolveSemanticElement());
+ Dialog dialog = null;
+ if(configuration instanceof IPopupEditorConfiguration) {
+ IPopupEditorHelper helper = ((IPopupEditorConfiguration)configuration).createPopupEditorHelper(this);
+ helper.showEditor();
+ return;
+ } else if(configuration instanceof IAdvancedEditorConfiguration) {
+ dialog = ((IAdvancedEditorConfiguration)configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
+ } else if(configuration instanceof IDirectEditorConfiguration) {
+ dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), ((IDirectEditorConfiguration)configuration).getTextToEdit(resolveSemanticElement()), (IDirectEditorConfiguration)configuration);
+ } else {
+ return;
+ }
+ final Dialog finalDialog = dialog;
+
+ if(Window.OK == dialog.open()) {
+ TransactionalEditingDomain domain = getEditingDomain();
+ RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
+
+ @Override
+ protected void doExecute() {
+ configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog)finalDialog).getValue());
+
+ }
+ };
+ domain.getCommandStack().execute(command);
+ }
+ }
+ break;
+ case IDirectEdition.DEFAULT_DIRECT_EDITOR:
+
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ break;
+ default:
+ break;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshLabel();
+ refreshFont();
+ refreshFontColor();
+ refreshUnderline();
+ refreshStrikeThrough();
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshLabel() {
+ EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
+ if(maskLabelPolicy == null) {
+ setLabelTextHelper(getFigure(), getLabelText());
+ setLabelIconHelper(getFigure(), getLabelIcon());
+ }
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshUnderline() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextUnderline(style.isUnderline());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshStrikeThrough() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextStrikeThrough(style.isStrikeThrough());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshFont() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null) {
+ FontData fontData = new FontData(style.getFontName(), style.getFontHeight(), (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
+ setFont(fontData);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setFontColor(Color color) {
+ getFigure().setForegroundColor(color);
+ }
+
+ /**
+ * @generated
+ */
+ protected void addSemanticListeners() {
+ if(getParser() instanceof ISemanticParser) {
+ EObject element = resolveSemanticElement();
+ parserElements = ((ISemanticParser)getParser()).getSemanticElementsBeingParsed(element);
+ for(int i = 0; i < parserElements.size(); i++) {
+ addListenerFilter("SemanticModel" + i, this, (EObject)parserElements.get(i)); //$NON-NLS-1$
+ }
+ } else {
+ super.addSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeSemanticListeners() {
+ if(parserElements != null) {
+ for(int i = 0; i < parserElements.size(); i++) {
+ removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
+ }
+ } else {
+ super.removeSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected AccessibleEditPart getAccessibleEditPart() {
+ if(accessibleEP == null) {
+ accessibleEP = new AccessibleGraphicalEditPart() {
+
+ public void getName(AccessibleEvent e) {
+ e.result = getLabelTextHelper(getFigure());
+ }
+ };
+ }
+ return accessibleEP;
+ }
+
+ /**
+ * @generated
+ */
+ private View getFontStyleOwnerView() {
+ return getPrimaryView();
+ }
+
+ /**
+ * Returns the kind of associated editor for direct edition.
+ *
+ * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition
+ * @generated
+ */
+ public int getDirectEditionType() {
+ if(checkExtendedEditor()) {
+ initExtendedEditorConfiguration();
+ return IDirectEdition.EXTENDED_DIRECT_EDITOR;
+ }
+ if(checkDefaultEdition()) {
+ return IDirectEdition.DEFAULT_DIRECT_EDITOR;
+ }
+
+ // not a named element. no specific editor => do nothing
+ return IDirectEdition.NO_DIRECT_EDITION;
+ }
+
+ /**
+ * Checks if an extended editor is present.
+ *
+ * @return <code>true</code> if an extended editor is present.
+ * @generated
+ */
+ protected boolean checkExtendedEditor() {
+ if(resolveSemanticElement() != null) {
+ return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ return false;
+ }
+
+ /**
+ * Checks if a default direct edition is available
+ *
+ * @return <code>true</code> if a default direct edition is available
+ * @generated
+ */
+ protected boolean checkDefaultEdition() {
+ return (getParser() != null);
+ }
+
+ /**
+ * Initializes the extended editor configuration
+ *
+ * @generated
+ */
+ protected void initExtendedEditorConfiguration() {
+ if(configuration == null) {
+ final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("")) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else {
+ configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ }
+ }
+
+ /**
+ * Updates the preference configuration
+ *
+ * @generated
+ */
+ protected void updateExtendedEditorConfiguration() {
+ String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("") && languagePreferred != configuration.getLanguage()) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else if(IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
+ configuration = null;
+ }
+ }
+
+ /**
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
+ protected void performDefaultDirectEditorEdit(final Request theRequest) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void addNotationalListeners() {
+ super.addNotationalListeners();
+ addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeNotationalListeners() {
+ super.removeNotationalListeners();
+ removeListenerFilter("PrimaryView"); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void handleNotificationEvent(Notification event) {
+ refreshLabel();
+ Object feature = event.getFeature();
+ if(NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
+ Integer c = (Integer)event.getNewValue();
+ setFontColor(DiagramColorRegistry.getInstance().getColor(c));
+ } else if(NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
+ refreshUnderline();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
+ refreshStrikeThrough();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
+ refreshFont();
+ } else {
+ if(getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
+ refreshLabel();
+ }
+ if(getParser() instanceof ISemanticParser) {
+ ISemanticParser modelParser = (ISemanticParser)getParser();
+ if(modelParser.areSemanticElementsAffected(null, event)) {
+ removeSemanticListeners();
+ if(resolveSemanticElement() != null) {
+ addSemanticListeners();
+ }
+ refreshLabel();
+ }
+ }
+ }
+
+ super.handleNotificationEvent(event);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createFigure() {
+ // Parent should assign one using setLabel() method
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ private static final String ADD_PARENT_MODEL = "AddParentModel";
+
+ /**
+ * @generated
+ */
+ public void activate() {
+ super.activate();
+ addOwnerElementListeners();
+ }
+
+ /**
+ * @generated
+ */
+ protected void addOwnerElementListeners() {
+ addListenerFilter(ADD_PARENT_MODEL, this, ((View)getParent().getModel())); //$NON-NLS-1$
+
+ }
+
+ /**
+ * @generated
+ */
+ public void deactivate() {
+ removeOwnerElementListeners();
+ super.deactivate();
+
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeOwnerElementListeners() {
+ removeListenerFilter(ADD_PARENT_MODEL);
+
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ConstraintSpecificationEditPartCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ConstraintSpecificationEditPartCN.java
new file mode 100644
index 00000000000..184021fcdea
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ConstraintSpecificationEditPartCN.java
@@ -0,0 +1,772 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.emf.transaction.RunnableWithResult;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.AccessibleEditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.requests.DirectEditRequest;
+import org.eclipse.gef.tools.DirectEditManager;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.CompartmentEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
+import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
+import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
+import org.eclipse.gmf.runtime.notation.FontStyle;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
+import org.eclipse.jface.viewers.ICellEditorValidator;
+import org.eclipse.jface.window.Window;
+import org.eclipse.papyrus.diagram.common.directedit.MultilineLabelDirectEditManager;
+import org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition;
+import org.eclipse.papyrus.diagram.common.editpolicies.IMaskManagedLabelEditPolicy;
+import org.eclipse.papyrus.diagram.common.figure.node.ConstraintFigure;
+import org.eclipse.papyrus.diagram.common.figure.node.ILabelFigure;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLTextSelectionEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.diagram.composite.providers.UMLParserProvider;
+import org.eclipse.papyrus.extensionpoints.editors.Activator;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
+import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
+import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.AccessibleEvent;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.FontData;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.ui.PlatformUI;
+
+/**
+ * @generated
+ */
+public class ConstraintSpecificationEditPartCN extends CompartmentEditPart implements ITextAwareEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 6049;
+
+ /**
+ * @generated
+ */
+ private DirectEditManager manager;
+
+ /**
+ * @generated
+ */
+ private IParser parser;
+
+ /**
+ * @generated
+ */
+ private List<?> parserElements;
+
+ /**
+ * @generated
+ */
+ private String defaultText;
+
+ /**
+ * direct edition mode (default, undefined, registered editor, etc.)
+ *
+ * @generated
+ */
+ protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
+
+ /**
+ * configuration from a registered edit dialog
+ *
+ * @generated
+ */
+ protected IDirectEditorConfiguration configuration;
+
+ /**
+ * @generated
+ */
+ public ConstraintSpecificationEditPartCN(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
+ installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new CompositeStructureDiagramEditPart.NodeLabelDragPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelTextHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getText();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getText();
+ } else {
+ return ((Label)figure).getText();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelTextHelper(IFigure figure, String text) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setText(text);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setText(text);
+ } else {
+ ((Label)figure).setText(text);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIconHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getIcon();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getIcon();
+ } else {
+ return ((Label)figure).getIcon();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelIconHelper(IFigure figure, Image icon) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setIcon(icon);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setIcon(icon);
+ } else {
+ ((Label)figure).setIcon(icon);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabel(ConstraintFigure figure) {
+ unregisterVisuals();
+ setFigure(figure);
+ defaultText = getLabelTextHelper(figure);
+ registerVisuals();
+ refreshVisuals();
+ }
+
+ /**
+ * @generated
+ */
+ protected List getModelChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject getParserElement() {
+ return resolveSemanticElement();
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIcon() {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelText() {
+ String text = null;
+ EObject parserElement = getParserElement();
+ if(parserElement != null && getParser() != null) {
+ text = getParser().getPrintString(new EObjectAdapter(parserElement), getParserOptions().intValue());
+ }
+ if(text == null || text.length() == 0) {
+ text = defaultText;
+ }
+ return text;
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabelText(String text) {
+ setLabelTextHelper(getFigure(), text);
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public String getEditText() {
+ if(getParserElement() == null || getParser() == null) {
+ return ""; //$NON-NLS-1$
+ }
+ return getParser().getEditString(new EObjectAdapter(getParserElement()), getParserOptions().intValue());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean isEditable() {
+ return getParser() != null;
+ }
+
+ /**
+ * @generated
+ */
+ public ICellEditorValidator getEditTextValidator() {
+ return new ICellEditorValidator() {
+
+ public String isValid(final Object value) {
+ if(value instanceof String) {
+ final EObject element = getParserElement();
+ final IParser parser = getParser();
+ try {
+ IParserEditStatus valid = (IParserEditStatus)getEditingDomain().runExclusive(new RunnableWithResult.Impl() {
+
+ public void run() {
+ setResult(parser.isValidEditString(new EObjectAdapter(element), (String)value));
+ }
+ });
+ return valid.getCode() == ParserEditStatus.EDITABLE ? null : valid.getMessage();
+ } catch (InterruptedException ie) {
+ ie.printStackTrace();
+ }
+ }
+
+ // shouldn't get here
+ return null;
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ public IContentAssistProcessor getCompletionProcessor() {
+ if(getParserElement() == null || getParser() == null) {
+ return null;
+ }
+ return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
+ }
+
+ /**
+ * @generated
+ */
+ public ParserOptions getParserOptions() {
+ return ParserOptions.NONE;
+ }
+
+ /**
+ * @generated
+ */
+ public IParser getParser() {
+ if(parser == null) {
+ parser = UMLParserProvider.getParser(UMLElementTypes.Constraint_3120, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.diagram.composite.edit.parts.ConstraintSpecificationEditPartCN.VISUAL_ID));
+ }
+ return parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected DirectEditManager getManager() {
+ if(manager == null) {
+ setManager(new MultilineLabelDirectEditManager(this, MultilineLabelDirectEditManager.getTextCellEditorClass(this), UMLEditPartFactory.getTextCellEditorLocator(this)));
+ }
+ return manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setManager(DirectEditManager manager) {
+ this.manager = manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit() {
+ getManager().show();
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit(Point eventLocation) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(eventLocation.getSWTPoint());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void performDirectEdit(char initialCharacter) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(initialCharacter);
+ } else {
+ performDirectEdit();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEditRequest(Request request) {
+
+ final Request theRequest = request;
+
+ if(IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
+ directEditionMode = getDirectEditionType();
+ }
+ switch(directEditionMode) {
+ case IDirectEdition.NO_DIRECT_EDITION:
+ // no direct edition mode => does nothing
+ return;
+ case IDirectEdition.EXTENDED_DIRECT_EDITOR:
+ updateExtendedEditorConfiguration();
+ if(configuration == null || configuration.getLanguage() == null) {
+ performDefaultDirectEditorEdit(theRequest);
+ } else {
+ configuration.preEditAction(resolveSemanticElement());
+ Dialog dialog = null;
+ if(configuration instanceof IPopupEditorConfiguration) {
+ IPopupEditorHelper helper = ((IPopupEditorConfiguration)configuration).createPopupEditorHelper(this);
+ helper.showEditor();
+ return;
+ } else if(configuration instanceof IAdvancedEditorConfiguration) {
+ dialog = ((IAdvancedEditorConfiguration)configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
+ } else if(configuration instanceof IDirectEditorConfiguration) {
+ dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), ((IDirectEditorConfiguration)configuration).getTextToEdit(resolveSemanticElement()), (IDirectEditorConfiguration)configuration);
+ } else {
+ return;
+ }
+ final Dialog finalDialog = dialog;
+
+ if(Window.OK == dialog.open()) {
+ TransactionalEditingDomain domain = getEditingDomain();
+ RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
+
+ @Override
+ protected void doExecute() {
+ configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog)finalDialog).getValue());
+
+ }
+ };
+ domain.getCommandStack().execute(command);
+ }
+ }
+ break;
+ case IDirectEdition.DEFAULT_DIRECT_EDITOR:
+
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ break;
+ default:
+ break;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshLabel();
+ refreshFont();
+ refreshFontColor();
+ refreshUnderline();
+ refreshStrikeThrough();
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshLabel() {
+ EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
+ if(maskLabelPolicy == null) {
+ setLabelTextHelper(getFigure(), getLabelText());
+ setLabelIconHelper(getFigure(), getLabelIcon());
+ }
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshUnderline() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextUnderline(style.isUnderline());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshStrikeThrough() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextStrikeThrough(style.isStrikeThrough());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshFont() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null) {
+ FontData fontData = new FontData(style.getFontName(), style.getFontHeight(), (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
+ setFont(fontData);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setFontColor(Color color) {
+ getFigure().setForegroundColor(color);
+ }
+
+ /**
+ * @generated
+ */
+ protected void addSemanticListeners() {
+ if(getParser() instanceof ISemanticParser) {
+ EObject element = resolveSemanticElement();
+ parserElements = ((ISemanticParser)getParser()).getSemanticElementsBeingParsed(element);
+ for(int i = 0; i < parserElements.size(); i++) {
+ addListenerFilter("SemanticModel" + i, this, (EObject)parserElements.get(i)); //$NON-NLS-1$
+ }
+ } else {
+ super.addSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeSemanticListeners() {
+ if(parserElements != null) {
+ for(int i = 0; i < parserElements.size(); i++) {
+ removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
+ }
+ } else {
+ super.removeSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected AccessibleEditPart getAccessibleEditPart() {
+ if(accessibleEP == null) {
+ accessibleEP = new AccessibleGraphicalEditPart() {
+
+ public void getName(AccessibleEvent e) {
+ e.result = getLabelTextHelper(getFigure());
+ }
+ };
+ }
+ return accessibleEP;
+ }
+
+ /**
+ * @generated
+ */
+ private View getFontStyleOwnerView() {
+ return getPrimaryView();
+ }
+
+ /**
+ * Returns the kind of associated editor for direct edition.
+ *
+ * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition
+ * @generated
+ */
+ public int getDirectEditionType() {
+ if(checkExtendedEditor()) {
+ initExtendedEditorConfiguration();
+ return IDirectEdition.EXTENDED_DIRECT_EDITOR;
+ }
+ if(checkDefaultEdition()) {
+ return IDirectEdition.DEFAULT_DIRECT_EDITOR;
+ }
+
+ // not a named element. no specific editor => do nothing
+ return IDirectEdition.NO_DIRECT_EDITION;
+ }
+
+ /**
+ * Checks if an extended editor is present.
+ *
+ * @return <code>true</code> if an extended editor is present.
+ * @generated
+ */
+ protected boolean checkExtendedEditor() {
+ if(resolveSemanticElement() != null) {
+ return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ return false;
+ }
+
+ /**
+ * Checks if a default direct edition is available
+ *
+ * @return <code>true</code> if a default direct edition is available
+ * @generated
+ */
+ protected boolean checkDefaultEdition() {
+ return (getParser() != null);
+ }
+
+ /**
+ * Initializes the extended editor configuration
+ *
+ * @generated
+ */
+ protected void initExtendedEditorConfiguration() {
+ if(configuration == null) {
+ final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("")) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else {
+ configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ }
+ }
+
+ /**
+ * Updates the preference configuration
+ *
+ * @generated
+ */
+ protected void updateExtendedEditorConfiguration() {
+ String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("") && languagePreferred != configuration.getLanguage()) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else if(IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
+ configuration = null;
+ }
+ }
+
+ /**
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
+ protected void performDefaultDirectEditorEdit(final Request theRequest) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void addNotationalListeners() {
+ super.addNotationalListeners();
+ addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeNotationalListeners() {
+ super.removeNotationalListeners();
+ removeListenerFilter("PrimaryView"); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void handleNotificationEvent(Notification event) {
+ refreshLabel();
+ Object feature = event.getFeature();
+ if(NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
+ Integer c = (Integer)event.getNewValue();
+ setFontColor(DiagramColorRegistry.getInstance().getColor(c));
+ } else if(NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
+ refreshUnderline();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
+ refreshStrikeThrough();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
+ refreshFont();
+ } else {
+ if(getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
+ refreshLabel();
+ }
+ if(getParser() instanceof ISemanticParser) {
+ ISemanticParser modelParser = (ISemanticParser)getParser();
+ if(modelParser.areSemanticElementsAffected(null, event)) {
+ removeSemanticListeners();
+ if(resolveSemanticElement() != null) {
+ addSemanticListeners();
+ }
+ refreshLabel();
+ }
+ }
+ }
+
+ super.handleNotificationEvent(event);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createFigure() {
+ // Parent should assign one using setLabel() method
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ private static final String ADD_PARENT_MODEL = "AddParentModel";
+
+ /**
+ * @generated
+ */
+ public void activate() {
+ super.activate();
+ addOwnerElementListeners();
+ }
+
+ /**
+ * @generated
+ */
+ protected void addOwnerElementListeners() {
+ addListenerFilter(ADD_PARENT_MODEL, this, ((View)getParent().getModel())); //$NON-NLS-1$
+
+ }
+
+ /**
+ * @generated
+ */
+ public void deactivate() {
+ removeOwnerElementListeners();
+ super.deactivate();
+
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeOwnerElementListeners() {
+ removeListenerFilter(ADD_PARENT_MODEL);
+
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/CreationEventEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/CreationEventEditPart.java
new file mode 100644
index 00000000000..4431cf5130d
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/CreationEventEditPart.java
@@ -0,0 +1,5167 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.ArrayList;
+import java.util.LinkedList;
+import java.util.List;
+
+import org.eclipse.draw2d.ColorConstants;
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.RectangleFigure;
+import org.eclipse.draw2d.Shape;
+import org.eclipse.draw2d.StackLayout;
+import org.eclipse.emf.ecore.EStructuralFeature;
+import org.eclipse.gef.EditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.editpolicies.LayoutEditPolicy;
+import org.eclipse.gef.editpolicies.NonResizableEditPolicy;
+import org.eclipse.gef.requests.CreateRequest;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ShapeNodeEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.FigureUtilities;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.gef.ui.figures.DefaultSizeNodeFigure;
+import org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.jface.preference.PreferenceConverter;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.HyperLinkPopupBarEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.QualifiedNameDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.helper.PreferenceInitializerForElementHelper;
+import org.eclipse.papyrus.diagram.composite.edit.policies.CreationEventItemSemanticEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorPlugin;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter;
+import org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.Font;
+import org.eclipse.swt.widgets.Display;
+
+/**
+ * @generated
+ */
+public class CreationEventEditPart extends
+
+ShapeNodeEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 2090;
+
+ /**
+ * @generated
+ */
+ protected IFigure contentPane;
+
+ /**
+ * @generated
+ */
+ protected IFigure primaryShape;
+
+ /**
+ * @generated
+ */
+ public CreationEventEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new CreationEventItemSemanticEditPolicy());
+ installEditPolicy(EditPolicy.LAYOUT_ROLE, createLayoutEditPolicy());
+ installEditPolicy(QualifiedNameDisplayEditPolicy.QUALIFIED_NAME_POLICY, new QualifiedNameDisplayEditPolicy());
+ installEditPolicy(AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeNodeLabelDisplayEditPolicy());
+ installEditPolicy(EditPolicyRoles.POPUPBAR_ROLE, new HyperLinkPopupBarEditPolicy());
+ // XXX need an SCR to runtime to have another abstract superclass that would let children add reasonable editpolicies
+ // removeEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CONNECTION_HANDLES_ROLE);
+ }
+
+ /**
+ * @generated
+ */
+ protected LayoutEditPolicy createLayoutEditPolicy() {
+ org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy lep = new org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy() {
+
+ protected EditPolicy createChildEditPolicy(EditPart child) {
+ EditPolicy result = child.getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(result == null) {
+ result = new NonResizableEditPolicy();
+ }
+ return result;
+ }
+
+ protected Command getMoveChildrenCommand(Request request) {
+ return null;
+ }
+
+ protected Command getCreateCommand(CreateRequest request) {
+ return null;
+ }
+ };
+ return lep;
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createNodeShape() {
+ return primaryShape = new NamedElementDescriptor();
+ }
+
+ /**
+ * @generated
+ */
+ public NamedElementDescriptor getPrimaryShape() {
+ return (NamedElementDescriptor)primaryShape;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean addFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof CreationEventNameEditPart) {
+ ((CreationEventNameEditPart)childEditPart).setLabel(getPrimaryShape().getNamedElementNameLabel());
+ return true;
+ }
+
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean removeFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof CreationEventNameEditPart) {
+ return true;
+ }
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected void addChildVisual(EditPart childEditPart, int index) {
+ if(addFixedChild(childEditPart)) {
+ return;
+ }
+ super.addChildVisual(childEditPart, -1);
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeChildVisual(EditPart childEditPart) {
+ if(removeFixedChild(childEditPart)) {
+ return;
+ }
+ super.removeChildVisual(childEditPart);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure getContentPaneFor(IGraphicalEditPart editPart) {
+ return getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ protected NodeFigure createNodePlate() {
+ String prefElementId = "CreationEvent";
+ IPreferenceStore store = UMLDiagramEditorPlugin.getInstance().getPreferenceStore();
+ String preferenceConstantWitdh = PreferenceInitializerForElementHelper.getpreferenceKey(getNotationView(), prefElementId, PreferenceConstantHelper.WIDTH);
+ String preferenceConstantHeight = PreferenceInitializerForElementHelper.getpreferenceKey(getNotationView(), prefElementId, PreferenceConstantHelper.HEIGHT);
+ DefaultSizeNodeFigure result = new DefaultSizeNodeFigure(store.getInt(preferenceConstantWitdh), store.getInt(preferenceConstantHeight));
+
+ return result;
+ }
+
+ /**
+ * Creates figure for this edit part.
+ *
+ * Body of this method does not depend on settings in generation model
+ * so you may safely remove <i>generated</i> tag and modify it.
+ *
+ * @generated
+ */
+ protected NodeFigure createNodeFigure() {
+ NodeFigure figure = createNodePlate();
+ figure.setLayoutManager(new StackLayout());
+ IFigure shape = createNodeShape();
+ figure.add(shape);
+ contentPane = setupContentPane(shape);
+ return figure;
+ }
+
+ /**
+ * Default implementation treats passed figure as content pane.
+ * Respects layout one may have set for generated figure.
+ *
+ * @param nodeShape
+ * instance of generated figure class
+ * @generated
+ */
+ protected IFigure setupContentPane(IFigure nodeShape) {
+ if(nodeShape.getLayoutManager() == null) {
+ ConstrainedToolbarLayout layout = new ConstrainedToolbarLayout();
+ layout.setSpacing(5);
+ nodeShape.setLayoutManager(layout);
+ }
+ return nodeShape; // use nodeShape itself as contentPane
+ }
+
+ /**
+ * @generated
+ */
+ public IFigure getContentPane() {
+ if(contentPane != null) {
+ return contentPane;
+ }
+ return super.getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ protected void setForegroundColor(Color color) {
+ if(primaryShape != null) {
+ primaryShape.setForegroundColor(color);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLineWidth(int width) {
+ if(primaryShape instanceof Shape) {
+ ((Shape)primaryShape).setLineWidth(width);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLineType(int style) {
+ if(primaryShape instanceof Shape) {
+ ((Shape)primaryShape).setLineStyle(style);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public EditPart getPrimaryChildEditPart() {
+ return getChildBySemanticHint(UMLVisualIDRegistry.getType(CreationEventNameEditPart.VISUAL_ID));
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnSource() {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(11);
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ types.add(UMLElementTypes.Substitution_4011);
+ types.add(UMLElementTypes.Realization_4006);
+ types.add(UMLElementTypes.Manifestation_4012);
+ types.add(UMLElementTypes.Abstraction_4007);
+ types.add(UMLElementTypes.Usage_4008);
+ types.add(UMLElementTypes.Deployment_4009);
+ types.add(UMLElementTypes.Dependency_4017);
+ types.add(UMLElementTypes.Dependency_4010);
+ types.add(UMLElementTypes.InformationFlow_4021);
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnSourceAndTarget(IGraphicalEditPart targetEditPart) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.CreationEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.CreationEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.CreationEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.CreationEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.CreationEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.CreationEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.CreationEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.CreationEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.CreationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.CreationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.CreationEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMATypesForTarget(IElementType relationshipType) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(relationshipType == UMLElementTypes.ComponentRealization_4004) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InterfaceRealization_4005) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Substitution_4011) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Realization_4006) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Manifestation_4012) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Abstraction_4007) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Usage_4008) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Deployment_4009) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4017) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4010) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InformationFlow_4021) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnTarget() {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(15);
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ types.add(UMLElementTypes.Substitution_4011);
+ types.add(UMLElementTypes.Realization_4006);
+ types.add(UMLElementTypes.Manifestation_4012);
+ types.add(UMLElementTypes.Abstraction_4007);
+ types.add(UMLElementTypes.Usage_4008);
+ types.add(UMLElementTypes.Deployment_4009);
+ types.add(UMLElementTypes.Dependency_4017);
+ types.add(UMLElementTypes.Dependency_4010);
+ types.add(UMLElementTypes.TimeObservationEvent_4018);
+ types.add(UMLElementTypes.DurationObservationEvent_4019);
+ types.add(UMLElementTypes.InformationFlow_4021);
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMATypesForSource(IElementType relationshipType) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(relationshipType == UMLElementTypes.CommentAnnotatedElement_4002) {
+ types.add(UMLElementTypes.Comment_2109);
+ types.add(UMLElementTypes.Comment_3097);
+ } else if(relationshipType == UMLElementTypes.ConstraintConstrainedElement_4003) {
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.ComponentRealization_4004) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InterfaceRealization_4005) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Substitution_4011) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Realization_4006) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Manifestation_4012) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Abstraction_4007) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Usage_4008) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Deployment_4009) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4017) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4010) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.TimeObservationEvent_4018) {
+ types.add(UMLElementTypes.TimeObservation_2094);
+ } else if(relationshipType == UMLElementTypes.DurationObservationEvent_4019) {
+ types.add(UMLElementTypes.DurationObservation_2093);
+ } else if(relationshipType == UMLElementTypes.InformationFlow_4021) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public class NamedElementDescriptor extends RectangleFigure {
+
+ /**
+ * @generated
+ */
+ private WrappingLabel fNamedElementNameLabel;
+
+ /**
+ * @generated
+ */
+ public NamedElementDescriptor() {
+ this.setLineWidth(1);
+ this.setForegroundColor(ColorConstants.black);
+ createContents();
+ }
+
+ /**
+ * @generated
+ */
+ private void createContents() {
+
+ fNamedElementNameLabel = new WrappingLabel();
+ fNamedElementNameLabel.setText("");
+ fNamedElementNameLabel.setForegroundColor(ColorConstants.black);
+
+ fNamedElementNameLabel.setFont(FNAMEDELEMENTNAMELABEL_FONT);
+
+ this.add(fNamedElementNameLabel);
+
+ }
+
+ /**
+ * @generated
+ */
+ private boolean myUseLocalCoordinates = false;
+
+ /**
+ * @generated
+ */
+ protected boolean useLocalCoordinates() {
+ return myUseLocalCoordinates;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setUseLocalCoordinates(boolean useLocalCoordinates) {
+ myUseLocalCoordinates = useLocalCoordinates;
+ }
+
+ /**
+ * @generated
+ */
+ public WrappingLabel getNamedElementNameLabel() {
+ return fNamedElementNameLabel;
+ }
+
+ }
+
+ /**
+ * @generated
+ */
+ static final Font FNAMEDELEMENTNAMELABEL_FONT = new Font(Display.getCurrent(), "Arial", 10, SWT.BOLD);
+
+ /**
+ * @generated
+ */
+ @Override
+ public Object getPreferredValue(EStructuralFeature feature) {
+ IPreferenceStore preferenceStore = (IPreferenceStore)getDiagramPreferencesHint().getPreferenceStore();
+ Object result = null;
+
+ if(feature == NotationPackage.eINSTANCE.getLineStyle_LineColor() || feature == NotationPackage.eINSTANCE.getFontStyle_FontColor() || feature == NotationPackage.eINSTANCE.getFillStyle_FillColor()) {
+ String prefColor = null;
+ if(feature == NotationPackage.eINSTANCE.getLineStyle_LineColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("CreationEvent", PreferenceConstantHelper.COLOR_LINE);
+ } else if(feature == NotationPackage.eINSTANCE.getFontStyle_FontColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("CreationEvent", PreferenceConstantHelper.COLOR_FONT);
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_FillColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("CreationEvent", PreferenceConstantHelper.COLOR_FILL);
+ }
+ result = FigureUtilities.RGBToInteger(PreferenceConverter.getColor((IPreferenceStore)preferenceStore, prefColor));
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_Transparency() || feature == NotationPackage.eINSTANCE.getFillStyle_Gradient()) {
+ String prefGradient = PreferenceConstantHelper.getElementConstant("CreationEvent", PreferenceConstantHelper.COLOR_GRADIENT);
+ GradientPreferenceConverter gradientPreferenceConverter = new GradientPreferenceConverter(preferenceStore.getString(prefGradient));
+ if(feature == NotationPackage.eINSTANCE.getFillStyle_Transparency()) {
+ result = new Integer(gradientPreferenceConverter.getTransparency());
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_Gradient()) {
+ result = gradientPreferenceConverter.getGradientData();
+ }
+ }
+
+ if(result == null) {
+ result = getStructuralFeatureValue(feature);
+ }
+ return result;
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/CreationEventNameEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/CreationEventNameEditPart.java
new file mode 100644
index 00000000000..b5c0d3925dd
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/CreationEventNameEditPart.java
@@ -0,0 +1,791 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EAnnotation;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.emf.transaction.RunnableWithResult;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.AccessibleEditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.requests.DirectEditRequest;
+import org.eclipse.gef.tools.DirectEditManager;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.CompartmentEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
+import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
+import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
+import org.eclipse.gmf.runtime.notation.FontStyle;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
+import org.eclipse.jface.viewers.ICellEditorValidator;
+import org.eclipse.jface.window.Window;
+import org.eclipse.papyrus.diagram.common.directedit.MultilineLabelDirectEditManager;
+import org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition;
+import org.eclipse.papyrus.diagram.common.editpolicies.IMaskManagedLabelEditPolicy;
+import org.eclipse.papyrus.diagram.common.figure.node.ILabelFigure;
+import org.eclipse.papyrus.diagram.common.util.DiagramEditPartsUtil;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLTextSelectionEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.diagram.composite.providers.UMLParserProvider;
+import org.eclipse.papyrus.extensionpoints.editors.Activator;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
+import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
+import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
+import org.eclipse.papyrus.umlutils.ui.VisualInformationPapyrusConstant;
+import org.eclipse.papyrus.umlutils.ui.helper.NameLabelIconHelper;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.AccessibleEvent;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.FontData;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.ui.PlatformUI;
+
+/**
+ * @generated
+ */
+public class CreationEventNameEditPart extends CompartmentEditPart implements ITextAwareEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 5173;
+
+ /**
+ * @generated
+ */
+ private DirectEditManager manager;
+
+ /**
+ * @generated
+ */
+ private IParser parser;
+
+ /**
+ * @generated
+ */
+ private List<?> parserElements;
+
+ /**
+ * @generated
+ */
+ private String defaultText;
+
+ /**
+ * direct edition mode (default, undefined, registered editor, etc.)
+ *
+ * @generated
+ */
+ protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
+
+ /**
+ * configuration from a registered edit dialog
+ *
+ * @generated
+ */
+ protected IDirectEditorConfiguration configuration;
+
+ /**
+ * @generated
+ */
+ public CreationEventNameEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
+ installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new CompositeStructureDiagramEditPart.NodeLabelDragPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelTextHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getText();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getText();
+ } else {
+ return ((Label)figure).getText();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelTextHelper(IFigure figure, String text) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setText(text);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setText(text);
+ } else {
+ ((Label)figure).setText(text);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIconHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getIcon();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getIcon();
+ } else {
+ return ((Label)figure).getIcon();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelIconHelper(IFigure figure, Image icon) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setIcon(icon);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setIcon(icon);
+ } else {
+ ((Label)figure).setIcon(icon);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabel(WrappingLabel figure) {
+ unregisterVisuals();
+ setFigure(figure);
+ defaultText = getLabelTextHelper(figure);
+ registerVisuals();
+ refreshVisuals();
+ }
+
+ /**
+ * @generated
+ */
+ protected List getModelChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject getParserElement() {
+ return resolveSemanticElement();
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIcon() {
+ EObject parserElement = getParserElement();
+ if(parserElement == null) {
+ return null;
+ }
+
+ List<View> views = DiagramEditPartsUtil.findViews(parserElement, getViewer());
+ for(View view : views) {
+ if(NameLabelIconHelper.showLabelIcon(view)) {
+ return UMLElementTypes.getImage(parserElement.eClass());
+ }
+ }
+ return null;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelText() {
+ String text = null;
+ EObject parserElement = getParserElement();
+ if(parserElement != null && getParser() != null) {
+ text = getParser().getPrintString(new EObjectAdapter(parserElement), getParserOptions().intValue());
+ }
+ if(text == null || text.length() == 0) {
+ text = defaultText;
+ }
+ return text;
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabelText(String text) {
+ setLabelTextHelper(getFigure(), text);
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public String getEditText() {
+ if(getParserElement() == null || getParser() == null) {
+ return ""; //$NON-NLS-1$
+ }
+ return getParser().getEditString(new EObjectAdapter(getParserElement()), getParserOptions().intValue());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean isEditable() {
+ return getParser() != null;
+ }
+
+ /**
+ * @generated
+ */
+ public ICellEditorValidator getEditTextValidator() {
+ return new ICellEditorValidator() {
+
+ public String isValid(final Object value) {
+ if(value instanceof String) {
+ final EObject element = getParserElement();
+ final IParser parser = getParser();
+ try {
+ IParserEditStatus valid = (IParserEditStatus)getEditingDomain().runExclusive(new RunnableWithResult.Impl() {
+
+ public void run() {
+ setResult(parser.isValidEditString(new EObjectAdapter(element), (String)value));
+ }
+ });
+ return valid.getCode() == ParserEditStatus.EDITABLE ? null : valid.getMessage();
+ } catch (InterruptedException ie) {
+ ie.printStackTrace();
+ }
+ }
+
+ // shouldn't get here
+ return null;
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ public IContentAssistProcessor getCompletionProcessor() {
+ if(getParserElement() == null || getParser() == null) {
+ return null;
+ }
+ return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
+ }
+
+ /**
+ * @generated
+ */
+ public ParserOptions getParserOptions() {
+ return ParserOptions.NONE;
+ }
+
+ /**
+ * @generated
+ */
+ public IParser getParser() {
+ if(parser == null) {
+ parser = UMLParserProvider.getParser(UMLElementTypes.CreationEvent_2090, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.diagram.composite.edit.parts.CreationEventNameEditPart.VISUAL_ID));
+ }
+ return parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected DirectEditManager getManager() {
+ if(manager == null) {
+ setManager(new MultilineLabelDirectEditManager(this, MultilineLabelDirectEditManager.getTextCellEditorClass(this), UMLEditPartFactory.getTextCellEditorLocator(this)));
+ }
+ return manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setManager(DirectEditManager manager) {
+ this.manager = manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit() {
+ getManager().show();
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit(Point eventLocation) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(eventLocation.getSWTPoint());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void performDirectEdit(char initialCharacter) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(initialCharacter);
+ } else {
+ performDirectEdit();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEditRequest(Request request) {
+
+ final Request theRequest = request;
+
+ if(IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
+ directEditionMode = getDirectEditionType();
+ }
+ switch(directEditionMode) {
+ case IDirectEdition.NO_DIRECT_EDITION:
+ // no direct edition mode => does nothing
+ return;
+ case IDirectEdition.EXTENDED_DIRECT_EDITOR:
+ updateExtendedEditorConfiguration();
+ if(configuration == null || configuration.getLanguage() == null) {
+ performDefaultDirectEditorEdit(theRequest);
+ } else {
+ configuration.preEditAction(resolveSemanticElement());
+ Dialog dialog = null;
+ if(configuration instanceof IPopupEditorConfiguration) {
+ IPopupEditorHelper helper = ((IPopupEditorConfiguration)configuration).createPopupEditorHelper(this);
+ helper.showEditor();
+ return;
+ } else if(configuration instanceof IAdvancedEditorConfiguration) {
+ dialog = ((IAdvancedEditorConfiguration)configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
+ } else if(configuration instanceof IDirectEditorConfiguration) {
+ dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), ((IDirectEditorConfiguration)configuration).getTextToEdit(resolveSemanticElement()), (IDirectEditorConfiguration)configuration);
+ } else {
+ return;
+ }
+ final Dialog finalDialog = dialog;
+
+ if(Window.OK == dialog.open()) {
+ TransactionalEditingDomain domain = getEditingDomain();
+ RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
+
+ @Override
+ protected void doExecute() {
+ configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog)finalDialog).getValue());
+
+ }
+ };
+ domain.getCommandStack().execute(command);
+ }
+ }
+ break;
+ case IDirectEdition.DEFAULT_DIRECT_EDITOR:
+
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ break;
+ default:
+ break;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshLabel();
+ refreshFont();
+ refreshFontColor();
+ refreshUnderline();
+ refreshStrikeThrough();
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshLabel() {
+ EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
+ if(maskLabelPolicy == null) {
+ setLabelTextHelper(getFigure(), getLabelText());
+ setLabelIconHelper(getFigure(), getLabelIcon());
+ }
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshUnderline() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextUnderline(style.isUnderline());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshStrikeThrough() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextStrikeThrough(style.isStrikeThrough());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshFont() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null) {
+ FontData fontData = new FontData(style.getFontName(), style.getFontHeight(), (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
+ setFont(fontData);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setFontColor(Color color) {
+ getFigure().setForegroundColor(color);
+ }
+
+ /**
+ * @generated
+ */
+ protected void addSemanticListeners() {
+ if(getParser() instanceof ISemanticParser) {
+ EObject element = resolveSemanticElement();
+ parserElements = ((ISemanticParser)getParser()).getSemanticElementsBeingParsed(element);
+ for(int i = 0; i < parserElements.size(); i++) {
+ addListenerFilter("SemanticModel" + i, this, (EObject)parserElements.get(i)); //$NON-NLS-1$
+ }
+ } else {
+ super.addSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeSemanticListeners() {
+ if(parserElements != null) {
+ for(int i = 0; i < parserElements.size(); i++) {
+ removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
+ }
+ } else {
+ super.removeSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected AccessibleEditPart getAccessibleEditPart() {
+ if(accessibleEP == null) {
+ accessibleEP = new AccessibleGraphicalEditPart() {
+
+ public void getName(AccessibleEvent e) {
+ e.result = getLabelTextHelper(getFigure());
+ }
+ };
+ }
+ return accessibleEP;
+ }
+
+ /**
+ * @generated
+ */
+ private View getFontStyleOwnerView() {
+ return (View)getModel();
+ }
+
+ /**
+ * Returns the kind of associated editor for direct edition.
+ *
+ * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition
+ * @generated
+ */
+ public int getDirectEditionType() {
+ if(checkExtendedEditor()) {
+ initExtendedEditorConfiguration();
+ return IDirectEdition.EXTENDED_DIRECT_EDITOR;
+ }
+ if(checkDefaultEdition()) {
+ return IDirectEdition.DEFAULT_DIRECT_EDITOR;
+ }
+
+ // not a named element. no specific editor => do nothing
+ return IDirectEdition.NO_DIRECT_EDITION;
+ }
+
+ /**
+ * Checks if an extended editor is present.
+ *
+ * @return <code>true</code> if an extended editor is present.
+ * @generated
+ */
+ protected boolean checkExtendedEditor() {
+ if(resolveSemanticElement() != null) {
+ return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ return false;
+ }
+
+ /**
+ * Checks if a default direct edition is available
+ *
+ * @return <code>true</code> if a default direct edition is available
+ * @generated
+ */
+ protected boolean checkDefaultEdition() {
+ return (getParser() != null);
+ }
+
+ /**
+ * Initializes the extended editor configuration
+ *
+ * @generated
+ */
+ protected void initExtendedEditorConfiguration() {
+ if(configuration == null) {
+ final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("")) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else {
+ configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ }
+ }
+
+ /**
+ * Updates the preference configuration
+ *
+ * @generated
+ */
+ protected void updateExtendedEditorConfiguration() {
+ String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("") && languagePreferred != configuration.getLanguage()) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else if(IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
+ configuration = null;
+ }
+ }
+
+ /**
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
+ protected void performDefaultDirectEditorEdit(final Request theRequest) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void addNotationalListeners() {
+ super.addNotationalListeners();
+ addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeNotationalListeners() {
+ super.removeNotationalListeners();
+ removeListenerFilter("PrimaryView"); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void handleNotificationEvent(Notification event) {
+ refreshLabel();
+ Object feature = event.getFeature();
+ if(NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
+ Integer c = (Integer)event.getNewValue();
+ setFontColor(DiagramColorRegistry.getInstance().getColor(c));
+ } else if(NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
+ refreshUnderline();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
+ refreshStrikeThrough();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
+ refreshFont();
+ } else {
+ if(getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
+ refreshLabel();
+ }
+ if(getParser() instanceof ISemanticParser) {
+ ISemanticParser modelParser = (ISemanticParser)getParser();
+ if(modelParser.areSemanticElementsAffected(null, event)) {
+ removeSemanticListeners();
+ if(resolveSemanticElement() != null) {
+ addSemanticListeners();
+ }
+ refreshLabel();
+ }
+ }
+ }
+
+ if(event.getNewValue() instanceof EAnnotation && VisualInformationPapyrusConstant.DISPLAY_NAMELABELICON.equals(((EAnnotation)event.getNewValue()).getSource())) {
+ refreshLabel();
+ }
+
+ super.handleNotificationEvent(event);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createFigure() {
+ // Parent should assign one using setLabel() method
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ private static final String ADD_PARENT_MODEL = "AddParentModel";
+
+ /**
+ * @generated
+ */
+ public void activate() {
+ super.activate();
+ addOwnerElementListeners();
+ }
+
+ /**
+ * @generated
+ */
+ protected void addOwnerElementListeners() {
+ addListenerFilter(ADD_PARENT_MODEL, this, ((View)getParent().getModel())); //$NON-NLS-1$
+
+ }
+
+ /**
+ * @generated
+ */
+ public void deactivate() {
+ removeOwnerElementListeners();
+ super.deactivate();
+
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeOwnerElementListeners() {
+ removeListenerFilter(ADD_PARENT_MODEL);
+
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/DataTypeAttributeCompartmentEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/DataTypeAttributeCompartmentEditPart.java
new file mode 100644
index 00000000000..4a7b38b1bfe
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/DataTypeAttributeCompartmentEditPart.java
@@ -0,0 +1,125 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import org.eclipse.draw2d.geometry.Dimension;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.draw2d.geometry.Rectangle;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.GraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ListCompartmentEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.CreationEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.DragDropEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.ResizableCompartmentEditPolicy;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.diagram.common.editpolicies.DuplicatePasteEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.CustomDiagramDragDropEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.RemoveOrphanViewPolicy;
+import org.eclipse.papyrus.diagram.composite.edit.policies.DataTypeAttributeCompartmentItemSemanticEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.Messages;
+
+/**
+ * @generated
+ */
+public class DataTypeAttributeCompartmentEditPart
+
+extends ListCompartmentEditPart
+
+{
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 7033;
+
+ /**
+ * @generated
+ */
+ public DataTypeAttributeCompartmentEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean hasModelChildrenChanged(Notification evt) {
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ public String getCompartmentName() {
+ return Messages.DataTypeAttributeCompartmentEditPart_title;
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new ResizableCompartmentEditPolicy());
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new DataTypeAttributeCompartmentItemSemanticEditPolicy());
+ installEditPolicy(EditPolicyRoles.CREATION_ROLE, new CreationEditPolicy());
+ installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new DragDropEditPolicy());
+ installEditPolicy(DuplicatePasteEditPolicy.PASTE_ROLE, new DuplicatePasteEditPolicy());
+ installEditPolicy("REMOVE_ORPHAN_VIEW", new RemoveOrphanViewPolicy()); //$NON-NLS-1$
+ installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new CustomDiagramDragDropEditPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ protected void setRatio(Double ratio) {
+ if(getFigure().getParent().getLayoutManager() instanceof ConstrainedToolbarLayout) {
+ super.setRatio(ratio);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void handleNotificationEvent(Notification notification) {
+ Object feature = notification.getFeature();
+ if(NotationPackage.eINSTANCE.getSize_Width().equals(feature) || NotationPackage.eINSTANCE.getSize_Height().equals(feature) || NotationPackage.eINSTANCE.getLocation_X().equals(feature) || NotationPackage.eINSTANCE.getLocation_Y().equals(feature)) {
+ refreshBounds();
+ }
+ super.handleNotificationEvent(notification);
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshBounds() {
+ int width = ((Integer)getStructuralFeatureValue(NotationPackage.eINSTANCE.getSize_Width())).intValue();
+ int height = ((Integer)getStructuralFeatureValue(NotationPackage.eINSTANCE.getSize_Height())).intValue();
+ Dimension size = new Dimension(width, height);
+ int x = ((Integer)getStructuralFeatureValue(NotationPackage.eINSTANCE.getLocation_X())).intValue();
+ int y = ((Integer)getStructuralFeatureValue(NotationPackage.eINSTANCE.getLocation_Y())).intValue();
+ Point loc = new Point(x, y);
+ ((GraphicalEditPart)getParent()).setLayoutConstraint(this, getFigure(), new Rectangle(loc, size));
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshBounds();
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/DataTypeAttributeCompartmentEditPartCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/DataTypeAttributeCompartmentEditPartCN.java
new file mode 100644
index 00000000000..67667e22005
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/DataTypeAttributeCompartmentEditPartCN.java
@@ -0,0 +1,125 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import org.eclipse.draw2d.geometry.Dimension;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.draw2d.geometry.Rectangle;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.GraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ListCompartmentEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.CreationEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.DragDropEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.ResizableCompartmentEditPolicy;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.diagram.common.editpolicies.DuplicatePasteEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.CustomDiagramDragDropEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.RemoveOrphanViewPolicy;
+import org.eclipse.papyrus.diagram.composite.edit.policies.DataTypeAttributeCompartmentItemSemanticEditPolicyCN;
+import org.eclipse.papyrus.diagram.composite.part.Messages;
+
+/**
+ * @generated
+ */
+public class DataTypeAttributeCompartmentEditPartCN
+
+extends ListCompartmentEditPart
+
+{
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 7036;
+
+ /**
+ * @generated
+ */
+ public DataTypeAttributeCompartmentEditPartCN(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean hasModelChildrenChanged(Notification evt) {
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ public String getCompartmentName() {
+ return Messages.DataTypeAttributeCompartmentEditPartCN_title;
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new ResizableCompartmentEditPolicy());
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new DataTypeAttributeCompartmentItemSemanticEditPolicyCN());
+ installEditPolicy(EditPolicyRoles.CREATION_ROLE, new CreationEditPolicy());
+ installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new DragDropEditPolicy());
+ installEditPolicy(DuplicatePasteEditPolicy.PASTE_ROLE, new DuplicatePasteEditPolicy());
+ installEditPolicy("REMOVE_ORPHAN_VIEW", new RemoveOrphanViewPolicy()); //$NON-NLS-1$
+ installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new CustomDiagramDragDropEditPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ protected void setRatio(Double ratio) {
+ if(getFigure().getParent().getLayoutManager() instanceof ConstrainedToolbarLayout) {
+ super.setRatio(ratio);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void handleNotificationEvent(Notification notification) {
+ Object feature = notification.getFeature();
+ if(NotationPackage.eINSTANCE.getSize_Width().equals(feature) || NotationPackage.eINSTANCE.getSize_Height().equals(feature) || NotationPackage.eINSTANCE.getLocation_X().equals(feature) || NotationPackage.eINSTANCE.getLocation_Y().equals(feature)) {
+ refreshBounds();
+ }
+ super.handleNotificationEvent(notification);
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshBounds() {
+ int width = ((Integer)getStructuralFeatureValue(NotationPackage.eINSTANCE.getSize_Width())).intValue();
+ int height = ((Integer)getStructuralFeatureValue(NotationPackage.eINSTANCE.getSize_Height())).intValue();
+ Dimension size = new Dimension(width, height);
+ int x = ((Integer)getStructuralFeatureValue(NotationPackage.eINSTANCE.getLocation_X())).intValue();
+ int y = ((Integer)getStructuralFeatureValue(NotationPackage.eINSTANCE.getLocation_Y())).intValue();
+ Point loc = new Point(x, y);
+ ((GraphicalEditPart)getParent()).setLayoutConstraint(this, getFigure(), new Rectangle(loc, size));
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshBounds();
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/DataTypeEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/DataTypeEditPart.java
new file mode 100644
index 00000000000..48ad34fa25c
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/DataTypeEditPart.java
@@ -0,0 +1,5391 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.ArrayList;
+import java.util.LinkedList;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Shape;
+import org.eclipse.draw2d.StackLayout;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EStructuralFeature;
+import org.eclipse.gef.EditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.editpolicies.LayoutEditPolicy;
+import org.eclipse.gef.editpolicies.NonResizableEditPolicy;
+import org.eclipse.gef.requests.CreateRequest;
+import org.eclipse.gmf.runtime.diagram.core.edithelpers.CreateElementRequestAdapter;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.CreationEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.diagram.ui.requests.CreateViewAndElementRequest;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.FigureUtilities;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.gef.ui.figures.DefaultSizeNodeFigure;
+import org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.jface.preference.PreferenceConverter;
+import org.eclipse.papyrus.diagram.common.editparts.NamedElementEditPart;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.HyperLinkPopupBarEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.QualifiedNameDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.ShowHideClassifierContentsEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.ShowHideCompartmentEditPolicy;
+import org.eclipse.papyrus.diagram.common.figure.node.DataTypeFigure;
+import org.eclipse.papyrus.diagram.common.helper.PreferenceInitializerForElementHelper;
+import org.eclipse.papyrus.diagram.composite.edit.policies.DataTypeItemSemanticEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorPlugin;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter;
+import org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper;
+import org.eclipse.swt.graphics.Color;
+
+/**
+ * @generated
+ */
+public class DataTypeEditPart extends
+
+NamedElementEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 2068;
+
+ /**
+ * @generated
+ */
+ protected IFigure contentPane;
+
+ /**
+ * @generated
+ */
+ protected IFigure primaryShape;
+
+ /**
+ * @generated
+ */
+ public DataTypeEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ installEditPolicy(EditPolicyRoles.CREATION_ROLE, new CreationEditPolicy());
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new DataTypeItemSemanticEditPolicy());
+ installEditPolicy(EditPolicy.LAYOUT_ROLE, createLayoutEditPolicy());
+ installEditPolicy(QualifiedNameDisplayEditPolicy.QUALIFIED_NAME_POLICY, new QualifiedNameDisplayEditPolicy());
+ installEditPolicy(AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeNodeLabelDisplayEditPolicy());
+ installEditPolicy(EditPolicyRoles.POPUPBAR_ROLE, new HyperLinkPopupBarEditPolicy());
+ installEditPolicy(ShowHideClassifierContentsEditPolicy.SHOW_HIDE_CLASSIFIER_CONTENTS_POLICY, new ShowHideClassifierContentsEditPolicy());
+ installEditPolicy(ShowHideCompartmentEditPolicy.SHOW_HIDE_COMPARTMENT_POLICY, new ShowHideCompartmentEditPolicy());
+ // XXX need an SCR to runtime to have another abstract superclass that would let children add reasonable editpolicies
+ // removeEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CONNECTION_HANDLES_ROLE);
+ }
+
+ /**
+ * Papyrus codeGen
+ *
+ * @generated
+ **/
+ protected void handleNotificationEvent(Notification event) {
+ super.handleNotificationEvent(event);
+
+ }
+
+ /**
+ * @generated
+ */
+ protected LayoutEditPolicy createLayoutEditPolicy() {
+ org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy lep = new org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy() {
+
+ protected EditPolicy createChildEditPolicy(EditPart child) {
+ EditPolicy result = child.getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(result == null) {
+ result = new NonResizableEditPolicy();
+ }
+ return result;
+ }
+
+ protected Command getMoveChildrenCommand(Request request) {
+ return null;
+ }
+
+ protected Command getCreateCommand(CreateRequest request) {
+ return null;
+ }
+ };
+ return lep;
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createNodeShape() {
+ return primaryShape = new DataTypeFigure();
+ }
+
+ /**
+ * @generated
+ */
+ public DataTypeFigure getPrimaryShape() {
+ return (DataTypeFigure)primaryShape;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean addFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof DataTypeNameEditPart) {
+ ((DataTypeNameEditPart)childEditPart).setLabel(getPrimaryShape().getNameLabel());
+ return true;
+ }
+
+ if(childEditPart instanceof DataTypeAttributeCompartmentEditPart) {
+ IFigure pane = getPrimaryShape().getAttributeCompartmentFigure();
+ setupContentPane(pane); // FIXME each comparment should handle his content pane in his own way
+ pane.add(((DataTypeAttributeCompartmentEditPart)childEditPart).getFigure());
+ return true;
+ }
+
+ if(childEditPart instanceof DataTypeOperationCompartmentEditPart) {
+ IFigure pane = getPrimaryShape().getOperationCompartmentFigure();
+ setupContentPane(pane); // FIXME each comparment should handle his content pane in his own way
+ pane.add(((DataTypeOperationCompartmentEditPart)childEditPart).getFigure());
+ return true;
+ }
+
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean removeFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof DataTypeNameEditPart) {
+ return true;
+ }
+ if(childEditPart instanceof DataTypeAttributeCompartmentEditPart) {
+ IFigure pane = getPrimaryShape().getAttributeCompartmentFigure();
+ setupContentPane(pane); // FIXME each comparment should handle his content pane in his own way
+ pane.remove(((DataTypeAttributeCompartmentEditPart)childEditPart).getFigure());
+ return true;
+ }
+ if(childEditPart instanceof DataTypeOperationCompartmentEditPart) {
+ IFigure pane = getPrimaryShape().getOperationCompartmentFigure();
+ setupContentPane(pane); // FIXME each comparment should handle his content pane in his own way
+ pane.remove(((DataTypeOperationCompartmentEditPart)childEditPart).getFigure());
+ return true;
+ }
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected void addChildVisual(EditPart childEditPart, int index) {
+ if(addFixedChild(childEditPart)) {
+ return;
+ }
+ super.addChildVisual(childEditPart, -1);
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeChildVisual(EditPart childEditPart) {
+ if(removeFixedChild(childEditPart)) {
+ return;
+ }
+ super.removeChildVisual(childEditPart);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure getContentPaneFor(IGraphicalEditPart editPart) {
+ if(editPart instanceof DataTypeAttributeCompartmentEditPart) {
+ return getPrimaryShape().getAttributeCompartmentFigure();
+ }
+ if(editPart instanceof DataTypeOperationCompartmentEditPart) {
+ return getPrimaryShape().getOperationCompartmentFigure();
+ }
+ return getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ protected NodeFigure createNodePlate() {
+ String prefElementId = "DataType";
+ IPreferenceStore store = UMLDiagramEditorPlugin.getInstance().getPreferenceStore();
+ String preferenceConstantWitdh = PreferenceInitializerForElementHelper.getpreferenceKey(getNotationView(), prefElementId, PreferenceConstantHelper.WIDTH);
+ String preferenceConstantHeight = PreferenceInitializerForElementHelper.getpreferenceKey(getNotationView(), prefElementId, PreferenceConstantHelper.HEIGHT);
+ DefaultSizeNodeFigure result = new DefaultSizeNodeFigure(store.getInt(preferenceConstantWitdh), store.getInt(preferenceConstantHeight));
+
+ return result;
+ }
+
+ /**
+ * Creates figure for this edit part.
+ *
+ * Body of this method does not depend on settings in generation model
+ * so you may safely remove <i>generated</i> tag and modify it.
+ *
+ * @generated
+ */
+ protected NodeFigure createNodeFigure() {
+ NodeFigure figure = createNodePlate();
+ figure.setLayoutManager(new StackLayout());
+ IFigure shape = createNodeShape();
+ figure.add(shape);
+ contentPane = setupContentPane(shape);
+ return figure;
+ }
+
+ /**
+ * Default implementation treats passed figure as content pane.
+ * Respects layout one may have set for generated figure.
+ *
+ * @param nodeShape
+ * instance of generated figure class
+ * @generated
+ */
+ protected IFigure setupContentPane(IFigure nodeShape) {
+ if(nodeShape.getLayoutManager() == null) {
+ ConstrainedToolbarLayout layout = new ConstrainedToolbarLayout();
+ layout.setSpacing(5);
+ nodeShape.setLayoutManager(layout);
+ }
+ return nodeShape; // use nodeShape itself as contentPane
+ }
+
+ /**
+ * @generated
+ */
+ public IFigure getContentPane() {
+ if(contentPane != null) {
+ return contentPane;
+ }
+ return super.getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ protected void setForegroundColor(Color color) {
+ if(primaryShape != null) {
+ primaryShape.setForegroundColor(color);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLineWidth(int width) {
+ if(primaryShape instanceof Shape) {
+ ((Shape)primaryShape).setLineWidth(width);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLineType(int style) {
+ if(primaryShape instanceof Shape) {
+ ((Shape)primaryShape).setLineStyle(style);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public EditPart getPrimaryChildEditPart() {
+ return getChildBySemanticHint(UMLVisualIDRegistry.getType(DataTypeNameEditPart.VISUAL_ID));
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnSource() {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(12);
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ types.add(UMLElementTypes.Substitution_4011);
+ types.add(UMLElementTypes.Realization_4006);
+ types.add(UMLElementTypes.Manifestation_4012);
+ types.add(UMLElementTypes.Abstraction_4007);
+ types.add(UMLElementTypes.Usage_4008);
+ types.add(UMLElementTypes.Deployment_4009);
+ types.add(UMLElementTypes.Dependency_4017);
+ types.add(UMLElementTypes.Dependency_4010);
+ types.add(UMLElementTypes.Generalization_4015);
+ types.add(UMLElementTypes.InformationFlow_4021);
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnSourceAndTarget(IGraphicalEditPart targetEditPart) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.DataTypeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.DataTypeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.DataTypeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.DataTypeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.DataTypeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.DataTypeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.DataTypeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.DataTypeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.DataTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.DataTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.DataTypeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.DataTypeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMATypesForTarget(IElementType relationshipType) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(relationshipType == UMLElementTypes.ComponentRealization_4004) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InterfaceRealization_4005) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Substitution_4011) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Realization_4006) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Manifestation_4012) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Abstraction_4007) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Usage_4008) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Deployment_4009) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4017) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4010) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Generalization_4015) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ } else if(relationshipType == UMLElementTypes.InformationFlow_4021) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnTarget() {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(17);
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ types.add(UMLElementTypes.Substitution_4011);
+ types.add(UMLElementTypes.Realization_4006);
+ types.add(UMLElementTypes.Manifestation_4012);
+ types.add(UMLElementTypes.Abstraction_4007);
+ types.add(UMLElementTypes.Usage_4008);
+ types.add(UMLElementTypes.Deployment_4009);
+ types.add(UMLElementTypes.Dependency_4017);
+ types.add(UMLElementTypes.Dependency_4010);
+ types.add(UMLElementTypes.Generalization_4015);
+ types.add(UMLElementTypes.TimeObservationEvent_4018);
+ types.add(UMLElementTypes.DurationObservationEvent_4019);
+ types.add(UMLElementTypes.InformationItemRepresented_4020);
+ types.add(UMLElementTypes.InformationFlow_4021);
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMATypesForSource(IElementType relationshipType) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(relationshipType == UMLElementTypes.CommentAnnotatedElement_4002) {
+ types.add(UMLElementTypes.Comment_2109);
+ types.add(UMLElementTypes.Comment_3097);
+ } else if(relationshipType == UMLElementTypes.ConstraintConstrainedElement_4003) {
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.ComponentRealization_4004) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InterfaceRealization_4005) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Substitution_4011) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Realization_4006) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Manifestation_4012) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Abstraction_4007) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Usage_4008) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Deployment_4009) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4017) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4010) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Generalization_4015) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ } else if(relationshipType == UMLElementTypes.TimeObservationEvent_4018) {
+ types.add(UMLElementTypes.TimeObservation_2094);
+ } else if(relationshipType == UMLElementTypes.DurationObservationEvent_4019) {
+ types.add(UMLElementTypes.DurationObservation_2093);
+ } else if(relationshipType == UMLElementTypes.InformationItemRepresented_4020) {
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.InformationItem_3094);
+ } else if(relationshipType == UMLElementTypes.InformationFlow_4021) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public EditPart getTargetEditPart(Request request) {
+ if(request instanceof CreateViewAndElementRequest) {
+ CreateElementRequestAdapter adapter = ((CreateViewAndElementRequest)request).getViewAndElementDescriptor().getCreateElementRequestAdapter();
+ IElementType type = (IElementType)adapter.getAdapter(IElementType.class);
+ if(type == UMLElementTypes.Property_3101) {
+ return getChildBySemanticHint(UMLVisualIDRegistry.getType(DataTypeAttributeCompartmentEditPart.VISUAL_ID));
+ }
+ if(type == UMLElementTypes.Operation_3102) {
+ return getChildBySemanticHint(UMLVisualIDRegistry.getType(DataTypeOperationCompartmentEditPart.VISUAL_ID));
+ }
+ }
+ return super.getTargetEditPart(request);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public Object getPreferredValue(EStructuralFeature feature) {
+ IPreferenceStore preferenceStore = (IPreferenceStore)getDiagramPreferencesHint().getPreferenceStore();
+ Object result = null;
+
+ if(feature == NotationPackage.eINSTANCE.getLineStyle_LineColor() || feature == NotationPackage.eINSTANCE.getFontStyle_FontColor() || feature == NotationPackage.eINSTANCE.getFillStyle_FillColor()) {
+ String prefColor = null;
+ if(feature == NotationPackage.eINSTANCE.getLineStyle_LineColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("DataType", PreferenceConstantHelper.COLOR_LINE);
+ } else if(feature == NotationPackage.eINSTANCE.getFontStyle_FontColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("DataType", PreferenceConstantHelper.COLOR_FONT);
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_FillColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("DataType", PreferenceConstantHelper.COLOR_FILL);
+ }
+ result = FigureUtilities.RGBToInteger(PreferenceConverter.getColor((IPreferenceStore)preferenceStore, prefColor));
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_Transparency() || feature == NotationPackage.eINSTANCE.getFillStyle_Gradient()) {
+ String prefGradient = PreferenceConstantHelper.getElementConstant("DataType", PreferenceConstantHelper.COLOR_GRADIENT);
+ GradientPreferenceConverter gradientPreferenceConverter = new GradientPreferenceConverter(preferenceStore.getString(prefGradient));
+ if(feature == NotationPackage.eINSTANCE.getFillStyle_Transparency()) {
+ result = new Integer(gradientPreferenceConverter.getTransparency());
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_Gradient()) {
+ result = gradientPreferenceConverter.getGradientData();
+ }
+ }
+
+ if(result == null) {
+ result = getStructuralFeatureValue(feature);
+ }
+ return result;
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/DataTypeEditPartCLN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/DataTypeEditPartCLN.java
new file mode 100644
index 00000000000..b57ce93d039
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/DataTypeEditPartCLN.java
@@ -0,0 +1,781 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EAnnotation;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.emf.transaction.RunnableWithResult;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.AccessibleEditPart;
+import org.eclipse.gef.DragTracker;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.requests.DirectEditRequest;
+import org.eclipse.gef.requests.SelectionRequest;
+import org.eclipse.gef.tools.DirectEditManager;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.CompartmentEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IPrimaryEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.ListItemComponentEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
+import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
+import org.eclipse.gmf.runtime.diagram.ui.tools.DragEditPartsTrackerEx;
+import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
+import org.eclipse.gmf.runtime.notation.FontStyle;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
+import org.eclipse.jface.viewers.ICellEditorValidator;
+import org.eclipse.jface.window.Window;
+import org.eclipse.papyrus.diagram.common.directedit.MultilineLabelDirectEditManager;
+import org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition;
+import org.eclipse.papyrus.diagram.common.editpolicies.IMaskManagedLabelEditPolicy;
+import org.eclipse.papyrus.diagram.common.figure.node.ILabelFigure;
+import org.eclipse.papyrus.diagram.common.util.DiagramEditPartsUtil;
+import org.eclipse.papyrus.diagram.composite.edit.policies.DataTypeItemSemanticEditPolicyCLN;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLTextNonResizableEditPolicy;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLTextSelectionEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.diagram.composite.providers.UMLParserProvider;
+import org.eclipse.papyrus.extensionpoints.editors.Activator;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
+import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
+import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
+import org.eclipse.papyrus.umlutils.ui.VisualInformationPapyrusConstant;
+import org.eclipse.papyrus.umlutils.ui.helper.NameLabelIconHelper;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.AccessibleEvent;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.FontData;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.ui.PlatformUI;
+
+/**
+ * @generated
+ */
+public class DataTypeEditPartCLN
+
+extends CompartmentEditPart
+
+implements ITextAwareEditPart, IPrimaryEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 3113;
+
+ /**
+ * @generated
+ */
+ private DirectEditManager manager;
+
+ /**
+ * @generated
+ */
+ private IParser parser;
+
+ /**
+ * @generated
+ */
+ private List<?> parserElements;
+
+ /**
+ * @generated
+ */
+ private String defaultText;
+
+ /**
+ * direct edition mode (default, undefined, registered editor, etc.)
+ *
+ * @generated
+ */
+ protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
+
+ /**
+ * configuration from a registered edit dialog
+ *
+ * @generated
+ */
+ protected IDirectEditorConfiguration configuration;
+
+ /**
+ * @generated
+ */
+ public DataTypeEditPartCLN(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ public DragTracker getDragTracker(Request request) {
+ if(request instanceof SelectionRequest && ((SelectionRequest)request).getLastButtonPressed() == 3) {
+ return null;
+ }
+ return new DragEditPartsTrackerEx(this);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new DataTypeItemSemanticEditPolicyCLN());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new UMLTextNonResizableEditPolicy());
+ installEditPolicy(EditPolicy.COMPONENT_ROLE, new ListItemComponentEditPolicy());
+ installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelTextHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getText();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getText();
+ } else {
+ return ((Label)figure).getText();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelTextHelper(IFigure figure, String text) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setText(text);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setText(text);
+ } else {
+ ((Label)figure).setText(text);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIconHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getIcon();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getIcon();
+ } else {
+ return ((Label)figure).getIcon();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelIconHelper(IFigure figure, Image icon) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setIcon(icon);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setIcon(icon);
+ } else {
+ ((Label)figure).setIcon(icon);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabel(IFigure figure) {
+ unregisterVisuals();
+ setFigure(figure);
+ defaultText = getLabelTextHelper(figure);
+ registerVisuals();
+ refreshVisuals();
+ }
+
+ /**
+ * @generated
+ */
+ protected List getModelChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject getParserElement() {
+ return resolveSemanticElement();
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIcon() {
+ EObject parserElement = getParserElement();
+ if(parserElement == null) {
+ return null;
+ }
+
+ List<View> views = DiagramEditPartsUtil.findViews(parserElement, getViewer());
+ for(View view : views) {
+ if(NameLabelIconHelper.showLabelIcon(view)) {
+ return UMLElementTypes.getImage(parserElement.eClass());
+ }
+ }
+ return null;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelText() {
+ String text = null;
+ EObject parserElement = getParserElement();
+ if(parserElement != null && getParser() != null) {
+ text = getParser().getPrintString(new EObjectAdapter(parserElement), getParserOptions().intValue());
+ }
+ if(text == null || text.length() == 0) {
+ text = defaultText;
+ }
+ return text;
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabelText(String text) {
+ setLabelTextHelper(getFigure(), text);
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public String getEditText() {
+ if(getParserElement() == null || getParser() == null) {
+ return ""; //$NON-NLS-1$
+ }
+ return getParser().getEditString(new EObjectAdapter(getParserElement()), getParserOptions().intValue());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean isEditable() {
+ return getParser() != null;
+ }
+
+ /**
+ * @generated
+ */
+ public ICellEditorValidator getEditTextValidator() {
+ return new ICellEditorValidator() {
+
+ public String isValid(final Object value) {
+ if(value instanceof String) {
+ final EObject element = getParserElement();
+ final IParser parser = getParser();
+ try {
+ IParserEditStatus valid = (IParserEditStatus)getEditingDomain().runExclusive(new RunnableWithResult.Impl() {
+
+ public void run() {
+ setResult(parser.isValidEditString(new EObjectAdapter(element), (String)value));
+ }
+ });
+ return valid.getCode() == ParserEditStatus.EDITABLE ? null : valid.getMessage();
+ } catch (InterruptedException ie) {
+ ie.printStackTrace();
+ }
+ }
+
+ // shouldn't get here
+ return null;
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ public IContentAssistProcessor getCompletionProcessor() {
+ if(getParserElement() == null || getParser() == null) {
+ return null;
+ }
+ return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
+ }
+
+ /**
+ * @generated
+ */
+ public ParserOptions getParserOptions() {
+ return ParserOptions.NONE;
+ }
+
+ /**
+ * @generated
+ */
+ public IParser getParser() {
+ if(parser == null) {
+ parser = UMLParserProvider.getParser(UMLElementTypes.DataType_3113, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.diagram.composite.edit.parts.DataTypeEditPartCLN.VISUAL_ID));
+ }
+ return parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected DirectEditManager getManager() {
+ if(manager == null) {
+ setManager(new MultilineLabelDirectEditManager(this, MultilineLabelDirectEditManager.getTextCellEditorClass(this), UMLEditPartFactory.getTextCellEditorLocator(this)));
+ }
+ return manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setManager(DirectEditManager manager) {
+ this.manager = manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit() {
+ getManager().show();
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit(Point eventLocation) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(eventLocation.getSWTPoint());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void performDirectEdit(char initialCharacter) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(initialCharacter);
+ } else {
+ performDirectEdit();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEditRequest(Request request) {
+
+ final Request theRequest = request;
+
+ if(IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
+ directEditionMode = getDirectEditionType();
+ }
+ switch(directEditionMode) {
+ case IDirectEdition.NO_DIRECT_EDITION:
+ // no direct edition mode => does nothing
+ return;
+ case IDirectEdition.EXTENDED_DIRECT_EDITOR:
+ updateExtendedEditorConfiguration();
+ if(configuration == null || configuration.getLanguage() == null) {
+ performDefaultDirectEditorEdit(theRequest);
+ } else {
+ configuration.preEditAction(resolveSemanticElement());
+ Dialog dialog = null;
+ if(configuration instanceof IPopupEditorConfiguration) {
+ IPopupEditorHelper helper = ((IPopupEditorConfiguration)configuration).createPopupEditorHelper(this);
+ helper.showEditor();
+ return;
+ } else if(configuration instanceof IAdvancedEditorConfiguration) {
+ dialog = ((IAdvancedEditorConfiguration)configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
+ } else if(configuration instanceof IDirectEditorConfiguration) {
+ dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), ((IDirectEditorConfiguration)configuration).getTextToEdit(resolveSemanticElement()), (IDirectEditorConfiguration)configuration);
+ } else {
+ return;
+ }
+ final Dialog finalDialog = dialog;
+
+ if(Window.OK == dialog.open()) {
+ TransactionalEditingDomain domain = getEditingDomain();
+ RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
+
+ @Override
+ protected void doExecute() {
+ configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog)finalDialog).getValue());
+
+ }
+ };
+ domain.getCommandStack().execute(command);
+ }
+ }
+ break;
+ case IDirectEdition.DEFAULT_DIRECT_EDITOR:
+
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ break;
+ default:
+ break;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshLabel();
+ refreshFont();
+ refreshFontColor();
+ refreshUnderline();
+ refreshStrikeThrough();
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshLabel() {
+ EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
+ if(maskLabelPolicy == null) {
+ setLabelTextHelper(getFigure(), getLabelText());
+ setLabelIconHelper(getFigure(), getLabelIcon());
+ }
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshUnderline() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextUnderline(style.isUnderline());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshStrikeThrough() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextStrikeThrough(style.isStrikeThrough());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshFont() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null) {
+ FontData fontData = new FontData(style.getFontName(), style.getFontHeight(), (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
+ setFont(fontData);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setFontColor(Color color) {
+ getFigure().setForegroundColor(color);
+ }
+
+ /**
+ * @generated
+ */
+ protected void addSemanticListeners() {
+ if(getParser() instanceof ISemanticParser) {
+ EObject element = resolveSemanticElement();
+ parserElements = ((ISemanticParser)getParser()).getSemanticElementsBeingParsed(element);
+ for(int i = 0; i < parserElements.size(); i++) {
+ addListenerFilter("SemanticModel" + i, this, (EObject)parserElements.get(i)); //$NON-NLS-1$
+ }
+ } else {
+ super.addSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeSemanticListeners() {
+ if(parserElements != null) {
+ for(int i = 0; i < parserElements.size(); i++) {
+ removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
+ }
+ } else {
+ super.removeSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected AccessibleEditPart getAccessibleEditPart() {
+ if(accessibleEP == null) {
+ accessibleEP = new AccessibleGraphicalEditPart() {
+
+ public void getName(AccessibleEvent e) {
+ e.result = getLabelTextHelper(getFigure());
+ }
+ };
+ }
+ return accessibleEP;
+ }
+
+ /**
+ * @generated
+ */
+ private View getFontStyleOwnerView() {
+ return getPrimaryView();
+ }
+
+ /**
+ * Returns the kind of associated editor for direct edition.
+ *
+ * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition
+ * @generated
+ */
+ public int getDirectEditionType() {
+ if(checkExtendedEditor()) {
+ initExtendedEditorConfiguration();
+ return IDirectEdition.EXTENDED_DIRECT_EDITOR;
+ }
+ if(checkDefaultEdition()) {
+ return IDirectEdition.DEFAULT_DIRECT_EDITOR;
+ }
+
+ // not a named element. no specific editor => do nothing
+ return IDirectEdition.NO_DIRECT_EDITION;
+ }
+
+ /**
+ * Checks if an extended editor is present.
+ *
+ * @return <code>true</code> if an extended editor is present.
+ * @generated
+ */
+ protected boolean checkExtendedEditor() {
+ if(resolveSemanticElement() != null) {
+ return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ return false;
+ }
+
+ /**
+ * Checks if a default direct edition is available
+ *
+ * @return <code>true</code> if a default direct edition is available
+ * @generated
+ */
+ protected boolean checkDefaultEdition() {
+ return (getParser() != null);
+ }
+
+ /**
+ * Initializes the extended editor configuration
+ *
+ * @generated
+ */
+ protected void initExtendedEditorConfiguration() {
+ if(configuration == null) {
+ final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("")) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else {
+ configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ }
+ }
+
+ /**
+ * Updates the preference configuration
+ *
+ * @generated
+ */
+ protected void updateExtendedEditorConfiguration() {
+ String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("") && languagePreferred != configuration.getLanguage()) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else if(IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
+ configuration = null;
+ }
+ }
+
+ /**
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
+ protected void performDefaultDirectEditorEdit(final Request theRequest) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void addNotationalListeners() {
+ super.addNotationalListeners();
+ addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeNotationalListeners() {
+ super.removeNotationalListeners();
+ removeListenerFilter("PrimaryView"); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void handleNotificationEvent(Notification event) {
+ Object feature = event.getFeature();
+ if(NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
+ Integer c = (Integer)event.getNewValue();
+ setFontColor(DiagramColorRegistry.getInstance().getColor(c));
+ } else if(NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
+ refreshUnderline();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
+ refreshStrikeThrough();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
+ refreshFont();
+ } else {
+ if(getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
+ refreshLabel();
+ }
+ if(getParser() instanceof ISemanticParser) {
+ ISemanticParser modelParser = (ISemanticParser)getParser();
+ if(modelParser.areSemanticElementsAffected(null, event)) {
+ removeSemanticListeners();
+ if(resolveSemanticElement() != null) {
+ addSemanticListeners();
+ }
+ refreshLabel();
+ }
+ }
+ }
+ if(event.getNewValue() instanceof EAnnotation && VisualInformationPapyrusConstant.DISPLAY_NAMELABELICON.equals(((EAnnotation)event.getNewValue()).getSource())) {
+ refreshLabel();
+ }
+ super.handleNotificationEvent(event);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createFigure() {
+ IFigure label = createFigurePrim();
+ defaultText = getLabelTextHelper(label);
+ return label;
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createFigurePrim() {
+ return new WrappingLabel();
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/DataTypeEditPartCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/DataTypeEditPartCN.java
new file mode 100644
index 00000000000..4ec693a9f9f
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/DataTypeEditPartCN.java
@@ -0,0 +1,5394 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.ArrayList;
+import java.util.LinkedList;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Shape;
+import org.eclipse.draw2d.StackLayout;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EStructuralFeature;
+import org.eclipse.gef.EditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.editpolicies.LayoutEditPolicy;
+import org.eclipse.gef.editpolicies.NonResizableEditPolicy;
+import org.eclipse.gef.requests.CreateRequest;
+import org.eclipse.gmf.runtime.diagram.core.edithelpers.CreateElementRequestAdapter;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.CreationEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.diagram.ui.requests.CreateViewAndElementRequest;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.FigureUtilities;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.gef.ui.figures.DefaultSizeNodeFigure;
+import org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.jface.preference.PreferenceConverter;
+import org.eclipse.papyrus.diagram.common.editparts.NamedElementEditPart;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.HyperLinkPopupBarEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.QualifiedNameDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.ShowHideClassifierContentsEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.ShowHideCompartmentEditPolicy;
+import org.eclipse.papyrus.diagram.common.figure.node.DataTypeFigure;
+import org.eclipse.papyrus.diagram.common.helper.PreferenceInitializerForElementHelper;
+import org.eclipse.papyrus.diagram.composite.custom.edit.parts.ConstrainedNamedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.NoScrollClassifierResizableShapeEditPolicy;
+import org.eclipse.papyrus.diagram.composite.edit.policies.DataTypeItemSemanticEditPolicyCN;
+import org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorPlugin;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter;
+import org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper;
+import org.eclipse.swt.graphics.Color;
+
+/**
+ * @generated
+ */
+public class DataTypeEditPartCN extends
+
+ConstrainedNamedElementEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 3080;
+
+ /**
+ * @generated
+ */
+ protected IFigure contentPane;
+
+ /**
+ * @generated
+ */
+ protected IFigure primaryShape;
+
+ /**
+ * @generated
+ */
+ public DataTypeEditPartCN(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ installEditPolicy(EditPolicyRoles.CREATION_ROLE, new CreationEditPolicy());
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new DataTypeItemSemanticEditPolicyCN());
+ installEditPolicy(EditPolicy.LAYOUT_ROLE, createLayoutEditPolicy());
+ installEditPolicy(QualifiedNameDisplayEditPolicy.QUALIFIED_NAME_POLICY, new QualifiedNameDisplayEditPolicy());
+ installEditPolicy(AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeNodeLabelDisplayEditPolicy());
+ installEditPolicy(EditPolicyRoles.POPUPBAR_ROLE, new HyperLinkPopupBarEditPolicy());
+ installEditPolicy(ShowHideClassifierContentsEditPolicy.SHOW_HIDE_CLASSIFIER_CONTENTS_POLICY, new ShowHideClassifierContentsEditPolicy());
+ installEditPolicy(ShowHideCompartmentEditPolicy.SHOW_HIDE_COMPARTMENT_POLICY, new ShowHideCompartmentEditPolicy());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new NoScrollClassifierResizableShapeEditPolicy());
+ // XXX need an SCR to runtime to have another abstract superclass that would let children add reasonable editpolicies
+ // removeEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CONNECTION_HANDLES_ROLE);
+ }
+
+ /**
+ * Papyrus codeGen
+ *
+ * @generated
+ **/
+ protected void handleNotificationEvent(Notification event) {
+ super.handleNotificationEvent(event);
+
+ }
+
+ /**
+ * @generated
+ */
+ protected LayoutEditPolicy createLayoutEditPolicy() {
+ org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy lep = new org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy() {
+
+ protected EditPolicy createChildEditPolicy(EditPart child) {
+ EditPolicy result = child.getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(result == null) {
+ result = new NonResizableEditPolicy();
+ }
+ return result;
+ }
+
+ protected Command getMoveChildrenCommand(Request request) {
+ return null;
+ }
+
+ protected Command getCreateCommand(CreateRequest request) {
+ return null;
+ }
+ };
+ return lep;
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createNodeShape() {
+ return primaryShape = new DataTypeFigure();
+ }
+
+ /**
+ * @generated
+ */
+ public DataTypeFigure getPrimaryShape() {
+ return (DataTypeFigure)primaryShape;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean addFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof DataTypeNameEditPartCN) {
+ ((DataTypeNameEditPartCN)childEditPart).setLabel(getPrimaryShape().getNameLabel());
+ return true;
+ }
+
+ if(childEditPart instanceof DataTypeAttributeCompartmentEditPartCN) {
+ IFigure pane = getPrimaryShape().getAttributeCompartmentFigure();
+ setupContentPane(pane); // FIXME each comparment should handle his content pane in his own way
+ pane.add(((DataTypeAttributeCompartmentEditPartCN)childEditPart).getFigure());
+ return true;
+ }
+
+ if(childEditPart instanceof DataTypeOperationCompartmentEditPartCN) {
+ IFigure pane = getPrimaryShape().getOperationCompartmentFigure();
+ setupContentPane(pane); // FIXME each comparment should handle his content pane in his own way
+ pane.add(((DataTypeOperationCompartmentEditPartCN)childEditPart).getFigure());
+ return true;
+ }
+
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean removeFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof DataTypeNameEditPartCN) {
+ return true;
+ }
+ if(childEditPart instanceof DataTypeAttributeCompartmentEditPartCN) {
+ IFigure pane = getPrimaryShape().getAttributeCompartmentFigure();
+ setupContentPane(pane); // FIXME each comparment should handle his content pane in his own way
+ pane.remove(((DataTypeAttributeCompartmentEditPartCN)childEditPart).getFigure());
+ return true;
+ }
+ if(childEditPart instanceof DataTypeOperationCompartmentEditPartCN) {
+ IFigure pane = getPrimaryShape().getOperationCompartmentFigure();
+ setupContentPane(pane); // FIXME each comparment should handle his content pane in his own way
+ pane.remove(((DataTypeOperationCompartmentEditPartCN)childEditPart).getFigure());
+ return true;
+ }
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected void addChildVisual(EditPart childEditPart, int index) {
+ if(addFixedChild(childEditPart)) {
+ return;
+ }
+ super.addChildVisual(childEditPart, -1);
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeChildVisual(EditPart childEditPart) {
+ if(removeFixedChild(childEditPart)) {
+ return;
+ }
+ super.removeChildVisual(childEditPart);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure getContentPaneFor(IGraphicalEditPart editPart) {
+ if(editPart instanceof DataTypeAttributeCompartmentEditPartCN) {
+ return getPrimaryShape().getAttributeCompartmentFigure();
+ }
+ if(editPart instanceof DataTypeOperationCompartmentEditPartCN) {
+ return getPrimaryShape().getOperationCompartmentFigure();
+ }
+ return getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ protected NodeFigure createNodePlate() {
+ String prefElementId = "DataType";
+ IPreferenceStore store = UMLDiagramEditorPlugin.getInstance().getPreferenceStore();
+ String preferenceConstantWitdh = PreferenceInitializerForElementHelper.getpreferenceKey(getNotationView(), prefElementId, PreferenceConstantHelper.WIDTH);
+ String preferenceConstantHeight = PreferenceInitializerForElementHelper.getpreferenceKey(getNotationView(), prefElementId, PreferenceConstantHelper.HEIGHT);
+ DefaultSizeNodeFigure result = new DefaultSizeNodeFigure(store.getInt(preferenceConstantWitdh), store.getInt(preferenceConstantHeight));
+
+ return result;
+ }
+
+ /**
+ * Creates figure for this edit part.
+ *
+ * Body of this method does not depend on settings in generation model
+ * so you may safely remove <i>generated</i> tag and modify it.
+ *
+ * @generated
+ */
+ protected NodeFigure createNodeFigure() {
+ NodeFigure figure = createNodePlate();
+ figure.setLayoutManager(new StackLayout());
+ IFigure shape = createNodeShape();
+ figure.add(shape);
+ contentPane = setupContentPane(shape);
+ return figure;
+ }
+
+ /**
+ * Default implementation treats passed figure as content pane.
+ * Respects layout one may have set for generated figure.
+ *
+ * @param nodeShape
+ * instance of generated figure class
+ * @generated
+ */
+ protected IFigure setupContentPane(IFigure nodeShape) {
+ if(nodeShape.getLayoutManager() == null) {
+ ConstrainedToolbarLayout layout = new ConstrainedToolbarLayout();
+ layout.setSpacing(5);
+ nodeShape.setLayoutManager(layout);
+ }
+ return nodeShape; // use nodeShape itself as contentPane
+ }
+
+ /**
+ * @generated
+ */
+ public IFigure getContentPane() {
+ if(contentPane != null) {
+ return contentPane;
+ }
+ return super.getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ protected void setForegroundColor(Color color) {
+ if(primaryShape != null) {
+ primaryShape.setForegroundColor(color);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLineWidth(int width) {
+ if(primaryShape instanceof Shape) {
+ ((Shape)primaryShape).setLineWidth(width);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLineType(int style) {
+ if(primaryShape instanceof Shape) {
+ ((Shape)primaryShape).setLineStyle(style);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public EditPart getPrimaryChildEditPart() {
+ return getChildBySemanticHint(UMLVisualIDRegistry.getType(DataTypeNameEditPartCN.VISUAL_ID));
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnSource() {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(12);
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ types.add(UMLElementTypes.Substitution_4011);
+ types.add(UMLElementTypes.Realization_4006);
+ types.add(UMLElementTypes.Manifestation_4012);
+ types.add(UMLElementTypes.Abstraction_4007);
+ types.add(UMLElementTypes.Usage_4008);
+ types.add(UMLElementTypes.Deployment_4009);
+ types.add(UMLElementTypes.Dependency_4017);
+ types.add(UMLElementTypes.Dependency_4010);
+ types.add(UMLElementTypes.Generalization_4015);
+ types.add(UMLElementTypes.InformationFlow_4021);
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnSourceAndTarget(IGraphicalEditPart targetEditPart) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.DataTypeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.DataTypeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.DataTypeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMATypesForTarget(IElementType relationshipType) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(relationshipType == UMLElementTypes.ComponentRealization_4004) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InterfaceRealization_4005) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Substitution_4011) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Realization_4006) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Manifestation_4012) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Abstraction_4007) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Usage_4008) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Deployment_4009) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4017) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4010) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Generalization_4015) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ } else if(relationshipType == UMLElementTypes.InformationFlow_4021) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnTarget() {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(17);
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ types.add(UMLElementTypes.Substitution_4011);
+ types.add(UMLElementTypes.Realization_4006);
+ types.add(UMLElementTypes.Manifestation_4012);
+ types.add(UMLElementTypes.Abstraction_4007);
+ types.add(UMLElementTypes.Usage_4008);
+ types.add(UMLElementTypes.Deployment_4009);
+ types.add(UMLElementTypes.Dependency_4017);
+ types.add(UMLElementTypes.Dependency_4010);
+ types.add(UMLElementTypes.Generalization_4015);
+ types.add(UMLElementTypes.TimeObservationEvent_4018);
+ types.add(UMLElementTypes.DurationObservationEvent_4019);
+ types.add(UMLElementTypes.InformationItemRepresented_4020);
+ types.add(UMLElementTypes.InformationFlow_4021);
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMATypesForSource(IElementType relationshipType) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(relationshipType == UMLElementTypes.CommentAnnotatedElement_4002) {
+ types.add(UMLElementTypes.Comment_2109);
+ types.add(UMLElementTypes.Comment_3097);
+ } else if(relationshipType == UMLElementTypes.ConstraintConstrainedElement_4003) {
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.ComponentRealization_4004) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InterfaceRealization_4005) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Substitution_4011) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Realization_4006) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Manifestation_4012) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Abstraction_4007) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Usage_4008) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Deployment_4009) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4017) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4010) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Generalization_4015) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ } else if(relationshipType == UMLElementTypes.TimeObservationEvent_4018) {
+ types.add(UMLElementTypes.TimeObservation_2094);
+ } else if(relationshipType == UMLElementTypes.DurationObservationEvent_4019) {
+ types.add(UMLElementTypes.DurationObservation_2093);
+ } else if(relationshipType == UMLElementTypes.InformationItemRepresented_4020) {
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.InformationItem_3094);
+ } else if(relationshipType == UMLElementTypes.InformationFlow_4021) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public EditPart getTargetEditPart(Request request) {
+ if(request instanceof CreateViewAndElementRequest) {
+ CreateElementRequestAdapter adapter = ((CreateViewAndElementRequest)request).getViewAndElementDescriptor().getCreateElementRequestAdapter();
+ IElementType type = (IElementType)adapter.getAdapter(IElementType.class);
+ if(type == UMLElementTypes.Property_3101) {
+ return getChildBySemanticHint(UMLVisualIDRegistry.getType(DataTypeAttributeCompartmentEditPartCN.VISUAL_ID));
+ }
+ if(type == UMLElementTypes.Operation_3102) {
+ return getChildBySemanticHint(UMLVisualIDRegistry.getType(DataTypeOperationCompartmentEditPartCN.VISUAL_ID));
+ }
+ }
+ return super.getTargetEditPart(request);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public Object getPreferredValue(EStructuralFeature feature) {
+ IPreferenceStore preferenceStore = (IPreferenceStore)getDiagramPreferencesHint().getPreferenceStore();
+ Object result = null;
+
+ if(feature == NotationPackage.eINSTANCE.getLineStyle_LineColor() || feature == NotationPackage.eINSTANCE.getFontStyle_FontColor() || feature == NotationPackage.eINSTANCE.getFillStyle_FillColor()) {
+ String prefColor = null;
+ if(feature == NotationPackage.eINSTANCE.getLineStyle_LineColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("DataType", PreferenceConstantHelper.COLOR_LINE);
+ } else if(feature == NotationPackage.eINSTANCE.getFontStyle_FontColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("DataType", PreferenceConstantHelper.COLOR_FONT);
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_FillColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("DataType", PreferenceConstantHelper.COLOR_FILL);
+ }
+ result = FigureUtilities.RGBToInteger(PreferenceConverter.getColor((IPreferenceStore)preferenceStore, prefColor));
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_Transparency() || feature == NotationPackage.eINSTANCE.getFillStyle_Gradient()) {
+ String prefGradient = PreferenceConstantHelper.getElementConstant("DataType", PreferenceConstantHelper.COLOR_GRADIENT);
+ GradientPreferenceConverter gradientPreferenceConverter = new GradientPreferenceConverter(preferenceStore.getString(prefGradient));
+ if(feature == NotationPackage.eINSTANCE.getFillStyle_Transparency()) {
+ result = new Integer(gradientPreferenceConverter.getTransparency());
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_Gradient()) {
+ result = gradientPreferenceConverter.getGradientData();
+ }
+ }
+
+ if(result == null) {
+ result = getStructuralFeatureValue(feature);
+ }
+ return result;
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/DataTypeNameEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/DataTypeNameEditPart.java
new file mode 100644
index 00000000000..60f04618bd0
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/DataTypeNameEditPart.java
@@ -0,0 +1,791 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EAnnotation;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.emf.transaction.RunnableWithResult;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.AccessibleEditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.requests.DirectEditRequest;
+import org.eclipse.gef.tools.DirectEditManager;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.CompartmentEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
+import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
+import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
+import org.eclipse.gmf.runtime.notation.FontStyle;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
+import org.eclipse.jface.viewers.ICellEditorValidator;
+import org.eclipse.jface.window.Window;
+import org.eclipse.papyrus.diagram.common.directedit.MultilineLabelDirectEditManager;
+import org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition;
+import org.eclipse.papyrus.diagram.common.editpolicies.IMaskManagedLabelEditPolicy;
+import org.eclipse.papyrus.diagram.common.figure.node.ILabelFigure;
+import org.eclipse.papyrus.diagram.common.util.DiagramEditPartsUtil;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLTextSelectionEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.diagram.composite.providers.UMLParserProvider;
+import org.eclipse.papyrus.extensionpoints.editors.Activator;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
+import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
+import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
+import org.eclipse.papyrus.umlutils.ui.VisualInformationPapyrusConstant;
+import org.eclipse.papyrus.umlutils.ui.helper.NameLabelIconHelper;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.AccessibleEvent;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.FontData;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.ui.PlatformUI;
+
+/**
+ * @generated
+ */
+public class DataTypeNameEditPart extends CompartmentEditPart implements ITextAwareEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 5120;
+
+ /**
+ * @generated
+ */
+ private DirectEditManager manager;
+
+ /**
+ * @generated
+ */
+ private IParser parser;
+
+ /**
+ * @generated
+ */
+ private List<?> parserElements;
+
+ /**
+ * @generated
+ */
+ private String defaultText;
+
+ /**
+ * direct edition mode (default, undefined, registered editor, etc.)
+ *
+ * @generated
+ */
+ protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
+
+ /**
+ * configuration from a registered edit dialog
+ *
+ * @generated
+ */
+ protected IDirectEditorConfiguration configuration;
+
+ /**
+ * @generated
+ */
+ public DataTypeNameEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
+ installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new CompositeStructureDiagramEditPart.NodeLabelDragPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelTextHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getText();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getText();
+ } else {
+ return ((Label)figure).getText();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelTextHelper(IFigure figure, String text) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setText(text);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setText(text);
+ } else {
+ ((Label)figure).setText(text);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIconHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getIcon();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getIcon();
+ } else {
+ return ((Label)figure).getIcon();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelIconHelper(IFigure figure, Image icon) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setIcon(icon);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setIcon(icon);
+ } else {
+ ((Label)figure).setIcon(icon);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabel(WrappingLabel figure) {
+ unregisterVisuals();
+ setFigure(figure);
+ defaultText = getLabelTextHelper(figure);
+ registerVisuals();
+ refreshVisuals();
+ }
+
+ /**
+ * @generated
+ */
+ protected List getModelChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject getParserElement() {
+ return resolveSemanticElement();
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIcon() {
+ EObject parserElement = getParserElement();
+ if(parserElement == null) {
+ return null;
+ }
+
+ List<View> views = DiagramEditPartsUtil.findViews(parserElement, getViewer());
+ for(View view : views) {
+ if(NameLabelIconHelper.showLabelIcon(view)) {
+ return UMLElementTypes.getImage(parserElement.eClass());
+ }
+ }
+ return null;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelText() {
+ String text = null;
+ EObject parserElement = getParserElement();
+ if(parserElement != null && getParser() != null) {
+ text = getParser().getPrintString(new EObjectAdapter(parserElement), getParserOptions().intValue());
+ }
+ if(text == null || text.length() == 0) {
+ text = defaultText;
+ }
+ return text;
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabelText(String text) {
+ setLabelTextHelper(getFigure(), text);
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public String getEditText() {
+ if(getParserElement() == null || getParser() == null) {
+ return ""; //$NON-NLS-1$
+ }
+ return getParser().getEditString(new EObjectAdapter(getParserElement()), getParserOptions().intValue());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean isEditable() {
+ return getParser() != null;
+ }
+
+ /**
+ * @generated
+ */
+ public ICellEditorValidator getEditTextValidator() {
+ return new ICellEditorValidator() {
+
+ public String isValid(final Object value) {
+ if(value instanceof String) {
+ final EObject element = getParserElement();
+ final IParser parser = getParser();
+ try {
+ IParserEditStatus valid = (IParserEditStatus)getEditingDomain().runExclusive(new RunnableWithResult.Impl() {
+
+ public void run() {
+ setResult(parser.isValidEditString(new EObjectAdapter(element), (String)value));
+ }
+ });
+ return valid.getCode() == ParserEditStatus.EDITABLE ? null : valid.getMessage();
+ } catch (InterruptedException ie) {
+ ie.printStackTrace();
+ }
+ }
+
+ // shouldn't get here
+ return null;
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ public IContentAssistProcessor getCompletionProcessor() {
+ if(getParserElement() == null || getParser() == null) {
+ return null;
+ }
+ return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
+ }
+
+ /**
+ * @generated
+ */
+ public ParserOptions getParserOptions() {
+ return ParserOptions.NONE;
+ }
+
+ /**
+ * @generated
+ */
+ public IParser getParser() {
+ if(parser == null) {
+ parser = UMLParserProvider.getParser(UMLElementTypes.DataType_2068, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.diagram.composite.edit.parts.DataTypeNameEditPart.VISUAL_ID));
+ }
+ return parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected DirectEditManager getManager() {
+ if(manager == null) {
+ setManager(new MultilineLabelDirectEditManager(this, MultilineLabelDirectEditManager.getTextCellEditorClass(this), UMLEditPartFactory.getTextCellEditorLocator(this)));
+ }
+ return manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setManager(DirectEditManager manager) {
+ this.manager = manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit() {
+ getManager().show();
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit(Point eventLocation) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(eventLocation.getSWTPoint());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void performDirectEdit(char initialCharacter) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(initialCharacter);
+ } else {
+ performDirectEdit();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEditRequest(Request request) {
+
+ final Request theRequest = request;
+
+ if(IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
+ directEditionMode = getDirectEditionType();
+ }
+ switch(directEditionMode) {
+ case IDirectEdition.NO_DIRECT_EDITION:
+ // no direct edition mode => does nothing
+ return;
+ case IDirectEdition.EXTENDED_DIRECT_EDITOR:
+ updateExtendedEditorConfiguration();
+ if(configuration == null || configuration.getLanguage() == null) {
+ performDefaultDirectEditorEdit(theRequest);
+ } else {
+ configuration.preEditAction(resolveSemanticElement());
+ Dialog dialog = null;
+ if(configuration instanceof IPopupEditorConfiguration) {
+ IPopupEditorHelper helper = ((IPopupEditorConfiguration)configuration).createPopupEditorHelper(this);
+ helper.showEditor();
+ return;
+ } else if(configuration instanceof IAdvancedEditorConfiguration) {
+ dialog = ((IAdvancedEditorConfiguration)configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
+ } else if(configuration instanceof IDirectEditorConfiguration) {
+ dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), ((IDirectEditorConfiguration)configuration).getTextToEdit(resolveSemanticElement()), (IDirectEditorConfiguration)configuration);
+ } else {
+ return;
+ }
+ final Dialog finalDialog = dialog;
+
+ if(Window.OK == dialog.open()) {
+ TransactionalEditingDomain domain = getEditingDomain();
+ RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
+
+ @Override
+ protected void doExecute() {
+ configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog)finalDialog).getValue());
+
+ }
+ };
+ domain.getCommandStack().execute(command);
+ }
+ }
+ break;
+ case IDirectEdition.DEFAULT_DIRECT_EDITOR:
+
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ break;
+ default:
+ break;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshLabel();
+ refreshFont();
+ refreshFontColor();
+ refreshUnderline();
+ refreshStrikeThrough();
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshLabel() {
+ EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
+ if(maskLabelPolicy == null) {
+ setLabelTextHelper(getFigure(), getLabelText());
+ setLabelIconHelper(getFigure(), getLabelIcon());
+ }
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshUnderline() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextUnderline(style.isUnderline());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshStrikeThrough() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextStrikeThrough(style.isStrikeThrough());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshFont() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null) {
+ FontData fontData = new FontData(style.getFontName(), style.getFontHeight(), (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
+ setFont(fontData);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setFontColor(Color color) {
+ getFigure().setForegroundColor(color);
+ }
+
+ /**
+ * @generated
+ */
+ protected void addSemanticListeners() {
+ if(getParser() instanceof ISemanticParser) {
+ EObject element = resolveSemanticElement();
+ parserElements = ((ISemanticParser)getParser()).getSemanticElementsBeingParsed(element);
+ for(int i = 0; i < parserElements.size(); i++) {
+ addListenerFilter("SemanticModel" + i, this, (EObject)parserElements.get(i)); //$NON-NLS-1$
+ }
+ } else {
+ super.addSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeSemanticListeners() {
+ if(parserElements != null) {
+ for(int i = 0; i < parserElements.size(); i++) {
+ removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
+ }
+ } else {
+ super.removeSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected AccessibleEditPart getAccessibleEditPart() {
+ if(accessibleEP == null) {
+ accessibleEP = new AccessibleGraphicalEditPart() {
+
+ public void getName(AccessibleEvent e) {
+ e.result = getLabelTextHelper(getFigure());
+ }
+ };
+ }
+ return accessibleEP;
+ }
+
+ /**
+ * @generated
+ */
+ private View getFontStyleOwnerView() {
+ return (View)getModel();
+ }
+
+ /**
+ * Returns the kind of associated editor for direct edition.
+ *
+ * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition
+ * @generated
+ */
+ public int getDirectEditionType() {
+ if(checkExtendedEditor()) {
+ initExtendedEditorConfiguration();
+ return IDirectEdition.EXTENDED_DIRECT_EDITOR;
+ }
+ if(checkDefaultEdition()) {
+ return IDirectEdition.DEFAULT_DIRECT_EDITOR;
+ }
+
+ // not a named element. no specific editor => do nothing
+ return IDirectEdition.NO_DIRECT_EDITION;
+ }
+
+ /**
+ * Checks if an extended editor is present.
+ *
+ * @return <code>true</code> if an extended editor is present.
+ * @generated
+ */
+ protected boolean checkExtendedEditor() {
+ if(resolveSemanticElement() != null) {
+ return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ return false;
+ }
+
+ /**
+ * Checks if a default direct edition is available
+ *
+ * @return <code>true</code> if a default direct edition is available
+ * @generated
+ */
+ protected boolean checkDefaultEdition() {
+ return (getParser() != null);
+ }
+
+ /**
+ * Initializes the extended editor configuration
+ *
+ * @generated
+ */
+ protected void initExtendedEditorConfiguration() {
+ if(configuration == null) {
+ final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("")) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else {
+ configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ }
+ }
+
+ /**
+ * Updates the preference configuration
+ *
+ * @generated
+ */
+ protected void updateExtendedEditorConfiguration() {
+ String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("") && languagePreferred != configuration.getLanguage()) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else if(IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
+ configuration = null;
+ }
+ }
+
+ /**
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
+ protected void performDefaultDirectEditorEdit(final Request theRequest) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void addNotationalListeners() {
+ super.addNotationalListeners();
+ addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeNotationalListeners() {
+ super.removeNotationalListeners();
+ removeListenerFilter("PrimaryView"); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void handleNotificationEvent(Notification event) {
+ refreshLabel();
+ Object feature = event.getFeature();
+ if(NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
+ Integer c = (Integer)event.getNewValue();
+ setFontColor(DiagramColorRegistry.getInstance().getColor(c));
+ } else if(NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
+ refreshUnderline();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
+ refreshStrikeThrough();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
+ refreshFont();
+ } else {
+ if(getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
+ refreshLabel();
+ }
+ if(getParser() instanceof ISemanticParser) {
+ ISemanticParser modelParser = (ISemanticParser)getParser();
+ if(modelParser.areSemanticElementsAffected(null, event)) {
+ removeSemanticListeners();
+ if(resolveSemanticElement() != null) {
+ addSemanticListeners();
+ }
+ refreshLabel();
+ }
+ }
+ }
+
+ if(event.getNewValue() instanceof EAnnotation && VisualInformationPapyrusConstant.DISPLAY_NAMELABELICON.equals(((EAnnotation)event.getNewValue()).getSource())) {
+ refreshLabel();
+ }
+
+ super.handleNotificationEvent(event);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createFigure() {
+ // Parent should assign one using setLabel() method
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ private static final String ADD_PARENT_MODEL = "AddParentModel";
+
+ /**
+ * @generated
+ */
+ public void activate() {
+ super.activate();
+ addOwnerElementListeners();
+ }
+
+ /**
+ * @generated
+ */
+ protected void addOwnerElementListeners() {
+ addListenerFilter(ADD_PARENT_MODEL, this, ((View)getParent().getModel())); //$NON-NLS-1$
+
+ }
+
+ /**
+ * @generated
+ */
+ public void deactivate() {
+ removeOwnerElementListeners();
+ super.deactivate();
+
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeOwnerElementListeners() {
+ removeListenerFilter(ADD_PARENT_MODEL);
+
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/DataTypeNameEditPartCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/DataTypeNameEditPartCN.java
new file mode 100644
index 00000000000..f2a6ac3284f
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/DataTypeNameEditPartCN.java
@@ -0,0 +1,791 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EAnnotation;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.emf.transaction.RunnableWithResult;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.AccessibleEditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.requests.DirectEditRequest;
+import org.eclipse.gef.tools.DirectEditManager;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.CompartmentEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
+import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
+import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
+import org.eclipse.gmf.runtime.notation.FontStyle;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
+import org.eclipse.jface.viewers.ICellEditorValidator;
+import org.eclipse.jface.window.Window;
+import org.eclipse.papyrus.diagram.common.directedit.MultilineLabelDirectEditManager;
+import org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition;
+import org.eclipse.papyrus.diagram.common.editpolicies.IMaskManagedLabelEditPolicy;
+import org.eclipse.papyrus.diagram.common.figure.node.ILabelFigure;
+import org.eclipse.papyrus.diagram.common.util.DiagramEditPartsUtil;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLTextSelectionEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.diagram.composite.providers.UMLParserProvider;
+import org.eclipse.papyrus.extensionpoints.editors.Activator;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
+import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
+import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
+import org.eclipse.papyrus.umlutils.ui.VisualInformationPapyrusConstant;
+import org.eclipse.papyrus.umlutils.ui.helper.NameLabelIconHelper;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.AccessibleEvent;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.FontData;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.ui.PlatformUI;
+
+/**
+ * @generated
+ */
+public class DataTypeNameEditPartCN extends CompartmentEditPart implements ITextAwareEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 5136;
+
+ /**
+ * @generated
+ */
+ private DirectEditManager manager;
+
+ /**
+ * @generated
+ */
+ private IParser parser;
+
+ /**
+ * @generated
+ */
+ private List<?> parserElements;
+
+ /**
+ * @generated
+ */
+ private String defaultText;
+
+ /**
+ * direct edition mode (default, undefined, registered editor, etc.)
+ *
+ * @generated
+ */
+ protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
+
+ /**
+ * configuration from a registered edit dialog
+ *
+ * @generated
+ */
+ protected IDirectEditorConfiguration configuration;
+
+ /**
+ * @generated
+ */
+ public DataTypeNameEditPartCN(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
+ installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new CompositeStructureDiagramEditPart.NodeLabelDragPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelTextHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getText();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getText();
+ } else {
+ return ((Label)figure).getText();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelTextHelper(IFigure figure, String text) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setText(text);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setText(text);
+ } else {
+ ((Label)figure).setText(text);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIconHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getIcon();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getIcon();
+ } else {
+ return ((Label)figure).getIcon();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelIconHelper(IFigure figure, Image icon) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setIcon(icon);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setIcon(icon);
+ } else {
+ ((Label)figure).setIcon(icon);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabel(WrappingLabel figure) {
+ unregisterVisuals();
+ setFigure(figure);
+ defaultText = getLabelTextHelper(figure);
+ registerVisuals();
+ refreshVisuals();
+ }
+
+ /**
+ * @generated
+ */
+ protected List getModelChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject getParserElement() {
+ return resolveSemanticElement();
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIcon() {
+ EObject parserElement = getParserElement();
+ if(parserElement == null) {
+ return null;
+ }
+
+ List<View> views = DiagramEditPartsUtil.findViews(parserElement, getViewer());
+ for(View view : views) {
+ if(NameLabelIconHelper.showLabelIcon(view)) {
+ return UMLElementTypes.getImage(parserElement.eClass());
+ }
+ }
+ return null;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelText() {
+ String text = null;
+ EObject parserElement = getParserElement();
+ if(parserElement != null && getParser() != null) {
+ text = getParser().getPrintString(new EObjectAdapter(parserElement), getParserOptions().intValue());
+ }
+ if(text == null || text.length() == 0) {
+ text = defaultText;
+ }
+ return text;
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabelText(String text) {
+ setLabelTextHelper(getFigure(), text);
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public String getEditText() {
+ if(getParserElement() == null || getParser() == null) {
+ return ""; //$NON-NLS-1$
+ }
+ return getParser().getEditString(new EObjectAdapter(getParserElement()), getParserOptions().intValue());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean isEditable() {
+ return getParser() != null;
+ }
+
+ /**
+ * @generated
+ */
+ public ICellEditorValidator getEditTextValidator() {
+ return new ICellEditorValidator() {
+
+ public String isValid(final Object value) {
+ if(value instanceof String) {
+ final EObject element = getParserElement();
+ final IParser parser = getParser();
+ try {
+ IParserEditStatus valid = (IParserEditStatus)getEditingDomain().runExclusive(new RunnableWithResult.Impl() {
+
+ public void run() {
+ setResult(parser.isValidEditString(new EObjectAdapter(element), (String)value));
+ }
+ });
+ return valid.getCode() == ParserEditStatus.EDITABLE ? null : valid.getMessage();
+ } catch (InterruptedException ie) {
+ ie.printStackTrace();
+ }
+ }
+
+ // shouldn't get here
+ return null;
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ public IContentAssistProcessor getCompletionProcessor() {
+ if(getParserElement() == null || getParser() == null) {
+ return null;
+ }
+ return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
+ }
+
+ /**
+ * @generated
+ */
+ public ParserOptions getParserOptions() {
+ return ParserOptions.NONE;
+ }
+
+ /**
+ * @generated
+ */
+ public IParser getParser() {
+ if(parser == null) {
+ parser = UMLParserProvider.getParser(UMLElementTypes.DataType_3080, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.diagram.composite.edit.parts.DataTypeNameEditPartCN.VISUAL_ID));
+ }
+ return parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected DirectEditManager getManager() {
+ if(manager == null) {
+ setManager(new MultilineLabelDirectEditManager(this, MultilineLabelDirectEditManager.getTextCellEditorClass(this), UMLEditPartFactory.getTextCellEditorLocator(this)));
+ }
+ return manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setManager(DirectEditManager manager) {
+ this.manager = manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit() {
+ getManager().show();
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit(Point eventLocation) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(eventLocation.getSWTPoint());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void performDirectEdit(char initialCharacter) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(initialCharacter);
+ } else {
+ performDirectEdit();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEditRequest(Request request) {
+
+ final Request theRequest = request;
+
+ if(IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
+ directEditionMode = getDirectEditionType();
+ }
+ switch(directEditionMode) {
+ case IDirectEdition.NO_DIRECT_EDITION:
+ // no direct edition mode => does nothing
+ return;
+ case IDirectEdition.EXTENDED_DIRECT_EDITOR:
+ updateExtendedEditorConfiguration();
+ if(configuration == null || configuration.getLanguage() == null) {
+ performDefaultDirectEditorEdit(theRequest);
+ } else {
+ configuration.preEditAction(resolveSemanticElement());
+ Dialog dialog = null;
+ if(configuration instanceof IPopupEditorConfiguration) {
+ IPopupEditorHelper helper = ((IPopupEditorConfiguration)configuration).createPopupEditorHelper(this);
+ helper.showEditor();
+ return;
+ } else if(configuration instanceof IAdvancedEditorConfiguration) {
+ dialog = ((IAdvancedEditorConfiguration)configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
+ } else if(configuration instanceof IDirectEditorConfiguration) {
+ dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), ((IDirectEditorConfiguration)configuration).getTextToEdit(resolveSemanticElement()), (IDirectEditorConfiguration)configuration);
+ } else {
+ return;
+ }
+ final Dialog finalDialog = dialog;
+
+ if(Window.OK == dialog.open()) {
+ TransactionalEditingDomain domain = getEditingDomain();
+ RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
+
+ @Override
+ protected void doExecute() {
+ configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog)finalDialog).getValue());
+
+ }
+ };
+ domain.getCommandStack().execute(command);
+ }
+ }
+ break;
+ case IDirectEdition.DEFAULT_DIRECT_EDITOR:
+
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ break;
+ default:
+ break;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshLabel();
+ refreshFont();
+ refreshFontColor();
+ refreshUnderline();
+ refreshStrikeThrough();
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshLabel() {
+ EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
+ if(maskLabelPolicy == null) {
+ setLabelTextHelper(getFigure(), getLabelText());
+ setLabelIconHelper(getFigure(), getLabelIcon());
+ }
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshUnderline() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextUnderline(style.isUnderline());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshStrikeThrough() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextStrikeThrough(style.isStrikeThrough());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshFont() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null) {
+ FontData fontData = new FontData(style.getFontName(), style.getFontHeight(), (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
+ setFont(fontData);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setFontColor(Color color) {
+ getFigure().setForegroundColor(color);
+ }
+
+ /**
+ * @generated
+ */
+ protected void addSemanticListeners() {
+ if(getParser() instanceof ISemanticParser) {
+ EObject element = resolveSemanticElement();
+ parserElements = ((ISemanticParser)getParser()).getSemanticElementsBeingParsed(element);
+ for(int i = 0; i < parserElements.size(); i++) {
+ addListenerFilter("SemanticModel" + i, this, (EObject)parserElements.get(i)); //$NON-NLS-1$
+ }
+ } else {
+ super.addSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeSemanticListeners() {
+ if(parserElements != null) {
+ for(int i = 0; i < parserElements.size(); i++) {
+ removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
+ }
+ } else {
+ super.removeSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected AccessibleEditPart getAccessibleEditPart() {
+ if(accessibleEP == null) {
+ accessibleEP = new AccessibleGraphicalEditPart() {
+
+ public void getName(AccessibleEvent e) {
+ e.result = getLabelTextHelper(getFigure());
+ }
+ };
+ }
+ return accessibleEP;
+ }
+
+ /**
+ * @generated
+ */
+ private View getFontStyleOwnerView() {
+ return (View)getModel();
+ }
+
+ /**
+ * Returns the kind of associated editor for direct edition.
+ *
+ * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition
+ * @generated
+ */
+ public int getDirectEditionType() {
+ if(checkExtendedEditor()) {
+ initExtendedEditorConfiguration();
+ return IDirectEdition.EXTENDED_DIRECT_EDITOR;
+ }
+ if(checkDefaultEdition()) {
+ return IDirectEdition.DEFAULT_DIRECT_EDITOR;
+ }
+
+ // not a named element. no specific editor => do nothing
+ return IDirectEdition.NO_DIRECT_EDITION;
+ }
+
+ /**
+ * Checks if an extended editor is present.
+ *
+ * @return <code>true</code> if an extended editor is present.
+ * @generated
+ */
+ protected boolean checkExtendedEditor() {
+ if(resolveSemanticElement() != null) {
+ return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ return false;
+ }
+
+ /**
+ * Checks if a default direct edition is available
+ *
+ * @return <code>true</code> if a default direct edition is available
+ * @generated
+ */
+ protected boolean checkDefaultEdition() {
+ return (getParser() != null);
+ }
+
+ /**
+ * Initializes the extended editor configuration
+ *
+ * @generated
+ */
+ protected void initExtendedEditorConfiguration() {
+ if(configuration == null) {
+ final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("")) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else {
+ configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ }
+ }
+
+ /**
+ * Updates the preference configuration
+ *
+ * @generated
+ */
+ protected void updateExtendedEditorConfiguration() {
+ String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("") && languagePreferred != configuration.getLanguage()) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else if(IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
+ configuration = null;
+ }
+ }
+
+ /**
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
+ protected void performDefaultDirectEditorEdit(final Request theRequest) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void addNotationalListeners() {
+ super.addNotationalListeners();
+ addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeNotationalListeners() {
+ super.removeNotationalListeners();
+ removeListenerFilter("PrimaryView"); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void handleNotificationEvent(Notification event) {
+ refreshLabel();
+ Object feature = event.getFeature();
+ if(NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
+ Integer c = (Integer)event.getNewValue();
+ setFontColor(DiagramColorRegistry.getInstance().getColor(c));
+ } else if(NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
+ refreshUnderline();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
+ refreshStrikeThrough();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
+ refreshFont();
+ } else {
+ if(getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
+ refreshLabel();
+ }
+ if(getParser() instanceof ISemanticParser) {
+ ISemanticParser modelParser = (ISemanticParser)getParser();
+ if(modelParser.areSemanticElementsAffected(null, event)) {
+ removeSemanticListeners();
+ if(resolveSemanticElement() != null) {
+ addSemanticListeners();
+ }
+ refreshLabel();
+ }
+ }
+ }
+
+ if(event.getNewValue() instanceof EAnnotation && VisualInformationPapyrusConstant.DISPLAY_NAMELABELICON.equals(((EAnnotation)event.getNewValue()).getSource())) {
+ refreshLabel();
+ }
+
+ super.handleNotificationEvent(event);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createFigure() {
+ // Parent should assign one using setLabel() method
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ private static final String ADD_PARENT_MODEL = "AddParentModel";
+
+ /**
+ * @generated
+ */
+ public void activate() {
+ super.activate();
+ addOwnerElementListeners();
+ }
+
+ /**
+ * @generated
+ */
+ protected void addOwnerElementListeners() {
+ addListenerFilter(ADD_PARENT_MODEL, this, ((View)getParent().getModel())); //$NON-NLS-1$
+
+ }
+
+ /**
+ * @generated
+ */
+ public void deactivate() {
+ removeOwnerElementListeners();
+ super.deactivate();
+
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeOwnerElementListeners() {
+ removeListenerFilter(ADD_PARENT_MODEL);
+
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/DataTypeOperationCompartmentEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/DataTypeOperationCompartmentEditPart.java
new file mode 100644
index 00000000000..ffc89575301
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/DataTypeOperationCompartmentEditPart.java
@@ -0,0 +1,125 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import org.eclipse.draw2d.geometry.Dimension;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.draw2d.geometry.Rectangle;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.GraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ListCompartmentEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.CreationEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.DragDropEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.ResizableCompartmentEditPolicy;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.diagram.common.editpolicies.DuplicatePasteEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.CustomDiagramDragDropEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.RemoveOrphanViewPolicy;
+import org.eclipse.papyrus.diagram.composite.edit.policies.DataTypeOperationCompartmentItemSemanticEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.Messages;
+
+/**
+ * @generated
+ */
+public class DataTypeOperationCompartmentEditPart
+
+extends ListCompartmentEditPart
+
+{
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 7034;
+
+ /**
+ * @generated
+ */
+ public DataTypeOperationCompartmentEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean hasModelChildrenChanged(Notification evt) {
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ public String getCompartmentName() {
+ return Messages.DataTypeOperationCompartmentEditPart_title;
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new ResizableCompartmentEditPolicy());
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new DataTypeOperationCompartmentItemSemanticEditPolicy());
+ installEditPolicy(EditPolicyRoles.CREATION_ROLE, new CreationEditPolicy());
+ installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new DragDropEditPolicy());
+ installEditPolicy(DuplicatePasteEditPolicy.PASTE_ROLE, new DuplicatePasteEditPolicy());
+ installEditPolicy("REMOVE_ORPHAN_VIEW", new RemoveOrphanViewPolicy()); //$NON-NLS-1$
+ installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new CustomDiagramDragDropEditPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ protected void setRatio(Double ratio) {
+ if(getFigure().getParent().getLayoutManager() instanceof ConstrainedToolbarLayout) {
+ super.setRatio(ratio);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void handleNotificationEvent(Notification notification) {
+ Object feature = notification.getFeature();
+ if(NotationPackage.eINSTANCE.getSize_Width().equals(feature) || NotationPackage.eINSTANCE.getSize_Height().equals(feature) || NotationPackage.eINSTANCE.getLocation_X().equals(feature) || NotationPackage.eINSTANCE.getLocation_Y().equals(feature)) {
+ refreshBounds();
+ }
+ super.handleNotificationEvent(notification);
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshBounds() {
+ int width = ((Integer)getStructuralFeatureValue(NotationPackage.eINSTANCE.getSize_Width())).intValue();
+ int height = ((Integer)getStructuralFeatureValue(NotationPackage.eINSTANCE.getSize_Height())).intValue();
+ Dimension size = new Dimension(width, height);
+ int x = ((Integer)getStructuralFeatureValue(NotationPackage.eINSTANCE.getLocation_X())).intValue();
+ int y = ((Integer)getStructuralFeatureValue(NotationPackage.eINSTANCE.getLocation_Y())).intValue();
+ Point loc = new Point(x, y);
+ ((GraphicalEditPart)getParent()).setLayoutConstraint(this, getFigure(), new Rectangle(loc, size));
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshBounds();
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/DataTypeOperationCompartmentEditPartCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/DataTypeOperationCompartmentEditPartCN.java
new file mode 100644
index 00000000000..31b6acb0aca
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/DataTypeOperationCompartmentEditPartCN.java
@@ -0,0 +1,125 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import org.eclipse.draw2d.geometry.Dimension;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.draw2d.geometry.Rectangle;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.GraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ListCompartmentEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.CreationEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.DragDropEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.ResizableCompartmentEditPolicy;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.diagram.common.editpolicies.DuplicatePasteEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.CustomDiagramDragDropEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.RemoveOrphanViewPolicy;
+import org.eclipse.papyrus.diagram.composite.edit.policies.DataTypeOperationCompartmentItemSemanticEditPolicyCN;
+import org.eclipse.papyrus.diagram.composite.part.Messages;
+
+/**
+ * @generated
+ */
+public class DataTypeOperationCompartmentEditPartCN
+
+extends ListCompartmentEditPart
+
+{
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 7037;
+
+ /**
+ * @generated
+ */
+ public DataTypeOperationCompartmentEditPartCN(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean hasModelChildrenChanged(Notification evt) {
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ public String getCompartmentName() {
+ return Messages.DataTypeOperationCompartmentEditPartCN_title;
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new ResizableCompartmentEditPolicy());
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new DataTypeOperationCompartmentItemSemanticEditPolicyCN());
+ installEditPolicy(EditPolicyRoles.CREATION_ROLE, new CreationEditPolicy());
+ installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new DragDropEditPolicy());
+ installEditPolicy(DuplicatePasteEditPolicy.PASTE_ROLE, new DuplicatePasteEditPolicy());
+ installEditPolicy("REMOVE_ORPHAN_VIEW", new RemoveOrphanViewPolicy()); //$NON-NLS-1$
+ installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new CustomDiagramDragDropEditPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ protected void setRatio(Double ratio) {
+ if(getFigure().getParent().getLayoutManager() instanceof ConstrainedToolbarLayout) {
+ super.setRatio(ratio);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void handleNotificationEvent(Notification notification) {
+ Object feature = notification.getFeature();
+ if(NotationPackage.eINSTANCE.getSize_Width().equals(feature) || NotationPackage.eINSTANCE.getSize_Height().equals(feature) || NotationPackage.eINSTANCE.getLocation_X().equals(feature) || NotationPackage.eINSTANCE.getLocation_Y().equals(feature)) {
+ refreshBounds();
+ }
+ super.handleNotificationEvent(notification);
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshBounds() {
+ int width = ((Integer)getStructuralFeatureValue(NotationPackage.eINSTANCE.getSize_Width())).intValue();
+ int height = ((Integer)getStructuralFeatureValue(NotationPackage.eINSTANCE.getSize_Height())).intValue();
+ Dimension size = new Dimension(width, height);
+ int x = ((Integer)getStructuralFeatureValue(NotationPackage.eINSTANCE.getLocation_X())).intValue();
+ int y = ((Integer)getStructuralFeatureValue(NotationPackage.eINSTANCE.getLocation_Y())).intValue();
+ Point loc = new Point(x, y);
+ ((GraphicalEditPart)getParent()).setLayoutConstraint(this, getFigure(), new Rectangle(loc, size));
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshBounds();
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/DependencyAppliedStereotypeEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/DependencyAppliedStereotypeEditPart.java
new file mode 100644
index 00000000000..499053828e3
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/DependencyAppliedStereotypeEditPart.java
@@ -0,0 +1,742 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.ConnectionLocator;
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.emf.transaction.RunnableWithResult;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.AccessibleEditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.requests.DirectEditRequest;
+import org.eclipse.gef.tools.DirectEditManager;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.LabelEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
+import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
+import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
+import org.eclipse.gmf.runtime.notation.FontStyle;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
+import org.eclipse.jface.viewers.ICellEditorValidator;
+import org.eclipse.jface.window.Window;
+import org.eclipse.papyrus.diagram.common.directedit.MultilineLabelDirectEditManager;
+import org.eclipse.papyrus.diagram.common.editparts.ILabelRoleProvider;
+import org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition;
+import org.eclipse.papyrus.diagram.common.editpolicies.IMaskManagedLabelEditPolicy;
+import org.eclipse.papyrus.diagram.common.figure.node.ILabelFigure;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLTextSelectionEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.diagram.composite.providers.UMLParserProvider;
+import org.eclipse.papyrus.extensionpoints.editors.Activator;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
+import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
+import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.AccessibleEvent;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.FontData;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.ui.PlatformUI;
+
+/**
+ * @generated
+ */
+public class DependencyAppliedStereotypeEditPart extends LabelEditPart implements ITextAwareEditPart
+
+, ILabelRoleProvider
+
+{
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 6023;
+
+ /**
+ * @generated
+ */
+ private DirectEditManager manager;
+
+ /**
+ * @generated
+ */
+ private IParser parser;
+
+ /**
+ * @generated
+ */
+ private List<?> parserElements;
+
+ /**
+ * @generated
+ */
+ private String defaultText;
+
+ /**
+ * direct edition mode (default, undefined, registered editor, etc.)
+ *
+ * @generated
+ */
+ protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
+
+ /**
+ * configuration from a registered edit dialog
+ *
+ * @generated
+ */
+ protected IDirectEditorConfiguration configuration;
+
+ /**
+ * @generated
+ */
+ static {
+ registerSnapBackPosition(UMLVisualIDRegistry.getType(org.eclipse.papyrus.diagram.composite.edit.parts.DependencyAppliedStereotypeEditPart.VISUAL_ID), new Point(0, 60));
+ }
+
+ /**
+ * @generated
+ */
+ public DependencyAppliedStereotypeEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
+ installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new CompositeStructureDiagramEditPart.LinkLabelDragPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ public int getKeyPoint() {
+ return ConnectionLocator.MIDDLE;
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelTextHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getText();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getText();
+ } else {
+ return ((Label)figure).getText();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelTextHelper(IFigure figure, String text) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setText(text);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setText(text);
+ } else {
+ ((Label)figure).setText(text);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIconHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getIcon();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getIcon();
+ } else {
+ return ((Label)figure).getIcon();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelIconHelper(IFigure figure, Image icon) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setIcon(icon);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setIcon(icon);
+ } else {
+ ((Label)figure).setIcon(icon);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabel(WrappingLabel figure) {
+ unregisterVisuals();
+ setFigure(figure);
+ defaultText = getLabelTextHelper(figure);
+ registerVisuals();
+ refreshVisuals();
+ }
+
+ /**
+ * @generated
+ */
+ protected List getModelChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject getParserElement() {
+ return resolveSemanticElement();
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIcon() {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelText() {
+ String text = null;
+ EObject parserElement = getParserElement();
+ if(parserElement != null && getParser() != null) {
+ text = getParser().getPrintString(new EObjectAdapter(parserElement), getParserOptions().intValue());
+ }
+ if(text == null || text.length() == 0) {
+ text = defaultText;
+ }
+ return text;
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabelText(String text) {
+ setLabelTextHelper(getFigure(), text);
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public String getEditText() {
+ if(getParserElement() == null || getParser() == null) {
+ return ""; //$NON-NLS-1$
+ }
+ return getParser().getEditString(new EObjectAdapter(getParserElement()), getParserOptions().intValue());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean isEditable() {
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ public ICellEditorValidator getEditTextValidator() {
+ return new ICellEditorValidator() {
+
+ public String isValid(final Object value) {
+ if(value instanceof String) {
+ final EObject element = getParserElement();
+ final IParser parser = getParser();
+ try {
+ IParserEditStatus valid = (IParserEditStatus)getEditingDomain().runExclusive(new RunnableWithResult.Impl() {
+
+ public void run() {
+ setResult(parser.isValidEditString(new EObjectAdapter(element), (String)value));
+ }
+ });
+ return valid.getCode() == ParserEditStatus.EDITABLE ? null : valid.getMessage();
+ } catch (InterruptedException ie) {
+ ie.printStackTrace();
+ }
+ }
+
+ // shouldn't get here
+ return null;
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ public IContentAssistProcessor getCompletionProcessor() {
+ if(getParserElement() == null || getParser() == null) {
+ return null;
+ }
+ return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
+ }
+
+ /**
+ * @generated
+ */
+ public ParserOptions getParserOptions() {
+ return ParserOptions.NONE;
+ }
+
+ /**
+ * @generated
+ */
+ public IParser getParser() {
+ if(parser == null) {
+ parser = UMLParserProvider.getParser(UMLElementTypes.Dependency_4010, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.diagram.composite.edit.parts.DependencyAppliedStereotypeEditPart.VISUAL_ID));
+ }
+ return parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected DirectEditManager getManager() {
+ if(manager == null) {
+ setManager(new MultilineLabelDirectEditManager(this, MultilineLabelDirectEditManager.getTextCellEditorClass(this), UMLEditPartFactory.getTextCellEditorLocator(this)));
+ }
+ return manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setManager(DirectEditManager manager) {
+ this.manager = manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit() {
+ getManager().show();
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit(Point eventLocation) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(eventLocation.getSWTPoint());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void performDirectEdit(char initialCharacter) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(initialCharacter);
+ } else {
+ performDirectEdit();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEditRequest(Request request) {
+
+ final Request theRequest = request;
+
+ if(IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
+ directEditionMode = getDirectEditionType();
+ }
+ switch(directEditionMode) {
+ case IDirectEdition.NO_DIRECT_EDITION:
+ // no direct edition mode => does nothing
+ return;
+ case IDirectEdition.EXTENDED_DIRECT_EDITOR:
+ updateExtendedEditorConfiguration();
+ if(configuration == null || configuration.getLanguage() == null) {
+ performDefaultDirectEditorEdit(theRequest);
+ } else {
+ configuration.preEditAction(resolveSemanticElement());
+ Dialog dialog = null;
+ if(configuration instanceof IPopupEditorConfiguration) {
+ IPopupEditorHelper helper = ((IPopupEditorConfiguration)configuration).createPopupEditorHelper(this);
+ helper.showEditor();
+ return;
+ } else if(configuration instanceof IAdvancedEditorConfiguration) {
+ dialog = ((IAdvancedEditorConfiguration)configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
+ } else if(configuration instanceof IDirectEditorConfiguration) {
+ dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), ((IDirectEditorConfiguration)configuration).getTextToEdit(resolveSemanticElement()), (IDirectEditorConfiguration)configuration);
+ } else {
+ return;
+ }
+ final Dialog finalDialog = dialog;
+
+ if(Window.OK == dialog.open()) {
+ TransactionalEditingDomain domain = getEditingDomain();
+ RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
+
+ @Override
+ protected void doExecute() {
+ configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog)finalDialog).getValue());
+
+ }
+ };
+ domain.getCommandStack().execute(command);
+ }
+ }
+ break;
+ case IDirectEdition.DEFAULT_DIRECT_EDITOR:
+
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ break;
+ default:
+ break;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshLabel();
+ refreshFont();
+ refreshFontColor();
+ refreshUnderline();
+ refreshStrikeThrough();
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshLabel() {
+ EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
+ if(maskLabelPolicy == null) {
+ setLabelTextHelper(getFigure(), getLabelText());
+ setLabelIconHelper(getFigure(), getLabelIcon());
+ }
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshUnderline() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextUnderline(style.isUnderline());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshStrikeThrough() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextStrikeThrough(style.isStrikeThrough());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshFont() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null) {
+ FontData fontData = new FontData(style.getFontName(), style.getFontHeight(), (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
+ setFont(fontData);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setFontColor(Color color) {
+ getFigure().setForegroundColor(color);
+ }
+
+ /**
+ * @generated
+ */
+ protected void addSemanticListeners() {
+ if(getParser() instanceof ISemanticParser) {
+ EObject element = resolveSemanticElement();
+ parserElements = ((ISemanticParser)getParser()).getSemanticElementsBeingParsed(element);
+ for(int i = 0; i < parserElements.size(); i++) {
+ addListenerFilter("SemanticModel" + i, this, (EObject)parserElements.get(i)); //$NON-NLS-1$
+ }
+ } else {
+ super.addSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeSemanticListeners() {
+ if(parserElements != null) {
+ for(int i = 0; i < parserElements.size(); i++) {
+ removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
+ }
+ } else {
+ super.removeSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected AccessibleEditPart getAccessibleEditPart() {
+ if(accessibleEP == null) {
+ accessibleEP = new AccessibleGraphicalEditPart() {
+
+ public void getName(AccessibleEvent e) {
+ e.result = getLabelTextHelper(getFigure());
+ }
+ };
+ }
+ return accessibleEP;
+ }
+
+ /**
+ * @generated
+ */
+ private View getFontStyleOwnerView() {
+ return getPrimaryView();
+ }
+
+ /**
+ * Returns the kind of associated editor for direct edition.
+ *
+ * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition
+ * @generated
+ */
+ public int getDirectEditionType() {
+ // The label is read-only (defined in GMFGen model)
+ return IDirectEdition.NO_DIRECT_EDITION;
+ }
+
+ /**
+ * Checks if an extended editor is present.
+ *
+ * @return <code>true</code> if an extended editor is present.
+ * @generated
+ */
+ protected boolean checkExtendedEditor() {
+ if(resolveSemanticElement() != null) {
+ return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ return false;
+ }
+
+ /**
+ * Checks if a default direct edition is available
+ *
+ * @return <code>true</code> if a default direct edition is available
+ * @generated
+ */
+ protected boolean checkDefaultEdition() {
+ return (getParser() != null);
+ }
+
+ /**
+ * Initializes the extended editor configuration
+ *
+ * @generated
+ */
+ protected void initExtendedEditorConfiguration() {
+ if(configuration == null) {
+ final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("")) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else {
+ configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ }
+ }
+
+ /**
+ * Updates the preference configuration
+ *
+ * @generated
+ */
+ protected void updateExtendedEditorConfiguration() {
+ String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("") && languagePreferred != configuration.getLanguage()) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else if(IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
+ configuration = null;
+ }
+ }
+
+ /**
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
+ protected void performDefaultDirectEditorEdit(final Request theRequest) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void handleNotificationEvent(Notification event) {
+ Object feature = event.getFeature();
+ if(NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
+ Integer c = (Integer)event.getNewValue();
+ setFontColor(DiagramColorRegistry.getInstance().getColor(c));
+ } else if(NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
+ refreshUnderline();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
+ refreshStrikeThrough();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
+ refreshFont();
+ } else {
+ if(getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
+ refreshLabel();
+ }
+ if(getParser() instanceof ISemanticParser) {
+ ISemanticParser modelParser = (ISemanticParser)getParser();
+ if(modelParser.areSemanticElementsAffected(null, event)) {
+ removeSemanticListeners();
+ if(resolveSemanticElement() != null) {
+ addSemanticListeners();
+ }
+ refreshLabel();
+ }
+ }
+ }
+
+ super.handleNotificationEvent(event);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createFigure() {
+ // Parent should assign one using setLabel() method
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ public String getLabelRole() {
+ return "Stereotype";//$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ public String getIconPathRole() {
+ return "";//$NON-NLS-1$
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/DependencyEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/DependencyEditPart.java
new file mode 100644
index 00000000000..21af7b04647
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/DependencyEditPart.java
@@ -0,0 +1,121 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import org.eclipse.draw2d.Connection;
+import org.eclipse.gef.EditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITreeBranchEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.diagram.common.editparts.UMLConnectionNodeEditPart;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeLinkLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.figure.edge.DashedEdgeFigure;
+import org.eclipse.papyrus.diagram.composite.edit.policies.DependencyItemSemanticEditPolicy;
+
+/**
+ * @generated
+ */
+public class DependencyEditPart extends
+
+UMLConnectionNodeEditPart implements ITreeBranchEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 4010;
+
+ /**
+ * @generated
+ */
+ public DependencyEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new DependencyItemSemanticEditPolicy());
+ installEditPolicy(AppliedStereotypeLinkLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeLinkLabelDisplayEditPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean addFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof DependencyNameEditPart) {
+ ((DependencyNameEditPart)childEditPart).setLabel(getPrimaryShape().getNameLabel());
+ return true;
+ }
+ if(childEditPart instanceof DependencyAppliedStereotypeEditPart) {
+ ((DependencyAppliedStereotypeEditPart)childEditPart).setLabel(getPrimaryShape().getAppliedStereotypeLabel());
+ return true;
+ }
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected void addChildVisual(EditPart childEditPart, int index) {
+ if(addFixedChild(childEditPart)) {
+ return;
+ }
+ super.addChildVisual(childEditPart, -1);
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean removeFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof DependencyNameEditPart) {
+ return true;
+ }
+ if(childEditPart instanceof DependencyAppliedStereotypeEditPart) {
+ return true;
+ }
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeChildVisual(EditPart childEditPart) {
+ if(removeFixedChild(childEditPart)) {
+ return;
+ }
+ super.removeChildVisual(childEditPart);
+ }
+
+ /**
+ * Creates figure for this edit part.
+ *
+ * Body of this method does not depend on settings in generation model
+ * so you may safely remove <i>generated</i> tag and modify it.
+ *
+ * @generated
+ */
+ protected Connection createConnectionFigure() {
+ return new DashedEdgeFigure();
+ }
+
+ /**
+ * @generated
+ */
+ public DashedEdgeFigure getPrimaryShape() {
+ return (DashedEdgeFigure)getFigure();
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/DependencyNameEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/DependencyNameEditPart.java
new file mode 100644
index 00000000000..aa0ac5efb4a
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/DependencyNameEditPart.java
@@ -0,0 +1,750 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.ConnectionLocator;
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.emf.transaction.RunnableWithResult;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.AccessibleEditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.requests.DirectEditRequest;
+import org.eclipse.gef.tools.DirectEditManager;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.LabelEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
+import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
+import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
+import org.eclipse.gmf.runtime.notation.FontStyle;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
+import org.eclipse.jface.viewers.ICellEditorValidator;
+import org.eclipse.jface.window.Window;
+import org.eclipse.papyrus.diagram.common.directedit.MultilineLabelDirectEditManager;
+import org.eclipse.papyrus.diagram.common.editparts.ILabelRoleProvider;
+import org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition;
+import org.eclipse.papyrus.diagram.common.editpolicies.IMaskManagedLabelEditPolicy;
+import org.eclipse.papyrus.diagram.common.figure.node.ILabelFigure;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLTextSelectionEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.diagram.composite.providers.UMLParserProvider;
+import org.eclipse.papyrus.extensionpoints.editors.Activator;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
+import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
+import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.AccessibleEvent;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.FontData;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.ui.PlatformUI;
+
+/**
+ * @generated
+ */
+public class DependencyNameEditPart extends LabelEditPart implements ITextAwareEditPart
+
+, ILabelRoleProvider
+
+{
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 6009;
+
+ /**
+ * @generated
+ */
+ private DirectEditManager manager;
+
+ /**
+ * @generated
+ */
+ private IParser parser;
+
+ /**
+ * @generated
+ */
+ private List<?> parserElements;
+
+ /**
+ * @generated
+ */
+ private String defaultText;
+
+ /**
+ * direct edition mode (default, undefined, registered editor, etc.)
+ *
+ * @generated
+ */
+ protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
+
+ /**
+ * configuration from a registered edit dialog
+ *
+ * @generated
+ */
+ protected IDirectEditorConfiguration configuration;
+
+ /**
+ * @generated
+ */
+ static {
+ registerSnapBackPosition(UMLVisualIDRegistry.getType(org.eclipse.papyrus.diagram.composite.edit.parts.DependencyNameEditPart.VISUAL_ID), new Point(0, 60));
+ }
+
+ /**
+ * @generated
+ */
+ public DependencyNameEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
+ installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new CompositeStructureDiagramEditPart.LinkLabelDragPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ public int getKeyPoint() {
+ return ConnectionLocator.MIDDLE;
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelTextHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getText();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getText();
+ } else {
+ return ((Label)figure).getText();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelTextHelper(IFigure figure, String text) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setText(text);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setText(text);
+ } else {
+ ((Label)figure).setText(text);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIconHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getIcon();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getIcon();
+ } else {
+ return ((Label)figure).getIcon();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelIconHelper(IFigure figure, Image icon) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setIcon(icon);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setIcon(icon);
+ } else {
+ ((Label)figure).setIcon(icon);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabel(WrappingLabel figure) {
+ unregisterVisuals();
+ setFigure(figure);
+ defaultText = getLabelTextHelper(figure);
+ registerVisuals();
+ refreshVisuals();
+ }
+
+ /**
+ * @generated
+ */
+ protected List getModelChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject getParserElement() {
+ return resolveSemanticElement();
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIcon() {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelText() {
+ String text = null;
+ EObject parserElement = getParserElement();
+ if(parserElement != null && getParser() != null) {
+ text = getParser().getPrintString(new EObjectAdapter(parserElement), getParserOptions().intValue());
+ }
+ if(text == null || text.length() == 0) {
+ text = defaultText;
+ }
+ return text;
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabelText(String text) {
+ setLabelTextHelper(getFigure(), text);
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public String getEditText() {
+ if(getParserElement() == null || getParser() == null) {
+ return ""; //$NON-NLS-1$
+ }
+ return getParser().getEditString(new EObjectAdapter(getParserElement()), getParserOptions().intValue());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean isEditable() {
+ return getParser() != null;
+ }
+
+ /**
+ * @generated
+ */
+ public ICellEditorValidator getEditTextValidator() {
+ return new ICellEditorValidator() {
+
+ public String isValid(final Object value) {
+ if(value instanceof String) {
+ final EObject element = getParserElement();
+ final IParser parser = getParser();
+ try {
+ IParserEditStatus valid = (IParserEditStatus)getEditingDomain().runExclusive(new RunnableWithResult.Impl() {
+
+ public void run() {
+ setResult(parser.isValidEditString(new EObjectAdapter(element), (String)value));
+ }
+ });
+ return valid.getCode() == ParserEditStatus.EDITABLE ? null : valid.getMessage();
+ } catch (InterruptedException ie) {
+ ie.printStackTrace();
+ }
+ }
+
+ // shouldn't get here
+ return null;
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ public IContentAssistProcessor getCompletionProcessor() {
+ if(getParserElement() == null || getParser() == null) {
+ return null;
+ }
+ return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
+ }
+
+ /**
+ * @generated
+ */
+ public ParserOptions getParserOptions() {
+ return ParserOptions.NONE;
+ }
+
+ /**
+ * @generated
+ */
+ public IParser getParser() {
+ if(parser == null) {
+ parser = UMLParserProvider.getParser(UMLElementTypes.Dependency_4010, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.diagram.composite.edit.parts.DependencyNameEditPart.VISUAL_ID));
+ }
+ return parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected DirectEditManager getManager() {
+ if(manager == null) {
+ setManager(new MultilineLabelDirectEditManager(this, MultilineLabelDirectEditManager.getTextCellEditorClass(this), UMLEditPartFactory.getTextCellEditorLocator(this)));
+ }
+ return manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setManager(DirectEditManager manager) {
+ this.manager = manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit() {
+ getManager().show();
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit(Point eventLocation) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(eventLocation.getSWTPoint());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void performDirectEdit(char initialCharacter) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(initialCharacter);
+ } else {
+ performDirectEdit();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEditRequest(Request request) {
+
+ final Request theRequest = request;
+
+ if(IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
+ directEditionMode = getDirectEditionType();
+ }
+ switch(directEditionMode) {
+ case IDirectEdition.NO_DIRECT_EDITION:
+ // no direct edition mode => does nothing
+ return;
+ case IDirectEdition.EXTENDED_DIRECT_EDITOR:
+ updateExtendedEditorConfiguration();
+ if(configuration == null || configuration.getLanguage() == null) {
+ performDefaultDirectEditorEdit(theRequest);
+ } else {
+ configuration.preEditAction(resolveSemanticElement());
+ Dialog dialog = null;
+ if(configuration instanceof IPopupEditorConfiguration) {
+ IPopupEditorHelper helper = ((IPopupEditorConfiguration)configuration).createPopupEditorHelper(this);
+ helper.showEditor();
+ return;
+ } else if(configuration instanceof IAdvancedEditorConfiguration) {
+ dialog = ((IAdvancedEditorConfiguration)configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
+ } else if(configuration instanceof IDirectEditorConfiguration) {
+ dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), ((IDirectEditorConfiguration)configuration).getTextToEdit(resolveSemanticElement()), (IDirectEditorConfiguration)configuration);
+ } else {
+ return;
+ }
+ final Dialog finalDialog = dialog;
+
+ if(Window.OK == dialog.open()) {
+ TransactionalEditingDomain domain = getEditingDomain();
+ RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
+
+ @Override
+ protected void doExecute() {
+ configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog)finalDialog).getValue());
+
+ }
+ };
+ domain.getCommandStack().execute(command);
+ }
+ }
+ break;
+ case IDirectEdition.DEFAULT_DIRECT_EDITOR:
+
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ break;
+ default:
+ break;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshLabel();
+ refreshFont();
+ refreshFontColor();
+ refreshUnderline();
+ refreshStrikeThrough();
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshLabel() {
+ EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
+ if(maskLabelPolicy == null) {
+ setLabelTextHelper(getFigure(), getLabelText());
+ setLabelIconHelper(getFigure(), getLabelIcon());
+ }
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshUnderline() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextUnderline(style.isUnderline());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshStrikeThrough() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextStrikeThrough(style.isStrikeThrough());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshFont() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null) {
+ FontData fontData = new FontData(style.getFontName(), style.getFontHeight(), (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
+ setFont(fontData);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setFontColor(Color color) {
+ getFigure().setForegroundColor(color);
+ }
+
+ /**
+ * @generated
+ */
+ protected void addSemanticListeners() {
+ if(getParser() instanceof ISemanticParser) {
+ EObject element = resolveSemanticElement();
+ parserElements = ((ISemanticParser)getParser()).getSemanticElementsBeingParsed(element);
+ for(int i = 0; i < parserElements.size(); i++) {
+ addListenerFilter("SemanticModel" + i, this, (EObject)parserElements.get(i)); //$NON-NLS-1$
+ }
+ } else {
+ super.addSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeSemanticListeners() {
+ if(parserElements != null) {
+ for(int i = 0; i < parserElements.size(); i++) {
+ removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
+ }
+ } else {
+ super.removeSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected AccessibleEditPart getAccessibleEditPart() {
+ if(accessibleEP == null) {
+ accessibleEP = new AccessibleGraphicalEditPart() {
+
+ public void getName(AccessibleEvent e) {
+ e.result = getLabelTextHelper(getFigure());
+ }
+ };
+ }
+ return accessibleEP;
+ }
+
+ /**
+ * @generated
+ */
+ private View getFontStyleOwnerView() {
+ return getPrimaryView();
+ }
+
+ /**
+ * Returns the kind of associated editor for direct edition.
+ *
+ * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition
+ * @generated
+ */
+ public int getDirectEditionType() {
+ if(checkExtendedEditor()) {
+ initExtendedEditorConfiguration();
+ return IDirectEdition.EXTENDED_DIRECT_EDITOR;
+ }
+ if(checkDefaultEdition()) {
+ return IDirectEdition.DEFAULT_DIRECT_EDITOR;
+ }
+
+ // not a named element. no specific editor => do nothing
+ return IDirectEdition.NO_DIRECT_EDITION;
+ }
+
+ /**
+ * Checks if an extended editor is present.
+ *
+ * @return <code>true</code> if an extended editor is present.
+ * @generated
+ */
+ protected boolean checkExtendedEditor() {
+ if(resolveSemanticElement() != null) {
+ return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ return false;
+ }
+
+ /**
+ * Checks if a default direct edition is available
+ *
+ * @return <code>true</code> if a default direct edition is available
+ * @generated
+ */
+ protected boolean checkDefaultEdition() {
+ return (getParser() != null);
+ }
+
+ /**
+ * Initializes the extended editor configuration
+ *
+ * @generated
+ */
+ protected void initExtendedEditorConfiguration() {
+ if(configuration == null) {
+ final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("")) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else {
+ configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ }
+ }
+
+ /**
+ * Updates the preference configuration
+ *
+ * @generated
+ */
+ protected void updateExtendedEditorConfiguration() {
+ String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("") && languagePreferred != configuration.getLanguage()) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else if(IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
+ configuration = null;
+ }
+ }
+
+ /**
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
+ protected void performDefaultDirectEditorEdit(final Request theRequest) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void handleNotificationEvent(Notification event) {
+ Object feature = event.getFeature();
+ if(NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
+ Integer c = (Integer)event.getNewValue();
+ setFontColor(DiagramColorRegistry.getInstance().getColor(c));
+ } else if(NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
+ refreshUnderline();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
+ refreshStrikeThrough();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
+ refreshFont();
+ } else {
+ if(getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
+ refreshLabel();
+ }
+ if(getParser() instanceof ISemanticParser) {
+ ISemanticParser modelParser = (ISemanticParser)getParser();
+ if(modelParser.areSemanticElementsAffected(null, event)) {
+ removeSemanticListeners();
+ if(resolveSemanticElement() != null) {
+ addSemanticListeners();
+ }
+ refreshLabel();
+ }
+ }
+ }
+
+ super.handleNotificationEvent(event);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createFigure() {
+ // Parent should assign one using setLabel() method
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ public String getLabelRole() {
+ return "Name";//$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ public String getIconPathRole() {
+ return "";//$NON-NLS-1$
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/DeploymentAppliedStereotypeEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/DeploymentAppliedStereotypeEditPart.java
new file mode 100644
index 00000000000..b4588e0ef26
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/DeploymentAppliedStereotypeEditPart.java
@@ -0,0 +1,742 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.ConnectionLocator;
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.emf.transaction.RunnableWithResult;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.AccessibleEditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.requests.DirectEditRequest;
+import org.eclipse.gef.tools.DirectEditManager;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.LabelEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
+import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
+import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
+import org.eclipse.gmf.runtime.notation.FontStyle;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
+import org.eclipse.jface.viewers.ICellEditorValidator;
+import org.eclipse.jface.window.Window;
+import org.eclipse.papyrus.diagram.common.directedit.MultilineLabelDirectEditManager;
+import org.eclipse.papyrus.diagram.common.editparts.ILabelRoleProvider;
+import org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition;
+import org.eclipse.papyrus.diagram.common.editpolicies.IMaskManagedLabelEditPolicy;
+import org.eclipse.papyrus.diagram.common.figure.node.ILabelFigure;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLTextSelectionEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.diagram.composite.providers.UMLParserProvider;
+import org.eclipse.papyrus.extensionpoints.editors.Activator;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
+import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
+import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.AccessibleEvent;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.FontData;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.ui.PlatformUI;
+
+/**
+ * @generated
+ */
+public class DeploymentAppliedStereotypeEditPart extends LabelEditPart implements ITextAwareEditPart
+
+, ILabelRoleProvider
+
+{
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 6022;
+
+ /**
+ * @generated
+ */
+ private DirectEditManager manager;
+
+ /**
+ * @generated
+ */
+ private IParser parser;
+
+ /**
+ * @generated
+ */
+ private List<?> parserElements;
+
+ /**
+ * @generated
+ */
+ private String defaultText;
+
+ /**
+ * direct edition mode (default, undefined, registered editor, etc.)
+ *
+ * @generated
+ */
+ protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
+
+ /**
+ * configuration from a registered edit dialog
+ *
+ * @generated
+ */
+ protected IDirectEditorConfiguration configuration;
+
+ /**
+ * @generated
+ */
+ static {
+ registerSnapBackPosition(UMLVisualIDRegistry.getType(org.eclipse.papyrus.diagram.composite.edit.parts.DeploymentAppliedStereotypeEditPart.VISUAL_ID), new Point(0, 30));
+ }
+
+ /**
+ * @generated
+ */
+ public DeploymentAppliedStereotypeEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
+ installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new CompositeStructureDiagramEditPart.LinkLabelDragPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ public int getKeyPoint() {
+ return ConnectionLocator.MIDDLE;
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelTextHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getText();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getText();
+ } else {
+ return ((Label)figure).getText();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelTextHelper(IFigure figure, String text) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setText(text);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setText(text);
+ } else {
+ ((Label)figure).setText(text);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIconHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getIcon();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getIcon();
+ } else {
+ return ((Label)figure).getIcon();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelIconHelper(IFigure figure, Image icon) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setIcon(icon);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setIcon(icon);
+ } else {
+ ((Label)figure).setIcon(icon);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabel(WrappingLabel figure) {
+ unregisterVisuals();
+ setFigure(figure);
+ defaultText = getLabelTextHelper(figure);
+ registerVisuals();
+ refreshVisuals();
+ }
+
+ /**
+ * @generated
+ */
+ protected List getModelChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject getParserElement() {
+ return resolveSemanticElement();
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIcon() {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelText() {
+ String text = null;
+ EObject parserElement = getParserElement();
+ if(parserElement != null && getParser() != null) {
+ text = getParser().getPrintString(new EObjectAdapter(parserElement), getParserOptions().intValue());
+ }
+ if(text == null || text.length() == 0) {
+ text = defaultText;
+ }
+ return text;
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabelText(String text) {
+ setLabelTextHelper(getFigure(), text);
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public String getEditText() {
+ if(getParserElement() == null || getParser() == null) {
+ return ""; //$NON-NLS-1$
+ }
+ return getParser().getEditString(new EObjectAdapter(getParserElement()), getParserOptions().intValue());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean isEditable() {
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ public ICellEditorValidator getEditTextValidator() {
+ return new ICellEditorValidator() {
+
+ public String isValid(final Object value) {
+ if(value instanceof String) {
+ final EObject element = getParserElement();
+ final IParser parser = getParser();
+ try {
+ IParserEditStatus valid = (IParserEditStatus)getEditingDomain().runExclusive(new RunnableWithResult.Impl() {
+
+ public void run() {
+ setResult(parser.isValidEditString(new EObjectAdapter(element), (String)value));
+ }
+ });
+ return valid.getCode() == ParserEditStatus.EDITABLE ? null : valid.getMessage();
+ } catch (InterruptedException ie) {
+ ie.printStackTrace();
+ }
+ }
+
+ // shouldn't get here
+ return null;
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ public IContentAssistProcessor getCompletionProcessor() {
+ if(getParserElement() == null || getParser() == null) {
+ return null;
+ }
+ return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
+ }
+
+ /**
+ * @generated
+ */
+ public ParserOptions getParserOptions() {
+ return ParserOptions.NONE;
+ }
+
+ /**
+ * @generated
+ */
+ public IParser getParser() {
+ if(parser == null) {
+ parser = UMLParserProvider.getParser(UMLElementTypes.Deployment_4009, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.diagram.composite.edit.parts.DeploymentAppliedStereotypeEditPart.VISUAL_ID));
+ }
+ return parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected DirectEditManager getManager() {
+ if(manager == null) {
+ setManager(new MultilineLabelDirectEditManager(this, MultilineLabelDirectEditManager.getTextCellEditorClass(this), UMLEditPartFactory.getTextCellEditorLocator(this)));
+ }
+ return manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setManager(DirectEditManager manager) {
+ this.manager = manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit() {
+ getManager().show();
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit(Point eventLocation) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(eventLocation.getSWTPoint());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void performDirectEdit(char initialCharacter) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(initialCharacter);
+ } else {
+ performDirectEdit();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEditRequest(Request request) {
+
+ final Request theRequest = request;
+
+ if(IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
+ directEditionMode = getDirectEditionType();
+ }
+ switch(directEditionMode) {
+ case IDirectEdition.NO_DIRECT_EDITION:
+ // no direct edition mode => does nothing
+ return;
+ case IDirectEdition.EXTENDED_DIRECT_EDITOR:
+ updateExtendedEditorConfiguration();
+ if(configuration == null || configuration.getLanguage() == null) {
+ performDefaultDirectEditorEdit(theRequest);
+ } else {
+ configuration.preEditAction(resolveSemanticElement());
+ Dialog dialog = null;
+ if(configuration instanceof IPopupEditorConfiguration) {
+ IPopupEditorHelper helper = ((IPopupEditorConfiguration)configuration).createPopupEditorHelper(this);
+ helper.showEditor();
+ return;
+ } else if(configuration instanceof IAdvancedEditorConfiguration) {
+ dialog = ((IAdvancedEditorConfiguration)configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
+ } else if(configuration instanceof IDirectEditorConfiguration) {
+ dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), ((IDirectEditorConfiguration)configuration).getTextToEdit(resolveSemanticElement()), (IDirectEditorConfiguration)configuration);
+ } else {
+ return;
+ }
+ final Dialog finalDialog = dialog;
+
+ if(Window.OK == dialog.open()) {
+ TransactionalEditingDomain domain = getEditingDomain();
+ RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
+
+ @Override
+ protected void doExecute() {
+ configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog)finalDialog).getValue());
+
+ }
+ };
+ domain.getCommandStack().execute(command);
+ }
+ }
+ break;
+ case IDirectEdition.DEFAULT_DIRECT_EDITOR:
+
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ break;
+ default:
+ break;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshLabel();
+ refreshFont();
+ refreshFontColor();
+ refreshUnderline();
+ refreshStrikeThrough();
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshLabel() {
+ EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
+ if(maskLabelPolicy == null) {
+ setLabelTextHelper(getFigure(), getLabelText());
+ setLabelIconHelper(getFigure(), getLabelIcon());
+ }
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshUnderline() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextUnderline(style.isUnderline());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshStrikeThrough() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextStrikeThrough(style.isStrikeThrough());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshFont() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null) {
+ FontData fontData = new FontData(style.getFontName(), style.getFontHeight(), (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
+ setFont(fontData);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setFontColor(Color color) {
+ getFigure().setForegroundColor(color);
+ }
+
+ /**
+ * @generated
+ */
+ protected void addSemanticListeners() {
+ if(getParser() instanceof ISemanticParser) {
+ EObject element = resolveSemanticElement();
+ parserElements = ((ISemanticParser)getParser()).getSemanticElementsBeingParsed(element);
+ for(int i = 0; i < parserElements.size(); i++) {
+ addListenerFilter("SemanticModel" + i, this, (EObject)parserElements.get(i)); //$NON-NLS-1$
+ }
+ } else {
+ super.addSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeSemanticListeners() {
+ if(parserElements != null) {
+ for(int i = 0; i < parserElements.size(); i++) {
+ removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
+ }
+ } else {
+ super.removeSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected AccessibleEditPart getAccessibleEditPart() {
+ if(accessibleEP == null) {
+ accessibleEP = new AccessibleGraphicalEditPart() {
+
+ public void getName(AccessibleEvent e) {
+ e.result = getLabelTextHelper(getFigure());
+ }
+ };
+ }
+ return accessibleEP;
+ }
+
+ /**
+ * @generated
+ */
+ private View getFontStyleOwnerView() {
+ return getPrimaryView();
+ }
+
+ /**
+ * Returns the kind of associated editor for direct edition.
+ *
+ * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition
+ * @generated
+ */
+ public int getDirectEditionType() {
+ // The label is read-only (defined in GMFGen model)
+ return IDirectEdition.NO_DIRECT_EDITION;
+ }
+
+ /**
+ * Checks if an extended editor is present.
+ *
+ * @return <code>true</code> if an extended editor is present.
+ * @generated
+ */
+ protected boolean checkExtendedEditor() {
+ if(resolveSemanticElement() != null) {
+ return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ return false;
+ }
+
+ /**
+ * Checks if a default direct edition is available
+ *
+ * @return <code>true</code> if a default direct edition is available
+ * @generated
+ */
+ protected boolean checkDefaultEdition() {
+ return (getParser() != null);
+ }
+
+ /**
+ * Initializes the extended editor configuration
+ *
+ * @generated
+ */
+ protected void initExtendedEditorConfiguration() {
+ if(configuration == null) {
+ final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("")) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else {
+ configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ }
+ }
+
+ /**
+ * Updates the preference configuration
+ *
+ * @generated
+ */
+ protected void updateExtendedEditorConfiguration() {
+ String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("") && languagePreferred != configuration.getLanguage()) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else if(IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
+ configuration = null;
+ }
+ }
+
+ /**
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
+ protected void performDefaultDirectEditorEdit(final Request theRequest) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void handleNotificationEvent(Notification event) {
+ Object feature = event.getFeature();
+ if(NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
+ Integer c = (Integer)event.getNewValue();
+ setFontColor(DiagramColorRegistry.getInstance().getColor(c));
+ } else if(NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
+ refreshUnderline();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
+ refreshStrikeThrough();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
+ refreshFont();
+ } else {
+ if(getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
+ refreshLabel();
+ }
+ if(getParser() instanceof ISemanticParser) {
+ ISemanticParser modelParser = (ISemanticParser)getParser();
+ if(modelParser.areSemanticElementsAffected(null, event)) {
+ removeSemanticListeners();
+ if(resolveSemanticElement() != null) {
+ addSemanticListeners();
+ }
+ refreshLabel();
+ }
+ }
+ }
+
+ super.handleNotificationEvent(event);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createFigure() {
+ // Parent should assign one using setLabel() method
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ public String getLabelRole() {
+ return "Stereotype";//$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ public String getIconPathRole() {
+ return "";//$NON-NLS-1$
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/DeploymentEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/DeploymentEditPart.java
new file mode 100644
index 00000000000..6e4e7c4aa8e
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/DeploymentEditPart.java
@@ -0,0 +1,122 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import org.eclipse.draw2d.Connection;
+import org.eclipse.gef.EditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITreeBranchEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.diagram.common.editparts.UMLConnectionNodeEditPart;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeDeploymentLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeLinkLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.figure.edge.DashedEdgeFigure;
+import org.eclipse.papyrus.diagram.composite.edit.policies.DeploymentItemSemanticEditPolicy;
+
+/**
+ * @generated
+ */
+public class DeploymentEditPart extends
+
+UMLConnectionNodeEditPart implements ITreeBranchEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 4009;
+
+ /**
+ * @generated
+ */
+ public DeploymentEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new DeploymentItemSemanticEditPolicy());
+ installEditPolicy(AppliedStereotypeLinkLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeDeploymentLabelDisplayEditPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean addFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof DeploymentNameEditPart) {
+ ((DeploymentNameEditPart)childEditPart).setLabel(getPrimaryShape().getNameLabel());
+ return true;
+ }
+ if(childEditPart instanceof DeploymentAppliedStereotypeEditPart) {
+ ((DeploymentAppliedStereotypeEditPart)childEditPart).setLabel(getPrimaryShape().getAppliedStereotypeLabel());
+ return true;
+ }
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected void addChildVisual(EditPart childEditPart, int index) {
+ if(addFixedChild(childEditPart)) {
+ return;
+ }
+ super.addChildVisual(childEditPart, -1);
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean removeFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof DeploymentNameEditPart) {
+ return true;
+ }
+ if(childEditPart instanceof DeploymentAppliedStereotypeEditPart) {
+ return true;
+ }
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeChildVisual(EditPart childEditPart) {
+ if(removeFixedChild(childEditPart)) {
+ return;
+ }
+ super.removeChildVisual(childEditPart);
+ }
+
+ /**
+ * Creates figure for this edit part.
+ *
+ * Body of this method does not depend on settings in generation model
+ * so you may safely remove <i>generated</i> tag and modify it.
+ *
+ * @generated
+ */
+ protected Connection createConnectionFigure() {
+ return new DashedEdgeFigure();
+ }
+
+ /**
+ * @generated
+ */
+ public DashedEdgeFigure getPrimaryShape() {
+ return (DashedEdgeFigure)getFigure();
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/DeploymentNameEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/DeploymentNameEditPart.java
new file mode 100644
index 00000000000..0a6d4cec760
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/DeploymentNameEditPart.java
@@ -0,0 +1,750 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.ConnectionLocator;
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.emf.transaction.RunnableWithResult;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.AccessibleEditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.requests.DirectEditRequest;
+import org.eclipse.gef.tools.DirectEditManager;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.LabelEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
+import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
+import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
+import org.eclipse.gmf.runtime.notation.FontStyle;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
+import org.eclipse.jface.viewers.ICellEditorValidator;
+import org.eclipse.jface.window.Window;
+import org.eclipse.papyrus.diagram.common.directedit.MultilineLabelDirectEditManager;
+import org.eclipse.papyrus.diagram.common.editparts.ILabelRoleProvider;
+import org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition;
+import org.eclipse.papyrus.diagram.common.editpolicies.IMaskManagedLabelEditPolicy;
+import org.eclipse.papyrus.diagram.common.figure.node.ILabelFigure;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLTextSelectionEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.diagram.composite.providers.UMLParserProvider;
+import org.eclipse.papyrus.extensionpoints.editors.Activator;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
+import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
+import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.AccessibleEvent;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.FontData;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.ui.PlatformUI;
+
+/**
+ * @generated
+ */
+public class DeploymentNameEditPart extends LabelEditPart implements ITextAwareEditPart
+
+, ILabelRoleProvider
+
+{
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 6008;
+
+ /**
+ * @generated
+ */
+ private DirectEditManager manager;
+
+ /**
+ * @generated
+ */
+ private IParser parser;
+
+ /**
+ * @generated
+ */
+ private List<?> parserElements;
+
+ /**
+ * @generated
+ */
+ private String defaultText;
+
+ /**
+ * direct edition mode (default, undefined, registered editor, etc.)
+ *
+ * @generated
+ */
+ protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
+
+ /**
+ * configuration from a registered edit dialog
+ *
+ * @generated
+ */
+ protected IDirectEditorConfiguration configuration;
+
+ /**
+ * @generated
+ */
+ static {
+ registerSnapBackPosition(UMLVisualIDRegistry.getType(org.eclipse.papyrus.diagram.composite.edit.parts.DeploymentNameEditPart.VISUAL_ID), new Point(0, 60));
+ }
+
+ /**
+ * @generated
+ */
+ public DeploymentNameEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
+ installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new CompositeStructureDiagramEditPart.LinkLabelDragPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ public int getKeyPoint() {
+ return ConnectionLocator.MIDDLE;
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelTextHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getText();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getText();
+ } else {
+ return ((Label)figure).getText();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelTextHelper(IFigure figure, String text) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setText(text);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setText(text);
+ } else {
+ ((Label)figure).setText(text);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIconHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getIcon();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getIcon();
+ } else {
+ return ((Label)figure).getIcon();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelIconHelper(IFigure figure, Image icon) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setIcon(icon);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setIcon(icon);
+ } else {
+ ((Label)figure).setIcon(icon);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabel(WrappingLabel figure) {
+ unregisterVisuals();
+ setFigure(figure);
+ defaultText = getLabelTextHelper(figure);
+ registerVisuals();
+ refreshVisuals();
+ }
+
+ /**
+ * @generated
+ */
+ protected List getModelChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject getParserElement() {
+ return resolveSemanticElement();
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIcon() {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelText() {
+ String text = null;
+ EObject parserElement = getParserElement();
+ if(parserElement != null && getParser() != null) {
+ text = getParser().getPrintString(new EObjectAdapter(parserElement), getParserOptions().intValue());
+ }
+ if(text == null || text.length() == 0) {
+ text = defaultText;
+ }
+ return text;
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabelText(String text) {
+ setLabelTextHelper(getFigure(), text);
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public String getEditText() {
+ if(getParserElement() == null || getParser() == null) {
+ return ""; //$NON-NLS-1$
+ }
+ return getParser().getEditString(new EObjectAdapter(getParserElement()), getParserOptions().intValue());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean isEditable() {
+ return getParser() != null;
+ }
+
+ /**
+ * @generated
+ */
+ public ICellEditorValidator getEditTextValidator() {
+ return new ICellEditorValidator() {
+
+ public String isValid(final Object value) {
+ if(value instanceof String) {
+ final EObject element = getParserElement();
+ final IParser parser = getParser();
+ try {
+ IParserEditStatus valid = (IParserEditStatus)getEditingDomain().runExclusive(new RunnableWithResult.Impl() {
+
+ public void run() {
+ setResult(parser.isValidEditString(new EObjectAdapter(element), (String)value));
+ }
+ });
+ return valid.getCode() == ParserEditStatus.EDITABLE ? null : valid.getMessage();
+ } catch (InterruptedException ie) {
+ ie.printStackTrace();
+ }
+ }
+
+ // shouldn't get here
+ return null;
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ public IContentAssistProcessor getCompletionProcessor() {
+ if(getParserElement() == null || getParser() == null) {
+ return null;
+ }
+ return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
+ }
+
+ /**
+ * @generated
+ */
+ public ParserOptions getParserOptions() {
+ return ParserOptions.NONE;
+ }
+
+ /**
+ * @generated
+ */
+ public IParser getParser() {
+ if(parser == null) {
+ parser = UMLParserProvider.getParser(UMLElementTypes.Deployment_4009, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.diagram.composite.edit.parts.DeploymentNameEditPart.VISUAL_ID));
+ }
+ return parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected DirectEditManager getManager() {
+ if(manager == null) {
+ setManager(new MultilineLabelDirectEditManager(this, MultilineLabelDirectEditManager.getTextCellEditorClass(this), UMLEditPartFactory.getTextCellEditorLocator(this)));
+ }
+ return manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setManager(DirectEditManager manager) {
+ this.manager = manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit() {
+ getManager().show();
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit(Point eventLocation) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(eventLocation.getSWTPoint());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void performDirectEdit(char initialCharacter) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(initialCharacter);
+ } else {
+ performDirectEdit();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEditRequest(Request request) {
+
+ final Request theRequest = request;
+
+ if(IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
+ directEditionMode = getDirectEditionType();
+ }
+ switch(directEditionMode) {
+ case IDirectEdition.NO_DIRECT_EDITION:
+ // no direct edition mode => does nothing
+ return;
+ case IDirectEdition.EXTENDED_DIRECT_EDITOR:
+ updateExtendedEditorConfiguration();
+ if(configuration == null || configuration.getLanguage() == null) {
+ performDefaultDirectEditorEdit(theRequest);
+ } else {
+ configuration.preEditAction(resolveSemanticElement());
+ Dialog dialog = null;
+ if(configuration instanceof IPopupEditorConfiguration) {
+ IPopupEditorHelper helper = ((IPopupEditorConfiguration)configuration).createPopupEditorHelper(this);
+ helper.showEditor();
+ return;
+ } else if(configuration instanceof IAdvancedEditorConfiguration) {
+ dialog = ((IAdvancedEditorConfiguration)configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
+ } else if(configuration instanceof IDirectEditorConfiguration) {
+ dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), ((IDirectEditorConfiguration)configuration).getTextToEdit(resolveSemanticElement()), (IDirectEditorConfiguration)configuration);
+ } else {
+ return;
+ }
+ final Dialog finalDialog = dialog;
+
+ if(Window.OK == dialog.open()) {
+ TransactionalEditingDomain domain = getEditingDomain();
+ RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
+
+ @Override
+ protected void doExecute() {
+ configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog)finalDialog).getValue());
+
+ }
+ };
+ domain.getCommandStack().execute(command);
+ }
+ }
+ break;
+ case IDirectEdition.DEFAULT_DIRECT_EDITOR:
+
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ break;
+ default:
+ break;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshLabel();
+ refreshFont();
+ refreshFontColor();
+ refreshUnderline();
+ refreshStrikeThrough();
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshLabel() {
+ EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
+ if(maskLabelPolicy == null) {
+ setLabelTextHelper(getFigure(), getLabelText());
+ setLabelIconHelper(getFigure(), getLabelIcon());
+ }
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshUnderline() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextUnderline(style.isUnderline());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshStrikeThrough() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextStrikeThrough(style.isStrikeThrough());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshFont() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null) {
+ FontData fontData = new FontData(style.getFontName(), style.getFontHeight(), (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
+ setFont(fontData);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setFontColor(Color color) {
+ getFigure().setForegroundColor(color);
+ }
+
+ /**
+ * @generated
+ */
+ protected void addSemanticListeners() {
+ if(getParser() instanceof ISemanticParser) {
+ EObject element = resolveSemanticElement();
+ parserElements = ((ISemanticParser)getParser()).getSemanticElementsBeingParsed(element);
+ for(int i = 0; i < parserElements.size(); i++) {
+ addListenerFilter("SemanticModel" + i, this, (EObject)parserElements.get(i)); //$NON-NLS-1$
+ }
+ } else {
+ super.addSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeSemanticListeners() {
+ if(parserElements != null) {
+ for(int i = 0; i < parserElements.size(); i++) {
+ removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
+ }
+ } else {
+ super.removeSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected AccessibleEditPart getAccessibleEditPart() {
+ if(accessibleEP == null) {
+ accessibleEP = new AccessibleGraphicalEditPart() {
+
+ public void getName(AccessibleEvent e) {
+ e.result = getLabelTextHelper(getFigure());
+ }
+ };
+ }
+ return accessibleEP;
+ }
+
+ /**
+ * @generated
+ */
+ private View getFontStyleOwnerView() {
+ return getPrimaryView();
+ }
+
+ /**
+ * Returns the kind of associated editor for direct edition.
+ *
+ * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition
+ * @generated
+ */
+ public int getDirectEditionType() {
+ if(checkExtendedEditor()) {
+ initExtendedEditorConfiguration();
+ return IDirectEdition.EXTENDED_DIRECT_EDITOR;
+ }
+ if(checkDefaultEdition()) {
+ return IDirectEdition.DEFAULT_DIRECT_EDITOR;
+ }
+
+ // not a named element. no specific editor => do nothing
+ return IDirectEdition.NO_DIRECT_EDITION;
+ }
+
+ /**
+ * Checks if an extended editor is present.
+ *
+ * @return <code>true</code> if an extended editor is present.
+ * @generated
+ */
+ protected boolean checkExtendedEditor() {
+ if(resolveSemanticElement() != null) {
+ return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ return false;
+ }
+
+ /**
+ * Checks if a default direct edition is available
+ *
+ * @return <code>true</code> if a default direct edition is available
+ * @generated
+ */
+ protected boolean checkDefaultEdition() {
+ return (getParser() != null);
+ }
+
+ /**
+ * Initializes the extended editor configuration
+ *
+ * @generated
+ */
+ protected void initExtendedEditorConfiguration() {
+ if(configuration == null) {
+ final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("")) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else {
+ configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ }
+ }
+
+ /**
+ * Updates the preference configuration
+ *
+ * @generated
+ */
+ protected void updateExtendedEditorConfiguration() {
+ String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("") && languagePreferred != configuration.getLanguage()) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else if(IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
+ configuration = null;
+ }
+ }
+
+ /**
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
+ protected void performDefaultDirectEditorEdit(final Request theRequest) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void handleNotificationEvent(Notification event) {
+ Object feature = event.getFeature();
+ if(NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
+ Integer c = (Integer)event.getNewValue();
+ setFontColor(DiagramColorRegistry.getInstance().getColor(c));
+ } else if(NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
+ refreshUnderline();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
+ refreshStrikeThrough();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
+ refreshFont();
+ } else {
+ if(getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
+ refreshLabel();
+ }
+ if(getParser() instanceof ISemanticParser) {
+ ISemanticParser modelParser = (ISemanticParser)getParser();
+ if(modelParser.areSemanticElementsAffected(null, event)) {
+ removeSemanticListeners();
+ if(resolveSemanticElement() != null) {
+ addSemanticListeners();
+ }
+ refreshLabel();
+ }
+ }
+ }
+
+ super.handleNotificationEvent(event);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createFigure() {
+ // Parent should assign one using setLabel() method
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ public String getLabelRole() {
+ return "Name";//$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ public String getIconPathRole() {
+ return "";//$NON-NLS-1$
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/DeploymentSpecificationEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/DeploymentSpecificationEditPart.java
new file mode 100644
index 00000000000..d76f234f97e
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/DeploymentSpecificationEditPart.java
@@ -0,0 +1,5395 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.ArrayList;
+import java.util.LinkedList;
+import java.util.List;
+
+import org.eclipse.draw2d.ColorConstants;
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.RectangleFigure;
+import org.eclipse.draw2d.Shape;
+import org.eclipse.draw2d.StackLayout;
+import org.eclipse.emf.ecore.EStructuralFeature;
+import org.eclipse.gef.EditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.editpolicies.LayoutEditPolicy;
+import org.eclipse.gef.editpolicies.NonResizableEditPolicy;
+import org.eclipse.gef.requests.CreateRequest;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ShapeNodeEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.FigureUtilities;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.gef.ui.figures.DefaultSizeNodeFigure;
+import org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.jface.preference.PreferenceConverter;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.HyperLinkPopupBarEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.QualifiedNameDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.helper.PreferenceInitializerForElementHelper;
+import org.eclipse.papyrus.diagram.composite.edit.policies.DeploymentSpecificationItemSemanticEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorPlugin;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter;
+import org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.Font;
+import org.eclipse.swt.widgets.Display;
+
+/**
+ * @generated
+ */
+public class DeploymentSpecificationEditPart extends
+
+ShapeNodeEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 2078;
+
+ /**
+ * @generated
+ */
+ protected IFigure contentPane;
+
+ /**
+ * @generated
+ */
+ protected IFigure primaryShape;
+
+ /**
+ * @generated
+ */
+ public DeploymentSpecificationEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new DeploymentSpecificationItemSemanticEditPolicy());
+ installEditPolicy(EditPolicy.LAYOUT_ROLE, createLayoutEditPolicy());
+ installEditPolicy(QualifiedNameDisplayEditPolicy.QUALIFIED_NAME_POLICY, new QualifiedNameDisplayEditPolicy());
+ installEditPolicy(AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeNodeLabelDisplayEditPolicy());
+ installEditPolicy(EditPolicyRoles.POPUPBAR_ROLE, new HyperLinkPopupBarEditPolicy());
+ // XXX need an SCR to runtime to have another abstract superclass that would let children add reasonable editpolicies
+ // removeEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CONNECTION_HANDLES_ROLE);
+ }
+
+ /**
+ * @generated
+ */
+ protected LayoutEditPolicy createLayoutEditPolicy() {
+ org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy lep = new org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy() {
+
+ protected EditPolicy createChildEditPolicy(EditPart child) {
+ EditPolicy result = child.getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(result == null) {
+ result = new NonResizableEditPolicy();
+ }
+ return result;
+ }
+
+ protected Command getMoveChildrenCommand(Request request) {
+ return null;
+ }
+
+ protected Command getCreateCommand(CreateRequest request) {
+ return null;
+ }
+ };
+ return lep;
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createNodeShape() {
+ return primaryShape = new NamedElementDescriptor();
+ }
+
+ /**
+ * @generated
+ */
+ public NamedElementDescriptor getPrimaryShape() {
+ return (NamedElementDescriptor)primaryShape;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean addFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof DeploymentSpecificationNameEditPart) {
+ ((DeploymentSpecificationNameEditPart)childEditPart).setLabel(getPrimaryShape().getNamedElementNameLabel());
+ return true;
+ }
+
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean removeFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof DeploymentSpecificationNameEditPart) {
+ return true;
+ }
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected void addChildVisual(EditPart childEditPart, int index) {
+ if(addFixedChild(childEditPart)) {
+ return;
+ }
+ super.addChildVisual(childEditPart, -1);
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeChildVisual(EditPart childEditPart) {
+ if(removeFixedChild(childEditPart)) {
+ return;
+ }
+ super.removeChildVisual(childEditPart);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure getContentPaneFor(IGraphicalEditPart editPart) {
+ return getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ protected NodeFigure createNodePlate() {
+ String prefElementId = "DeploymentSpecification";
+ IPreferenceStore store = UMLDiagramEditorPlugin.getInstance().getPreferenceStore();
+ String preferenceConstantWitdh = PreferenceInitializerForElementHelper.getpreferenceKey(getNotationView(), prefElementId, PreferenceConstantHelper.WIDTH);
+ String preferenceConstantHeight = PreferenceInitializerForElementHelper.getpreferenceKey(getNotationView(), prefElementId, PreferenceConstantHelper.HEIGHT);
+ DefaultSizeNodeFigure result = new DefaultSizeNodeFigure(store.getInt(preferenceConstantWitdh), store.getInt(preferenceConstantHeight));
+
+ return result;
+ }
+
+ /**
+ * Creates figure for this edit part.
+ *
+ * Body of this method does not depend on settings in generation model
+ * so you may safely remove <i>generated</i> tag and modify it.
+ *
+ * @generated
+ */
+ protected NodeFigure createNodeFigure() {
+ NodeFigure figure = createNodePlate();
+ figure.setLayoutManager(new StackLayout());
+ IFigure shape = createNodeShape();
+ figure.add(shape);
+ contentPane = setupContentPane(shape);
+ return figure;
+ }
+
+ /**
+ * Default implementation treats passed figure as content pane.
+ * Respects layout one may have set for generated figure.
+ *
+ * @param nodeShape
+ * instance of generated figure class
+ * @generated
+ */
+ protected IFigure setupContentPane(IFigure nodeShape) {
+ if(nodeShape.getLayoutManager() == null) {
+ ConstrainedToolbarLayout layout = new ConstrainedToolbarLayout();
+ layout.setSpacing(5);
+ nodeShape.setLayoutManager(layout);
+ }
+ return nodeShape; // use nodeShape itself as contentPane
+ }
+
+ /**
+ * @generated
+ */
+ public IFigure getContentPane() {
+ if(contentPane != null) {
+ return contentPane;
+ }
+ return super.getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ protected void setForegroundColor(Color color) {
+ if(primaryShape != null) {
+ primaryShape.setForegroundColor(color);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLineWidth(int width) {
+ if(primaryShape instanceof Shape) {
+ ((Shape)primaryShape).setLineWidth(width);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLineType(int style) {
+ if(primaryShape instanceof Shape) {
+ ((Shape)primaryShape).setLineStyle(style);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public EditPart getPrimaryChildEditPart() {
+ return getChildBySemanticHint(UMLVisualIDRegistry.getType(DeploymentSpecificationNameEditPart.VISUAL_ID));
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnSource() {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(12);
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ types.add(UMLElementTypes.Substitution_4011);
+ types.add(UMLElementTypes.Realization_4006);
+ types.add(UMLElementTypes.Manifestation_4012);
+ types.add(UMLElementTypes.Abstraction_4007);
+ types.add(UMLElementTypes.Usage_4008);
+ types.add(UMLElementTypes.Deployment_4009);
+ types.add(UMLElementTypes.Dependency_4017);
+ types.add(UMLElementTypes.Dependency_4010);
+ types.add(UMLElementTypes.Generalization_4015);
+ types.add(UMLElementTypes.InformationFlow_4021);
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnSourceAndTarget(IGraphicalEditPart targetEditPart) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMATypesForTarget(IElementType relationshipType) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(relationshipType == UMLElementTypes.ComponentRealization_4004) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InterfaceRealization_4005) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Substitution_4011) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Realization_4006) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Manifestation_4012) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Abstraction_4007) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Usage_4008) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Deployment_4009) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4017) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4010) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Generalization_4015) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ } else if(relationshipType == UMLElementTypes.InformationFlow_4021) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnTarget() {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(17);
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ types.add(UMLElementTypes.Substitution_4011);
+ types.add(UMLElementTypes.Realization_4006);
+ types.add(UMLElementTypes.Manifestation_4012);
+ types.add(UMLElementTypes.Abstraction_4007);
+ types.add(UMLElementTypes.Usage_4008);
+ types.add(UMLElementTypes.Deployment_4009);
+ types.add(UMLElementTypes.Dependency_4017);
+ types.add(UMLElementTypes.Dependency_4010);
+ types.add(UMLElementTypes.Generalization_4015);
+ types.add(UMLElementTypes.TimeObservationEvent_4018);
+ types.add(UMLElementTypes.DurationObservationEvent_4019);
+ types.add(UMLElementTypes.InformationItemRepresented_4020);
+ types.add(UMLElementTypes.InformationFlow_4021);
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMATypesForSource(IElementType relationshipType) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(relationshipType == UMLElementTypes.CommentAnnotatedElement_4002) {
+ types.add(UMLElementTypes.Comment_2109);
+ types.add(UMLElementTypes.Comment_3097);
+ } else if(relationshipType == UMLElementTypes.ConstraintConstrainedElement_4003) {
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.ComponentRealization_4004) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InterfaceRealization_4005) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Substitution_4011) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Realization_4006) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Manifestation_4012) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Abstraction_4007) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Usage_4008) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Deployment_4009) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4017) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4010) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Generalization_4015) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ } else if(relationshipType == UMLElementTypes.TimeObservationEvent_4018) {
+ types.add(UMLElementTypes.TimeObservation_2094);
+ } else if(relationshipType == UMLElementTypes.DurationObservationEvent_4019) {
+ types.add(UMLElementTypes.DurationObservation_2093);
+ } else if(relationshipType == UMLElementTypes.InformationItemRepresented_4020) {
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.InformationItem_3094);
+ } else if(relationshipType == UMLElementTypes.InformationFlow_4021) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public class NamedElementDescriptor extends RectangleFigure {
+
+ /**
+ * @generated
+ */
+ private WrappingLabel fNamedElementNameLabel;
+
+ /**
+ * @generated
+ */
+ public NamedElementDescriptor() {
+ this.setLineWidth(1);
+ this.setForegroundColor(ColorConstants.black);
+ createContents();
+ }
+
+ /**
+ * @generated
+ */
+ private void createContents() {
+
+ fNamedElementNameLabel = new WrappingLabel();
+ fNamedElementNameLabel.setText("");
+ fNamedElementNameLabel.setForegroundColor(ColorConstants.black);
+
+ fNamedElementNameLabel.setFont(FNAMEDELEMENTNAMELABEL_FONT);
+
+ this.add(fNamedElementNameLabel);
+
+ }
+
+ /**
+ * @generated
+ */
+ private boolean myUseLocalCoordinates = false;
+
+ /**
+ * @generated
+ */
+ protected boolean useLocalCoordinates() {
+ return myUseLocalCoordinates;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setUseLocalCoordinates(boolean useLocalCoordinates) {
+ myUseLocalCoordinates = useLocalCoordinates;
+ }
+
+ /**
+ * @generated
+ */
+ public WrappingLabel getNamedElementNameLabel() {
+ return fNamedElementNameLabel;
+ }
+
+ }
+
+ /**
+ * @generated
+ */
+ static final Font FNAMEDELEMENTNAMELABEL_FONT = new Font(Display.getCurrent(), "Arial", 10, SWT.BOLD);
+
+ /**
+ * @generated
+ */
+ @Override
+ public Object getPreferredValue(EStructuralFeature feature) {
+ IPreferenceStore preferenceStore = (IPreferenceStore)getDiagramPreferencesHint().getPreferenceStore();
+ Object result = null;
+
+ if(feature == NotationPackage.eINSTANCE.getLineStyle_LineColor() || feature == NotationPackage.eINSTANCE.getFontStyle_FontColor() || feature == NotationPackage.eINSTANCE.getFillStyle_FillColor()) {
+ String prefColor = null;
+ if(feature == NotationPackage.eINSTANCE.getLineStyle_LineColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("DeploymentSpecification", PreferenceConstantHelper.COLOR_LINE);
+ } else if(feature == NotationPackage.eINSTANCE.getFontStyle_FontColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("DeploymentSpecification", PreferenceConstantHelper.COLOR_FONT);
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_FillColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("DeploymentSpecification", PreferenceConstantHelper.COLOR_FILL);
+ }
+ result = FigureUtilities.RGBToInteger(PreferenceConverter.getColor((IPreferenceStore)preferenceStore, prefColor));
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_Transparency() || feature == NotationPackage.eINSTANCE.getFillStyle_Gradient()) {
+ String prefGradient = PreferenceConstantHelper.getElementConstant("DeploymentSpecification", PreferenceConstantHelper.COLOR_GRADIENT);
+ GradientPreferenceConverter gradientPreferenceConverter = new GradientPreferenceConverter(preferenceStore.getString(prefGradient));
+ if(feature == NotationPackage.eINSTANCE.getFillStyle_Transparency()) {
+ result = new Integer(gradientPreferenceConverter.getTransparency());
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_Gradient()) {
+ result = gradientPreferenceConverter.getGradientData();
+ }
+ }
+
+ if(result == null) {
+ result = getStructuralFeatureValue(feature);
+ }
+ return result;
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/DeploymentSpecificationEditPartCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/DeploymentSpecificationEditPartCN.java
new file mode 100644
index 00000000000..5cee7dc5ba0
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/DeploymentSpecificationEditPartCN.java
@@ -0,0 +1,5409 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.ArrayList;
+import java.util.LinkedList;
+import java.util.List;
+
+import org.eclipse.draw2d.ColorConstants;
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.RectangleFigure;
+import org.eclipse.draw2d.Shape;
+import org.eclipse.draw2d.StackLayout;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EStructuralFeature;
+import org.eclipse.gef.EditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.editpolicies.LayoutEditPolicy;
+import org.eclipse.gef.editpolicies.NonResizableEditPolicy;
+import org.eclipse.gef.requests.CreateRequest;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ShapeNodeEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.FigureUtilities;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.gef.ui.figures.DefaultSizeNodeFigure;
+import org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.jface.preference.PreferenceConverter;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.HyperLinkPopupBarEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.QualifiedNameDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.helper.PreferenceInitializerForElementHelper;
+import org.eclipse.papyrus.diagram.composite.custom.edit.parts.ConstrainedShapeNodeEditPart;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.NoScrollClassifierResizableShapeEditPolicy;
+import org.eclipse.papyrus.diagram.composite.edit.policies.DeploymentSpecificationItemSemanticEditPolicyCN;
+import org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorPlugin;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter;
+import org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.Font;
+import org.eclipse.swt.widgets.Display;
+
+/**
+ * @generated
+ */
+public class DeploymentSpecificationEditPartCN extends
+
+ConstrainedShapeNodeEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 3092;
+
+ /**
+ * @generated
+ */
+ protected IFigure contentPane;
+
+ /**
+ * @generated
+ */
+ protected IFigure primaryShape;
+
+ /**
+ * @generated
+ */
+ public DeploymentSpecificationEditPartCN(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new DeploymentSpecificationItemSemanticEditPolicyCN());
+ installEditPolicy(EditPolicy.LAYOUT_ROLE, createLayoutEditPolicy());
+ installEditPolicy(QualifiedNameDisplayEditPolicy.QUALIFIED_NAME_POLICY, new QualifiedNameDisplayEditPolicy());
+ installEditPolicy(AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeNodeLabelDisplayEditPolicy());
+ installEditPolicy(EditPolicyRoles.POPUPBAR_ROLE, new HyperLinkPopupBarEditPolicy());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new NoScrollClassifierResizableShapeEditPolicy());
+ // XXX need an SCR to runtime to have another abstract superclass that would let children add reasonable editpolicies
+ // removeEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CONNECTION_HANDLES_ROLE);
+ }
+
+ /**
+ * Papyrus codeGen
+ *
+ * @generated
+ **/
+ protected void handleNotificationEvent(Notification event) {
+ super.handleNotificationEvent(event);
+
+ }
+
+ /**
+ * @generated
+ */
+ protected LayoutEditPolicy createLayoutEditPolicy() {
+ org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy lep = new org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy() {
+
+ protected EditPolicy createChildEditPolicy(EditPart child) {
+ EditPolicy result = child.getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(result == null) {
+ result = new NonResizableEditPolicy();
+ }
+ return result;
+ }
+
+ protected Command getMoveChildrenCommand(Request request) {
+ return null;
+ }
+
+ protected Command getCreateCommand(CreateRequest request) {
+ return null;
+ }
+ };
+ return lep;
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createNodeShape() {
+ return primaryShape = new NamedElementDescriptor();
+ }
+
+ /**
+ * @generated
+ */
+ public NamedElementDescriptor getPrimaryShape() {
+ return (NamedElementDescriptor)primaryShape;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean addFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof DeploymentSpecificationNameEditPartCN) {
+ ((DeploymentSpecificationNameEditPartCN)childEditPart).setLabel(getPrimaryShape().getNamedElementNameLabel());
+ return true;
+ }
+
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean removeFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof DeploymentSpecificationNameEditPartCN) {
+ return true;
+ }
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected void addChildVisual(EditPart childEditPart, int index) {
+ if(addFixedChild(childEditPart)) {
+ return;
+ }
+ super.addChildVisual(childEditPart, -1);
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeChildVisual(EditPart childEditPart) {
+ if(removeFixedChild(childEditPart)) {
+ return;
+ }
+ super.removeChildVisual(childEditPart);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure getContentPaneFor(IGraphicalEditPart editPart) {
+ return getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ protected NodeFigure createNodePlate() {
+ String prefElementId = "DeploymentSpecification";
+ IPreferenceStore store = UMLDiagramEditorPlugin.getInstance().getPreferenceStore();
+ String preferenceConstantWitdh = PreferenceInitializerForElementHelper.getpreferenceKey(getNotationView(), prefElementId, PreferenceConstantHelper.WIDTH);
+ String preferenceConstantHeight = PreferenceInitializerForElementHelper.getpreferenceKey(getNotationView(), prefElementId, PreferenceConstantHelper.HEIGHT);
+ DefaultSizeNodeFigure result = new DefaultSizeNodeFigure(store.getInt(preferenceConstantWitdh), store.getInt(preferenceConstantHeight));
+
+ return result;
+ }
+
+ /**
+ * Creates figure for this edit part.
+ *
+ * Body of this method does not depend on settings in generation model
+ * so you may safely remove <i>generated</i> tag and modify it.
+ *
+ * @generated
+ */
+ protected NodeFigure createNodeFigure() {
+ NodeFigure figure = createNodePlate();
+ figure.setLayoutManager(new StackLayout());
+ IFigure shape = createNodeShape();
+ figure.add(shape);
+ contentPane = setupContentPane(shape);
+ return figure;
+ }
+
+ /**
+ * Default implementation treats passed figure as content pane.
+ * Respects layout one may have set for generated figure.
+ *
+ * @param nodeShape
+ * instance of generated figure class
+ * @generated
+ */
+ protected IFigure setupContentPane(IFigure nodeShape) {
+ if(nodeShape.getLayoutManager() == null) {
+ ConstrainedToolbarLayout layout = new ConstrainedToolbarLayout();
+ layout.setSpacing(5);
+ nodeShape.setLayoutManager(layout);
+ }
+ return nodeShape; // use nodeShape itself as contentPane
+ }
+
+ /**
+ * @generated
+ */
+ public IFigure getContentPane() {
+ if(contentPane != null) {
+ return contentPane;
+ }
+ return super.getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ protected void setForegroundColor(Color color) {
+ if(primaryShape != null) {
+ primaryShape.setForegroundColor(color);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLineWidth(int width) {
+ if(primaryShape instanceof Shape) {
+ ((Shape)primaryShape).setLineWidth(width);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLineType(int style) {
+ if(primaryShape instanceof Shape) {
+ ((Shape)primaryShape).setLineStyle(style);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public EditPart getPrimaryChildEditPart() {
+ return getChildBySemanticHint(UMLVisualIDRegistry.getType(DeploymentSpecificationNameEditPartCN.VISUAL_ID));
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnSource() {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(12);
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ types.add(UMLElementTypes.Substitution_4011);
+ types.add(UMLElementTypes.Realization_4006);
+ types.add(UMLElementTypes.Manifestation_4012);
+ types.add(UMLElementTypes.Abstraction_4007);
+ types.add(UMLElementTypes.Usage_4008);
+ types.add(UMLElementTypes.Deployment_4009);
+ types.add(UMLElementTypes.Dependency_4017);
+ types.add(UMLElementTypes.Dependency_4010);
+ types.add(UMLElementTypes.Generalization_4015);
+ types.add(UMLElementTypes.InformationFlow_4021);
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnSourceAndTarget(IGraphicalEditPart targetEditPart) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMATypesForTarget(IElementType relationshipType) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(relationshipType == UMLElementTypes.ComponentRealization_4004) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InterfaceRealization_4005) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Substitution_4011) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Realization_4006) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Manifestation_4012) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Abstraction_4007) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Usage_4008) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Deployment_4009) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4017) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4010) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Generalization_4015) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ } else if(relationshipType == UMLElementTypes.InformationFlow_4021) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnTarget() {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(17);
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ types.add(UMLElementTypes.Substitution_4011);
+ types.add(UMLElementTypes.Realization_4006);
+ types.add(UMLElementTypes.Manifestation_4012);
+ types.add(UMLElementTypes.Abstraction_4007);
+ types.add(UMLElementTypes.Usage_4008);
+ types.add(UMLElementTypes.Deployment_4009);
+ types.add(UMLElementTypes.Dependency_4017);
+ types.add(UMLElementTypes.Dependency_4010);
+ types.add(UMLElementTypes.Generalization_4015);
+ types.add(UMLElementTypes.TimeObservationEvent_4018);
+ types.add(UMLElementTypes.DurationObservationEvent_4019);
+ types.add(UMLElementTypes.InformationItemRepresented_4020);
+ types.add(UMLElementTypes.InformationFlow_4021);
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMATypesForSource(IElementType relationshipType) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(relationshipType == UMLElementTypes.CommentAnnotatedElement_4002) {
+ types.add(UMLElementTypes.Comment_2109);
+ types.add(UMLElementTypes.Comment_3097);
+ } else if(relationshipType == UMLElementTypes.ConstraintConstrainedElement_4003) {
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.ComponentRealization_4004) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InterfaceRealization_4005) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Substitution_4011) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Realization_4006) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Manifestation_4012) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Abstraction_4007) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Usage_4008) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Deployment_4009) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4017) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4010) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Generalization_4015) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ } else if(relationshipType == UMLElementTypes.TimeObservationEvent_4018) {
+ types.add(UMLElementTypes.TimeObservation_2094);
+ } else if(relationshipType == UMLElementTypes.DurationObservationEvent_4019) {
+ types.add(UMLElementTypes.DurationObservation_2093);
+ } else if(relationshipType == UMLElementTypes.InformationItemRepresented_4020) {
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.InformationItem_3094);
+ } else if(relationshipType == UMLElementTypes.InformationFlow_4021) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public class NamedElementDescriptor extends RectangleFigure {
+
+ /**
+ * @generated
+ */
+ private WrappingLabel fNamedElementNameLabel;
+
+ /**
+ * @generated
+ */
+ public NamedElementDescriptor() {
+ this.setLineWidth(1);
+ this.setForegroundColor(ColorConstants.black);
+ createContents();
+ }
+
+ /**
+ * @generated
+ */
+ private void createContents() {
+
+ fNamedElementNameLabel = new WrappingLabel();
+ fNamedElementNameLabel.setText("");
+ fNamedElementNameLabel.setForegroundColor(ColorConstants.black);
+
+ fNamedElementNameLabel.setFont(FNAMEDELEMENTNAMELABEL_FONT);
+
+ this.add(fNamedElementNameLabel);
+
+ }
+
+ /**
+ * @generated
+ */
+ private boolean myUseLocalCoordinates = false;
+
+ /**
+ * @generated
+ */
+ protected boolean useLocalCoordinates() {
+ return myUseLocalCoordinates;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setUseLocalCoordinates(boolean useLocalCoordinates) {
+ myUseLocalCoordinates = useLocalCoordinates;
+ }
+
+ /**
+ * @generated
+ */
+ public WrappingLabel getNamedElementNameLabel() {
+ return fNamedElementNameLabel;
+ }
+
+ }
+
+ /**
+ * @generated
+ */
+ static final Font FNAMEDELEMENTNAMELABEL_FONT = new Font(Display.getCurrent(), "Arial", 10, SWT.BOLD);
+
+ /**
+ * @generated
+ */
+ @Override
+ public Object getPreferredValue(EStructuralFeature feature) {
+ IPreferenceStore preferenceStore = (IPreferenceStore)getDiagramPreferencesHint().getPreferenceStore();
+ Object result = null;
+
+ if(feature == NotationPackage.eINSTANCE.getLineStyle_LineColor() || feature == NotationPackage.eINSTANCE.getFontStyle_FontColor() || feature == NotationPackage.eINSTANCE.getFillStyle_FillColor()) {
+ String prefColor = null;
+ if(feature == NotationPackage.eINSTANCE.getLineStyle_LineColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("DeploymentSpecification", PreferenceConstantHelper.COLOR_LINE);
+ } else if(feature == NotationPackage.eINSTANCE.getFontStyle_FontColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("DeploymentSpecification", PreferenceConstantHelper.COLOR_FONT);
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_FillColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("DeploymentSpecification", PreferenceConstantHelper.COLOR_FILL);
+ }
+ result = FigureUtilities.RGBToInteger(PreferenceConverter.getColor((IPreferenceStore)preferenceStore, prefColor));
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_Transparency() || feature == NotationPackage.eINSTANCE.getFillStyle_Gradient()) {
+ String prefGradient = PreferenceConstantHelper.getElementConstant("DeploymentSpecification", PreferenceConstantHelper.COLOR_GRADIENT);
+ GradientPreferenceConverter gradientPreferenceConverter = new GradientPreferenceConverter(preferenceStore.getString(prefGradient));
+ if(feature == NotationPackage.eINSTANCE.getFillStyle_Transparency()) {
+ result = new Integer(gradientPreferenceConverter.getTransparency());
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_Gradient()) {
+ result = gradientPreferenceConverter.getGradientData();
+ }
+ }
+
+ if(result == null) {
+ result = getStructuralFeatureValue(feature);
+ }
+ return result;
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/DeploymentSpecificationNameEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/DeploymentSpecificationNameEditPart.java
new file mode 100644
index 00000000000..a643835d1fe
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/DeploymentSpecificationNameEditPart.java
@@ -0,0 +1,791 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EAnnotation;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.emf.transaction.RunnableWithResult;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.AccessibleEditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.requests.DirectEditRequest;
+import org.eclipse.gef.tools.DirectEditManager;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.CompartmentEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
+import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
+import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
+import org.eclipse.gmf.runtime.notation.FontStyle;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
+import org.eclipse.jface.viewers.ICellEditorValidator;
+import org.eclipse.jface.window.Window;
+import org.eclipse.papyrus.diagram.common.directedit.MultilineLabelDirectEditManager;
+import org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition;
+import org.eclipse.papyrus.diagram.common.editpolicies.IMaskManagedLabelEditPolicy;
+import org.eclipse.papyrus.diagram.common.figure.node.ILabelFigure;
+import org.eclipse.papyrus.diagram.common.util.DiagramEditPartsUtil;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLTextSelectionEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.diagram.composite.providers.UMLParserProvider;
+import org.eclipse.papyrus.extensionpoints.editors.Activator;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
+import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
+import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
+import org.eclipse.papyrus.umlutils.ui.VisualInformationPapyrusConstant;
+import org.eclipse.papyrus.umlutils.ui.helper.NameLabelIconHelper;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.AccessibleEvent;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.FontData;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.ui.PlatformUI;
+
+/**
+ * @generated
+ */
+public class DeploymentSpecificationNameEditPart extends CompartmentEditPart implements ITextAwareEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 5161;
+
+ /**
+ * @generated
+ */
+ private DirectEditManager manager;
+
+ /**
+ * @generated
+ */
+ private IParser parser;
+
+ /**
+ * @generated
+ */
+ private List<?> parserElements;
+
+ /**
+ * @generated
+ */
+ private String defaultText;
+
+ /**
+ * direct edition mode (default, undefined, registered editor, etc.)
+ *
+ * @generated
+ */
+ protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
+
+ /**
+ * configuration from a registered edit dialog
+ *
+ * @generated
+ */
+ protected IDirectEditorConfiguration configuration;
+
+ /**
+ * @generated
+ */
+ public DeploymentSpecificationNameEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
+ installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new CompositeStructureDiagramEditPart.NodeLabelDragPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelTextHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getText();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getText();
+ } else {
+ return ((Label)figure).getText();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelTextHelper(IFigure figure, String text) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setText(text);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setText(text);
+ } else {
+ ((Label)figure).setText(text);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIconHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getIcon();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getIcon();
+ } else {
+ return ((Label)figure).getIcon();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelIconHelper(IFigure figure, Image icon) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setIcon(icon);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setIcon(icon);
+ } else {
+ ((Label)figure).setIcon(icon);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabel(WrappingLabel figure) {
+ unregisterVisuals();
+ setFigure(figure);
+ defaultText = getLabelTextHelper(figure);
+ registerVisuals();
+ refreshVisuals();
+ }
+
+ /**
+ * @generated
+ */
+ protected List getModelChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject getParserElement() {
+ return resolveSemanticElement();
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIcon() {
+ EObject parserElement = getParserElement();
+ if(parserElement == null) {
+ return null;
+ }
+
+ List<View> views = DiagramEditPartsUtil.findViews(parserElement, getViewer());
+ for(View view : views) {
+ if(NameLabelIconHelper.showLabelIcon(view)) {
+ return UMLElementTypes.getImage(parserElement.eClass());
+ }
+ }
+ return null;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelText() {
+ String text = null;
+ EObject parserElement = getParserElement();
+ if(parserElement != null && getParser() != null) {
+ text = getParser().getPrintString(new EObjectAdapter(parserElement), getParserOptions().intValue());
+ }
+ if(text == null || text.length() == 0) {
+ text = defaultText;
+ }
+ return text;
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabelText(String text) {
+ setLabelTextHelper(getFigure(), text);
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public String getEditText() {
+ if(getParserElement() == null || getParser() == null) {
+ return ""; //$NON-NLS-1$
+ }
+ return getParser().getEditString(new EObjectAdapter(getParserElement()), getParserOptions().intValue());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean isEditable() {
+ return getParser() != null;
+ }
+
+ /**
+ * @generated
+ */
+ public ICellEditorValidator getEditTextValidator() {
+ return new ICellEditorValidator() {
+
+ public String isValid(final Object value) {
+ if(value instanceof String) {
+ final EObject element = getParserElement();
+ final IParser parser = getParser();
+ try {
+ IParserEditStatus valid = (IParserEditStatus)getEditingDomain().runExclusive(new RunnableWithResult.Impl() {
+
+ public void run() {
+ setResult(parser.isValidEditString(new EObjectAdapter(element), (String)value));
+ }
+ });
+ return valid.getCode() == ParserEditStatus.EDITABLE ? null : valid.getMessage();
+ } catch (InterruptedException ie) {
+ ie.printStackTrace();
+ }
+ }
+
+ // shouldn't get here
+ return null;
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ public IContentAssistProcessor getCompletionProcessor() {
+ if(getParserElement() == null || getParser() == null) {
+ return null;
+ }
+ return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
+ }
+
+ /**
+ * @generated
+ */
+ public ParserOptions getParserOptions() {
+ return ParserOptions.NONE;
+ }
+
+ /**
+ * @generated
+ */
+ public IParser getParser() {
+ if(parser == null) {
+ parser = UMLParserProvider.getParser(UMLElementTypes.DeploymentSpecification_2078, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.diagram.composite.edit.parts.DeploymentSpecificationNameEditPart.VISUAL_ID));
+ }
+ return parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected DirectEditManager getManager() {
+ if(manager == null) {
+ setManager(new MultilineLabelDirectEditManager(this, MultilineLabelDirectEditManager.getTextCellEditorClass(this), UMLEditPartFactory.getTextCellEditorLocator(this)));
+ }
+ return manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setManager(DirectEditManager manager) {
+ this.manager = manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit() {
+ getManager().show();
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit(Point eventLocation) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(eventLocation.getSWTPoint());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void performDirectEdit(char initialCharacter) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(initialCharacter);
+ } else {
+ performDirectEdit();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEditRequest(Request request) {
+
+ final Request theRequest = request;
+
+ if(IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
+ directEditionMode = getDirectEditionType();
+ }
+ switch(directEditionMode) {
+ case IDirectEdition.NO_DIRECT_EDITION:
+ // no direct edition mode => does nothing
+ return;
+ case IDirectEdition.EXTENDED_DIRECT_EDITOR:
+ updateExtendedEditorConfiguration();
+ if(configuration == null || configuration.getLanguage() == null) {
+ performDefaultDirectEditorEdit(theRequest);
+ } else {
+ configuration.preEditAction(resolveSemanticElement());
+ Dialog dialog = null;
+ if(configuration instanceof IPopupEditorConfiguration) {
+ IPopupEditorHelper helper = ((IPopupEditorConfiguration)configuration).createPopupEditorHelper(this);
+ helper.showEditor();
+ return;
+ } else if(configuration instanceof IAdvancedEditorConfiguration) {
+ dialog = ((IAdvancedEditorConfiguration)configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
+ } else if(configuration instanceof IDirectEditorConfiguration) {
+ dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), ((IDirectEditorConfiguration)configuration).getTextToEdit(resolveSemanticElement()), (IDirectEditorConfiguration)configuration);
+ } else {
+ return;
+ }
+ final Dialog finalDialog = dialog;
+
+ if(Window.OK == dialog.open()) {
+ TransactionalEditingDomain domain = getEditingDomain();
+ RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
+
+ @Override
+ protected void doExecute() {
+ configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog)finalDialog).getValue());
+
+ }
+ };
+ domain.getCommandStack().execute(command);
+ }
+ }
+ break;
+ case IDirectEdition.DEFAULT_DIRECT_EDITOR:
+
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ break;
+ default:
+ break;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshLabel();
+ refreshFont();
+ refreshFontColor();
+ refreshUnderline();
+ refreshStrikeThrough();
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshLabel() {
+ EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
+ if(maskLabelPolicy == null) {
+ setLabelTextHelper(getFigure(), getLabelText());
+ setLabelIconHelper(getFigure(), getLabelIcon());
+ }
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshUnderline() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextUnderline(style.isUnderline());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshStrikeThrough() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextStrikeThrough(style.isStrikeThrough());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshFont() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null) {
+ FontData fontData = new FontData(style.getFontName(), style.getFontHeight(), (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
+ setFont(fontData);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setFontColor(Color color) {
+ getFigure().setForegroundColor(color);
+ }
+
+ /**
+ * @generated
+ */
+ protected void addSemanticListeners() {
+ if(getParser() instanceof ISemanticParser) {
+ EObject element = resolveSemanticElement();
+ parserElements = ((ISemanticParser)getParser()).getSemanticElementsBeingParsed(element);
+ for(int i = 0; i < parserElements.size(); i++) {
+ addListenerFilter("SemanticModel" + i, this, (EObject)parserElements.get(i)); //$NON-NLS-1$
+ }
+ } else {
+ super.addSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeSemanticListeners() {
+ if(parserElements != null) {
+ for(int i = 0; i < parserElements.size(); i++) {
+ removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
+ }
+ } else {
+ super.removeSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected AccessibleEditPart getAccessibleEditPart() {
+ if(accessibleEP == null) {
+ accessibleEP = new AccessibleGraphicalEditPart() {
+
+ public void getName(AccessibleEvent e) {
+ e.result = getLabelTextHelper(getFigure());
+ }
+ };
+ }
+ return accessibleEP;
+ }
+
+ /**
+ * @generated
+ */
+ private View getFontStyleOwnerView() {
+ return (View)getModel();
+ }
+
+ /**
+ * Returns the kind of associated editor for direct edition.
+ *
+ * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition
+ * @generated
+ */
+ public int getDirectEditionType() {
+ if(checkExtendedEditor()) {
+ initExtendedEditorConfiguration();
+ return IDirectEdition.EXTENDED_DIRECT_EDITOR;
+ }
+ if(checkDefaultEdition()) {
+ return IDirectEdition.DEFAULT_DIRECT_EDITOR;
+ }
+
+ // not a named element. no specific editor => do nothing
+ return IDirectEdition.NO_DIRECT_EDITION;
+ }
+
+ /**
+ * Checks if an extended editor is present.
+ *
+ * @return <code>true</code> if an extended editor is present.
+ * @generated
+ */
+ protected boolean checkExtendedEditor() {
+ if(resolveSemanticElement() != null) {
+ return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ return false;
+ }
+
+ /**
+ * Checks if a default direct edition is available
+ *
+ * @return <code>true</code> if a default direct edition is available
+ * @generated
+ */
+ protected boolean checkDefaultEdition() {
+ return (getParser() != null);
+ }
+
+ /**
+ * Initializes the extended editor configuration
+ *
+ * @generated
+ */
+ protected void initExtendedEditorConfiguration() {
+ if(configuration == null) {
+ final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("")) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else {
+ configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ }
+ }
+
+ /**
+ * Updates the preference configuration
+ *
+ * @generated
+ */
+ protected void updateExtendedEditorConfiguration() {
+ String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("") && languagePreferred != configuration.getLanguage()) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else if(IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
+ configuration = null;
+ }
+ }
+
+ /**
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
+ protected void performDefaultDirectEditorEdit(final Request theRequest) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void addNotationalListeners() {
+ super.addNotationalListeners();
+ addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeNotationalListeners() {
+ super.removeNotationalListeners();
+ removeListenerFilter("PrimaryView"); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void handleNotificationEvent(Notification event) {
+ refreshLabel();
+ Object feature = event.getFeature();
+ if(NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
+ Integer c = (Integer)event.getNewValue();
+ setFontColor(DiagramColorRegistry.getInstance().getColor(c));
+ } else if(NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
+ refreshUnderline();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
+ refreshStrikeThrough();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
+ refreshFont();
+ } else {
+ if(getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
+ refreshLabel();
+ }
+ if(getParser() instanceof ISemanticParser) {
+ ISemanticParser modelParser = (ISemanticParser)getParser();
+ if(modelParser.areSemanticElementsAffected(null, event)) {
+ removeSemanticListeners();
+ if(resolveSemanticElement() != null) {
+ addSemanticListeners();
+ }
+ refreshLabel();
+ }
+ }
+ }
+
+ if(event.getNewValue() instanceof EAnnotation && VisualInformationPapyrusConstant.DISPLAY_NAMELABELICON.equals(((EAnnotation)event.getNewValue()).getSource())) {
+ refreshLabel();
+ }
+
+ super.handleNotificationEvent(event);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createFigure() {
+ // Parent should assign one using setLabel() method
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ private static final String ADD_PARENT_MODEL = "AddParentModel";
+
+ /**
+ * @generated
+ */
+ public void activate() {
+ super.activate();
+ addOwnerElementListeners();
+ }
+
+ /**
+ * @generated
+ */
+ protected void addOwnerElementListeners() {
+ addListenerFilter(ADD_PARENT_MODEL, this, ((View)getParent().getModel())); //$NON-NLS-1$
+
+ }
+
+ /**
+ * @generated
+ */
+ public void deactivate() {
+ removeOwnerElementListeners();
+ super.deactivate();
+
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeOwnerElementListeners() {
+ removeListenerFilter(ADD_PARENT_MODEL);
+
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/DeploymentSpecificationNameEditPartCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/DeploymentSpecificationNameEditPartCN.java
new file mode 100644
index 00000000000..6206f3cca46
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/DeploymentSpecificationNameEditPartCN.java
@@ -0,0 +1,791 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EAnnotation;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.emf.transaction.RunnableWithResult;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.AccessibleEditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.requests.DirectEditRequest;
+import org.eclipse.gef.tools.DirectEditManager;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.CompartmentEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
+import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
+import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
+import org.eclipse.gmf.runtime.notation.FontStyle;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
+import org.eclipse.jface.viewers.ICellEditorValidator;
+import org.eclipse.jface.window.Window;
+import org.eclipse.papyrus.diagram.common.directedit.MultilineLabelDirectEditManager;
+import org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition;
+import org.eclipse.papyrus.diagram.common.editpolicies.IMaskManagedLabelEditPolicy;
+import org.eclipse.papyrus.diagram.common.figure.node.ILabelFigure;
+import org.eclipse.papyrus.diagram.common.util.DiagramEditPartsUtil;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLTextSelectionEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.diagram.composite.providers.UMLParserProvider;
+import org.eclipse.papyrus.extensionpoints.editors.Activator;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
+import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
+import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
+import org.eclipse.papyrus.umlutils.ui.VisualInformationPapyrusConstant;
+import org.eclipse.papyrus.umlutils.ui.helper.NameLabelIconHelper;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.AccessibleEvent;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.FontData;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.ui.PlatformUI;
+
+/**
+ * @generated
+ */
+public class DeploymentSpecificationNameEditPartCN extends CompartmentEditPart implements ITextAwareEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 5145;
+
+ /**
+ * @generated
+ */
+ private DirectEditManager manager;
+
+ /**
+ * @generated
+ */
+ private IParser parser;
+
+ /**
+ * @generated
+ */
+ private List<?> parserElements;
+
+ /**
+ * @generated
+ */
+ private String defaultText;
+
+ /**
+ * direct edition mode (default, undefined, registered editor, etc.)
+ *
+ * @generated
+ */
+ protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
+
+ /**
+ * configuration from a registered edit dialog
+ *
+ * @generated
+ */
+ protected IDirectEditorConfiguration configuration;
+
+ /**
+ * @generated
+ */
+ public DeploymentSpecificationNameEditPartCN(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
+ installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new CompositeStructureDiagramEditPart.NodeLabelDragPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelTextHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getText();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getText();
+ } else {
+ return ((Label)figure).getText();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelTextHelper(IFigure figure, String text) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setText(text);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setText(text);
+ } else {
+ ((Label)figure).setText(text);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIconHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getIcon();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getIcon();
+ } else {
+ return ((Label)figure).getIcon();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelIconHelper(IFigure figure, Image icon) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setIcon(icon);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setIcon(icon);
+ } else {
+ ((Label)figure).setIcon(icon);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabel(WrappingLabel figure) {
+ unregisterVisuals();
+ setFigure(figure);
+ defaultText = getLabelTextHelper(figure);
+ registerVisuals();
+ refreshVisuals();
+ }
+
+ /**
+ * @generated
+ */
+ protected List getModelChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject getParserElement() {
+ return resolveSemanticElement();
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIcon() {
+ EObject parserElement = getParserElement();
+ if(parserElement == null) {
+ return null;
+ }
+
+ List<View> views = DiagramEditPartsUtil.findViews(parserElement, getViewer());
+ for(View view : views) {
+ if(NameLabelIconHelper.showLabelIcon(view)) {
+ return UMLElementTypes.getImage(parserElement.eClass());
+ }
+ }
+ return null;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelText() {
+ String text = null;
+ EObject parserElement = getParserElement();
+ if(parserElement != null && getParser() != null) {
+ text = getParser().getPrintString(new EObjectAdapter(parserElement), getParserOptions().intValue());
+ }
+ if(text == null || text.length() == 0) {
+ text = defaultText;
+ }
+ return text;
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabelText(String text) {
+ setLabelTextHelper(getFigure(), text);
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public String getEditText() {
+ if(getParserElement() == null || getParser() == null) {
+ return ""; //$NON-NLS-1$
+ }
+ return getParser().getEditString(new EObjectAdapter(getParserElement()), getParserOptions().intValue());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean isEditable() {
+ return getParser() != null;
+ }
+
+ /**
+ * @generated
+ */
+ public ICellEditorValidator getEditTextValidator() {
+ return new ICellEditorValidator() {
+
+ public String isValid(final Object value) {
+ if(value instanceof String) {
+ final EObject element = getParserElement();
+ final IParser parser = getParser();
+ try {
+ IParserEditStatus valid = (IParserEditStatus)getEditingDomain().runExclusive(new RunnableWithResult.Impl() {
+
+ public void run() {
+ setResult(parser.isValidEditString(new EObjectAdapter(element), (String)value));
+ }
+ });
+ return valid.getCode() == ParserEditStatus.EDITABLE ? null : valid.getMessage();
+ } catch (InterruptedException ie) {
+ ie.printStackTrace();
+ }
+ }
+
+ // shouldn't get here
+ return null;
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ public IContentAssistProcessor getCompletionProcessor() {
+ if(getParserElement() == null || getParser() == null) {
+ return null;
+ }
+ return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
+ }
+
+ /**
+ * @generated
+ */
+ public ParserOptions getParserOptions() {
+ return ParserOptions.NONE;
+ }
+
+ /**
+ * @generated
+ */
+ public IParser getParser() {
+ if(parser == null) {
+ parser = UMLParserProvider.getParser(UMLElementTypes.DeploymentSpecification_3092, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.diagram.composite.edit.parts.DeploymentSpecificationNameEditPartCN.VISUAL_ID));
+ }
+ return parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected DirectEditManager getManager() {
+ if(manager == null) {
+ setManager(new MultilineLabelDirectEditManager(this, MultilineLabelDirectEditManager.getTextCellEditorClass(this), UMLEditPartFactory.getTextCellEditorLocator(this)));
+ }
+ return manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setManager(DirectEditManager manager) {
+ this.manager = manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit() {
+ getManager().show();
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit(Point eventLocation) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(eventLocation.getSWTPoint());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void performDirectEdit(char initialCharacter) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(initialCharacter);
+ } else {
+ performDirectEdit();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEditRequest(Request request) {
+
+ final Request theRequest = request;
+
+ if(IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
+ directEditionMode = getDirectEditionType();
+ }
+ switch(directEditionMode) {
+ case IDirectEdition.NO_DIRECT_EDITION:
+ // no direct edition mode => does nothing
+ return;
+ case IDirectEdition.EXTENDED_DIRECT_EDITOR:
+ updateExtendedEditorConfiguration();
+ if(configuration == null || configuration.getLanguage() == null) {
+ performDefaultDirectEditorEdit(theRequest);
+ } else {
+ configuration.preEditAction(resolveSemanticElement());
+ Dialog dialog = null;
+ if(configuration instanceof IPopupEditorConfiguration) {
+ IPopupEditorHelper helper = ((IPopupEditorConfiguration)configuration).createPopupEditorHelper(this);
+ helper.showEditor();
+ return;
+ } else if(configuration instanceof IAdvancedEditorConfiguration) {
+ dialog = ((IAdvancedEditorConfiguration)configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
+ } else if(configuration instanceof IDirectEditorConfiguration) {
+ dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), ((IDirectEditorConfiguration)configuration).getTextToEdit(resolveSemanticElement()), (IDirectEditorConfiguration)configuration);
+ } else {
+ return;
+ }
+ final Dialog finalDialog = dialog;
+
+ if(Window.OK == dialog.open()) {
+ TransactionalEditingDomain domain = getEditingDomain();
+ RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
+
+ @Override
+ protected void doExecute() {
+ configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog)finalDialog).getValue());
+
+ }
+ };
+ domain.getCommandStack().execute(command);
+ }
+ }
+ break;
+ case IDirectEdition.DEFAULT_DIRECT_EDITOR:
+
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ break;
+ default:
+ break;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshLabel();
+ refreshFont();
+ refreshFontColor();
+ refreshUnderline();
+ refreshStrikeThrough();
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshLabel() {
+ EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
+ if(maskLabelPolicy == null) {
+ setLabelTextHelper(getFigure(), getLabelText());
+ setLabelIconHelper(getFigure(), getLabelIcon());
+ }
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshUnderline() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextUnderline(style.isUnderline());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshStrikeThrough() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextStrikeThrough(style.isStrikeThrough());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshFont() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null) {
+ FontData fontData = new FontData(style.getFontName(), style.getFontHeight(), (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
+ setFont(fontData);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setFontColor(Color color) {
+ getFigure().setForegroundColor(color);
+ }
+
+ /**
+ * @generated
+ */
+ protected void addSemanticListeners() {
+ if(getParser() instanceof ISemanticParser) {
+ EObject element = resolveSemanticElement();
+ parserElements = ((ISemanticParser)getParser()).getSemanticElementsBeingParsed(element);
+ for(int i = 0; i < parserElements.size(); i++) {
+ addListenerFilter("SemanticModel" + i, this, (EObject)parserElements.get(i)); //$NON-NLS-1$
+ }
+ } else {
+ super.addSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeSemanticListeners() {
+ if(parserElements != null) {
+ for(int i = 0; i < parserElements.size(); i++) {
+ removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
+ }
+ } else {
+ super.removeSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected AccessibleEditPart getAccessibleEditPart() {
+ if(accessibleEP == null) {
+ accessibleEP = new AccessibleGraphicalEditPart() {
+
+ public void getName(AccessibleEvent e) {
+ e.result = getLabelTextHelper(getFigure());
+ }
+ };
+ }
+ return accessibleEP;
+ }
+
+ /**
+ * @generated
+ */
+ private View getFontStyleOwnerView() {
+ return (View)getModel();
+ }
+
+ /**
+ * Returns the kind of associated editor for direct edition.
+ *
+ * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition
+ * @generated
+ */
+ public int getDirectEditionType() {
+ if(checkExtendedEditor()) {
+ initExtendedEditorConfiguration();
+ return IDirectEdition.EXTENDED_DIRECT_EDITOR;
+ }
+ if(checkDefaultEdition()) {
+ return IDirectEdition.DEFAULT_DIRECT_EDITOR;
+ }
+
+ // not a named element. no specific editor => do nothing
+ return IDirectEdition.NO_DIRECT_EDITION;
+ }
+
+ /**
+ * Checks if an extended editor is present.
+ *
+ * @return <code>true</code> if an extended editor is present.
+ * @generated
+ */
+ protected boolean checkExtendedEditor() {
+ if(resolveSemanticElement() != null) {
+ return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ return false;
+ }
+
+ /**
+ * Checks if a default direct edition is available
+ *
+ * @return <code>true</code> if a default direct edition is available
+ * @generated
+ */
+ protected boolean checkDefaultEdition() {
+ return (getParser() != null);
+ }
+
+ /**
+ * Initializes the extended editor configuration
+ *
+ * @generated
+ */
+ protected void initExtendedEditorConfiguration() {
+ if(configuration == null) {
+ final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("")) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else {
+ configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ }
+ }
+
+ /**
+ * Updates the preference configuration
+ *
+ * @generated
+ */
+ protected void updateExtendedEditorConfiguration() {
+ String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("") && languagePreferred != configuration.getLanguage()) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else if(IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
+ configuration = null;
+ }
+ }
+
+ /**
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
+ protected void performDefaultDirectEditorEdit(final Request theRequest) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void addNotationalListeners() {
+ super.addNotationalListeners();
+ addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeNotationalListeners() {
+ super.removeNotationalListeners();
+ removeListenerFilter("PrimaryView"); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void handleNotificationEvent(Notification event) {
+ refreshLabel();
+ Object feature = event.getFeature();
+ if(NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
+ Integer c = (Integer)event.getNewValue();
+ setFontColor(DiagramColorRegistry.getInstance().getColor(c));
+ } else if(NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
+ refreshUnderline();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
+ refreshStrikeThrough();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
+ refreshFont();
+ } else {
+ if(getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
+ refreshLabel();
+ }
+ if(getParser() instanceof ISemanticParser) {
+ ISemanticParser modelParser = (ISemanticParser)getParser();
+ if(modelParser.areSemanticElementsAffected(null, event)) {
+ removeSemanticListeners();
+ if(resolveSemanticElement() != null) {
+ addSemanticListeners();
+ }
+ refreshLabel();
+ }
+ }
+ }
+
+ if(event.getNewValue() instanceof EAnnotation && VisualInformationPapyrusConstant.DISPLAY_NAMELABELICON.equals(((EAnnotation)event.getNewValue()).getSource())) {
+ refreshLabel();
+ }
+
+ super.handleNotificationEvent(event);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createFigure() {
+ // Parent should assign one using setLabel() method
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ private static final String ADD_PARENT_MODEL = "AddParentModel";
+
+ /**
+ * @generated
+ */
+ public void activate() {
+ super.activate();
+ addOwnerElementListeners();
+ }
+
+ /**
+ * @generated
+ */
+ protected void addOwnerElementListeners() {
+ addListenerFilter(ADD_PARENT_MODEL, this, ((View)getParent().getModel())); //$NON-NLS-1$
+
+ }
+
+ /**
+ * @generated
+ */
+ public void deactivate() {
+ removeOwnerElementListeners();
+ super.deactivate();
+
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeOwnerElementListeners() {
+ removeListenerFilter(ADD_PARENT_MODEL);
+
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/DestructionEventEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/DestructionEventEditPart.java
new file mode 100644
index 00000000000..5a486b8bf91
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/DestructionEventEditPart.java
@@ -0,0 +1,5167 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.ArrayList;
+import java.util.LinkedList;
+import java.util.List;
+
+import org.eclipse.draw2d.ColorConstants;
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.RectangleFigure;
+import org.eclipse.draw2d.Shape;
+import org.eclipse.draw2d.StackLayout;
+import org.eclipse.emf.ecore.EStructuralFeature;
+import org.eclipse.gef.EditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.editpolicies.LayoutEditPolicy;
+import org.eclipse.gef.editpolicies.NonResizableEditPolicy;
+import org.eclipse.gef.requests.CreateRequest;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ShapeNodeEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.FigureUtilities;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.gef.ui.figures.DefaultSizeNodeFigure;
+import org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.jface.preference.PreferenceConverter;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.HyperLinkPopupBarEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.QualifiedNameDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.helper.PreferenceInitializerForElementHelper;
+import org.eclipse.papyrus.diagram.composite.edit.policies.DestructionEventItemSemanticEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorPlugin;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter;
+import org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.Font;
+import org.eclipse.swt.widgets.Display;
+
+/**
+ * @generated
+ */
+public class DestructionEventEditPart extends
+
+ShapeNodeEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 2091;
+
+ /**
+ * @generated
+ */
+ protected IFigure contentPane;
+
+ /**
+ * @generated
+ */
+ protected IFigure primaryShape;
+
+ /**
+ * @generated
+ */
+ public DestructionEventEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new DestructionEventItemSemanticEditPolicy());
+ installEditPolicy(EditPolicy.LAYOUT_ROLE, createLayoutEditPolicy());
+ installEditPolicy(QualifiedNameDisplayEditPolicy.QUALIFIED_NAME_POLICY, new QualifiedNameDisplayEditPolicy());
+ installEditPolicy(AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeNodeLabelDisplayEditPolicy());
+ installEditPolicy(EditPolicyRoles.POPUPBAR_ROLE, new HyperLinkPopupBarEditPolicy());
+ // XXX need an SCR to runtime to have another abstract superclass that would let children add reasonable editpolicies
+ // removeEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CONNECTION_HANDLES_ROLE);
+ }
+
+ /**
+ * @generated
+ */
+ protected LayoutEditPolicy createLayoutEditPolicy() {
+ org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy lep = new org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy() {
+
+ protected EditPolicy createChildEditPolicy(EditPart child) {
+ EditPolicy result = child.getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(result == null) {
+ result = new NonResizableEditPolicy();
+ }
+ return result;
+ }
+
+ protected Command getMoveChildrenCommand(Request request) {
+ return null;
+ }
+
+ protected Command getCreateCommand(CreateRequest request) {
+ return null;
+ }
+ };
+ return lep;
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createNodeShape() {
+ return primaryShape = new NamedElementDescriptor();
+ }
+
+ /**
+ * @generated
+ */
+ public NamedElementDescriptor getPrimaryShape() {
+ return (NamedElementDescriptor)primaryShape;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean addFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof DestructionEventNameEditPart) {
+ ((DestructionEventNameEditPart)childEditPart).setLabel(getPrimaryShape().getNamedElementNameLabel());
+ return true;
+ }
+
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean removeFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof DestructionEventNameEditPart) {
+ return true;
+ }
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected void addChildVisual(EditPart childEditPart, int index) {
+ if(addFixedChild(childEditPart)) {
+ return;
+ }
+ super.addChildVisual(childEditPart, -1);
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeChildVisual(EditPart childEditPart) {
+ if(removeFixedChild(childEditPart)) {
+ return;
+ }
+ super.removeChildVisual(childEditPart);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure getContentPaneFor(IGraphicalEditPart editPart) {
+ return getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ protected NodeFigure createNodePlate() {
+ String prefElementId = "DestructionEvent";
+ IPreferenceStore store = UMLDiagramEditorPlugin.getInstance().getPreferenceStore();
+ String preferenceConstantWitdh = PreferenceInitializerForElementHelper.getpreferenceKey(getNotationView(), prefElementId, PreferenceConstantHelper.WIDTH);
+ String preferenceConstantHeight = PreferenceInitializerForElementHelper.getpreferenceKey(getNotationView(), prefElementId, PreferenceConstantHelper.HEIGHT);
+ DefaultSizeNodeFigure result = new DefaultSizeNodeFigure(store.getInt(preferenceConstantWitdh), store.getInt(preferenceConstantHeight));
+
+ return result;
+ }
+
+ /**
+ * Creates figure for this edit part.
+ *
+ * Body of this method does not depend on settings in generation model
+ * so you may safely remove <i>generated</i> tag and modify it.
+ *
+ * @generated
+ */
+ protected NodeFigure createNodeFigure() {
+ NodeFigure figure = createNodePlate();
+ figure.setLayoutManager(new StackLayout());
+ IFigure shape = createNodeShape();
+ figure.add(shape);
+ contentPane = setupContentPane(shape);
+ return figure;
+ }
+
+ /**
+ * Default implementation treats passed figure as content pane.
+ * Respects layout one may have set for generated figure.
+ *
+ * @param nodeShape
+ * instance of generated figure class
+ * @generated
+ */
+ protected IFigure setupContentPane(IFigure nodeShape) {
+ if(nodeShape.getLayoutManager() == null) {
+ ConstrainedToolbarLayout layout = new ConstrainedToolbarLayout();
+ layout.setSpacing(5);
+ nodeShape.setLayoutManager(layout);
+ }
+ return nodeShape; // use nodeShape itself as contentPane
+ }
+
+ /**
+ * @generated
+ */
+ public IFigure getContentPane() {
+ if(contentPane != null) {
+ return contentPane;
+ }
+ return super.getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ protected void setForegroundColor(Color color) {
+ if(primaryShape != null) {
+ primaryShape.setForegroundColor(color);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLineWidth(int width) {
+ if(primaryShape instanceof Shape) {
+ ((Shape)primaryShape).setLineWidth(width);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLineType(int style) {
+ if(primaryShape instanceof Shape) {
+ ((Shape)primaryShape).setLineStyle(style);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public EditPart getPrimaryChildEditPart() {
+ return getChildBySemanticHint(UMLVisualIDRegistry.getType(DestructionEventNameEditPart.VISUAL_ID));
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnSource() {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(11);
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ types.add(UMLElementTypes.Substitution_4011);
+ types.add(UMLElementTypes.Realization_4006);
+ types.add(UMLElementTypes.Manifestation_4012);
+ types.add(UMLElementTypes.Abstraction_4007);
+ types.add(UMLElementTypes.Usage_4008);
+ types.add(UMLElementTypes.Deployment_4009);
+ types.add(UMLElementTypes.Dependency_4017);
+ types.add(UMLElementTypes.Dependency_4010);
+ types.add(UMLElementTypes.InformationFlow_4021);
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnSourceAndTarget(IGraphicalEditPart targetEditPart) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.DestructionEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.DestructionEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.DestructionEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.DestructionEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.DestructionEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.DestructionEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.DestructionEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.DestructionEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.DestructionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.DestructionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.DestructionEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMATypesForTarget(IElementType relationshipType) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(relationshipType == UMLElementTypes.ComponentRealization_4004) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InterfaceRealization_4005) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Substitution_4011) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Realization_4006) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Manifestation_4012) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Abstraction_4007) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Usage_4008) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Deployment_4009) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4017) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4010) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InformationFlow_4021) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnTarget() {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(15);
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ types.add(UMLElementTypes.Substitution_4011);
+ types.add(UMLElementTypes.Realization_4006);
+ types.add(UMLElementTypes.Manifestation_4012);
+ types.add(UMLElementTypes.Abstraction_4007);
+ types.add(UMLElementTypes.Usage_4008);
+ types.add(UMLElementTypes.Deployment_4009);
+ types.add(UMLElementTypes.Dependency_4017);
+ types.add(UMLElementTypes.Dependency_4010);
+ types.add(UMLElementTypes.TimeObservationEvent_4018);
+ types.add(UMLElementTypes.DurationObservationEvent_4019);
+ types.add(UMLElementTypes.InformationFlow_4021);
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMATypesForSource(IElementType relationshipType) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(relationshipType == UMLElementTypes.CommentAnnotatedElement_4002) {
+ types.add(UMLElementTypes.Comment_2109);
+ types.add(UMLElementTypes.Comment_3097);
+ } else if(relationshipType == UMLElementTypes.ConstraintConstrainedElement_4003) {
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.ComponentRealization_4004) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InterfaceRealization_4005) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Substitution_4011) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Realization_4006) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Manifestation_4012) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Abstraction_4007) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Usage_4008) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Deployment_4009) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4017) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4010) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.TimeObservationEvent_4018) {
+ types.add(UMLElementTypes.TimeObservation_2094);
+ } else if(relationshipType == UMLElementTypes.DurationObservationEvent_4019) {
+ types.add(UMLElementTypes.DurationObservation_2093);
+ } else if(relationshipType == UMLElementTypes.InformationFlow_4021) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public class NamedElementDescriptor extends RectangleFigure {
+
+ /**
+ * @generated
+ */
+ private WrappingLabel fNamedElementNameLabel;
+
+ /**
+ * @generated
+ */
+ public NamedElementDescriptor() {
+ this.setLineWidth(1);
+ this.setForegroundColor(ColorConstants.black);
+ createContents();
+ }
+
+ /**
+ * @generated
+ */
+ private void createContents() {
+
+ fNamedElementNameLabel = new WrappingLabel();
+ fNamedElementNameLabel.setText("");
+ fNamedElementNameLabel.setForegroundColor(ColorConstants.black);
+
+ fNamedElementNameLabel.setFont(FNAMEDELEMENTNAMELABEL_FONT);
+
+ this.add(fNamedElementNameLabel);
+
+ }
+
+ /**
+ * @generated
+ */
+ private boolean myUseLocalCoordinates = false;
+
+ /**
+ * @generated
+ */
+ protected boolean useLocalCoordinates() {
+ return myUseLocalCoordinates;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setUseLocalCoordinates(boolean useLocalCoordinates) {
+ myUseLocalCoordinates = useLocalCoordinates;
+ }
+
+ /**
+ * @generated
+ */
+ public WrappingLabel getNamedElementNameLabel() {
+ return fNamedElementNameLabel;
+ }
+
+ }
+
+ /**
+ * @generated
+ */
+ static final Font FNAMEDELEMENTNAMELABEL_FONT = new Font(Display.getCurrent(), "Arial", 10, SWT.BOLD);
+
+ /**
+ * @generated
+ */
+ @Override
+ public Object getPreferredValue(EStructuralFeature feature) {
+ IPreferenceStore preferenceStore = (IPreferenceStore)getDiagramPreferencesHint().getPreferenceStore();
+ Object result = null;
+
+ if(feature == NotationPackage.eINSTANCE.getLineStyle_LineColor() || feature == NotationPackage.eINSTANCE.getFontStyle_FontColor() || feature == NotationPackage.eINSTANCE.getFillStyle_FillColor()) {
+ String prefColor = null;
+ if(feature == NotationPackage.eINSTANCE.getLineStyle_LineColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("DestructionEvent", PreferenceConstantHelper.COLOR_LINE);
+ } else if(feature == NotationPackage.eINSTANCE.getFontStyle_FontColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("DestructionEvent", PreferenceConstantHelper.COLOR_FONT);
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_FillColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("DestructionEvent", PreferenceConstantHelper.COLOR_FILL);
+ }
+ result = FigureUtilities.RGBToInteger(PreferenceConverter.getColor((IPreferenceStore)preferenceStore, prefColor));
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_Transparency() || feature == NotationPackage.eINSTANCE.getFillStyle_Gradient()) {
+ String prefGradient = PreferenceConstantHelper.getElementConstant("DestructionEvent", PreferenceConstantHelper.COLOR_GRADIENT);
+ GradientPreferenceConverter gradientPreferenceConverter = new GradientPreferenceConverter(preferenceStore.getString(prefGradient));
+ if(feature == NotationPackage.eINSTANCE.getFillStyle_Transparency()) {
+ result = new Integer(gradientPreferenceConverter.getTransparency());
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_Gradient()) {
+ result = gradientPreferenceConverter.getGradientData();
+ }
+ }
+
+ if(result == null) {
+ result = getStructuralFeatureValue(feature);
+ }
+ return result;
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/DestructionEventNameEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/DestructionEventNameEditPart.java
new file mode 100644
index 00000000000..d3d7cb244e6
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/DestructionEventNameEditPart.java
@@ -0,0 +1,791 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EAnnotation;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.emf.transaction.RunnableWithResult;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.AccessibleEditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.requests.DirectEditRequest;
+import org.eclipse.gef.tools.DirectEditManager;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.CompartmentEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
+import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
+import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
+import org.eclipse.gmf.runtime.notation.FontStyle;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
+import org.eclipse.jface.viewers.ICellEditorValidator;
+import org.eclipse.jface.window.Window;
+import org.eclipse.papyrus.diagram.common.directedit.MultilineLabelDirectEditManager;
+import org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition;
+import org.eclipse.papyrus.diagram.common.editpolicies.IMaskManagedLabelEditPolicy;
+import org.eclipse.papyrus.diagram.common.figure.node.ILabelFigure;
+import org.eclipse.papyrus.diagram.common.util.DiagramEditPartsUtil;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLTextSelectionEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.diagram.composite.providers.UMLParserProvider;
+import org.eclipse.papyrus.extensionpoints.editors.Activator;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
+import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
+import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
+import org.eclipse.papyrus.umlutils.ui.VisualInformationPapyrusConstant;
+import org.eclipse.papyrus.umlutils.ui.helper.NameLabelIconHelper;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.AccessibleEvent;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.FontData;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.ui.PlatformUI;
+
+/**
+ * @generated
+ */
+public class DestructionEventNameEditPart extends CompartmentEditPart implements ITextAwareEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 5174;
+
+ /**
+ * @generated
+ */
+ private DirectEditManager manager;
+
+ /**
+ * @generated
+ */
+ private IParser parser;
+
+ /**
+ * @generated
+ */
+ private List<?> parserElements;
+
+ /**
+ * @generated
+ */
+ private String defaultText;
+
+ /**
+ * direct edition mode (default, undefined, registered editor, etc.)
+ *
+ * @generated
+ */
+ protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
+
+ /**
+ * configuration from a registered edit dialog
+ *
+ * @generated
+ */
+ protected IDirectEditorConfiguration configuration;
+
+ /**
+ * @generated
+ */
+ public DestructionEventNameEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
+ installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new CompositeStructureDiagramEditPart.NodeLabelDragPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelTextHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getText();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getText();
+ } else {
+ return ((Label)figure).getText();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelTextHelper(IFigure figure, String text) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setText(text);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setText(text);
+ } else {
+ ((Label)figure).setText(text);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIconHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getIcon();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getIcon();
+ } else {
+ return ((Label)figure).getIcon();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelIconHelper(IFigure figure, Image icon) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setIcon(icon);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setIcon(icon);
+ } else {
+ ((Label)figure).setIcon(icon);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabel(WrappingLabel figure) {
+ unregisterVisuals();
+ setFigure(figure);
+ defaultText = getLabelTextHelper(figure);
+ registerVisuals();
+ refreshVisuals();
+ }
+
+ /**
+ * @generated
+ */
+ protected List getModelChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject getParserElement() {
+ return resolveSemanticElement();
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIcon() {
+ EObject parserElement = getParserElement();
+ if(parserElement == null) {
+ return null;
+ }
+
+ List<View> views = DiagramEditPartsUtil.findViews(parserElement, getViewer());
+ for(View view : views) {
+ if(NameLabelIconHelper.showLabelIcon(view)) {
+ return UMLElementTypes.getImage(parserElement.eClass());
+ }
+ }
+ return null;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelText() {
+ String text = null;
+ EObject parserElement = getParserElement();
+ if(parserElement != null && getParser() != null) {
+ text = getParser().getPrintString(new EObjectAdapter(parserElement), getParserOptions().intValue());
+ }
+ if(text == null || text.length() == 0) {
+ text = defaultText;
+ }
+ return text;
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabelText(String text) {
+ setLabelTextHelper(getFigure(), text);
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public String getEditText() {
+ if(getParserElement() == null || getParser() == null) {
+ return ""; //$NON-NLS-1$
+ }
+ return getParser().getEditString(new EObjectAdapter(getParserElement()), getParserOptions().intValue());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean isEditable() {
+ return getParser() != null;
+ }
+
+ /**
+ * @generated
+ */
+ public ICellEditorValidator getEditTextValidator() {
+ return new ICellEditorValidator() {
+
+ public String isValid(final Object value) {
+ if(value instanceof String) {
+ final EObject element = getParserElement();
+ final IParser parser = getParser();
+ try {
+ IParserEditStatus valid = (IParserEditStatus)getEditingDomain().runExclusive(new RunnableWithResult.Impl() {
+
+ public void run() {
+ setResult(parser.isValidEditString(new EObjectAdapter(element), (String)value));
+ }
+ });
+ return valid.getCode() == ParserEditStatus.EDITABLE ? null : valid.getMessage();
+ } catch (InterruptedException ie) {
+ ie.printStackTrace();
+ }
+ }
+
+ // shouldn't get here
+ return null;
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ public IContentAssistProcessor getCompletionProcessor() {
+ if(getParserElement() == null || getParser() == null) {
+ return null;
+ }
+ return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
+ }
+
+ /**
+ * @generated
+ */
+ public ParserOptions getParserOptions() {
+ return ParserOptions.NONE;
+ }
+
+ /**
+ * @generated
+ */
+ public IParser getParser() {
+ if(parser == null) {
+ parser = UMLParserProvider.getParser(UMLElementTypes.DestructionEvent_2091, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.diagram.composite.edit.parts.DestructionEventNameEditPart.VISUAL_ID));
+ }
+ return parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected DirectEditManager getManager() {
+ if(manager == null) {
+ setManager(new MultilineLabelDirectEditManager(this, MultilineLabelDirectEditManager.getTextCellEditorClass(this), UMLEditPartFactory.getTextCellEditorLocator(this)));
+ }
+ return manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setManager(DirectEditManager manager) {
+ this.manager = manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit() {
+ getManager().show();
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit(Point eventLocation) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(eventLocation.getSWTPoint());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void performDirectEdit(char initialCharacter) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(initialCharacter);
+ } else {
+ performDirectEdit();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEditRequest(Request request) {
+
+ final Request theRequest = request;
+
+ if(IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
+ directEditionMode = getDirectEditionType();
+ }
+ switch(directEditionMode) {
+ case IDirectEdition.NO_DIRECT_EDITION:
+ // no direct edition mode => does nothing
+ return;
+ case IDirectEdition.EXTENDED_DIRECT_EDITOR:
+ updateExtendedEditorConfiguration();
+ if(configuration == null || configuration.getLanguage() == null) {
+ performDefaultDirectEditorEdit(theRequest);
+ } else {
+ configuration.preEditAction(resolveSemanticElement());
+ Dialog dialog = null;
+ if(configuration instanceof IPopupEditorConfiguration) {
+ IPopupEditorHelper helper = ((IPopupEditorConfiguration)configuration).createPopupEditorHelper(this);
+ helper.showEditor();
+ return;
+ } else if(configuration instanceof IAdvancedEditorConfiguration) {
+ dialog = ((IAdvancedEditorConfiguration)configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
+ } else if(configuration instanceof IDirectEditorConfiguration) {
+ dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), ((IDirectEditorConfiguration)configuration).getTextToEdit(resolveSemanticElement()), (IDirectEditorConfiguration)configuration);
+ } else {
+ return;
+ }
+ final Dialog finalDialog = dialog;
+
+ if(Window.OK == dialog.open()) {
+ TransactionalEditingDomain domain = getEditingDomain();
+ RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
+
+ @Override
+ protected void doExecute() {
+ configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog)finalDialog).getValue());
+
+ }
+ };
+ domain.getCommandStack().execute(command);
+ }
+ }
+ break;
+ case IDirectEdition.DEFAULT_DIRECT_EDITOR:
+
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ break;
+ default:
+ break;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshLabel();
+ refreshFont();
+ refreshFontColor();
+ refreshUnderline();
+ refreshStrikeThrough();
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshLabel() {
+ EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
+ if(maskLabelPolicy == null) {
+ setLabelTextHelper(getFigure(), getLabelText());
+ setLabelIconHelper(getFigure(), getLabelIcon());
+ }
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshUnderline() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextUnderline(style.isUnderline());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshStrikeThrough() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextStrikeThrough(style.isStrikeThrough());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshFont() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null) {
+ FontData fontData = new FontData(style.getFontName(), style.getFontHeight(), (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
+ setFont(fontData);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setFontColor(Color color) {
+ getFigure().setForegroundColor(color);
+ }
+
+ /**
+ * @generated
+ */
+ protected void addSemanticListeners() {
+ if(getParser() instanceof ISemanticParser) {
+ EObject element = resolveSemanticElement();
+ parserElements = ((ISemanticParser)getParser()).getSemanticElementsBeingParsed(element);
+ for(int i = 0; i < parserElements.size(); i++) {
+ addListenerFilter("SemanticModel" + i, this, (EObject)parserElements.get(i)); //$NON-NLS-1$
+ }
+ } else {
+ super.addSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeSemanticListeners() {
+ if(parserElements != null) {
+ for(int i = 0; i < parserElements.size(); i++) {
+ removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
+ }
+ } else {
+ super.removeSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected AccessibleEditPart getAccessibleEditPart() {
+ if(accessibleEP == null) {
+ accessibleEP = new AccessibleGraphicalEditPart() {
+
+ public void getName(AccessibleEvent e) {
+ e.result = getLabelTextHelper(getFigure());
+ }
+ };
+ }
+ return accessibleEP;
+ }
+
+ /**
+ * @generated
+ */
+ private View getFontStyleOwnerView() {
+ return (View)getModel();
+ }
+
+ /**
+ * Returns the kind of associated editor for direct edition.
+ *
+ * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition
+ * @generated
+ */
+ public int getDirectEditionType() {
+ if(checkExtendedEditor()) {
+ initExtendedEditorConfiguration();
+ return IDirectEdition.EXTENDED_DIRECT_EDITOR;
+ }
+ if(checkDefaultEdition()) {
+ return IDirectEdition.DEFAULT_DIRECT_EDITOR;
+ }
+
+ // not a named element. no specific editor => do nothing
+ return IDirectEdition.NO_DIRECT_EDITION;
+ }
+
+ /**
+ * Checks if an extended editor is present.
+ *
+ * @return <code>true</code> if an extended editor is present.
+ * @generated
+ */
+ protected boolean checkExtendedEditor() {
+ if(resolveSemanticElement() != null) {
+ return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ return false;
+ }
+
+ /**
+ * Checks if a default direct edition is available
+ *
+ * @return <code>true</code> if a default direct edition is available
+ * @generated
+ */
+ protected boolean checkDefaultEdition() {
+ return (getParser() != null);
+ }
+
+ /**
+ * Initializes the extended editor configuration
+ *
+ * @generated
+ */
+ protected void initExtendedEditorConfiguration() {
+ if(configuration == null) {
+ final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("")) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else {
+ configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ }
+ }
+
+ /**
+ * Updates the preference configuration
+ *
+ * @generated
+ */
+ protected void updateExtendedEditorConfiguration() {
+ String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("") && languagePreferred != configuration.getLanguage()) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else if(IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
+ configuration = null;
+ }
+ }
+
+ /**
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
+ protected void performDefaultDirectEditorEdit(final Request theRequest) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void addNotationalListeners() {
+ super.addNotationalListeners();
+ addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeNotationalListeners() {
+ super.removeNotationalListeners();
+ removeListenerFilter("PrimaryView"); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void handleNotificationEvent(Notification event) {
+ refreshLabel();
+ Object feature = event.getFeature();
+ if(NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
+ Integer c = (Integer)event.getNewValue();
+ setFontColor(DiagramColorRegistry.getInstance().getColor(c));
+ } else if(NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
+ refreshUnderline();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
+ refreshStrikeThrough();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
+ refreshFont();
+ } else {
+ if(getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
+ refreshLabel();
+ }
+ if(getParser() instanceof ISemanticParser) {
+ ISemanticParser modelParser = (ISemanticParser)getParser();
+ if(modelParser.areSemanticElementsAffected(null, event)) {
+ removeSemanticListeners();
+ if(resolveSemanticElement() != null) {
+ addSemanticListeners();
+ }
+ refreshLabel();
+ }
+ }
+ }
+
+ if(event.getNewValue() instanceof EAnnotation && VisualInformationPapyrusConstant.DISPLAY_NAMELABELICON.equals(((EAnnotation)event.getNewValue()).getSource())) {
+ refreshLabel();
+ }
+
+ super.handleNotificationEvent(event);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createFigure() {
+ // Parent should assign one using setLabel() method
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ private static final String ADD_PARENT_MODEL = "AddParentModel";
+
+ /**
+ * @generated
+ */
+ public void activate() {
+ super.activate();
+ addOwnerElementListeners();
+ }
+
+ /**
+ * @generated
+ */
+ protected void addOwnerElementListeners() {
+ addListenerFilter(ADD_PARENT_MODEL, this, ((View)getParent().getModel())); //$NON-NLS-1$
+
+ }
+
+ /**
+ * @generated
+ */
+ public void deactivate() {
+ removeOwnerElementListeners();
+ super.deactivate();
+
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeOwnerElementListeners() {
+ removeListenerFilter(ADD_PARENT_MODEL);
+
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/DeviceCompositeCompartmentEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/DeviceCompositeCompartmentEditPart.java
new file mode 100644
index 00000000000..04a353fc002
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/DeviceCompositeCompartmentEditPart.java
@@ -0,0 +1,123 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import org.eclipse.draw2d.geometry.Dimension;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.draw2d.geometry.Rectangle;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.GraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ShapeCompartmentEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.CreationEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.DragDropEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.ResizableCompartmentEditPolicy;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.diagram.common.editparts.NoScrollBarShapeCompartmentEditPart;
+import org.eclipse.papyrus.diagram.common.editpolicies.CustomContainerEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.DuplicatePasteEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.CustomDiagramDragDropEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.PortInCompartmentCreationEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.RemoveOrphanViewPolicy;
+import org.eclipse.papyrus.diagram.composite.edit.policies.DeviceCompositeCompartmentItemSemanticEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.Messages;
+
+/**
+ * @generated
+ */
+public class DeviceCompositeCompartmentEditPart
+
+extends NoScrollBarShapeCompartmentEditPart
+
+{
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 7070;
+
+ /**
+ * @generated
+ */
+ public DeviceCompositeCompartmentEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ public String getCompartmentName() {
+ return Messages.DeviceCompositeCompartmentEditPart_title;
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new ResizableCompartmentEditPolicy());
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new DeviceCompositeCompartmentItemSemanticEditPolicy());
+ installEditPolicy(EditPolicyRoles.CREATION_ROLE, new CreationEditPolicy());
+ installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new DragDropEditPolicy());
+ installEditPolicy(DuplicatePasteEditPolicy.PASTE_ROLE, new DuplicatePasteEditPolicy());
+ installEditPolicy("REMOVE_ORPHAN_VIEW", new RemoveOrphanViewPolicy()); //$NON-NLS-1$
+ installEditPolicy(EditPolicy.GRAPHICAL_NODE_ROLE, new CustomContainerEditPolicy());
+ installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new CustomDiagramDragDropEditPolicy());
+ installEditPolicy(EditPolicyRoles.CREATION_ROLE, new PortInCompartmentCreationEditPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ protected void setRatio(Double ratio) {
+ if(getFigure().getParent().getLayoutManager() instanceof ConstrainedToolbarLayout) {
+ super.setRatio(ratio);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void handleNotificationEvent(Notification notification) {
+ Object feature = notification.getFeature();
+ if(NotationPackage.eINSTANCE.getSize_Width().equals(feature) || NotationPackage.eINSTANCE.getSize_Height().equals(feature) || NotationPackage.eINSTANCE.getLocation_X().equals(feature) || NotationPackage.eINSTANCE.getLocation_Y().equals(feature)) {
+ refreshBounds();
+ }
+ super.handleNotificationEvent(notification);
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshBounds() {
+ int width = ((Integer)getStructuralFeatureValue(NotationPackage.eINSTANCE.getSize_Width())).intValue();
+ int height = ((Integer)getStructuralFeatureValue(NotationPackage.eINSTANCE.getSize_Height())).intValue();
+ Dimension size = new Dimension(width, height);
+ int x = ((Integer)getStructuralFeatureValue(NotationPackage.eINSTANCE.getLocation_X())).intValue();
+ int y = ((Integer)getStructuralFeatureValue(NotationPackage.eINSTANCE.getLocation_Y())).intValue();
+ Point loc = new Point(x, y);
+ ((GraphicalEditPart)getParent()).setLayoutConstraint(this, getFigure(), new Rectangle(loc, size));
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshBounds();
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/DeviceCompositeCompartmentEditPartCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/DeviceCompositeCompartmentEditPartCN.java
new file mode 100644
index 00000000000..77e95bf26c3
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/DeviceCompositeCompartmentEditPartCN.java
@@ -0,0 +1,123 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import org.eclipse.draw2d.geometry.Dimension;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.draw2d.geometry.Rectangle;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.GraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ShapeCompartmentEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.CreationEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.DragDropEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.ResizableCompartmentEditPolicy;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.diagram.common.editparts.NoScrollBarShapeCompartmentEditPart;
+import org.eclipse.papyrus.diagram.common.editpolicies.CustomContainerEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.DuplicatePasteEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.CustomDiagramDragDropEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.PortInCompartmentCreationEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.RemoveOrphanViewPolicy;
+import org.eclipse.papyrus.diagram.composite.edit.policies.DeviceCompositeCompartmentItemSemanticEditPolicyCN;
+import org.eclipse.papyrus.diagram.composite.part.Messages;
+
+/**
+ * @generated
+ */
+public class DeviceCompositeCompartmentEditPartCN
+
+extends NoScrollBarShapeCompartmentEditPart
+
+{
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 7057;
+
+ /**
+ * @generated
+ */
+ public DeviceCompositeCompartmentEditPartCN(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ public String getCompartmentName() {
+ return Messages.DeviceCompositeCompartmentEditPartCN_title;
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new ResizableCompartmentEditPolicy());
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new DeviceCompositeCompartmentItemSemanticEditPolicyCN());
+ installEditPolicy(EditPolicyRoles.CREATION_ROLE, new CreationEditPolicy());
+ installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new DragDropEditPolicy());
+ installEditPolicy(DuplicatePasteEditPolicy.PASTE_ROLE, new DuplicatePasteEditPolicy());
+ installEditPolicy("REMOVE_ORPHAN_VIEW", new RemoveOrphanViewPolicy()); //$NON-NLS-1$
+ installEditPolicy(EditPolicy.GRAPHICAL_NODE_ROLE, new CustomContainerEditPolicy());
+ installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new CustomDiagramDragDropEditPolicy());
+ installEditPolicy(EditPolicyRoles.CREATION_ROLE, new PortInCompartmentCreationEditPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ protected void setRatio(Double ratio) {
+ if(getFigure().getParent().getLayoutManager() instanceof ConstrainedToolbarLayout) {
+ super.setRatio(ratio);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void handleNotificationEvent(Notification notification) {
+ Object feature = notification.getFeature();
+ if(NotationPackage.eINSTANCE.getSize_Width().equals(feature) || NotationPackage.eINSTANCE.getSize_Height().equals(feature) || NotationPackage.eINSTANCE.getLocation_X().equals(feature) || NotationPackage.eINSTANCE.getLocation_Y().equals(feature)) {
+ refreshBounds();
+ }
+ super.handleNotificationEvent(notification);
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshBounds() {
+ int width = ((Integer)getStructuralFeatureValue(NotationPackage.eINSTANCE.getSize_Width())).intValue();
+ int height = ((Integer)getStructuralFeatureValue(NotationPackage.eINSTANCE.getSize_Height())).intValue();
+ Dimension size = new Dimension(width, height);
+ int x = ((Integer)getStructuralFeatureValue(NotationPackage.eINSTANCE.getLocation_X())).intValue();
+ int y = ((Integer)getStructuralFeatureValue(NotationPackage.eINSTANCE.getLocation_Y())).intValue();
+ Point loc = new Point(x, y);
+ ((GraphicalEditPart)getParent()).setLayoutConstraint(this, getFigure(), new Rectangle(loc, size));
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshBounds();
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/DeviceCompositeEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/DeviceCompositeEditPart.java
new file mode 100644
index 00000000000..9f26e1e716e
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/DeviceCompositeEditPart.java
@@ -0,0 +1,5394 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.ArrayList;
+import java.util.LinkedList;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.PositionConstants;
+import org.eclipse.draw2d.Shape;
+import org.eclipse.draw2d.StackLayout;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EStructuralFeature;
+import org.eclipse.gef.EditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.editpolicies.LayoutEditPolicy;
+import org.eclipse.gef.editpolicies.NonResizableEditPolicy;
+import org.eclipse.gef.requests.CreateRequest;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IBorderItemEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.CreationEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.DragDropEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.diagram.ui.figures.IBorderItemLocator;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.FigureUtilities;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.gef.ui.figures.DefaultSizeNodeFigure;
+import org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.jface.preference.PreferenceConverter;
+import org.eclipse.papyrus.diagram.common.editparts.NamedElementEditPart;
+import org.eclipse.papyrus.diagram.common.editpolicies.AffixedNodeAlignmentEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.BorderItemResizableEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.HyperLinkPopupBarEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.QualifiedNameDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.ShowHideClassifierContentsEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.ShowHideCompartmentEditPolicy;
+import org.eclipse.papyrus.diagram.common.helper.PreferenceInitializerForElementHelper;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.CustomDiagramDragDropEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.EncapsulatedClassifierResizableShapeEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.RemoveOrphanViewPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.StructuredClassifierLayoutEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.figures.DeviceCompositeFigure;
+import org.eclipse.papyrus.diagram.composite.custom.locators.PortPositionLocator;
+import org.eclipse.papyrus.diagram.composite.edit.policies.DeviceCompositeItemSemanticEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorPlugin;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter;
+import org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper;
+import org.eclipse.swt.graphics.Color;
+
+/**
+ * @generated
+ */
+public class DeviceCompositeEditPart extends
+
+NamedElementEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 2070;
+
+ /**
+ * @generated
+ */
+ protected IFigure contentPane;
+
+ /**
+ * @generated
+ */
+ protected IFigure primaryShape;
+
+ /**
+ * @generated
+ */
+ public DeviceCompositeEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ installEditPolicy(EditPolicyRoles.CREATION_ROLE, new CreationEditPolicy());
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new DeviceCompositeItemSemanticEditPolicy());
+ installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new DragDropEditPolicy());
+ installEditPolicy(EditPolicy.LAYOUT_ROLE, createLayoutEditPolicy());
+ installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new CustomDiagramDragDropEditPolicy());
+ installEditPolicy(QualifiedNameDisplayEditPolicy.QUALIFIED_NAME_POLICY, new QualifiedNameDisplayEditPolicy());
+ installEditPolicy(AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeNodeLabelDisplayEditPolicy());
+ installEditPolicy(EditPolicyRoles.POPUPBAR_ROLE, new HyperLinkPopupBarEditPolicy());
+ installEditPolicy(EditPolicy.LAYOUT_ROLE, new StructuredClassifierLayoutEditPolicy());
+ installEditPolicy(ShowHideClassifierContentsEditPolicy.SHOW_HIDE_CLASSIFIER_CONTENTS_POLICY, new ShowHideClassifierContentsEditPolicy());
+ installEditPolicy(ShowHideCompartmentEditPolicy.SHOW_HIDE_COMPARTMENT_POLICY, new ShowHideCompartmentEditPolicy());
+ installEditPolicy(AffixedNodeAlignmentEditPolicy.AFFIXED_CHILD_ALIGNMENT_ROLE, new AffixedNodeAlignmentEditPolicy());
+ installEditPolicy("REMOVE_ORPHAN_VIEW", new RemoveOrphanViewPolicy()); //$NON-NLS-1$
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new EncapsulatedClassifierResizableShapeEditPolicy());
+ // XXX need an SCR to runtime to have another abstract superclass that would let children add reasonable editpolicies
+ // removeEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CONNECTION_HANDLES_ROLE);
+ }
+
+ /**
+ * Papyrus codeGen
+ *
+ * @generated
+ **/
+ protected void handleNotificationEvent(Notification event) {
+ super.handleNotificationEvent(event);
+
+ }
+
+ /**
+ * @generated
+ */
+ protected LayoutEditPolicy createLayoutEditPolicy() {
+ org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy lep = new org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy() {
+
+ protected EditPolicy createChildEditPolicy(EditPart child) {
+ View childView = (View)child.getModel();
+ switch(UMLVisualIDRegistry.getVisualID(childView)) {
+ case PortEditPart.VISUAL_ID:
+
+ return new BorderItemResizableEditPolicy();
+
+ }
+ EditPolicy result = child.getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(result == null) {
+ result = new NonResizableEditPolicy();
+ }
+ return result;
+ }
+
+ protected Command getMoveChildrenCommand(Request request) {
+ return null;
+ }
+
+ protected Command getCreateCommand(CreateRequest request) {
+ return null;
+ }
+ };
+ return lep;
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createNodeShape() {
+ return primaryShape = new DeviceCompositeFigure();
+ }
+
+ /**
+ * @generated
+ */
+ public DeviceCompositeFigure getPrimaryShape() {
+ return (DeviceCompositeFigure)primaryShape;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean addFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof DeviceCompositeNameEditPart) {
+ ((DeviceCompositeNameEditPart)childEditPart).setLabel(getPrimaryShape().getNameLabel());
+ return true;
+ }
+
+ if(childEditPart instanceof DeviceCompositeCompartmentEditPart) {
+ IFigure pane = getPrimaryShape().getCompositeCompartmentFigure();
+ setupContentPane(pane); // FIXME each comparment should handle his content pane in his own way
+ pane.add(((DeviceCompositeCompartmentEditPart)childEditPart).getFigure());
+ return true;
+ }
+
+ //Papyrus Gencode :Affixed Port locator
+ if(childEditPart instanceof PortEditPart) {
+ IBorderItemLocator locator = new PortPositionLocator(getMainFigure(), PositionConstants.NONE);
+ getBorderedFigure().getBorderItemContainer().add(((PortEditPart)childEditPart).getFigure(), locator);
+ return true;
+ }
+
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean removeFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof DeviceCompositeNameEditPart) {
+ return true;
+ }
+ if(childEditPart instanceof DeviceCompositeCompartmentEditPart) {
+ IFigure pane = getPrimaryShape().getCompositeCompartmentFigure();
+ setupContentPane(pane); // FIXME each comparment should handle his content pane in his own way
+ pane.remove(((DeviceCompositeCompartmentEditPart)childEditPart).getFigure());
+ return true;
+ }
+ if(childEditPart instanceof PortEditPart) {
+ getBorderedFigure().getBorderItemContainer().remove(((PortEditPart)childEditPart).getFigure());
+ return true;
+ }
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected void addChildVisual(EditPart childEditPart, int index) {
+ if(addFixedChild(childEditPart)) {
+ return;
+ }
+ super.addChildVisual(childEditPart, -1);
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeChildVisual(EditPart childEditPart) {
+ if(removeFixedChild(childEditPart)) {
+ return;
+ }
+ super.removeChildVisual(childEditPart);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure getContentPaneFor(IGraphicalEditPart editPart) {
+ if(editPart instanceof DeviceCompositeCompartmentEditPart) {
+ return getPrimaryShape().getCompositeCompartmentFigure();
+ }
+ if(editPart instanceof IBorderItemEditPart) {
+ return getBorderedFigure().getBorderItemContainer();
+ }
+ return getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ protected NodeFigure createNodePlate() {
+ String prefElementId = "Device";
+ IPreferenceStore store = UMLDiagramEditorPlugin.getInstance().getPreferenceStore();
+ String preferenceConstantWitdh = PreferenceInitializerForElementHelper.getpreferenceKey(getNotationView(), prefElementId, PreferenceConstantHelper.WIDTH);
+ String preferenceConstantHeight = PreferenceInitializerForElementHelper.getpreferenceKey(getNotationView(), prefElementId, PreferenceConstantHelper.HEIGHT);
+ DefaultSizeNodeFigure result = new DefaultSizeNodeFigure(store.getInt(preferenceConstantWitdh), store.getInt(preferenceConstantHeight));
+
+ return result;
+ }
+
+ /**
+ * Creates figure for this edit part.
+ *
+ * Body of this method does not depend on settings in generation model
+ * so you may safely remove <i>generated</i> tag and modify it.
+ *
+ * @generated
+ */
+ protected NodeFigure createMainFigure() {
+ NodeFigure figure = createNodePlate();
+ figure.setLayoutManager(new StackLayout());
+ IFigure shape = createNodeShape();
+ figure.add(shape);
+ contentPane = setupContentPane(shape);
+ return figure;
+ }
+
+ /**
+ * Default implementation treats passed figure as content pane.
+ * Respects layout one may have set for generated figure.
+ *
+ * @param nodeShape
+ * instance of generated figure class
+ * @generated
+ */
+ protected IFigure setupContentPane(IFigure nodeShape) {
+ if(nodeShape.getLayoutManager() == null) {
+ ConstrainedToolbarLayout layout = new ConstrainedToolbarLayout();
+ layout.setSpacing(5);
+ nodeShape.setLayoutManager(layout);
+ }
+ return nodeShape; // use nodeShape itself as contentPane
+ }
+
+ /**
+ * @generated
+ */
+ public IFigure getContentPane() {
+ if(contentPane != null) {
+ return contentPane;
+ }
+ return super.getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ protected void setForegroundColor(Color color) {
+ if(primaryShape != null) {
+ primaryShape.setForegroundColor(color);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLineWidth(int width) {
+ if(primaryShape instanceof Shape) {
+ ((Shape)primaryShape).setLineWidth(width);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLineType(int style) {
+ if(primaryShape instanceof Shape) {
+ ((Shape)primaryShape).setLineStyle(style);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public EditPart getPrimaryChildEditPart() {
+ return getChildBySemanticHint(UMLVisualIDRegistry.getType(DeviceCompositeNameEditPart.VISUAL_ID));
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnSource() {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(12);
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ types.add(UMLElementTypes.Substitution_4011);
+ types.add(UMLElementTypes.Realization_4006);
+ types.add(UMLElementTypes.Manifestation_4012);
+ types.add(UMLElementTypes.Abstraction_4007);
+ types.add(UMLElementTypes.Usage_4008);
+ types.add(UMLElementTypes.Deployment_4009);
+ types.add(UMLElementTypes.Dependency_4017);
+ types.add(UMLElementTypes.Dependency_4010);
+ types.add(UMLElementTypes.Generalization_4015);
+ types.add(UMLElementTypes.InformationFlow_4021);
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnSourceAndTarget(IGraphicalEditPart targetEditPart) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMATypesForTarget(IElementType relationshipType) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(relationshipType == UMLElementTypes.ComponentRealization_4004) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InterfaceRealization_4005) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Substitution_4011) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Realization_4006) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Manifestation_4012) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Abstraction_4007) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Usage_4008) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Deployment_4009) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4017) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4010) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Generalization_4015) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ } else if(relationshipType == UMLElementTypes.InformationFlow_4021) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnTarget() {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(17);
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ types.add(UMLElementTypes.Substitution_4011);
+ types.add(UMLElementTypes.Realization_4006);
+ types.add(UMLElementTypes.Manifestation_4012);
+ types.add(UMLElementTypes.Abstraction_4007);
+ types.add(UMLElementTypes.Usage_4008);
+ types.add(UMLElementTypes.Deployment_4009);
+ types.add(UMLElementTypes.Dependency_4017);
+ types.add(UMLElementTypes.Dependency_4010);
+ types.add(UMLElementTypes.Generalization_4015);
+ types.add(UMLElementTypes.TimeObservationEvent_4018);
+ types.add(UMLElementTypes.DurationObservationEvent_4019);
+ types.add(UMLElementTypes.InformationItemRepresented_4020);
+ types.add(UMLElementTypes.InformationFlow_4021);
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMATypesForSource(IElementType relationshipType) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(relationshipType == UMLElementTypes.CommentAnnotatedElement_4002) {
+ types.add(UMLElementTypes.Comment_2109);
+ types.add(UMLElementTypes.Comment_3097);
+ } else if(relationshipType == UMLElementTypes.ConstraintConstrainedElement_4003) {
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.ComponentRealization_4004) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InterfaceRealization_4005) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Substitution_4011) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Realization_4006) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Manifestation_4012) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Abstraction_4007) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Usage_4008) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Deployment_4009) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4017) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4010) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Generalization_4015) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ } else if(relationshipType == UMLElementTypes.TimeObservationEvent_4018) {
+ types.add(UMLElementTypes.TimeObservation_2094);
+ } else if(relationshipType == UMLElementTypes.DurationObservationEvent_4019) {
+ types.add(UMLElementTypes.DurationObservation_2093);
+ } else if(relationshipType == UMLElementTypes.InformationItemRepresented_4020) {
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.InformationItem_3094);
+ } else if(relationshipType == UMLElementTypes.InformationFlow_4021) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public Object getPreferredValue(EStructuralFeature feature) {
+ IPreferenceStore preferenceStore = (IPreferenceStore)getDiagramPreferencesHint().getPreferenceStore();
+ Object result = null;
+
+ if(feature == NotationPackage.eINSTANCE.getLineStyle_LineColor() || feature == NotationPackage.eINSTANCE.getFontStyle_FontColor() || feature == NotationPackage.eINSTANCE.getFillStyle_FillColor()) {
+ String prefColor = null;
+ if(feature == NotationPackage.eINSTANCE.getLineStyle_LineColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("Device", PreferenceConstantHelper.COLOR_LINE);
+ } else if(feature == NotationPackage.eINSTANCE.getFontStyle_FontColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("Device", PreferenceConstantHelper.COLOR_FONT);
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_FillColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("Device", PreferenceConstantHelper.COLOR_FILL);
+ }
+ result = FigureUtilities.RGBToInteger(PreferenceConverter.getColor((IPreferenceStore)preferenceStore, prefColor));
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_Transparency() || feature == NotationPackage.eINSTANCE.getFillStyle_Gradient()) {
+ String prefGradient = PreferenceConstantHelper.getElementConstant("Device", PreferenceConstantHelper.COLOR_GRADIENT);
+ GradientPreferenceConverter gradientPreferenceConverter = new GradientPreferenceConverter(preferenceStore.getString(prefGradient));
+ if(feature == NotationPackage.eINSTANCE.getFillStyle_Transparency()) {
+ result = new Integer(gradientPreferenceConverter.getTransparency());
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_Gradient()) {
+ result = gradientPreferenceConverter.getGradientData();
+ }
+ }
+
+ if(result == null) {
+ result = getStructuralFeatureValue(feature);
+ }
+ return result;
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/DeviceCompositeEditPartCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/DeviceCompositeEditPartCN.java
new file mode 100644
index 00000000000..d42321b893b
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/DeviceCompositeEditPartCN.java
@@ -0,0 +1,5396 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.ArrayList;
+import java.util.LinkedList;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.PositionConstants;
+import org.eclipse.draw2d.Shape;
+import org.eclipse.draw2d.StackLayout;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EStructuralFeature;
+import org.eclipse.gef.EditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.editpolicies.LayoutEditPolicy;
+import org.eclipse.gef.editpolicies.NonResizableEditPolicy;
+import org.eclipse.gef.requests.CreateRequest;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IBorderItemEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.CreationEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.DragDropEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.diagram.ui.figures.IBorderItemLocator;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.FigureUtilities;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.gef.ui.figures.DefaultSizeNodeFigure;
+import org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.jface.preference.PreferenceConverter;
+import org.eclipse.papyrus.diagram.common.editparts.NamedElementEditPart;
+import org.eclipse.papyrus.diagram.common.editpolicies.AffixedNodeAlignmentEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.BorderItemResizableEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.HyperLinkPopupBarEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.QualifiedNameDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.ShowHideClassifierContentsEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.ShowHideCompartmentEditPolicy;
+import org.eclipse.papyrus.diagram.common.helper.PreferenceInitializerForElementHelper;
+import org.eclipse.papyrus.diagram.composite.custom.edit.parts.ConstrainedNamedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.CustomDiagramDragDropEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.EncapsulatedClassifierResizableShapeEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.NoScrollBehaviorResizableShapeEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.RemoveOrphanViewPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.StructuredClassifierLayoutEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.figures.DeviceCompositeFigure;
+import org.eclipse.papyrus.diagram.composite.custom.locators.PortPositionLocator;
+import org.eclipse.papyrus.diagram.composite.edit.policies.DeviceCompositeItemSemanticEditPolicyCN;
+import org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorPlugin;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter;
+import org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper;
+import org.eclipse.swt.graphics.Color;
+
+/**
+ * @generated
+ */
+public class DeviceCompositeEditPartCN extends
+
+ConstrainedNamedElementEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 3082;
+
+ /**
+ * @generated
+ */
+ protected IFigure contentPane;
+
+ /**
+ * @generated
+ */
+ protected IFigure primaryShape;
+
+ /**
+ * @generated
+ */
+ public DeviceCompositeEditPartCN(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ installEditPolicy(EditPolicyRoles.CREATION_ROLE, new CreationEditPolicy());
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new DeviceCompositeItemSemanticEditPolicyCN());
+ installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new DragDropEditPolicy());
+ installEditPolicy(EditPolicy.LAYOUT_ROLE, createLayoutEditPolicy());
+ installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new CustomDiagramDragDropEditPolicy());
+ installEditPolicy(QualifiedNameDisplayEditPolicy.QUALIFIED_NAME_POLICY, new QualifiedNameDisplayEditPolicy());
+ installEditPolicy(AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeNodeLabelDisplayEditPolicy());
+ installEditPolicy(EditPolicyRoles.POPUPBAR_ROLE, new HyperLinkPopupBarEditPolicy());
+ installEditPolicy(EditPolicy.LAYOUT_ROLE, new StructuredClassifierLayoutEditPolicy());
+ installEditPolicy(ShowHideClassifierContentsEditPolicy.SHOW_HIDE_CLASSIFIER_CONTENTS_POLICY, new ShowHideClassifierContentsEditPolicy());
+ installEditPolicy(ShowHideCompartmentEditPolicy.SHOW_HIDE_COMPARTMENT_POLICY, new ShowHideCompartmentEditPolicy());
+ installEditPolicy(AffixedNodeAlignmentEditPolicy.AFFIXED_CHILD_ALIGNMENT_ROLE, new AffixedNodeAlignmentEditPolicy());
+ installEditPolicy("REMOVE_ORPHAN_VIEW", new RemoveOrphanViewPolicy()); //$NON-NLS-1$
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new NoScrollBehaviorResizableShapeEditPolicy());
+ // XXX need an SCR to runtime to have another abstract superclass that would let children add reasonable editpolicies
+ // removeEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CONNECTION_HANDLES_ROLE);
+ }
+
+ /**
+ * Papyrus codeGen
+ *
+ * @generated
+ **/
+ protected void handleNotificationEvent(Notification event) {
+ super.handleNotificationEvent(event);
+
+ }
+
+ /**
+ * @generated
+ */
+ protected LayoutEditPolicy createLayoutEditPolicy() {
+ org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy lep = new org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy() {
+
+ protected EditPolicy createChildEditPolicy(EditPart child) {
+ View childView = (View)child.getModel();
+ switch(UMLVisualIDRegistry.getVisualID(childView)) {
+ case PortEditPart.VISUAL_ID:
+
+ return new BorderItemResizableEditPolicy();
+
+ }
+ EditPolicy result = child.getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(result == null) {
+ result = new NonResizableEditPolicy();
+ }
+ return result;
+ }
+
+ protected Command getMoveChildrenCommand(Request request) {
+ return null;
+ }
+
+ protected Command getCreateCommand(CreateRequest request) {
+ return null;
+ }
+ };
+ return lep;
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createNodeShape() {
+ return primaryShape = new DeviceCompositeFigure();
+ }
+
+ /**
+ * @generated
+ */
+ public DeviceCompositeFigure getPrimaryShape() {
+ return (DeviceCompositeFigure)primaryShape;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean addFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof DeviceCompositeNameEditPartCN) {
+ ((DeviceCompositeNameEditPartCN)childEditPart).setLabel(getPrimaryShape().getNameLabel());
+ return true;
+ }
+
+ if(childEditPart instanceof DeviceCompositeCompartmentEditPartCN) {
+ IFigure pane = getPrimaryShape().getCompositeCompartmentFigure();
+ setupContentPane(pane); // FIXME each comparment should handle his content pane in his own way
+ pane.add(((DeviceCompositeCompartmentEditPartCN)childEditPart).getFigure());
+ return true;
+ }
+
+ //Papyrus Gencode :Affixed Port locator
+ if(childEditPart instanceof PortEditPart) {
+ IBorderItemLocator locator = new PortPositionLocator(getMainFigure(), PositionConstants.NONE);
+ getBorderedFigure().getBorderItemContainer().add(((PortEditPart)childEditPart).getFigure(), locator);
+ return true;
+ }
+
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean removeFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof DeviceCompositeNameEditPartCN) {
+ return true;
+ }
+ if(childEditPart instanceof DeviceCompositeCompartmentEditPartCN) {
+ IFigure pane = getPrimaryShape().getCompositeCompartmentFigure();
+ setupContentPane(pane); // FIXME each comparment should handle his content pane in his own way
+ pane.remove(((DeviceCompositeCompartmentEditPartCN)childEditPart).getFigure());
+ return true;
+ }
+ if(childEditPart instanceof PortEditPart) {
+ getBorderedFigure().getBorderItemContainer().remove(((PortEditPart)childEditPart).getFigure());
+ return true;
+ }
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected void addChildVisual(EditPart childEditPart, int index) {
+ if(addFixedChild(childEditPart)) {
+ return;
+ }
+ super.addChildVisual(childEditPart, -1);
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeChildVisual(EditPart childEditPart) {
+ if(removeFixedChild(childEditPart)) {
+ return;
+ }
+ super.removeChildVisual(childEditPart);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure getContentPaneFor(IGraphicalEditPart editPart) {
+ if(editPart instanceof DeviceCompositeCompartmentEditPartCN) {
+ return getPrimaryShape().getCompositeCompartmentFigure();
+ }
+ if(editPart instanceof IBorderItemEditPart) {
+ return getBorderedFigure().getBorderItemContainer();
+ }
+ return getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ protected NodeFigure createNodePlate() {
+ String prefElementId = "Device";
+ IPreferenceStore store = UMLDiagramEditorPlugin.getInstance().getPreferenceStore();
+ String preferenceConstantWitdh = PreferenceInitializerForElementHelper.getpreferenceKey(getNotationView(), prefElementId, PreferenceConstantHelper.WIDTH);
+ String preferenceConstantHeight = PreferenceInitializerForElementHelper.getpreferenceKey(getNotationView(), prefElementId, PreferenceConstantHelper.HEIGHT);
+ DefaultSizeNodeFigure result = new DefaultSizeNodeFigure(store.getInt(preferenceConstantWitdh), store.getInt(preferenceConstantHeight));
+
+ return result;
+ }
+
+ /**
+ * Creates figure for this edit part.
+ *
+ * Body of this method does not depend on settings in generation model
+ * so you may safely remove <i>generated</i> tag and modify it.
+ *
+ * @generated
+ */
+ protected NodeFigure createMainFigure() {
+ NodeFigure figure = createNodePlate();
+ figure.setLayoutManager(new StackLayout());
+ IFigure shape = createNodeShape();
+ figure.add(shape);
+ contentPane = setupContentPane(shape);
+ return figure;
+ }
+
+ /**
+ * Default implementation treats passed figure as content pane.
+ * Respects layout one may have set for generated figure.
+ *
+ * @param nodeShape
+ * instance of generated figure class
+ * @generated
+ */
+ protected IFigure setupContentPane(IFigure nodeShape) {
+ if(nodeShape.getLayoutManager() == null) {
+ ConstrainedToolbarLayout layout = new ConstrainedToolbarLayout();
+ layout.setSpacing(5);
+ nodeShape.setLayoutManager(layout);
+ }
+ return nodeShape; // use nodeShape itself as contentPane
+ }
+
+ /**
+ * @generated
+ */
+ public IFigure getContentPane() {
+ if(contentPane != null) {
+ return contentPane;
+ }
+ return super.getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ protected void setForegroundColor(Color color) {
+ if(primaryShape != null) {
+ primaryShape.setForegroundColor(color);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLineWidth(int width) {
+ if(primaryShape instanceof Shape) {
+ ((Shape)primaryShape).setLineWidth(width);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLineType(int style) {
+ if(primaryShape instanceof Shape) {
+ ((Shape)primaryShape).setLineStyle(style);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public EditPart getPrimaryChildEditPart() {
+ return getChildBySemanticHint(UMLVisualIDRegistry.getType(DeviceCompositeNameEditPartCN.VISUAL_ID));
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnSource() {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(12);
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ types.add(UMLElementTypes.Substitution_4011);
+ types.add(UMLElementTypes.Realization_4006);
+ types.add(UMLElementTypes.Manifestation_4012);
+ types.add(UMLElementTypes.Abstraction_4007);
+ types.add(UMLElementTypes.Usage_4008);
+ types.add(UMLElementTypes.Deployment_4009);
+ types.add(UMLElementTypes.Dependency_4017);
+ types.add(UMLElementTypes.Dependency_4010);
+ types.add(UMLElementTypes.Generalization_4015);
+ types.add(UMLElementTypes.InformationFlow_4021);
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnSourceAndTarget(IGraphicalEditPart targetEditPart) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMATypesForTarget(IElementType relationshipType) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(relationshipType == UMLElementTypes.ComponentRealization_4004) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InterfaceRealization_4005) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Substitution_4011) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Realization_4006) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Manifestation_4012) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Abstraction_4007) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Usage_4008) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Deployment_4009) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4017) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4010) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Generalization_4015) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ } else if(relationshipType == UMLElementTypes.InformationFlow_4021) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnTarget() {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(17);
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ types.add(UMLElementTypes.Substitution_4011);
+ types.add(UMLElementTypes.Realization_4006);
+ types.add(UMLElementTypes.Manifestation_4012);
+ types.add(UMLElementTypes.Abstraction_4007);
+ types.add(UMLElementTypes.Usage_4008);
+ types.add(UMLElementTypes.Deployment_4009);
+ types.add(UMLElementTypes.Dependency_4017);
+ types.add(UMLElementTypes.Dependency_4010);
+ types.add(UMLElementTypes.Generalization_4015);
+ types.add(UMLElementTypes.TimeObservationEvent_4018);
+ types.add(UMLElementTypes.DurationObservationEvent_4019);
+ types.add(UMLElementTypes.InformationItemRepresented_4020);
+ types.add(UMLElementTypes.InformationFlow_4021);
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMATypesForSource(IElementType relationshipType) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(relationshipType == UMLElementTypes.CommentAnnotatedElement_4002) {
+ types.add(UMLElementTypes.Comment_2109);
+ types.add(UMLElementTypes.Comment_3097);
+ } else if(relationshipType == UMLElementTypes.ConstraintConstrainedElement_4003) {
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.ComponentRealization_4004) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InterfaceRealization_4005) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Substitution_4011) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Realization_4006) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Manifestation_4012) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Abstraction_4007) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Usage_4008) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Deployment_4009) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4017) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4010) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Generalization_4015) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ } else if(relationshipType == UMLElementTypes.TimeObservationEvent_4018) {
+ types.add(UMLElementTypes.TimeObservation_2094);
+ } else if(relationshipType == UMLElementTypes.DurationObservationEvent_4019) {
+ types.add(UMLElementTypes.DurationObservation_2093);
+ } else if(relationshipType == UMLElementTypes.InformationItemRepresented_4020) {
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.InformationItem_3094);
+ } else if(relationshipType == UMLElementTypes.InformationFlow_4021) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public Object getPreferredValue(EStructuralFeature feature) {
+ IPreferenceStore preferenceStore = (IPreferenceStore)getDiagramPreferencesHint().getPreferenceStore();
+ Object result = null;
+
+ if(feature == NotationPackage.eINSTANCE.getLineStyle_LineColor() || feature == NotationPackage.eINSTANCE.getFontStyle_FontColor() || feature == NotationPackage.eINSTANCE.getFillStyle_FillColor()) {
+ String prefColor = null;
+ if(feature == NotationPackage.eINSTANCE.getLineStyle_LineColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("Device", PreferenceConstantHelper.COLOR_LINE);
+ } else if(feature == NotationPackage.eINSTANCE.getFontStyle_FontColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("Device", PreferenceConstantHelper.COLOR_FONT);
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_FillColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("Device", PreferenceConstantHelper.COLOR_FILL);
+ }
+ result = FigureUtilities.RGBToInteger(PreferenceConverter.getColor((IPreferenceStore)preferenceStore, prefColor));
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_Transparency() || feature == NotationPackage.eINSTANCE.getFillStyle_Gradient()) {
+ String prefGradient = PreferenceConstantHelper.getElementConstant("Device", PreferenceConstantHelper.COLOR_GRADIENT);
+ GradientPreferenceConverter gradientPreferenceConverter = new GradientPreferenceConverter(preferenceStore.getString(prefGradient));
+ if(feature == NotationPackage.eINSTANCE.getFillStyle_Transparency()) {
+ result = new Integer(gradientPreferenceConverter.getTransparency());
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_Gradient()) {
+ result = gradientPreferenceConverter.getGradientData();
+ }
+ }
+
+ if(result == null) {
+ result = getStructuralFeatureValue(feature);
+ }
+ return result;
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/DeviceCompositeNameEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/DeviceCompositeNameEditPart.java
new file mode 100644
index 00000000000..861e81988a9
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/DeviceCompositeNameEditPart.java
@@ -0,0 +1,791 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EAnnotation;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.emf.transaction.RunnableWithResult;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.AccessibleEditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.requests.DirectEditRequest;
+import org.eclipse.gef.tools.DirectEditManager;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.CompartmentEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
+import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
+import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
+import org.eclipse.gmf.runtime.notation.FontStyle;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
+import org.eclipse.jface.viewers.ICellEditorValidator;
+import org.eclipse.jface.window.Window;
+import org.eclipse.papyrus.diagram.common.directedit.MultilineLabelDirectEditManager;
+import org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition;
+import org.eclipse.papyrus.diagram.common.editpolicies.IMaskManagedLabelEditPolicy;
+import org.eclipse.papyrus.diagram.common.figure.node.ILabelFigure;
+import org.eclipse.papyrus.diagram.common.util.DiagramEditPartsUtil;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLTextSelectionEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.diagram.composite.providers.UMLParserProvider;
+import org.eclipse.papyrus.extensionpoints.editors.Activator;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
+import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
+import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
+import org.eclipse.papyrus.umlutils.ui.VisualInformationPapyrusConstant;
+import org.eclipse.papyrus.umlutils.ui.helper.NameLabelIconHelper;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.AccessibleEvent;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.FontData;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.ui.PlatformUI;
+
+/**
+ * @generated
+ */
+public class DeviceCompositeNameEditPart extends CompartmentEditPart implements ITextAwareEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 5122;
+
+ /**
+ * @generated
+ */
+ private DirectEditManager manager;
+
+ /**
+ * @generated
+ */
+ private IParser parser;
+
+ /**
+ * @generated
+ */
+ private List<?> parserElements;
+
+ /**
+ * @generated
+ */
+ private String defaultText;
+
+ /**
+ * direct edition mode (default, undefined, registered editor, etc.)
+ *
+ * @generated
+ */
+ protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
+
+ /**
+ * configuration from a registered edit dialog
+ *
+ * @generated
+ */
+ protected IDirectEditorConfiguration configuration;
+
+ /**
+ * @generated
+ */
+ public DeviceCompositeNameEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
+ installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new CompositeStructureDiagramEditPart.NodeLabelDragPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelTextHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getText();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getText();
+ } else {
+ return ((Label)figure).getText();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelTextHelper(IFigure figure, String text) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setText(text);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setText(text);
+ } else {
+ ((Label)figure).setText(text);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIconHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getIcon();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getIcon();
+ } else {
+ return ((Label)figure).getIcon();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelIconHelper(IFigure figure, Image icon) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setIcon(icon);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setIcon(icon);
+ } else {
+ ((Label)figure).setIcon(icon);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabel(WrappingLabel figure) {
+ unregisterVisuals();
+ setFigure(figure);
+ defaultText = getLabelTextHelper(figure);
+ registerVisuals();
+ refreshVisuals();
+ }
+
+ /**
+ * @generated
+ */
+ protected List getModelChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject getParserElement() {
+ return resolveSemanticElement();
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIcon() {
+ EObject parserElement = getParserElement();
+ if(parserElement == null) {
+ return null;
+ }
+
+ List<View> views = DiagramEditPartsUtil.findViews(parserElement, getViewer());
+ for(View view : views) {
+ if(NameLabelIconHelper.showLabelIcon(view)) {
+ return UMLElementTypes.getImage(parserElement.eClass());
+ }
+ }
+ return null;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelText() {
+ String text = null;
+ EObject parserElement = getParserElement();
+ if(parserElement != null && getParser() != null) {
+ text = getParser().getPrintString(new EObjectAdapter(parserElement), getParserOptions().intValue());
+ }
+ if(text == null || text.length() == 0) {
+ text = defaultText;
+ }
+ return text;
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabelText(String text) {
+ setLabelTextHelper(getFigure(), text);
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public String getEditText() {
+ if(getParserElement() == null || getParser() == null) {
+ return ""; //$NON-NLS-1$
+ }
+ return getParser().getEditString(new EObjectAdapter(getParserElement()), getParserOptions().intValue());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean isEditable() {
+ return getParser() != null;
+ }
+
+ /**
+ * @generated
+ */
+ public ICellEditorValidator getEditTextValidator() {
+ return new ICellEditorValidator() {
+
+ public String isValid(final Object value) {
+ if(value instanceof String) {
+ final EObject element = getParserElement();
+ final IParser parser = getParser();
+ try {
+ IParserEditStatus valid = (IParserEditStatus)getEditingDomain().runExclusive(new RunnableWithResult.Impl() {
+
+ public void run() {
+ setResult(parser.isValidEditString(new EObjectAdapter(element), (String)value));
+ }
+ });
+ return valid.getCode() == ParserEditStatus.EDITABLE ? null : valid.getMessage();
+ } catch (InterruptedException ie) {
+ ie.printStackTrace();
+ }
+ }
+
+ // shouldn't get here
+ return null;
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ public IContentAssistProcessor getCompletionProcessor() {
+ if(getParserElement() == null || getParser() == null) {
+ return null;
+ }
+ return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
+ }
+
+ /**
+ * @generated
+ */
+ public ParserOptions getParserOptions() {
+ return ParserOptions.NONE;
+ }
+
+ /**
+ * @generated
+ */
+ public IParser getParser() {
+ if(parser == null) {
+ parser = UMLParserProvider.getParser(UMLElementTypes.Device_2070, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.diagram.composite.edit.parts.DeviceCompositeNameEditPart.VISUAL_ID));
+ }
+ return parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected DirectEditManager getManager() {
+ if(manager == null) {
+ setManager(new MultilineLabelDirectEditManager(this, MultilineLabelDirectEditManager.getTextCellEditorClass(this), UMLEditPartFactory.getTextCellEditorLocator(this)));
+ }
+ return manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setManager(DirectEditManager manager) {
+ this.manager = manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit() {
+ getManager().show();
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit(Point eventLocation) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(eventLocation.getSWTPoint());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void performDirectEdit(char initialCharacter) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(initialCharacter);
+ } else {
+ performDirectEdit();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEditRequest(Request request) {
+
+ final Request theRequest = request;
+
+ if(IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
+ directEditionMode = getDirectEditionType();
+ }
+ switch(directEditionMode) {
+ case IDirectEdition.NO_DIRECT_EDITION:
+ // no direct edition mode => does nothing
+ return;
+ case IDirectEdition.EXTENDED_DIRECT_EDITOR:
+ updateExtendedEditorConfiguration();
+ if(configuration == null || configuration.getLanguage() == null) {
+ performDefaultDirectEditorEdit(theRequest);
+ } else {
+ configuration.preEditAction(resolveSemanticElement());
+ Dialog dialog = null;
+ if(configuration instanceof IPopupEditorConfiguration) {
+ IPopupEditorHelper helper = ((IPopupEditorConfiguration)configuration).createPopupEditorHelper(this);
+ helper.showEditor();
+ return;
+ } else if(configuration instanceof IAdvancedEditorConfiguration) {
+ dialog = ((IAdvancedEditorConfiguration)configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
+ } else if(configuration instanceof IDirectEditorConfiguration) {
+ dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), ((IDirectEditorConfiguration)configuration).getTextToEdit(resolveSemanticElement()), (IDirectEditorConfiguration)configuration);
+ } else {
+ return;
+ }
+ final Dialog finalDialog = dialog;
+
+ if(Window.OK == dialog.open()) {
+ TransactionalEditingDomain domain = getEditingDomain();
+ RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
+
+ @Override
+ protected void doExecute() {
+ configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog)finalDialog).getValue());
+
+ }
+ };
+ domain.getCommandStack().execute(command);
+ }
+ }
+ break;
+ case IDirectEdition.DEFAULT_DIRECT_EDITOR:
+
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ break;
+ default:
+ break;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshLabel();
+ refreshFont();
+ refreshFontColor();
+ refreshUnderline();
+ refreshStrikeThrough();
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshLabel() {
+ EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
+ if(maskLabelPolicy == null) {
+ setLabelTextHelper(getFigure(), getLabelText());
+ setLabelIconHelper(getFigure(), getLabelIcon());
+ }
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshUnderline() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextUnderline(style.isUnderline());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshStrikeThrough() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextStrikeThrough(style.isStrikeThrough());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshFont() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null) {
+ FontData fontData = new FontData(style.getFontName(), style.getFontHeight(), (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
+ setFont(fontData);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setFontColor(Color color) {
+ getFigure().setForegroundColor(color);
+ }
+
+ /**
+ * @generated
+ */
+ protected void addSemanticListeners() {
+ if(getParser() instanceof ISemanticParser) {
+ EObject element = resolveSemanticElement();
+ parserElements = ((ISemanticParser)getParser()).getSemanticElementsBeingParsed(element);
+ for(int i = 0; i < parserElements.size(); i++) {
+ addListenerFilter("SemanticModel" + i, this, (EObject)parserElements.get(i)); //$NON-NLS-1$
+ }
+ } else {
+ super.addSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeSemanticListeners() {
+ if(parserElements != null) {
+ for(int i = 0; i < parserElements.size(); i++) {
+ removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
+ }
+ } else {
+ super.removeSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected AccessibleEditPart getAccessibleEditPart() {
+ if(accessibleEP == null) {
+ accessibleEP = new AccessibleGraphicalEditPart() {
+
+ public void getName(AccessibleEvent e) {
+ e.result = getLabelTextHelper(getFigure());
+ }
+ };
+ }
+ return accessibleEP;
+ }
+
+ /**
+ * @generated
+ */
+ private View getFontStyleOwnerView() {
+ return (View)getModel();
+ }
+
+ /**
+ * Returns the kind of associated editor for direct edition.
+ *
+ * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition
+ * @generated
+ */
+ public int getDirectEditionType() {
+ if(checkExtendedEditor()) {
+ initExtendedEditorConfiguration();
+ return IDirectEdition.EXTENDED_DIRECT_EDITOR;
+ }
+ if(checkDefaultEdition()) {
+ return IDirectEdition.DEFAULT_DIRECT_EDITOR;
+ }
+
+ // not a named element. no specific editor => do nothing
+ return IDirectEdition.NO_DIRECT_EDITION;
+ }
+
+ /**
+ * Checks if an extended editor is present.
+ *
+ * @return <code>true</code> if an extended editor is present.
+ * @generated
+ */
+ protected boolean checkExtendedEditor() {
+ if(resolveSemanticElement() != null) {
+ return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ return false;
+ }
+
+ /**
+ * Checks if a default direct edition is available
+ *
+ * @return <code>true</code> if a default direct edition is available
+ * @generated
+ */
+ protected boolean checkDefaultEdition() {
+ return (getParser() != null);
+ }
+
+ /**
+ * Initializes the extended editor configuration
+ *
+ * @generated
+ */
+ protected void initExtendedEditorConfiguration() {
+ if(configuration == null) {
+ final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("")) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else {
+ configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ }
+ }
+
+ /**
+ * Updates the preference configuration
+ *
+ * @generated
+ */
+ protected void updateExtendedEditorConfiguration() {
+ String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("") && languagePreferred != configuration.getLanguage()) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else if(IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
+ configuration = null;
+ }
+ }
+
+ /**
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
+ protected void performDefaultDirectEditorEdit(final Request theRequest) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void addNotationalListeners() {
+ super.addNotationalListeners();
+ addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeNotationalListeners() {
+ super.removeNotationalListeners();
+ removeListenerFilter("PrimaryView"); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void handleNotificationEvent(Notification event) {
+ refreshLabel();
+ Object feature = event.getFeature();
+ if(NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
+ Integer c = (Integer)event.getNewValue();
+ setFontColor(DiagramColorRegistry.getInstance().getColor(c));
+ } else if(NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
+ refreshUnderline();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
+ refreshStrikeThrough();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
+ refreshFont();
+ } else {
+ if(getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
+ refreshLabel();
+ }
+ if(getParser() instanceof ISemanticParser) {
+ ISemanticParser modelParser = (ISemanticParser)getParser();
+ if(modelParser.areSemanticElementsAffected(null, event)) {
+ removeSemanticListeners();
+ if(resolveSemanticElement() != null) {
+ addSemanticListeners();
+ }
+ refreshLabel();
+ }
+ }
+ }
+
+ if(event.getNewValue() instanceof EAnnotation && VisualInformationPapyrusConstant.DISPLAY_NAMELABELICON.equals(((EAnnotation)event.getNewValue()).getSource())) {
+ refreshLabel();
+ }
+
+ super.handleNotificationEvent(event);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createFigure() {
+ // Parent should assign one using setLabel() method
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ private static final String ADD_PARENT_MODEL = "AddParentModel";
+
+ /**
+ * @generated
+ */
+ public void activate() {
+ super.activate();
+ addOwnerElementListeners();
+ }
+
+ /**
+ * @generated
+ */
+ protected void addOwnerElementListeners() {
+ addListenerFilter(ADD_PARENT_MODEL, this, ((View)getParent().getModel())); //$NON-NLS-1$
+
+ }
+
+ /**
+ * @generated
+ */
+ public void deactivate() {
+ removeOwnerElementListeners();
+ super.deactivate();
+
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeOwnerElementListeners() {
+ removeListenerFilter(ADD_PARENT_MODEL);
+
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/DeviceCompositeNameEditPartCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/DeviceCompositeNameEditPartCN.java
new file mode 100644
index 00000000000..0ce7aca0279
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/DeviceCompositeNameEditPartCN.java
@@ -0,0 +1,791 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EAnnotation;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.emf.transaction.RunnableWithResult;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.AccessibleEditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.requests.DirectEditRequest;
+import org.eclipse.gef.tools.DirectEditManager;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.CompartmentEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
+import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
+import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
+import org.eclipse.gmf.runtime.notation.FontStyle;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
+import org.eclipse.jface.viewers.ICellEditorValidator;
+import org.eclipse.jface.window.Window;
+import org.eclipse.papyrus.diagram.common.directedit.MultilineLabelDirectEditManager;
+import org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition;
+import org.eclipse.papyrus.diagram.common.editpolicies.IMaskManagedLabelEditPolicy;
+import org.eclipse.papyrus.diagram.common.figure.node.ILabelFigure;
+import org.eclipse.papyrus.diagram.common.util.DiagramEditPartsUtil;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLTextSelectionEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.diagram.composite.providers.UMLParserProvider;
+import org.eclipse.papyrus.extensionpoints.editors.Activator;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
+import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
+import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
+import org.eclipse.papyrus.umlutils.ui.VisualInformationPapyrusConstant;
+import org.eclipse.papyrus.umlutils.ui.helper.NameLabelIconHelper;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.AccessibleEvent;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.FontData;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.ui.PlatformUI;
+
+/**
+ * @generated
+ */
+public class DeviceCompositeNameEditPartCN extends CompartmentEditPart implements ITextAwareEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 5138;
+
+ /**
+ * @generated
+ */
+ private DirectEditManager manager;
+
+ /**
+ * @generated
+ */
+ private IParser parser;
+
+ /**
+ * @generated
+ */
+ private List<?> parserElements;
+
+ /**
+ * @generated
+ */
+ private String defaultText;
+
+ /**
+ * direct edition mode (default, undefined, registered editor, etc.)
+ *
+ * @generated
+ */
+ protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
+
+ /**
+ * configuration from a registered edit dialog
+ *
+ * @generated
+ */
+ protected IDirectEditorConfiguration configuration;
+
+ /**
+ * @generated
+ */
+ public DeviceCompositeNameEditPartCN(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
+ installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new CompositeStructureDiagramEditPart.NodeLabelDragPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelTextHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getText();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getText();
+ } else {
+ return ((Label)figure).getText();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelTextHelper(IFigure figure, String text) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setText(text);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setText(text);
+ } else {
+ ((Label)figure).setText(text);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIconHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getIcon();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getIcon();
+ } else {
+ return ((Label)figure).getIcon();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelIconHelper(IFigure figure, Image icon) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setIcon(icon);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setIcon(icon);
+ } else {
+ ((Label)figure).setIcon(icon);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabel(WrappingLabel figure) {
+ unregisterVisuals();
+ setFigure(figure);
+ defaultText = getLabelTextHelper(figure);
+ registerVisuals();
+ refreshVisuals();
+ }
+
+ /**
+ * @generated
+ */
+ protected List getModelChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject getParserElement() {
+ return resolveSemanticElement();
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIcon() {
+ EObject parserElement = getParserElement();
+ if(parserElement == null) {
+ return null;
+ }
+
+ List<View> views = DiagramEditPartsUtil.findViews(parserElement, getViewer());
+ for(View view : views) {
+ if(NameLabelIconHelper.showLabelIcon(view)) {
+ return UMLElementTypes.getImage(parserElement.eClass());
+ }
+ }
+ return null;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelText() {
+ String text = null;
+ EObject parserElement = getParserElement();
+ if(parserElement != null && getParser() != null) {
+ text = getParser().getPrintString(new EObjectAdapter(parserElement), getParserOptions().intValue());
+ }
+ if(text == null || text.length() == 0) {
+ text = defaultText;
+ }
+ return text;
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabelText(String text) {
+ setLabelTextHelper(getFigure(), text);
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public String getEditText() {
+ if(getParserElement() == null || getParser() == null) {
+ return ""; //$NON-NLS-1$
+ }
+ return getParser().getEditString(new EObjectAdapter(getParserElement()), getParserOptions().intValue());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean isEditable() {
+ return getParser() != null;
+ }
+
+ /**
+ * @generated
+ */
+ public ICellEditorValidator getEditTextValidator() {
+ return new ICellEditorValidator() {
+
+ public String isValid(final Object value) {
+ if(value instanceof String) {
+ final EObject element = getParserElement();
+ final IParser parser = getParser();
+ try {
+ IParserEditStatus valid = (IParserEditStatus)getEditingDomain().runExclusive(new RunnableWithResult.Impl() {
+
+ public void run() {
+ setResult(parser.isValidEditString(new EObjectAdapter(element), (String)value));
+ }
+ });
+ return valid.getCode() == ParserEditStatus.EDITABLE ? null : valid.getMessage();
+ } catch (InterruptedException ie) {
+ ie.printStackTrace();
+ }
+ }
+
+ // shouldn't get here
+ return null;
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ public IContentAssistProcessor getCompletionProcessor() {
+ if(getParserElement() == null || getParser() == null) {
+ return null;
+ }
+ return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
+ }
+
+ /**
+ * @generated
+ */
+ public ParserOptions getParserOptions() {
+ return ParserOptions.NONE;
+ }
+
+ /**
+ * @generated
+ */
+ public IParser getParser() {
+ if(parser == null) {
+ parser = UMLParserProvider.getParser(UMLElementTypes.Device_3082, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.diagram.composite.edit.parts.DeviceCompositeNameEditPartCN.VISUAL_ID));
+ }
+ return parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected DirectEditManager getManager() {
+ if(manager == null) {
+ setManager(new MultilineLabelDirectEditManager(this, MultilineLabelDirectEditManager.getTextCellEditorClass(this), UMLEditPartFactory.getTextCellEditorLocator(this)));
+ }
+ return manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setManager(DirectEditManager manager) {
+ this.manager = manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit() {
+ getManager().show();
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit(Point eventLocation) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(eventLocation.getSWTPoint());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void performDirectEdit(char initialCharacter) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(initialCharacter);
+ } else {
+ performDirectEdit();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEditRequest(Request request) {
+
+ final Request theRequest = request;
+
+ if(IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
+ directEditionMode = getDirectEditionType();
+ }
+ switch(directEditionMode) {
+ case IDirectEdition.NO_DIRECT_EDITION:
+ // no direct edition mode => does nothing
+ return;
+ case IDirectEdition.EXTENDED_DIRECT_EDITOR:
+ updateExtendedEditorConfiguration();
+ if(configuration == null || configuration.getLanguage() == null) {
+ performDefaultDirectEditorEdit(theRequest);
+ } else {
+ configuration.preEditAction(resolveSemanticElement());
+ Dialog dialog = null;
+ if(configuration instanceof IPopupEditorConfiguration) {
+ IPopupEditorHelper helper = ((IPopupEditorConfiguration)configuration).createPopupEditorHelper(this);
+ helper.showEditor();
+ return;
+ } else if(configuration instanceof IAdvancedEditorConfiguration) {
+ dialog = ((IAdvancedEditorConfiguration)configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
+ } else if(configuration instanceof IDirectEditorConfiguration) {
+ dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), ((IDirectEditorConfiguration)configuration).getTextToEdit(resolveSemanticElement()), (IDirectEditorConfiguration)configuration);
+ } else {
+ return;
+ }
+ final Dialog finalDialog = dialog;
+
+ if(Window.OK == dialog.open()) {
+ TransactionalEditingDomain domain = getEditingDomain();
+ RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
+
+ @Override
+ protected void doExecute() {
+ configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog)finalDialog).getValue());
+
+ }
+ };
+ domain.getCommandStack().execute(command);
+ }
+ }
+ break;
+ case IDirectEdition.DEFAULT_DIRECT_EDITOR:
+
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ break;
+ default:
+ break;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshLabel();
+ refreshFont();
+ refreshFontColor();
+ refreshUnderline();
+ refreshStrikeThrough();
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshLabel() {
+ EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
+ if(maskLabelPolicy == null) {
+ setLabelTextHelper(getFigure(), getLabelText());
+ setLabelIconHelper(getFigure(), getLabelIcon());
+ }
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshUnderline() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextUnderline(style.isUnderline());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshStrikeThrough() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextStrikeThrough(style.isStrikeThrough());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshFont() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null) {
+ FontData fontData = new FontData(style.getFontName(), style.getFontHeight(), (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
+ setFont(fontData);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setFontColor(Color color) {
+ getFigure().setForegroundColor(color);
+ }
+
+ /**
+ * @generated
+ */
+ protected void addSemanticListeners() {
+ if(getParser() instanceof ISemanticParser) {
+ EObject element = resolveSemanticElement();
+ parserElements = ((ISemanticParser)getParser()).getSemanticElementsBeingParsed(element);
+ for(int i = 0; i < parserElements.size(); i++) {
+ addListenerFilter("SemanticModel" + i, this, (EObject)parserElements.get(i)); //$NON-NLS-1$
+ }
+ } else {
+ super.addSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeSemanticListeners() {
+ if(parserElements != null) {
+ for(int i = 0; i < parserElements.size(); i++) {
+ removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
+ }
+ } else {
+ super.removeSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected AccessibleEditPart getAccessibleEditPart() {
+ if(accessibleEP == null) {
+ accessibleEP = new AccessibleGraphicalEditPart() {
+
+ public void getName(AccessibleEvent e) {
+ e.result = getLabelTextHelper(getFigure());
+ }
+ };
+ }
+ return accessibleEP;
+ }
+
+ /**
+ * @generated
+ */
+ private View getFontStyleOwnerView() {
+ return (View)getModel();
+ }
+
+ /**
+ * Returns the kind of associated editor for direct edition.
+ *
+ * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition
+ * @generated
+ */
+ public int getDirectEditionType() {
+ if(checkExtendedEditor()) {
+ initExtendedEditorConfiguration();
+ return IDirectEdition.EXTENDED_DIRECT_EDITOR;
+ }
+ if(checkDefaultEdition()) {
+ return IDirectEdition.DEFAULT_DIRECT_EDITOR;
+ }
+
+ // not a named element. no specific editor => do nothing
+ return IDirectEdition.NO_DIRECT_EDITION;
+ }
+
+ /**
+ * Checks if an extended editor is present.
+ *
+ * @return <code>true</code> if an extended editor is present.
+ * @generated
+ */
+ protected boolean checkExtendedEditor() {
+ if(resolveSemanticElement() != null) {
+ return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ return false;
+ }
+
+ /**
+ * Checks if a default direct edition is available
+ *
+ * @return <code>true</code> if a default direct edition is available
+ * @generated
+ */
+ protected boolean checkDefaultEdition() {
+ return (getParser() != null);
+ }
+
+ /**
+ * Initializes the extended editor configuration
+ *
+ * @generated
+ */
+ protected void initExtendedEditorConfiguration() {
+ if(configuration == null) {
+ final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("")) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else {
+ configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ }
+ }
+
+ /**
+ * Updates the preference configuration
+ *
+ * @generated
+ */
+ protected void updateExtendedEditorConfiguration() {
+ String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("") && languagePreferred != configuration.getLanguage()) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else if(IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
+ configuration = null;
+ }
+ }
+
+ /**
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
+ protected void performDefaultDirectEditorEdit(final Request theRequest) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void addNotationalListeners() {
+ super.addNotationalListeners();
+ addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeNotationalListeners() {
+ super.removeNotationalListeners();
+ removeListenerFilter("PrimaryView"); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void handleNotificationEvent(Notification event) {
+ refreshLabel();
+ Object feature = event.getFeature();
+ if(NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
+ Integer c = (Integer)event.getNewValue();
+ setFontColor(DiagramColorRegistry.getInstance().getColor(c));
+ } else if(NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
+ refreshUnderline();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
+ refreshStrikeThrough();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
+ refreshFont();
+ } else {
+ if(getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
+ refreshLabel();
+ }
+ if(getParser() instanceof ISemanticParser) {
+ ISemanticParser modelParser = (ISemanticParser)getParser();
+ if(modelParser.areSemanticElementsAffected(null, event)) {
+ removeSemanticListeners();
+ if(resolveSemanticElement() != null) {
+ addSemanticListeners();
+ }
+ refreshLabel();
+ }
+ }
+ }
+
+ if(event.getNewValue() instanceof EAnnotation && VisualInformationPapyrusConstant.DISPLAY_NAMELABELICON.equals(((EAnnotation)event.getNewValue()).getSource())) {
+ refreshLabel();
+ }
+
+ super.handleNotificationEvent(event);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createFigure() {
+ // Parent should assign one using setLabel() method
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ private static final String ADD_PARENT_MODEL = "AddParentModel";
+
+ /**
+ * @generated
+ */
+ public void activate() {
+ super.activate();
+ addOwnerElementListeners();
+ }
+
+ /**
+ * @generated
+ */
+ protected void addOwnerElementListeners() {
+ addListenerFilter(ADD_PARENT_MODEL, this, ((View)getParent().getModel())); //$NON-NLS-1$
+
+ }
+
+ /**
+ * @generated
+ */
+ public void deactivate() {
+ removeOwnerElementListeners();
+ super.deactivate();
+
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeOwnerElementListeners() {
+ removeListenerFilter(ADD_PARENT_MODEL);
+
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/DurationConstraintEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/DurationConstraintEditPart.java
new file mode 100644
index 00000000000..b4b2c3e7d89
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/DurationConstraintEditPart.java
@@ -0,0 +1,5459 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.ArrayList;
+import java.util.LinkedList;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Shape;
+import org.eclipse.draw2d.StackLayout;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EStructuralFeature;
+import org.eclipse.gef.EditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.editpolicies.LayoutEditPolicy;
+import org.eclipse.gef.editpolicies.NonResizableEditPolicy;
+import org.eclipse.gef.requests.CreateRequest;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.FigureUtilities;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.gef.ui.figures.DefaultSizeNodeFigure;
+import org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.jface.preference.PreferenceConverter;
+import org.eclipse.papyrus.diagram.common.editparts.AbstractConstraintEditPart;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.figure.node.ConstraintFigure;
+import org.eclipse.papyrus.diagram.common.helper.PreferenceInitializerForElementHelper;
+import org.eclipse.papyrus.diagram.composite.edit.policies.DurationConstraintItemSemanticEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorPlugin;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter;
+import org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper;
+import org.eclipse.swt.graphics.Color;
+
+/**
+ * @generated
+ */
+public class DurationConstraintEditPart extends
+
+AbstractConstraintEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 2110;
+
+ /**
+ * @generated
+ */
+ protected IFigure contentPane;
+
+ /**
+ * @generated
+ */
+ protected IFigure primaryShape;
+
+ /**
+ * @generated
+ */
+ public DurationConstraintEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new DurationConstraintItemSemanticEditPolicy());
+ installEditPolicy(EditPolicy.LAYOUT_ROLE, createLayoutEditPolicy());
+ installEditPolicy(AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeNodeLabelDisplayEditPolicy());
+ // XXX need an SCR to runtime to have another abstract superclass that would let children add reasonable editpolicies
+ // removeEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CONNECTION_HANDLES_ROLE);
+ }
+
+ /**
+ * Papyrus codeGen
+ *
+ * @generated
+ **/
+ protected void handleNotificationEvent(Notification event) {
+ super.handleNotificationEvent(event);
+
+ }
+
+ /**
+ * @generated
+ */
+ protected LayoutEditPolicy createLayoutEditPolicy() {
+ org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy lep = new org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy() {
+
+ protected EditPolicy createChildEditPolicy(EditPart child) {
+ EditPolicy result = child.getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(result == null) {
+ result = new NonResizableEditPolicy();
+ }
+ return result;
+ }
+
+ protected Command getMoveChildrenCommand(Request request) {
+ return null;
+ }
+
+ protected Command getCreateCommand(CreateRequest request) {
+ return null;
+ }
+ };
+ return lep;
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createNodeShape() {
+ return primaryShape = new ConstraintFigure();
+ }
+
+ /**
+ * @generated
+ */
+ public ConstraintFigure getPrimaryShape() {
+ return (ConstraintFigure)primaryShape;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean addFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof DurationConstraintNameEditPart) {
+ ((DurationConstraintNameEditPart)childEditPart).setLabel(getPrimaryShape().getNameLabel());
+ return true;
+ }
+ if(childEditPart instanceof DurationConstraintSpecificationEditPart) {
+ ((DurationConstraintSpecificationEditPart)childEditPart).setLabel(getPrimaryShape().getConstraintFigure());
+ return true;
+ }
+
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean removeFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof DurationConstraintNameEditPart) {
+ return true;
+ }
+ if(childEditPart instanceof DurationConstraintSpecificationEditPart) {
+ return true;
+ }
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected void addChildVisual(EditPart childEditPart, int index) {
+ if(addFixedChild(childEditPart)) {
+ return;
+ }
+ super.addChildVisual(childEditPart, -1);
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeChildVisual(EditPart childEditPart) {
+ if(removeFixedChild(childEditPart)) {
+ return;
+ }
+ super.removeChildVisual(childEditPart);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure getContentPaneFor(IGraphicalEditPart editPart) {
+ return getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ protected NodeFigure createNodePlate() {
+ String prefElementId = "DurationConstraint";
+ IPreferenceStore store = UMLDiagramEditorPlugin.getInstance().getPreferenceStore();
+ String preferenceConstantWitdh = PreferenceInitializerForElementHelper.getpreferenceKey(getNotationView(), prefElementId, PreferenceConstantHelper.WIDTH);
+ String preferenceConstantHeight = PreferenceInitializerForElementHelper.getpreferenceKey(getNotationView(), prefElementId, PreferenceConstantHelper.HEIGHT);
+ DefaultSizeNodeFigure result = new DefaultSizeNodeFigure(store.getInt(preferenceConstantWitdh), store.getInt(preferenceConstantHeight));
+
+ return result;
+ }
+
+ /**
+ * Creates figure for this edit part.
+ *
+ * Body of this method does not depend on settings in generation model
+ * so you may safely remove <i>generated</i> tag and modify it.
+ *
+ * @generated
+ */
+ protected NodeFigure createNodeFigure() {
+ NodeFigure figure = createNodePlate();
+ figure.setLayoutManager(new StackLayout());
+ IFigure shape = createNodeShape();
+ figure.add(shape);
+ contentPane = setupContentPane(shape);
+ return figure;
+ }
+
+ /**
+ * Default implementation treats passed figure as content pane.
+ * Respects layout one may have set for generated figure.
+ *
+ * @param nodeShape
+ * instance of generated figure class
+ * @generated
+ */
+ protected IFigure setupContentPane(IFigure nodeShape) {
+ if(nodeShape.getLayoutManager() == null) {
+ ConstrainedToolbarLayout layout = new ConstrainedToolbarLayout();
+ layout.setSpacing(5);
+ nodeShape.setLayoutManager(layout);
+ }
+ return nodeShape; // use nodeShape itself as contentPane
+ }
+
+ /**
+ * @generated
+ */
+ public IFigure getContentPane() {
+ if(contentPane != null) {
+ return contentPane;
+ }
+ return super.getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ protected void setForegroundColor(Color color) {
+ if(primaryShape != null) {
+ primaryShape.setForegroundColor(color);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLineWidth(int width) {
+ if(primaryShape instanceof Shape) {
+ ((Shape)primaryShape).setLineWidth(width);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLineType(int style) {
+ if(primaryShape instanceof Shape) {
+ ((Shape)primaryShape).setLineStyle(style);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public EditPart getPrimaryChildEditPart() {
+ return getChildBySemanticHint(UMLVisualIDRegistry.getType(DurationConstraintNameEditPart.VISUAL_ID));
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnSource() {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(12);
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ types.add(UMLElementTypes.Substitution_4011);
+ types.add(UMLElementTypes.Realization_4006);
+ types.add(UMLElementTypes.Manifestation_4012);
+ types.add(UMLElementTypes.Abstraction_4007);
+ types.add(UMLElementTypes.Usage_4008);
+ types.add(UMLElementTypes.Deployment_4009);
+ types.add(UMLElementTypes.Dependency_4017);
+ types.add(UMLElementTypes.Dependency_4010);
+ types.add(UMLElementTypes.InformationFlow_4021);
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnSourceAndTarget(IGraphicalEditPart targetEditPart) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof CommentEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.DurationConstraintEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof CommentEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.DurationConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.DurationConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.DurationConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMATypesForTarget(IElementType relationshipType) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(relationshipType == UMLElementTypes.ConstraintConstrainedElement_4003) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.Comment_2109);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.Comment_3097);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.ComponentRealization_4004) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InterfaceRealization_4005) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Substitution_4011) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Realization_4006) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Manifestation_4012) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Abstraction_4007) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Usage_4008) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Deployment_4009) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4017) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4010) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InformationFlow_4021) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnTarget() {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(15);
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ types.add(UMLElementTypes.Substitution_4011);
+ types.add(UMLElementTypes.Realization_4006);
+ types.add(UMLElementTypes.Manifestation_4012);
+ types.add(UMLElementTypes.Abstraction_4007);
+ types.add(UMLElementTypes.Usage_4008);
+ types.add(UMLElementTypes.Deployment_4009);
+ types.add(UMLElementTypes.Dependency_4017);
+ types.add(UMLElementTypes.Dependency_4010);
+ types.add(UMLElementTypes.TimeObservationEvent_4018);
+ types.add(UMLElementTypes.DurationObservationEvent_4019);
+ types.add(UMLElementTypes.InformationFlow_4021);
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMATypesForSource(IElementType relationshipType) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(relationshipType == UMLElementTypes.CommentAnnotatedElement_4002) {
+ types.add(UMLElementTypes.Comment_2109);
+ types.add(UMLElementTypes.Comment_3097);
+ } else if(relationshipType == UMLElementTypes.ConstraintConstrainedElement_4003) {
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.ComponentRealization_4004) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InterfaceRealization_4005) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Substitution_4011) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Realization_4006) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Manifestation_4012) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Abstraction_4007) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Usage_4008) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Deployment_4009) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4017) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4010) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.TimeObservationEvent_4018) {
+ types.add(UMLElementTypes.TimeObservation_2094);
+ } else if(relationshipType == UMLElementTypes.DurationObservationEvent_4019) {
+ types.add(UMLElementTypes.DurationObservation_2093);
+ } else if(relationshipType == UMLElementTypes.InformationFlow_4021) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public Object getPreferredValue(EStructuralFeature feature) {
+ IPreferenceStore preferenceStore = (IPreferenceStore)getDiagramPreferencesHint().getPreferenceStore();
+ Object result = null;
+
+ if(feature == NotationPackage.eINSTANCE.getLineStyle_LineColor() || feature == NotationPackage.eINSTANCE.getFontStyle_FontColor() || feature == NotationPackage.eINSTANCE.getFillStyle_FillColor()) {
+ String prefColor = null;
+ if(feature == NotationPackage.eINSTANCE.getLineStyle_LineColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("DurationConstraint", PreferenceConstantHelper.COLOR_LINE);
+ } else if(feature == NotationPackage.eINSTANCE.getFontStyle_FontColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("DurationConstraint", PreferenceConstantHelper.COLOR_FONT);
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_FillColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("DurationConstraint", PreferenceConstantHelper.COLOR_FILL);
+ }
+ result = FigureUtilities.RGBToInteger(PreferenceConverter.getColor((IPreferenceStore)preferenceStore, prefColor));
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_Transparency() || feature == NotationPackage.eINSTANCE.getFillStyle_Gradient()) {
+ String prefGradient = PreferenceConstantHelper.getElementConstant("DurationConstraint", PreferenceConstantHelper.COLOR_GRADIENT);
+ GradientPreferenceConverter gradientPreferenceConverter = new GradientPreferenceConverter(preferenceStore.getString(prefGradient));
+ if(feature == NotationPackage.eINSTANCE.getFillStyle_Transparency()) {
+ result = new Integer(gradientPreferenceConverter.getTransparency());
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_Gradient()) {
+ result = gradientPreferenceConverter.getGradientData();
+ }
+ }
+
+ if(result == null) {
+ result = getStructuralFeatureValue(feature);
+ }
+ return result;
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/DurationConstraintEditPartCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/DurationConstraintEditPartCN.java
new file mode 100644
index 00000000000..7e67eb6d785
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/DurationConstraintEditPartCN.java
@@ -0,0 +1,5461 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.ArrayList;
+import java.util.LinkedList;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Shape;
+import org.eclipse.draw2d.StackLayout;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EStructuralFeature;
+import org.eclipse.gef.EditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.editpolicies.LayoutEditPolicy;
+import org.eclipse.gef.editpolicies.NonResizableEditPolicy;
+import org.eclipse.gef.requests.CreateRequest;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.FigureUtilities;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.gef.ui.figures.DefaultSizeNodeFigure;
+import org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.jface.preference.PreferenceConverter;
+import org.eclipse.papyrus.diagram.common.editparts.AbstractConstraintEditPart;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.figure.node.ConstraintFigure;
+import org.eclipse.papyrus.diagram.common.helper.PreferenceInitializerForElementHelper;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.NoScrollClassifierResizableShapeEditPolicy;
+import org.eclipse.papyrus.diagram.composite.edit.policies.DurationConstraintItemSemanticEditPolicyCN;
+import org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorPlugin;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter;
+import org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper;
+import org.eclipse.swt.graphics.Color;
+
+/**
+ * @generated
+ */
+public class DurationConstraintEditPartCN extends
+
+AbstractConstraintEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 3116;
+
+ /**
+ * @generated
+ */
+ protected IFigure contentPane;
+
+ /**
+ * @generated
+ */
+ protected IFigure primaryShape;
+
+ /**
+ * @generated
+ */
+ public DurationConstraintEditPartCN(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new DurationConstraintItemSemanticEditPolicyCN());
+ installEditPolicy(EditPolicy.LAYOUT_ROLE, createLayoutEditPolicy());
+ installEditPolicy(AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeNodeLabelDisplayEditPolicy());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new NoScrollClassifierResizableShapeEditPolicy());
+ // XXX need an SCR to runtime to have another abstract superclass that would let children add reasonable editpolicies
+ // removeEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CONNECTION_HANDLES_ROLE);
+ }
+
+ /**
+ * Papyrus codeGen
+ *
+ * @generated
+ **/
+ protected void handleNotificationEvent(Notification event) {
+ super.handleNotificationEvent(event);
+
+ }
+
+ /**
+ * @generated
+ */
+ protected LayoutEditPolicy createLayoutEditPolicy() {
+ org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy lep = new org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy() {
+
+ protected EditPolicy createChildEditPolicy(EditPart child) {
+ EditPolicy result = child.getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(result == null) {
+ result = new NonResizableEditPolicy();
+ }
+ return result;
+ }
+
+ protected Command getMoveChildrenCommand(Request request) {
+ return null;
+ }
+
+ protected Command getCreateCommand(CreateRequest request) {
+ return null;
+ }
+ };
+ return lep;
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createNodeShape() {
+ return primaryShape = new ConstraintFigure();
+ }
+
+ /**
+ * @generated
+ */
+ public ConstraintFigure getPrimaryShape() {
+ return (ConstraintFigure)primaryShape;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean addFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof DurationConstraintNameEditPartCN) {
+ ((DurationConstraintNameEditPartCN)childEditPart).setLabel(getPrimaryShape().getNameLabel());
+ return true;
+ }
+ if(childEditPart instanceof DurationConstraintSpecificationEditPartCN) {
+ ((DurationConstraintSpecificationEditPartCN)childEditPart).setLabel(getPrimaryShape().getConstraintFigure());
+ return true;
+ }
+
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean removeFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof DurationConstraintNameEditPartCN) {
+ return true;
+ }
+ if(childEditPart instanceof DurationConstraintSpecificationEditPartCN) {
+ return true;
+ }
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected void addChildVisual(EditPart childEditPart, int index) {
+ if(addFixedChild(childEditPart)) {
+ return;
+ }
+ super.addChildVisual(childEditPart, -1);
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeChildVisual(EditPart childEditPart) {
+ if(removeFixedChild(childEditPart)) {
+ return;
+ }
+ super.removeChildVisual(childEditPart);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure getContentPaneFor(IGraphicalEditPart editPart) {
+ return getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ protected NodeFigure createNodePlate() {
+ String prefElementId = "DurationConstraint";
+ IPreferenceStore store = UMLDiagramEditorPlugin.getInstance().getPreferenceStore();
+ String preferenceConstantWitdh = PreferenceInitializerForElementHelper.getpreferenceKey(getNotationView(), prefElementId, PreferenceConstantHelper.WIDTH);
+ String preferenceConstantHeight = PreferenceInitializerForElementHelper.getpreferenceKey(getNotationView(), prefElementId, PreferenceConstantHelper.HEIGHT);
+ DefaultSizeNodeFigure result = new DefaultSizeNodeFigure(store.getInt(preferenceConstantWitdh), store.getInt(preferenceConstantHeight));
+
+ return result;
+ }
+
+ /**
+ * Creates figure for this edit part.
+ *
+ * Body of this method does not depend on settings in generation model
+ * so you may safely remove <i>generated</i> tag and modify it.
+ *
+ * @generated
+ */
+ protected NodeFigure createNodeFigure() {
+ NodeFigure figure = createNodePlate();
+ figure.setLayoutManager(new StackLayout());
+ IFigure shape = createNodeShape();
+ figure.add(shape);
+ contentPane = setupContentPane(shape);
+ return figure;
+ }
+
+ /**
+ * Default implementation treats passed figure as content pane.
+ * Respects layout one may have set for generated figure.
+ *
+ * @param nodeShape
+ * instance of generated figure class
+ * @generated
+ */
+ protected IFigure setupContentPane(IFigure nodeShape) {
+ if(nodeShape.getLayoutManager() == null) {
+ ConstrainedToolbarLayout layout = new ConstrainedToolbarLayout();
+ layout.setSpacing(5);
+ nodeShape.setLayoutManager(layout);
+ }
+ return nodeShape; // use nodeShape itself as contentPane
+ }
+
+ /**
+ * @generated
+ */
+ public IFigure getContentPane() {
+ if(contentPane != null) {
+ return contentPane;
+ }
+ return super.getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ protected void setForegroundColor(Color color) {
+ if(primaryShape != null) {
+ primaryShape.setForegroundColor(color);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLineWidth(int width) {
+ if(primaryShape instanceof Shape) {
+ ((Shape)primaryShape).setLineWidth(width);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLineType(int style) {
+ if(primaryShape instanceof Shape) {
+ ((Shape)primaryShape).setLineStyle(style);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public EditPart getPrimaryChildEditPart() {
+ return getChildBySemanticHint(UMLVisualIDRegistry.getType(DurationConstraintNameEditPartCN.VISUAL_ID));
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnSource() {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(12);
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ types.add(UMLElementTypes.Substitution_4011);
+ types.add(UMLElementTypes.Realization_4006);
+ types.add(UMLElementTypes.Manifestation_4012);
+ types.add(UMLElementTypes.Abstraction_4007);
+ types.add(UMLElementTypes.Usage_4008);
+ types.add(UMLElementTypes.Deployment_4009);
+ types.add(UMLElementTypes.Dependency_4017);
+ types.add(UMLElementTypes.Dependency_4010);
+ types.add(UMLElementTypes.InformationFlow_4021);
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnSourceAndTarget(IGraphicalEditPart targetEditPart) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof CommentEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof CommentEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMATypesForTarget(IElementType relationshipType) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(relationshipType == UMLElementTypes.ConstraintConstrainedElement_4003) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.Comment_2109);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.Comment_3097);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.ComponentRealization_4004) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InterfaceRealization_4005) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Substitution_4011) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Realization_4006) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Manifestation_4012) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Abstraction_4007) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Usage_4008) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Deployment_4009) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4017) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4010) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InformationFlow_4021) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnTarget() {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(15);
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ types.add(UMLElementTypes.Substitution_4011);
+ types.add(UMLElementTypes.Realization_4006);
+ types.add(UMLElementTypes.Manifestation_4012);
+ types.add(UMLElementTypes.Abstraction_4007);
+ types.add(UMLElementTypes.Usage_4008);
+ types.add(UMLElementTypes.Deployment_4009);
+ types.add(UMLElementTypes.Dependency_4017);
+ types.add(UMLElementTypes.Dependency_4010);
+ types.add(UMLElementTypes.TimeObservationEvent_4018);
+ types.add(UMLElementTypes.DurationObservationEvent_4019);
+ types.add(UMLElementTypes.InformationFlow_4021);
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMATypesForSource(IElementType relationshipType) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(relationshipType == UMLElementTypes.CommentAnnotatedElement_4002) {
+ types.add(UMLElementTypes.Comment_2109);
+ types.add(UMLElementTypes.Comment_3097);
+ } else if(relationshipType == UMLElementTypes.ConstraintConstrainedElement_4003) {
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.ComponentRealization_4004) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InterfaceRealization_4005) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Substitution_4011) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Realization_4006) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Manifestation_4012) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Abstraction_4007) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Usage_4008) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Deployment_4009) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4017) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4010) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.TimeObservationEvent_4018) {
+ types.add(UMLElementTypes.TimeObservation_2094);
+ } else if(relationshipType == UMLElementTypes.DurationObservationEvent_4019) {
+ types.add(UMLElementTypes.DurationObservation_2093);
+ } else if(relationshipType == UMLElementTypes.InformationFlow_4021) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public Object getPreferredValue(EStructuralFeature feature) {
+ IPreferenceStore preferenceStore = (IPreferenceStore)getDiagramPreferencesHint().getPreferenceStore();
+ Object result = null;
+
+ if(feature == NotationPackage.eINSTANCE.getLineStyle_LineColor() || feature == NotationPackage.eINSTANCE.getFontStyle_FontColor() || feature == NotationPackage.eINSTANCE.getFillStyle_FillColor()) {
+ String prefColor = null;
+ if(feature == NotationPackage.eINSTANCE.getLineStyle_LineColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("DurationConstraint", PreferenceConstantHelper.COLOR_LINE);
+ } else if(feature == NotationPackage.eINSTANCE.getFontStyle_FontColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("DurationConstraint", PreferenceConstantHelper.COLOR_FONT);
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_FillColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("DurationConstraint", PreferenceConstantHelper.COLOR_FILL);
+ }
+ result = FigureUtilities.RGBToInteger(PreferenceConverter.getColor((IPreferenceStore)preferenceStore, prefColor));
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_Transparency() || feature == NotationPackage.eINSTANCE.getFillStyle_Gradient()) {
+ String prefGradient = PreferenceConstantHelper.getElementConstant("DurationConstraint", PreferenceConstantHelper.COLOR_GRADIENT);
+ GradientPreferenceConverter gradientPreferenceConverter = new GradientPreferenceConverter(preferenceStore.getString(prefGradient));
+ if(feature == NotationPackage.eINSTANCE.getFillStyle_Transparency()) {
+ result = new Integer(gradientPreferenceConverter.getTransparency());
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_Gradient()) {
+ result = gradientPreferenceConverter.getGradientData();
+ }
+ }
+
+ if(result == null) {
+ result = getStructuralFeatureValue(feature);
+ }
+ return result;
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/DurationConstraintNameEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/DurationConstraintNameEditPart.java
new file mode 100644
index 00000000000..bf6dcafee80
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/DurationConstraintNameEditPart.java
@@ -0,0 +1,791 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EAnnotation;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.emf.transaction.RunnableWithResult;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.AccessibleEditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.requests.DirectEditRequest;
+import org.eclipse.gef.tools.DirectEditManager;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.CompartmentEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
+import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
+import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
+import org.eclipse.gmf.runtime.notation.FontStyle;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
+import org.eclipse.jface.viewers.ICellEditorValidator;
+import org.eclipse.jface.window.Window;
+import org.eclipse.papyrus.diagram.common.directedit.MultilineLabelDirectEditManager;
+import org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition;
+import org.eclipse.papyrus.diagram.common.editpolicies.IMaskManagedLabelEditPolicy;
+import org.eclipse.papyrus.diagram.common.figure.node.ILabelFigure;
+import org.eclipse.papyrus.diagram.common.util.DiagramEditPartsUtil;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLTextSelectionEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.diagram.composite.providers.UMLParserProvider;
+import org.eclipse.papyrus.extensionpoints.editors.Activator;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
+import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
+import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
+import org.eclipse.papyrus.umlutils.ui.VisualInformationPapyrusConstant;
+import org.eclipse.papyrus.umlutils.ui.helper.NameLabelIconHelper;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.AccessibleEvent;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.FontData;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.ui.PlatformUI;
+
+/**
+ * @generated
+ */
+public class DurationConstraintNameEditPart extends CompartmentEditPart implements ITextAwareEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 5193;
+
+ /**
+ * @generated
+ */
+ private DirectEditManager manager;
+
+ /**
+ * @generated
+ */
+ private IParser parser;
+
+ /**
+ * @generated
+ */
+ private List<?> parserElements;
+
+ /**
+ * @generated
+ */
+ private String defaultText;
+
+ /**
+ * direct edition mode (default, undefined, registered editor, etc.)
+ *
+ * @generated
+ */
+ protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
+
+ /**
+ * configuration from a registered edit dialog
+ *
+ * @generated
+ */
+ protected IDirectEditorConfiguration configuration;
+
+ /**
+ * @generated
+ */
+ public DurationConstraintNameEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
+ installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new CompositeStructureDiagramEditPart.NodeLabelDragPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelTextHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getText();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getText();
+ } else {
+ return ((Label)figure).getText();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelTextHelper(IFigure figure, String text) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setText(text);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setText(text);
+ } else {
+ ((Label)figure).setText(text);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIconHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getIcon();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getIcon();
+ } else {
+ return ((Label)figure).getIcon();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelIconHelper(IFigure figure, Image icon) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setIcon(icon);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setIcon(icon);
+ } else {
+ ((Label)figure).setIcon(icon);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabel(WrappingLabel figure) {
+ unregisterVisuals();
+ setFigure(figure);
+ defaultText = getLabelTextHelper(figure);
+ registerVisuals();
+ refreshVisuals();
+ }
+
+ /**
+ * @generated
+ */
+ protected List getModelChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject getParserElement() {
+ return resolveSemanticElement();
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIcon() {
+ EObject parserElement = getParserElement();
+ if(parserElement == null) {
+ return null;
+ }
+
+ List<View> views = DiagramEditPartsUtil.findViews(parserElement, getViewer());
+ for(View view : views) {
+ if(NameLabelIconHelper.showLabelIcon(view)) {
+ return UMLElementTypes.getImage(parserElement.eClass());
+ }
+ }
+ return null;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelText() {
+ String text = null;
+ EObject parserElement = getParserElement();
+ if(parserElement != null && getParser() != null) {
+ text = getParser().getPrintString(new EObjectAdapter(parserElement), getParserOptions().intValue());
+ }
+ if(text == null || text.length() == 0) {
+ text = defaultText;
+ }
+ return text;
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabelText(String text) {
+ setLabelTextHelper(getFigure(), text);
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public String getEditText() {
+ if(getParserElement() == null || getParser() == null) {
+ return ""; //$NON-NLS-1$
+ }
+ return getParser().getEditString(new EObjectAdapter(getParserElement()), getParserOptions().intValue());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean isEditable() {
+ return getParser() != null;
+ }
+
+ /**
+ * @generated
+ */
+ public ICellEditorValidator getEditTextValidator() {
+ return new ICellEditorValidator() {
+
+ public String isValid(final Object value) {
+ if(value instanceof String) {
+ final EObject element = getParserElement();
+ final IParser parser = getParser();
+ try {
+ IParserEditStatus valid = (IParserEditStatus)getEditingDomain().runExclusive(new RunnableWithResult.Impl() {
+
+ public void run() {
+ setResult(parser.isValidEditString(new EObjectAdapter(element), (String)value));
+ }
+ });
+ return valid.getCode() == ParserEditStatus.EDITABLE ? null : valid.getMessage();
+ } catch (InterruptedException ie) {
+ ie.printStackTrace();
+ }
+ }
+
+ // shouldn't get here
+ return null;
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ public IContentAssistProcessor getCompletionProcessor() {
+ if(getParserElement() == null || getParser() == null) {
+ return null;
+ }
+ return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
+ }
+
+ /**
+ * @generated
+ */
+ public ParserOptions getParserOptions() {
+ return ParserOptions.NONE;
+ }
+
+ /**
+ * @generated
+ */
+ public IParser getParser() {
+ if(parser == null) {
+ parser = UMLParserProvider.getParser(UMLElementTypes.DurationConstraint_2110, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.diagram.composite.edit.parts.DurationConstraintNameEditPart.VISUAL_ID));
+ }
+ return parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected DirectEditManager getManager() {
+ if(manager == null) {
+ setManager(new MultilineLabelDirectEditManager(this, MultilineLabelDirectEditManager.getTextCellEditorClass(this), UMLEditPartFactory.getTextCellEditorLocator(this)));
+ }
+ return manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setManager(DirectEditManager manager) {
+ this.manager = manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit() {
+ getManager().show();
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit(Point eventLocation) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(eventLocation.getSWTPoint());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void performDirectEdit(char initialCharacter) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(initialCharacter);
+ } else {
+ performDirectEdit();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEditRequest(Request request) {
+
+ final Request theRequest = request;
+
+ if(IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
+ directEditionMode = getDirectEditionType();
+ }
+ switch(directEditionMode) {
+ case IDirectEdition.NO_DIRECT_EDITION:
+ // no direct edition mode => does nothing
+ return;
+ case IDirectEdition.EXTENDED_DIRECT_EDITOR:
+ updateExtendedEditorConfiguration();
+ if(configuration == null || configuration.getLanguage() == null) {
+ performDefaultDirectEditorEdit(theRequest);
+ } else {
+ configuration.preEditAction(resolveSemanticElement());
+ Dialog dialog = null;
+ if(configuration instanceof IPopupEditorConfiguration) {
+ IPopupEditorHelper helper = ((IPopupEditorConfiguration)configuration).createPopupEditorHelper(this);
+ helper.showEditor();
+ return;
+ } else if(configuration instanceof IAdvancedEditorConfiguration) {
+ dialog = ((IAdvancedEditorConfiguration)configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
+ } else if(configuration instanceof IDirectEditorConfiguration) {
+ dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), ((IDirectEditorConfiguration)configuration).getTextToEdit(resolveSemanticElement()), (IDirectEditorConfiguration)configuration);
+ } else {
+ return;
+ }
+ final Dialog finalDialog = dialog;
+
+ if(Window.OK == dialog.open()) {
+ TransactionalEditingDomain domain = getEditingDomain();
+ RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
+
+ @Override
+ protected void doExecute() {
+ configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog)finalDialog).getValue());
+
+ }
+ };
+ domain.getCommandStack().execute(command);
+ }
+ }
+ break;
+ case IDirectEdition.DEFAULT_DIRECT_EDITOR:
+
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ break;
+ default:
+ break;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshLabel();
+ refreshFont();
+ refreshFontColor();
+ refreshUnderline();
+ refreshStrikeThrough();
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshLabel() {
+ EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
+ if(maskLabelPolicy == null) {
+ setLabelTextHelper(getFigure(), getLabelText());
+ setLabelIconHelper(getFigure(), getLabelIcon());
+ }
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshUnderline() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextUnderline(style.isUnderline());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshStrikeThrough() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextStrikeThrough(style.isStrikeThrough());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshFont() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null) {
+ FontData fontData = new FontData(style.getFontName(), style.getFontHeight(), (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
+ setFont(fontData);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setFontColor(Color color) {
+ getFigure().setForegroundColor(color);
+ }
+
+ /**
+ * @generated
+ */
+ protected void addSemanticListeners() {
+ if(getParser() instanceof ISemanticParser) {
+ EObject element = resolveSemanticElement();
+ parserElements = ((ISemanticParser)getParser()).getSemanticElementsBeingParsed(element);
+ for(int i = 0; i < parserElements.size(); i++) {
+ addListenerFilter("SemanticModel" + i, this, (EObject)parserElements.get(i)); //$NON-NLS-1$
+ }
+ } else {
+ super.addSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeSemanticListeners() {
+ if(parserElements != null) {
+ for(int i = 0; i < parserElements.size(); i++) {
+ removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
+ }
+ } else {
+ super.removeSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected AccessibleEditPart getAccessibleEditPart() {
+ if(accessibleEP == null) {
+ accessibleEP = new AccessibleGraphicalEditPart() {
+
+ public void getName(AccessibleEvent e) {
+ e.result = getLabelTextHelper(getFigure());
+ }
+ };
+ }
+ return accessibleEP;
+ }
+
+ /**
+ * @generated
+ */
+ private View getFontStyleOwnerView() {
+ return (View)getModel();
+ }
+
+ /**
+ * Returns the kind of associated editor for direct edition.
+ *
+ * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition
+ * @generated
+ */
+ public int getDirectEditionType() {
+ if(checkExtendedEditor()) {
+ initExtendedEditorConfiguration();
+ return IDirectEdition.EXTENDED_DIRECT_EDITOR;
+ }
+ if(checkDefaultEdition()) {
+ return IDirectEdition.DEFAULT_DIRECT_EDITOR;
+ }
+
+ // not a named element. no specific editor => do nothing
+ return IDirectEdition.NO_DIRECT_EDITION;
+ }
+
+ /**
+ * Checks if an extended editor is present.
+ *
+ * @return <code>true</code> if an extended editor is present.
+ * @generated
+ */
+ protected boolean checkExtendedEditor() {
+ if(resolveSemanticElement() != null) {
+ return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ return false;
+ }
+
+ /**
+ * Checks if a default direct edition is available
+ *
+ * @return <code>true</code> if a default direct edition is available
+ * @generated
+ */
+ protected boolean checkDefaultEdition() {
+ return (getParser() != null);
+ }
+
+ /**
+ * Initializes the extended editor configuration
+ *
+ * @generated
+ */
+ protected void initExtendedEditorConfiguration() {
+ if(configuration == null) {
+ final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("")) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else {
+ configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ }
+ }
+
+ /**
+ * Updates the preference configuration
+ *
+ * @generated
+ */
+ protected void updateExtendedEditorConfiguration() {
+ String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("") && languagePreferred != configuration.getLanguage()) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else if(IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
+ configuration = null;
+ }
+ }
+
+ /**
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
+ protected void performDefaultDirectEditorEdit(final Request theRequest) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void addNotationalListeners() {
+ super.addNotationalListeners();
+ addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeNotationalListeners() {
+ super.removeNotationalListeners();
+ removeListenerFilter("PrimaryView"); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void handleNotificationEvent(Notification event) {
+ refreshLabel();
+ Object feature = event.getFeature();
+ if(NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
+ Integer c = (Integer)event.getNewValue();
+ setFontColor(DiagramColorRegistry.getInstance().getColor(c));
+ } else if(NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
+ refreshUnderline();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
+ refreshStrikeThrough();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
+ refreshFont();
+ } else {
+ if(getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
+ refreshLabel();
+ }
+ if(getParser() instanceof ISemanticParser) {
+ ISemanticParser modelParser = (ISemanticParser)getParser();
+ if(modelParser.areSemanticElementsAffected(null, event)) {
+ removeSemanticListeners();
+ if(resolveSemanticElement() != null) {
+ addSemanticListeners();
+ }
+ refreshLabel();
+ }
+ }
+ }
+
+ if(event.getNewValue() instanceof EAnnotation && VisualInformationPapyrusConstant.DISPLAY_NAMELABELICON.equals(((EAnnotation)event.getNewValue()).getSource())) {
+ refreshLabel();
+ }
+
+ super.handleNotificationEvent(event);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createFigure() {
+ // Parent should assign one using setLabel() method
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ private static final String ADD_PARENT_MODEL = "AddParentModel";
+
+ /**
+ * @generated
+ */
+ public void activate() {
+ super.activate();
+ addOwnerElementListeners();
+ }
+
+ /**
+ * @generated
+ */
+ protected void addOwnerElementListeners() {
+ addListenerFilter(ADD_PARENT_MODEL, this, ((View)getParent().getModel())); //$NON-NLS-1$
+
+ }
+
+ /**
+ * @generated
+ */
+ public void deactivate() {
+ removeOwnerElementListeners();
+ super.deactivate();
+
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeOwnerElementListeners() {
+ removeListenerFilter(ADD_PARENT_MODEL);
+
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/DurationConstraintNameEditPartCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/DurationConstraintNameEditPartCN.java
new file mode 100644
index 00000000000..54cf9164b8e
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/DurationConstraintNameEditPartCN.java
@@ -0,0 +1,791 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EAnnotation;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.emf.transaction.RunnableWithResult;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.AccessibleEditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.requests.DirectEditRequest;
+import org.eclipse.gef.tools.DirectEditManager;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.CompartmentEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
+import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
+import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
+import org.eclipse.gmf.runtime.notation.FontStyle;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
+import org.eclipse.jface.viewers.ICellEditorValidator;
+import org.eclipse.jface.window.Window;
+import org.eclipse.papyrus.diagram.common.directedit.MultilineLabelDirectEditManager;
+import org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition;
+import org.eclipse.papyrus.diagram.common.editpolicies.IMaskManagedLabelEditPolicy;
+import org.eclipse.papyrus.diagram.common.figure.node.ILabelFigure;
+import org.eclipse.papyrus.diagram.common.util.DiagramEditPartsUtil;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLTextSelectionEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.diagram.composite.providers.UMLParserProvider;
+import org.eclipse.papyrus.extensionpoints.editors.Activator;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
+import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
+import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
+import org.eclipse.papyrus.umlutils.ui.VisualInformationPapyrusConstant;
+import org.eclipse.papyrus.umlutils.ui.helper.NameLabelIconHelper;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.AccessibleEvent;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.FontData;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.ui.PlatformUI;
+
+/**
+ * @generated
+ */
+public class DurationConstraintNameEditPartCN extends CompartmentEditPart implements ITextAwareEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 6040;
+
+ /**
+ * @generated
+ */
+ private DirectEditManager manager;
+
+ /**
+ * @generated
+ */
+ private IParser parser;
+
+ /**
+ * @generated
+ */
+ private List<?> parserElements;
+
+ /**
+ * @generated
+ */
+ private String defaultText;
+
+ /**
+ * direct edition mode (default, undefined, registered editor, etc.)
+ *
+ * @generated
+ */
+ protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
+
+ /**
+ * configuration from a registered edit dialog
+ *
+ * @generated
+ */
+ protected IDirectEditorConfiguration configuration;
+
+ /**
+ * @generated
+ */
+ public DurationConstraintNameEditPartCN(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
+ installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new CompositeStructureDiagramEditPart.NodeLabelDragPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelTextHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getText();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getText();
+ } else {
+ return ((Label)figure).getText();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelTextHelper(IFigure figure, String text) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setText(text);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setText(text);
+ } else {
+ ((Label)figure).setText(text);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIconHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getIcon();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getIcon();
+ } else {
+ return ((Label)figure).getIcon();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelIconHelper(IFigure figure, Image icon) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setIcon(icon);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setIcon(icon);
+ } else {
+ ((Label)figure).setIcon(icon);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabel(WrappingLabel figure) {
+ unregisterVisuals();
+ setFigure(figure);
+ defaultText = getLabelTextHelper(figure);
+ registerVisuals();
+ refreshVisuals();
+ }
+
+ /**
+ * @generated
+ */
+ protected List getModelChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject getParserElement() {
+ return resolveSemanticElement();
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIcon() {
+ EObject parserElement = getParserElement();
+ if(parserElement == null) {
+ return null;
+ }
+
+ List<View> views = DiagramEditPartsUtil.findViews(parserElement, getViewer());
+ for(View view : views) {
+ if(NameLabelIconHelper.showLabelIcon(view)) {
+ return UMLElementTypes.getImage(parserElement.eClass());
+ }
+ }
+ return null;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelText() {
+ String text = null;
+ EObject parserElement = getParserElement();
+ if(parserElement != null && getParser() != null) {
+ text = getParser().getPrintString(new EObjectAdapter(parserElement), getParserOptions().intValue());
+ }
+ if(text == null || text.length() == 0) {
+ text = defaultText;
+ }
+ return text;
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabelText(String text) {
+ setLabelTextHelper(getFigure(), text);
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public String getEditText() {
+ if(getParserElement() == null || getParser() == null) {
+ return ""; //$NON-NLS-1$
+ }
+ return getParser().getEditString(new EObjectAdapter(getParserElement()), getParserOptions().intValue());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean isEditable() {
+ return getParser() != null;
+ }
+
+ /**
+ * @generated
+ */
+ public ICellEditorValidator getEditTextValidator() {
+ return new ICellEditorValidator() {
+
+ public String isValid(final Object value) {
+ if(value instanceof String) {
+ final EObject element = getParserElement();
+ final IParser parser = getParser();
+ try {
+ IParserEditStatus valid = (IParserEditStatus)getEditingDomain().runExclusive(new RunnableWithResult.Impl() {
+
+ public void run() {
+ setResult(parser.isValidEditString(new EObjectAdapter(element), (String)value));
+ }
+ });
+ return valid.getCode() == ParserEditStatus.EDITABLE ? null : valid.getMessage();
+ } catch (InterruptedException ie) {
+ ie.printStackTrace();
+ }
+ }
+
+ // shouldn't get here
+ return null;
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ public IContentAssistProcessor getCompletionProcessor() {
+ if(getParserElement() == null || getParser() == null) {
+ return null;
+ }
+ return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
+ }
+
+ /**
+ * @generated
+ */
+ public ParserOptions getParserOptions() {
+ return ParserOptions.NONE;
+ }
+
+ /**
+ * @generated
+ */
+ public IParser getParser() {
+ if(parser == null) {
+ parser = UMLParserProvider.getParser(UMLElementTypes.DurationConstraint_3116, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.diagram.composite.edit.parts.DurationConstraintNameEditPartCN.VISUAL_ID));
+ }
+ return parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected DirectEditManager getManager() {
+ if(manager == null) {
+ setManager(new MultilineLabelDirectEditManager(this, MultilineLabelDirectEditManager.getTextCellEditorClass(this), UMLEditPartFactory.getTextCellEditorLocator(this)));
+ }
+ return manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setManager(DirectEditManager manager) {
+ this.manager = manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit() {
+ getManager().show();
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit(Point eventLocation) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(eventLocation.getSWTPoint());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void performDirectEdit(char initialCharacter) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(initialCharacter);
+ } else {
+ performDirectEdit();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEditRequest(Request request) {
+
+ final Request theRequest = request;
+
+ if(IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
+ directEditionMode = getDirectEditionType();
+ }
+ switch(directEditionMode) {
+ case IDirectEdition.NO_DIRECT_EDITION:
+ // no direct edition mode => does nothing
+ return;
+ case IDirectEdition.EXTENDED_DIRECT_EDITOR:
+ updateExtendedEditorConfiguration();
+ if(configuration == null || configuration.getLanguage() == null) {
+ performDefaultDirectEditorEdit(theRequest);
+ } else {
+ configuration.preEditAction(resolveSemanticElement());
+ Dialog dialog = null;
+ if(configuration instanceof IPopupEditorConfiguration) {
+ IPopupEditorHelper helper = ((IPopupEditorConfiguration)configuration).createPopupEditorHelper(this);
+ helper.showEditor();
+ return;
+ } else if(configuration instanceof IAdvancedEditorConfiguration) {
+ dialog = ((IAdvancedEditorConfiguration)configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
+ } else if(configuration instanceof IDirectEditorConfiguration) {
+ dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), ((IDirectEditorConfiguration)configuration).getTextToEdit(resolveSemanticElement()), (IDirectEditorConfiguration)configuration);
+ } else {
+ return;
+ }
+ final Dialog finalDialog = dialog;
+
+ if(Window.OK == dialog.open()) {
+ TransactionalEditingDomain domain = getEditingDomain();
+ RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
+
+ @Override
+ protected void doExecute() {
+ configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog)finalDialog).getValue());
+
+ }
+ };
+ domain.getCommandStack().execute(command);
+ }
+ }
+ break;
+ case IDirectEdition.DEFAULT_DIRECT_EDITOR:
+
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ break;
+ default:
+ break;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshLabel();
+ refreshFont();
+ refreshFontColor();
+ refreshUnderline();
+ refreshStrikeThrough();
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshLabel() {
+ EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
+ if(maskLabelPolicy == null) {
+ setLabelTextHelper(getFigure(), getLabelText());
+ setLabelIconHelper(getFigure(), getLabelIcon());
+ }
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshUnderline() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextUnderline(style.isUnderline());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshStrikeThrough() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextStrikeThrough(style.isStrikeThrough());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshFont() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null) {
+ FontData fontData = new FontData(style.getFontName(), style.getFontHeight(), (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
+ setFont(fontData);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setFontColor(Color color) {
+ getFigure().setForegroundColor(color);
+ }
+
+ /**
+ * @generated
+ */
+ protected void addSemanticListeners() {
+ if(getParser() instanceof ISemanticParser) {
+ EObject element = resolveSemanticElement();
+ parserElements = ((ISemanticParser)getParser()).getSemanticElementsBeingParsed(element);
+ for(int i = 0; i < parserElements.size(); i++) {
+ addListenerFilter("SemanticModel" + i, this, (EObject)parserElements.get(i)); //$NON-NLS-1$
+ }
+ } else {
+ super.addSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeSemanticListeners() {
+ if(parserElements != null) {
+ for(int i = 0; i < parserElements.size(); i++) {
+ removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
+ }
+ } else {
+ super.removeSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected AccessibleEditPart getAccessibleEditPart() {
+ if(accessibleEP == null) {
+ accessibleEP = new AccessibleGraphicalEditPart() {
+
+ public void getName(AccessibleEvent e) {
+ e.result = getLabelTextHelper(getFigure());
+ }
+ };
+ }
+ return accessibleEP;
+ }
+
+ /**
+ * @generated
+ */
+ private View getFontStyleOwnerView() {
+ return (View)getModel();
+ }
+
+ /**
+ * Returns the kind of associated editor for direct edition.
+ *
+ * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition
+ * @generated
+ */
+ public int getDirectEditionType() {
+ if(checkExtendedEditor()) {
+ initExtendedEditorConfiguration();
+ return IDirectEdition.EXTENDED_DIRECT_EDITOR;
+ }
+ if(checkDefaultEdition()) {
+ return IDirectEdition.DEFAULT_DIRECT_EDITOR;
+ }
+
+ // not a named element. no specific editor => do nothing
+ return IDirectEdition.NO_DIRECT_EDITION;
+ }
+
+ /**
+ * Checks if an extended editor is present.
+ *
+ * @return <code>true</code> if an extended editor is present.
+ * @generated
+ */
+ protected boolean checkExtendedEditor() {
+ if(resolveSemanticElement() != null) {
+ return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ return false;
+ }
+
+ /**
+ * Checks if a default direct edition is available
+ *
+ * @return <code>true</code> if a default direct edition is available
+ * @generated
+ */
+ protected boolean checkDefaultEdition() {
+ return (getParser() != null);
+ }
+
+ /**
+ * Initializes the extended editor configuration
+ *
+ * @generated
+ */
+ protected void initExtendedEditorConfiguration() {
+ if(configuration == null) {
+ final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("")) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else {
+ configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ }
+ }
+
+ /**
+ * Updates the preference configuration
+ *
+ * @generated
+ */
+ protected void updateExtendedEditorConfiguration() {
+ String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("") && languagePreferred != configuration.getLanguage()) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else if(IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
+ configuration = null;
+ }
+ }
+
+ /**
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
+ protected void performDefaultDirectEditorEdit(final Request theRequest) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void addNotationalListeners() {
+ super.addNotationalListeners();
+ addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeNotationalListeners() {
+ super.removeNotationalListeners();
+ removeListenerFilter("PrimaryView"); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void handleNotificationEvent(Notification event) {
+ refreshLabel();
+ Object feature = event.getFeature();
+ if(NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
+ Integer c = (Integer)event.getNewValue();
+ setFontColor(DiagramColorRegistry.getInstance().getColor(c));
+ } else if(NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
+ refreshUnderline();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
+ refreshStrikeThrough();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
+ refreshFont();
+ } else {
+ if(getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
+ refreshLabel();
+ }
+ if(getParser() instanceof ISemanticParser) {
+ ISemanticParser modelParser = (ISemanticParser)getParser();
+ if(modelParser.areSemanticElementsAffected(null, event)) {
+ removeSemanticListeners();
+ if(resolveSemanticElement() != null) {
+ addSemanticListeners();
+ }
+ refreshLabel();
+ }
+ }
+ }
+
+ if(event.getNewValue() instanceof EAnnotation && VisualInformationPapyrusConstant.DISPLAY_NAMELABELICON.equals(((EAnnotation)event.getNewValue()).getSource())) {
+ refreshLabel();
+ }
+
+ super.handleNotificationEvent(event);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createFigure() {
+ // Parent should assign one using setLabel() method
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ private static final String ADD_PARENT_MODEL = "AddParentModel";
+
+ /**
+ * @generated
+ */
+ public void activate() {
+ super.activate();
+ addOwnerElementListeners();
+ }
+
+ /**
+ * @generated
+ */
+ protected void addOwnerElementListeners() {
+ addListenerFilter(ADD_PARENT_MODEL, this, ((View)getParent().getModel())); //$NON-NLS-1$
+
+ }
+
+ /**
+ * @generated
+ */
+ public void deactivate() {
+ removeOwnerElementListeners();
+ super.deactivate();
+
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeOwnerElementListeners() {
+ removeListenerFilter(ADD_PARENT_MODEL);
+
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/DurationConstraintSpecificationEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/DurationConstraintSpecificationEditPart.java
new file mode 100644
index 00000000000..af94b93dcf5
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/DurationConstraintSpecificationEditPart.java
@@ -0,0 +1,772 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.emf.transaction.RunnableWithResult;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.AccessibleEditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.requests.DirectEditRequest;
+import org.eclipse.gef.tools.DirectEditManager;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.CompartmentEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
+import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
+import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
+import org.eclipse.gmf.runtime.notation.FontStyle;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
+import org.eclipse.jface.viewers.ICellEditorValidator;
+import org.eclipse.jface.window.Window;
+import org.eclipse.papyrus.diagram.common.directedit.MultilineLabelDirectEditManager;
+import org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition;
+import org.eclipse.papyrus.diagram.common.editpolicies.IMaskManagedLabelEditPolicy;
+import org.eclipse.papyrus.diagram.common.figure.node.ConstraintFigure;
+import org.eclipse.papyrus.diagram.common.figure.node.ILabelFigure;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLTextSelectionEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.diagram.composite.providers.UMLParserProvider;
+import org.eclipse.papyrus.extensionpoints.editors.Activator;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
+import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
+import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.AccessibleEvent;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.FontData;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.ui.PlatformUI;
+
+/**
+ * @generated
+ */
+public class DurationConstraintSpecificationEditPart extends CompartmentEditPart implements ITextAwareEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 6035;
+
+ /**
+ * @generated
+ */
+ private DirectEditManager manager;
+
+ /**
+ * @generated
+ */
+ private IParser parser;
+
+ /**
+ * @generated
+ */
+ private List<?> parserElements;
+
+ /**
+ * @generated
+ */
+ private String defaultText;
+
+ /**
+ * direct edition mode (default, undefined, registered editor, etc.)
+ *
+ * @generated
+ */
+ protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
+
+ /**
+ * configuration from a registered edit dialog
+ *
+ * @generated
+ */
+ protected IDirectEditorConfiguration configuration;
+
+ /**
+ * @generated
+ */
+ public DurationConstraintSpecificationEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
+ installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new CompositeStructureDiagramEditPart.NodeLabelDragPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelTextHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getText();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getText();
+ } else {
+ return ((Label)figure).getText();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelTextHelper(IFigure figure, String text) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setText(text);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setText(text);
+ } else {
+ ((Label)figure).setText(text);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIconHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getIcon();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getIcon();
+ } else {
+ return ((Label)figure).getIcon();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelIconHelper(IFigure figure, Image icon) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setIcon(icon);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setIcon(icon);
+ } else {
+ ((Label)figure).setIcon(icon);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabel(ConstraintFigure figure) {
+ unregisterVisuals();
+ setFigure(figure);
+ defaultText = getLabelTextHelper(figure);
+ registerVisuals();
+ refreshVisuals();
+ }
+
+ /**
+ * @generated
+ */
+ protected List getModelChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject getParserElement() {
+ return resolveSemanticElement();
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIcon() {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelText() {
+ String text = null;
+ EObject parserElement = getParserElement();
+ if(parserElement != null && getParser() != null) {
+ text = getParser().getPrintString(new EObjectAdapter(parserElement), getParserOptions().intValue());
+ }
+ if(text == null || text.length() == 0) {
+ text = defaultText;
+ }
+ return text;
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabelText(String text) {
+ setLabelTextHelper(getFigure(), text);
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public String getEditText() {
+ if(getParserElement() == null || getParser() == null) {
+ return ""; //$NON-NLS-1$
+ }
+ return getParser().getEditString(new EObjectAdapter(getParserElement()), getParserOptions().intValue());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean isEditable() {
+ return getParser() != null;
+ }
+
+ /**
+ * @generated
+ */
+ public ICellEditorValidator getEditTextValidator() {
+ return new ICellEditorValidator() {
+
+ public String isValid(final Object value) {
+ if(value instanceof String) {
+ final EObject element = getParserElement();
+ final IParser parser = getParser();
+ try {
+ IParserEditStatus valid = (IParserEditStatus)getEditingDomain().runExclusive(new RunnableWithResult.Impl() {
+
+ public void run() {
+ setResult(parser.isValidEditString(new EObjectAdapter(element), (String)value));
+ }
+ });
+ return valid.getCode() == ParserEditStatus.EDITABLE ? null : valid.getMessage();
+ } catch (InterruptedException ie) {
+ ie.printStackTrace();
+ }
+ }
+
+ // shouldn't get here
+ return null;
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ public IContentAssistProcessor getCompletionProcessor() {
+ if(getParserElement() == null || getParser() == null) {
+ return null;
+ }
+ return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
+ }
+
+ /**
+ * @generated
+ */
+ public ParserOptions getParserOptions() {
+ return ParserOptions.NONE;
+ }
+
+ /**
+ * @generated
+ */
+ public IParser getParser() {
+ if(parser == null) {
+ parser = UMLParserProvider.getParser(UMLElementTypes.DurationConstraint_2110, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.diagram.composite.edit.parts.DurationConstraintSpecificationEditPart.VISUAL_ID));
+ }
+ return parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected DirectEditManager getManager() {
+ if(manager == null) {
+ setManager(new MultilineLabelDirectEditManager(this, MultilineLabelDirectEditManager.getTextCellEditorClass(this), UMLEditPartFactory.getTextCellEditorLocator(this)));
+ }
+ return manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setManager(DirectEditManager manager) {
+ this.manager = manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit() {
+ getManager().show();
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit(Point eventLocation) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(eventLocation.getSWTPoint());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void performDirectEdit(char initialCharacter) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(initialCharacter);
+ } else {
+ performDirectEdit();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEditRequest(Request request) {
+
+ final Request theRequest = request;
+
+ if(IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
+ directEditionMode = getDirectEditionType();
+ }
+ switch(directEditionMode) {
+ case IDirectEdition.NO_DIRECT_EDITION:
+ // no direct edition mode => does nothing
+ return;
+ case IDirectEdition.EXTENDED_DIRECT_EDITOR:
+ updateExtendedEditorConfiguration();
+ if(configuration == null || configuration.getLanguage() == null) {
+ performDefaultDirectEditorEdit(theRequest);
+ } else {
+ configuration.preEditAction(resolveSemanticElement());
+ Dialog dialog = null;
+ if(configuration instanceof IPopupEditorConfiguration) {
+ IPopupEditorHelper helper = ((IPopupEditorConfiguration)configuration).createPopupEditorHelper(this);
+ helper.showEditor();
+ return;
+ } else if(configuration instanceof IAdvancedEditorConfiguration) {
+ dialog = ((IAdvancedEditorConfiguration)configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
+ } else if(configuration instanceof IDirectEditorConfiguration) {
+ dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), ((IDirectEditorConfiguration)configuration).getTextToEdit(resolveSemanticElement()), (IDirectEditorConfiguration)configuration);
+ } else {
+ return;
+ }
+ final Dialog finalDialog = dialog;
+
+ if(Window.OK == dialog.open()) {
+ TransactionalEditingDomain domain = getEditingDomain();
+ RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
+
+ @Override
+ protected void doExecute() {
+ configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog)finalDialog).getValue());
+
+ }
+ };
+ domain.getCommandStack().execute(command);
+ }
+ }
+ break;
+ case IDirectEdition.DEFAULT_DIRECT_EDITOR:
+
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ break;
+ default:
+ break;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshLabel();
+ refreshFont();
+ refreshFontColor();
+ refreshUnderline();
+ refreshStrikeThrough();
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshLabel() {
+ EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
+ if(maskLabelPolicy == null) {
+ setLabelTextHelper(getFigure(), getLabelText());
+ setLabelIconHelper(getFigure(), getLabelIcon());
+ }
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshUnderline() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextUnderline(style.isUnderline());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshStrikeThrough() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextStrikeThrough(style.isStrikeThrough());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshFont() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null) {
+ FontData fontData = new FontData(style.getFontName(), style.getFontHeight(), (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
+ setFont(fontData);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setFontColor(Color color) {
+ getFigure().setForegroundColor(color);
+ }
+
+ /**
+ * @generated
+ */
+ protected void addSemanticListeners() {
+ if(getParser() instanceof ISemanticParser) {
+ EObject element = resolveSemanticElement();
+ parserElements = ((ISemanticParser)getParser()).getSemanticElementsBeingParsed(element);
+ for(int i = 0; i < parserElements.size(); i++) {
+ addListenerFilter("SemanticModel" + i, this, (EObject)parserElements.get(i)); //$NON-NLS-1$
+ }
+ } else {
+ super.addSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeSemanticListeners() {
+ if(parserElements != null) {
+ for(int i = 0; i < parserElements.size(); i++) {
+ removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
+ }
+ } else {
+ super.removeSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected AccessibleEditPart getAccessibleEditPart() {
+ if(accessibleEP == null) {
+ accessibleEP = new AccessibleGraphicalEditPart() {
+
+ public void getName(AccessibleEvent e) {
+ e.result = getLabelTextHelper(getFigure());
+ }
+ };
+ }
+ return accessibleEP;
+ }
+
+ /**
+ * @generated
+ */
+ private View getFontStyleOwnerView() {
+ return getPrimaryView();
+ }
+
+ /**
+ * Returns the kind of associated editor for direct edition.
+ *
+ * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition
+ * @generated
+ */
+ public int getDirectEditionType() {
+ if(checkExtendedEditor()) {
+ initExtendedEditorConfiguration();
+ return IDirectEdition.EXTENDED_DIRECT_EDITOR;
+ }
+ if(checkDefaultEdition()) {
+ return IDirectEdition.DEFAULT_DIRECT_EDITOR;
+ }
+
+ // not a named element. no specific editor => do nothing
+ return IDirectEdition.NO_DIRECT_EDITION;
+ }
+
+ /**
+ * Checks if an extended editor is present.
+ *
+ * @return <code>true</code> if an extended editor is present.
+ * @generated
+ */
+ protected boolean checkExtendedEditor() {
+ if(resolveSemanticElement() != null) {
+ return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ return false;
+ }
+
+ /**
+ * Checks if a default direct edition is available
+ *
+ * @return <code>true</code> if a default direct edition is available
+ * @generated
+ */
+ protected boolean checkDefaultEdition() {
+ return (getParser() != null);
+ }
+
+ /**
+ * Initializes the extended editor configuration
+ *
+ * @generated
+ */
+ protected void initExtendedEditorConfiguration() {
+ if(configuration == null) {
+ final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("")) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else {
+ configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ }
+ }
+
+ /**
+ * Updates the preference configuration
+ *
+ * @generated
+ */
+ protected void updateExtendedEditorConfiguration() {
+ String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("") && languagePreferred != configuration.getLanguage()) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else if(IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
+ configuration = null;
+ }
+ }
+
+ /**
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
+ protected void performDefaultDirectEditorEdit(final Request theRequest) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void addNotationalListeners() {
+ super.addNotationalListeners();
+ addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeNotationalListeners() {
+ super.removeNotationalListeners();
+ removeListenerFilter("PrimaryView"); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void handleNotificationEvent(Notification event) {
+ refreshLabel();
+ Object feature = event.getFeature();
+ if(NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
+ Integer c = (Integer)event.getNewValue();
+ setFontColor(DiagramColorRegistry.getInstance().getColor(c));
+ } else if(NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
+ refreshUnderline();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
+ refreshStrikeThrough();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
+ refreshFont();
+ } else {
+ if(getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
+ refreshLabel();
+ }
+ if(getParser() instanceof ISemanticParser) {
+ ISemanticParser modelParser = (ISemanticParser)getParser();
+ if(modelParser.areSemanticElementsAffected(null, event)) {
+ removeSemanticListeners();
+ if(resolveSemanticElement() != null) {
+ addSemanticListeners();
+ }
+ refreshLabel();
+ }
+ }
+ }
+
+ super.handleNotificationEvent(event);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createFigure() {
+ // Parent should assign one using setLabel() method
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ private static final String ADD_PARENT_MODEL = "AddParentModel";
+
+ /**
+ * @generated
+ */
+ public void activate() {
+ super.activate();
+ addOwnerElementListeners();
+ }
+
+ /**
+ * @generated
+ */
+ protected void addOwnerElementListeners() {
+ addListenerFilter(ADD_PARENT_MODEL, this, ((View)getParent().getModel())); //$NON-NLS-1$
+
+ }
+
+ /**
+ * @generated
+ */
+ public void deactivate() {
+ removeOwnerElementListeners();
+ super.deactivate();
+
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeOwnerElementListeners() {
+ removeListenerFilter(ADD_PARENT_MODEL);
+
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/DurationConstraintSpecificationEditPartCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/DurationConstraintSpecificationEditPartCN.java
new file mode 100644
index 00000000000..e9cd4c8ea9f
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/DurationConstraintSpecificationEditPartCN.java
@@ -0,0 +1,772 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.emf.transaction.RunnableWithResult;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.AccessibleEditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.requests.DirectEditRequest;
+import org.eclipse.gef.tools.DirectEditManager;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.CompartmentEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
+import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
+import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
+import org.eclipse.gmf.runtime.notation.FontStyle;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
+import org.eclipse.jface.viewers.ICellEditorValidator;
+import org.eclipse.jface.window.Window;
+import org.eclipse.papyrus.diagram.common.directedit.MultilineLabelDirectEditManager;
+import org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition;
+import org.eclipse.papyrus.diagram.common.editpolicies.IMaskManagedLabelEditPolicy;
+import org.eclipse.papyrus.diagram.common.figure.node.ConstraintFigure;
+import org.eclipse.papyrus.diagram.common.figure.node.ILabelFigure;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLTextSelectionEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.diagram.composite.providers.UMLParserProvider;
+import org.eclipse.papyrus.extensionpoints.editors.Activator;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
+import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
+import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.AccessibleEvent;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.FontData;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.ui.PlatformUI;
+
+/**
+ * @generated
+ */
+public class DurationConstraintSpecificationEditPartCN extends CompartmentEditPart implements ITextAwareEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 6041;
+
+ /**
+ * @generated
+ */
+ private DirectEditManager manager;
+
+ /**
+ * @generated
+ */
+ private IParser parser;
+
+ /**
+ * @generated
+ */
+ private List<?> parserElements;
+
+ /**
+ * @generated
+ */
+ private String defaultText;
+
+ /**
+ * direct edition mode (default, undefined, registered editor, etc.)
+ *
+ * @generated
+ */
+ protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
+
+ /**
+ * configuration from a registered edit dialog
+ *
+ * @generated
+ */
+ protected IDirectEditorConfiguration configuration;
+
+ /**
+ * @generated
+ */
+ public DurationConstraintSpecificationEditPartCN(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
+ installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new CompositeStructureDiagramEditPart.NodeLabelDragPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelTextHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getText();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getText();
+ } else {
+ return ((Label)figure).getText();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelTextHelper(IFigure figure, String text) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setText(text);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setText(text);
+ } else {
+ ((Label)figure).setText(text);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIconHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getIcon();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getIcon();
+ } else {
+ return ((Label)figure).getIcon();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelIconHelper(IFigure figure, Image icon) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setIcon(icon);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setIcon(icon);
+ } else {
+ ((Label)figure).setIcon(icon);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabel(ConstraintFigure figure) {
+ unregisterVisuals();
+ setFigure(figure);
+ defaultText = getLabelTextHelper(figure);
+ registerVisuals();
+ refreshVisuals();
+ }
+
+ /**
+ * @generated
+ */
+ protected List getModelChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject getParserElement() {
+ return resolveSemanticElement();
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIcon() {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelText() {
+ String text = null;
+ EObject parserElement = getParserElement();
+ if(parserElement != null && getParser() != null) {
+ text = getParser().getPrintString(new EObjectAdapter(parserElement), getParserOptions().intValue());
+ }
+ if(text == null || text.length() == 0) {
+ text = defaultText;
+ }
+ return text;
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabelText(String text) {
+ setLabelTextHelper(getFigure(), text);
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public String getEditText() {
+ if(getParserElement() == null || getParser() == null) {
+ return ""; //$NON-NLS-1$
+ }
+ return getParser().getEditString(new EObjectAdapter(getParserElement()), getParserOptions().intValue());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean isEditable() {
+ return getParser() != null;
+ }
+
+ /**
+ * @generated
+ */
+ public ICellEditorValidator getEditTextValidator() {
+ return new ICellEditorValidator() {
+
+ public String isValid(final Object value) {
+ if(value instanceof String) {
+ final EObject element = getParserElement();
+ final IParser parser = getParser();
+ try {
+ IParserEditStatus valid = (IParserEditStatus)getEditingDomain().runExclusive(new RunnableWithResult.Impl() {
+
+ public void run() {
+ setResult(parser.isValidEditString(new EObjectAdapter(element), (String)value));
+ }
+ });
+ return valid.getCode() == ParserEditStatus.EDITABLE ? null : valid.getMessage();
+ } catch (InterruptedException ie) {
+ ie.printStackTrace();
+ }
+ }
+
+ // shouldn't get here
+ return null;
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ public IContentAssistProcessor getCompletionProcessor() {
+ if(getParserElement() == null || getParser() == null) {
+ return null;
+ }
+ return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
+ }
+
+ /**
+ * @generated
+ */
+ public ParserOptions getParserOptions() {
+ return ParserOptions.NONE;
+ }
+
+ /**
+ * @generated
+ */
+ public IParser getParser() {
+ if(parser == null) {
+ parser = UMLParserProvider.getParser(UMLElementTypes.DurationConstraint_3116, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.diagram.composite.edit.parts.DurationConstraintSpecificationEditPartCN.VISUAL_ID));
+ }
+ return parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected DirectEditManager getManager() {
+ if(manager == null) {
+ setManager(new MultilineLabelDirectEditManager(this, MultilineLabelDirectEditManager.getTextCellEditorClass(this), UMLEditPartFactory.getTextCellEditorLocator(this)));
+ }
+ return manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setManager(DirectEditManager manager) {
+ this.manager = manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit() {
+ getManager().show();
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit(Point eventLocation) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(eventLocation.getSWTPoint());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void performDirectEdit(char initialCharacter) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(initialCharacter);
+ } else {
+ performDirectEdit();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEditRequest(Request request) {
+
+ final Request theRequest = request;
+
+ if(IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
+ directEditionMode = getDirectEditionType();
+ }
+ switch(directEditionMode) {
+ case IDirectEdition.NO_DIRECT_EDITION:
+ // no direct edition mode => does nothing
+ return;
+ case IDirectEdition.EXTENDED_DIRECT_EDITOR:
+ updateExtendedEditorConfiguration();
+ if(configuration == null || configuration.getLanguage() == null) {
+ performDefaultDirectEditorEdit(theRequest);
+ } else {
+ configuration.preEditAction(resolveSemanticElement());
+ Dialog dialog = null;
+ if(configuration instanceof IPopupEditorConfiguration) {
+ IPopupEditorHelper helper = ((IPopupEditorConfiguration)configuration).createPopupEditorHelper(this);
+ helper.showEditor();
+ return;
+ } else if(configuration instanceof IAdvancedEditorConfiguration) {
+ dialog = ((IAdvancedEditorConfiguration)configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
+ } else if(configuration instanceof IDirectEditorConfiguration) {
+ dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), ((IDirectEditorConfiguration)configuration).getTextToEdit(resolveSemanticElement()), (IDirectEditorConfiguration)configuration);
+ } else {
+ return;
+ }
+ final Dialog finalDialog = dialog;
+
+ if(Window.OK == dialog.open()) {
+ TransactionalEditingDomain domain = getEditingDomain();
+ RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
+
+ @Override
+ protected void doExecute() {
+ configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog)finalDialog).getValue());
+
+ }
+ };
+ domain.getCommandStack().execute(command);
+ }
+ }
+ break;
+ case IDirectEdition.DEFAULT_DIRECT_EDITOR:
+
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ break;
+ default:
+ break;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshLabel();
+ refreshFont();
+ refreshFontColor();
+ refreshUnderline();
+ refreshStrikeThrough();
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshLabel() {
+ EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
+ if(maskLabelPolicy == null) {
+ setLabelTextHelper(getFigure(), getLabelText());
+ setLabelIconHelper(getFigure(), getLabelIcon());
+ }
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshUnderline() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextUnderline(style.isUnderline());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshStrikeThrough() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextStrikeThrough(style.isStrikeThrough());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshFont() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null) {
+ FontData fontData = new FontData(style.getFontName(), style.getFontHeight(), (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
+ setFont(fontData);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setFontColor(Color color) {
+ getFigure().setForegroundColor(color);
+ }
+
+ /**
+ * @generated
+ */
+ protected void addSemanticListeners() {
+ if(getParser() instanceof ISemanticParser) {
+ EObject element = resolveSemanticElement();
+ parserElements = ((ISemanticParser)getParser()).getSemanticElementsBeingParsed(element);
+ for(int i = 0; i < parserElements.size(); i++) {
+ addListenerFilter("SemanticModel" + i, this, (EObject)parserElements.get(i)); //$NON-NLS-1$
+ }
+ } else {
+ super.addSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeSemanticListeners() {
+ if(parserElements != null) {
+ for(int i = 0; i < parserElements.size(); i++) {
+ removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
+ }
+ } else {
+ super.removeSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected AccessibleEditPart getAccessibleEditPart() {
+ if(accessibleEP == null) {
+ accessibleEP = new AccessibleGraphicalEditPart() {
+
+ public void getName(AccessibleEvent e) {
+ e.result = getLabelTextHelper(getFigure());
+ }
+ };
+ }
+ return accessibleEP;
+ }
+
+ /**
+ * @generated
+ */
+ private View getFontStyleOwnerView() {
+ return getPrimaryView();
+ }
+
+ /**
+ * Returns the kind of associated editor for direct edition.
+ *
+ * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition
+ * @generated
+ */
+ public int getDirectEditionType() {
+ if(checkExtendedEditor()) {
+ initExtendedEditorConfiguration();
+ return IDirectEdition.EXTENDED_DIRECT_EDITOR;
+ }
+ if(checkDefaultEdition()) {
+ return IDirectEdition.DEFAULT_DIRECT_EDITOR;
+ }
+
+ // not a named element. no specific editor => do nothing
+ return IDirectEdition.NO_DIRECT_EDITION;
+ }
+
+ /**
+ * Checks if an extended editor is present.
+ *
+ * @return <code>true</code> if an extended editor is present.
+ * @generated
+ */
+ protected boolean checkExtendedEditor() {
+ if(resolveSemanticElement() != null) {
+ return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ return false;
+ }
+
+ /**
+ * Checks if a default direct edition is available
+ *
+ * @return <code>true</code> if a default direct edition is available
+ * @generated
+ */
+ protected boolean checkDefaultEdition() {
+ return (getParser() != null);
+ }
+
+ /**
+ * Initializes the extended editor configuration
+ *
+ * @generated
+ */
+ protected void initExtendedEditorConfiguration() {
+ if(configuration == null) {
+ final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("")) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else {
+ configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ }
+ }
+
+ /**
+ * Updates the preference configuration
+ *
+ * @generated
+ */
+ protected void updateExtendedEditorConfiguration() {
+ String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("") && languagePreferred != configuration.getLanguage()) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else if(IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
+ configuration = null;
+ }
+ }
+
+ /**
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
+ protected void performDefaultDirectEditorEdit(final Request theRequest) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void addNotationalListeners() {
+ super.addNotationalListeners();
+ addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeNotationalListeners() {
+ super.removeNotationalListeners();
+ removeListenerFilter("PrimaryView"); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void handleNotificationEvent(Notification event) {
+ refreshLabel();
+ Object feature = event.getFeature();
+ if(NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
+ Integer c = (Integer)event.getNewValue();
+ setFontColor(DiagramColorRegistry.getInstance().getColor(c));
+ } else if(NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
+ refreshUnderline();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
+ refreshStrikeThrough();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
+ refreshFont();
+ } else {
+ if(getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
+ refreshLabel();
+ }
+ if(getParser() instanceof ISemanticParser) {
+ ISemanticParser modelParser = (ISemanticParser)getParser();
+ if(modelParser.areSemanticElementsAffected(null, event)) {
+ removeSemanticListeners();
+ if(resolveSemanticElement() != null) {
+ addSemanticListeners();
+ }
+ refreshLabel();
+ }
+ }
+ }
+
+ super.handleNotificationEvent(event);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createFigure() {
+ // Parent should assign one using setLabel() method
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ private static final String ADD_PARENT_MODEL = "AddParentModel";
+
+ /**
+ * @generated
+ */
+ public void activate() {
+ super.activate();
+ addOwnerElementListeners();
+ }
+
+ /**
+ * @generated
+ */
+ protected void addOwnerElementListeners() {
+ addListenerFilter(ADD_PARENT_MODEL, this, ((View)getParent().getModel())); //$NON-NLS-1$
+
+ }
+
+ /**
+ * @generated
+ */
+ public void deactivate() {
+ removeOwnerElementListeners();
+ super.deactivate();
+
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeOwnerElementListeners() {
+ removeListenerFilter(ADD_PARENT_MODEL);
+
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/DurationEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/DurationEditPart.java
new file mode 100644
index 00000000000..4107374afb8
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/DurationEditPart.java
@@ -0,0 +1,5167 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.ArrayList;
+import java.util.LinkedList;
+import java.util.List;
+
+import org.eclipse.draw2d.ColorConstants;
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.RectangleFigure;
+import org.eclipse.draw2d.Shape;
+import org.eclipse.draw2d.StackLayout;
+import org.eclipse.emf.ecore.EStructuralFeature;
+import org.eclipse.gef.EditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.editpolicies.LayoutEditPolicy;
+import org.eclipse.gef.editpolicies.NonResizableEditPolicy;
+import org.eclipse.gef.requests.CreateRequest;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ShapeNodeEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.FigureUtilities;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.gef.ui.figures.DefaultSizeNodeFigure;
+import org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.jface.preference.PreferenceConverter;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.HyperLinkPopupBarEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.QualifiedNameDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.helper.PreferenceInitializerForElementHelper;
+import org.eclipse.papyrus.diagram.composite.edit.policies.DurationItemSemanticEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorPlugin;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter;
+import org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.Font;
+import org.eclipse.swt.widgets.Display;
+
+/**
+ * @generated
+ */
+public class DurationEditPart extends
+
+ShapeNodeEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 2104;
+
+ /**
+ * @generated
+ */
+ protected IFigure contentPane;
+
+ /**
+ * @generated
+ */
+ protected IFigure primaryShape;
+
+ /**
+ * @generated
+ */
+ public DurationEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new DurationItemSemanticEditPolicy());
+ installEditPolicy(EditPolicy.LAYOUT_ROLE, createLayoutEditPolicy());
+ installEditPolicy(QualifiedNameDisplayEditPolicy.QUALIFIED_NAME_POLICY, new QualifiedNameDisplayEditPolicy());
+ installEditPolicy(AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeNodeLabelDisplayEditPolicy());
+ installEditPolicy(EditPolicyRoles.POPUPBAR_ROLE, new HyperLinkPopupBarEditPolicy());
+ // XXX need an SCR to runtime to have another abstract superclass that would let children add reasonable editpolicies
+ // removeEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CONNECTION_HANDLES_ROLE);
+ }
+
+ /**
+ * @generated
+ */
+ protected LayoutEditPolicy createLayoutEditPolicy() {
+ org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy lep = new org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy() {
+
+ protected EditPolicy createChildEditPolicy(EditPart child) {
+ EditPolicy result = child.getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(result == null) {
+ result = new NonResizableEditPolicy();
+ }
+ return result;
+ }
+
+ protected Command getMoveChildrenCommand(Request request) {
+ return null;
+ }
+
+ protected Command getCreateCommand(CreateRequest request) {
+ return null;
+ }
+ };
+ return lep;
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createNodeShape() {
+ return primaryShape = new NamedElementDescriptor();
+ }
+
+ /**
+ * @generated
+ */
+ public NamedElementDescriptor getPrimaryShape() {
+ return (NamedElementDescriptor)primaryShape;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean addFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof DurationNameEditPart) {
+ ((DurationNameEditPart)childEditPart).setLabel(getPrimaryShape().getNamedElementNameLabel());
+ return true;
+ }
+
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean removeFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof DurationNameEditPart) {
+ return true;
+ }
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected void addChildVisual(EditPart childEditPart, int index) {
+ if(addFixedChild(childEditPart)) {
+ return;
+ }
+ super.addChildVisual(childEditPart, -1);
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeChildVisual(EditPart childEditPart) {
+ if(removeFixedChild(childEditPart)) {
+ return;
+ }
+ super.removeChildVisual(childEditPart);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure getContentPaneFor(IGraphicalEditPart editPart) {
+ return getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ protected NodeFigure createNodePlate() {
+ String prefElementId = "Duration";
+ IPreferenceStore store = UMLDiagramEditorPlugin.getInstance().getPreferenceStore();
+ String preferenceConstantWitdh = PreferenceInitializerForElementHelper.getpreferenceKey(getNotationView(), prefElementId, PreferenceConstantHelper.WIDTH);
+ String preferenceConstantHeight = PreferenceInitializerForElementHelper.getpreferenceKey(getNotationView(), prefElementId, PreferenceConstantHelper.HEIGHT);
+ DefaultSizeNodeFigure result = new DefaultSizeNodeFigure(store.getInt(preferenceConstantWitdh), store.getInt(preferenceConstantHeight));
+
+ return result;
+ }
+
+ /**
+ * Creates figure for this edit part.
+ *
+ * Body of this method does not depend on settings in generation model
+ * so you may safely remove <i>generated</i> tag and modify it.
+ *
+ * @generated
+ */
+ protected NodeFigure createNodeFigure() {
+ NodeFigure figure = createNodePlate();
+ figure.setLayoutManager(new StackLayout());
+ IFigure shape = createNodeShape();
+ figure.add(shape);
+ contentPane = setupContentPane(shape);
+ return figure;
+ }
+
+ /**
+ * Default implementation treats passed figure as content pane.
+ * Respects layout one may have set for generated figure.
+ *
+ * @param nodeShape
+ * instance of generated figure class
+ * @generated
+ */
+ protected IFigure setupContentPane(IFigure nodeShape) {
+ if(nodeShape.getLayoutManager() == null) {
+ ConstrainedToolbarLayout layout = new ConstrainedToolbarLayout();
+ layout.setSpacing(5);
+ nodeShape.setLayoutManager(layout);
+ }
+ return nodeShape; // use nodeShape itself as contentPane
+ }
+
+ /**
+ * @generated
+ */
+ public IFigure getContentPane() {
+ if(contentPane != null) {
+ return contentPane;
+ }
+ return super.getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ protected void setForegroundColor(Color color) {
+ if(primaryShape != null) {
+ primaryShape.setForegroundColor(color);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLineWidth(int width) {
+ if(primaryShape instanceof Shape) {
+ ((Shape)primaryShape).setLineWidth(width);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLineType(int style) {
+ if(primaryShape instanceof Shape) {
+ ((Shape)primaryShape).setLineStyle(style);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public EditPart getPrimaryChildEditPart() {
+ return getChildBySemanticHint(UMLVisualIDRegistry.getType(DurationNameEditPart.VISUAL_ID));
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnSource() {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(11);
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ types.add(UMLElementTypes.Substitution_4011);
+ types.add(UMLElementTypes.Realization_4006);
+ types.add(UMLElementTypes.Manifestation_4012);
+ types.add(UMLElementTypes.Abstraction_4007);
+ types.add(UMLElementTypes.Usage_4008);
+ types.add(UMLElementTypes.Deployment_4009);
+ types.add(UMLElementTypes.Dependency_4017);
+ types.add(UMLElementTypes.Dependency_4010);
+ types.add(UMLElementTypes.InformationFlow_4021);
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnSourceAndTarget(IGraphicalEditPart targetEditPart) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.DurationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.DurationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.DurationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.DurationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.DurationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.DurationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.DurationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.DurationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.DurationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.DurationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.DurationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMATypesForTarget(IElementType relationshipType) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(relationshipType == UMLElementTypes.ComponentRealization_4004) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InterfaceRealization_4005) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Substitution_4011) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Realization_4006) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Manifestation_4012) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Abstraction_4007) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Usage_4008) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Deployment_4009) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4017) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4010) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InformationFlow_4021) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnTarget() {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(15);
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ types.add(UMLElementTypes.Substitution_4011);
+ types.add(UMLElementTypes.Realization_4006);
+ types.add(UMLElementTypes.Manifestation_4012);
+ types.add(UMLElementTypes.Abstraction_4007);
+ types.add(UMLElementTypes.Usage_4008);
+ types.add(UMLElementTypes.Deployment_4009);
+ types.add(UMLElementTypes.Dependency_4017);
+ types.add(UMLElementTypes.Dependency_4010);
+ types.add(UMLElementTypes.TimeObservationEvent_4018);
+ types.add(UMLElementTypes.DurationObservationEvent_4019);
+ types.add(UMLElementTypes.InformationFlow_4021);
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMATypesForSource(IElementType relationshipType) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(relationshipType == UMLElementTypes.CommentAnnotatedElement_4002) {
+ types.add(UMLElementTypes.Comment_2109);
+ types.add(UMLElementTypes.Comment_3097);
+ } else if(relationshipType == UMLElementTypes.ConstraintConstrainedElement_4003) {
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.ComponentRealization_4004) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InterfaceRealization_4005) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Substitution_4011) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Realization_4006) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Manifestation_4012) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Abstraction_4007) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Usage_4008) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Deployment_4009) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4017) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4010) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.TimeObservationEvent_4018) {
+ types.add(UMLElementTypes.TimeObservation_2094);
+ } else if(relationshipType == UMLElementTypes.DurationObservationEvent_4019) {
+ types.add(UMLElementTypes.DurationObservation_2093);
+ } else if(relationshipType == UMLElementTypes.InformationFlow_4021) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public class NamedElementDescriptor extends RectangleFigure {
+
+ /**
+ * @generated
+ */
+ private WrappingLabel fNamedElementNameLabel;
+
+ /**
+ * @generated
+ */
+ public NamedElementDescriptor() {
+ this.setLineWidth(1);
+ this.setForegroundColor(ColorConstants.black);
+ createContents();
+ }
+
+ /**
+ * @generated
+ */
+ private void createContents() {
+
+ fNamedElementNameLabel = new WrappingLabel();
+ fNamedElementNameLabel.setText("");
+ fNamedElementNameLabel.setForegroundColor(ColorConstants.black);
+
+ fNamedElementNameLabel.setFont(FNAMEDELEMENTNAMELABEL_FONT);
+
+ this.add(fNamedElementNameLabel);
+
+ }
+
+ /**
+ * @generated
+ */
+ private boolean myUseLocalCoordinates = false;
+
+ /**
+ * @generated
+ */
+ protected boolean useLocalCoordinates() {
+ return myUseLocalCoordinates;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setUseLocalCoordinates(boolean useLocalCoordinates) {
+ myUseLocalCoordinates = useLocalCoordinates;
+ }
+
+ /**
+ * @generated
+ */
+ public WrappingLabel getNamedElementNameLabel() {
+ return fNamedElementNameLabel;
+ }
+
+ }
+
+ /**
+ * @generated
+ */
+ static final Font FNAMEDELEMENTNAMELABEL_FONT = new Font(Display.getCurrent(), "Arial", 10, SWT.BOLD);
+
+ /**
+ * @generated
+ */
+ @Override
+ public Object getPreferredValue(EStructuralFeature feature) {
+ IPreferenceStore preferenceStore = (IPreferenceStore)getDiagramPreferencesHint().getPreferenceStore();
+ Object result = null;
+
+ if(feature == NotationPackage.eINSTANCE.getLineStyle_LineColor() || feature == NotationPackage.eINSTANCE.getFontStyle_FontColor() || feature == NotationPackage.eINSTANCE.getFillStyle_FillColor()) {
+ String prefColor = null;
+ if(feature == NotationPackage.eINSTANCE.getLineStyle_LineColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("Duration", PreferenceConstantHelper.COLOR_LINE);
+ } else if(feature == NotationPackage.eINSTANCE.getFontStyle_FontColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("Duration", PreferenceConstantHelper.COLOR_FONT);
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_FillColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("Duration", PreferenceConstantHelper.COLOR_FILL);
+ }
+ result = FigureUtilities.RGBToInteger(PreferenceConverter.getColor((IPreferenceStore)preferenceStore, prefColor));
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_Transparency() || feature == NotationPackage.eINSTANCE.getFillStyle_Gradient()) {
+ String prefGradient = PreferenceConstantHelper.getElementConstant("Duration", PreferenceConstantHelper.COLOR_GRADIENT);
+ GradientPreferenceConverter gradientPreferenceConverter = new GradientPreferenceConverter(preferenceStore.getString(prefGradient));
+ if(feature == NotationPackage.eINSTANCE.getFillStyle_Transparency()) {
+ result = new Integer(gradientPreferenceConverter.getTransparency());
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_Gradient()) {
+ result = gradientPreferenceConverter.getGradientData();
+ }
+ }
+
+ if(result == null) {
+ result = getStructuralFeatureValue(feature);
+ }
+ return result;
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/DurationIntervalEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/DurationIntervalEditPart.java
new file mode 100644
index 00000000000..dc37290f356
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/DurationIntervalEditPart.java
@@ -0,0 +1,5167 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.ArrayList;
+import java.util.LinkedList;
+import java.util.List;
+
+import org.eclipse.draw2d.ColorConstants;
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.RectangleFigure;
+import org.eclipse.draw2d.Shape;
+import org.eclipse.draw2d.StackLayout;
+import org.eclipse.emf.ecore.EStructuralFeature;
+import org.eclipse.gef.EditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.editpolicies.LayoutEditPolicy;
+import org.eclipse.gef.editpolicies.NonResizableEditPolicy;
+import org.eclipse.gef.requests.CreateRequest;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ShapeNodeEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.FigureUtilities;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.gef.ui.figures.DefaultSizeNodeFigure;
+import org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.jface.preference.PreferenceConverter;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.HyperLinkPopupBarEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.QualifiedNameDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.helper.PreferenceInitializerForElementHelper;
+import org.eclipse.papyrus.diagram.composite.edit.policies.DurationIntervalItemSemanticEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorPlugin;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter;
+import org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.Font;
+import org.eclipse.swt.widgets.Display;
+
+/**
+ * @generated
+ */
+public class DurationIntervalEditPart extends
+
+ShapeNodeEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 2106;
+
+ /**
+ * @generated
+ */
+ protected IFigure contentPane;
+
+ /**
+ * @generated
+ */
+ protected IFigure primaryShape;
+
+ /**
+ * @generated
+ */
+ public DurationIntervalEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new DurationIntervalItemSemanticEditPolicy());
+ installEditPolicy(EditPolicy.LAYOUT_ROLE, createLayoutEditPolicy());
+ installEditPolicy(QualifiedNameDisplayEditPolicy.QUALIFIED_NAME_POLICY, new QualifiedNameDisplayEditPolicy());
+ installEditPolicy(AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeNodeLabelDisplayEditPolicy());
+ installEditPolicy(EditPolicyRoles.POPUPBAR_ROLE, new HyperLinkPopupBarEditPolicy());
+ // XXX need an SCR to runtime to have another abstract superclass that would let children add reasonable editpolicies
+ // removeEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CONNECTION_HANDLES_ROLE);
+ }
+
+ /**
+ * @generated
+ */
+ protected LayoutEditPolicy createLayoutEditPolicy() {
+ org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy lep = new org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy() {
+
+ protected EditPolicy createChildEditPolicy(EditPart child) {
+ EditPolicy result = child.getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(result == null) {
+ result = new NonResizableEditPolicy();
+ }
+ return result;
+ }
+
+ protected Command getMoveChildrenCommand(Request request) {
+ return null;
+ }
+
+ protected Command getCreateCommand(CreateRequest request) {
+ return null;
+ }
+ };
+ return lep;
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createNodeShape() {
+ return primaryShape = new NamedElementDescriptor();
+ }
+
+ /**
+ * @generated
+ */
+ public NamedElementDescriptor getPrimaryShape() {
+ return (NamedElementDescriptor)primaryShape;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean addFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof DurationIntervalNameEditPart) {
+ ((DurationIntervalNameEditPart)childEditPart).setLabel(getPrimaryShape().getNamedElementNameLabel());
+ return true;
+ }
+
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean removeFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof DurationIntervalNameEditPart) {
+ return true;
+ }
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected void addChildVisual(EditPart childEditPart, int index) {
+ if(addFixedChild(childEditPart)) {
+ return;
+ }
+ super.addChildVisual(childEditPart, -1);
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeChildVisual(EditPart childEditPart) {
+ if(removeFixedChild(childEditPart)) {
+ return;
+ }
+ super.removeChildVisual(childEditPart);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure getContentPaneFor(IGraphicalEditPart editPart) {
+ return getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ protected NodeFigure createNodePlate() {
+ String prefElementId = "DurationInterval";
+ IPreferenceStore store = UMLDiagramEditorPlugin.getInstance().getPreferenceStore();
+ String preferenceConstantWitdh = PreferenceInitializerForElementHelper.getpreferenceKey(getNotationView(), prefElementId, PreferenceConstantHelper.WIDTH);
+ String preferenceConstantHeight = PreferenceInitializerForElementHelper.getpreferenceKey(getNotationView(), prefElementId, PreferenceConstantHelper.HEIGHT);
+ DefaultSizeNodeFigure result = new DefaultSizeNodeFigure(store.getInt(preferenceConstantWitdh), store.getInt(preferenceConstantHeight));
+
+ return result;
+ }
+
+ /**
+ * Creates figure for this edit part.
+ *
+ * Body of this method does not depend on settings in generation model
+ * so you may safely remove <i>generated</i> tag and modify it.
+ *
+ * @generated
+ */
+ protected NodeFigure createNodeFigure() {
+ NodeFigure figure = createNodePlate();
+ figure.setLayoutManager(new StackLayout());
+ IFigure shape = createNodeShape();
+ figure.add(shape);
+ contentPane = setupContentPane(shape);
+ return figure;
+ }
+
+ /**
+ * Default implementation treats passed figure as content pane.
+ * Respects layout one may have set for generated figure.
+ *
+ * @param nodeShape
+ * instance of generated figure class
+ * @generated
+ */
+ protected IFigure setupContentPane(IFigure nodeShape) {
+ if(nodeShape.getLayoutManager() == null) {
+ ConstrainedToolbarLayout layout = new ConstrainedToolbarLayout();
+ layout.setSpacing(5);
+ nodeShape.setLayoutManager(layout);
+ }
+ return nodeShape; // use nodeShape itself as contentPane
+ }
+
+ /**
+ * @generated
+ */
+ public IFigure getContentPane() {
+ if(contentPane != null) {
+ return contentPane;
+ }
+ return super.getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ protected void setForegroundColor(Color color) {
+ if(primaryShape != null) {
+ primaryShape.setForegroundColor(color);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLineWidth(int width) {
+ if(primaryShape instanceof Shape) {
+ ((Shape)primaryShape).setLineWidth(width);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLineType(int style) {
+ if(primaryShape instanceof Shape) {
+ ((Shape)primaryShape).setLineStyle(style);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public EditPart getPrimaryChildEditPart() {
+ return getChildBySemanticHint(UMLVisualIDRegistry.getType(DurationIntervalNameEditPart.VISUAL_ID));
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnSource() {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(11);
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ types.add(UMLElementTypes.Substitution_4011);
+ types.add(UMLElementTypes.Realization_4006);
+ types.add(UMLElementTypes.Manifestation_4012);
+ types.add(UMLElementTypes.Abstraction_4007);
+ types.add(UMLElementTypes.Usage_4008);
+ types.add(UMLElementTypes.Deployment_4009);
+ types.add(UMLElementTypes.Dependency_4017);
+ types.add(UMLElementTypes.Dependency_4010);
+ types.add(UMLElementTypes.InformationFlow_4021);
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnSourceAndTarget(IGraphicalEditPart targetEditPart) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.DurationIntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.DurationIntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.DurationIntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMATypesForTarget(IElementType relationshipType) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(relationshipType == UMLElementTypes.ComponentRealization_4004) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InterfaceRealization_4005) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Substitution_4011) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Realization_4006) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Manifestation_4012) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Abstraction_4007) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Usage_4008) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Deployment_4009) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4017) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4010) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InformationFlow_4021) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnTarget() {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(15);
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ types.add(UMLElementTypes.Substitution_4011);
+ types.add(UMLElementTypes.Realization_4006);
+ types.add(UMLElementTypes.Manifestation_4012);
+ types.add(UMLElementTypes.Abstraction_4007);
+ types.add(UMLElementTypes.Usage_4008);
+ types.add(UMLElementTypes.Deployment_4009);
+ types.add(UMLElementTypes.Dependency_4017);
+ types.add(UMLElementTypes.Dependency_4010);
+ types.add(UMLElementTypes.TimeObservationEvent_4018);
+ types.add(UMLElementTypes.DurationObservationEvent_4019);
+ types.add(UMLElementTypes.InformationFlow_4021);
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMATypesForSource(IElementType relationshipType) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(relationshipType == UMLElementTypes.CommentAnnotatedElement_4002) {
+ types.add(UMLElementTypes.Comment_2109);
+ types.add(UMLElementTypes.Comment_3097);
+ } else if(relationshipType == UMLElementTypes.ConstraintConstrainedElement_4003) {
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.ComponentRealization_4004) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InterfaceRealization_4005) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Substitution_4011) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Realization_4006) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Manifestation_4012) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Abstraction_4007) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Usage_4008) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Deployment_4009) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4017) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4010) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.TimeObservationEvent_4018) {
+ types.add(UMLElementTypes.TimeObservation_2094);
+ } else if(relationshipType == UMLElementTypes.DurationObservationEvent_4019) {
+ types.add(UMLElementTypes.DurationObservation_2093);
+ } else if(relationshipType == UMLElementTypes.InformationFlow_4021) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public class NamedElementDescriptor extends RectangleFigure {
+
+ /**
+ * @generated
+ */
+ private WrappingLabel fNamedElementNameLabel;
+
+ /**
+ * @generated
+ */
+ public NamedElementDescriptor() {
+ this.setLineWidth(1);
+ this.setForegroundColor(ColorConstants.black);
+ createContents();
+ }
+
+ /**
+ * @generated
+ */
+ private void createContents() {
+
+ fNamedElementNameLabel = new WrappingLabel();
+ fNamedElementNameLabel.setText("");
+ fNamedElementNameLabel.setForegroundColor(ColorConstants.black);
+
+ fNamedElementNameLabel.setFont(FNAMEDELEMENTNAMELABEL_FONT);
+
+ this.add(fNamedElementNameLabel);
+
+ }
+
+ /**
+ * @generated
+ */
+ private boolean myUseLocalCoordinates = false;
+
+ /**
+ * @generated
+ */
+ protected boolean useLocalCoordinates() {
+ return myUseLocalCoordinates;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setUseLocalCoordinates(boolean useLocalCoordinates) {
+ myUseLocalCoordinates = useLocalCoordinates;
+ }
+
+ /**
+ * @generated
+ */
+ public WrappingLabel getNamedElementNameLabel() {
+ return fNamedElementNameLabel;
+ }
+
+ }
+
+ /**
+ * @generated
+ */
+ static final Font FNAMEDELEMENTNAMELABEL_FONT = new Font(Display.getCurrent(), "Arial", 10, SWT.BOLD);
+
+ /**
+ * @generated
+ */
+ @Override
+ public Object getPreferredValue(EStructuralFeature feature) {
+ IPreferenceStore preferenceStore = (IPreferenceStore)getDiagramPreferencesHint().getPreferenceStore();
+ Object result = null;
+
+ if(feature == NotationPackage.eINSTANCE.getLineStyle_LineColor() || feature == NotationPackage.eINSTANCE.getFontStyle_FontColor() || feature == NotationPackage.eINSTANCE.getFillStyle_FillColor()) {
+ String prefColor = null;
+ if(feature == NotationPackage.eINSTANCE.getLineStyle_LineColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("DurationInterval", PreferenceConstantHelper.COLOR_LINE);
+ } else if(feature == NotationPackage.eINSTANCE.getFontStyle_FontColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("DurationInterval", PreferenceConstantHelper.COLOR_FONT);
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_FillColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("DurationInterval", PreferenceConstantHelper.COLOR_FILL);
+ }
+ result = FigureUtilities.RGBToInteger(PreferenceConverter.getColor((IPreferenceStore)preferenceStore, prefColor));
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_Transparency() || feature == NotationPackage.eINSTANCE.getFillStyle_Gradient()) {
+ String prefGradient = PreferenceConstantHelper.getElementConstant("DurationInterval", PreferenceConstantHelper.COLOR_GRADIENT);
+ GradientPreferenceConverter gradientPreferenceConverter = new GradientPreferenceConverter(preferenceStore.getString(prefGradient));
+ if(feature == NotationPackage.eINSTANCE.getFillStyle_Transparency()) {
+ result = new Integer(gradientPreferenceConverter.getTransparency());
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_Gradient()) {
+ result = gradientPreferenceConverter.getGradientData();
+ }
+ }
+
+ if(result == null) {
+ result = getStructuralFeatureValue(feature);
+ }
+ return result;
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/DurationIntervalNameEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/DurationIntervalNameEditPart.java
new file mode 100644
index 00000000000..044ef950b89
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/DurationIntervalNameEditPart.java
@@ -0,0 +1,791 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EAnnotation;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.emf.transaction.RunnableWithResult;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.AccessibleEditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.requests.DirectEditRequest;
+import org.eclipse.gef.tools.DirectEditManager;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.CompartmentEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
+import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
+import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
+import org.eclipse.gmf.runtime.notation.FontStyle;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
+import org.eclipse.jface.viewers.ICellEditorValidator;
+import org.eclipse.jface.window.Window;
+import org.eclipse.papyrus.diagram.common.directedit.MultilineLabelDirectEditManager;
+import org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition;
+import org.eclipse.papyrus.diagram.common.editpolicies.IMaskManagedLabelEditPolicy;
+import org.eclipse.papyrus.diagram.common.figure.node.ILabelFigure;
+import org.eclipse.papyrus.diagram.common.util.DiagramEditPartsUtil;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLTextSelectionEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.diagram.composite.providers.UMLParserProvider;
+import org.eclipse.papyrus.extensionpoints.editors.Activator;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
+import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
+import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
+import org.eclipse.papyrus.umlutils.ui.VisualInformationPapyrusConstant;
+import org.eclipse.papyrus.umlutils.ui.helper.NameLabelIconHelper;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.AccessibleEvent;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.FontData;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.ui.PlatformUI;
+
+/**
+ * @generated
+ */
+public class DurationIntervalNameEditPart extends CompartmentEditPart implements ITextAwareEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 5189;
+
+ /**
+ * @generated
+ */
+ private DirectEditManager manager;
+
+ /**
+ * @generated
+ */
+ private IParser parser;
+
+ /**
+ * @generated
+ */
+ private List<?> parserElements;
+
+ /**
+ * @generated
+ */
+ private String defaultText;
+
+ /**
+ * direct edition mode (default, undefined, registered editor, etc.)
+ *
+ * @generated
+ */
+ protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
+
+ /**
+ * configuration from a registered edit dialog
+ *
+ * @generated
+ */
+ protected IDirectEditorConfiguration configuration;
+
+ /**
+ * @generated
+ */
+ public DurationIntervalNameEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
+ installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new CompositeStructureDiagramEditPart.NodeLabelDragPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelTextHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getText();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getText();
+ } else {
+ return ((Label)figure).getText();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelTextHelper(IFigure figure, String text) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setText(text);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setText(text);
+ } else {
+ ((Label)figure).setText(text);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIconHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getIcon();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getIcon();
+ } else {
+ return ((Label)figure).getIcon();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelIconHelper(IFigure figure, Image icon) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setIcon(icon);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setIcon(icon);
+ } else {
+ ((Label)figure).setIcon(icon);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabel(WrappingLabel figure) {
+ unregisterVisuals();
+ setFigure(figure);
+ defaultText = getLabelTextHelper(figure);
+ registerVisuals();
+ refreshVisuals();
+ }
+
+ /**
+ * @generated
+ */
+ protected List getModelChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject getParserElement() {
+ return resolveSemanticElement();
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIcon() {
+ EObject parserElement = getParserElement();
+ if(parserElement == null) {
+ return null;
+ }
+
+ List<View> views = DiagramEditPartsUtil.findViews(parserElement, getViewer());
+ for(View view : views) {
+ if(NameLabelIconHelper.showLabelIcon(view)) {
+ return UMLElementTypes.getImage(parserElement.eClass());
+ }
+ }
+ return null;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelText() {
+ String text = null;
+ EObject parserElement = getParserElement();
+ if(parserElement != null && getParser() != null) {
+ text = getParser().getPrintString(new EObjectAdapter(parserElement), getParserOptions().intValue());
+ }
+ if(text == null || text.length() == 0) {
+ text = defaultText;
+ }
+ return text;
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabelText(String text) {
+ setLabelTextHelper(getFigure(), text);
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public String getEditText() {
+ if(getParserElement() == null || getParser() == null) {
+ return ""; //$NON-NLS-1$
+ }
+ return getParser().getEditString(new EObjectAdapter(getParserElement()), getParserOptions().intValue());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean isEditable() {
+ return getParser() != null;
+ }
+
+ /**
+ * @generated
+ */
+ public ICellEditorValidator getEditTextValidator() {
+ return new ICellEditorValidator() {
+
+ public String isValid(final Object value) {
+ if(value instanceof String) {
+ final EObject element = getParserElement();
+ final IParser parser = getParser();
+ try {
+ IParserEditStatus valid = (IParserEditStatus)getEditingDomain().runExclusive(new RunnableWithResult.Impl() {
+
+ public void run() {
+ setResult(parser.isValidEditString(new EObjectAdapter(element), (String)value));
+ }
+ });
+ return valid.getCode() == ParserEditStatus.EDITABLE ? null : valid.getMessage();
+ } catch (InterruptedException ie) {
+ ie.printStackTrace();
+ }
+ }
+
+ // shouldn't get here
+ return null;
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ public IContentAssistProcessor getCompletionProcessor() {
+ if(getParserElement() == null || getParser() == null) {
+ return null;
+ }
+ return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
+ }
+
+ /**
+ * @generated
+ */
+ public ParserOptions getParserOptions() {
+ return ParserOptions.NONE;
+ }
+
+ /**
+ * @generated
+ */
+ public IParser getParser() {
+ if(parser == null) {
+ parser = UMLParserProvider.getParser(UMLElementTypes.DurationInterval_2106, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.diagram.composite.edit.parts.DurationIntervalNameEditPart.VISUAL_ID));
+ }
+ return parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected DirectEditManager getManager() {
+ if(manager == null) {
+ setManager(new MultilineLabelDirectEditManager(this, MultilineLabelDirectEditManager.getTextCellEditorClass(this), UMLEditPartFactory.getTextCellEditorLocator(this)));
+ }
+ return manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setManager(DirectEditManager manager) {
+ this.manager = manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit() {
+ getManager().show();
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit(Point eventLocation) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(eventLocation.getSWTPoint());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void performDirectEdit(char initialCharacter) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(initialCharacter);
+ } else {
+ performDirectEdit();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEditRequest(Request request) {
+
+ final Request theRequest = request;
+
+ if(IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
+ directEditionMode = getDirectEditionType();
+ }
+ switch(directEditionMode) {
+ case IDirectEdition.NO_DIRECT_EDITION:
+ // no direct edition mode => does nothing
+ return;
+ case IDirectEdition.EXTENDED_DIRECT_EDITOR:
+ updateExtendedEditorConfiguration();
+ if(configuration == null || configuration.getLanguage() == null) {
+ performDefaultDirectEditorEdit(theRequest);
+ } else {
+ configuration.preEditAction(resolveSemanticElement());
+ Dialog dialog = null;
+ if(configuration instanceof IPopupEditorConfiguration) {
+ IPopupEditorHelper helper = ((IPopupEditorConfiguration)configuration).createPopupEditorHelper(this);
+ helper.showEditor();
+ return;
+ } else if(configuration instanceof IAdvancedEditorConfiguration) {
+ dialog = ((IAdvancedEditorConfiguration)configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
+ } else if(configuration instanceof IDirectEditorConfiguration) {
+ dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), ((IDirectEditorConfiguration)configuration).getTextToEdit(resolveSemanticElement()), (IDirectEditorConfiguration)configuration);
+ } else {
+ return;
+ }
+ final Dialog finalDialog = dialog;
+
+ if(Window.OK == dialog.open()) {
+ TransactionalEditingDomain domain = getEditingDomain();
+ RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
+
+ @Override
+ protected void doExecute() {
+ configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog)finalDialog).getValue());
+
+ }
+ };
+ domain.getCommandStack().execute(command);
+ }
+ }
+ break;
+ case IDirectEdition.DEFAULT_DIRECT_EDITOR:
+
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ break;
+ default:
+ break;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshLabel();
+ refreshFont();
+ refreshFontColor();
+ refreshUnderline();
+ refreshStrikeThrough();
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshLabel() {
+ EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
+ if(maskLabelPolicy == null) {
+ setLabelTextHelper(getFigure(), getLabelText());
+ setLabelIconHelper(getFigure(), getLabelIcon());
+ }
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshUnderline() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextUnderline(style.isUnderline());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshStrikeThrough() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextStrikeThrough(style.isStrikeThrough());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshFont() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null) {
+ FontData fontData = new FontData(style.getFontName(), style.getFontHeight(), (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
+ setFont(fontData);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setFontColor(Color color) {
+ getFigure().setForegroundColor(color);
+ }
+
+ /**
+ * @generated
+ */
+ protected void addSemanticListeners() {
+ if(getParser() instanceof ISemanticParser) {
+ EObject element = resolveSemanticElement();
+ parserElements = ((ISemanticParser)getParser()).getSemanticElementsBeingParsed(element);
+ for(int i = 0; i < parserElements.size(); i++) {
+ addListenerFilter("SemanticModel" + i, this, (EObject)parserElements.get(i)); //$NON-NLS-1$
+ }
+ } else {
+ super.addSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeSemanticListeners() {
+ if(parserElements != null) {
+ for(int i = 0; i < parserElements.size(); i++) {
+ removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
+ }
+ } else {
+ super.removeSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected AccessibleEditPart getAccessibleEditPart() {
+ if(accessibleEP == null) {
+ accessibleEP = new AccessibleGraphicalEditPart() {
+
+ public void getName(AccessibleEvent e) {
+ e.result = getLabelTextHelper(getFigure());
+ }
+ };
+ }
+ return accessibleEP;
+ }
+
+ /**
+ * @generated
+ */
+ private View getFontStyleOwnerView() {
+ return (View)getModel();
+ }
+
+ /**
+ * Returns the kind of associated editor for direct edition.
+ *
+ * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition
+ * @generated
+ */
+ public int getDirectEditionType() {
+ if(checkExtendedEditor()) {
+ initExtendedEditorConfiguration();
+ return IDirectEdition.EXTENDED_DIRECT_EDITOR;
+ }
+ if(checkDefaultEdition()) {
+ return IDirectEdition.DEFAULT_DIRECT_EDITOR;
+ }
+
+ // not a named element. no specific editor => do nothing
+ return IDirectEdition.NO_DIRECT_EDITION;
+ }
+
+ /**
+ * Checks if an extended editor is present.
+ *
+ * @return <code>true</code> if an extended editor is present.
+ * @generated
+ */
+ protected boolean checkExtendedEditor() {
+ if(resolveSemanticElement() != null) {
+ return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ return false;
+ }
+
+ /**
+ * Checks if a default direct edition is available
+ *
+ * @return <code>true</code> if a default direct edition is available
+ * @generated
+ */
+ protected boolean checkDefaultEdition() {
+ return (getParser() != null);
+ }
+
+ /**
+ * Initializes the extended editor configuration
+ *
+ * @generated
+ */
+ protected void initExtendedEditorConfiguration() {
+ if(configuration == null) {
+ final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("")) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else {
+ configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ }
+ }
+
+ /**
+ * Updates the preference configuration
+ *
+ * @generated
+ */
+ protected void updateExtendedEditorConfiguration() {
+ String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("") && languagePreferred != configuration.getLanguage()) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else if(IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
+ configuration = null;
+ }
+ }
+
+ /**
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
+ protected void performDefaultDirectEditorEdit(final Request theRequest) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void addNotationalListeners() {
+ super.addNotationalListeners();
+ addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeNotationalListeners() {
+ super.removeNotationalListeners();
+ removeListenerFilter("PrimaryView"); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void handleNotificationEvent(Notification event) {
+ refreshLabel();
+ Object feature = event.getFeature();
+ if(NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
+ Integer c = (Integer)event.getNewValue();
+ setFontColor(DiagramColorRegistry.getInstance().getColor(c));
+ } else if(NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
+ refreshUnderline();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
+ refreshStrikeThrough();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
+ refreshFont();
+ } else {
+ if(getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
+ refreshLabel();
+ }
+ if(getParser() instanceof ISemanticParser) {
+ ISemanticParser modelParser = (ISemanticParser)getParser();
+ if(modelParser.areSemanticElementsAffected(null, event)) {
+ removeSemanticListeners();
+ if(resolveSemanticElement() != null) {
+ addSemanticListeners();
+ }
+ refreshLabel();
+ }
+ }
+ }
+
+ if(event.getNewValue() instanceof EAnnotation && VisualInformationPapyrusConstant.DISPLAY_NAMELABELICON.equals(((EAnnotation)event.getNewValue()).getSource())) {
+ refreshLabel();
+ }
+
+ super.handleNotificationEvent(event);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createFigure() {
+ // Parent should assign one using setLabel() method
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ private static final String ADD_PARENT_MODEL = "AddParentModel";
+
+ /**
+ * @generated
+ */
+ public void activate() {
+ super.activate();
+ addOwnerElementListeners();
+ }
+
+ /**
+ * @generated
+ */
+ protected void addOwnerElementListeners() {
+ addListenerFilter(ADD_PARENT_MODEL, this, ((View)getParent().getModel())); //$NON-NLS-1$
+
+ }
+
+ /**
+ * @generated
+ */
+ public void deactivate() {
+ removeOwnerElementListeners();
+ super.deactivate();
+
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeOwnerElementListeners() {
+ removeListenerFilter(ADD_PARENT_MODEL);
+
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/DurationNameEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/DurationNameEditPart.java
new file mode 100644
index 00000000000..7c631edcdbd
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/DurationNameEditPart.java
@@ -0,0 +1,791 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EAnnotation;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.emf.transaction.RunnableWithResult;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.AccessibleEditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.requests.DirectEditRequest;
+import org.eclipse.gef.tools.DirectEditManager;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.CompartmentEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
+import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
+import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
+import org.eclipse.gmf.runtime.notation.FontStyle;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
+import org.eclipse.jface.viewers.ICellEditorValidator;
+import org.eclipse.jface.window.Window;
+import org.eclipse.papyrus.diagram.common.directedit.MultilineLabelDirectEditManager;
+import org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition;
+import org.eclipse.papyrus.diagram.common.editpolicies.IMaskManagedLabelEditPolicy;
+import org.eclipse.papyrus.diagram.common.figure.node.ILabelFigure;
+import org.eclipse.papyrus.diagram.common.util.DiagramEditPartsUtil;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLTextSelectionEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.diagram.composite.providers.UMLParserProvider;
+import org.eclipse.papyrus.extensionpoints.editors.Activator;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
+import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
+import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
+import org.eclipse.papyrus.umlutils.ui.VisualInformationPapyrusConstant;
+import org.eclipse.papyrus.umlutils.ui.helper.NameLabelIconHelper;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.AccessibleEvent;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.FontData;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.ui.PlatformUI;
+
+/**
+ * @generated
+ */
+public class DurationNameEditPart extends CompartmentEditPart implements ITextAwareEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 5187;
+
+ /**
+ * @generated
+ */
+ private DirectEditManager manager;
+
+ /**
+ * @generated
+ */
+ private IParser parser;
+
+ /**
+ * @generated
+ */
+ private List<?> parserElements;
+
+ /**
+ * @generated
+ */
+ private String defaultText;
+
+ /**
+ * direct edition mode (default, undefined, registered editor, etc.)
+ *
+ * @generated
+ */
+ protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
+
+ /**
+ * configuration from a registered edit dialog
+ *
+ * @generated
+ */
+ protected IDirectEditorConfiguration configuration;
+
+ /**
+ * @generated
+ */
+ public DurationNameEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
+ installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new CompositeStructureDiagramEditPart.NodeLabelDragPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelTextHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getText();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getText();
+ } else {
+ return ((Label)figure).getText();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelTextHelper(IFigure figure, String text) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setText(text);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setText(text);
+ } else {
+ ((Label)figure).setText(text);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIconHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getIcon();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getIcon();
+ } else {
+ return ((Label)figure).getIcon();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelIconHelper(IFigure figure, Image icon) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setIcon(icon);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setIcon(icon);
+ } else {
+ ((Label)figure).setIcon(icon);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabel(WrappingLabel figure) {
+ unregisterVisuals();
+ setFigure(figure);
+ defaultText = getLabelTextHelper(figure);
+ registerVisuals();
+ refreshVisuals();
+ }
+
+ /**
+ * @generated
+ */
+ protected List getModelChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject getParserElement() {
+ return resolveSemanticElement();
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIcon() {
+ EObject parserElement = getParserElement();
+ if(parserElement == null) {
+ return null;
+ }
+
+ List<View> views = DiagramEditPartsUtil.findViews(parserElement, getViewer());
+ for(View view : views) {
+ if(NameLabelIconHelper.showLabelIcon(view)) {
+ return UMLElementTypes.getImage(parserElement.eClass());
+ }
+ }
+ return null;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelText() {
+ String text = null;
+ EObject parserElement = getParserElement();
+ if(parserElement != null && getParser() != null) {
+ text = getParser().getPrintString(new EObjectAdapter(parserElement), getParserOptions().intValue());
+ }
+ if(text == null || text.length() == 0) {
+ text = defaultText;
+ }
+ return text;
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabelText(String text) {
+ setLabelTextHelper(getFigure(), text);
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public String getEditText() {
+ if(getParserElement() == null || getParser() == null) {
+ return ""; //$NON-NLS-1$
+ }
+ return getParser().getEditString(new EObjectAdapter(getParserElement()), getParserOptions().intValue());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean isEditable() {
+ return getParser() != null;
+ }
+
+ /**
+ * @generated
+ */
+ public ICellEditorValidator getEditTextValidator() {
+ return new ICellEditorValidator() {
+
+ public String isValid(final Object value) {
+ if(value instanceof String) {
+ final EObject element = getParserElement();
+ final IParser parser = getParser();
+ try {
+ IParserEditStatus valid = (IParserEditStatus)getEditingDomain().runExclusive(new RunnableWithResult.Impl() {
+
+ public void run() {
+ setResult(parser.isValidEditString(new EObjectAdapter(element), (String)value));
+ }
+ });
+ return valid.getCode() == ParserEditStatus.EDITABLE ? null : valid.getMessage();
+ } catch (InterruptedException ie) {
+ ie.printStackTrace();
+ }
+ }
+
+ // shouldn't get here
+ return null;
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ public IContentAssistProcessor getCompletionProcessor() {
+ if(getParserElement() == null || getParser() == null) {
+ return null;
+ }
+ return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
+ }
+
+ /**
+ * @generated
+ */
+ public ParserOptions getParserOptions() {
+ return ParserOptions.NONE;
+ }
+
+ /**
+ * @generated
+ */
+ public IParser getParser() {
+ if(parser == null) {
+ parser = UMLParserProvider.getParser(UMLElementTypes.Duration_2104, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.diagram.composite.edit.parts.DurationNameEditPart.VISUAL_ID));
+ }
+ return parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected DirectEditManager getManager() {
+ if(manager == null) {
+ setManager(new MultilineLabelDirectEditManager(this, MultilineLabelDirectEditManager.getTextCellEditorClass(this), UMLEditPartFactory.getTextCellEditorLocator(this)));
+ }
+ return manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setManager(DirectEditManager manager) {
+ this.manager = manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit() {
+ getManager().show();
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit(Point eventLocation) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(eventLocation.getSWTPoint());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void performDirectEdit(char initialCharacter) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(initialCharacter);
+ } else {
+ performDirectEdit();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEditRequest(Request request) {
+
+ final Request theRequest = request;
+
+ if(IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
+ directEditionMode = getDirectEditionType();
+ }
+ switch(directEditionMode) {
+ case IDirectEdition.NO_DIRECT_EDITION:
+ // no direct edition mode => does nothing
+ return;
+ case IDirectEdition.EXTENDED_DIRECT_EDITOR:
+ updateExtendedEditorConfiguration();
+ if(configuration == null || configuration.getLanguage() == null) {
+ performDefaultDirectEditorEdit(theRequest);
+ } else {
+ configuration.preEditAction(resolveSemanticElement());
+ Dialog dialog = null;
+ if(configuration instanceof IPopupEditorConfiguration) {
+ IPopupEditorHelper helper = ((IPopupEditorConfiguration)configuration).createPopupEditorHelper(this);
+ helper.showEditor();
+ return;
+ } else if(configuration instanceof IAdvancedEditorConfiguration) {
+ dialog = ((IAdvancedEditorConfiguration)configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
+ } else if(configuration instanceof IDirectEditorConfiguration) {
+ dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), ((IDirectEditorConfiguration)configuration).getTextToEdit(resolveSemanticElement()), (IDirectEditorConfiguration)configuration);
+ } else {
+ return;
+ }
+ final Dialog finalDialog = dialog;
+
+ if(Window.OK == dialog.open()) {
+ TransactionalEditingDomain domain = getEditingDomain();
+ RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
+
+ @Override
+ protected void doExecute() {
+ configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog)finalDialog).getValue());
+
+ }
+ };
+ domain.getCommandStack().execute(command);
+ }
+ }
+ break;
+ case IDirectEdition.DEFAULT_DIRECT_EDITOR:
+
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ break;
+ default:
+ break;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshLabel();
+ refreshFont();
+ refreshFontColor();
+ refreshUnderline();
+ refreshStrikeThrough();
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshLabel() {
+ EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
+ if(maskLabelPolicy == null) {
+ setLabelTextHelper(getFigure(), getLabelText());
+ setLabelIconHelper(getFigure(), getLabelIcon());
+ }
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshUnderline() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextUnderline(style.isUnderline());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshStrikeThrough() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextStrikeThrough(style.isStrikeThrough());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshFont() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null) {
+ FontData fontData = new FontData(style.getFontName(), style.getFontHeight(), (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
+ setFont(fontData);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setFontColor(Color color) {
+ getFigure().setForegroundColor(color);
+ }
+
+ /**
+ * @generated
+ */
+ protected void addSemanticListeners() {
+ if(getParser() instanceof ISemanticParser) {
+ EObject element = resolveSemanticElement();
+ parserElements = ((ISemanticParser)getParser()).getSemanticElementsBeingParsed(element);
+ for(int i = 0; i < parserElements.size(); i++) {
+ addListenerFilter("SemanticModel" + i, this, (EObject)parserElements.get(i)); //$NON-NLS-1$
+ }
+ } else {
+ super.addSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeSemanticListeners() {
+ if(parserElements != null) {
+ for(int i = 0; i < parserElements.size(); i++) {
+ removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
+ }
+ } else {
+ super.removeSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected AccessibleEditPart getAccessibleEditPart() {
+ if(accessibleEP == null) {
+ accessibleEP = new AccessibleGraphicalEditPart() {
+
+ public void getName(AccessibleEvent e) {
+ e.result = getLabelTextHelper(getFigure());
+ }
+ };
+ }
+ return accessibleEP;
+ }
+
+ /**
+ * @generated
+ */
+ private View getFontStyleOwnerView() {
+ return (View)getModel();
+ }
+
+ /**
+ * Returns the kind of associated editor for direct edition.
+ *
+ * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition
+ * @generated
+ */
+ public int getDirectEditionType() {
+ if(checkExtendedEditor()) {
+ initExtendedEditorConfiguration();
+ return IDirectEdition.EXTENDED_DIRECT_EDITOR;
+ }
+ if(checkDefaultEdition()) {
+ return IDirectEdition.DEFAULT_DIRECT_EDITOR;
+ }
+
+ // not a named element. no specific editor => do nothing
+ return IDirectEdition.NO_DIRECT_EDITION;
+ }
+
+ /**
+ * Checks if an extended editor is present.
+ *
+ * @return <code>true</code> if an extended editor is present.
+ * @generated
+ */
+ protected boolean checkExtendedEditor() {
+ if(resolveSemanticElement() != null) {
+ return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ return false;
+ }
+
+ /**
+ * Checks if a default direct edition is available
+ *
+ * @return <code>true</code> if a default direct edition is available
+ * @generated
+ */
+ protected boolean checkDefaultEdition() {
+ return (getParser() != null);
+ }
+
+ /**
+ * Initializes the extended editor configuration
+ *
+ * @generated
+ */
+ protected void initExtendedEditorConfiguration() {
+ if(configuration == null) {
+ final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("")) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else {
+ configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ }
+ }
+
+ /**
+ * Updates the preference configuration
+ *
+ * @generated
+ */
+ protected void updateExtendedEditorConfiguration() {
+ String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("") && languagePreferred != configuration.getLanguage()) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else if(IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
+ configuration = null;
+ }
+ }
+
+ /**
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
+ protected void performDefaultDirectEditorEdit(final Request theRequest) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void addNotationalListeners() {
+ super.addNotationalListeners();
+ addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeNotationalListeners() {
+ super.removeNotationalListeners();
+ removeListenerFilter("PrimaryView"); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void handleNotificationEvent(Notification event) {
+ refreshLabel();
+ Object feature = event.getFeature();
+ if(NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
+ Integer c = (Integer)event.getNewValue();
+ setFontColor(DiagramColorRegistry.getInstance().getColor(c));
+ } else if(NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
+ refreshUnderline();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
+ refreshStrikeThrough();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
+ refreshFont();
+ } else {
+ if(getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
+ refreshLabel();
+ }
+ if(getParser() instanceof ISemanticParser) {
+ ISemanticParser modelParser = (ISemanticParser)getParser();
+ if(modelParser.areSemanticElementsAffected(null, event)) {
+ removeSemanticListeners();
+ if(resolveSemanticElement() != null) {
+ addSemanticListeners();
+ }
+ refreshLabel();
+ }
+ }
+ }
+
+ if(event.getNewValue() instanceof EAnnotation && VisualInformationPapyrusConstant.DISPLAY_NAMELABELICON.equals(((EAnnotation)event.getNewValue()).getSource())) {
+ refreshLabel();
+ }
+
+ super.handleNotificationEvent(event);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createFigure() {
+ // Parent should assign one using setLabel() method
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ private static final String ADD_PARENT_MODEL = "AddParentModel";
+
+ /**
+ * @generated
+ */
+ public void activate() {
+ super.activate();
+ addOwnerElementListeners();
+ }
+
+ /**
+ * @generated
+ */
+ protected void addOwnerElementListeners() {
+ addListenerFilter(ADD_PARENT_MODEL, this, ((View)getParent().getModel())); //$NON-NLS-1$
+
+ }
+
+ /**
+ * @generated
+ */
+ public void deactivate() {
+ removeOwnerElementListeners();
+ super.deactivate();
+
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeOwnerElementListeners() {
+ removeListenerFilter(ADD_PARENT_MODEL);
+
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/DurationObservationEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/DurationObservationEditPart.java
new file mode 100644
index 00000000000..6d045754821
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/DurationObservationEditPart.java
@@ -0,0 +1,5448 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.ArrayList;
+import java.util.Collections;
+import java.util.LinkedList;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Shape;
+import org.eclipse.draw2d.StackLayout;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EStructuralFeature;
+import org.eclipse.gef.EditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.GraphicalEditPart;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.editpolicies.LayoutEditPolicy;
+import org.eclipse.gef.editpolicies.NonResizableEditPolicy;
+import org.eclipse.gef.handles.MoveHandle;
+import org.eclipse.gef.requests.CreateRequest;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IBorderItemEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.BorderItemSelectionEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.diagram.ui.figures.IBorderItemLocator;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.FigureUtilities;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.gef.ui.figures.DefaultSizeNodeFigure;
+import org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure;
+import org.eclipse.gmf.runtime.notation.Edge;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.jface.preference.PreferenceConverter;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeIconlDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.HyperLinkPopupBarEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.QualifiedNameDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.ShowHideLabelEditPolicy;
+import org.eclipse.papyrus.diagram.common.helper.PreferenceInitializerForElementHelper;
+import org.eclipse.papyrus.diagram.common.locator.ExternalLabelPositionLocator;
+import org.eclipse.papyrus.diagram.composite.custom.edit.parts.AbstractObservationEditPart;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.CustomDiagramDragDropEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.ObservationLayoutEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.figures.DurationObservationNodeFigure;
+import org.eclipse.papyrus.diagram.composite.edit.policies.DurationObservationItemSemanticEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorPlugin;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter;
+import org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper;
+import org.eclipse.swt.graphics.Color;
+
+/**
+ * @generated
+ */
+public class DurationObservationEditPart extends
+
+AbstractObservationEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 2093;
+
+ /**
+ * @generated
+ */
+ protected IFigure contentPane;
+
+ /**
+ * @generated
+ */
+ protected IFigure primaryShape;
+
+ /**
+ * @generated
+ */
+ public DurationObservationEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new DurationObservationItemSemanticEditPolicy());
+ installEditPolicy(EditPolicy.LAYOUT_ROLE, createLayoutEditPolicy());
+ installEditPolicy(AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeIconlDisplayEditPolicy());
+ installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new CustomDiagramDragDropEditPolicy());
+ installEditPolicy(QualifiedNameDisplayEditPolicy.QUALIFIED_NAME_POLICY, new QualifiedNameDisplayEditPolicy());
+ installEditPolicy(EditPolicyRoles.POPUPBAR_ROLE, new HyperLinkPopupBarEditPolicy());
+ installEditPolicy(EditPolicy.LAYOUT_ROLE, new ObservationLayoutEditPolicy());
+ installEditPolicy(ShowHideLabelEditPolicy.SHOW_HIDE_LABEL_ROLE, new ShowHideLabelEditPolicy());
+ // XXX need an SCR to runtime to have another abstract superclass that would let children add reasonable editpolicies
+ // removeEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CONNECTION_HANDLES_ROLE);
+ }
+
+ /**
+ * Papyrus codeGen
+ *
+ * @generated
+ **/
+ protected void handleNotificationEvent(Notification event) {
+ /*
+ * when a node have external node labels, the methods refreshChildren() remove the EditPart corresponding to the Label from the EditPart
+ * Registry. After that, we can't reset the visibility to true (using the Show/Hide Label Action)!
+ */
+ if(NotationPackage.eINSTANCE.getView_Visible().equals(event.getFeature())) {
+ Object notifier = event.getNotifier();
+ List<?> modelChildren = ((View)getModel()).getChildren();
+ if(!(notifier instanceof Edge)) {
+ if(modelChildren.contains(event.getNotifier())) {
+ return;
+ }
+ }
+ }
+ super.handleNotificationEvent(event);
+
+ }
+
+ /**
+ * @generated
+ */
+ protected LayoutEditPolicy createLayoutEditPolicy() {
+ org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy lep = new org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy() {
+
+ protected EditPolicy createChildEditPolicy(EditPart child) {
+ View childView = (View)child.getModel();
+ switch(UMLVisualIDRegistry.getVisualID(childView)) {
+ case DurationObservationNameEditPart.VISUAL_ID:
+ case DurationObservationStereotypeLabelEditPart.VISUAL_ID:
+ return new BorderItemSelectionEditPolicy() {
+
+ protected List createSelectionHandles() {
+ MoveHandle mh = new MoveHandle((GraphicalEditPart)getHost());
+ mh.setBorder(null);
+ return Collections.singletonList(mh);
+ }
+ };
+ }
+ EditPolicy result = child.getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(result == null) {
+ result = new NonResizableEditPolicy();
+ }
+ return result;
+ }
+
+ protected Command getMoveChildrenCommand(Request request) {
+ return null;
+ }
+
+ protected Command getCreateCommand(CreateRequest request) {
+ return null;
+ }
+ };
+ return lep;
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createNodeShape() {
+ return primaryShape = new DurationObservationNodeFigure();
+ }
+
+ /**
+ * @generated
+ */
+ public DurationObservationNodeFigure getPrimaryShape() {
+ return (DurationObservationNodeFigure)primaryShape;
+ }
+
+ /**
+ * @generated
+ */
+ protected void addBorderItem(IFigure borderItemContainer, IBorderItemEditPart borderItemEditPart) {
+ if(borderItemEditPart instanceof DurationObservationNameEditPart) {
+ IBorderItemLocator locator = new ExternalLabelPositionLocator(getMainFigure());
+ borderItemContainer.add(borderItemEditPart.getFigure(), locator);
+ } else if(borderItemEditPart instanceof DurationObservationStereotypeLabelEditPart) {
+ IBorderItemLocator locator = new ExternalLabelPositionLocator(getMainFigure());
+ borderItemContainer.add(borderItemEditPart.getFigure(), locator);
+ } else {
+ super.addBorderItem(borderItemContainer, borderItemEditPart);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected NodeFigure createNodePlate() {
+ String prefElementId = "DurationObservation";
+ IPreferenceStore store = UMLDiagramEditorPlugin.getInstance().getPreferenceStore();
+ String preferenceConstantWitdh = PreferenceInitializerForElementHelper.getpreferenceKey(getNotationView(), prefElementId, PreferenceConstantHelper.WIDTH);
+ String preferenceConstantHeight = PreferenceInitializerForElementHelper.getpreferenceKey(getNotationView(), prefElementId, PreferenceConstantHelper.HEIGHT);
+ DefaultSizeNodeFigure result = new DefaultSizeNodeFigure(store.getInt(preferenceConstantWitdh), store.getInt(preferenceConstantHeight));
+
+ return result;
+ }
+
+ /**
+ * Creates figure for this edit part.
+ *
+ * Body of this method does not depend on settings in generation model
+ * so you may safely remove <i>generated</i> tag and modify it.
+ *
+ * @generated
+ */
+ protected NodeFigure createMainFigure() {
+ NodeFigure figure = createNodePlate();
+ figure.setLayoutManager(new StackLayout());
+ IFigure shape = createNodeShape();
+ figure.add(shape);
+ contentPane = setupContentPane(shape);
+ return figure;
+ }
+
+ /**
+ * Default implementation treats passed figure as content pane.
+ * Respects layout one may have set for generated figure.
+ *
+ * @param nodeShape
+ * instance of generated figure class
+ * @generated
+ */
+ protected IFigure setupContentPane(IFigure nodeShape) {
+ return nodeShape; // use nodeShape itself as contentPane
+ }
+
+ /**
+ * @generated
+ */
+ public IFigure getContentPane() {
+ if(contentPane != null) {
+ return contentPane;
+ }
+ return super.getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ protected void setForegroundColor(Color color) {
+ if(primaryShape != null) {
+ primaryShape.setForegroundColor(color);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLineWidth(int width) {
+ if(primaryShape instanceof Shape) {
+ ((Shape)primaryShape).setLineWidth(width);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLineType(int style) {
+ if(primaryShape instanceof Shape) {
+ ((Shape)primaryShape).setLineStyle(style);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public EditPart getPrimaryChildEditPart() {
+ return getChildBySemanticHint(UMLVisualIDRegistry.getType(DurationObservationNameEditPart.VISUAL_ID));
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnSource() {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(12);
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ types.add(UMLElementTypes.Substitution_4011);
+ types.add(UMLElementTypes.Realization_4006);
+ types.add(UMLElementTypes.Manifestation_4012);
+ types.add(UMLElementTypes.Abstraction_4007);
+ types.add(UMLElementTypes.Usage_4008);
+ types.add(UMLElementTypes.Deployment_4009);
+ types.add(UMLElementTypes.Dependency_4017);
+ types.add(UMLElementTypes.Dependency_4010);
+ types.add(UMLElementTypes.DurationObservationEvent_4019);
+ types.add(UMLElementTypes.InformationFlow_4021);
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnSourceAndTarget(IGraphicalEditPart targetEditPart) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.DurationObservationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.DurationObservationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.DurationObservationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.DurationObservationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.DurationObservationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.DurationObservationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.DurationObservationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.DurationObservationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.DurationObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.DurationObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.DurationObservationEvent_4019);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.DurationObservationEvent_4019);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.DurationObservationEvent_4019);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.DurationObservationEvent_4019);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.DurationObservationEvent_4019);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.DurationObservationEvent_4019);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.DurationObservationEvent_4019);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.DurationObservationEvent_4019);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.DurationObservationEvent_4019);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.DurationObservationEvent_4019);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.DurationObservationEvent_4019);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.DurationObservationEvent_4019);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.DurationObservationEvent_4019);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.DurationObservationEvent_4019);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.DurationObservationEvent_4019);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.DurationObservationEvent_4019);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.DurationObservationEvent_4019);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.DurationObservationEvent_4019);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.DurationObservationEvent_4019);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.DurationObservationEvent_4019);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.DurationObservationEvent_4019);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.DurationObservationEvent_4019);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.DurationObservationEvent_4019);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.DurationObservationEvent_4019);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.DurationObservationEvent_4019);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.DurationObservationEvent_4019);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.DurationObservationEvent_4019);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.DurationObservationEvent_4019);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.DurationObservationEvent_4019);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.DurationObservationEvent_4019);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.DurationObservationEvent_4019);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.DurationObservationEvent_4019);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.DurationObservationEditPart) {
+ types.add(UMLElementTypes.DurationObservationEvent_4019);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.DurationObservationEvent_4019);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.DurationObservationEvent_4019);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.DurationObservationEvent_4019);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.DurationObservationEvent_4019);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.DurationObservationEvent_4019);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.DurationObservationEvent_4019);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.DurationObservationEvent_4019);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.DurationObservationEvent_4019);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.DurationObservationEvent_4019);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.DurationObservationEvent_4019);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.DurationObservationEvent_4019);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.DurationObservationEvent_4019);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.DurationObservationEvent_4019);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.DurationObservationEvent_4019);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.DurationObservationEvent_4019);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.DurationObservationEvent_4019);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.DurationObservationEvent_4019);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.DurationObservationEvent_4019);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.DurationObservationEvent_4019);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.DurationObservationEvent_4019);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.DurationObservationEvent_4019);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.DurationObservationEvent_4019);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.DurationObservationEvent_4019);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.DurationObservationEvent_4019);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.DurationObservationEvent_4019);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.DurationObservationEvent_4019);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.DurationObservationEvent_4019);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.DurationObservationEvent_4019);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.DurationObservationEvent_4019);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.DurationObservationEvent_4019);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.DurationObservationEvent_4019);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.DurationObservationEvent_4019);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.DurationObservationEvent_4019);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.DurationObservationEvent_4019);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.DurationObservationEvent_4019);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.DurationObservationEvent_4019);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.DurationObservationEvent_4019);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.DurationObservationEvent_4019);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.DurationObservationEvent_4019);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.DurationObservationEvent_4019);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.DurationObservationEvent_4019);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.DurationObservationEvent_4019);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.DurationObservationEvent_4019);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.DurationObservationEvent_4019);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.DurationObservationEvent_4019);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.DurationObservationEvent_4019);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.DurationObservationEvent_4019);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.DurationObservationEvent_4019);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.DurationObservationEvent_4019);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.DurationObservationEvent_4019);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.DurationObservationEvent_4019);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.DurationObservationEvent_4019);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.DurationObservationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMATypesForTarget(IElementType relationshipType) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(relationshipType == UMLElementTypes.ComponentRealization_4004) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InterfaceRealization_4005) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Substitution_4011) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Realization_4006) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Manifestation_4012) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Abstraction_4007) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Usage_4008) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Deployment_4009) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4017) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4010) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.DurationObservationEvent_4019) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InformationFlow_4021) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnTarget() {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(15);
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ types.add(UMLElementTypes.Substitution_4011);
+ types.add(UMLElementTypes.Realization_4006);
+ types.add(UMLElementTypes.Manifestation_4012);
+ types.add(UMLElementTypes.Abstraction_4007);
+ types.add(UMLElementTypes.Usage_4008);
+ types.add(UMLElementTypes.Deployment_4009);
+ types.add(UMLElementTypes.Dependency_4017);
+ types.add(UMLElementTypes.Dependency_4010);
+ types.add(UMLElementTypes.TimeObservationEvent_4018);
+ types.add(UMLElementTypes.DurationObservationEvent_4019);
+ types.add(UMLElementTypes.InformationFlow_4021);
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMATypesForSource(IElementType relationshipType) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(relationshipType == UMLElementTypes.CommentAnnotatedElement_4002) {
+ types.add(UMLElementTypes.Comment_2109);
+ types.add(UMLElementTypes.Comment_3097);
+ } else if(relationshipType == UMLElementTypes.ConstraintConstrainedElement_4003) {
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.ComponentRealization_4004) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InterfaceRealization_4005) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Substitution_4011) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Realization_4006) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Manifestation_4012) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Abstraction_4007) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Usage_4008) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Deployment_4009) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4017) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4010) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.TimeObservationEvent_4018) {
+ types.add(UMLElementTypes.TimeObservation_2094);
+ } else if(relationshipType == UMLElementTypes.DurationObservationEvent_4019) {
+ types.add(UMLElementTypes.DurationObservation_2093);
+ } else if(relationshipType == UMLElementTypes.InformationFlow_4021) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public Object getPreferredValue(EStructuralFeature feature) {
+ IPreferenceStore preferenceStore = (IPreferenceStore)getDiagramPreferencesHint().getPreferenceStore();
+ Object result = null;
+
+ if(feature == NotationPackage.eINSTANCE.getLineStyle_LineColor() || feature == NotationPackage.eINSTANCE.getFontStyle_FontColor() || feature == NotationPackage.eINSTANCE.getFillStyle_FillColor()) {
+ String prefColor = null;
+ if(feature == NotationPackage.eINSTANCE.getLineStyle_LineColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("DurationObservation", PreferenceConstantHelper.COLOR_LINE);
+ } else if(feature == NotationPackage.eINSTANCE.getFontStyle_FontColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("DurationObservation", PreferenceConstantHelper.COLOR_FONT);
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_FillColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("DurationObservation", PreferenceConstantHelper.COLOR_FILL);
+ }
+ result = FigureUtilities.RGBToInteger(PreferenceConverter.getColor((IPreferenceStore)preferenceStore, prefColor));
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_Transparency() || feature == NotationPackage.eINSTANCE.getFillStyle_Gradient()) {
+ String prefGradient = PreferenceConstantHelper.getElementConstant("DurationObservation", PreferenceConstantHelper.COLOR_GRADIENT);
+ GradientPreferenceConverter gradientPreferenceConverter = new GradientPreferenceConverter(preferenceStore.getString(prefGradient));
+ if(feature == NotationPackage.eINSTANCE.getFillStyle_Transparency()) {
+ result = new Integer(gradientPreferenceConverter.getTransparency());
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_Gradient()) {
+ result = gradientPreferenceConverter.getGradientData();
+ }
+ }
+
+ if(result == null) {
+ result = getStructuralFeatureValue(feature);
+ }
+ return result;
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/DurationObservationEventEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/DurationObservationEventEditPart.java
new file mode 100644
index 00000000000..73be22cd0cf
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/DurationObservationEventEditPart.java
@@ -0,0 +1,88 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import org.eclipse.draw2d.Connection;
+import org.eclipse.draw2d.Graphics;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ConnectionNodeEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITreeBranchEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.PolylineConnectionEx;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.diagram.composite.edit.policies.DurationObservationEventItemSemanticEditPolicy;
+
+/**
+ * @generated
+ */
+public class DurationObservationEventEditPart extends ConnectionNodeEditPart
+
+implements ITreeBranchEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 4019;
+
+ /**
+ * @generated
+ */
+ public DurationObservationEventEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new DurationObservationEventItemSemanticEditPolicy());
+ }
+
+ /**
+ * Creates figure for this edit part.
+ *
+ * Body of this method does not depend on settings in generation model
+ * so you may safely remove <i>generated</i> tag and modify it.
+ *
+ * @generated
+ */
+
+ protected Connection createConnectionFigure() {
+ return new LinkDescriptor();
+ }
+
+ /**
+ * @generated
+ */
+ public LinkDescriptor getPrimaryShape() {
+ return (LinkDescriptor)getFigure();
+ }
+
+ /**
+ * @generated
+ */
+ public class LinkDescriptor extends PolylineConnectionEx {
+
+ /**
+ * @generated
+ */
+ public LinkDescriptor() {
+ this.setLineWidth(1);
+ this.setLineStyle(Graphics.LINE_DASH);
+
+ }
+
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/DurationObservationNameEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/DurationObservationNameEditPart.java
new file mode 100644
index 00000000000..932dd7fdd80
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/DurationObservationNameEditPart.java
@@ -0,0 +1,778 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.draw2d.geometry.Rectangle;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.emf.transaction.RunnableWithResult;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.AccessibleEditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.requests.DirectEditRequest;
+import org.eclipse.gef.tools.DirectEditManager;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IBorderItemEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.LabelEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.figures.IBorderItemLocator;
+import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
+import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
+import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
+import org.eclipse.gmf.runtime.notation.FontStyle;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
+import org.eclipse.jface.viewers.ICellEditorValidator;
+import org.eclipse.jface.window.Window;
+import org.eclipse.papyrus.diagram.common.directedit.MultilineLabelDirectEditManager;
+import org.eclipse.papyrus.diagram.common.editparts.ILabelRoleProvider;
+import org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition;
+import org.eclipse.papyrus.diagram.common.editpolicies.IMaskManagedLabelEditPolicy;
+import org.eclipse.papyrus.diagram.common.figure.node.ILabelFigure;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLTextSelectionEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.diagram.composite.providers.UMLParserProvider;
+import org.eclipse.papyrus.extensionpoints.editors.Activator;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
+import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
+import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.AccessibleEvent;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.FontData;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.ui.PlatformUI;
+
+/**
+ * @generated
+ */
+public class DurationObservationNameEditPart
+
+extends LabelEditPart
+
+implements ITextAwareEditPart, IBorderItemEditPart
+
+, ILabelRoleProvider
+
+{
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 5151;
+
+ /**
+ * @generated
+ */
+ private DirectEditManager manager;
+
+ /**
+ * @generated
+ */
+ private IParser parser;
+
+ /**
+ * @generated
+ */
+ private List<?> parserElements;
+
+ /**
+ * @generated
+ */
+ private String defaultText;
+
+ /**
+ * direct edition mode (default, undefined, registered editor, etc.)
+ *
+ * @generated
+ */
+ protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
+
+ /**
+ * configuration from a registered edit dialog
+ *
+ * @generated
+ */
+ protected IDirectEditorConfiguration configuration;
+
+ /**
+ * @generated
+ */
+ static {
+ registerSnapBackPosition(UMLVisualIDRegistry.getType(org.eclipse.papyrus.diagram.composite.edit.parts.DurationObservationNameEditPart.VISUAL_ID), new Point(0, 0));
+ }
+
+ /**
+ * @generated
+ */
+ public DurationObservationNameEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
+ installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ public IBorderItemLocator getBorderItemLocator() {
+ IFigure parentFigure = getFigure().getParent();
+ if(parentFigure != null && parentFigure.getLayoutManager() != null) {
+ Object constraint = parentFigure.getLayoutManager().getConstraint(getFigure());
+ return (IBorderItemLocator)constraint;
+ }
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ public void refreshBounds() {
+ int x = ((Integer)getStructuralFeatureValue(NotationPackage.eINSTANCE.getLocation_X())).intValue();
+ int y = ((Integer)getStructuralFeatureValue(NotationPackage.eINSTANCE.getLocation_Y())).intValue();
+ int width = ((Integer)getStructuralFeatureValue(NotationPackage.eINSTANCE.getSize_Width())).intValue();
+ int height = ((Integer)getStructuralFeatureValue(NotationPackage.eINSTANCE.getSize_Height())).intValue();
+ getBorderItemLocator().setConstraint(new Rectangle(x, y, width, height));
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelTextHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getText();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getText();
+ } else {
+ return ((Label)figure).getText();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelTextHelper(IFigure figure, String text) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setText(text);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setText(text);
+ } else {
+ ((Label)figure).setText(text);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIconHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getIcon();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getIcon();
+ } else {
+ return ((Label)figure).getIcon();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelIconHelper(IFigure figure, Image icon) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setIcon(icon);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setIcon(icon);
+ } else {
+ ((Label)figure).setIcon(icon);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabel(IFigure figure) {
+ unregisterVisuals();
+ setFigure(figure);
+ defaultText = getLabelTextHelper(figure);
+ registerVisuals();
+ refreshVisuals();
+ }
+
+ /**
+ * @generated
+ */
+ protected List getModelChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject getParserElement() {
+ return resolveSemanticElement();
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIcon() {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelText() {
+ String text = null;
+ EObject parserElement = getParserElement();
+ if(parserElement != null && getParser() != null) {
+ text = getParser().getPrintString(new EObjectAdapter(parserElement), getParserOptions().intValue());
+ }
+ if(text == null || text.length() == 0) {
+ text = defaultText;
+ }
+ return text;
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabelText(String text) {
+ setLabelTextHelper(getFigure(), text);
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public String getEditText() {
+ if(getParserElement() == null || getParser() == null) {
+ return ""; //$NON-NLS-1$
+ }
+ return getParser().getEditString(new EObjectAdapter(getParserElement()), getParserOptions().intValue());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean isEditable() {
+ return getParser() != null;
+ }
+
+ /**
+ * @generated
+ */
+ public ICellEditorValidator getEditTextValidator() {
+ return new ICellEditorValidator() {
+
+ public String isValid(final Object value) {
+ if(value instanceof String) {
+ final EObject element = getParserElement();
+ final IParser parser = getParser();
+ try {
+ IParserEditStatus valid = (IParserEditStatus)getEditingDomain().runExclusive(new RunnableWithResult.Impl() {
+
+ public void run() {
+ setResult(parser.isValidEditString(new EObjectAdapter(element), (String)value));
+ }
+ });
+ return valid.getCode() == ParserEditStatus.EDITABLE ? null : valid.getMessage();
+ } catch (InterruptedException ie) {
+ ie.printStackTrace();
+ }
+ }
+
+ // shouldn't get here
+ return null;
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ public IContentAssistProcessor getCompletionProcessor() {
+ if(getParserElement() == null || getParser() == null) {
+ return null;
+ }
+ return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
+ }
+
+ /**
+ * @generated
+ */
+ public ParserOptions getParserOptions() {
+ return ParserOptions.NONE;
+ }
+
+ /**
+ * @generated
+ */
+ public IParser getParser() {
+ if(parser == null) {
+ parser = UMLParserProvider.getParser(UMLElementTypes.DurationObservation_2093, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.diagram.composite.edit.parts.DurationObservationNameEditPart.VISUAL_ID));
+ }
+ return parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected DirectEditManager getManager() {
+ if(manager == null) {
+ setManager(new MultilineLabelDirectEditManager(this, MultilineLabelDirectEditManager.getTextCellEditorClass(this), UMLEditPartFactory.getTextCellEditorLocator(this)));
+ }
+ return manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setManager(DirectEditManager manager) {
+ this.manager = manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit() {
+ getManager().show();
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit(Point eventLocation) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(eventLocation.getSWTPoint());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void performDirectEdit(char initialCharacter) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(initialCharacter);
+ } else {
+ performDirectEdit();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEditRequest(Request request) {
+
+ final Request theRequest = request;
+
+ if(IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
+ directEditionMode = getDirectEditionType();
+ }
+ switch(directEditionMode) {
+ case IDirectEdition.NO_DIRECT_EDITION:
+ // no direct edition mode => does nothing
+ return;
+ case IDirectEdition.EXTENDED_DIRECT_EDITOR:
+ updateExtendedEditorConfiguration();
+ if(configuration == null || configuration.getLanguage() == null) {
+ performDefaultDirectEditorEdit(theRequest);
+ } else {
+ configuration.preEditAction(resolveSemanticElement());
+ Dialog dialog = null;
+ if(configuration instanceof IPopupEditorConfiguration) {
+ IPopupEditorHelper helper = ((IPopupEditorConfiguration)configuration).createPopupEditorHelper(this);
+ helper.showEditor();
+ return;
+ } else if(configuration instanceof IAdvancedEditorConfiguration) {
+ dialog = ((IAdvancedEditorConfiguration)configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
+ } else if(configuration instanceof IDirectEditorConfiguration) {
+ dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), ((IDirectEditorConfiguration)configuration).getTextToEdit(resolveSemanticElement()), (IDirectEditorConfiguration)configuration);
+ } else {
+ return;
+ }
+ final Dialog finalDialog = dialog;
+
+ if(Window.OK == dialog.open()) {
+ TransactionalEditingDomain domain = getEditingDomain();
+ RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
+
+ @Override
+ protected void doExecute() {
+ configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog)finalDialog).getValue());
+
+ }
+ };
+ domain.getCommandStack().execute(command);
+ }
+ }
+ break;
+ case IDirectEdition.DEFAULT_DIRECT_EDITOR:
+
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ break;
+ default:
+ break;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshLabel();
+ refreshFont();
+ refreshFontColor();
+ refreshUnderline();
+ refreshStrikeThrough();
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshLabel() {
+ EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
+ if(maskLabelPolicy == null) {
+ setLabelTextHelper(getFigure(), getLabelText());
+ setLabelIconHelper(getFigure(), getLabelIcon());
+ }
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshUnderline() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextUnderline(style.isUnderline());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshStrikeThrough() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextStrikeThrough(style.isStrikeThrough());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshFont() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null) {
+ FontData fontData = new FontData(style.getFontName(), style.getFontHeight(), (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
+ setFont(fontData);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setFontColor(Color color) {
+ getFigure().setForegroundColor(color);
+ }
+
+ /**
+ * @generated
+ */
+ protected void addSemanticListeners() {
+ if(getParser() instanceof ISemanticParser) {
+ EObject element = resolveSemanticElement();
+ parserElements = ((ISemanticParser)getParser()).getSemanticElementsBeingParsed(element);
+ for(int i = 0; i < parserElements.size(); i++) {
+ addListenerFilter("SemanticModel" + i, this, (EObject)parserElements.get(i)); //$NON-NLS-1$
+ }
+ } else {
+ super.addSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeSemanticListeners() {
+ if(parserElements != null) {
+ for(int i = 0; i < parserElements.size(); i++) {
+ removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
+ }
+ } else {
+ super.removeSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected AccessibleEditPart getAccessibleEditPart() {
+ if(accessibleEP == null) {
+ accessibleEP = new AccessibleGraphicalEditPart() {
+
+ public void getName(AccessibleEvent e) {
+ e.result = getLabelTextHelper(getFigure());
+ }
+ };
+ }
+ return accessibleEP;
+ }
+
+ /**
+ * @generated
+ */
+ private View getFontStyleOwnerView() {
+ return getPrimaryView();
+ }
+
+ /**
+ * Returns the kind of associated editor for direct edition.
+ *
+ * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition
+ * @generated
+ */
+ public int getDirectEditionType() {
+ if(checkExtendedEditor()) {
+ initExtendedEditorConfiguration();
+ return IDirectEdition.EXTENDED_DIRECT_EDITOR;
+ }
+ if(checkDefaultEdition()) {
+ return IDirectEdition.DEFAULT_DIRECT_EDITOR;
+ }
+
+ // not a named element. no specific editor => do nothing
+ return IDirectEdition.NO_DIRECT_EDITION;
+ }
+
+ /**
+ * Checks if an extended editor is present.
+ *
+ * @return <code>true</code> if an extended editor is present.
+ * @generated
+ */
+ protected boolean checkExtendedEditor() {
+ if(resolveSemanticElement() != null) {
+ return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ return false;
+ }
+
+ /**
+ * Checks if a default direct edition is available
+ *
+ * @return <code>true</code> if a default direct edition is available
+ * @generated
+ */
+ protected boolean checkDefaultEdition() {
+ return (getParser() != null);
+ }
+
+ /**
+ * Initializes the extended editor configuration
+ *
+ * @generated
+ */
+ protected void initExtendedEditorConfiguration() {
+ if(configuration == null) {
+ final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("")) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else {
+ configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ }
+ }
+
+ /**
+ * Updates the preference configuration
+ *
+ * @generated
+ */
+ protected void updateExtendedEditorConfiguration() {
+ String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("") && languagePreferred != configuration.getLanguage()) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else if(IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
+ configuration = null;
+ }
+ }
+
+ /**
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
+ protected void performDefaultDirectEditorEdit(final Request theRequest) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void handleNotificationEvent(Notification event) {
+ Object feature = event.getFeature();
+ if(NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
+ Integer c = (Integer)event.getNewValue();
+ setFontColor(DiagramColorRegistry.getInstance().getColor(c));
+ } else if(NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
+ refreshUnderline();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
+ refreshStrikeThrough();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
+ refreshFont();
+ } else {
+ if(getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
+ refreshLabel();
+ }
+ if(getParser() instanceof ISemanticParser) {
+ ISemanticParser modelParser = (ISemanticParser)getParser();
+ if(modelParser.areSemanticElementsAffected(null, event)) {
+ removeSemanticListeners();
+ if(resolveSemanticElement() != null) {
+ addSemanticListeners();
+ }
+ refreshLabel();
+ }
+ }
+ }
+ super.handleNotificationEvent(event);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createFigure() {
+ IFigure label = createFigurePrim();
+ defaultText = getLabelTextHelper(label);
+ return label;
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createFigurePrim() {
+ return new WrappingLabel();
+ }
+
+ /**
+ * @generated
+ */
+ public String getLabelRole() {
+ return "Name";//$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ public String getIconPathRole() {
+ return "";//$NON-NLS-1$
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/DurationObservationStereotypeLabelEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/DurationObservationStereotypeLabelEditPart.java
new file mode 100644
index 00000000000..da16697b016
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/DurationObservationStereotypeLabelEditPart.java
@@ -0,0 +1,782 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.draw2d.geometry.Rectangle;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.emf.transaction.RunnableWithResult;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.AccessibleEditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.requests.DirectEditRequest;
+import org.eclipse.gef.tools.DirectEditManager;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IBorderItemEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.figures.IBorderItemLocator;
+import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
+import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
+import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
+import org.eclipse.gmf.runtime.notation.FontStyle;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
+import org.eclipse.jface.viewers.ICellEditorValidator;
+import org.eclipse.jface.window.Window;
+import org.eclipse.papyrus.diagram.common.directedit.MultilineLabelDirectEditManager;
+import org.eclipse.papyrus.diagram.common.editparts.AbstractLabelEditPart;
+import org.eclipse.papyrus.diagram.common.editparts.ILabelRoleProvider;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeExternalNodeEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition;
+import org.eclipse.papyrus.diagram.common.editpolicies.IMaskManagedLabelEditPolicy;
+import org.eclipse.papyrus.diagram.common.figure.node.AppliedStereotypeWrappingLabelFigure;
+import org.eclipse.papyrus.diagram.common.figure.node.ILabelFigure;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLTextSelectionEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.diagram.composite.providers.UMLParserProvider;
+import org.eclipse.papyrus.extensionpoints.editors.Activator;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
+import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
+import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.AccessibleEvent;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.FontData;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.ui.PlatformUI;
+
+/**
+ * @generated
+ */
+public class DurationObservationStereotypeLabelEditPart
+
+extends AbstractLabelEditPart
+
+implements ITextAwareEditPart, IBorderItemEditPart
+
+, ILabelRoleProvider
+
+{
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 5152;
+
+ /**
+ * @generated
+ */
+ private DirectEditManager manager;
+
+ /**
+ * @generated
+ */
+ private IParser parser;
+
+ /**
+ * @generated
+ */
+ private List<?> parserElements;
+
+ /**
+ * @generated
+ */
+ private String defaultText;
+
+ /**
+ * direct edition mode (default, undefined, registered editor, etc.)
+ *
+ * @generated
+ */
+ protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
+
+ /**
+ * configuration from a registered edit dialog
+ *
+ * @generated
+ */
+ protected IDirectEditorConfiguration configuration;
+
+ /**
+ * @generated
+ */
+ static {
+ registerSnapBackPosition(UMLVisualIDRegistry.getType(org.eclipse.papyrus.diagram.composite.edit.parts.DurationObservationStereotypeLabelEditPart.VISUAL_ID), new Point(0, 0));
+ }
+
+ /**
+ * @generated
+ */
+ public DurationObservationStereotypeLabelEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
+ installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
+ installEditPolicy(AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeExternalNodeEditPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ public IBorderItemLocator getBorderItemLocator() {
+ IFigure parentFigure = getFigure().getParent();
+ if(parentFigure != null && parentFigure.getLayoutManager() != null) {
+ Object constraint = parentFigure.getLayoutManager().getConstraint(getFigure());
+ return (IBorderItemLocator)constraint;
+ }
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ public void refreshBounds() {
+ int x = ((Integer)getStructuralFeatureValue(NotationPackage.eINSTANCE.getLocation_X())).intValue();
+ int y = ((Integer)getStructuralFeatureValue(NotationPackage.eINSTANCE.getLocation_Y())).intValue();
+ int width = ((Integer)getStructuralFeatureValue(NotationPackage.eINSTANCE.getSize_Width())).intValue();
+ int height = ((Integer)getStructuralFeatureValue(NotationPackage.eINSTANCE.getSize_Height())).intValue();
+ getBorderItemLocator().setConstraint(new Rectangle(x, y, width, height));
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelTextHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getText();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getText();
+ } else {
+ return ((Label)figure).getText();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelTextHelper(IFigure figure, String text) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setText(text);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setText(text);
+ } else {
+ ((Label)figure).setText(text);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIconHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getIcon();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getIcon();
+ } else {
+ return ((Label)figure).getIcon();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelIconHelper(IFigure figure, Image icon) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setIcon(icon);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setIcon(icon);
+ } else {
+ ((Label)figure).setIcon(icon);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabel(IFigure figure) {
+ unregisterVisuals();
+ setFigure(figure);
+ defaultText = getLabelTextHelper(figure);
+ registerVisuals();
+ refreshVisuals();
+ }
+
+ /**
+ * @generated
+ */
+ protected List getModelChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject getParserElement() {
+ return resolveSemanticElement();
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIcon() {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelText() {
+ String text = null;
+ EObject parserElement = getParserElement();
+ if(parserElement != null && getParser() != null) {
+ text = getParser().getPrintString(new EObjectAdapter(parserElement), getParserOptions().intValue());
+ }
+ if(text == null || text.length() == 0) {
+ text = defaultText;
+ }
+ return text;
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabelText(String text) {
+ setLabelTextHelper(getFigure(), text);
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public String getEditText() {
+ if(getParserElement() == null || getParser() == null) {
+ return ""; //$NON-NLS-1$
+ }
+ return getParser().getEditString(new EObjectAdapter(getParserElement()), getParserOptions().intValue());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean isEditable() {
+ return getParser() != null;
+ }
+
+ /**
+ * @generated
+ */
+ public ICellEditorValidator getEditTextValidator() {
+ return new ICellEditorValidator() {
+
+ public String isValid(final Object value) {
+ if(value instanceof String) {
+ final EObject element = getParserElement();
+ final IParser parser = getParser();
+ try {
+ IParserEditStatus valid = (IParserEditStatus)getEditingDomain().runExclusive(new RunnableWithResult.Impl() {
+
+ public void run() {
+ setResult(parser.isValidEditString(new EObjectAdapter(element), (String)value));
+ }
+ });
+ return valid.getCode() == ParserEditStatus.EDITABLE ? null : valid.getMessage();
+ } catch (InterruptedException ie) {
+ ie.printStackTrace();
+ }
+ }
+
+ // shouldn't get here
+ return null;
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ public IContentAssistProcessor getCompletionProcessor() {
+ if(getParserElement() == null || getParser() == null) {
+ return null;
+ }
+ return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
+ }
+
+ /**
+ * @generated
+ */
+ public ParserOptions getParserOptions() {
+ return ParserOptions.NONE;
+ }
+
+ /**
+ * @generated
+ */
+ public IParser getParser() {
+ if(parser == null) {
+ parser = UMLParserProvider.getParser(UMLElementTypes.DurationObservation_2093, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.diagram.composite.edit.parts.DurationObservationStereotypeLabelEditPart.VISUAL_ID));
+ }
+ return parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected DirectEditManager getManager() {
+ if(manager == null) {
+ setManager(new MultilineLabelDirectEditManager(this, MultilineLabelDirectEditManager.getTextCellEditorClass(this), UMLEditPartFactory.getTextCellEditorLocator(this)));
+ }
+ return manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setManager(DirectEditManager manager) {
+ this.manager = manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit() {
+ getManager().show();
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit(Point eventLocation) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(eventLocation.getSWTPoint());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void performDirectEdit(char initialCharacter) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(initialCharacter);
+ } else {
+ performDirectEdit();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEditRequest(Request request) {
+
+ final Request theRequest = request;
+
+ if(IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
+ directEditionMode = getDirectEditionType();
+ }
+ switch(directEditionMode) {
+ case IDirectEdition.NO_DIRECT_EDITION:
+ // no direct edition mode => does nothing
+ return;
+ case IDirectEdition.EXTENDED_DIRECT_EDITOR:
+ updateExtendedEditorConfiguration();
+ if(configuration == null || configuration.getLanguage() == null) {
+ performDefaultDirectEditorEdit(theRequest);
+ } else {
+ configuration.preEditAction(resolveSemanticElement());
+ Dialog dialog = null;
+ if(configuration instanceof IPopupEditorConfiguration) {
+ IPopupEditorHelper helper = ((IPopupEditorConfiguration)configuration).createPopupEditorHelper(this);
+ helper.showEditor();
+ return;
+ } else if(configuration instanceof IAdvancedEditorConfiguration) {
+ dialog = ((IAdvancedEditorConfiguration)configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
+ } else if(configuration instanceof IDirectEditorConfiguration) {
+ dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), ((IDirectEditorConfiguration)configuration).getTextToEdit(resolveSemanticElement()), (IDirectEditorConfiguration)configuration);
+ } else {
+ return;
+ }
+ final Dialog finalDialog = dialog;
+
+ if(Window.OK == dialog.open()) {
+ TransactionalEditingDomain domain = getEditingDomain();
+ RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
+
+ @Override
+ protected void doExecute() {
+ configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog)finalDialog).getValue());
+
+ }
+ };
+ domain.getCommandStack().execute(command);
+ }
+ }
+ break;
+ case IDirectEdition.DEFAULT_DIRECT_EDITOR:
+
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ break;
+ default:
+ break;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshLabel();
+ refreshFont();
+ refreshFontColor();
+ refreshUnderline();
+ refreshStrikeThrough();
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshLabel() {
+ EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
+ if(maskLabelPolicy == null) {
+ setLabelTextHelper(getFigure(), getLabelText());
+ setLabelIconHelper(getFigure(), getLabelIcon());
+ }
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshUnderline() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextUnderline(style.isUnderline());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshStrikeThrough() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextStrikeThrough(style.isStrikeThrough());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshFont() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null) {
+ FontData fontData = new FontData(style.getFontName(), style.getFontHeight(), (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
+ setFont(fontData);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setFontColor(Color color) {
+ getFigure().setForegroundColor(color);
+ }
+
+ /**
+ * @generated
+ */
+ protected void addSemanticListeners() {
+ if(getParser() instanceof ISemanticParser) {
+ EObject element = resolveSemanticElement();
+ parserElements = ((ISemanticParser)getParser()).getSemanticElementsBeingParsed(element);
+ for(int i = 0; i < parserElements.size(); i++) {
+ addListenerFilter("SemanticModel" + i, this, (EObject)parserElements.get(i)); //$NON-NLS-1$
+ }
+ } else {
+ super.addSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeSemanticListeners() {
+ if(parserElements != null) {
+ for(int i = 0; i < parserElements.size(); i++) {
+ removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
+ }
+ } else {
+ super.removeSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected AccessibleEditPart getAccessibleEditPart() {
+ if(accessibleEP == null) {
+ accessibleEP = new AccessibleGraphicalEditPart() {
+
+ public void getName(AccessibleEvent e) {
+ e.result = getLabelTextHelper(getFigure());
+ }
+ };
+ }
+ return accessibleEP;
+ }
+
+ /**
+ * @generated
+ */
+ private View getFontStyleOwnerView() {
+ return getPrimaryView();
+ }
+
+ /**
+ * Returns the kind of associated editor for direct edition.
+ *
+ * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition
+ * @generated
+ */
+ public int getDirectEditionType() {
+ if(checkExtendedEditor()) {
+ initExtendedEditorConfiguration();
+ return IDirectEdition.EXTENDED_DIRECT_EDITOR;
+ }
+ if(checkDefaultEdition()) {
+ return IDirectEdition.DEFAULT_DIRECT_EDITOR;
+ }
+
+ // not a named element. no specific editor => do nothing
+ return IDirectEdition.NO_DIRECT_EDITION;
+ }
+
+ /**
+ * Checks if an extended editor is present.
+ *
+ * @return <code>true</code> if an extended editor is present.
+ * @generated
+ */
+ protected boolean checkExtendedEditor() {
+ if(resolveSemanticElement() != null) {
+ return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ return false;
+ }
+
+ /**
+ * Checks if a default direct edition is available
+ *
+ * @return <code>true</code> if a default direct edition is available
+ * @generated
+ */
+ protected boolean checkDefaultEdition() {
+ return (getParser() != null);
+ }
+
+ /**
+ * Initializes the extended editor configuration
+ *
+ * @generated
+ */
+ protected void initExtendedEditorConfiguration() {
+ if(configuration == null) {
+ final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("")) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else {
+ configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ }
+ }
+
+ /**
+ * Updates the preference configuration
+ *
+ * @generated
+ */
+ protected void updateExtendedEditorConfiguration() {
+ String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("") && languagePreferred != configuration.getLanguage()) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else if(IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
+ configuration = null;
+ }
+ }
+
+ /**
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
+ protected void performDefaultDirectEditorEdit(final Request theRequest) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void handleNotificationEvent(Notification event) {
+ Object feature = event.getFeature();
+ if(NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
+ Integer c = (Integer)event.getNewValue();
+ setFontColor(DiagramColorRegistry.getInstance().getColor(c));
+ } else if(NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
+ refreshUnderline();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
+ refreshStrikeThrough();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
+ refreshFont();
+ } else {
+ if(getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
+ refreshLabel();
+ }
+ if(getParser() instanceof ISemanticParser) {
+ ISemanticParser modelParser = (ISemanticParser)getParser();
+ if(modelParser.areSemanticElementsAffected(null, event)) {
+ removeSemanticListeners();
+ if(resolveSemanticElement() != null) {
+ addSemanticListeners();
+ }
+ refreshLabel();
+ }
+ }
+ }
+ super.handleNotificationEvent(event);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createFigure() {
+ IFigure label = createFigurePrim();
+ defaultText = getLabelTextHelper(label);
+ return label;
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createFigurePrim() {
+ return new AppliedStereotypeWrappingLabelFigure();
+ }
+
+ /**
+ * @generated
+ */
+ public String getLabelRole() {
+ return "Stereotype";//$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ public String getIconPathRole() {
+ return "";//$NON-NLS-1$
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/EnumerationEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/EnumerationEditPart.java
new file mode 100644
index 00000000000..c50a091fb84
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/EnumerationEditPart.java
@@ -0,0 +1,5374 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.ArrayList;
+import java.util.LinkedList;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Shape;
+import org.eclipse.draw2d.StackLayout;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EStructuralFeature;
+import org.eclipse.gef.EditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.editpolicies.LayoutEditPolicy;
+import org.eclipse.gef.editpolicies.NonResizableEditPolicy;
+import org.eclipse.gef.requests.CreateRequest;
+import org.eclipse.gmf.runtime.diagram.core.edithelpers.CreateElementRequestAdapter;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.CreationEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.DragDropEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.diagram.ui.requests.CreateViewAndElementRequest;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.FigureUtilities;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.gef.ui.figures.DefaultSizeNodeFigure;
+import org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.jface.preference.PreferenceConverter;
+import org.eclipse.papyrus.diagram.common.editparts.NamedElementEditPart;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.HyperLinkPopupBarEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.QualifiedNameDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.ShowHideClassifierContentsEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.ShowHideCompartmentEditPolicy;
+import org.eclipse.papyrus.diagram.common.figure.node.EnumerationFigure;
+import org.eclipse.papyrus.diagram.common.helper.PreferenceInitializerForElementHelper;
+import org.eclipse.papyrus.diagram.composite.edit.policies.EnumerationItemSemanticEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorPlugin;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter;
+import org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper;
+import org.eclipse.swt.graphics.Color;
+
+/**
+ * @generated
+ */
+public class EnumerationEditPart extends
+
+NamedElementEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 2067;
+
+ /**
+ * @generated
+ */
+ protected IFigure contentPane;
+
+ /**
+ * @generated
+ */
+ protected IFigure primaryShape;
+
+ /**
+ * @generated
+ */
+ public EnumerationEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ installEditPolicy(EditPolicyRoles.CREATION_ROLE, new CreationEditPolicy());
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new EnumerationItemSemanticEditPolicy());
+ installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new DragDropEditPolicy());
+ installEditPolicy(EditPolicy.LAYOUT_ROLE, createLayoutEditPolicy());
+ installEditPolicy(QualifiedNameDisplayEditPolicy.QUALIFIED_NAME_POLICY, new QualifiedNameDisplayEditPolicy());
+ installEditPolicy(AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeNodeLabelDisplayEditPolicy());
+ installEditPolicy(EditPolicyRoles.POPUPBAR_ROLE, new HyperLinkPopupBarEditPolicy());
+ installEditPolicy(ShowHideClassifierContentsEditPolicy.SHOW_HIDE_CLASSIFIER_CONTENTS_POLICY, new ShowHideClassifierContentsEditPolicy());
+ installEditPolicy(ShowHideCompartmentEditPolicy.SHOW_HIDE_COMPARTMENT_POLICY, new ShowHideCompartmentEditPolicy());
+ // XXX need an SCR to runtime to have another abstract superclass that would let children add reasonable editpolicies
+ // removeEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CONNECTION_HANDLES_ROLE);
+ }
+
+ /**
+ * Papyrus codeGen
+ *
+ * @generated
+ **/
+ protected void handleNotificationEvent(Notification event) {
+ super.handleNotificationEvent(event);
+
+ }
+
+ /**
+ * @generated
+ */
+ protected LayoutEditPolicy createLayoutEditPolicy() {
+ org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy lep = new org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy() {
+
+ protected EditPolicy createChildEditPolicy(EditPart child) {
+ EditPolicy result = child.getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(result == null) {
+ result = new NonResizableEditPolicy();
+ }
+ return result;
+ }
+
+ protected Command getMoveChildrenCommand(Request request) {
+ return null;
+ }
+
+ protected Command getCreateCommand(CreateRequest request) {
+ return null;
+ }
+ };
+ return lep;
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createNodeShape() {
+ return primaryShape = new EnumerationFigure();
+ }
+
+ /**
+ * @generated
+ */
+ public EnumerationFigure getPrimaryShape() {
+ return (EnumerationFigure)primaryShape;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean addFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof EnumerationNameEditPart) {
+ ((EnumerationNameEditPart)childEditPart).setLabel(getPrimaryShape().getNameLabel());
+ return true;
+ }
+
+ if(childEditPart instanceof EnumerationEnumerationLiteralCompartmentEditPart) {
+ IFigure pane = getPrimaryShape().getEnumerationLiteralCompartmentFigure();
+ setupContentPane(pane); // FIXME each comparment should handle his content pane in his own way
+ pane.add(((EnumerationEnumerationLiteralCompartmentEditPart)childEditPart).getFigure());
+ return true;
+ }
+
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean removeFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof EnumerationNameEditPart) {
+ return true;
+ }
+ if(childEditPart instanceof EnumerationEnumerationLiteralCompartmentEditPart) {
+ IFigure pane = getPrimaryShape().getEnumerationLiteralCompartmentFigure();
+ setupContentPane(pane); // FIXME each comparment should handle his content pane in his own way
+ pane.remove(((EnumerationEnumerationLiteralCompartmentEditPart)childEditPart).getFigure());
+ return true;
+ }
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected void addChildVisual(EditPart childEditPart, int index) {
+ if(addFixedChild(childEditPart)) {
+ return;
+ }
+ super.addChildVisual(childEditPart, -1);
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeChildVisual(EditPart childEditPart) {
+ if(removeFixedChild(childEditPart)) {
+ return;
+ }
+ super.removeChildVisual(childEditPart);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure getContentPaneFor(IGraphicalEditPart editPart) {
+ if(editPart instanceof EnumerationEnumerationLiteralCompartmentEditPart) {
+ return getPrimaryShape().getEnumerationLiteralCompartmentFigure();
+ }
+ return getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ protected NodeFigure createNodePlate() {
+ String prefElementId = "Enumeration";
+ IPreferenceStore store = UMLDiagramEditorPlugin.getInstance().getPreferenceStore();
+ String preferenceConstantWitdh = PreferenceInitializerForElementHelper.getpreferenceKey(getNotationView(), prefElementId, PreferenceConstantHelper.WIDTH);
+ String preferenceConstantHeight = PreferenceInitializerForElementHelper.getpreferenceKey(getNotationView(), prefElementId, PreferenceConstantHelper.HEIGHT);
+ DefaultSizeNodeFigure result = new DefaultSizeNodeFigure(store.getInt(preferenceConstantWitdh), store.getInt(preferenceConstantHeight));
+
+ return result;
+ }
+
+ /**
+ * Creates figure for this edit part.
+ *
+ * Body of this method does not depend on settings in generation model
+ * so you may safely remove <i>generated</i> tag and modify it.
+ *
+ * @generated
+ */
+ protected NodeFigure createNodeFigure() {
+ NodeFigure figure = createNodePlate();
+ figure.setLayoutManager(new StackLayout());
+ IFigure shape = createNodeShape();
+ figure.add(shape);
+ contentPane = setupContentPane(shape);
+ return figure;
+ }
+
+ /**
+ * Default implementation treats passed figure as content pane.
+ * Respects layout one may have set for generated figure.
+ *
+ * @param nodeShape
+ * instance of generated figure class
+ * @generated
+ */
+ protected IFigure setupContentPane(IFigure nodeShape) {
+ if(nodeShape.getLayoutManager() == null) {
+ ConstrainedToolbarLayout layout = new ConstrainedToolbarLayout();
+ layout.setSpacing(5);
+ nodeShape.setLayoutManager(layout);
+ }
+ return nodeShape; // use nodeShape itself as contentPane
+ }
+
+ /**
+ * @generated
+ */
+ public IFigure getContentPane() {
+ if(contentPane != null) {
+ return contentPane;
+ }
+ return super.getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ protected void setForegroundColor(Color color) {
+ if(primaryShape != null) {
+ primaryShape.setForegroundColor(color);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLineWidth(int width) {
+ if(primaryShape instanceof Shape) {
+ ((Shape)primaryShape).setLineWidth(width);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLineType(int style) {
+ if(primaryShape instanceof Shape) {
+ ((Shape)primaryShape).setLineStyle(style);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public EditPart getPrimaryChildEditPart() {
+ return getChildBySemanticHint(UMLVisualIDRegistry.getType(EnumerationNameEditPart.VISUAL_ID));
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnSource() {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(12);
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ types.add(UMLElementTypes.Substitution_4011);
+ types.add(UMLElementTypes.Realization_4006);
+ types.add(UMLElementTypes.Manifestation_4012);
+ types.add(UMLElementTypes.Abstraction_4007);
+ types.add(UMLElementTypes.Usage_4008);
+ types.add(UMLElementTypes.Deployment_4009);
+ types.add(UMLElementTypes.Dependency_4017);
+ types.add(UMLElementTypes.Dependency_4010);
+ types.add(UMLElementTypes.Generalization_4015);
+ types.add(UMLElementTypes.InformationFlow_4021);
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnSourceAndTarget(IGraphicalEditPart targetEditPart) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.EnumerationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.EnumerationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.EnumerationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.EnumerationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.EnumerationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.EnumerationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.EnumerationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.EnumerationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.EnumerationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.EnumerationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.EnumerationEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.EnumerationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMATypesForTarget(IElementType relationshipType) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(relationshipType == UMLElementTypes.ComponentRealization_4004) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InterfaceRealization_4005) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Substitution_4011) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Realization_4006) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Manifestation_4012) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Abstraction_4007) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Usage_4008) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Deployment_4009) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4017) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4010) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Generalization_4015) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ } else if(relationshipType == UMLElementTypes.InformationFlow_4021) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnTarget() {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(17);
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ types.add(UMLElementTypes.Substitution_4011);
+ types.add(UMLElementTypes.Realization_4006);
+ types.add(UMLElementTypes.Manifestation_4012);
+ types.add(UMLElementTypes.Abstraction_4007);
+ types.add(UMLElementTypes.Usage_4008);
+ types.add(UMLElementTypes.Deployment_4009);
+ types.add(UMLElementTypes.Dependency_4017);
+ types.add(UMLElementTypes.Dependency_4010);
+ types.add(UMLElementTypes.Generalization_4015);
+ types.add(UMLElementTypes.TimeObservationEvent_4018);
+ types.add(UMLElementTypes.DurationObservationEvent_4019);
+ types.add(UMLElementTypes.InformationItemRepresented_4020);
+ types.add(UMLElementTypes.InformationFlow_4021);
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMATypesForSource(IElementType relationshipType) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(relationshipType == UMLElementTypes.CommentAnnotatedElement_4002) {
+ types.add(UMLElementTypes.Comment_2109);
+ types.add(UMLElementTypes.Comment_3097);
+ } else if(relationshipType == UMLElementTypes.ConstraintConstrainedElement_4003) {
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.ComponentRealization_4004) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InterfaceRealization_4005) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Substitution_4011) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Realization_4006) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Manifestation_4012) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Abstraction_4007) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Usage_4008) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Deployment_4009) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4017) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4010) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Generalization_4015) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ } else if(relationshipType == UMLElementTypes.TimeObservationEvent_4018) {
+ types.add(UMLElementTypes.TimeObservation_2094);
+ } else if(relationshipType == UMLElementTypes.DurationObservationEvent_4019) {
+ types.add(UMLElementTypes.DurationObservation_2093);
+ } else if(relationshipType == UMLElementTypes.InformationItemRepresented_4020) {
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.InformationItem_3094);
+ } else if(relationshipType == UMLElementTypes.InformationFlow_4021) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public EditPart getTargetEditPart(Request request) {
+ if(request instanceof CreateViewAndElementRequest) {
+ CreateElementRequestAdapter adapter = ((CreateViewAndElementRequest)request).getViewAndElementDescriptor().getCreateElementRequestAdapter();
+ IElementType type = (IElementType)adapter.getAdapter(IElementType.class);
+ if(type == UMLElementTypes.EnumerationLiteral_3066) {
+ return getChildBySemanticHint(UMLVisualIDRegistry.getType(EnumerationEnumerationLiteralCompartmentEditPart.VISUAL_ID));
+ }
+ }
+ return super.getTargetEditPart(request);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public Object getPreferredValue(EStructuralFeature feature) {
+ IPreferenceStore preferenceStore = (IPreferenceStore)getDiagramPreferencesHint().getPreferenceStore();
+ Object result = null;
+
+ if(feature == NotationPackage.eINSTANCE.getLineStyle_LineColor() || feature == NotationPackage.eINSTANCE.getFontStyle_FontColor() || feature == NotationPackage.eINSTANCE.getFillStyle_FillColor()) {
+ String prefColor = null;
+ if(feature == NotationPackage.eINSTANCE.getLineStyle_LineColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("Enumeration", PreferenceConstantHelper.COLOR_LINE);
+ } else if(feature == NotationPackage.eINSTANCE.getFontStyle_FontColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("Enumeration", PreferenceConstantHelper.COLOR_FONT);
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_FillColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("Enumeration", PreferenceConstantHelper.COLOR_FILL);
+ }
+ result = FigureUtilities.RGBToInteger(PreferenceConverter.getColor((IPreferenceStore)preferenceStore, prefColor));
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_Transparency() || feature == NotationPackage.eINSTANCE.getFillStyle_Gradient()) {
+ String prefGradient = PreferenceConstantHelper.getElementConstant("Enumeration", PreferenceConstantHelper.COLOR_GRADIENT);
+ GradientPreferenceConverter gradientPreferenceConverter = new GradientPreferenceConverter(preferenceStore.getString(prefGradient));
+ if(feature == NotationPackage.eINSTANCE.getFillStyle_Transparency()) {
+ result = new Integer(gradientPreferenceConverter.getTransparency());
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_Gradient()) {
+ result = gradientPreferenceConverter.getGradientData();
+ }
+ }
+
+ if(result == null) {
+ result = getStructuralFeatureValue(feature);
+ }
+ return result;
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/EnumerationEditPartCLN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/EnumerationEditPartCLN.java
new file mode 100644
index 00000000000..a9065b7ef97
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/EnumerationEditPartCLN.java
@@ -0,0 +1,781 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EAnnotation;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.emf.transaction.RunnableWithResult;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.AccessibleEditPart;
+import org.eclipse.gef.DragTracker;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.requests.DirectEditRequest;
+import org.eclipse.gef.requests.SelectionRequest;
+import org.eclipse.gef.tools.DirectEditManager;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.CompartmentEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IPrimaryEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.ListItemComponentEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
+import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
+import org.eclipse.gmf.runtime.diagram.ui.tools.DragEditPartsTrackerEx;
+import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
+import org.eclipse.gmf.runtime.notation.FontStyle;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
+import org.eclipse.jface.viewers.ICellEditorValidator;
+import org.eclipse.jface.window.Window;
+import org.eclipse.papyrus.diagram.common.directedit.MultilineLabelDirectEditManager;
+import org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition;
+import org.eclipse.papyrus.diagram.common.editpolicies.IMaskManagedLabelEditPolicy;
+import org.eclipse.papyrus.diagram.common.figure.node.ILabelFigure;
+import org.eclipse.papyrus.diagram.common.util.DiagramEditPartsUtil;
+import org.eclipse.papyrus.diagram.composite.edit.policies.EnumerationItemSemanticEditPolicyCLN;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLTextNonResizableEditPolicy;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLTextSelectionEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.diagram.composite.providers.UMLParserProvider;
+import org.eclipse.papyrus.extensionpoints.editors.Activator;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
+import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
+import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
+import org.eclipse.papyrus.umlutils.ui.VisualInformationPapyrusConstant;
+import org.eclipse.papyrus.umlutils.ui.helper.NameLabelIconHelper;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.AccessibleEvent;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.FontData;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.ui.PlatformUI;
+
+/**
+ * @generated
+ */
+public class EnumerationEditPartCLN
+
+extends CompartmentEditPart
+
+implements ITextAwareEditPart, IPrimaryEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 3111;
+
+ /**
+ * @generated
+ */
+ private DirectEditManager manager;
+
+ /**
+ * @generated
+ */
+ private IParser parser;
+
+ /**
+ * @generated
+ */
+ private List<?> parserElements;
+
+ /**
+ * @generated
+ */
+ private String defaultText;
+
+ /**
+ * direct edition mode (default, undefined, registered editor, etc.)
+ *
+ * @generated
+ */
+ protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
+
+ /**
+ * configuration from a registered edit dialog
+ *
+ * @generated
+ */
+ protected IDirectEditorConfiguration configuration;
+
+ /**
+ * @generated
+ */
+ public EnumerationEditPartCLN(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ public DragTracker getDragTracker(Request request) {
+ if(request instanceof SelectionRequest && ((SelectionRequest)request).getLastButtonPressed() == 3) {
+ return null;
+ }
+ return new DragEditPartsTrackerEx(this);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new EnumerationItemSemanticEditPolicyCLN());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new UMLTextNonResizableEditPolicy());
+ installEditPolicy(EditPolicy.COMPONENT_ROLE, new ListItemComponentEditPolicy());
+ installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelTextHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getText();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getText();
+ } else {
+ return ((Label)figure).getText();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelTextHelper(IFigure figure, String text) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setText(text);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setText(text);
+ } else {
+ ((Label)figure).setText(text);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIconHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getIcon();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getIcon();
+ } else {
+ return ((Label)figure).getIcon();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelIconHelper(IFigure figure, Image icon) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setIcon(icon);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setIcon(icon);
+ } else {
+ ((Label)figure).setIcon(icon);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabel(IFigure figure) {
+ unregisterVisuals();
+ setFigure(figure);
+ defaultText = getLabelTextHelper(figure);
+ registerVisuals();
+ refreshVisuals();
+ }
+
+ /**
+ * @generated
+ */
+ protected List getModelChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject getParserElement() {
+ return resolveSemanticElement();
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIcon() {
+ EObject parserElement = getParserElement();
+ if(parserElement == null) {
+ return null;
+ }
+
+ List<View> views = DiagramEditPartsUtil.findViews(parserElement, getViewer());
+ for(View view : views) {
+ if(NameLabelIconHelper.showLabelIcon(view)) {
+ return UMLElementTypes.getImage(parserElement.eClass());
+ }
+ }
+ return null;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelText() {
+ String text = null;
+ EObject parserElement = getParserElement();
+ if(parserElement != null && getParser() != null) {
+ text = getParser().getPrintString(new EObjectAdapter(parserElement), getParserOptions().intValue());
+ }
+ if(text == null || text.length() == 0) {
+ text = defaultText;
+ }
+ return text;
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabelText(String text) {
+ setLabelTextHelper(getFigure(), text);
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public String getEditText() {
+ if(getParserElement() == null || getParser() == null) {
+ return ""; //$NON-NLS-1$
+ }
+ return getParser().getEditString(new EObjectAdapter(getParserElement()), getParserOptions().intValue());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean isEditable() {
+ return getParser() != null;
+ }
+
+ /**
+ * @generated
+ */
+ public ICellEditorValidator getEditTextValidator() {
+ return new ICellEditorValidator() {
+
+ public String isValid(final Object value) {
+ if(value instanceof String) {
+ final EObject element = getParserElement();
+ final IParser parser = getParser();
+ try {
+ IParserEditStatus valid = (IParserEditStatus)getEditingDomain().runExclusive(new RunnableWithResult.Impl() {
+
+ public void run() {
+ setResult(parser.isValidEditString(new EObjectAdapter(element), (String)value));
+ }
+ });
+ return valid.getCode() == ParserEditStatus.EDITABLE ? null : valid.getMessage();
+ } catch (InterruptedException ie) {
+ ie.printStackTrace();
+ }
+ }
+
+ // shouldn't get here
+ return null;
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ public IContentAssistProcessor getCompletionProcessor() {
+ if(getParserElement() == null || getParser() == null) {
+ return null;
+ }
+ return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
+ }
+
+ /**
+ * @generated
+ */
+ public ParserOptions getParserOptions() {
+ return ParserOptions.NONE;
+ }
+
+ /**
+ * @generated
+ */
+ public IParser getParser() {
+ if(parser == null) {
+ parser = UMLParserProvider.getParser(UMLElementTypes.Enumeration_3111, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.diagram.composite.edit.parts.EnumerationEditPartCLN.VISUAL_ID));
+ }
+ return parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected DirectEditManager getManager() {
+ if(manager == null) {
+ setManager(new MultilineLabelDirectEditManager(this, MultilineLabelDirectEditManager.getTextCellEditorClass(this), UMLEditPartFactory.getTextCellEditorLocator(this)));
+ }
+ return manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setManager(DirectEditManager manager) {
+ this.manager = manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit() {
+ getManager().show();
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit(Point eventLocation) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(eventLocation.getSWTPoint());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void performDirectEdit(char initialCharacter) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(initialCharacter);
+ } else {
+ performDirectEdit();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEditRequest(Request request) {
+
+ final Request theRequest = request;
+
+ if(IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
+ directEditionMode = getDirectEditionType();
+ }
+ switch(directEditionMode) {
+ case IDirectEdition.NO_DIRECT_EDITION:
+ // no direct edition mode => does nothing
+ return;
+ case IDirectEdition.EXTENDED_DIRECT_EDITOR:
+ updateExtendedEditorConfiguration();
+ if(configuration == null || configuration.getLanguage() == null) {
+ performDefaultDirectEditorEdit(theRequest);
+ } else {
+ configuration.preEditAction(resolveSemanticElement());
+ Dialog dialog = null;
+ if(configuration instanceof IPopupEditorConfiguration) {
+ IPopupEditorHelper helper = ((IPopupEditorConfiguration)configuration).createPopupEditorHelper(this);
+ helper.showEditor();
+ return;
+ } else if(configuration instanceof IAdvancedEditorConfiguration) {
+ dialog = ((IAdvancedEditorConfiguration)configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
+ } else if(configuration instanceof IDirectEditorConfiguration) {
+ dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), ((IDirectEditorConfiguration)configuration).getTextToEdit(resolveSemanticElement()), (IDirectEditorConfiguration)configuration);
+ } else {
+ return;
+ }
+ final Dialog finalDialog = dialog;
+
+ if(Window.OK == dialog.open()) {
+ TransactionalEditingDomain domain = getEditingDomain();
+ RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
+
+ @Override
+ protected void doExecute() {
+ configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog)finalDialog).getValue());
+
+ }
+ };
+ domain.getCommandStack().execute(command);
+ }
+ }
+ break;
+ case IDirectEdition.DEFAULT_DIRECT_EDITOR:
+
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ break;
+ default:
+ break;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshLabel();
+ refreshFont();
+ refreshFontColor();
+ refreshUnderline();
+ refreshStrikeThrough();
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshLabel() {
+ EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
+ if(maskLabelPolicy == null) {
+ setLabelTextHelper(getFigure(), getLabelText());
+ setLabelIconHelper(getFigure(), getLabelIcon());
+ }
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshUnderline() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextUnderline(style.isUnderline());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshStrikeThrough() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextStrikeThrough(style.isStrikeThrough());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshFont() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null) {
+ FontData fontData = new FontData(style.getFontName(), style.getFontHeight(), (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
+ setFont(fontData);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setFontColor(Color color) {
+ getFigure().setForegroundColor(color);
+ }
+
+ /**
+ * @generated
+ */
+ protected void addSemanticListeners() {
+ if(getParser() instanceof ISemanticParser) {
+ EObject element = resolveSemanticElement();
+ parserElements = ((ISemanticParser)getParser()).getSemanticElementsBeingParsed(element);
+ for(int i = 0; i < parserElements.size(); i++) {
+ addListenerFilter("SemanticModel" + i, this, (EObject)parserElements.get(i)); //$NON-NLS-1$
+ }
+ } else {
+ super.addSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeSemanticListeners() {
+ if(parserElements != null) {
+ for(int i = 0; i < parserElements.size(); i++) {
+ removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
+ }
+ } else {
+ super.removeSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected AccessibleEditPart getAccessibleEditPart() {
+ if(accessibleEP == null) {
+ accessibleEP = new AccessibleGraphicalEditPart() {
+
+ public void getName(AccessibleEvent e) {
+ e.result = getLabelTextHelper(getFigure());
+ }
+ };
+ }
+ return accessibleEP;
+ }
+
+ /**
+ * @generated
+ */
+ private View getFontStyleOwnerView() {
+ return getPrimaryView();
+ }
+
+ /**
+ * Returns the kind of associated editor for direct edition.
+ *
+ * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition
+ * @generated
+ */
+ public int getDirectEditionType() {
+ if(checkExtendedEditor()) {
+ initExtendedEditorConfiguration();
+ return IDirectEdition.EXTENDED_DIRECT_EDITOR;
+ }
+ if(checkDefaultEdition()) {
+ return IDirectEdition.DEFAULT_DIRECT_EDITOR;
+ }
+
+ // not a named element. no specific editor => do nothing
+ return IDirectEdition.NO_DIRECT_EDITION;
+ }
+
+ /**
+ * Checks if an extended editor is present.
+ *
+ * @return <code>true</code> if an extended editor is present.
+ * @generated
+ */
+ protected boolean checkExtendedEditor() {
+ if(resolveSemanticElement() != null) {
+ return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ return false;
+ }
+
+ /**
+ * Checks if a default direct edition is available
+ *
+ * @return <code>true</code> if a default direct edition is available
+ * @generated
+ */
+ protected boolean checkDefaultEdition() {
+ return (getParser() != null);
+ }
+
+ /**
+ * Initializes the extended editor configuration
+ *
+ * @generated
+ */
+ protected void initExtendedEditorConfiguration() {
+ if(configuration == null) {
+ final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("")) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else {
+ configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ }
+ }
+
+ /**
+ * Updates the preference configuration
+ *
+ * @generated
+ */
+ protected void updateExtendedEditorConfiguration() {
+ String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("") && languagePreferred != configuration.getLanguage()) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else if(IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
+ configuration = null;
+ }
+ }
+
+ /**
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
+ protected void performDefaultDirectEditorEdit(final Request theRequest) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void addNotationalListeners() {
+ super.addNotationalListeners();
+ addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeNotationalListeners() {
+ super.removeNotationalListeners();
+ removeListenerFilter("PrimaryView"); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void handleNotificationEvent(Notification event) {
+ Object feature = event.getFeature();
+ if(NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
+ Integer c = (Integer)event.getNewValue();
+ setFontColor(DiagramColorRegistry.getInstance().getColor(c));
+ } else if(NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
+ refreshUnderline();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
+ refreshStrikeThrough();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
+ refreshFont();
+ } else {
+ if(getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
+ refreshLabel();
+ }
+ if(getParser() instanceof ISemanticParser) {
+ ISemanticParser modelParser = (ISemanticParser)getParser();
+ if(modelParser.areSemanticElementsAffected(null, event)) {
+ removeSemanticListeners();
+ if(resolveSemanticElement() != null) {
+ addSemanticListeners();
+ }
+ refreshLabel();
+ }
+ }
+ }
+ if(event.getNewValue() instanceof EAnnotation && VisualInformationPapyrusConstant.DISPLAY_NAMELABELICON.equals(((EAnnotation)event.getNewValue()).getSource())) {
+ refreshLabel();
+ }
+ super.handleNotificationEvent(event);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createFigure() {
+ IFigure label = createFigurePrim();
+ defaultText = getLabelTextHelper(label);
+ return label;
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createFigurePrim() {
+ return new WrappingLabel();
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/EnumerationEditPartCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/EnumerationEditPartCN.java
new file mode 100644
index 00000000000..a508e205c0e
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/EnumerationEditPartCN.java
@@ -0,0 +1,5377 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.ArrayList;
+import java.util.LinkedList;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Shape;
+import org.eclipse.draw2d.StackLayout;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EStructuralFeature;
+import org.eclipse.gef.EditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.editpolicies.LayoutEditPolicy;
+import org.eclipse.gef.editpolicies.NonResizableEditPolicy;
+import org.eclipse.gef.requests.CreateRequest;
+import org.eclipse.gmf.runtime.diagram.core.edithelpers.CreateElementRequestAdapter;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.CreationEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.DragDropEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.diagram.ui.requests.CreateViewAndElementRequest;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.FigureUtilities;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.gef.ui.figures.DefaultSizeNodeFigure;
+import org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.jface.preference.PreferenceConverter;
+import org.eclipse.papyrus.diagram.common.editparts.NamedElementEditPart;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.HyperLinkPopupBarEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.QualifiedNameDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.ShowHideClassifierContentsEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.ShowHideCompartmentEditPolicy;
+import org.eclipse.papyrus.diagram.common.figure.node.EnumerationFigure;
+import org.eclipse.papyrus.diagram.common.helper.PreferenceInitializerForElementHelper;
+import org.eclipse.papyrus.diagram.composite.custom.edit.parts.ConstrainedNamedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.NoScrollClassifierResizableShapeEditPolicy;
+import org.eclipse.papyrus.diagram.composite.edit.policies.EnumerationItemSemanticEditPolicyCN;
+import org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorPlugin;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter;
+import org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper;
+import org.eclipse.swt.graphics.Color;
+
+/**
+ * @generated
+ */
+public class EnumerationEditPartCN extends
+
+ConstrainedNamedElementEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 3079;
+
+ /**
+ * @generated
+ */
+ protected IFigure contentPane;
+
+ /**
+ * @generated
+ */
+ protected IFigure primaryShape;
+
+ /**
+ * @generated
+ */
+ public EnumerationEditPartCN(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ installEditPolicy(EditPolicyRoles.CREATION_ROLE, new CreationEditPolicy());
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new EnumerationItemSemanticEditPolicyCN());
+ installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new DragDropEditPolicy());
+ installEditPolicy(EditPolicy.LAYOUT_ROLE, createLayoutEditPolicy());
+ installEditPolicy(QualifiedNameDisplayEditPolicy.QUALIFIED_NAME_POLICY, new QualifiedNameDisplayEditPolicy());
+ installEditPolicy(AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeNodeLabelDisplayEditPolicy());
+ installEditPolicy(EditPolicyRoles.POPUPBAR_ROLE, new HyperLinkPopupBarEditPolicy());
+ installEditPolicy(ShowHideClassifierContentsEditPolicy.SHOW_HIDE_CLASSIFIER_CONTENTS_POLICY, new ShowHideClassifierContentsEditPolicy());
+ installEditPolicy(ShowHideCompartmentEditPolicy.SHOW_HIDE_COMPARTMENT_POLICY, new ShowHideCompartmentEditPolicy());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new NoScrollClassifierResizableShapeEditPolicy());
+ // XXX need an SCR to runtime to have another abstract superclass that would let children add reasonable editpolicies
+ // removeEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CONNECTION_HANDLES_ROLE);
+ }
+
+ /**
+ * Papyrus codeGen
+ *
+ * @generated
+ **/
+ protected void handleNotificationEvent(Notification event) {
+ super.handleNotificationEvent(event);
+
+ }
+
+ /**
+ * @generated
+ */
+ protected LayoutEditPolicy createLayoutEditPolicy() {
+ org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy lep = new org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy() {
+
+ protected EditPolicy createChildEditPolicy(EditPart child) {
+ EditPolicy result = child.getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(result == null) {
+ result = new NonResizableEditPolicy();
+ }
+ return result;
+ }
+
+ protected Command getMoveChildrenCommand(Request request) {
+ return null;
+ }
+
+ protected Command getCreateCommand(CreateRequest request) {
+ return null;
+ }
+ };
+ return lep;
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createNodeShape() {
+ return primaryShape = new EnumerationFigure();
+ }
+
+ /**
+ * @generated
+ */
+ public EnumerationFigure getPrimaryShape() {
+ return (EnumerationFigure)primaryShape;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean addFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof EnumerationNameEditPartCN) {
+ ((EnumerationNameEditPartCN)childEditPart).setLabel(getPrimaryShape().getNameLabel());
+ return true;
+ }
+
+ if(childEditPart instanceof EnumerationEnumerationLiteralCompartmentEditPartCN) {
+ IFigure pane = getPrimaryShape().getEnumerationLiteralCompartmentFigure();
+ setupContentPane(pane); // FIXME each comparment should handle his content pane in his own way
+ pane.add(((EnumerationEnumerationLiteralCompartmentEditPartCN)childEditPart).getFigure());
+ return true;
+ }
+
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean removeFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof EnumerationNameEditPartCN) {
+ return true;
+ }
+ if(childEditPart instanceof EnumerationEnumerationLiteralCompartmentEditPartCN) {
+ IFigure pane = getPrimaryShape().getEnumerationLiteralCompartmentFigure();
+ setupContentPane(pane); // FIXME each comparment should handle his content pane in his own way
+ pane.remove(((EnumerationEnumerationLiteralCompartmentEditPartCN)childEditPart).getFigure());
+ return true;
+ }
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected void addChildVisual(EditPart childEditPart, int index) {
+ if(addFixedChild(childEditPart)) {
+ return;
+ }
+ super.addChildVisual(childEditPart, -1);
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeChildVisual(EditPart childEditPart) {
+ if(removeFixedChild(childEditPart)) {
+ return;
+ }
+ super.removeChildVisual(childEditPart);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure getContentPaneFor(IGraphicalEditPart editPart) {
+ if(editPart instanceof EnumerationEnumerationLiteralCompartmentEditPartCN) {
+ return getPrimaryShape().getEnumerationLiteralCompartmentFigure();
+ }
+ return getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ protected NodeFigure createNodePlate() {
+ String prefElementId = "Enumeration";
+ IPreferenceStore store = UMLDiagramEditorPlugin.getInstance().getPreferenceStore();
+ String preferenceConstantWitdh = PreferenceInitializerForElementHelper.getpreferenceKey(getNotationView(), prefElementId, PreferenceConstantHelper.WIDTH);
+ String preferenceConstantHeight = PreferenceInitializerForElementHelper.getpreferenceKey(getNotationView(), prefElementId, PreferenceConstantHelper.HEIGHT);
+ DefaultSizeNodeFigure result = new DefaultSizeNodeFigure(store.getInt(preferenceConstantWitdh), store.getInt(preferenceConstantHeight));
+
+ return result;
+ }
+
+ /**
+ * Creates figure for this edit part.
+ *
+ * Body of this method does not depend on settings in generation model
+ * so you may safely remove <i>generated</i> tag and modify it.
+ *
+ * @generated
+ */
+ protected NodeFigure createNodeFigure() {
+ NodeFigure figure = createNodePlate();
+ figure.setLayoutManager(new StackLayout());
+ IFigure shape = createNodeShape();
+ figure.add(shape);
+ contentPane = setupContentPane(shape);
+ return figure;
+ }
+
+ /**
+ * Default implementation treats passed figure as content pane.
+ * Respects layout one may have set for generated figure.
+ *
+ * @param nodeShape
+ * instance of generated figure class
+ * @generated
+ */
+ protected IFigure setupContentPane(IFigure nodeShape) {
+ if(nodeShape.getLayoutManager() == null) {
+ ConstrainedToolbarLayout layout = new ConstrainedToolbarLayout();
+ layout.setSpacing(5);
+ nodeShape.setLayoutManager(layout);
+ }
+ return nodeShape; // use nodeShape itself as contentPane
+ }
+
+ /**
+ * @generated
+ */
+ public IFigure getContentPane() {
+ if(contentPane != null) {
+ return contentPane;
+ }
+ return super.getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ protected void setForegroundColor(Color color) {
+ if(primaryShape != null) {
+ primaryShape.setForegroundColor(color);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLineWidth(int width) {
+ if(primaryShape instanceof Shape) {
+ ((Shape)primaryShape).setLineWidth(width);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLineType(int style) {
+ if(primaryShape instanceof Shape) {
+ ((Shape)primaryShape).setLineStyle(style);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public EditPart getPrimaryChildEditPart() {
+ return getChildBySemanticHint(UMLVisualIDRegistry.getType(EnumerationNameEditPartCN.VISUAL_ID));
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnSource() {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(12);
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ types.add(UMLElementTypes.Substitution_4011);
+ types.add(UMLElementTypes.Realization_4006);
+ types.add(UMLElementTypes.Manifestation_4012);
+ types.add(UMLElementTypes.Abstraction_4007);
+ types.add(UMLElementTypes.Usage_4008);
+ types.add(UMLElementTypes.Deployment_4009);
+ types.add(UMLElementTypes.Dependency_4017);
+ types.add(UMLElementTypes.Dependency_4010);
+ types.add(UMLElementTypes.Generalization_4015);
+ types.add(UMLElementTypes.InformationFlow_4021);
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnSourceAndTarget(IGraphicalEditPart targetEditPart) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.EnumerationEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.EnumerationEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.EnumerationEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMATypesForTarget(IElementType relationshipType) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(relationshipType == UMLElementTypes.ComponentRealization_4004) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InterfaceRealization_4005) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Substitution_4011) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Realization_4006) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Manifestation_4012) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Abstraction_4007) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Usage_4008) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Deployment_4009) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4017) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4010) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Generalization_4015) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ } else if(relationshipType == UMLElementTypes.InformationFlow_4021) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnTarget() {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(17);
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ types.add(UMLElementTypes.Substitution_4011);
+ types.add(UMLElementTypes.Realization_4006);
+ types.add(UMLElementTypes.Manifestation_4012);
+ types.add(UMLElementTypes.Abstraction_4007);
+ types.add(UMLElementTypes.Usage_4008);
+ types.add(UMLElementTypes.Deployment_4009);
+ types.add(UMLElementTypes.Dependency_4017);
+ types.add(UMLElementTypes.Dependency_4010);
+ types.add(UMLElementTypes.Generalization_4015);
+ types.add(UMLElementTypes.TimeObservationEvent_4018);
+ types.add(UMLElementTypes.DurationObservationEvent_4019);
+ types.add(UMLElementTypes.InformationItemRepresented_4020);
+ types.add(UMLElementTypes.InformationFlow_4021);
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMATypesForSource(IElementType relationshipType) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(relationshipType == UMLElementTypes.CommentAnnotatedElement_4002) {
+ types.add(UMLElementTypes.Comment_2109);
+ types.add(UMLElementTypes.Comment_3097);
+ } else if(relationshipType == UMLElementTypes.ConstraintConstrainedElement_4003) {
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.ComponentRealization_4004) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InterfaceRealization_4005) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Substitution_4011) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Realization_4006) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Manifestation_4012) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Abstraction_4007) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Usage_4008) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Deployment_4009) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4017) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4010) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Generalization_4015) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ } else if(relationshipType == UMLElementTypes.TimeObservationEvent_4018) {
+ types.add(UMLElementTypes.TimeObservation_2094);
+ } else if(relationshipType == UMLElementTypes.DurationObservationEvent_4019) {
+ types.add(UMLElementTypes.DurationObservation_2093);
+ } else if(relationshipType == UMLElementTypes.InformationItemRepresented_4020) {
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.InformationItem_3094);
+ } else if(relationshipType == UMLElementTypes.InformationFlow_4021) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public EditPart getTargetEditPart(Request request) {
+ if(request instanceof CreateViewAndElementRequest) {
+ CreateElementRequestAdapter adapter = ((CreateViewAndElementRequest)request).getViewAndElementDescriptor().getCreateElementRequestAdapter();
+ IElementType type = (IElementType)adapter.getAdapter(IElementType.class);
+ if(type == UMLElementTypes.EnumerationLiteral_3066) {
+ return getChildBySemanticHint(UMLVisualIDRegistry.getType(EnumerationEnumerationLiteralCompartmentEditPartCN.VISUAL_ID));
+ }
+ }
+ return super.getTargetEditPart(request);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public Object getPreferredValue(EStructuralFeature feature) {
+ IPreferenceStore preferenceStore = (IPreferenceStore)getDiagramPreferencesHint().getPreferenceStore();
+ Object result = null;
+
+ if(feature == NotationPackage.eINSTANCE.getLineStyle_LineColor() || feature == NotationPackage.eINSTANCE.getFontStyle_FontColor() || feature == NotationPackage.eINSTANCE.getFillStyle_FillColor()) {
+ String prefColor = null;
+ if(feature == NotationPackage.eINSTANCE.getLineStyle_LineColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("Enumeration", PreferenceConstantHelper.COLOR_LINE);
+ } else if(feature == NotationPackage.eINSTANCE.getFontStyle_FontColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("Enumeration", PreferenceConstantHelper.COLOR_FONT);
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_FillColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("Enumeration", PreferenceConstantHelper.COLOR_FILL);
+ }
+ result = FigureUtilities.RGBToInteger(PreferenceConverter.getColor((IPreferenceStore)preferenceStore, prefColor));
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_Transparency() || feature == NotationPackage.eINSTANCE.getFillStyle_Gradient()) {
+ String prefGradient = PreferenceConstantHelper.getElementConstant("Enumeration", PreferenceConstantHelper.COLOR_GRADIENT);
+ GradientPreferenceConverter gradientPreferenceConverter = new GradientPreferenceConverter(preferenceStore.getString(prefGradient));
+ if(feature == NotationPackage.eINSTANCE.getFillStyle_Transparency()) {
+ result = new Integer(gradientPreferenceConverter.getTransparency());
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_Gradient()) {
+ result = gradientPreferenceConverter.getGradientData();
+ }
+ }
+
+ if(result == null) {
+ result = getStructuralFeatureValue(feature);
+ }
+ return result;
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/EnumerationEnumerationLiteralCompartmentEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/EnumerationEnumerationLiteralCompartmentEditPart.java
new file mode 100644
index 00000000000..51a74b08134
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/EnumerationEnumerationLiteralCompartmentEditPart.java
@@ -0,0 +1,125 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import org.eclipse.draw2d.geometry.Dimension;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.draw2d.geometry.Rectangle;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.GraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ListCompartmentEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.CreationEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.DragDropEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.ResizableCompartmentEditPolicy;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.diagram.common.editpolicies.DuplicatePasteEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.CustomDiagramDragDropEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.RemoveOrphanViewPolicy;
+import org.eclipse.papyrus.diagram.composite.edit.policies.EnumerationEnumerationLiteralCompartmentItemSemanticEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.Messages;
+
+/**
+ * @generated
+ */
+public class EnumerationEnumerationLiteralCompartmentEditPart
+
+extends ListCompartmentEditPart
+
+{
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 7048;
+
+ /**
+ * @generated
+ */
+ public EnumerationEnumerationLiteralCompartmentEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean hasModelChildrenChanged(Notification evt) {
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ public String getCompartmentName() {
+ return Messages.EnumerationEnumerationLiteralCompartmentEditPart_title;
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new ResizableCompartmentEditPolicy());
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new EnumerationEnumerationLiteralCompartmentItemSemanticEditPolicy());
+ installEditPolicy(EditPolicyRoles.CREATION_ROLE, new CreationEditPolicy());
+ installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new DragDropEditPolicy());
+ installEditPolicy(DuplicatePasteEditPolicy.PASTE_ROLE, new DuplicatePasteEditPolicy());
+ installEditPolicy("REMOVE_ORPHAN_VIEW", new RemoveOrphanViewPolicy()); //$NON-NLS-1$
+ installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new CustomDiagramDragDropEditPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ protected void setRatio(Double ratio) {
+ if(getFigure().getParent().getLayoutManager() instanceof ConstrainedToolbarLayout) {
+ super.setRatio(ratio);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void handleNotificationEvent(Notification notification) {
+ Object feature = notification.getFeature();
+ if(NotationPackage.eINSTANCE.getSize_Width().equals(feature) || NotationPackage.eINSTANCE.getSize_Height().equals(feature) || NotationPackage.eINSTANCE.getLocation_X().equals(feature) || NotationPackage.eINSTANCE.getLocation_Y().equals(feature)) {
+ refreshBounds();
+ }
+ super.handleNotificationEvent(notification);
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshBounds() {
+ int width = ((Integer)getStructuralFeatureValue(NotationPackage.eINSTANCE.getSize_Width())).intValue();
+ int height = ((Integer)getStructuralFeatureValue(NotationPackage.eINSTANCE.getSize_Height())).intValue();
+ Dimension size = new Dimension(width, height);
+ int x = ((Integer)getStructuralFeatureValue(NotationPackage.eINSTANCE.getLocation_X())).intValue();
+ int y = ((Integer)getStructuralFeatureValue(NotationPackage.eINSTANCE.getLocation_Y())).intValue();
+ Point loc = new Point(x, y);
+ ((GraphicalEditPart)getParent()).setLayoutConstraint(this, getFigure(), new Rectangle(loc, size));
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshBounds();
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/EnumerationEnumerationLiteralCompartmentEditPartCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/EnumerationEnumerationLiteralCompartmentEditPartCN.java
new file mode 100644
index 00000000000..3af895d9b60
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/EnumerationEnumerationLiteralCompartmentEditPartCN.java
@@ -0,0 +1,125 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import org.eclipse.draw2d.geometry.Dimension;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.draw2d.geometry.Rectangle;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.GraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ListCompartmentEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.CreationEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.DragDropEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.ResizableCompartmentEditPolicy;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.diagram.common.editpolicies.DuplicatePasteEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.CustomDiagramDragDropEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.RemoveOrphanViewPolicy;
+import org.eclipse.papyrus.diagram.composite.edit.policies.EnumerationEnumerationLiteralCompartmentItemSemanticEditPolicyCN;
+import org.eclipse.papyrus.diagram.composite.part.Messages;
+
+/**
+ * @generated
+ */
+public class EnumerationEnumerationLiteralCompartmentEditPartCN
+
+extends ListCompartmentEditPart
+
+{
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 7049;
+
+ /**
+ * @generated
+ */
+ public EnumerationEnumerationLiteralCompartmentEditPartCN(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean hasModelChildrenChanged(Notification evt) {
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ public String getCompartmentName() {
+ return Messages.EnumerationEnumerationLiteralCompartmentEditPartCN_title;
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new ResizableCompartmentEditPolicy());
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new EnumerationEnumerationLiteralCompartmentItemSemanticEditPolicyCN());
+ installEditPolicy(EditPolicyRoles.CREATION_ROLE, new CreationEditPolicy());
+ installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new DragDropEditPolicy());
+ installEditPolicy(DuplicatePasteEditPolicy.PASTE_ROLE, new DuplicatePasteEditPolicy());
+ installEditPolicy("REMOVE_ORPHAN_VIEW", new RemoveOrphanViewPolicy()); //$NON-NLS-1$
+ installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new CustomDiagramDragDropEditPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ protected void setRatio(Double ratio) {
+ if(getFigure().getParent().getLayoutManager() instanceof ConstrainedToolbarLayout) {
+ super.setRatio(ratio);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void handleNotificationEvent(Notification notification) {
+ Object feature = notification.getFeature();
+ if(NotationPackage.eINSTANCE.getSize_Width().equals(feature) || NotationPackage.eINSTANCE.getSize_Height().equals(feature) || NotationPackage.eINSTANCE.getLocation_X().equals(feature) || NotationPackage.eINSTANCE.getLocation_Y().equals(feature)) {
+ refreshBounds();
+ }
+ super.handleNotificationEvent(notification);
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshBounds() {
+ int width = ((Integer)getStructuralFeatureValue(NotationPackage.eINSTANCE.getSize_Width())).intValue();
+ int height = ((Integer)getStructuralFeatureValue(NotationPackage.eINSTANCE.getSize_Height())).intValue();
+ Dimension size = new Dimension(width, height);
+ int x = ((Integer)getStructuralFeatureValue(NotationPackage.eINSTANCE.getLocation_X())).intValue();
+ int y = ((Integer)getStructuralFeatureValue(NotationPackage.eINSTANCE.getLocation_Y())).intValue();
+ Point loc = new Point(x, y);
+ ((GraphicalEditPart)getParent()).setLayoutConstraint(this, getFigure(), new Rectangle(loc, size));
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshBounds();
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/EnumerationLiteralEditPartCLN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/EnumerationLiteralEditPartCLN.java
new file mode 100644
index 00000000000..34415af526f
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/EnumerationLiteralEditPartCLN.java
@@ -0,0 +1,805 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EAnnotation;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.emf.transaction.RunnableWithResult;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.AccessibleEditPart;
+import org.eclipse.gef.DragTracker;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.requests.DirectEditRequest;
+import org.eclipse.gef.requests.SelectionRequest;
+import org.eclipse.gef.tools.DirectEditManager;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.CompartmentEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IPrimaryEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.ListItemComponentEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
+import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
+import org.eclipse.gmf.runtime.diagram.ui.tools.DragEditPartsTrackerEx;
+import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
+import org.eclipse.gmf.runtime.notation.FontStyle;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
+import org.eclipse.jface.viewers.ICellEditorValidator;
+import org.eclipse.jface.window.Window;
+import org.eclipse.papyrus.diagram.common.directedit.MultilineLabelDirectEditManager;
+import org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition;
+import org.eclipse.papyrus.diagram.common.editpolicies.IMaskManagedLabelEditPolicy;
+import org.eclipse.papyrus.diagram.common.figure.node.ILabelFigure;
+import org.eclipse.papyrus.diagram.common.util.DiagramEditPartsUtil;
+import org.eclipse.papyrus.diagram.composite.edit.policies.EnumerationLiteralItemSemanticEditPolicyCLN;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLTextNonResizableEditPolicy;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLTextSelectionEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.diagram.composite.providers.UMLParserProvider;
+import org.eclipse.papyrus.extensionpoints.editors.Activator;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
+import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
+import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
+import org.eclipse.papyrus.umlutils.ui.VisualInformationPapyrusConstant;
+import org.eclipse.papyrus.umlutils.ui.helper.NameLabelIconHelper;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.AccessibleEvent;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.Font;
+import org.eclipse.swt.graphics.FontData;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.swt.widgets.Display;
+import org.eclipse.ui.PlatformUI;
+
+/**
+ * @generated
+ */
+public class EnumerationLiteralEditPartCLN
+
+extends CompartmentEditPart
+
+implements ITextAwareEditPart, IPrimaryEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 3066;
+
+ /**
+ * @generated
+ */
+ private DirectEditManager manager;
+
+ /**
+ * @generated
+ */
+ private IParser parser;
+
+ /**
+ * @generated
+ */
+ private List<?> parserElements;
+
+ /**
+ * @generated
+ */
+ private String defaultText;
+
+ /**
+ * direct edition mode (default, undefined, registered editor, etc.)
+ *
+ * @generated
+ */
+ protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
+
+ /**
+ * configuration from a registered edit dialog
+ *
+ * @generated
+ */
+ protected IDirectEditorConfiguration configuration;
+
+ /**
+ * @generated
+ */
+ public EnumerationLiteralEditPartCLN(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ public DragTracker getDragTracker(Request request) {
+ if(request instanceof SelectionRequest && ((SelectionRequest)request).getLastButtonPressed() == 3) {
+ return null;
+ }
+ return new DragEditPartsTrackerEx(this);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new EnumerationLiteralItemSemanticEditPolicyCLN());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new UMLTextNonResizableEditPolicy());
+ installEditPolicy(EditPolicy.COMPONENT_ROLE, new ListItemComponentEditPolicy());
+ installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelTextHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getText();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getText();
+ } else {
+ return ((Label)figure).getText();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelTextHelper(IFigure figure, String text) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setText(text);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setText(text);
+ } else {
+ ((Label)figure).setText(text);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIconHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getIcon();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getIcon();
+ } else {
+ return ((Label)figure).getIcon();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelIconHelper(IFigure figure, Image icon) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setIcon(icon);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setIcon(icon);
+ } else {
+ ((Label)figure).setIcon(icon);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabel(IFigure figure) {
+ unregisterVisuals();
+ setFigure(figure);
+ defaultText = getLabelTextHelper(figure);
+ registerVisuals();
+ refreshVisuals();
+ }
+
+ /**
+ * @generated
+ */
+ protected List getModelChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject getParserElement() {
+ return resolveSemanticElement();
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIcon() {
+ EObject parserElement = getParserElement();
+ if(parserElement == null) {
+ return null;
+ }
+
+ List<View> views = DiagramEditPartsUtil.findViews(parserElement, getViewer());
+ for(View view : views) {
+ if(NameLabelIconHelper.showLabelIcon(view)) {
+ return UMLElementTypes.getImage(parserElement.eClass());
+ }
+ }
+ return null;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelText() {
+ String text = null;
+ EObject parserElement = getParserElement();
+ if(parserElement != null && getParser() != null) {
+ text = getParser().getPrintString(new EObjectAdapter(parserElement), getParserOptions().intValue());
+ }
+ if(text == null || text.length() == 0) {
+ text = defaultText;
+ }
+ return text;
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabelText(String text) {
+ setLabelTextHelper(getFigure(), text);
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public String getEditText() {
+ if(getParserElement() == null || getParser() == null) {
+ return ""; //$NON-NLS-1$
+ }
+ return getParser().getEditString(new EObjectAdapter(getParserElement()), getParserOptions().intValue());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean isEditable() {
+ return getParser() != null;
+ }
+
+ /**
+ * @generated
+ */
+ public ICellEditorValidator getEditTextValidator() {
+ return new ICellEditorValidator() {
+
+ public String isValid(final Object value) {
+ if(value instanceof String) {
+ final EObject element = getParserElement();
+ final IParser parser = getParser();
+ try {
+ IParserEditStatus valid = (IParserEditStatus)getEditingDomain().runExclusive(new RunnableWithResult.Impl() {
+
+ public void run() {
+ setResult(parser.isValidEditString(new EObjectAdapter(element), (String)value));
+ }
+ });
+ return valid.getCode() == ParserEditStatus.EDITABLE ? null : valid.getMessage();
+ } catch (InterruptedException ie) {
+ ie.printStackTrace();
+ }
+ }
+
+ // shouldn't get here
+ return null;
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ public IContentAssistProcessor getCompletionProcessor() {
+ if(getParserElement() == null || getParser() == null) {
+ return null;
+ }
+ return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
+ }
+
+ /**
+ * @generated
+ */
+ public ParserOptions getParserOptions() {
+ return ParserOptions.NONE;
+ }
+
+ /**
+ * @generated
+ */
+ public IParser getParser() {
+ if(parser == null) {
+ parser = UMLParserProvider.getParser(UMLElementTypes.EnumerationLiteral_3066, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.diagram.composite.edit.parts.EnumerationLiteralEditPartCLN.VISUAL_ID));
+ }
+ return parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected DirectEditManager getManager() {
+ if(manager == null) {
+ setManager(new MultilineLabelDirectEditManager(this, MultilineLabelDirectEditManager.getTextCellEditorClass(this), UMLEditPartFactory.getTextCellEditorLocator(this)));
+ }
+ return manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setManager(DirectEditManager manager) {
+ this.manager = manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit() {
+ getManager().show();
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit(Point eventLocation) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(eventLocation.getSWTPoint());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void performDirectEdit(char initialCharacter) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(initialCharacter);
+ } else {
+ performDirectEdit();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEditRequest(Request request) {
+
+ final Request theRequest = request;
+
+ if(IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
+ directEditionMode = getDirectEditionType();
+ }
+ switch(directEditionMode) {
+ case IDirectEdition.NO_DIRECT_EDITION:
+ // no direct edition mode => does nothing
+ return;
+ case IDirectEdition.EXTENDED_DIRECT_EDITOR:
+ updateExtendedEditorConfiguration();
+ if(configuration == null || configuration.getLanguage() == null) {
+ performDefaultDirectEditorEdit(theRequest);
+ } else {
+ configuration.preEditAction(resolveSemanticElement());
+ Dialog dialog = null;
+ if(configuration instanceof IPopupEditorConfiguration) {
+ IPopupEditorHelper helper = ((IPopupEditorConfiguration)configuration).createPopupEditorHelper(this);
+ helper.showEditor();
+ return;
+ } else if(configuration instanceof IAdvancedEditorConfiguration) {
+ dialog = ((IAdvancedEditorConfiguration)configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
+ } else if(configuration instanceof IDirectEditorConfiguration) {
+ dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), ((IDirectEditorConfiguration)configuration).getTextToEdit(resolveSemanticElement()), (IDirectEditorConfiguration)configuration);
+ } else {
+ return;
+ }
+ final Dialog finalDialog = dialog;
+
+ if(Window.OK == dialog.open()) {
+ TransactionalEditingDomain domain = getEditingDomain();
+ RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
+
+ @Override
+ protected void doExecute() {
+ configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog)finalDialog).getValue());
+
+ }
+ };
+ domain.getCommandStack().execute(command);
+ }
+ }
+ break;
+ case IDirectEdition.DEFAULT_DIRECT_EDITOR:
+
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ break;
+ default:
+ break;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshLabel();
+ refreshFont();
+ refreshFontColor();
+ refreshUnderline();
+ refreshStrikeThrough();
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshLabel() {
+ EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
+ if(maskLabelPolicy == null) {
+ setLabelTextHelper(getFigure(), getLabelText());
+ setLabelIconHelper(getFigure(), getLabelIcon());
+ }
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshUnderline() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextUnderline(style.isUnderline());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshStrikeThrough() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextStrikeThrough(style.isStrikeThrough());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshFont() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null) {
+ FontData fontData = new FontData(style.getFontName(), style.getFontHeight(), (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
+ setFont(fontData);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setFontColor(Color color) {
+ getFigure().setForegroundColor(color);
+ }
+
+ /**
+ * @generated
+ */
+ protected void addSemanticListeners() {
+ if(getParser() instanceof ISemanticParser) {
+ EObject element = resolveSemanticElement();
+ parserElements = ((ISemanticParser)getParser()).getSemanticElementsBeingParsed(element);
+ for(int i = 0; i < parserElements.size(); i++) {
+ addListenerFilter("SemanticModel" + i, this, (EObject)parserElements.get(i)); //$NON-NLS-1$
+ }
+ } else {
+ super.addSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeSemanticListeners() {
+ if(parserElements != null) {
+ for(int i = 0; i < parserElements.size(); i++) {
+ removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
+ }
+ } else {
+ super.removeSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected AccessibleEditPart getAccessibleEditPart() {
+ if(accessibleEP == null) {
+ accessibleEP = new AccessibleGraphicalEditPart() {
+
+ public void getName(AccessibleEvent e) {
+ e.result = getLabelTextHelper(getFigure());
+ }
+ };
+ }
+ return accessibleEP;
+ }
+
+ /**
+ * @generated
+ */
+ private View getFontStyleOwnerView() {
+ return (View)getModel();
+ }
+
+ /**
+ * Returns the kind of associated editor for direct edition.
+ *
+ * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition
+ * @generated
+ */
+ public int getDirectEditionType() {
+ if(checkExtendedEditor()) {
+ initExtendedEditorConfiguration();
+ return IDirectEdition.EXTENDED_DIRECT_EDITOR;
+ }
+ if(checkDefaultEdition()) {
+ return IDirectEdition.DEFAULT_DIRECT_EDITOR;
+ }
+
+ // not a named element. no specific editor => do nothing
+ return IDirectEdition.NO_DIRECT_EDITION;
+ }
+
+ /**
+ * Checks if an extended editor is present.
+ *
+ * @return <code>true</code> if an extended editor is present.
+ * @generated
+ */
+ protected boolean checkExtendedEditor() {
+ if(resolveSemanticElement() != null) {
+ return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ return false;
+ }
+
+ /**
+ * Checks if a default direct edition is available
+ *
+ * @return <code>true</code> if a default direct edition is available
+ * @generated
+ */
+ protected boolean checkDefaultEdition() {
+ return (getParser() != null);
+ }
+
+ /**
+ * Initializes the extended editor configuration
+ *
+ * @generated
+ */
+ protected void initExtendedEditorConfiguration() {
+ if(configuration == null) {
+ final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("")) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else {
+ configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ }
+ }
+
+ /**
+ * Updates the preference configuration
+ *
+ * @generated
+ */
+ protected void updateExtendedEditorConfiguration() {
+ String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("") && languagePreferred != configuration.getLanguage()) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else if(IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
+ configuration = null;
+ }
+ }
+
+ /**
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
+ protected void performDefaultDirectEditorEdit(final Request theRequest) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void addNotationalListeners() {
+ super.addNotationalListeners();
+ addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeNotationalListeners() {
+ super.removeNotationalListeners();
+ removeListenerFilter("PrimaryView"); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void handleNotificationEvent(Notification event) {
+ Object feature = event.getFeature();
+ if(NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
+ Integer c = (Integer)event.getNewValue();
+ setFontColor(DiagramColorRegistry.getInstance().getColor(c));
+ } else if(NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
+ refreshUnderline();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
+ refreshStrikeThrough();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
+ refreshFont();
+ } else {
+ if(getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
+ refreshLabel();
+ }
+ if(getParser() instanceof ISemanticParser) {
+ ISemanticParser modelParser = (ISemanticParser)getParser();
+ if(modelParser.areSemanticElementsAffected(null, event)) {
+ removeSemanticListeners();
+ if(resolveSemanticElement() != null) {
+ addSemanticListeners();
+ }
+ refreshLabel();
+ }
+ }
+ }
+ if(event.getNewValue() instanceof EAnnotation && VisualInformationPapyrusConstant.DISPLAY_NAMELABELICON.equals(((EAnnotation)event.getNewValue()).getSource())) {
+ refreshLabel();
+ }
+ super.handleNotificationEvent(event);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createFigure() {
+ IFigure label = createFigurePrim();
+ defaultText = getLabelTextHelper(label);
+ return label;
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createFigurePrim() {
+ return new LiteralEnumerationDescriptor();
+ }
+
+ /**
+ * @generated
+ */
+ public class LiteralEnumerationDescriptor extends WrappingLabel {
+
+ /**
+ * @generated
+ */
+ public LiteralEnumerationDescriptor() {
+ this.setText("");
+
+ this.setFont(THIS_FONT);
+
+ }
+
+ }
+
+ /**
+ * @generated
+ */
+ static final Font THIS_FONT = new Font(Display.getCurrent(), "Arial", 10, SWT.NORMAL);
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/EnumerationNameEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/EnumerationNameEditPart.java
new file mode 100644
index 00000000000..328f0ed3f84
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/EnumerationNameEditPart.java
@@ -0,0 +1,791 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EAnnotation;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.emf.transaction.RunnableWithResult;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.AccessibleEditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.requests.DirectEditRequest;
+import org.eclipse.gef.tools.DirectEditManager;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.CompartmentEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
+import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
+import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
+import org.eclipse.gmf.runtime.notation.FontStyle;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
+import org.eclipse.jface.viewers.ICellEditorValidator;
+import org.eclipse.jface.window.Window;
+import org.eclipse.papyrus.diagram.common.directedit.MultilineLabelDirectEditManager;
+import org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition;
+import org.eclipse.papyrus.diagram.common.editpolicies.IMaskManagedLabelEditPolicy;
+import org.eclipse.papyrus.diagram.common.figure.node.ILabelFigure;
+import org.eclipse.papyrus.diagram.common.util.DiagramEditPartsUtil;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLTextSelectionEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.diagram.composite.providers.UMLParserProvider;
+import org.eclipse.papyrus.extensionpoints.editors.Activator;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
+import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
+import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
+import org.eclipse.papyrus.umlutils.ui.VisualInformationPapyrusConstant;
+import org.eclipse.papyrus.umlutils.ui.helper.NameLabelIconHelper;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.AccessibleEvent;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.FontData;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.ui.PlatformUI;
+
+/**
+ * @generated
+ */
+public class EnumerationNameEditPart extends CompartmentEditPart implements ITextAwareEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 5119;
+
+ /**
+ * @generated
+ */
+ private DirectEditManager manager;
+
+ /**
+ * @generated
+ */
+ private IParser parser;
+
+ /**
+ * @generated
+ */
+ private List<?> parserElements;
+
+ /**
+ * @generated
+ */
+ private String defaultText;
+
+ /**
+ * direct edition mode (default, undefined, registered editor, etc.)
+ *
+ * @generated
+ */
+ protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
+
+ /**
+ * configuration from a registered edit dialog
+ *
+ * @generated
+ */
+ protected IDirectEditorConfiguration configuration;
+
+ /**
+ * @generated
+ */
+ public EnumerationNameEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
+ installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new CompositeStructureDiagramEditPart.NodeLabelDragPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelTextHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getText();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getText();
+ } else {
+ return ((Label)figure).getText();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelTextHelper(IFigure figure, String text) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setText(text);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setText(text);
+ } else {
+ ((Label)figure).setText(text);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIconHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getIcon();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getIcon();
+ } else {
+ return ((Label)figure).getIcon();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelIconHelper(IFigure figure, Image icon) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setIcon(icon);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setIcon(icon);
+ } else {
+ ((Label)figure).setIcon(icon);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabel(WrappingLabel figure) {
+ unregisterVisuals();
+ setFigure(figure);
+ defaultText = getLabelTextHelper(figure);
+ registerVisuals();
+ refreshVisuals();
+ }
+
+ /**
+ * @generated
+ */
+ protected List getModelChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject getParserElement() {
+ return resolveSemanticElement();
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIcon() {
+ EObject parserElement = getParserElement();
+ if(parserElement == null) {
+ return null;
+ }
+
+ List<View> views = DiagramEditPartsUtil.findViews(parserElement, getViewer());
+ for(View view : views) {
+ if(NameLabelIconHelper.showLabelIcon(view)) {
+ return UMLElementTypes.getImage(parserElement.eClass());
+ }
+ }
+ return null;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelText() {
+ String text = null;
+ EObject parserElement = getParserElement();
+ if(parserElement != null && getParser() != null) {
+ text = getParser().getPrintString(new EObjectAdapter(parserElement), getParserOptions().intValue());
+ }
+ if(text == null || text.length() == 0) {
+ text = defaultText;
+ }
+ return text;
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabelText(String text) {
+ setLabelTextHelper(getFigure(), text);
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public String getEditText() {
+ if(getParserElement() == null || getParser() == null) {
+ return ""; //$NON-NLS-1$
+ }
+ return getParser().getEditString(new EObjectAdapter(getParserElement()), getParserOptions().intValue());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean isEditable() {
+ return getParser() != null;
+ }
+
+ /**
+ * @generated
+ */
+ public ICellEditorValidator getEditTextValidator() {
+ return new ICellEditorValidator() {
+
+ public String isValid(final Object value) {
+ if(value instanceof String) {
+ final EObject element = getParserElement();
+ final IParser parser = getParser();
+ try {
+ IParserEditStatus valid = (IParserEditStatus)getEditingDomain().runExclusive(new RunnableWithResult.Impl() {
+
+ public void run() {
+ setResult(parser.isValidEditString(new EObjectAdapter(element), (String)value));
+ }
+ });
+ return valid.getCode() == ParserEditStatus.EDITABLE ? null : valid.getMessage();
+ } catch (InterruptedException ie) {
+ ie.printStackTrace();
+ }
+ }
+
+ // shouldn't get here
+ return null;
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ public IContentAssistProcessor getCompletionProcessor() {
+ if(getParserElement() == null || getParser() == null) {
+ return null;
+ }
+ return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
+ }
+
+ /**
+ * @generated
+ */
+ public ParserOptions getParserOptions() {
+ return ParserOptions.NONE;
+ }
+
+ /**
+ * @generated
+ */
+ public IParser getParser() {
+ if(parser == null) {
+ parser = UMLParserProvider.getParser(UMLElementTypes.Enumeration_2067, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.diagram.composite.edit.parts.EnumerationNameEditPart.VISUAL_ID));
+ }
+ return parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected DirectEditManager getManager() {
+ if(manager == null) {
+ setManager(new MultilineLabelDirectEditManager(this, MultilineLabelDirectEditManager.getTextCellEditorClass(this), UMLEditPartFactory.getTextCellEditorLocator(this)));
+ }
+ return manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setManager(DirectEditManager manager) {
+ this.manager = manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit() {
+ getManager().show();
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit(Point eventLocation) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(eventLocation.getSWTPoint());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void performDirectEdit(char initialCharacter) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(initialCharacter);
+ } else {
+ performDirectEdit();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEditRequest(Request request) {
+
+ final Request theRequest = request;
+
+ if(IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
+ directEditionMode = getDirectEditionType();
+ }
+ switch(directEditionMode) {
+ case IDirectEdition.NO_DIRECT_EDITION:
+ // no direct edition mode => does nothing
+ return;
+ case IDirectEdition.EXTENDED_DIRECT_EDITOR:
+ updateExtendedEditorConfiguration();
+ if(configuration == null || configuration.getLanguage() == null) {
+ performDefaultDirectEditorEdit(theRequest);
+ } else {
+ configuration.preEditAction(resolveSemanticElement());
+ Dialog dialog = null;
+ if(configuration instanceof IPopupEditorConfiguration) {
+ IPopupEditorHelper helper = ((IPopupEditorConfiguration)configuration).createPopupEditorHelper(this);
+ helper.showEditor();
+ return;
+ } else if(configuration instanceof IAdvancedEditorConfiguration) {
+ dialog = ((IAdvancedEditorConfiguration)configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
+ } else if(configuration instanceof IDirectEditorConfiguration) {
+ dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), ((IDirectEditorConfiguration)configuration).getTextToEdit(resolveSemanticElement()), (IDirectEditorConfiguration)configuration);
+ } else {
+ return;
+ }
+ final Dialog finalDialog = dialog;
+
+ if(Window.OK == dialog.open()) {
+ TransactionalEditingDomain domain = getEditingDomain();
+ RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
+
+ @Override
+ protected void doExecute() {
+ configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog)finalDialog).getValue());
+
+ }
+ };
+ domain.getCommandStack().execute(command);
+ }
+ }
+ break;
+ case IDirectEdition.DEFAULT_DIRECT_EDITOR:
+
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ break;
+ default:
+ break;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshLabel();
+ refreshFont();
+ refreshFontColor();
+ refreshUnderline();
+ refreshStrikeThrough();
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshLabel() {
+ EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
+ if(maskLabelPolicy == null) {
+ setLabelTextHelper(getFigure(), getLabelText());
+ setLabelIconHelper(getFigure(), getLabelIcon());
+ }
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshUnderline() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextUnderline(style.isUnderline());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshStrikeThrough() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextStrikeThrough(style.isStrikeThrough());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshFont() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null) {
+ FontData fontData = new FontData(style.getFontName(), style.getFontHeight(), (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
+ setFont(fontData);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setFontColor(Color color) {
+ getFigure().setForegroundColor(color);
+ }
+
+ /**
+ * @generated
+ */
+ protected void addSemanticListeners() {
+ if(getParser() instanceof ISemanticParser) {
+ EObject element = resolveSemanticElement();
+ parserElements = ((ISemanticParser)getParser()).getSemanticElementsBeingParsed(element);
+ for(int i = 0; i < parserElements.size(); i++) {
+ addListenerFilter("SemanticModel" + i, this, (EObject)parserElements.get(i)); //$NON-NLS-1$
+ }
+ } else {
+ super.addSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeSemanticListeners() {
+ if(parserElements != null) {
+ for(int i = 0; i < parserElements.size(); i++) {
+ removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
+ }
+ } else {
+ super.removeSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected AccessibleEditPart getAccessibleEditPart() {
+ if(accessibleEP == null) {
+ accessibleEP = new AccessibleGraphicalEditPart() {
+
+ public void getName(AccessibleEvent e) {
+ e.result = getLabelTextHelper(getFigure());
+ }
+ };
+ }
+ return accessibleEP;
+ }
+
+ /**
+ * @generated
+ */
+ private View getFontStyleOwnerView() {
+ return (View)getModel();
+ }
+
+ /**
+ * Returns the kind of associated editor for direct edition.
+ *
+ * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition
+ * @generated
+ */
+ public int getDirectEditionType() {
+ if(checkExtendedEditor()) {
+ initExtendedEditorConfiguration();
+ return IDirectEdition.EXTENDED_DIRECT_EDITOR;
+ }
+ if(checkDefaultEdition()) {
+ return IDirectEdition.DEFAULT_DIRECT_EDITOR;
+ }
+
+ // not a named element. no specific editor => do nothing
+ return IDirectEdition.NO_DIRECT_EDITION;
+ }
+
+ /**
+ * Checks if an extended editor is present.
+ *
+ * @return <code>true</code> if an extended editor is present.
+ * @generated
+ */
+ protected boolean checkExtendedEditor() {
+ if(resolveSemanticElement() != null) {
+ return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ return false;
+ }
+
+ /**
+ * Checks if a default direct edition is available
+ *
+ * @return <code>true</code> if a default direct edition is available
+ * @generated
+ */
+ protected boolean checkDefaultEdition() {
+ return (getParser() != null);
+ }
+
+ /**
+ * Initializes the extended editor configuration
+ *
+ * @generated
+ */
+ protected void initExtendedEditorConfiguration() {
+ if(configuration == null) {
+ final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("")) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else {
+ configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ }
+ }
+
+ /**
+ * Updates the preference configuration
+ *
+ * @generated
+ */
+ protected void updateExtendedEditorConfiguration() {
+ String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("") && languagePreferred != configuration.getLanguage()) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else if(IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
+ configuration = null;
+ }
+ }
+
+ /**
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
+ protected void performDefaultDirectEditorEdit(final Request theRequest) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void addNotationalListeners() {
+ super.addNotationalListeners();
+ addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeNotationalListeners() {
+ super.removeNotationalListeners();
+ removeListenerFilter("PrimaryView"); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void handleNotificationEvent(Notification event) {
+ refreshLabel();
+ Object feature = event.getFeature();
+ if(NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
+ Integer c = (Integer)event.getNewValue();
+ setFontColor(DiagramColorRegistry.getInstance().getColor(c));
+ } else if(NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
+ refreshUnderline();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
+ refreshStrikeThrough();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
+ refreshFont();
+ } else {
+ if(getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
+ refreshLabel();
+ }
+ if(getParser() instanceof ISemanticParser) {
+ ISemanticParser modelParser = (ISemanticParser)getParser();
+ if(modelParser.areSemanticElementsAffected(null, event)) {
+ removeSemanticListeners();
+ if(resolveSemanticElement() != null) {
+ addSemanticListeners();
+ }
+ refreshLabel();
+ }
+ }
+ }
+
+ if(event.getNewValue() instanceof EAnnotation && VisualInformationPapyrusConstant.DISPLAY_NAMELABELICON.equals(((EAnnotation)event.getNewValue()).getSource())) {
+ refreshLabel();
+ }
+
+ super.handleNotificationEvent(event);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createFigure() {
+ // Parent should assign one using setLabel() method
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ private static final String ADD_PARENT_MODEL = "AddParentModel";
+
+ /**
+ * @generated
+ */
+ public void activate() {
+ super.activate();
+ addOwnerElementListeners();
+ }
+
+ /**
+ * @generated
+ */
+ protected void addOwnerElementListeners() {
+ addListenerFilter(ADD_PARENT_MODEL, this, ((View)getParent().getModel())); //$NON-NLS-1$
+
+ }
+
+ /**
+ * @generated
+ */
+ public void deactivate() {
+ removeOwnerElementListeners();
+ super.deactivate();
+
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeOwnerElementListeners() {
+ removeListenerFilter(ADD_PARENT_MODEL);
+
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/EnumerationNameEditPartCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/EnumerationNameEditPartCN.java
new file mode 100644
index 00000000000..91867583861
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/EnumerationNameEditPartCN.java
@@ -0,0 +1,791 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EAnnotation;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.emf.transaction.RunnableWithResult;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.AccessibleEditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.requests.DirectEditRequest;
+import org.eclipse.gef.tools.DirectEditManager;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.CompartmentEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
+import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
+import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
+import org.eclipse.gmf.runtime.notation.FontStyle;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
+import org.eclipse.jface.viewers.ICellEditorValidator;
+import org.eclipse.jface.window.Window;
+import org.eclipse.papyrus.diagram.common.directedit.MultilineLabelDirectEditManager;
+import org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition;
+import org.eclipse.papyrus.diagram.common.editpolicies.IMaskManagedLabelEditPolicy;
+import org.eclipse.papyrus.diagram.common.figure.node.ILabelFigure;
+import org.eclipse.papyrus.diagram.common.util.DiagramEditPartsUtil;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLTextSelectionEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.diagram.composite.providers.UMLParserProvider;
+import org.eclipse.papyrus.extensionpoints.editors.Activator;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
+import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
+import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
+import org.eclipse.papyrus.umlutils.ui.VisualInformationPapyrusConstant;
+import org.eclipse.papyrus.umlutils.ui.helper.NameLabelIconHelper;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.AccessibleEvent;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.FontData;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.ui.PlatformUI;
+
+/**
+ * @generated
+ */
+public class EnumerationNameEditPartCN extends CompartmentEditPart implements ITextAwareEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 5135;
+
+ /**
+ * @generated
+ */
+ private DirectEditManager manager;
+
+ /**
+ * @generated
+ */
+ private IParser parser;
+
+ /**
+ * @generated
+ */
+ private List<?> parserElements;
+
+ /**
+ * @generated
+ */
+ private String defaultText;
+
+ /**
+ * direct edition mode (default, undefined, registered editor, etc.)
+ *
+ * @generated
+ */
+ protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
+
+ /**
+ * configuration from a registered edit dialog
+ *
+ * @generated
+ */
+ protected IDirectEditorConfiguration configuration;
+
+ /**
+ * @generated
+ */
+ public EnumerationNameEditPartCN(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
+ installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new CompositeStructureDiagramEditPart.NodeLabelDragPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelTextHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getText();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getText();
+ } else {
+ return ((Label)figure).getText();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelTextHelper(IFigure figure, String text) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setText(text);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setText(text);
+ } else {
+ ((Label)figure).setText(text);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIconHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getIcon();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getIcon();
+ } else {
+ return ((Label)figure).getIcon();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelIconHelper(IFigure figure, Image icon) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setIcon(icon);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setIcon(icon);
+ } else {
+ ((Label)figure).setIcon(icon);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabel(WrappingLabel figure) {
+ unregisterVisuals();
+ setFigure(figure);
+ defaultText = getLabelTextHelper(figure);
+ registerVisuals();
+ refreshVisuals();
+ }
+
+ /**
+ * @generated
+ */
+ protected List getModelChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject getParserElement() {
+ return resolveSemanticElement();
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIcon() {
+ EObject parserElement = getParserElement();
+ if(parserElement == null) {
+ return null;
+ }
+
+ List<View> views = DiagramEditPartsUtil.findViews(parserElement, getViewer());
+ for(View view : views) {
+ if(NameLabelIconHelper.showLabelIcon(view)) {
+ return UMLElementTypes.getImage(parserElement.eClass());
+ }
+ }
+ return null;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelText() {
+ String text = null;
+ EObject parserElement = getParserElement();
+ if(parserElement != null && getParser() != null) {
+ text = getParser().getPrintString(new EObjectAdapter(parserElement), getParserOptions().intValue());
+ }
+ if(text == null || text.length() == 0) {
+ text = defaultText;
+ }
+ return text;
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabelText(String text) {
+ setLabelTextHelper(getFigure(), text);
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public String getEditText() {
+ if(getParserElement() == null || getParser() == null) {
+ return ""; //$NON-NLS-1$
+ }
+ return getParser().getEditString(new EObjectAdapter(getParserElement()), getParserOptions().intValue());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean isEditable() {
+ return getParser() != null;
+ }
+
+ /**
+ * @generated
+ */
+ public ICellEditorValidator getEditTextValidator() {
+ return new ICellEditorValidator() {
+
+ public String isValid(final Object value) {
+ if(value instanceof String) {
+ final EObject element = getParserElement();
+ final IParser parser = getParser();
+ try {
+ IParserEditStatus valid = (IParserEditStatus)getEditingDomain().runExclusive(new RunnableWithResult.Impl() {
+
+ public void run() {
+ setResult(parser.isValidEditString(new EObjectAdapter(element), (String)value));
+ }
+ });
+ return valid.getCode() == ParserEditStatus.EDITABLE ? null : valid.getMessage();
+ } catch (InterruptedException ie) {
+ ie.printStackTrace();
+ }
+ }
+
+ // shouldn't get here
+ return null;
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ public IContentAssistProcessor getCompletionProcessor() {
+ if(getParserElement() == null || getParser() == null) {
+ return null;
+ }
+ return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
+ }
+
+ /**
+ * @generated
+ */
+ public ParserOptions getParserOptions() {
+ return ParserOptions.NONE;
+ }
+
+ /**
+ * @generated
+ */
+ public IParser getParser() {
+ if(parser == null) {
+ parser = UMLParserProvider.getParser(UMLElementTypes.Enumeration_3079, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.diagram.composite.edit.parts.EnumerationNameEditPartCN.VISUAL_ID));
+ }
+ return parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected DirectEditManager getManager() {
+ if(manager == null) {
+ setManager(new MultilineLabelDirectEditManager(this, MultilineLabelDirectEditManager.getTextCellEditorClass(this), UMLEditPartFactory.getTextCellEditorLocator(this)));
+ }
+ return manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setManager(DirectEditManager manager) {
+ this.manager = manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit() {
+ getManager().show();
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit(Point eventLocation) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(eventLocation.getSWTPoint());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void performDirectEdit(char initialCharacter) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(initialCharacter);
+ } else {
+ performDirectEdit();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEditRequest(Request request) {
+
+ final Request theRequest = request;
+
+ if(IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
+ directEditionMode = getDirectEditionType();
+ }
+ switch(directEditionMode) {
+ case IDirectEdition.NO_DIRECT_EDITION:
+ // no direct edition mode => does nothing
+ return;
+ case IDirectEdition.EXTENDED_DIRECT_EDITOR:
+ updateExtendedEditorConfiguration();
+ if(configuration == null || configuration.getLanguage() == null) {
+ performDefaultDirectEditorEdit(theRequest);
+ } else {
+ configuration.preEditAction(resolveSemanticElement());
+ Dialog dialog = null;
+ if(configuration instanceof IPopupEditorConfiguration) {
+ IPopupEditorHelper helper = ((IPopupEditorConfiguration)configuration).createPopupEditorHelper(this);
+ helper.showEditor();
+ return;
+ } else if(configuration instanceof IAdvancedEditorConfiguration) {
+ dialog = ((IAdvancedEditorConfiguration)configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
+ } else if(configuration instanceof IDirectEditorConfiguration) {
+ dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), ((IDirectEditorConfiguration)configuration).getTextToEdit(resolveSemanticElement()), (IDirectEditorConfiguration)configuration);
+ } else {
+ return;
+ }
+ final Dialog finalDialog = dialog;
+
+ if(Window.OK == dialog.open()) {
+ TransactionalEditingDomain domain = getEditingDomain();
+ RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
+
+ @Override
+ protected void doExecute() {
+ configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog)finalDialog).getValue());
+
+ }
+ };
+ domain.getCommandStack().execute(command);
+ }
+ }
+ break;
+ case IDirectEdition.DEFAULT_DIRECT_EDITOR:
+
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ break;
+ default:
+ break;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshLabel();
+ refreshFont();
+ refreshFontColor();
+ refreshUnderline();
+ refreshStrikeThrough();
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshLabel() {
+ EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
+ if(maskLabelPolicy == null) {
+ setLabelTextHelper(getFigure(), getLabelText());
+ setLabelIconHelper(getFigure(), getLabelIcon());
+ }
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshUnderline() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextUnderline(style.isUnderline());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshStrikeThrough() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextStrikeThrough(style.isStrikeThrough());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshFont() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null) {
+ FontData fontData = new FontData(style.getFontName(), style.getFontHeight(), (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
+ setFont(fontData);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setFontColor(Color color) {
+ getFigure().setForegroundColor(color);
+ }
+
+ /**
+ * @generated
+ */
+ protected void addSemanticListeners() {
+ if(getParser() instanceof ISemanticParser) {
+ EObject element = resolveSemanticElement();
+ parserElements = ((ISemanticParser)getParser()).getSemanticElementsBeingParsed(element);
+ for(int i = 0; i < parserElements.size(); i++) {
+ addListenerFilter("SemanticModel" + i, this, (EObject)parserElements.get(i)); //$NON-NLS-1$
+ }
+ } else {
+ super.addSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeSemanticListeners() {
+ if(parserElements != null) {
+ for(int i = 0; i < parserElements.size(); i++) {
+ removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
+ }
+ } else {
+ super.removeSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected AccessibleEditPart getAccessibleEditPart() {
+ if(accessibleEP == null) {
+ accessibleEP = new AccessibleGraphicalEditPart() {
+
+ public void getName(AccessibleEvent e) {
+ e.result = getLabelTextHelper(getFigure());
+ }
+ };
+ }
+ return accessibleEP;
+ }
+
+ /**
+ * @generated
+ */
+ private View getFontStyleOwnerView() {
+ return (View)getModel();
+ }
+
+ /**
+ * Returns the kind of associated editor for direct edition.
+ *
+ * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition
+ * @generated
+ */
+ public int getDirectEditionType() {
+ if(checkExtendedEditor()) {
+ initExtendedEditorConfiguration();
+ return IDirectEdition.EXTENDED_DIRECT_EDITOR;
+ }
+ if(checkDefaultEdition()) {
+ return IDirectEdition.DEFAULT_DIRECT_EDITOR;
+ }
+
+ // not a named element. no specific editor => do nothing
+ return IDirectEdition.NO_DIRECT_EDITION;
+ }
+
+ /**
+ * Checks if an extended editor is present.
+ *
+ * @return <code>true</code> if an extended editor is present.
+ * @generated
+ */
+ protected boolean checkExtendedEditor() {
+ if(resolveSemanticElement() != null) {
+ return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ return false;
+ }
+
+ /**
+ * Checks if a default direct edition is available
+ *
+ * @return <code>true</code> if a default direct edition is available
+ * @generated
+ */
+ protected boolean checkDefaultEdition() {
+ return (getParser() != null);
+ }
+
+ /**
+ * Initializes the extended editor configuration
+ *
+ * @generated
+ */
+ protected void initExtendedEditorConfiguration() {
+ if(configuration == null) {
+ final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("")) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else {
+ configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ }
+ }
+
+ /**
+ * Updates the preference configuration
+ *
+ * @generated
+ */
+ protected void updateExtendedEditorConfiguration() {
+ String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("") && languagePreferred != configuration.getLanguage()) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else if(IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
+ configuration = null;
+ }
+ }
+
+ /**
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
+ protected void performDefaultDirectEditorEdit(final Request theRequest) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void addNotationalListeners() {
+ super.addNotationalListeners();
+ addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeNotationalListeners() {
+ super.removeNotationalListeners();
+ removeListenerFilter("PrimaryView"); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void handleNotificationEvent(Notification event) {
+ refreshLabel();
+ Object feature = event.getFeature();
+ if(NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
+ Integer c = (Integer)event.getNewValue();
+ setFontColor(DiagramColorRegistry.getInstance().getColor(c));
+ } else if(NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
+ refreshUnderline();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
+ refreshStrikeThrough();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
+ refreshFont();
+ } else {
+ if(getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
+ refreshLabel();
+ }
+ if(getParser() instanceof ISemanticParser) {
+ ISemanticParser modelParser = (ISemanticParser)getParser();
+ if(modelParser.areSemanticElementsAffected(null, event)) {
+ removeSemanticListeners();
+ if(resolveSemanticElement() != null) {
+ addSemanticListeners();
+ }
+ refreshLabel();
+ }
+ }
+ }
+
+ if(event.getNewValue() instanceof EAnnotation && VisualInformationPapyrusConstant.DISPLAY_NAMELABELICON.equals(((EAnnotation)event.getNewValue()).getSource())) {
+ refreshLabel();
+ }
+
+ super.handleNotificationEvent(event);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createFigure() {
+ // Parent should assign one using setLabel() method
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ private static final String ADD_PARENT_MODEL = "AddParentModel";
+
+ /**
+ * @generated
+ */
+ public void activate() {
+ super.activate();
+ addOwnerElementListeners();
+ }
+
+ /**
+ * @generated
+ */
+ protected void addOwnerElementListeners() {
+ addListenerFilter(ADD_PARENT_MODEL, this, ((View)getParent().getModel())); //$NON-NLS-1$
+
+ }
+
+ /**
+ * @generated
+ */
+ public void deactivate() {
+ removeOwnerElementListeners();
+ super.deactivate();
+
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeOwnerElementListeners() {
+ removeListenerFilter(ADD_PARENT_MODEL);
+
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ExecutionEnvironmentCompositeCompartmentEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ExecutionEnvironmentCompositeCompartmentEditPart.java
new file mode 100644
index 00000000000..b91c84e8752
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ExecutionEnvironmentCompositeCompartmentEditPart.java
@@ -0,0 +1,123 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import org.eclipse.draw2d.geometry.Dimension;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.draw2d.geometry.Rectangle;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.GraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ShapeCompartmentEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.CreationEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.DragDropEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.ResizableCompartmentEditPolicy;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.diagram.common.editparts.NoScrollBarShapeCompartmentEditPart;
+import org.eclipse.papyrus.diagram.common.editpolicies.CustomContainerEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.DuplicatePasteEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.CustomDiagramDragDropEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.PortInCompartmentCreationEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.RemoveOrphanViewPolicy;
+import org.eclipse.papyrus.diagram.composite.edit.policies.ExecutionEnvironmentCompositeCompartmentItemSemanticEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.Messages;
+
+/**
+ * @generated
+ */
+public class ExecutionEnvironmentCompositeCompartmentEditPart
+
+extends NoScrollBarShapeCompartmentEditPart
+
+{
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 7071;
+
+ /**
+ * @generated
+ */
+ public ExecutionEnvironmentCompositeCompartmentEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ public String getCompartmentName() {
+ return Messages.ExecutionEnvironmentCompositeCompartmentEditPart_title;
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new ResizableCompartmentEditPolicy());
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new ExecutionEnvironmentCompositeCompartmentItemSemanticEditPolicy());
+ installEditPolicy(EditPolicyRoles.CREATION_ROLE, new CreationEditPolicy());
+ installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new DragDropEditPolicy());
+ installEditPolicy(DuplicatePasteEditPolicy.PASTE_ROLE, new DuplicatePasteEditPolicy());
+ installEditPolicy("REMOVE_ORPHAN_VIEW", new RemoveOrphanViewPolicy()); //$NON-NLS-1$
+ installEditPolicy(EditPolicy.GRAPHICAL_NODE_ROLE, new CustomContainerEditPolicy());
+ installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new CustomDiagramDragDropEditPolicy());
+ installEditPolicy(EditPolicyRoles.CREATION_ROLE, new PortInCompartmentCreationEditPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ protected void setRatio(Double ratio) {
+ if(getFigure().getParent().getLayoutManager() instanceof ConstrainedToolbarLayout) {
+ super.setRatio(ratio);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void handleNotificationEvent(Notification notification) {
+ Object feature = notification.getFeature();
+ if(NotationPackage.eINSTANCE.getSize_Width().equals(feature) || NotationPackage.eINSTANCE.getSize_Height().equals(feature) || NotationPackage.eINSTANCE.getLocation_X().equals(feature) || NotationPackage.eINSTANCE.getLocation_Y().equals(feature)) {
+ refreshBounds();
+ }
+ super.handleNotificationEvent(notification);
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshBounds() {
+ int width = ((Integer)getStructuralFeatureValue(NotationPackage.eINSTANCE.getSize_Width())).intValue();
+ int height = ((Integer)getStructuralFeatureValue(NotationPackage.eINSTANCE.getSize_Height())).intValue();
+ Dimension size = new Dimension(width, height);
+ int x = ((Integer)getStructuralFeatureValue(NotationPackage.eINSTANCE.getLocation_X())).intValue();
+ int y = ((Integer)getStructuralFeatureValue(NotationPackage.eINSTANCE.getLocation_Y())).intValue();
+ Point loc = new Point(x, y);
+ ((GraphicalEditPart)getParent()).setLayoutConstraint(this, getFigure(), new Rectangle(loc, size));
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshBounds();
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ExecutionEnvironmentCompositeCompartmentEditPartCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ExecutionEnvironmentCompositeCompartmentEditPartCN.java
new file mode 100644
index 00000000000..79bb9ac8562
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ExecutionEnvironmentCompositeCompartmentEditPartCN.java
@@ -0,0 +1,123 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import org.eclipse.draw2d.geometry.Dimension;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.draw2d.geometry.Rectangle;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.GraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ShapeCompartmentEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.CreationEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.DragDropEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.ResizableCompartmentEditPolicy;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.diagram.common.editparts.NoScrollBarShapeCompartmentEditPart;
+import org.eclipse.papyrus.diagram.common.editpolicies.CustomContainerEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.DuplicatePasteEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.CustomDiagramDragDropEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.PortInCompartmentCreationEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.RemoveOrphanViewPolicy;
+import org.eclipse.papyrus.diagram.composite.edit.policies.ExecutionEnvironmentCompositeCompartmentItemSemanticEditPolicyCN;
+import org.eclipse.papyrus.diagram.composite.part.Messages;
+
+/**
+ * @generated
+ */
+public class ExecutionEnvironmentCompositeCompartmentEditPartCN
+
+extends NoScrollBarShapeCompartmentEditPart
+
+{
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 7058;
+
+ /**
+ * @generated
+ */
+ public ExecutionEnvironmentCompositeCompartmentEditPartCN(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ public String getCompartmentName() {
+ return Messages.ExecutionEnvironmentCompositeCompartmentEditPartCN_title;
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new ResizableCompartmentEditPolicy());
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new ExecutionEnvironmentCompositeCompartmentItemSemanticEditPolicyCN());
+ installEditPolicy(EditPolicyRoles.CREATION_ROLE, new CreationEditPolicy());
+ installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new DragDropEditPolicy());
+ installEditPolicy(DuplicatePasteEditPolicy.PASTE_ROLE, new DuplicatePasteEditPolicy());
+ installEditPolicy("REMOVE_ORPHAN_VIEW", new RemoveOrphanViewPolicy()); //$NON-NLS-1$
+ installEditPolicy(EditPolicy.GRAPHICAL_NODE_ROLE, new CustomContainerEditPolicy());
+ installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new CustomDiagramDragDropEditPolicy());
+ installEditPolicy(EditPolicyRoles.CREATION_ROLE, new PortInCompartmentCreationEditPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ protected void setRatio(Double ratio) {
+ if(getFigure().getParent().getLayoutManager() instanceof ConstrainedToolbarLayout) {
+ super.setRatio(ratio);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void handleNotificationEvent(Notification notification) {
+ Object feature = notification.getFeature();
+ if(NotationPackage.eINSTANCE.getSize_Width().equals(feature) || NotationPackage.eINSTANCE.getSize_Height().equals(feature) || NotationPackage.eINSTANCE.getLocation_X().equals(feature) || NotationPackage.eINSTANCE.getLocation_Y().equals(feature)) {
+ refreshBounds();
+ }
+ super.handleNotificationEvent(notification);
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshBounds() {
+ int width = ((Integer)getStructuralFeatureValue(NotationPackage.eINSTANCE.getSize_Width())).intValue();
+ int height = ((Integer)getStructuralFeatureValue(NotationPackage.eINSTANCE.getSize_Height())).intValue();
+ Dimension size = new Dimension(width, height);
+ int x = ((Integer)getStructuralFeatureValue(NotationPackage.eINSTANCE.getLocation_X())).intValue();
+ int y = ((Integer)getStructuralFeatureValue(NotationPackage.eINSTANCE.getLocation_Y())).intValue();
+ Point loc = new Point(x, y);
+ ((GraphicalEditPart)getParent()).setLayoutConstraint(this, getFigure(), new Rectangle(loc, size));
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshBounds();
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ExecutionEnvironmentCompositeEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ExecutionEnvironmentCompositeEditPart.java
new file mode 100644
index 00000000000..676221695b1
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ExecutionEnvironmentCompositeEditPart.java
@@ -0,0 +1,5394 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.ArrayList;
+import java.util.LinkedList;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.PositionConstants;
+import org.eclipse.draw2d.Shape;
+import org.eclipse.draw2d.StackLayout;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EStructuralFeature;
+import org.eclipse.gef.EditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.editpolicies.LayoutEditPolicy;
+import org.eclipse.gef.editpolicies.NonResizableEditPolicy;
+import org.eclipse.gef.requests.CreateRequest;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IBorderItemEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.CreationEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.DragDropEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.diagram.ui.figures.IBorderItemLocator;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.FigureUtilities;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.gef.ui.figures.DefaultSizeNodeFigure;
+import org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.jface.preference.PreferenceConverter;
+import org.eclipse.papyrus.diagram.common.editparts.NamedElementEditPart;
+import org.eclipse.papyrus.diagram.common.editpolicies.AffixedNodeAlignmentEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.BorderItemResizableEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.HyperLinkPopupBarEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.QualifiedNameDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.ShowHideClassifierContentsEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.ShowHideCompartmentEditPolicy;
+import org.eclipse.papyrus.diagram.common.helper.PreferenceInitializerForElementHelper;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.CustomDiagramDragDropEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.EncapsulatedClassifierResizableShapeEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.RemoveOrphanViewPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.StructuredClassifierLayoutEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.figures.ExecutionEnvironmentCompositeFigure;
+import org.eclipse.papyrus.diagram.composite.custom.locators.PortPositionLocator;
+import org.eclipse.papyrus.diagram.composite.edit.policies.ExecutionEnvironmentCompositeItemSemanticEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorPlugin;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter;
+import org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper;
+import org.eclipse.swt.graphics.Color;
+
+/**
+ * @generated
+ */
+public class ExecutionEnvironmentCompositeEditPart extends
+
+NamedElementEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 2071;
+
+ /**
+ * @generated
+ */
+ protected IFigure contentPane;
+
+ /**
+ * @generated
+ */
+ protected IFigure primaryShape;
+
+ /**
+ * @generated
+ */
+ public ExecutionEnvironmentCompositeEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ installEditPolicy(EditPolicyRoles.CREATION_ROLE, new CreationEditPolicy());
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new ExecutionEnvironmentCompositeItemSemanticEditPolicy());
+ installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new DragDropEditPolicy());
+ installEditPolicy(EditPolicy.LAYOUT_ROLE, createLayoutEditPolicy());
+ installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new CustomDiagramDragDropEditPolicy());
+ installEditPolicy(QualifiedNameDisplayEditPolicy.QUALIFIED_NAME_POLICY, new QualifiedNameDisplayEditPolicy());
+ installEditPolicy(AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeNodeLabelDisplayEditPolicy());
+ installEditPolicy(EditPolicyRoles.POPUPBAR_ROLE, new HyperLinkPopupBarEditPolicy());
+ installEditPolicy(EditPolicy.LAYOUT_ROLE, new StructuredClassifierLayoutEditPolicy());
+ installEditPolicy(ShowHideClassifierContentsEditPolicy.SHOW_HIDE_CLASSIFIER_CONTENTS_POLICY, new ShowHideClassifierContentsEditPolicy());
+ installEditPolicy(ShowHideCompartmentEditPolicy.SHOW_HIDE_COMPARTMENT_POLICY, new ShowHideCompartmentEditPolicy());
+ installEditPolicy(AffixedNodeAlignmentEditPolicy.AFFIXED_CHILD_ALIGNMENT_ROLE, new AffixedNodeAlignmentEditPolicy());
+ installEditPolicy("REMOVE_ORPHAN_VIEW", new RemoveOrphanViewPolicy()); //$NON-NLS-1$
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new EncapsulatedClassifierResizableShapeEditPolicy());
+ // XXX need an SCR to runtime to have another abstract superclass that would let children add reasonable editpolicies
+ // removeEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CONNECTION_HANDLES_ROLE);
+ }
+
+ /**
+ * Papyrus codeGen
+ *
+ * @generated
+ **/
+ protected void handleNotificationEvent(Notification event) {
+ super.handleNotificationEvent(event);
+
+ }
+
+ /**
+ * @generated
+ */
+ protected LayoutEditPolicy createLayoutEditPolicy() {
+ org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy lep = new org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy() {
+
+ protected EditPolicy createChildEditPolicy(EditPart child) {
+ View childView = (View)child.getModel();
+ switch(UMLVisualIDRegistry.getVisualID(childView)) {
+ case PortEditPart.VISUAL_ID:
+
+ return new BorderItemResizableEditPolicy();
+
+ }
+ EditPolicy result = child.getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(result == null) {
+ result = new NonResizableEditPolicy();
+ }
+ return result;
+ }
+
+ protected Command getMoveChildrenCommand(Request request) {
+ return null;
+ }
+
+ protected Command getCreateCommand(CreateRequest request) {
+ return null;
+ }
+ };
+ return lep;
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createNodeShape() {
+ return primaryShape = new ExecutionEnvironmentCompositeFigure();
+ }
+
+ /**
+ * @generated
+ */
+ public ExecutionEnvironmentCompositeFigure getPrimaryShape() {
+ return (ExecutionEnvironmentCompositeFigure)primaryShape;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean addFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof ExecutionEnvironmentCompositeNameEditPart) {
+ ((ExecutionEnvironmentCompositeNameEditPart)childEditPart).setLabel(getPrimaryShape().getNameLabel());
+ return true;
+ }
+
+ if(childEditPart instanceof ExecutionEnvironmentCompositeCompartmentEditPart) {
+ IFigure pane = getPrimaryShape().getCompositeCompartmentFigure();
+ setupContentPane(pane); // FIXME each comparment should handle his content pane in his own way
+ pane.add(((ExecutionEnvironmentCompositeCompartmentEditPart)childEditPart).getFigure());
+ return true;
+ }
+
+ //Papyrus Gencode :Affixed Port locator
+ if(childEditPart instanceof PortEditPart) {
+ IBorderItemLocator locator = new PortPositionLocator(getMainFigure(), PositionConstants.NONE);
+ getBorderedFigure().getBorderItemContainer().add(((PortEditPart)childEditPart).getFigure(), locator);
+ return true;
+ }
+
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean removeFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof ExecutionEnvironmentCompositeNameEditPart) {
+ return true;
+ }
+ if(childEditPart instanceof ExecutionEnvironmentCompositeCompartmentEditPart) {
+ IFigure pane = getPrimaryShape().getCompositeCompartmentFigure();
+ setupContentPane(pane); // FIXME each comparment should handle his content pane in his own way
+ pane.remove(((ExecutionEnvironmentCompositeCompartmentEditPart)childEditPart).getFigure());
+ return true;
+ }
+ if(childEditPart instanceof PortEditPart) {
+ getBorderedFigure().getBorderItemContainer().remove(((PortEditPart)childEditPart).getFigure());
+ return true;
+ }
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected void addChildVisual(EditPart childEditPart, int index) {
+ if(addFixedChild(childEditPart)) {
+ return;
+ }
+ super.addChildVisual(childEditPart, -1);
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeChildVisual(EditPart childEditPart) {
+ if(removeFixedChild(childEditPart)) {
+ return;
+ }
+ super.removeChildVisual(childEditPart);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure getContentPaneFor(IGraphicalEditPart editPart) {
+ if(editPart instanceof ExecutionEnvironmentCompositeCompartmentEditPart) {
+ return getPrimaryShape().getCompositeCompartmentFigure();
+ }
+ if(editPart instanceof IBorderItemEditPart) {
+ return getBorderedFigure().getBorderItemContainer();
+ }
+ return getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ protected NodeFigure createNodePlate() {
+ String prefElementId = "ExecutionEnvironment";
+ IPreferenceStore store = UMLDiagramEditorPlugin.getInstance().getPreferenceStore();
+ String preferenceConstantWitdh = PreferenceInitializerForElementHelper.getpreferenceKey(getNotationView(), prefElementId, PreferenceConstantHelper.WIDTH);
+ String preferenceConstantHeight = PreferenceInitializerForElementHelper.getpreferenceKey(getNotationView(), prefElementId, PreferenceConstantHelper.HEIGHT);
+ DefaultSizeNodeFigure result = new DefaultSizeNodeFigure(store.getInt(preferenceConstantWitdh), store.getInt(preferenceConstantHeight));
+
+ return result;
+ }
+
+ /**
+ * Creates figure for this edit part.
+ *
+ * Body of this method does not depend on settings in generation model
+ * so you may safely remove <i>generated</i> tag and modify it.
+ *
+ * @generated
+ */
+ protected NodeFigure createMainFigure() {
+ NodeFigure figure = createNodePlate();
+ figure.setLayoutManager(new StackLayout());
+ IFigure shape = createNodeShape();
+ figure.add(shape);
+ contentPane = setupContentPane(shape);
+ return figure;
+ }
+
+ /**
+ * Default implementation treats passed figure as content pane.
+ * Respects layout one may have set for generated figure.
+ *
+ * @param nodeShape
+ * instance of generated figure class
+ * @generated
+ */
+ protected IFigure setupContentPane(IFigure nodeShape) {
+ if(nodeShape.getLayoutManager() == null) {
+ ConstrainedToolbarLayout layout = new ConstrainedToolbarLayout();
+ layout.setSpacing(5);
+ nodeShape.setLayoutManager(layout);
+ }
+ return nodeShape; // use nodeShape itself as contentPane
+ }
+
+ /**
+ * @generated
+ */
+ public IFigure getContentPane() {
+ if(contentPane != null) {
+ return contentPane;
+ }
+ return super.getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ protected void setForegroundColor(Color color) {
+ if(primaryShape != null) {
+ primaryShape.setForegroundColor(color);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLineWidth(int width) {
+ if(primaryShape instanceof Shape) {
+ ((Shape)primaryShape).setLineWidth(width);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLineType(int style) {
+ if(primaryShape instanceof Shape) {
+ ((Shape)primaryShape).setLineStyle(style);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public EditPart getPrimaryChildEditPart() {
+ return getChildBySemanticHint(UMLVisualIDRegistry.getType(ExecutionEnvironmentCompositeNameEditPart.VISUAL_ID));
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnSource() {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(12);
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ types.add(UMLElementTypes.Substitution_4011);
+ types.add(UMLElementTypes.Realization_4006);
+ types.add(UMLElementTypes.Manifestation_4012);
+ types.add(UMLElementTypes.Abstraction_4007);
+ types.add(UMLElementTypes.Usage_4008);
+ types.add(UMLElementTypes.Deployment_4009);
+ types.add(UMLElementTypes.Dependency_4017);
+ types.add(UMLElementTypes.Dependency_4010);
+ types.add(UMLElementTypes.Generalization_4015);
+ types.add(UMLElementTypes.InformationFlow_4021);
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnSourceAndTarget(IGraphicalEditPart targetEditPart) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMATypesForTarget(IElementType relationshipType) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(relationshipType == UMLElementTypes.ComponentRealization_4004) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InterfaceRealization_4005) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Substitution_4011) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Realization_4006) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Manifestation_4012) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Abstraction_4007) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Usage_4008) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Deployment_4009) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4017) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4010) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Generalization_4015) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ } else if(relationshipType == UMLElementTypes.InformationFlow_4021) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnTarget() {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(17);
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ types.add(UMLElementTypes.Substitution_4011);
+ types.add(UMLElementTypes.Realization_4006);
+ types.add(UMLElementTypes.Manifestation_4012);
+ types.add(UMLElementTypes.Abstraction_4007);
+ types.add(UMLElementTypes.Usage_4008);
+ types.add(UMLElementTypes.Deployment_4009);
+ types.add(UMLElementTypes.Dependency_4017);
+ types.add(UMLElementTypes.Dependency_4010);
+ types.add(UMLElementTypes.Generalization_4015);
+ types.add(UMLElementTypes.TimeObservationEvent_4018);
+ types.add(UMLElementTypes.DurationObservationEvent_4019);
+ types.add(UMLElementTypes.InformationItemRepresented_4020);
+ types.add(UMLElementTypes.InformationFlow_4021);
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMATypesForSource(IElementType relationshipType) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(relationshipType == UMLElementTypes.CommentAnnotatedElement_4002) {
+ types.add(UMLElementTypes.Comment_2109);
+ types.add(UMLElementTypes.Comment_3097);
+ } else if(relationshipType == UMLElementTypes.ConstraintConstrainedElement_4003) {
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.ComponentRealization_4004) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InterfaceRealization_4005) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Substitution_4011) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Realization_4006) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Manifestation_4012) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Abstraction_4007) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Usage_4008) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Deployment_4009) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4017) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4010) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Generalization_4015) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ } else if(relationshipType == UMLElementTypes.TimeObservationEvent_4018) {
+ types.add(UMLElementTypes.TimeObservation_2094);
+ } else if(relationshipType == UMLElementTypes.DurationObservationEvent_4019) {
+ types.add(UMLElementTypes.DurationObservation_2093);
+ } else if(relationshipType == UMLElementTypes.InformationItemRepresented_4020) {
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.InformationItem_3094);
+ } else if(relationshipType == UMLElementTypes.InformationFlow_4021) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public Object getPreferredValue(EStructuralFeature feature) {
+ IPreferenceStore preferenceStore = (IPreferenceStore)getDiagramPreferencesHint().getPreferenceStore();
+ Object result = null;
+
+ if(feature == NotationPackage.eINSTANCE.getLineStyle_LineColor() || feature == NotationPackage.eINSTANCE.getFontStyle_FontColor() || feature == NotationPackage.eINSTANCE.getFillStyle_FillColor()) {
+ String prefColor = null;
+ if(feature == NotationPackage.eINSTANCE.getLineStyle_LineColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("ExecutionEnvironment", PreferenceConstantHelper.COLOR_LINE);
+ } else if(feature == NotationPackage.eINSTANCE.getFontStyle_FontColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("ExecutionEnvironment", PreferenceConstantHelper.COLOR_FONT);
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_FillColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("ExecutionEnvironment", PreferenceConstantHelper.COLOR_FILL);
+ }
+ result = FigureUtilities.RGBToInteger(PreferenceConverter.getColor((IPreferenceStore)preferenceStore, prefColor));
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_Transparency() || feature == NotationPackage.eINSTANCE.getFillStyle_Gradient()) {
+ String prefGradient = PreferenceConstantHelper.getElementConstant("ExecutionEnvironment", PreferenceConstantHelper.COLOR_GRADIENT);
+ GradientPreferenceConverter gradientPreferenceConverter = new GradientPreferenceConverter(preferenceStore.getString(prefGradient));
+ if(feature == NotationPackage.eINSTANCE.getFillStyle_Transparency()) {
+ result = new Integer(gradientPreferenceConverter.getTransparency());
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_Gradient()) {
+ result = gradientPreferenceConverter.getGradientData();
+ }
+ }
+
+ if(result == null) {
+ result = getStructuralFeatureValue(feature);
+ }
+ return result;
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ExecutionEnvironmentCompositeEditPartCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ExecutionEnvironmentCompositeEditPartCN.java
new file mode 100644
index 00000000000..5f1dab9caac
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ExecutionEnvironmentCompositeEditPartCN.java
@@ -0,0 +1,5396 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.ArrayList;
+import java.util.LinkedList;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.PositionConstants;
+import org.eclipse.draw2d.Shape;
+import org.eclipse.draw2d.StackLayout;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EStructuralFeature;
+import org.eclipse.gef.EditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.editpolicies.LayoutEditPolicy;
+import org.eclipse.gef.editpolicies.NonResizableEditPolicy;
+import org.eclipse.gef.requests.CreateRequest;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IBorderItemEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.CreationEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.DragDropEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.diagram.ui.figures.IBorderItemLocator;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.FigureUtilities;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.gef.ui.figures.DefaultSizeNodeFigure;
+import org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.jface.preference.PreferenceConverter;
+import org.eclipse.papyrus.diagram.common.editparts.NamedElementEditPart;
+import org.eclipse.papyrus.diagram.common.editpolicies.AffixedNodeAlignmentEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.BorderItemResizableEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.HyperLinkPopupBarEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.QualifiedNameDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.ShowHideClassifierContentsEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.ShowHideCompartmentEditPolicy;
+import org.eclipse.papyrus.diagram.common.helper.PreferenceInitializerForElementHelper;
+import org.eclipse.papyrus.diagram.composite.custom.edit.parts.ConstrainedNamedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.CustomDiagramDragDropEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.EncapsulatedClassifierResizableShapeEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.NoScrollBehaviorResizableShapeEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.RemoveOrphanViewPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.StructuredClassifierLayoutEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.figures.ExecutionEnvironmentCompositeFigure;
+import org.eclipse.papyrus.diagram.composite.custom.locators.PortPositionLocator;
+import org.eclipse.papyrus.diagram.composite.edit.policies.ExecutionEnvironmentCompositeItemSemanticEditPolicyCN;
+import org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorPlugin;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter;
+import org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper;
+import org.eclipse.swt.graphics.Color;
+
+/**
+ * @generated
+ */
+public class ExecutionEnvironmentCompositeEditPartCN extends
+
+ConstrainedNamedElementEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 3083;
+
+ /**
+ * @generated
+ */
+ protected IFigure contentPane;
+
+ /**
+ * @generated
+ */
+ protected IFigure primaryShape;
+
+ /**
+ * @generated
+ */
+ public ExecutionEnvironmentCompositeEditPartCN(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ installEditPolicy(EditPolicyRoles.CREATION_ROLE, new CreationEditPolicy());
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new ExecutionEnvironmentCompositeItemSemanticEditPolicyCN());
+ installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new DragDropEditPolicy());
+ installEditPolicy(EditPolicy.LAYOUT_ROLE, createLayoutEditPolicy());
+ installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new CustomDiagramDragDropEditPolicy());
+ installEditPolicy(QualifiedNameDisplayEditPolicy.QUALIFIED_NAME_POLICY, new QualifiedNameDisplayEditPolicy());
+ installEditPolicy(AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeNodeLabelDisplayEditPolicy());
+ installEditPolicy(EditPolicyRoles.POPUPBAR_ROLE, new HyperLinkPopupBarEditPolicy());
+ installEditPolicy(EditPolicy.LAYOUT_ROLE, new StructuredClassifierLayoutEditPolicy());
+ installEditPolicy(ShowHideClassifierContentsEditPolicy.SHOW_HIDE_CLASSIFIER_CONTENTS_POLICY, new ShowHideClassifierContentsEditPolicy());
+ installEditPolicy(ShowHideCompartmentEditPolicy.SHOW_HIDE_COMPARTMENT_POLICY, new ShowHideCompartmentEditPolicy());
+ installEditPolicy(AffixedNodeAlignmentEditPolicy.AFFIXED_CHILD_ALIGNMENT_ROLE, new AffixedNodeAlignmentEditPolicy());
+ installEditPolicy("REMOVE_ORPHAN_VIEW", new RemoveOrphanViewPolicy()); //$NON-NLS-1$
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new NoScrollBehaviorResizableShapeEditPolicy());
+ // XXX need an SCR to runtime to have another abstract superclass that would let children add reasonable editpolicies
+ // removeEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CONNECTION_HANDLES_ROLE);
+ }
+
+ /**
+ * Papyrus codeGen
+ *
+ * @generated
+ **/
+ protected void handleNotificationEvent(Notification event) {
+ super.handleNotificationEvent(event);
+
+ }
+
+ /**
+ * @generated
+ */
+ protected LayoutEditPolicy createLayoutEditPolicy() {
+ org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy lep = new org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy() {
+
+ protected EditPolicy createChildEditPolicy(EditPart child) {
+ View childView = (View)child.getModel();
+ switch(UMLVisualIDRegistry.getVisualID(childView)) {
+ case PortEditPart.VISUAL_ID:
+
+ return new BorderItemResizableEditPolicy();
+
+ }
+ EditPolicy result = child.getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(result == null) {
+ result = new NonResizableEditPolicy();
+ }
+ return result;
+ }
+
+ protected Command getMoveChildrenCommand(Request request) {
+ return null;
+ }
+
+ protected Command getCreateCommand(CreateRequest request) {
+ return null;
+ }
+ };
+ return lep;
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createNodeShape() {
+ return primaryShape = new ExecutionEnvironmentCompositeFigure();
+ }
+
+ /**
+ * @generated
+ */
+ public ExecutionEnvironmentCompositeFigure getPrimaryShape() {
+ return (ExecutionEnvironmentCompositeFigure)primaryShape;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean addFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof ExecutionEnvironmentCompositeNameEditPartCN) {
+ ((ExecutionEnvironmentCompositeNameEditPartCN)childEditPart).setLabel(getPrimaryShape().getNameLabel());
+ return true;
+ }
+
+ if(childEditPart instanceof ExecutionEnvironmentCompositeCompartmentEditPartCN) {
+ IFigure pane = getPrimaryShape().getCompositeCompartmentFigure();
+ setupContentPane(pane); // FIXME each comparment should handle his content pane in his own way
+ pane.add(((ExecutionEnvironmentCompositeCompartmentEditPartCN)childEditPart).getFigure());
+ return true;
+ }
+
+ //Papyrus Gencode :Affixed Port locator
+ if(childEditPart instanceof PortEditPart) {
+ IBorderItemLocator locator = new PortPositionLocator(getMainFigure(), PositionConstants.NONE);
+ getBorderedFigure().getBorderItemContainer().add(((PortEditPart)childEditPart).getFigure(), locator);
+ return true;
+ }
+
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean removeFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof ExecutionEnvironmentCompositeNameEditPartCN) {
+ return true;
+ }
+ if(childEditPart instanceof ExecutionEnvironmentCompositeCompartmentEditPartCN) {
+ IFigure pane = getPrimaryShape().getCompositeCompartmentFigure();
+ setupContentPane(pane); // FIXME each comparment should handle his content pane in his own way
+ pane.remove(((ExecutionEnvironmentCompositeCompartmentEditPartCN)childEditPart).getFigure());
+ return true;
+ }
+ if(childEditPart instanceof PortEditPart) {
+ getBorderedFigure().getBorderItemContainer().remove(((PortEditPart)childEditPart).getFigure());
+ return true;
+ }
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected void addChildVisual(EditPart childEditPart, int index) {
+ if(addFixedChild(childEditPart)) {
+ return;
+ }
+ super.addChildVisual(childEditPart, -1);
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeChildVisual(EditPart childEditPart) {
+ if(removeFixedChild(childEditPart)) {
+ return;
+ }
+ super.removeChildVisual(childEditPart);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure getContentPaneFor(IGraphicalEditPart editPart) {
+ if(editPart instanceof ExecutionEnvironmentCompositeCompartmentEditPartCN) {
+ return getPrimaryShape().getCompositeCompartmentFigure();
+ }
+ if(editPart instanceof IBorderItemEditPart) {
+ return getBorderedFigure().getBorderItemContainer();
+ }
+ return getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ protected NodeFigure createNodePlate() {
+ String prefElementId = "ExecutionEnvironment";
+ IPreferenceStore store = UMLDiagramEditorPlugin.getInstance().getPreferenceStore();
+ String preferenceConstantWitdh = PreferenceInitializerForElementHelper.getpreferenceKey(getNotationView(), prefElementId, PreferenceConstantHelper.WIDTH);
+ String preferenceConstantHeight = PreferenceInitializerForElementHelper.getpreferenceKey(getNotationView(), prefElementId, PreferenceConstantHelper.HEIGHT);
+ DefaultSizeNodeFigure result = new DefaultSizeNodeFigure(store.getInt(preferenceConstantWitdh), store.getInt(preferenceConstantHeight));
+
+ return result;
+ }
+
+ /**
+ * Creates figure for this edit part.
+ *
+ * Body of this method does not depend on settings in generation model
+ * so you may safely remove <i>generated</i> tag and modify it.
+ *
+ * @generated
+ */
+ protected NodeFigure createMainFigure() {
+ NodeFigure figure = createNodePlate();
+ figure.setLayoutManager(new StackLayout());
+ IFigure shape = createNodeShape();
+ figure.add(shape);
+ contentPane = setupContentPane(shape);
+ return figure;
+ }
+
+ /**
+ * Default implementation treats passed figure as content pane.
+ * Respects layout one may have set for generated figure.
+ *
+ * @param nodeShape
+ * instance of generated figure class
+ * @generated
+ */
+ protected IFigure setupContentPane(IFigure nodeShape) {
+ if(nodeShape.getLayoutManager() == null) {
+ ConstrainedToolbarLayout layout = new ConstrainedToolbarLayout();
+ layout.setSpacing(5);
+ nodeShape.setLayoutManager(layout);
+ }
+ return nodeShape; // use nodeShape itself as contentPane
+ }
+
+ /**
+ * @generated
+ */
+ public IFigure getContentPane() {
+ if(contentPane != null) {
+ return contentPane;
+ }
+ return super.getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ protected void setForegroundColor(Color color) {
+ if(primaryShape != null) {
+ primaryShape.setForegroundColor(color);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLineWidth(int width) {
+ if(primaryShape instanceof Shape) {
+ ((Shape)primaryShape).setLineWidth(width);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLineType(int style) {
+ if(primaryShape instanceof Shape) {
+ ((Shape)primaryShape).setLineStyle(style);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public EditPart getPrimaryChildEditPart() {
+ return getChildBySemanticHint(UMLVisualIDRegistry.getType(ExecutionEnvironmentCompositeNameEditPartCN.VISUAL_ID));
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnSource() {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(12);
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ types.add(UMLElementTypes.Substitution_4011);
+ types.add(UMLElementTypes.Realization_4006);
+ types.add(UMLElementTypes.Manifestation_4012);
+ types.add(UMLElementTypes.Abstraction_4007);
+ types.add(UMLElementTypes.Usage_4008);
+ types.add(UMLElementTypes.Deployment_4009);
+ types.add(UMLElementTypes.Dependency_4017);
+ types.add(UMLElementTypes.Dependency_4010);
+ types.add(UMLElementTypes.Generalization_4015);
+ types.add(UMLElementTypes.InformationFlow_4021);
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnSourceAndTarget(IGraphicalEditPart targetEditPart) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMATypesForTarget(IElementType relationshipType) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(relationshipType == UMLElementTypes.ComponentRealization_4004) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InterfaceRealization_4005) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Substitution_4011) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Realization_4006) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Manifestation_4012) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Abstraction_4007) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Usage_4008) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Deployment_4009) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4017) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4010) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Generalization_4015) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ } else if(relationshipType == UMLElementTypes.InformationFlow_4021) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnTarget() {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(17);
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ types.add(UMLElementTypes.Substitution_4011);
+ types.add(UMLElementTypes.Realization_4006);
+ types.add(UMLElementTypes.Manifestation_4012);
+ types.add(UMLElementTypes.Abstraction_4007);
+ types.add(UMLElementTypes.Usage_4008);
+ types.add(UMLElementTypes.Deployment_4009);
+ types.add(UMLElementTypes.Dependency_4017);
+ types.add(UMLElementTypes.Dependency_4010);
+ types.add(UMLElementTypes.Generalization_4015);
+ types.add(UMLElementTypes.TimeObservationEvent_4018);
+ types.add(UMLElementTypes.DurationObservationEvent_4019);
+ types.add(UMLElementTypes.InformationItemRepresented_4020);
+ types.add(UMLElementTypes.InformationFlow_4021);
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMATypesForSource(IElementType relationshipType) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(relationshipType == UMLElementTypes.CommentAnnotatedElement_4002) {
+ types.add(UMLElementTypes.Comment_2109);
+ types.add(UMLElementTypes.Comment_3097);
+ } else if(relationshipType == UMLElementTypes.ConstraintConstrainedElement_4003) {
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.ComponentRealization_4004) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InterfaceRealization_4005) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Substitution_4011) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Realization_4006) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Manifestation_4012) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Abstraction_4007) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Usage_4008) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Deployment_4009) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4017) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4010) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Generalization_4015) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ } else if(relationshipType == UMLElementTypes.TimeObservationEvent_4018) {
+ types.add(UMLElementTypes.TimeObservation_2094);
+ } else if(relationshipType == UMLElementTypes.DurationObservationEvent_4019) {
+ types.add(UMLElementTypes.DurationObservation_2093);
+ } else if(relationshipType == UMLElementTypes.InformationItemRepresented_4020) {
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.InformationItem_3094);
+ } else if(relationshipType == UMLElementTypes.InformationFlow_4021) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public Object getPreferredValue(EStructuralFeature feature) {
+ IPreferenceStore preferenceStore = (IPreferenceStore)getDiagramPreferencesHint().getPreferenceStore();
+ Object result = null;
+
+ if(feature == NotationPackage.eINSTANCE.getLineStyle_LineColor() || feature == NotationPackage.eINSTANCE.getFontStyle_FontColor() || feature == NotationPackage.eINSTANCE.getFillStyle_FillColor()) {
+ String prefColor = null;
+ if(feature == NotationPackage.eINSTANCE.getLineStyle_LineColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("ExecutionEnvironment", PreferenceConstantHelper.COLOR_LINE);
+ } else if(feature == NotationPackage.eINSTANCE.getFontStyle_FontColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("ExecutionEnvironment", PreferenceConstantHelper.COLOR_FONT);
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_FillColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("ExecutionEnvironment", PreferenceConstantHelper.COLOR_FILL);
+ }
+ result = FigureUtilities.RGBToInteger(PreferenceConverter.getColor((IPreferenceStore)preferenceStore, prefColor));
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_Transparency() || feature == NotationPackage.eINSTANCE.getFillStyle_Gradient()) {
+ String prefGradient = PreferenceConstantHelper.getElementConstant("ExecutionEnvironment", PreferenceConstantHelper.COLOR_GRADIENT);
+ GradientPreferenceConverter gradientPreferenceConverter = new GradientPreferenceConverter(preferenceStore.getString(prefGradient));
+ if(feature == NotationPackage.eINSTANCE.getFillStyle_Transparency()) {
+ result = new Integer(gradientPreferenceConverter.getTransparency());
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_Gradient()) {
+ result = gradientPreferenceConverter.getGradientData();
+ }
+ }
+
+ if(result == null) {
+ result = getStructuralFeatureValue(feature);
+ }
+ return result;
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ExecutionEnvironmentCompositeNameEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ExecutionEnvironmentCompositeNameEditPart.java
new file mode 100644
index 00000000000..54b782d0b0e
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ExecutionEnvironmentCompositeNameEditPart.java
@@ -0,0 +1,791 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EAnnotation;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.emf.transaction.RunnableWithResult;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.AccessibleEditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.requests.DirectEditRequest;
+import org.eclipse.gef.tools.DirectEditManager;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.CompartmentEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
+import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
+import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
+import org.eclipse.gmf.runtime.notation.FontStyle;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
+import org.eclipse.jface.viewers.ICellEditorValidator;
+import org.eclipse.jface.window.Window;
+import org.eclipse.papyrus.diagram.common.directedit.MultilineLabelDirectEditManager;
+import org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition;
+import org.eclipse.papyrus.diagram.common.editpolicies.IMaskManagedLabelEditPolicy;
+import org.eclipse.papyrus.diagram.common.figure.node.ILabelFigure;
+import org.eclipse.papyrus.diagram.common.util.DiagramEditPartsUtil;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLTextSelectionEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.diagram.composite.providers.UMLParserProvider;
+import org.eclipse.papyrus.extensionpoints.editors.Activator;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
+import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
+import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
+import org.eclipse.papyrus.umlutils.ui.VisualInformationPapyrusConstant;
+import org.eclipse.papyrus.umlutils.ui.helper.NameLabelIconHelper;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.AccessibleEvent;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.FontData;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.ui.PlatformUI;
+
+/**
+ * @generated
+ */
+public class ExecutionEnvironmentCompositeNameEditPart extends CompartmentEditPart implements ITextAwareEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 5123;
+
+ /**
+ * @generated
+ */
+ private DirectEditManager manager;
+
+ /**
+ * @generated
+ */
+ private IParser parser;
+
+ /**
+ * @generated
+ */
+ private List<?> parserElements;
+
+ /**
+ * @generated
+ */
+ private String defaultText;
+
+ /**
+ * direct edition mode (default, undefined, registered editor, etc.)
+ *
+ * @generated
+ */
+ protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
+
+ /**
+ * configuration from a registered edit dialog
+ *
+ * @generated
+ */
+ protected IDirectEditorConfiguration configuration;
+
+ /**
+ * @generated
+ */
+ public ExecutionEnvironmentCompositeNameEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
+ installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new CompositeStructureDiagramEditPart.NodeLabelDragPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelTextHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getText();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getText();
+ } else {
+ return ((Label)figure).getText();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelTextHelper(IFigure figure, String text) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setText(text);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setText(text);
+ } else {
+ ((Label)figure).setText(text);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIconHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getIcon();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getIcon();
+ } else {
+ return ((Label)figure).getIcon();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelIconHelper(IFigure figure, Image icon) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setIcon(icon);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setIcon(icon);
+ } else {
+ ((Label)figure).setIcon(icon);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabel(WrappingLabel figure) {
+ unregisterVisuals();
+ setFigure(figure);
+ defaultText = getLabelTextHelper(figure);
+ registerVisuals();
+ refreshVisuals();
+ }
+
+ /**
+ * @generated
+ */
+ protected List getModelChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject getParserElement() {
+ return resolveSemanticElement();
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIcon() {
+ EObject parserElement = getParserElement();
+ if(parserElement == null) {
+ return null;
+ }
+
+ List<View> views = DiagramEditPartsUtil.findViews(parserElement, getViewer());
+ for(View view : views) {
+ if(NameLabelIconHelper.showLabelIcon(view)) {
+ return UMLElementTypes.getImage(parserElement.eClass());
+ }
+ }
+ return null;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelText() {
+ String text = null;
+ EObject parserElement = getParserElement();
+ if(parserElement != null && getParser() != null) {
+ text = getParser().getPrintString(new EObjectAdapter(parserElement), getParserOptions().intValue());
+ }
+ if(text == null || text.length() == 0) {
+ text = defaultText;
+ }
+ return text;
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabelText(String text) {
+ setLabelTextHelper(getFigure(), text);
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public String getEditText() {
+ if(getParserElement() == null || getParser() == null) {
+ return ""; //$NON-NLS-1$
+ }
+ return getParser().getEditString(new EObjectAdapter(getParserElement()), getParserOptions().intValue());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean isEditable() {
+ return getParser() != null;
+ }
+
+ /**
+ * @generated
+ */
+ public ICellEditorValidator getEditTextValidator() {
+ return new ICellEditorValidator() {
+
+ public String isValid(final Object value) {
+ if(value instanceof String) {
+ final EObject element = getParserElement();
+ final IParser parser = getParser();
+ try {
+ IParserEditStatus valid = (IParserEditStatus)getEditingDomain().runExclusive(new RunnableWithResult.Impl() {
+
+ public void run() {
+ setResult(parser.isValidEditString(new EObjectAdapter(element), (String)value));
+ }
+ });
+ return valid.getCode() == ParserEditStatus.EDITABLE ? null : valid.getMessage();
+ } catch (InterruptedException ie) {
+ ie.printStackTrace();
+ }
+ }
+
+ // shouldn't get here
+ return null;
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ public IContentAssistProcessor getCompletionProcessor() {
+ if(getParserElement() == null || getParser() == null) {
+ return null;
+ }
+ return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
+ }
+
+ /**
+ * @generated
+ */
+ public ParserOptions getParserOptions() {
+ return ParserOptions.NONE;
+ }
+
+ /**
+ * @generated
+ */
+ public IParser getParser() {
+ if(parser == null) {
+ parser = UMLParserProvider.getParser(UMLElementTypes.ExecutionEnvironment_2071, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.diagram.composite.edit.parts.ExecutionEnvironmentCompositeNameEditPart.VISUAL_ID));
+ }
+ return parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected DirectEditManager getManager() {
+ if(manager == null) {
+ setManager(new MultilineLabelDirectEditManager(this, MultilineLabelDirectEditManager.getTextCellEditorClass(this), UMLEditPartFactory.getTextCellEditorLocator(this)));
+ }
+ return manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setManager(DirectEditManager manager) {
+ this.manager = manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit() {
+ getManager().show();
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit(Point eventLocation) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(eventLocation.getSWTPoint());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void performDirectEdit(char initialCharacter) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(initialCharacter);
+ } else {
+ performDirectEdit();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEditRequest(Request request) {
+
+ final Request theRequest = request;
+
+ if(IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
+ directEditionMode = getDirectEditionType();
+ }
+ switch(directEditionMode) {
+ case IDirectEdition.NO_DIRECT_EDITION:
+ // no direct edition mode => does nothing
+ return;
+ case IDirectEdition.EXTENDED_DIRECT_EDITOR:
+ updateExtendedEditorConfiguration();
+ if(configuration == null || configuration.getLanguage() == null) {
+ performDefaultDirectEditorEdit(theRequest);
+ } else {
+ configuration.preEditAction(resolveSemanticElement());
+ Dialog dialog = null;
+ if(configuration instanceof IPopupEditorConfiguration) {
+ IPopupEditorHelper helper = ((IPopupEditorConfiguration)configuration).createPopupEditorHelper(this);
+ helper.showEditor();
+ return;
+ } else if(configuration instanceof IAdvancedEditorConfiguration) {
+ dialog = ((IAdvancedEditorConfiguration)configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
+ } else if(configuration instanceof IDirectEditorConfiguration) {
+ dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), ((IDirectEditorConfiguration)configuration).getTextToEdit(resolveSemanticElement()), (IDirectEditorConfiguration)configuration);
+ } else {
+ return;
+ }
+ final Dialog finalDialog = dialog;
+
+ if(Window.OK == dialog.open()) {
+ TransactionalEditingDomain domain = getEditingDomain();
+ RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
+
+ @Override
+ protected void doExecute() {
+ configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog)finalDialog).getValue());
+
+ }
+ };
+ domain.getCommandStack().execute(command);
+ }
+ }
+ break;
+ case IDirectEdition.DEFAULT_DIRECT_EDITOR:
+
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ break;
+ default:
+ break;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshLabel();
+ refreshFont();
+ refreshFontColor();
+ refreshUnderline();
+ refreshStrikeThrough();
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshLabel() {
+ EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
+ if(maskLabelPolicy == null) {
+ setLabelTextHelper(getFigure(), getLabelText());
+ setLabelIconHelper(getFigure(), getLabelIcon());
+ }
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshUnderline() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextUnderline(style.isUnderline());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshStrikeThrough() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextStrikeThrough(style.isStrikeThrough());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshFont() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null) {
+ FontData fontData = new FontData(style.getFontName(), style.getFontHeight(), (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
+ setFont(fontData);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setFontColor(Color color) {
+ getFigure().setForegroundColor(color);
+ }
+
+ /**
+ * @generated
+ */
+ protected void addSemanticListeners() {
+ if(getParser() instanceof ISemanticParser) {
+ EObject element = resolveSemanticElement();
+ parserElements = ((ISemanticParser)getParser()).getSemanticElementsBeingParsed(element);
+ for(int i = 0; i < parserElements.size(); i++) {
+ addListenerFilter("SemanticModel" + i, this, (EObject)parserElements.get(i)); //$NON-NLS-1$
+ }
+ } else {
+ super.addSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeSemanticListeners() {
+ if(parserElements != null) {
+ for(int i = 0; i < parserElements.size(); i++) {
+ removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
+ }
+ } else {
+ super.removeSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected AccessibleEditPart getAccessibleEditPart() {
+ if(accessibleEP == null) {
+ accessibleEP = new AccessibleGraphicalEditPart() {
+
+ public void getName(AccessibleEvent e) {
+ e.result = getLabelTextHelper(getFigure());
+ }
+ };
+ }
+ return accessibleEP;
+ }
+
+ /**
+ * @generated
+ */
+ private View getFontStyleOwnerView() {
+ return (View)getModel();
+ }
+
+ /**
+ * Returns the kind of associated editor for direct edition.
+ *
+ * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition
+ * @generated
+ */
+ public int getDirectEditionType() {
+ if(checkExtendedEditor()) {
+ initExtendedEditorConfiguration();
+ return IDirectEdition.EXTENDED_DIRECT_EDITOR;
+ }
+ if(checkDefaultEdition()) {
+ return IDirectEdition.DEFAULT_DIRECT_EDITOR;
+ }
+
+ // not a named element. no specific editor => do nothing
+ return IDirectEdition.NO_DIRECT_EDITION;
+ }
+
+ /**
+ * Checks if an extended editor is present.
+ *
+ * @return <code>true</code> if an extended editor is present.
+ * @generated
+ */
+ protected boolean checkExtendedEditor() {
+ if(resolveSemanticElement() != null) {
+ return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ return false;
+ }
+
+ /**
+ * Checks if a default direct edition is available
+ *
+ * @return <code>true</code> if a default direct edition is available
+ * @generated
+ */
+ protected boolean checkDefaultEdition() {
+ return (getParser() != null);
+ }
+
+ /**
+ * Initializes the extended editor configuration
+ *
+ * @generated
+ */
+ protected void initExtendedEditorConfiguration() {
+ if(configuration == null) {
+ final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("")) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else {
+ configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ }
+ }
+
+ /**
+ * Updates the preference configuration
+ *
+ * @generated
+ */
+ protected void updateExtendedEditorConfiguration() {
+ String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("") && languagePreferred != configuration.getLanguage()) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else if(IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
+ configuration = null;
+ }
+ }
+
+ /**
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
+ protected void performDefaultDirectEditorEdit(final Request theRequest) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void addNotationalListeners() {
+ super.addNotationalListeners();
+ addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeNotationalListeners() {
+ super.removeNotationalListeners();
+ removeListenerFilter("PrimaryView"); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void handleNotificationEvent(Notification event) {
+ refreshLabel();
+ Object feature = event.getFeature();
+ if(NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
+ Integer c = (Integer)event.getNewValue();
+ setFontColor(DiagramColorRegistry.getInstance().getColor(c));
+ } else if(NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
+ refreshUnderline();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
+ refreshStrikeThrough();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
+ refreshFont();
+ } else {
+ if(getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
+ refreshLabel();
+ }
+ if(getParser() instanceof ISemanticParser) {
+ ISemanticParser modelParser = (ISemanticParser)getParser();
+ if(modelParser.areSemanticElementsAffected(null, event)) {
+ removeSemanticListeners();
+ if(resolveSemanticElement() != null) {
+ addSemanticListeners();
+ }
+ refreshLabel();
+ }
+ }
+ }
+
+ if(event.getNewValue() instanceof EAnnotation && VisualInformationPapyrusConstant.DISPLAY_NAMELABELICON.equals(((EAnnotation)event.getNewValue()).getSource())) {
+ refreshLabel();
+ }
+
+ super.handleNotificationEvent(event);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createFigure() {
+ // Parent should assign one using setLabel() method
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ private static final String ADD_PARENT_MODEL = "AddParentModel";
+
+ /**
+ * @generated
+ */
+ public void activate() {
+ super.activate();
+ addOwnerElementListeners();
+ }
+
+ /**
+ * @generated
+ */
+ protected void addOwnerElementListeners() {
+ addListenerFilter(ADD_PARENT_MODEL, this, ((View)getParent().getModel())); //$NON-NLS-1$
+
+ }
+
+ /**
+ * @generated
+ */
+ public void deactivate() {
+ removeOwnerElementListeners();
+ super.deactivate();
+
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeOwnerElementListeners() {
+ removeListenerFilter(ADD_PARENT_MODEL);
+
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ExecutionEnvironmentCompositeNameEditPartCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ExecutionEnvironmentCompositeNameEditPartCN.java
new file mode 100644
index 00000000000..310f801d474
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ExecutionEnvironmentCompositeNameEditPartCN.java
@@ -0,0 +1,791 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EAnnotation;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.emf.transaction.RunnableWithResult;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.AccessibleEditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.requests.DirectEditRequest;
+import org.eclipse.gef.tools.DirectEditManager;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.CompartmentEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
+import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
+import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
+import org.eclipse.gmf.runtime.notation.FontStyle;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
+import org.eclipse.jface.viewers.ICellEditorValidator;
+import org.eclipse.jface.window.Window;
+import org.eclipse.papyrus.diagram.common.directedit.MultilineLabelDirectEditManager;
+import org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition;
+import org.eclipse.papyrus.diagram.common.editpolicies.IMaskManagedLabelEditPolicy;
+import org.eclipse.papyrus.diagram.common.figure.node.ILabelFigure;
+import org.eclipse.papyrus.diagram.common.util.DiagramEditPartsUtil;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLTextSelectionEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.diagram.composite.providers.UMLParserProvider;
+import org.eclipse.papyrus.extensionpoints.editors.Activator;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
+import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
+import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
+import org.eclipse.papyrus.umlutils.ui.VisualInformationPapyrusConstant;
+import org.eclipse.papyrus.umlutils.ui.helper.NameLabelIconHelper;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.AccessibleEvent;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.FontData;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.ui.PlatformUI;
+
+/**
+ * @generated
+ */
+public class ExecutionEnvironmentCompositeNameEditPartCN extends CompartmentEditPart implements ITextAwareEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 5139;
+
+ /**
+ * @generated
+ */
+ private DirectEditManager manager;
+
+ /**
+ * @generated
+ */
+ private IParser parser;
+
+ /**
+ * @generated
+ */
+ private List<?> parserElements;
+
+ /**
+ * @generated
+ */
+ private String defaultText;
+
+ /**
+ * direct edition mode (default, undefined, registered editor, etc.)
+ *
+ * @generated
+ */
+ protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
+
+ /**
+ * configuration from a registered edit dialog
+ *
+ * @generated
+ */
+ protected IDirectEditorConfiguration configuration;
+
+ /**
+ * @generated
+ */
+ public ExecutionEnvironmentCompositeNameEditPartCN(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
+ installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new CompositeStructureDiagramEditPart.NodeLabelDragPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelTextHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getText();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getText();
+ } else {
+ return ((Label)figure).getText();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelTextHelper(IFigure figure, String text) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setText(text);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setText(text);
+ } else {
+ ((Label)figure).setText(text);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIconHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getIcon();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getIcon();
+ } else {
+ return ((Label)figure).getIcon();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelIconHelper(IFigure figure, Image icon) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setIcon(icon);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setIcon(icon);
+ } else {
+ ((Label)figure).setIcon(icon);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabel(WrappingLabel figure) {
+ unregisterVisuals();
+ setFigure(figure);
+ defaultText = getLabelTextHelper(figure);
+ registerVisuals();
+ refreshVisuals();
+ }
+
+ /**
+ * @generated
+ */
+ protected List getModelChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject getParserElement() {
+ return resolveSemanticElement();
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIcon() {
+ EObject parserElement = getParserElement();
+ if(parserElement == null) {
+ return null;
+ }
+
+ List<View> views = DiagramEditPartsUtil.findViews(parserElement, getViewer());
+ for(View view : views) {
+ if(NameLabelIconHelper.showLabelIcon(view)) {
+ return UMLElementTypes.getImage(parserElement.eClass());
+ }
+ }
+ return null;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelText() {
+ String text = null;
+ EObject parserElement = getParserElement();
+ if(parserElement != null && getParser() != null) {
+ text = getParser().getPrintString(new EObjectAdapter(parserElement), getParserOptions().intValue());
+ }
+ if(text == null || text.length() == 0) {
+ text = defaultText;
+ }
+ return text;
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabelText(String text) {
+ setLabelTextHelper(getFigure(), text);
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public String getEditText() {
+ if(getParserElement() == null || getParser() == null) {
+ return ""; //$NON-NLS-1$
+ }
+ return getParser().getEditString(new EObjectAdapter(getParserElement()), getParserOptions().intValue());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean isEditable() {
+ return getParser() != null;
+ }
+
+ /**
+ * @generated
+ */
+ public ICellEditorValidator getEditTextValidator() {
+ return new ICellEditorValidator() {
+
+ public String isValid(final Object value) {
+ if(value instanceof String) {
+ final EObject element = getParserElement();
+ final IParser parser = getParser();
+ try {
+ IParserEditStatus valid = (IParserEditStatus)getEditingDomain().runExclusive(new RunnableWithResult.Impl() {
+
+ public void run() {
+ setResult(parser.isValidEditString(new EObjectAdapter(element), (String)value));
+ }
+ });
+ return valid.getCode() == ParserEditStatus.EDITABLE ? null : valid.getMessage();
+ } catch (InterruptedException ie) {
+ ie.printStackTrace();
+ }
+ }
+
+ // shouldn't get here
+ return null;
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ public IContentAssistProcessor getCompletionProcessor() {
+ if(getParserElement() == null || getParser() == null) {
+ return null;
+ }
+ return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
+ }
+
+ /**
+ * @generated
+ */
+ public ParserOptions getParserOptions() {
+ return ParserOptions.NONE;
+ }
+
+ /**
+ * @generated
+ */
+ public IParser getParser() {
+ if(parser == null) {
+ parser = UMLParserProvider.getParser(UMLElementTypes.ExecutionEnvironment_3083, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.diagram.composite.edit.parts.ExecutionEnvironmentCompositeNameEditPartCN.VISUAL_ID));
+ }
+ return parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected DirectEditManager getManager() {
+ if(manager == null) {
+ setManager(new MultilineLabelDirectEditManager(this, MultilineLabelDirectEditManager.getTextCellEditorClass(this), UMLEditPartFactory.getTextCellEditorLocator(this)));
+ }
+ return manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setManager(DirectEditManager manager) {
+ this.manager = manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit() {
+ getManager().show();
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit(Point eventLocation) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(eventLocation.getSWTPoint());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void performDirectEdit(char initialCharacter) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(initialCharacter);
+ } else {
+ performDirectEdit();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEditRequest(Request request) {
+
+ final Request theRequest = request;
+
+ if(IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
+ directEditionMode = getDirectEditionType();
+ }
+ switch(directEditionMode) {
+ case IDirectEdition.NO_DIRECT_EDITION:
+ // no direct edition mode => does nothing
+ return;
+ case IDirectEdition.EXTENDED_DIRECT_EDITOR:
+ updateExtendedEditorConfiguration();
+ if(configuration == null || configuration.getLanguage() == null) {
+ performDefaultDirectEditorEdit(theRequest);
+ } else {
+ configuration.preEditAction(resolveSemanticElement());
+ Dialog dialog = null;
+ if(configuration instanceof IPopupEditorConfiguration) {
+ IPopupEditorHelper helper = ((IPopupEditorConfiguration)configuration).createPopupEditorHelper(this);
+ helper.showEditor();
+ return;
+ } else if(configuration instanceof IAdvancedEditorConfiguration) {
+ dialog = ((IAdvancedEditorConfiguration)configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
+ } else if(configuration instanceof IDirectEditorConfiguration) {
+ dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), ((IDirectEditorConfiguration)configuration).getTextToEdit(resolveSemanticElement()), (IDirectEditorConfiguration)configuration);
+ } else {
+ return;
+ }
+ final Dialog finalDialog = dialog;
+
+ if(Window.OK == dialog.open()) {
+ TransactionalEditingDomain domain = getEditingDomain();
+ RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
+
+ @Override
+ protected void doExecute() {
+ configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog)finalDialog).getValue());
+
+ }
+ };
+ domain.getCommandStack().execute(command);
+ }
+ }
+ break;
+ case IDirectEdition.DEFAULT_DIRECT_EDITOR:
+
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ break;
+ default:
+ break;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshLabel();
+ refreshFont();
+ refreshFontColor();
+ refreshUnderline();
+ refreshStrikeThrough();
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshLabel() {
+ EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
+ if(maskLabelPolicy == null) {
+ setLabelTextHelper(getFigure(), getLabelText());
+ setLabelIconHelper(getFigure(), getLabelIcon());
+ }
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshUnderline() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextUnderline(style.isUnderline());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshStrikeThrough() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextStrikeThrough(style.isStrikeThrough());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshFont() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null) {
+ FontData fontData = new FontData(style.getFontName(), style.getFontHeight(), (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
+ setFont(fontData);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setFontColor(Color color) {
+ getFigure().setForegroundColor(color);
+ }
+
+ /**
+ * @generated
+ */
+ protected void addSemanticListeners() {
+ if(getParser() instanceof ISemanticParser) {
+ EObject element = resolveSemanticElement();
+ parserElements = ((ISemanticParser)getParser()).getSemanticElementsBeingParsed(element);
+ for(int i = 0; i < parserElements.size(); i++) {
+ addListenerFilter("SemanticModel" + i, this, (EObject)parserElements.get(i)); //$NON-NLS-1$
+ }
+ } else {
+ super.addSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeSemanticListeners() {
+ if(parserElements != null) {
+ for(int i = 0; i < parserElements.size(); i++) {
+ removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
+ }
+ } else {
+ super.removeSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected AccessibleEditPart getAccessibleEditPart() {
+ if(accessibleEP == null) {
+ accessibleEP = new AccessibleGraphicalEditPart() {
+
+ public void getName(AccessibleEvent e) {
+ e.result = getLabelTextHelper(getFigure());
+ }
+ };
+ }
+ return accessibleEP;
+ }
+
+ /**
+ * @generated
+ */
+ private View getFontStyleOwnerView() {
+ return (View)getModel();
+ }
+
+ /**
+ * Returns the kind of associated editor for direct edition.
+ *
+ * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition
+ * @generated
+ */
+ public int getDirectEditionType() {
+ if(checkExtendedEditor()) {
+ initExtendedEditorConfiguration();
+ return IDirectEdition.EXTENDED_DIRECT_EDITOR;
+ }
+ if(checkDefaultEdition()) {
+ return IDirectEdition.DEFAULT_DIRECT_EDITOR;
+ }
+
+ // not a named element. no specific editor => do nothing
+ return IDirectEdition.NO_DIRECT_EDITION;
+ }
+
+ /**
+ * Checks if an extended editor is present.
+ *
+ * @return <code>true</code> if an extended editor is present.
+ * @generated
+ */
+ protected boolean checkExtendedEditor() {
+ if(resolveSemanticElement() != null) {
+ return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ return false;
+ }
+
+ /**
+ * Checks if a default direct edition is available
+ *
+ * @return <code>true</code> if a default direct edition is available
+ * @generated
+ */
+ protected boolean checkDefaultEdition() {
+ return (getParser() != null);
+ }
+
+ /**
+ * Initializes the extended editor configuration
+ *
+ * @generated
+ */
+ protected void initExtendedEditorConfiguration() {
+ if(configuration == null) {
+ final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("")) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else {
+ configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ }
+ }
+
+ /**
+ * Updates the preference configuration
+ *
+ * @generated
+ */
+ protected void updateExtendedEditorConfiguration() {
+ String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("") && languagePreferred != configuration.getLanguage()) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else if(IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
+ configuration = null;
+ }
+ }
+
+ /**
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
+ protected void performDefaultDirectEditorEdit(final Request theRequest) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void addNotationalListeners() {
+ super.addNotationalListeners();
+ addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeNotationalListeners() {
+ super.removeNotationalListeners();
+ removeListenerFilter("PrimaryView"); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void handleNotificationEvent(Notification event) {
+ refreshLabel();
+ Object feature = event.getFeature();
+ if(NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
+ Integer c = (Integer)event.getNewValue();
+ setFontColor(DiagramColorRegistry.getInstance().getColor(c));
+ } else if(NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
+ refreshUnderline();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
+ refreshStrikeThrough();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
+ refreshFont();
+ } else {
+ if(getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
+ refreshLabel();
+ }
+ if(getParser() instanceof ISemanticParser) {
+ ISemanticParser modelParser = (ISemanticParser)getParser();
+ if(modelParser.areSemanticElementsAffected(null, event)) {
+ removeSemanticListeners();
+ if(resolveSemanticElement() != null) {
+ addSemanticListeners();
+ }
+ refreshLabel();
+ }
+ }
+ }
+
+ if(event.getNewValue() instanceof EAnnotation && VisualInformationPapyrusConstant.DISPLAY_NAMELABELICON.equals(((EAnnotation)event.getNewValue()).getSource())) {
+ refreshLabel();
+ }
+
+ super.handleNotificationEvent(event);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createFigure() {
+ // Parent should assign one using setLabel() method
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ private static final String ADD_PARENT_MODEL = "AddParentModel";
+
+ /**
+ * @generated
+ */
+ public void activate() {
+ super.activate();
+ addOwnerElementListeners();
+ }
+
+ /**
+ * @generated
+ */
+ protected void addOwnerElementListeners() {
+ addListenerFilter(ADD_PARENT_MODEL, this, ((View)getParent().getModel())); //$NON-NLS-1$
+
+ }
+
+ /**
+ * @generated
+ */
+ public void deactivate() {
+ removeOwnerElementListeners();
+ super.deactivate();
+
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeOwnerElementListeners() {
+ removeListenerFilter(ADD_PARENT_MODEL);
+
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ExecutionEventEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ExecutionEventEditPart.java
new file mode 100644
index 00000000000..8cd2af0f895
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ExecutionEventEditPart.java
@@ -0,0 +1,5167 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.ArrayList;
+import java.util.LinkedList;
+import java.util.List;
+
+import org.eclipse.draw2d.ColorConstants;
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.RectangleFigure;
+import org.eclipse.draw2d.Shape;
+import org.eclipse.draw2d.StackLayout;
+import org.eclipse.emf.ecore.EStructuralFeature;
+import org.eclipse.gef.EditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.editpolicies.LayoutEditPolicy;
+import org.eclipse.gef.editpolicies.NonResizableEditPolicy;
+import org.eclipse.gef.requests.CreateRequest;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ShapeNodeEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.FigureUtilities;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.gef.ui.figures.DefaultSizeNodeFigure;
+import org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.jface.preference.PreferenceConverter;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.HyperLinkPopupBarEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.QualifiedNameDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.helper.PreferenceInitializerForElementHelper;
+import org.eclipse.papyrus.diagram.composite.edit.policies.ExecutionEventItemSemanticEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorPlugin;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter;
+import org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.Font;
+import org.eclipse.swt.widgets.Display;
+
+/**
+ * @generated
+ */
+public class ExecutionEventEditPart extends
+
+ShapeNodeEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 2092;
+
+ /**
+ * @generated
+ */
+ protected IFigure contentPane;
+
+ /**
+ * @generated
+ */
+ protected IFigure primaryShape;
+
+ /**
+ * @generated
+ */
+ public ExecutionEventEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new ExecutionEventItemSemanticEditPolicy());
+ installEditPolicy(EditPolicy.LAYOUT_ROLE, createLayoutEditPolicy());
+ installEditPolicy(QualifiedNameDisplayEditPolicy.QUALIFIED_NAME_POLICY, new QualifiedNameDisplayEditPolicy());
+ installEditPolicy(AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeNodeLabelDisplayEditPolicy());
+ installEditPolicy(EditPolicyRoles.POPUPBAR_ROLE, new HyperLinkPopupBarEditPolicy());
+ // XXX need an SCR to runtime to have another abstract superclass that would let children add reasonable editpolicies
+ // removeEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CONNECTION_HANDLES_ROLE);
+ }
+
+ /**
+ * @generated
+ */
+ protected LayoutEditPolicy createLayoutEditPolicy() {
+ org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy lep = new org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy() {
+
+ protected EditPolicy createChildEditPolicy(EditPart child) {
+ EditPolicy result = child.getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(result == null) {
+ result = new NonResizableEditPolicy();
+ }
+ return result;
+ }
+
+ protected Command getMoveChildrenCommand(Request request) {
+ return null;
+ }
+
+ protected Command getCreateCommand(CreateRequest request) {
+ return null;
+ }
+ };
+ return lep;
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createNodeShape() {
+ return primaryShape = new NamedElementDescriptor();
+ }
+
+ /**
+ * @generated
+ */
+ public NamedElementDescriptor getPrimaryShape() {
+ return (NamedElementDescriptor)primaryShape;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean addFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof ExecutionEventNameEditPart) {
+ ((ExecutionEventNameEditPart)childEditPart).setLabel(getPrimaryShape().getNamedElementNameLabel());
+ return true;
+ }
+
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean removeFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof ExecutionEventNameEditPart) {
+ return true;
+ }
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected void addChildVisual(EditPart childEditPart, int index) {
+ if(addFixedChild(childEditPart)) {
+ return;
+ }
+ super.addChildVisual(childEditPart, -1);
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeChildVisual(EditPart childEditPart) {
+ if(removeFixedChild(childEditPart)) {
+ return;
+ }
+ super.removeChildVisual(childEditPart);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure getContentPaneFor(IGraphicalEditPart editPart) {
+ return getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ protected NodeFigure createNodePlate() {
+ String prefElementId = "ExecutionEvent";
+ IPreferenceStore store = UMLDiagramEditorPlugin.getInstance().getPreferenceStore();
+ String preferenceConstantWitdh = PreferenceInitializerForElementHelper.getpreferenceKey(getNotationView(), prefElementId, PreferenceConstantHelper.WIDTH);
+ String preferenceConstantHeight = PreferenceInitializerForElementHelper.getpreferenceKey(getNotationView(), prefElementId, PreferenceConstantHelper.HEIGHT);
+ DefaultSizeNodeFigure result = new DefaultSizeNodeFigure(store.getInt(preferenceConstantWitdh), store.getInt(preferenceConstantHeight));
+
+ return result;
+ }
+
+ /**
+ * Creates figure for this edit part.
+ *
+ * Body of this method does not depend on settings in generation model
+ * so you may safely remove <i>generated</i> tag and modify it.
+ *
+ * @generated
+ */
+ protected NodeFigure createNodeFigure() {
+ NodeFigure figure = createNodePlate();
+ figure.setLayoutManager(new StackLayout());
+ IFigure shape = createNodeShape();
+ figure.add(shape);
+ contentPane = setupContentPane(shape);
+ return figure;
+ }
+
+ /**
+ * Default implementation treats passed figure as content pane.
+ * Respects layout one may have set for generated figure.
+ *
+ * @param nodeShape
+ * instance of generated figure class
+ * @generated
+ */
+ protected IFigure setupContentPane(IFigure nodeShape) {
+ if(nodeShape.getLayoutManager() == null) {
+ ConstrainedToolbarLayout layout = new ConstrainedToolbarLayout();
+ layout.setSpacing(5);
+ nodeShape.setLayoutManager(layout);
+ }
+ return nodeShape; // use nodeShape itself as contentPane
+ }
+
+ /**
+ * @generated
+ */
+ public IFigure getContentPane() {
+ if(contentPane != null) {
+ return contentPane;
+ }
+ return super.getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ protected void setForegroundColor(Color color) {
+ if(primaryShape != null) {
+ primaryShape.setForegroundColor(color);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLineWidth(int width) {
+ if(primaryShape instanceof Shape) {
+ ((Shape)primaryShape).setLineWidth(width);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLineType(int style) {
+ if(primaryShape instanceof Shape) {
+ ((Shape)primaryShape).setLineStyle(style);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public EditPart getPrimaryChildEditPart() {
+ return getChildBySemanticHint(UMLVisualIDRegistry.getType(ExecutionEventNameEditPart.VISUAL_ID));
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnSource() {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(11);
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ types.add(UMLElementTypes.Substitution_4011);
+ types.add(UMLElementTypes.Realization_4006);
+ types.add(UMLElementTypes.Manifestation_4012);
+ types.add(UMLElementTypes.Abstraction_4007);
+ types.add(UMLElementTypes.Usage_4008);
+ types.add(UMLElementTypes.Deployment_4009);
+ types.add(UMLElementTypes.Dependency_4017);
+ types.add(UMLElementTypes.Dependency_4010);
+ types.add(UMLElementTypes.InformationFlow_4021);
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnSourceAndTarget(IGraphicalEditPart targetEditPart) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ExecutionEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ExecutionEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ExecutionEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMATypesForTarget(IElementType relationshipType) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(relationshipType == UMLElementTypes.ComponentRealization_4004) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InterfaceRealization_4005) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Substitution_4011) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Realization_4006) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Manifestation_4012) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Abstraction_4007) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Usage_4008) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Deployment_4009) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4017) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4010) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InformationFlow_4021) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnTarget() {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(15);
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ types.add(UMLElementTypes.Substitution_4011);
+ types.add(UMLElementTypes.Realization_4006);
+ types.add(UMLElementTypes.Manifestation_4012);
+ types.add(UMLElementTypes.Abstraction_4007);
+ types.add(UMLElementTypes.Usage_4008);
+ types.add(UMLElementTypes.Deployment_4009);
+ types.add(UMLElementTypes.Dependency_4017);
+ types.add(UMLElementTypes.Dependency_4010);
+ types.add(UMLElementTypes.TimeObservationEvent_4018);
+ types.add(UMLElementTypes.DurationObservationEvent_4019);
+ types.add(UMLElementTypes.InformationFlow_4021);
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMATypesForSource(IElementType relationshipType) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(relationshipType == UMLElementTypes.CommentAnnotatedElement_4002) {
+ types.add(UMLElementTypes.Comment_2109);
+ types.add(UMLElementTypes.Comment_3097);
+ } else if(relationshipType == UMLElementTypes.ConstraintConstrainedElement_4003) {
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.ComponentRealization_4004) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InterfaceRealization_4005) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Substitution_4011) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Realization_4006) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Manifestation_4012) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Abstraction_4007) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Usage_4008) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Deployment_4009) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4017) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4010) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.TimeObservationEvent_4018) {
+ types.add(UMLElementTypes.TimeObservation_2094);
+ } else if(relationshipType == UMLElementTypes.DurationObservationEvent_4019) {
+ types.add(UMLElementTypes.DurationObservation_2093);
+ } else if(relationshipType == UMLElementTypes.InformationFlow_4021) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public class NamedElementDescriptor extends RectangleFigure {
+
+ /**
+ * @generated
+ */
+ private WrappingLabel fNamedElementNameLabel;
+
+ /**
+ * @generated
+ */
+ public NamedElementDescriptor() {
+ this.setLineWidth(1);
+ this.setForegroundColor(ColorConstants.black);
+ createContents();
+ }
+
+ /**
+ * @generated
+ */
+ private void createContents() {
+
+ fNamedElementNameLabel = new WrappingLabel();
+ fNamedElementNameLabel.setText("");
+ fNamedElementNameLabel.setForegroundColor(ColorConstants.black);
+
+ fNamedElementNameLabel.setFont(FNAMEDELEMENTNAMELABEL_FONT);
+
+ this.add(fNamedElementNameLabel);
+
+ }
+
+ /**
+ * @generated
+ */
+ private boolean myUseLocalCoordinates = false;
+
+ /**
+ * @generated
+ */
+ protected boolean useLocalCoordinates() {
+ return myUseLocalCoordinates;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setUseLocalCoordinates(boolean useLocalCoordinates) {
+ myUseLocalCoordinates = useLocalCoordinates;
+ }
+
+ /**
+ * @generated
+ */
+ public WrappingLabel getNamedElementNameLabel() {
+ return fNamedElementNameLabel;
+ }
+
+ }
+
+ /**
+ * @generated
+ */
+ static final Font FNAMEDELEMENTNAMELABEL_FONT = new Font(Display.getCurrent(), "Arial", 10, SWT.BOLD);
+
+ /**
+ * @generated
+ */
+ @Override
+ public Object getPreferredValue(EStructuralFeature feature) {
+ IPreferenceStore preferenceStore = (IPreferenceStore)getDiagramPreferencesHint().getPreferenceStore();
+ Object result = null;
+
+ if(feature == NotationPackage.eINSTANCE.getLineStyle_LineColor() || feature == NotationPackage.eINSTANCE.getFontStyle_FontColor() || feature == NotationPackage.eINSTANCE.getFillStyle_FillColor()) {
+ String prefColor = null;
+ if(feature == NotationPackage.eINSTANCE.getLineStyle_LineColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("ExecutionEvent", PreferenceConstantHelper.COLOR_LINE);
+ } else if(feature == NotationPackage.eINSTANCE.getFontStyle_FontColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("ExecutionEvent", PreferenceConstantHelper.COLOR_FONT);
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_FillColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("ExecutionEvent", PreferenceConstantHelper.COLOR_FILL);
+ }
+ result = FigureUtilities.RGBToInteger(PreferenceConverter.getColor((IPreferenceStore)preferenceStore, prefColor));
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_Transparency() || feature == NotationPackage.eINSTANCE.getFillStyle_Gradient()) {
+ String prefGradient = PreferenceConstantHelper.getElementConstant("ExecutionEvent", PreferenceConstantHelper.COLOR_GRADIENT);
+ GradientPreferenceConverter gradientPreferenceConverter = new GradientPreferenceConverter(preferenceStore.getString(prefGradient));
+ if(feature == NotationPackage.eINSTANCE.getFillStyle_Transparency()) {
+ result = new Integer(gradientPreferenceConverter.getTransparency());
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_Gradient()) {
+ result = gradientPreferenceConverter.getGradientData();
+ }
+ }
+
+ if(result == null) {
+ result = getStructuralFeatureValue(feature);
+ }
+ return result;
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ExecutionEventNameEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ExecutionEventNameEditPart.java
new file mode 100644
index 00000000000..4bbf233cb55
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ExecutionEventNameEditPart.java
@@ -0,0 +1,791 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EAnnotation;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.emf.transaction.RunnableWithResult;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.AccessibleEditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.requests.DirectEditRequest;
+import org.eclipse.gef.tools.DirectEditManager;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.CompartmentEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
+import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
+import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
+import org.eclipse.gmf.runtime.notation.FontStyle;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
+import org.eclipse.jface.viewers.ICellEditorValidator;
+import org.eclipse.jface.window.Window;
+import org.eclipse.papyrus.diagram.common.directedit.MultilineLabelDirectEditManager;
+import org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition;
+import org.eclipse.papyrus.diagram.common.editpolicies.IMaskManagedLabelEditPolicy;
+import org.eclipse.papyrus.diagram.common.figure.node.ILabelFigure;
+import org.eclipse.papyrus.diagram.common.util.DiagramEditPartsUtil;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLTextSelectionEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.diagram.composite.providers.UMLParserProvider;
+import org.eclipse.papyrus.extensionpoints.editors.Activator;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
+import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
+import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
+import org.eclipse.papyrus.umlutils.ui.VisualInformationPapyrusConstant;
+import org.eclipse.papyrus.umlutils.ui.helper.NameLabelIconHelper;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.AccessibleEvent;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.FontData;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.ui.PlatformUI;
+
+/**
+ * @generated
+ */
+public class ExecutionEventNameEditPart extends CompartmentEditPart implements ITextAwareEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 5175;
+
+ /**
+ * @generated
+ */
+ private DirectEditManager manager;
+
+ /**
+ * @generated
+ */
+ private IParser parser;
+
+ /**
+ * @generated
+ */
+ private List<?> parserElements;
+
+ /**
+ * @generated
+ */
+ private String defaultText;
+
+ /**
+ * direct edition mode (default, undefined, registered editor, etc.)
+ *
+ * @generated
+ */
+ protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
+
+ /**
+ * configuration from a registered edit dialog
+ *
+ * @generated
+ */
+ protected IDirectEditorConfiguration configuration;
+
+ /**
+ * @generated
+ */
+ public ExecutionEventNameEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
+ installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new CompositeStructureDiagramEditPart.NodeLabelDragPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelTextHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getText();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getText();
+ } else {
+ return ((Label)figure).getText();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelTextHelper(IFigure figure, String text) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setText(text);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setText(text);
+ } else {
+ ((Label)figure).setText(text);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIconHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getIcon();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getIcon();
+ } else {
+ return ((Label)figure).getIcon();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelIconHelper(IFigure figure, Image icon) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setIcon(icon);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setIcon(icon);
+ } else {
+ ((Label)figure).setIcon(icon);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabel(WrappingLabel figure) {
+ unregisterVisuals();
+ setFigure(figure);
+ defaultText = getLabelTextHelper(figure);
+ registerVisuals();
+ refreshVisuals();
+ }
+
+ /**
+ * @generated
+ */
+ protected List getModelChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject getParserElement() {
+ return resolveSemanticElement();
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIcon() {
+ EObject parserElement = getParserElement();
+ if(parserElement == null) {
+ return null;
+ }
+
+ List<View> views = DiagramEditPartsUtil.findViews(parserElement, getViewer());
+ for(View view : views) {
+ if(NameLabelIconHelper.showLabelIcon(view)) {
+ return UMLElementTypes.getImage(parserElement.eClass());
+ }
+ }
+ return null;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelText() {
+ String text = null;
+ EObject parserElement = getParserElement();
+ if(parserElement != null && getParser() != null) {
+ text = getParser().getPrintString(new EObjectAdapter(parserElement), getParserOptions().intValue());
+ }
+ if(text == null || text.length() == 0) {
+ text = defaultText;
+ }
+ return text;
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabelText(String text) {
+ setLabelTextHelper(getFigure(), text);
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public String getEditText() {
+ if(getParserElement() == null || getParser() == null) {
+ return ""; //$NON-NLS-1$
+ }
+ return getParser().getEditString(new EObjectAdapter(getParserElement()), getParserOptions().intValue());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean isEditable() {
+ return getParser() != null;
+ }
+
+ /**
+ * @generated
+ */
+ public ICellEditorValidator getEditTextValidator() {
+ return new ICellEditorValidator() {
+
+ public String isValid(final Object value) {
+ if(value instanceof String) {
+ final EObject element = getParserElement();
+ final IParser parser = getParser();
+ try {
+ IParserEditStatus valid = (IParserEditStatus)getEditingDomain().runExclusive(new RunnableWithResult.Impl() {
+
+ public void run() {
+ setResult(parser.isValidEditString(new EObjectAdapter(element), (String)value));
+ }
+ });
+ return valid.getCode() == ParserEditStatus.EDITABLE ? null : valid.getMessage();
+ } catch (InterruptedException ie) {
+ ie.printStackTrace();
+ }
+ }
+
+ // shouldn't get here
+ return null;
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ public IContentAssistProcessor getCompletionProcessor() {
+ if(getParserElement() == null || getParser() == null) {
+ return null;
+ }
+ return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
+ }
+
+ /**
+ * @generated
+ */
+ public ParserOptions getParserOptions() {
+ return ParserOptions.NONE;
+ }
+
+ /**
+ * @generated
+ */
+ public IParser getParser() {
+ if(parser == null) {
+ parser = UMLParserProvider.getParser(UMLElementTypes.ExecutionEvent_2092, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.diagram.composite.edit.parts.ExecutionEventNameEditPart.VISUAL_ID));
+ }
+ return parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected DirectEditManager getManager() {
+ if(manager == null) {
+ setManager(new MultilineLabelDirectEditManager(this, MultilineLabelDirectEditManager.getTextCellEditorClass(this), UMLEditPartFactory.getTextCellEditorLocator(this)));
+ }
+ return manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setManager(DirectEditManager manager) {
+ this.manager = manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit() {
+ getManager().show();
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit(Point eventLocation) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(eventLocation.getSWTPoint());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void performDirectEdit(char initialCharacter) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(initialCharacter);
+ } else {
+ performDirectEdit();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEditRequest(Request request) {
+
+ final Request theRequest = request;
+
+ if(IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
+ directEditionMode = getDirectEditionType();
+ }
+ switch(directEditionMode) {
+ case IDirectEdition.NO_DIRECT_EDITION:
+ // no direct edition mode => does nothing
+ return;
+ case IDirectEdition.EXTENDED_DIRECT_EDITOR:
+ updateExtendedEditorConfiguration();
+ if(configuration == null || configuration.getLanguage() == null) {
+ performDefaultDirectEditorEdit(theRequest);
+ } else {
+ configuration.preEditAction(resolveSemanticElement());
+ Dialog dialog = null;
+ if(configuration instanceof IPopupEditorConfiguration) {
+ IPopupEditorHelper helper = ((IPopupEditorConfiguration)configuration).createPopupEditorHelper(this);
+ helper.showEditor();
+ return;
+ } else if(configuration instanceof IAdvancedEditorConfiguration) {
+ dialog = ((IAdvancedEditorConfiguration)configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
+ } else if(configuration instanceof IDirectEditorConfiguration) {
+ dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), ((IDirectEditorConfiguration)configuration).getTextToEdit(resolveSemanticElement()), (IDirectEditorConfiguration)configuration);
+ } else {
+ return;
+ }
+ final Dialog finalDialog = dialog;
+
+ if(Window.OK == dialog.open()) {
+ TransactionalEditingDomain domain = getEditingDomain();
+ RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
+
+ @Override
+ protected void doExecute() {
+ configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog)finalDialog).getValue());
+
+ }
+ };
+ domain.getCommandStack().execute(command);
+ }
+ }
+ break;
+ case IDirectEdition.DEFAULT_DIRECT_EDITOR:
+
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ break;
+ default:
+ break;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshLabel();
+ refreshFont();
+ refreshFontColor();
+ refreshUnderline();
+ refreshStrikeThrough();
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshLabel() {
+ EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
+ if(maskLabelPolicy == null) {
+ setLabelTextHelper(getFigure(), getLabelText());
+ setLabelIconHelper(getFigure(), getLabelIcon());
+ }
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshUnderline() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextUnderline(style.isUnderline());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshStrikeThrough() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextStrikeThrough(style.isStrikeThrough());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshFont() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null) {
+ FontData fontData = new FontData(style.getFontName(), style.getFontHeight(), (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
+ setFont(fontData);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setFontColor(Color color) {
+ getFigure().setForegroundColor(color);
+ }
+
+ /**
+ * @generated
+ */
+ protected void addSemanticListeners() {
+ if(getParser() instanceof ISemanticParser) {
+ EObject element = resolveSemanticElement();
+ parserElements = ((ISemanticParser)getParser()).getSemanticElementsBeingParsed(element);
+ for(int i = 0; i < parserElements.size(); i++) {
+ addListenerFilter("SemanticModel" + i, this, (EObject)parserElements.get(i)); //$NON-NLS-1$
+ }
+ } else {
+ super.addSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeSemanticListeners() {
+ if(parserElements != null) {
+ for(int i = 0; i < parserElements.size(); i++) {
+ removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
+ }
+ } else {
+ super.removeSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected AccessibleEditPart getAccessibleEditPart() {
+ if(accessibleEP == null) {
+ accessibleEP = new AccessibleGraphicalEditPart() {
+
+ public void getName(AccessibleEvent e) {
+ e.result = getLabelTextHelper(getFigure());
+ }
+ };
+ }
+ return accessibleEP;
+ }
+
+ /**
+ * @generated
+ */
+ private View getFontStyleOwnerView() {
+ return (View)getModel();
+ }
+
+ /**
+ * Returns the kind of associated editor for direct edition.
+ *
+ * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition
+ * @generated
+ */
+ public int getDirectEditionType() {
+ if(checkExtendedEditor()) {
+ initExtendedEditorConfiguration();
+ return IDirectEdition.EXTENDED_DIRECT_EDITOR;
+ }
+ if(checkDefaultEdition()) {
+ return IDirectEdition.DEFAULT_DIRECT_EDITOR;
+ }
+
+ // not a named element. no specific editor => do nothing
+ return IDirectEdition.NO_DIRECT_EDITION;
+ }
+
+ /**
+ * Checks if an extended editor is present.
+ *
+ * @return <code>true</code> if an extended editor is present.
+ * @generated
+ */
+ protected boolean checkExtendedEditor() {
+ if(resolveSemanticElement() != null) {
+ return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ return false;
+ }
+
+ /**
+ * Checks if a default direct edition is available
+ *
+ * @return <code>true</code> if a default direct edition is available
+ * @generated
+ */
+ protected boolean checkDefaultEdition() {
+ return (getParser() != null);
+ }
+
+ /**
+ * Initializes the extended editor configuration
+ *
+ * @generated
+ */
+ protected void initExtendedEditorConfiguration() {
+ if(configuration == null) {
+ final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("")) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else {
+ configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ }
+ }
+
+ /**
+ * Updates the preference configuration
+ *
+ * @generated
+ */
+ protected void updateExtendedEditorConfiguration() {
+ String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("") && languagePreferred != configuration.getLanguage()) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else if(IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
+ configuration = null;
+ }
+ }
+
+ /**
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
+ protected void performDefaultDirectEditorEdit(final Request theRequest) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void addNotationalListeners() {
+ super.addNotationalListeners();
+ addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeNotationalListeners() {
+ super.removeNotationalListeners();
+ removeListenerFilter("PrimaryView"); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void handleNotificationEvent(Notification event) {
+ refreshLabel();
+ Object feature = event.getFeature();
+ if(NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
+ Integer c = (Integer)event.getNewValue();
+ setFontColor(DiagramColorRegistry.getInstance().getColor(c));
+ } else if(NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
+ refreshUnderline();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
+ refreshStrikeThrough();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
+ refreshFont();
+ } else {
+ if(getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
+ refreshLabel();
+ }
+ if(getParser() instanceof ISemanticParser) {
+ ISemanticParser modelParser = (ISemanticParser)getParser();
+ if(modelParser.areSemanticElementsAffected(null, event)) {
+ removeSemanticListeners();
+ if(resolveSemanticElement() != null) {
+ addSemanticListeners();
+ }
+ refreshLabel();
+ }
+ }
+ }
+
+ if(event.getNewValue() instanceof EAnnotation && VisualInformationPapyrusConstant.DISPLAY_NAMELABELICON.equals(((EAnnotation)event.getNewValue()).getSource())) {
+ refreshLabel();
+ }
+
+ super.handleNotificationEvent(event);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createFigure() {
+ // Parent should assign one using setLabel() method
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ private static final String ADD_PARENT_MODEL = "AddParentModel";
+
+ /**
+ * @generated
+ */
+ public void activate() {
+ super.activate();
+ addOwnerElementListeners();
+ }
+
+ /**
+ * @generated
+ */
+ protected void addOwnerElementListeners() {
+ addListenerFilter(ADD_PARENT_MODEL, this, ((View)getParent().getModel())); //$NON-NLS-1$
+
+ }
+
+ /**
+ * @generated
+ */
+ public void deactivate() {
+ removeOwnerElementListeners();
+ super.deactivate();
+
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeOwnerElementListeners() {
+ removeListenerFilter(ADD_PARENT_MODEL);
+
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ExpressionEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ExpressionEditPart.java
new file mode 100644
index 00000000000..9bc8cf3c24a
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ExpressionEditPart.java
@@ -0,0 +1,5167 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.ArrayList;
+import java.util.LinkedList;
+import java.util.List;
+
+import org.eclipse.draw2d.ColorConstants;
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.RectangleFigure;
+import org.eclipse.draw2d.Shape;
+import org.eclipse.draw2d.StackLayout;
+import org.eclipse.emf.ecore.EStructuralFeature;
+import org.eclipse.gef.EditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.editpolicies.LayoutEditPolicy;
+import org.eclipse.gef.editpolicies.NonResizableEditPolicy;
+import org.eclipse.gef.requests.CreateRequest;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ShapeNodeEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.FigureUtilities;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.gef.ui.figures.DefaultSizeNodeFigure;
+import org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.jface.preference.PreferenceConverter;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.HyperLinkPopupBarEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.QualifiedNameDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.helper.PreferenceInitializerForElementHelper;
+import org.eclipse.papyrus.diagram.composite.edit.policies.ExpressionItemSemanticEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorPlugin;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter;
+import org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.Font;
+import org.eclipse.swt.widgets.Display;
+
+/**
+ * @generated
+ */
+public class ExpressionEditPart extends
+
+ShapeNodeEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 2103;
+
+ /**
+ * @generated
+ */
+ protected IFigure contentPane;
+
+ /**
+ * @generated
+ */
+ protected IFigure primaryShape;
+
+ /**
+ * @generated
+ */
+ public ExpressionEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new ExpressionItemSemanticEditPolicy());
+ installEditPolicy(EditPolicy.LAYOUT_ROLE, createLayoutEditPolicy());
+ installEditPolicy(QualifiedNameDisplayEditPolicy.QUALIFIED_NAME_POLICY, new QualifiedNameDisplayEditPolicy());
+ installEditPolicy(AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeNodeLabelDisplayEditPolicy());
+ installEditPolicy(EditPolicyRoles.POPUPBAR_ROLE, new HyperLinkPopupBarEditPolicy());
+ // XXX need an SCR to runtime to have another abstract superclass that would let children add reasonable editpolicies
+ // removeEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CONNECTION_HANDLES_ROLE);
+ }
+
+ /**
+ * @generated
+ */
+ protected LayoutEditPolicy createLayoutEditPolicy() {
+ org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy lep = new org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy() {
+
+ protected EditPolicy createChildEditPolicy(EditPart child) {
+ EditPolicy result = child.getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(result == null) {
+ result = new NonResizableEditPolicy();
+ }
+ return result;
+ }
+
+ protected Command getMoveChildrenCommand(Request request) {
+ return null;
+ }
+
+ protected Command getCreateCommand(CreateRequest request) {
+ return null;
+ }
+ };
+ return lep;
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createNodeShape() {
+ return primaryShape = new NamedElementDescriptor();
+ }
+
+ /**
+ * @generated
+ */
+ public NamedElementDescriptor getPrimaryShape() {
+ return (NamedElementDescriptor)primaryShape;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean addFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof ExpressionNameEditPart) {
+ ((ExpressionNameEditPart)childEditPart).setLabel(getPrimaryShape().getNamedElementNameLabel());
+ return true;
+ }
+
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean removeFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof ExpressionNameEditPart) {
+ return true;
+ }
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected void addChildVisual(EditPart childEditPart, int index) {
+ if(addFixedChild(childEditPart)) {
+ return;
+ }
+ super.addChildVisual(childEditPart, -1);
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeChildVisual(EditPart childEditPart) {
+ if(removeFixedChild(childEditPart)) {
+ return;
+ }
+ super.removeChildVisual(childEditPart);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure getContentPaneFor(IGraphicalEditPart editPart) {
+ return getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ protected NodeFigure createNodePlate() {
+ String prefElementId = "Expression";
+ IPreferenceStore store = UMLDiagramEditorPlugin.getInstance().getPreferenceStore();
+ String preferenceConstantWitdh = PreferenceInitializerForElementHelper.getpreferenceKey(getNotationView(), prefElementId, PreferenceConstantHelper.WIDTH);
+ String preferenceConstantHeight = PreferenceInitializerForElementHelper.getpreferenceKey(getNotationView(), prefElementId, PreferenceConstantHelper.HEIGHT);
+ DefaultSizeNodeFigure result = new DefaultSizeNodeFigure(store.getInt(preferenceConstantWitdh), store.getInt(preferenceConstantHeight));
+
+ return result;
+ }
+
+ /**
+ * Creates figure for this edit part.
+ *
+ * Body of this method does not depend on settings in generation model
+ * so you may safely remove <i>generated</i> tag and modify it.
+ *
+ * @generated
+ */
+ protected NodeFigure createNodeFigure() {
+ NodeFigure figure = createNodePlate();
+ figure.setLayoutManager(new StackLayout());
+ IFigure shape = createNodeShape();
+ figure.add(shape);
+ contentPane = setupContentPane(shape);
+ return figure;
+ }
+
+ /**
+ * Default implementation treats passed figure as content pane.
+ * Respects layout one may have set for generated figure.
+ *
+ * @param nodeShape
+ * instance of generated figure class
+ * @generated
+ */
+ protected IFigure setupContentPane(IFigure nodeShape) {
+ if(nodeShape.getLayoutManager() == null) {
+ ConstrainedToolbarLayout layout = new ConstrainedToolbarLayout();
+ layout.setSpacing(5);
+ nodeShape.setLayoutManager(layout);
+ }
+ return nodeShape; // use nodeShape itself as contentPane
+ }
+
+ /**
+ * @generated
+ */
+ public IFigure getContentPane() {
+ if(contentPane != null) {
+ return contentPane;
+ }
+ return super.getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ protected void setForegroundColor(Color color) {
+ if(primaryShape != null) {
+ primaryShape.setForegroundColor(color);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLineWidth(int width) {
+ if(primaryShape instanceof Shape) {
+ ((Shape)primaryShape).setLineWidth(width);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLineType(int style) {
+ if(primaryShape instanceof Shape) {
+ ((Shape)primaryShape).setLineStyle(style);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public EditPart getPrimaryChildEditPart() {
+ return getChildBySemanticHint(UMLVisualIDRegistry.getType(ExpressionNameEditPart.VISUAL_ID));
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnSource() {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(11);
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ types.add(UMLElementTypes.Substitution_4011);
+ types.add(UMLElementTypes.Realization_4006);
+ types.add(UMLElementTypes.Manifestation_4012);
+ types.add(UMLElementTypes.Abstraction_4007);
+ types.add(UMLElementTypes.Usage_4008);
+ types.add(UMLElementTypes.Deployment_4009);
+ types.add(UMLElementTypes.Dependency_4017);
+ types.add(UMLElementTypes.Dependency_4010);
+ types.add(UMLElementTypes.InformationFlow_4021);
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnSourceAndTarget(IGraphicalEditPart targetEditPart) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMATypesForTarget(IElementType relationshipType) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(relationshipType == UMLElementTypes.ComponentRealization_4004) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InterfaceRealization_4005) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Substitution_4011) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Realization_4006) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Manifestation_4012) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Abstraction_4007) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Usage_4008) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Deployment_4009) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4017) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4010) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InformationFlow_4021) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnTarget() {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(15);
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ types.add(UMLElementTypes.Substitution_4011);
+ types.add(UMLElementTypes.Realization_4006);
+ types.add(UMLElementTypes.Manifestation_4012);
+ types.add(UMLElementTypes.Abstraction_4007);
+ types.add(UMLElementTypes.Usage_4008);
+ types.add(UMLElementTypes.Deployment_4009);
+ types.add(UMLElementTypes.Dependency_4017);
+ types.add(UMLElementTypes.Dependency_4010);
+ types.add(UMLElementTypes.TimeObservationEvent_4018);
+ types.add(UMLElementTypes.DurationObservationEvent_4019);
+ types.add(UMLElementTypes.InformationFlow_4021);
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMATypesForSource(IElementType relationshipType) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(relationshipType == UMLElementTypes.CommentAnnotatedElement_4002) {
+ types.add(UMLElementTypes.Comment_2109);
+ types.add(UMLElementTypes.Comment_3097);
+ } else if(relationshipType == UMLElementTypes.ConstraintConstrainedElement_4003) {
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.ComponentRealization_4004) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InterfaceRealization_4005) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Substitution_4011) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Realization_4006) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Manifestation_4012) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Abstraction_4007) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Usage_4008) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Deployment_4009) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4017) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4010) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.TimeObservationEvent_4018) {
+ types.add(UMLElementTypes.TimeObservation_2094);
+ } else if(relationshipType == UMLElementTypes.DurationObservationEvent_4019) {
+ types.add(UMLElementTypes.DurationObservation_2093);
+ } else if(relationshipType == UMLElementTypes.InformationFlow_4021) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public class NamedElementDescriptor extends RectangleFigure {
+
+ /**
+ * @generated
+ */
+ private WrappingLabel fNamedElementNameLabel;
+
+ /**
+ * @generated
+ */
+ public NamedElementDescriptor() {
+ this.setLineWidth(1);
+ this.setForegroundColor(ColorConstants.black);
+ createContents();
+ }
+
+ /**
+ * @generated
+ */
+ private void createContents() {
+
+ fNamedElementNameLabel = new WrappingLabel();
+ fNamedElementNameLabel.setText("");
+ fNamedElementNameLabel.setForegroundColor(ColorConstants.black);
+
+ fNamedElementNameLabel.setFont(FNAMEDELEMENTNAMELABEL_FONT);
+
+ this.add(fNamedElementNameLabel);
+
+ }
+
+ /**
+ * @generated
+ */
+ private boolean myUseLocalCoordinates = false;
+
+ /**
+ * @generated
+ */
+ protected boolean useLocalCoordinates() {
+ return myUseLocalCoordinates;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setUseLocalCoordinates(boolean useLocalCoordinates) {
+ myUseLocalCoordinates = useLocalCoordinates;
+ }
+
+ /**
+ * @generated
+ */
+ public WrappingLabel getNamedElementNameLabel() {
+ return fNamedElementNameLabel;
+ }
+
+ }
+
+ /**
+ * @generated
+ */
+ static final Font FNAMEDELEMENTNAMELABEL_FONT = new Font(Display.getCurrent(), "Arial", 10, SWT.BOLD);
+
+ /**
+ * @generated
+ */
+ @Override
+ public Object getPreferredValue(EStructuralFeature feature) {
+ IPreferenceStore preferenceStore = (IPreferenceStore)getDiagramPreferencesHint().getPreferenceStore();
+ Object result = null;
+
+ if(feature == NotationPackage.eINSTANCE.getLineStyle_LineColor() || feature == NotationPackage.eINSTANCE.getFontStyle_FontColor() || feature == NotationPackage.eINSTANCE.getFillStyle_FillColor()) {
+ String prefColor = null;
+ if(feature == NotationPackage.eINSTANCE.getLineStyle_LineColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("Expression", PreferenceConstantHelper.COLOR_LINE);
+ } else if(feature == NotationPackage.eINSTANCE.getFontStyle_FontColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("Expression", PreferenceConstantHelper.COLOR_FONT);
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_FillColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("Expression", PreferenceConstantHelper.COLOR_FILL);
+ }
+ result = FigureUtilities.RGBToInteger(PreferenceConverter.getColor((IPreferenceStore)preferenceStore, prefColor));
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_Transparency() || feature == NotationPackage.eINSTANCE.getFillStyle_Gradient()) {
+ String prefGradient = PreferenceConstantHelper.getElementConstant("Expression", PreferenceConstantHelper.COLOR_GRADIENT);
+ GradientPreferenceConverter gradientPreferenceConverter = new GradientPreferenceConverter(preferenceStore.getString(prefGradient));
+ if(feature == NotationPackage.eINSTANCE.getFillStyle_Transparency()) {
+ result = new Integer(gradientPreferenceConverter.getTransparency());
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_Gradient()) {
+ result = gradientPreferenceConverter.getGradientData();
+ }
+ }
+
+ if(result == null) {
+ result = getStructuralFeatureValue(feature);
+ }
+ return result;
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ExpressionNameEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ExpressionNameEditPart.java
new file mode 100644
index 00000000000..afc643d614c
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ExpressionNameEditPart.java
@@ -0,0 +1,791 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EAnnotation;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.emf.transaction.RunnableWithResult;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.AccessibleEditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.requests.DirectEditRequest;
+import org.eclipse.gef.tools.DirectEditManager;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.CompartmentEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
+import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
+import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
+import org.eclipse.gmf.runtime.notation.FontStyle;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
+import org.eclipse.jface.viewers.ICellEditorValidator;
+import org.eclipse.jface.window.Window;
+import org.eclipse.papyrus.diagram.common.directedit.MultilineLabelDirectEditManager;
+import org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition;
+import org.eclipse.papyrus.diagram.common.editpolicies.IMaskManagedLabelEditPolicy;
+import org.eclipse.papyrus.diagram.common.figure.node.ILabelFigure;
+import org.eclipse.papyrus.diagram.common.util.DiagramEditPartsUtil;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLTextSelectionEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.diagram.composite.providers.UMLParserProvider;
+import org.eclipse.papyrus.extensionpoints.editors.Activator;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
+import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
+import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
+import org.eclipse.papyrus.umlutils.ui.VisualInformationPapyrusConstant;
+import org.eclipse.papyrus.umlutils.ui.helper.NameLabelIconHelper;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.AccessibleEvent;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.FontData;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.ui.PlatformUI;
+
+/**
+ * @generated
+ */
+public class ExpressionNameEditPart extends CompartmentEditPart implements ITextAwareEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 5186;
+
+ /**
+ * @generated
+ */
+ private DirectEditManager manager;
+
+ /**
+ * @generated
+ */
+ private IParser parser;
+
+ /**
+ * @generated
+ */
+ private List<?> parserElements;
+
+ /**
+ * @generated
+ */
+ private String defaultText;
+
+ /**
+ * direct edition mode (default, undefined, registered editor, etc.)
+ *
+ * @generated
+ */
+ protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
+
+ /**
+ * configuration from a registered edit dialog
+ *
+ * @generated
+ */
+ protected IDirectEditorConfiguration configuration;
+
+ /**
+ * @generated
+ */
+ public ExpressionNameEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
+ installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new CompositeStructureDiagramEditPart.NodeLabelDragPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelTextHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getText();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getText();
+ } else {
+ return ((Label)figure).getText();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelTextHelper(IFigure figure, String text) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setText(text);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setText(text);
+ } else {
+ ((Label)figure).setText(text);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIconHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getIcon();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getIcon();
+ } else {
+ return ((Label)figure).getIcon();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelIconHelper(IFigure figure, Image icon) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setIcon(icon);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setIcon(icon);
+ } else {
+ ((Label)figure).setIcon(icon);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabel(WrappingLabel figure) {
+ unregisterVisuals();
+ setFigure(figure);
+ defaultText = getLabelTextHelper(figure);
+ registerVisuals();
+ refreshVisuals();
+ }
+
+ /**
+ * @generated
+ */
+ protected List getModelChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject getParserElement() {
+ return resolveSemanticElement();
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIcon() {
+ EObject parserElement = getParserElement();
+ if(parserElement == null) {
+ return null;
+ }
+
+ List<View> views = DiagramEditPartsUtil.findViews(parserElement, getViewer());
+ for(View view : views) {
+ if(NameLabelIconHelper.showLabelIcon(view)) {
+ return UMLElementTypes.getImage(parserElement.eClass());
+ }
+ }
+ return null;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelText() {
+ String text = null;
+ EObject parserElement = getParserElement();
+ if(parserElement != null && getParser() != null) {
+ text = getParser().getPrintString(new EObjectAdapter(parserElement), getParserOptions().intValue());
+ }
+ if(text == null || text.length() == 0) {
+ text = defaultText;
+ }
+ return text;
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabelText(String text) {
+ setLabelTextHelper(getFigure(), text);
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public String getEditText() {
+ if(getParserElement() == null || getParser() == null) {
+ return ""; //$NON-NLS-1$
+ }
+ return getParser().getEditString(new EObjectAdapter(getParserElement()), getParserOptions().intValue());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean isEditable() {
+ return getParser() != null;
+ }
+
+ /**
+ * @generated
+ */
+ public ICellEditorValidator getEditTextValidator() {
+ return new ICellEditorValidator() {
+
+ public String isValid(final Object value) {
+ if(value instanceof String) {
+ final EObject element = getParserElement();
+ final IParser parser = getParser();
+ try {
+ IParserEditStatus valid = (IParserEditStatus)getEditingDomain().runExclusive(new RunnableWithResult.Impl() {
+
+ public void run() {
+ setResult(parser.isValidEditString(new EObjectAdapter(element), (String)value));
+ }
+ });
+ return valid.getCode() == ParserEditStatus.EDITABLE ? null : valid.getMessage();
+ } catch (InterruptedException ie) {
+ ie.printStackTrace();
+ }
+ }
+
+ // shouldn't get here
+ return null;
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ public IContentAssistProcessor getCompletionProcessor() {
+ if(getParserElement() == null || getParser() == null) {
+ return null;
+ }
+ return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
+ }
+
+ /**
+ * @generated
+ */
+ public ParserOptions getParserOptions() {
+ return ParserOptions.NONE;
+ }
+
+ /**
+ * @generated
+ */
+ public IParser getParser() {
+ if(parser == null) {
+ parser = UMLParserProvider.getParser(UMLElementTypes.Expression_2103, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.diagram.composite.edit.parts.ExpressionNameEditPart.VISUAL_ID));
+ }
+ return parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected DirectEditManager getManager() {
+ if(manager == null) {
+ setManager(new MultilineLabelDirectEditManager(this, MultilineLabelDirectEditManager.getTextCellEditorClass(this), UMLEditPartFactory.getTextCellEditorLocator(this)));
+ }
+ return manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setManager(DirectEditManager manager) {
+ this.manager = manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit() {
+ getManager().show();
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit(Point eventLocation) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(eventLocation.getSWTPoint());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void performDirectEdit(char initialCharacter) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(initialCharacter);
+ } else {
+ performDirectEdit();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEditRequest(Request request) {
+
+ final Request theRequest = request;
+
+ if(IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
+ directEditionMode = getDirectEditionType();
+ }
+ switch(directEditionMode) {
+ case IDirectEdition.NO_DIRECT_EDITION:
+ // no direct edition mode => does nothing
+ return;
+ case IDirectEdition.EXTENDED_DIRECT_EDITOR:
+ updateExtendedEditorConfiguration();
+ if(configuration == null || configuration.getLanguage() == null) {
+ performDefaultDirectEditorEdit(theRequest);
+ } else {
+ configuration.preEditAction(resolveSemanticElement());
+ Dialog dialog = null;
+ if(configuration instanceof IPopupEditorConfiguration) {
+ IPopupEditorHelper helper = ((IPopupEditorConfiguration)configuration).createPopupEditorHelper(this);
+ helper.showEditor();
+ return;
+ } else if(configuration instanceof IAdvancedEditorConfiguration) {
+ dialog = ((IAdvancedEditorConfiguration)configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
+ } else if(configuration instanceof IDirectEditorConfiguration) {
+ dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), ((IDirectEditorConfiguration)configuration).getTextToEdit(resolveSemanticElement()), (IDirectEditorConfiguration)configuration);
+ } else {
+ return;
+ }
+ final Dialog finalDialog = dialog;
+
+ if(Window.OK == dialog.open()) {
+ TransactionalEditingDomain domain = getEditingDomain();
+ RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
+
+ @Override
+ protected void doExecute() {
+ configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog)finalDialog).getValue());
+
+ }
+ };
+ domain.getCommandStack().execute(command);
+ }
+ }
+ break;
+ case IDirectEdition.DEFAULT_DIRECT_EDITOR:
+
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ break;
+ default:
+ break;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshLabel();
+ refreshFont();
+ refreshFontColor();
+ refreshUnderline();
+ refreshStrikeThrough();
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshLabel() {
+ EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
+ if(maskLabelPolicy == null) {
+ setLabelTextHelper(getFigure(), getLabelText());
+ setLabelIconHelper(getFigure(), getLabelIcon());
+ }
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshUnderline() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextUnderline(style.isUnderline());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshStrikeThrough() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextStrikeThrough(style.isStrikeThrough());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshFont() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null) {
+ FontData fontData = new FontData(style.getFontName(), style.getFontHeight(), (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
+ setFont(fontData);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setFontColor(Color color) {
+ getFigure().setForegroundColor(color);
+ }
+
+ /**
+ * @generated
+ */
+ protected void addSemanticListeners() {
+ if(getParser() instanceof ISemanticParser) {
+ EObject element = resolveSemanticElement();
+ parserElements = ((ISemanticParser)getParser()).getSemanticElementsBeingParsed(element);
+ for(int i = 0; i < parserElements.size(); i++) {
+ addListenerFilter("SemanticModel" + i, this, (EObject)parserElements.get(i)); //$NON-NLS-1$
+ }
+ } else {
+ super.addSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeSemanticListeners() {
+ if(parserElements != null) {
+ for(int i = 0; i < parserElements.size(); i++) {
+ removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
+ }
+ } else {
+ super.removeSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected AccessibleEditPart getAccessibleEditPart() {
+ if(accessibleEP == null) {
+ accessibleEP = new AccessibleGraphicalEditPart() {
+
+ public void getName(AccessibleEvent e) {
+ e.result = getLabelTextHelper(getFigure());
+ }
+ };
+ }
+ return accessibleEP;
+ }
+
+ /**
+ * @generated
+ */
+ private View getFontStyleOwnerView() {
+ return (View)getModel();
+ }
+
+ /**
+ * Returns the kind of associated editor for direct edition.
+ *
+ * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition
+ * @generated
+ */
+ public int getDirectEditionType() {
+ if(checkExtendedEditor()) {
+ initExtendedEditorConfiguration();
+ return IDirectEdition.EXTENDED_DIRECT_EDITOR;
+ }
+ if(checkDefaultEdition()) {
+ return IDirectEdition.DEFAULT_DIRECT_EDITOR;
+ }
+
+ // not a named element. no specific editor => do nothing
+ return IDirectEdition.NO_DIRECT_EDITION;
+ }
+
+ /**
+ * Checks if an extended editor is present.
+ *
+ * @return <code>true</code> if an extended editor is present.
+ * @generated
+ */
+ protected boolean checkExtendedEditor() {
+ if(resolveSemanticElement() != null) {
+ return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ return false;
+ }
+
+ /**
+ * Checks if a default direct edition is available
+ *
+ * @return <code>true</code> if a default direct edition is available
+ * @generated
+ */
+ protected boolean checkDefaultEdition() {
+ return (getParser() != null);
+ }
+
+ /**
+ * Initializes the extended editor configuration
+ *
+ * @generated
+ */
+ protected void initExtendedEditorConfiguration() {
+ if(configuration == null) {
+ final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("")) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else {
+ configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ }
+ }
+
+ /**
+ * Updates the preference configuration
+ *
+ * @generated
+ */
+ protected void updateExtendedEditorConfiguration() {
+ String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("") && languagePreferred != configuration.getLanguage()) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else if(IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
+ configuration = null;
+ }
+ }
+
+ /**
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
+ protected void performDefaultDirectEditorEdit(final Request theRequest) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void addNotationalListeners() {
+ super.addNotationalListeners();
+ addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeNotationalListeners() {
+ super.removeNotationalListeners();
+ removeListenerFilter("PrimaryView"); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void handleNotificationEvent(Notification event) {
+ refreshLabel();
+ Object feature = event.getFeature();
+ if(NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
+ Integer c = (Integer)event.getNewValue();
+ setFontColor(DiagramColorRegistry.getInstance().getColor(c));
+ } else if(NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
+ refreshUnderline();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
+ refreshStrikeThrough();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
+ refreshFont();
+ } else {
+ if(getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
+ refreshLabel();
+ }
+ if(getParser() instanceof ISemanticParser) {
+ ISemanticParser modelParser = (ISemanticParser)getParser();
+ if(modelParser.areSemanticElementsAffected(null, event)) {
+ removeSemanticListeners();
+ if(resolveSemanticElement() != null) {
+ addSemanticListeners();
+ }
+ refreshLabel();
+ }
+ }
+ }
+
+ if(event.getNewValue() instanceof EAnnotation && VisualInformationPapyrusConstant.DISPLAY_NAMELABELICON.equals(((EAnnotation)event.getNewValue()).getSource())) {
+ refreshLabel();
+ }
+
+ super.handleNotificationEvent(event);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createFigure() {
+ // Parent should assign one using setLabel() method
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ private static final String ADD_PARENT_MODEL = "AddParentModel";
+
+ /**
+ * @generated
+ */
+ public void activate() {
+ super.activate();
+ addOwnerElementListeners();
+ }
+
+ /**
+ * @generated
+ */
+ protected void addOwnerElementListeners() {
+ addListenerFilter(ADD_PARENT_MODEL, this, ((View)getParent().getModel())); //$NON-NLS-1$
+
+ }
+
+ /**
+ * @generated
+ */
+ public void deactivate() {
+ removeOwnerElementListeners();
+ super.deactivate();
+
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeOwnerElementListeners() {
+ removeListenerFilter(ADD_PARENT_MODEL);
+
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/FunctionBehaviorCompositeCompartmentEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/FunctionBehaviorCompositeCompartmentEditPart.java
new file mode 100644
index 00000000000..96c76e1eafc
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/FunctionBehaviorCompositeCompartmentEditPart.java
@@ -0,0 +1,123 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import org.eclipse.draw2d.geometry.Dimension;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.draw2d.geometry.Rectangle;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.GraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ShapeCompartmentEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.CreationEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.DragDropEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.ResizableCompartmentEditPolicy;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.diagram.common.editparts.NoScrollBarShapeCompartmentEditPart;
+import org.eclipse.papyrus.diagram.common.editpolicies.CustomContainerEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.DuplicatePasteEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.CustomDiagramDragDropEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.PortInCompartmentCreationEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.RemoveOrphanViewPolicy;
+import org.eclipse.papyrus.diagram.composite.edit.policies.FunctionBehaviorCompositeCompartmentItemSemanticEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.Messages;
+
+/**
+ * @generated
+ */
+public class FunctionBehaviorCompositeCompartmentEditPart
+
+extends NoScrollBarShapeCompartmentEditPart
+
+{
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 7067;
+
+ /**
+ * @generated
+ */
+ public FunctionBehaviorCompositeCompartmentEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ public String getCompartmentName() {
+ return Messages.FunctionBehaviorCompositeCompartmentEditPart_title;
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new ResizableCompartmentEditPolicy());
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new FunctionBehaviorCompositeCompartmentItemSemanticEditPolicy());
+ installEditPolicy(EditPolicyRoles.CREATION_ROLE, new CreationEditPolicy());
+ installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new DragDropEditPolicy());
+ installEditPolicy(DuplicatePasteEditPolicy.PASTE_ROLE, new DuplicatePasteEditPolicy());
+ installEditPolicy("REMOVE_ORPHAN_VIEW", new RemoveOrphanViewPolicy()); //$NON-NLS-1$
+ installEditPolicy(EditPolicy.GRAPHICAL_NODE_ROLE, new CustomContainerEditPolicy());
+ installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new CustomDiagramDragDropEditPolicy());
+ installEditPolicy(EditPolicyRoles.CREATION_ROLE, new PortInCompartmentCreationEditPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ protected void setRatio(Double ratio) {
+ if(getFigure().getParent().getLayoutManager() instanceof ConstrainedToolbarLayout) {
+ super.setRatio(ratio);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void handleNotificationEvent(Notification notification) {
+ Object feature = notification.getFeature();
+ if(NotationPackage.eINSTANCE.getSize_Width().equals(feature) || NotationPackage.eINSTANCE.getSize_Height().equals(feature) || NotationPackage.eINSTANCE.getLocation_X().equals(feature) || NotationPackage.eINSTANCE.getLocation_Y().equals(feature)) {
+ refreshBounds();
+ }
+ super.handleNotificationEvent(notification);
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshBounds() {
+ int width = ((Integer)getStructuralFeatureValue(NotationPackage.eINSTANCE.getSize_Width())).intValue();
+ int height = ((Integer)getStructuralFeatureValue(NotationPackage.eINSTANCE.getSize_Height())).intValue();
+ Dimension size = new Dimension(width, height);
+ int x = ((Integer)getStructuralFeatureValue(NotationPackage.eINSTANCE.getLocation_X())).intValue();
+ int y = ((Integer)getStructuralFeatureValue(NotationPackage.eINSTANCE.getLocation_Y())).intValue();
+ Point loc = new Point(x, y);
+ ((GraphicalEditPart)getParent()).setLayoutConstraint(this, getFigure(), new Rectangle(loc, size));
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshBounds();
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/FunctionBehaviorCompositeCompartmentEditPartCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/FunctionBehaviorCompositeCompartmentEditPartCN.java
new file mode 100644
index 00000000000..e731a5ad570
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/FunctionBehaviorCompositeCompartmentEditPartCN.java
@@ -0,0 +1,123 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import org.eclipse.draw2d.geometry.Dimension;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.draw2d.geometry.Rectangle;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.GraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ShapeCompartmentEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.CreationEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.DragDropEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.ResizableCompartmentEditPolicy;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.diagram.common.editparts.NoScrollBarShapeCompartmentEditPart;
+import org.eclipse.papyrus.diagram.common.editpolicies.CustomContainerEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.DuplicatePasteEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.CustomDiagramDragDropEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.PortInCompartmentCreationEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.RemoveOrphanViewPolicy;
+import org.eclipse.papyrus.diagram.composite.edit.policies.FunctionBehaviorCompositeCompartmentItemSemanticEditPolicyCN;
+import org.eclipse.papyrus.diagram.composite.part.Messages;
+
+/**
+ * @generated
+ */
+public class FunctionBehaviorCompositeCompartmentEditPartCN
+
+extends NoScrollBarShapeCompartmentEditPart
+
+{
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 7054;
+
+ /**
+ * @generated
+ */
+ public FunctionBehaviorCompositeCompartmentEditPartCN(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ public String getCompartmentName() {
+ return Messages.FunctionBehaviorCompositeCompartmentEditPartCN_title;
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new ResizableCompartmentEditPolicy());
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new FunctionBehaviorCompositeCompartmentItemSemanticEditPolicyCN());
+ installEditPolicy(EditPolicyRoles.CREATION_ROLE, new CreationEditPolicy());
+ installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new DragDropEditPolicy());
+ installEditPolicy(DuplicatePasteEditPolicy.PASTE_ROLE, new DuplicatePasteEditPolicy());
+ installEditPolicy("REMOVE_ORPHAN_VIEW", new RemoveOrphanViewPolicy()); //$NON-NLS-1$
+ installEditPolicy(EditPolicy.GRAPHICAL_NODE_ROLE, new CustomContainerEditPolicy());
+ installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new CustomDiagramDragDropEditPolicy());
+ installEditPolicy(EditPolicyRoles.CREATION_ROLE, new PortInCompartmentCreationEditPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ protected void setRatio(Double ratio) {
+ if(getFigure().getParent().getLayoutManager() instanceof ConstrainedToolbarLayout) {
+ super.setRatio(ratio);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void handleNotificationEvent(Notification notification) {
+ Object feature = notification.getFeature();
+ if(NotationPackage.eINSTANCE.getSize_Width().equals(feature) || NotationPackage.eINSTANCE.getSize_Height().equals(feature) || NotationPackage.eINSTANCE.getLocation_X().equals(feature) || NotationPackage.eINSTANCE.getLocation_Y().equals(feature)) {
+ refreshBounds();
+ }
+ super.handleNotificationEvent(notification);
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshBounds() {
+ int width = ((Integer)getStructuralFeatureValue(NotationPackage.eINSTANCE.getSize_Width())).intValue();
+ int height = ((Integer)getStructuralFeatureValue(NotationPackage.eINSTANCE.getSize_Height())).intValue();
+ Dimension size = new Dimension(width, height);
+ int x = ((Integer)getStructuralFeatureValue(NotationPackage.eINSTANCE.getLocation_X())).intValue();
+ int y = ((Integer)getStructuralFeatureValue(NotationPackage.eINSTANCE.getLocation_Y())).intValue();
+ Point loc = new Point(x, y);
+ ((GraphicalEditPart)getParent()).setLayoutConstraint(this, getFigure(), new Rectangle(loc, size));
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshBounds();
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/FunctionBehaviorCompositeEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/FunctionBehaviorCompositeEditPart.java
new file mode 100644
index 00000000000..778d81b2d57
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/FunctionBehaviorCompositeEditPart.java
@@ -0,0 +1,5406 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.ArrayList;
+import java.util.LinkedList;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.PositionConstants;
+import org.eclipse.draw2d.Shape;
+import org.eclipse.draw2d.StackLayout;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EStructuralFeature;
+import org.eclipse.gef.EditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.editpolicies.LayoutEditPolicy;
+import org.eclipse.gef.editpolicies.NonResizableEditPolicy;
+import org.eclipse.gef.requests.CreateRequest;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IBorderItemEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.CreationEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.DragDropEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.diagram.ui.figures.IBorderItemLocator;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.FigureUtilities;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.gef.ui.figures.DefaultSizeNodeFigure;
+import org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.jface.preference.PreferenceConverter;
+import org.eclipse.papyrus.diagram.common.editparts.NamedElementEditPart;
+import org.eclipse.papyrus.diagram.common.editpolicies.AffixedNodeAlignmentEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.BorderItemResizableEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.HyperLinkPopupBarEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.QualifiedNameDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.ShowHideClassifierContentsEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.ShowHideCompartmentEditPolicy;
+import org.eclipse.papyrus.diagram.common.helper.PreferenceInitializerForElementHelper;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.BehaviorLayoutEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.BehaviorResizableShapeEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.CustomDiagramDragDropEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.RemoveOrphanViewPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.figures.FunctionBehaviorCompositeFigure;
+import org.eclipse.papyrus.diagram.composite.custom.locators.PortPositionLocator;
+import org.eclipse.papyrus.diagram.composite.edit.policies.FunctionBehaviorCompositeItemSemanticEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorPlugin;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter;
+import org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper;
+import org.eclipse.swt.graphics.Color;
+
+/**
+ * @generated
+ */
+public class FunctionBehaviorCompositeEditPart extends
+
+NamedElementEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 2064;
+
+ /**
+ * @generated
+ */
+ protected IFigure contentPane;
+
+ /**
+ * @generated
+ */
+ protected IFigure primaryShape;
+
+ /**
+ * @generated
+ */
+ public FunctionBehaviorCompositeEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ installEditPolicy(EditPolicyRoles.CREATION_ROLE, new CreationEditPolicy());
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new FunctionBehaviorCompositeItemSemanticEditPolicy());
+ installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new DragDropEditPolicy());
+ installEditPolicy(EditPolicy.LAYOUT_ROLE, createLayoutEditPolicy());
+ installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new CustomDiagramDragDropEditPolicy());
+ installEditPolicy(QualifiedNameDisplayEditPolicy.QUALIFIED_NAME_POLICY, new QualifiedNameDisplayEditPolicy());
+ installEditPolicy(AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeNodeLabelDisplayEditPolicy());
+ installEditPolicy(EditPolicyRoles.POPUPBAR_ROLE, new HyperLinkPopupBarEditPolicy());
+ installEditPolicy(EditPolicy.LAYOUT_ROLE, new BehaviorLayoutEditPolicy());
+ installEditPolicy(ShowHideClassifierContentsEditPolicy.SHOW_HIDE_CLASSIFIER_CONTENTS_POLICY, new ShowHideClassifierContentsEditPolicy());
+ installEditPolicy(ShowHideCompartmentEditPolicy.SHOW_HIDE_COMPARTMENT_POLICY, new ShowHideCompartmentEditPolicy());
+ installEditPolicy(AffixedNodeAlignmentEditPolicy.AFFIXED_CHILD_ALIGNMENT_ROLE, new AffixedNodeAlignmentEditPolicy());
+ installEditPolicy("REMOVE_ORPHAN_VIEW", new RemoveOrphanViewPolicy()); //$NON-NLS-1$
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new BehaviorResizableShapeEditPolicy());
+ // XXX need an SCR to runtime to have another abstract superclass that would let children add reasonable editpolicies
+ // removeEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CONNECTION_HANDLES_ROLE);
+ }
+
+ /**
+ * Papyrus codeGen
+ *
+ * @generated
+ **/
+ protected void handleNotificationEvent(Notification event) {
+ super.handleNotificationEvent(event);
+
+ }
+
+ /**
+ * @generated
+ */
+ protected LayoutEditPolicy createLayoutEditPolicy() {
+ org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy lep = new org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy() {
+
+ protected EditPolicy createChildEditPolicy(EditPart child) {
+ View childView = (View)child.getModel();
+ switch(UMLVisualIDRegistry.getVisualID(childView)) {
+ case PortEditPart.VISUAL_ID:
+ case ParameterEditPart.VISUAL_ID:
+
+ return new BorderItemResizableEditPolicy();
+
+ }
+ EditPolicy result = child.getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(result == null) {
+ result = new NonResizableEditPolicy();
+ }
+ return result;
+ }
+
+ protected Command getMoveChildrenCommand(Request request) {
+ return null;
+ }
+
+ protected Command getCreateCommand(CreateRequest request) {
+ return null;
+ }
+ };
+ return lep;
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createNodeShape() {
+ return primaryShape = new FunctionBehaviorCompositeFigure();
+ }
+
+ /**
+ * @generated
+ */
+ public FunctionBehaviorCompositeFigure getPrimaryShape() {
+ return (FunctionBehaviorCompositeFigure)primaryShape;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean addFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof FunctionBehaviorCompositeNameEditPart) {
+ ((FunctionBehaviorCompositeNameEditPart)childEditPart).setLabel(getPrimaryShape().getNameLabel());
+ return true;
+ }
+
+ if(childEditPart instanceof FunctionBehaviorCompositeCompartmentEditPart) {
+ IFigure pane = getPrimaryShape().getCompositeCompartmentFigure();
+ setupContentPane(pane); // FIXME each comparment should handle his content pane in his own way
+ pane.add(((FunctionBehaviorCompositeCompartmentEditPart)childEditPart).getFigure());
+ return true;
+ }
+
+ //Papyrus Gencode :Affixed Port locator
+ if(childEditPart instanceof PortEditPart) {
+ IBorderItemLocator locator = new PortPositionLocator(getMainFigure(), PositionConstants.NONE);
+ getBorderedFigure().getBorderItemContainer().add(((PortEditPart)childEditPart).getFigure(), locator);
+ return true;
+ }
+
+ //Papyrus Gencode :Affixed Port locator
+ if(childEditPart instanceof ParameterEditPart) {
+ IBorderItemLocator locator = new PortPositionLocator(getMainFigure(), PositionConstants.NONE);
+ getBorderedFigure().getBorderItemContainer().add(((ParameterEditPart)childEditPart).getFigure(), locator);
+ return true;
+ }
+
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean removeFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof FunctionBehaviorCompositeNameEditPart) {
+ return true;
+ }
+ if(childEditPart instanceof FunctionBehaviorCompositeCompartmentEditPart) {
+ IFigure pane = getPrimaryShape().getCompositeCompartmentFigure();
+ setupContentPane(pane); // FIXME each comparment should handle his content pane in his own way
+ pane.remove(((FunctionBehaviorCompositeCompartmentEditPart)childEditPart).getFigure());
+ return true;
+ }
+ if(childEditPart instanceof PortEditPart) {
+ getBorderedFigure().getBorderItemContainer().remove(((PortEditPart)childEditPart).getFigure());
+ return true;
+ }
+ if(childEditPart instanceof ParameterEditPart) {
+ getBorderedFigure().getBorderItemContainer().remove(((ParameterEditPart)childEditPart).getFigure());
+ return true;
+ }
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected void addChildVisual(EditPart childEditPart, int index) {
+ if(addFixedChild(childEditPart)) {
+ return;
+ }
+ super.addChildVisual(childEditPart, -1);
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeChildVisual(EditPart childEditPart) {
+ if(removeFixedChild(childEditPart)) {
+ return;
+ }
+ super.removeChildVisual(childEditPart);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure getContentPaneFor(IGraphicalEditPart editPart) {
+ if(editPart instanceof FunctionBehaviorCompositeCompartmentEditPart) {
+ return getPrimaryShape().getCompositeCompartmentFigure();
+ }
+ if(editPart instanceof IBorderItemEditPart) {
+ return getBorderedFigure().getBorderItemContainer();
+ }
+ return getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ protected NodeFigure createNodePlate() {
+ String prefElementId = "FunctionBehavior";
+ IPreferenceStore store = UMLDiagramEditorPlugin.getInstance().getPreferenceStore();
+ String preferenceConstantWitdh = PreferenceInitializerForElementHelper.getpreferenceKey(getNotationView(), prefElementId, PreferenceConstantHelper.WIDTH);
+ String preferenceConstantHeight = PreferenceInitializerForElementHelper.getpreferenceKey(getNotationView(), prefElementId, PreferenceConstantHelper.HEIGHT);
+ DefaultSizeNodeFigure result = new DefaultSizeNodeFigure(store.getInt(preferenceConstantWitdh), store.getInt(preferenceConstantHeight));
+
+ return result;
+ }
+
+ /**
+ * Creates figure for this edit part.
+ *
+ * Body of this method does not depend on settings in generation model
+ * so you may safely remove <i>generated</i> tag and modify it.
+ *
+ * @generated
+ */
+ protected NodeFigure createMainFigure() {
+ NodeFigure figure = createNodePlate();
+ figure.setLayoutManager(new StackLayout());
+ IFigure shape = createNodeShape();
+ figure.add(shape);
+ contentPane = setupContentPane(shape);
+ return figure;
+ }
+
+ /**
+ * Default implementation treats passed figure as content pane.
+ * Respects layout one may have set for generated figure.
+ *
+ * @param nodeShape
+ * instance of generated figure class
+ * @generated
+ */
+ protected IFigure setupContentPane(IFigure nodeShape) {
+ if(nodeShape.getLayoutManager() == null) {
+ ConstrainedToolbarLayout layout = new ConstrainedToolbarLayout();
+ layout.setSpacing(5);
+ nodeShape.setLayoutManager(layout);
+ }
+ return nodeShape; // use nodeShape itself as contentPane
+ }
+
+ /**
+ * @generated
+ */
+ public IFigure getContentPane() {
+ if(contentPane != null) {
+ return contentPane;
+ }
+ return super.getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ protected void setForegroundColor(Color color) {
+ if(primaryShape != null) {
+ primaryShape.setForegroundColor(color);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLineWidth(int width) {
+ if(primaryShape instanceof Shape) {
+ ((Shape)primaryShape).setLineWidth(width);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLineType(int style) {
+ if(primaryShape instanceof Shape) {
+ ((Shape)primaryShape).setLineStyle(style);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public EditPart getPrimaryChildEditPart() {
+ return getChildBySemanticHint(UMLVisualIDRegistry.getType(FunctionBehaviorCompositeNameEditPart.VISUAL_ID));
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnSource() {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(12);
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ types.add(UMLElementTypes.Substitution_4011);
+ types.add(UMLElementTypes.Realization_4006);
+ types.add(UMLElementTypes.Manifestation_4012);
+ types.add(UMLElementTypes.Abstraction_4007);
+ types.add(UMLElementTypes.Usage_4008);
+ types.add(UMLElementTypes.Deployment_4009);
+ types.add(UMLElementTypes.Dependency_4017);
+ types.add(UMLElementTypes.Dependency_4010);
+ types.add(UMLElementTypes.Generalization_4015);
+ types.add(UMLElementTypes.InformationFlow_4021);
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnSourceAndTarget(IGraphicalEditPart targetEditPart) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMATypesForTarget(IElementType relationshipType) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(relationshipType == UMLElementTypes.ComponentRealization_4004) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InterfaceRealization_4005) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Substitution_4011) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Realization_4006) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Manifestation_4012) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Abstraction_4007) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Usage_4008) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Deployment_4009) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4017) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4010) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Generalization_4015) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ } else if(relationshipType == UMLElementTypes.InformationFlow_4021) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnTarget() {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(17);
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ types.add(UMLElementTypes.Substitution_4011);
+ types.add(UMLElementTypes.Realization_4006);
+ types.add(UMLElementTypes.Manifestation_4012);
+ types.add(UMLElementTypes.Abstraction_4007);
+ types.add(UMLElementTypes.Usage_4008);
+ types.add(UMLElementTypes.Deployment_4009);
+ types.add(UMLElementTypes.Dependency_4017);
+ types.add(UMLElementTypes.Dependency_4010);
+ types.add(UMLElementTypes.Generalization_4015);
+ types.add(UMLElementTypes.TimeObservationEvent_4018);
+ types.add(UMLElementTypes.DurationObservationEvent_4019);
+ types.add(UMLElementTypes.InformationItemRepresented_4020);
+ types.add(UMLElementTypes.InformationFlow_4021);
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMATypesForSource(IElementType relationshipType) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(relationshipType == UMLElementTypes.CommentAnnotatedElement_4002) {
+ types.add(UMLElementTypes.Comment_2109);
+ types.add(UMLElementTypes.Comment_3097);
+ } else if(relationshipType == UMLElementTypes.ConstraintConstrainedElement_4003) {
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.ComponentRealization_4004) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InterfaceRealization_4005) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Substitution_4011) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Realization_4006) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Manifestation_4012) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Abstraction_4007) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Usage_4008) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Deployment_4009) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4017) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4010) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Generalization_4015) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ } else if(relationshipType == UMLElementTypes.TimeObservationEvent_4018) {
+ types.add(UMLElementTypes.TimeObservation_2094);
+ } else if(relationshipType == UMLElementTypes.DurationObservationEvent_4019) {
+ types.add(UMLElementTypes.DurationObservation_2093);
+ } else if(relationshipType == UMLElementTypes.InformationItemRepresented_4020) {
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.InformationItem_3094);
+ } else if(relationshipType == UMLElementTypes.InformationFlow_4021) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public Object getPreferredValue(EStructuralFeature feature) {
+ IPreferenceStore preferenceStore = (IPreferenceStore)getDiagramPreferencesHint().getPreferenceStore();
+ Object result = null;
+
+ if(feature == NotationPackage.eINSTANCE.getLineStyle_LineColor() || feature == NotationPackage.eINSTANCE.getFontStyle_FontColor() || feature == NotationPackage.eINSTANCE.getFillStyle_FillColor()) {
+ String prefColor = null;
+ if(feature == NotationPackage.eINSTANCE.getLineStyle_LineColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("FunctionBehavior", PreferenceConstantHelper.COLOR_LINE);
+ } else if(feature == NotationPackage.eINSTANCE.getFontStyle_FontColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("FunctionBehavior", PreferenceConstantHelper.COLOR_FONT);
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_FillColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("FunctionBehavior", PreferenceConstantHelper.COLOR_FILL);
+ }
+ result = FigureUtilities.RGBToInteger(PreferenceConverter.getColor((IPreferenceStore)preferenceStore, prefColor));
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_Transparency() || feature == NotationPackage.eINSTANCE.getFillStyle_Gradient()) {
+ String prefGradient = PreferenceConstantHelper.getElementConstant("FunctionBehavior", PreferenceConstantHelper.COLOR_GRADIENT);
+ GradientPreferenceConverter gradientPreferenceConverter = new GradientPreferenceConverter(preferenceStore.getString(prefGradient));
+ if(feature == NotationPackage.eINSTANCE.getFillStyle_Transparency()) {
+ result = new Integer(gradientPreferenceConverter.getTransparency());
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_Gradient()) {
+ result = gradientPreferenceConverter.getGradientData();
+ }
+ }
+
+ if(result == null) {
+ result = getStructuralFeatureValue(feature);
+ }
+ return result;
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/FunctionBehaviorCompositeEditPartCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/FunctionBehaviorCompositeEditPartCN.java
new file mode 100644
index 00000000000..ac592dbdcfa
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/FunctionBehaviorCompositeEditPartCN.java
@@ -0,0 +1,5408 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.ArrayList;
+import java.util.LinkedList;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.PositionConstants;
+import org.eclipse.draw2d.Shape;
+import org.eclipse.draw2d.StackLayout;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EStructuralFeature;
+import org.eclipse.gef.EditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.editpolicies.LayoutEditPolicy;
+import org.eclipse.gef.editpolicies.NonResizableEditPolicy;
+import org.eclipse.gef.requests.CreateRequest;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IBorderItemEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.CreationEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.DragDropEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.diagram.ui.figures.IBorderItemLocator;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.FigureUtilities;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.gef.ui.figures.DefaultSizeNodeFigure;
+import org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.jface.preference.PreferenceConverter;
+import org.eclipse.papyrus.diagram.common.editparts.NamedElementEditPart;
+import org.eclipse.papyrus.diagram.common.editpolicies.AffixedNodeAlignmentEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.BorderItemResizableEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.HyperLinkPopupBarEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.QualifiedNameDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.ShowHideClassifierContentsEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.ShowHideCompartmentEditPolicy;
+import org.eclipse.papyrus.diagram.common.helper.PreferenceInitializerForElementHelper;
+import org.eclipse.papyrus.diagram.composite.custom.edit.parts.ConstrainedNamedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.BehaviorLayoutEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.BehaviorResizableShapeEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.CustomDiagramDragDropEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.NoScrollBehaviorResizableShapeEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.RemoveOrphanViewPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.figures.FunctionBehaviorCompositeFigure;
+import org.eclipse.papyrus.diagram.composite.custom.locators.PortPositionLocator;
+import org.eclipse.papyrus.diagram.composite.edit.policies.FunctionBehaviorCompositeItemSemanticEditPolicyCN;
+import org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorPlugin;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter;
+import org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper;
+import org.eclipse.swt.graphics.Color;
+
+/**
+ * @generated
+ */
+public class FunctionBehaviorCompositeEditPartCN extends
+
+ConstrainedNamedElementEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 3076;
+
+ /**
+ * @generated
+ */
+ protected IFigure contentPane;
+
+ /**
+ * @generated
+ */
+ protected IFigure primaryShape;
+
+ /**
+ * @generated
+ */
+ public FunctionBehaviorCompositeEditPartCN(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ installEditPolicy(EditPolicyRoles.CREATION_ROLE, new CreationEditPolicy());
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new FunctionBehaviorCompositeItemSemanticEditPolicyCN());
+ installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new DragDropEditPolicy());
+ installEditPolicy(EditPolicy.LAYOUT_ROLE, createLayoutEditPolicy());
+ installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new CustomDiagramDragDropEditPolicy());
+ installEditPolicy(QualifiedNameDisplayEditPolicy.QUALIFIED_NAME_POLICY, new QualifiedNameDisplayEditPolicy());
+ installEditPolicy(AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeNodeLabelDisplayEditPolicy());
+ installEditPolicy(EditPolicyRoles.POPUPBAR_ROLE, new HyperLinkPopupBarEditPolicy());
+ installEditPolicy(EditPolicy.LAYOUT_ROLE, new BehaviorLayoutEditPolicy());
+ installEditPolicy(ShowHideClassifierContentsEditPolicy.SHOW_HIDE_CLASSIFIER_CONTENTS_POLICY, new ShowHideClassifierContentsEditPolicy());
+ installEditPolicy(ShowHideCompartmentEditPolicy.SHOW_HIDE_COMPARTMENT_POLICY, new ShowHideCompartmentEditPolicy());
+ installEditPolicy(AffixedNodeAlignmentEditPolicy.AFFIXED_CHILD_ALIGNMENT_ROLE, new AffixedNodeAlignmentEditPolicy());
+ installEditPolicy("REMOVE_ORPHAN_VIEW", new RemoveOrphanViewPolicy()); //$NON-NLS-1$
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new NoScrollBehaviorResizableShapeEditPolicy());
+ // XXX need an SCR to runtime to have another abstract superclass that would let children add reasonable editpolicies
+ // removeEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CONNECTION_HANDLES_ROLE);
+ }
+
+ /**
+ * Papyrus codeGen
+ *
+ * @generated
+ **/
+ protected void handleNotificationEvent(Notification event) {
+ super.handleNotificationEvent(event);
+
+ }
+
+ /**
+ * @generated
+ */
+ protected LayoutEditPolicy createLayoutEditPolicy() {
+ org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy lep = new org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy() {
+
+ protected EditPolicy createChildEditPolicy(EditPart child) {
+ View childView = (View)child.getModel();
+ switch(UMLVisualIDRegistry.getVisualID(childView)) {
+ case PortEditPart.VISUAL_ID:
+ case ParameterEditPart.VISUAL_ID:
+
+ return new BorderItemResizableEditPolicy();
+
+ }
+ EditPolicy result = child.getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(result == null) {
+ result = new NonResizableEditPolicy();
+ }
+ return result;
+ }
+
+ protected Command getMoveChildrenCommand(Request request) {
+ return null;
+ }
+
+ protected Command getCreateCommand(CreateRequest request) {
+ return null;
+ }
+ };
+ return lep;
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createNodeShape() {
+ return primaryShape = new FunctionBehaviorCompositeFigure();
+ }
+
+ /**
+ * @generated
+ */
+ public FunctionBehaviorCompositeFigure getPrimaryShape() {
+ return (FunctionBehaviorCompositeFigure)primaryShape;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean addFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof FunctionBehaviorCompositeNameEditPartCN) {
+ ((FunctionBehaviorCompositeNameEditPartCN)childEditPart).setLabel(getPrimaryShape().getNameLabel());
+ return true;
+ }
+
+ if(childEditPart instanceof FunctionBehaviorCompositeCompartmentEditPartCN) {
+ IFigure pane = getPrimaryShape().getCompositeCompartmentFigure();
+ setupContentPane(pane); // FIXME each comparment should handle his content pane in his own way
+ pane.add(((FunctionBehaviorCompositeCompartmentEditPartCN)childEditPart).getFigure());
+ return true;
+ }
+
+ //Papyrus Gencode :Affixed Port locator
+ if(childEditPart instanceof PortEditPart) {
+ IBorderItemLocator locator = new PortPositionLocator(getMainFigure(), PositionConstants.NONE);
+ getBorderedFigure().getBorderItemContainer().add(((PortEditPart)childEditPart).getFigure(), locator);
+ return true;
+ }
+
+ //Papyrus Gencode :Affixed Port locator
+ if(childEditPart instanceof ParameterEditPart) {
+ IBorderItemLocator locator = new PortPositionLocator(getMainFigure(), PositionConstants.NONE);
+ getBorderedFigure().getBorderItemContainer().add(((ParameterEditPart)childEditPart).getFigure(), locator);
+ return true;
+ }
+
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean removeFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof FunctionBehaviorCompositeNameEditPartCN) {
+ return true;
+ }
+ if(childEditPart instanceof FunctionBehaviorCompositeCompartmentEditPartCN) {
+ IFigure pane = getPrimaryShape().getCompositeCompartmentFigure();
+ setupContentPane(pane); // FIXME each comparment should handle his content pane in his own way
+ pane.remove(((FunctionBehaviorCompositeCompartmentEditPartCN)childEditPart).getFigure());
+ return true;
+ }
+ if(childEditPart instanceof PortEditPart) {
+ getBorderedFigure().getBorderItemContainer().remove(((PortEditPart)childEditPart).getFigure());
+ return true;
+ }
+ if(childEditPart instanceof ParameterEditPart) {
+ getBorderedFigure().getBorderItemContainer().remove(((ParameterEditPart)childEditPart).getFigure());
+ return true;
+ }
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected void addChildVisual(EditPart childEditPart, int index) {
+ if(addFixedChild(childEditPart)) {
+ return;
+ }
+ super.addChildVisual(childEditPart, -1);
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeChildVisual(EditPart childEditPart) {
+ if(removeFixedChild(childEditPart)) {
+ return;
+ }
+ super.removeChildVisual(childEditPart);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure getContentPaneFor(IGraphicalEditPart editPart) {
+ if(editPart instanceof FunctionBehaviorCompositeCompartmentEditPartCN) {
+ return getPrimaryShape().getCompositeCompartmentFigure();
+ }
+ if(editPart instanceof IBorderItemEditPart) {
+ return getBorderedFigure().getBorderItemContainer();
+ }
+ return getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ protected NodeFigure createNodePlate() {
+ String prefElementId = "FunctionBehavior";
+ IPreferenceStore store = UMLDiagramEditorPlugin.getInstance().getPreferenceStore();
+ String preferenceConstantWitdh = PreferenceInitializerForElementHelper.getpreferenceKey(getNotationView(), prefElementId, PreferenceConstantHelper.WIDTH);
+ String preferenceConstantHeight = PreferenceInitializerForElementHelper.getpreferenceKey(getNotationView(), prefElementId, PreferenceConstantHelper.HEIGHT);
+ DefaultSizeNodeFigure result = new DefaultSizeNodeFigure(store.getInt(preferenceConstantWitdh), store.getInt(preferenceConstantHeight));
+
+ return result;
+ }
+
+ /**
+ * Creates figure for this edit part.
+ *
+ * Body of this method does not depend on settings in generation model
+ * so you may safely remove <i>generated</i> tag and modify it.
+ *
+ * @generated
+ */
+ protected NodeFigure createMainFigure() {
+ NodeFigure figure = createNodePlate();
+ figure.setLayoutManager(new StackLayout());
+ IFigure shape = createNodeShape();
+ figure.add(shape);
+ contentPane = setupContentPane(shape);
+ return figure;
+ }
+
+ /**
+ * Default implementation treats passed figure as content pane.
+ * Respects layout one may have set for generated figure.
+ *
+ * @param nodeShape
+ * instance of generated figure class
+ * @generated
+ */
+ protected IFigure setupContentPane(IFigure nodeShape) {
+ if(nodeShape.getLayoutManager() == null) {
+ ConstrainedToolbarLayout layout = new ConstrainedToolbarLayout();
+ layout.setSpacing(5);
+ nodeShape.setLayoutManager(layout);
+ }
+ return nodeShape; // use nodeShape itself as contentPane
+ }
+
+ /**
+ * @generated
+ */
+ public IFigure getContentPane() {
+ if(contentPane != null) {
+ return contentPane;
+ }
+ return super.getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ protected void setForegroundColor(Color color) {
+ if(primaryShape != null) {
+ primaryShape.setForegroundColor(color);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLineWidth(int width) {
+ if(primaryShape instanceof Shape) {
+ ((Shape)primaryShape).setLineWidth(width);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLineType(int style) {
+ if(primaryShape instanceof Shape) {
+ ((Shape)primaryShape).setLineStyle(style);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public EditPart getPrimaryChildEditPart() {
+ return getChildBySemanticHint(UMLVisualIDRegistry.getType(FunctionBehaviorCompositeNameEditPartCN.VISUAL_ID));
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnSource() {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(12);
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ types.add(UMLElementTypes.Substitution_4011);
+ types.add(UMLElementTypes.Realization_4006);
+ types.add(UMLElementTypes.Manifestation_4012);
+ types.add(UMLElementTypes.Abstraction_4007);
+ types.add(UMLElementTypes.Usage_4008);
+ types.add(UMLElementTypes.Deployment_4009);
+ types.add(UMLElementTypes.Dependency_4017);
+ types.add(UMLElementTypes.Dependency_4010);
+ types.add(UMLElementTypes.Generalization_4015);
+ types.add(UMLElementTypes.InformationFlow_4021);
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnSourceAndTarget(IGraphicalEditPart targetEditPart) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMATypesForTarget(IElementType relationshipType) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(relationshipType == UMLElementTypes.ComponentRealization_4004) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InterfaceRealization_4005) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Substitution_4011) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Realization_4006) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Manifestation_4012) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Abstraction_4007) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Usage_4008) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Deployment_4009) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4017) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4010) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Generalization_4015) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ } else if(relationshipType == UMLElementTypes.InformationFlow_4021) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnTarget() {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(17);
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ types.add(UMLElementTypes.Substitution_4011);
+ types.add(UMLElementTypes.Realization_4006);
+ types.add(UMLElementTypes.Manifestation_4012);
+ types.add(UMLElementTypes.Abstraction_4007);
+ types.add(UMLElementTypes.Usage_4008);
+ types.add(UMLElementTypes.Deployment_4009);
+ types.add(UMLElementTypes.Dependency_4017);
+ types.add(UMLElementTypes.Dependency_4010);
+ types.add(UMLElementTypes.Generalization_4015);
+ types.add(UMLElementTypes.TimeObservationEvent_4018);
+ types.add(UMLElementTypes.DurationObservationEvent_4019);
+ types.add(UMLElementTypes.InformationItemRepresented_4020);
+ types.add(UMLElementTypes.InformationFlow_4021);
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMATypesForSource(IElementType relationshipType) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(relationshipType == UMLElementTypes.CommentAnnotatedElement_4002) {
+ types.add(UMLElementTypes.Comment_2109);
+ types.add(UMLElementTypes.Comment_3097);
+ } else if(relationshipType == UMLElementTypes.ConstraintConstrainedElement_4003) {
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.ComponentRealization_4004) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InterfaceRealization_4005) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Substitution_4011) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Realization_4006) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Manifestation_4012) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Abstraction_4007) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Usage_4008) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Deployment_4009) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4017) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4010) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Generalization_4015) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ } else if(relationshipType == UMLElementTypes.TimeObservationEvent_4018) {
+ types.add(UMLElementTypes.TimeObservation_2094);
+ } else if(relationshipType == UMLElementTypes.DurationObservationEvent_4019) {
+ types.add(UMLElementTypes.DurationObservation_2093);
+ } else if(relationshipType == UMLElementTypes.InformationItemRepresented_4020) {
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.InformationItem_3094);
+ } else if(relationshipType == UMLElementTypes.InformationFlow_4021) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public Object getPreferredValue(EStructuralFeature feature) {
+ IPreferenceStore preferenceStore = (IPreferenceStore)getDiagramPreferencesHint().getPreferenceStore();
+ Object result = null;
+
+ if(feature == NotationPackage.eINSTANCE.getLineStyle_LineColor() || feature == NotationPackage.eINSTANCE.getFontStyle_FontColor() || feature == NotationPackage.eINSTANCE.getFillStyle_FillColor()) {
+ String prefColor = null;
+ if(feature == NotationPackage.eINSTANCE.getLineStyle_LineColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("FunctionBehavior", PreferenceConstantHelper.COLOR_LINE);
+ } else if(feature == NotationPackage.eINSTANCE.getFontStyle_FontColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("FunctionBehavior", PreferenceConstantHelper.COLOR_FONT);
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_FillColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("FunctionBehavior", PreferenceConstantHelper.COLOR_FILL);
+ }
+ result = FigureUtilities.RGBToInteger(PreferenceConverter.getColor((IPreferenceStore)preferenceStore, prefColor));
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_Transparency() || feature == NotationPackage.eINSTANCE.getFillStyle_Gradient()) {
+ String prefGradient = PreferenceConstantHelper.getElementConstant("FunctionBehavior", PreferenceConstantHelper.COLOR_GRADIENT);
+ GradientPreferenceConverter gradientPreferenceConverter = new GradientPreferenceConverter(preferenceStore.getString(prefGradient));
+ if(feature == NotationPackage.eINSTANCE.getFillStyle_Transparency()) {
+ result = new Integer(gradientPreferenceConverter.getTransparency());
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_Gradient()) {
+ result = gradientPreferenceConverter.getGradientData();
+ }
+ }
+
+ if(result == null) {
+ result = getStructuralFeatureValue(feature);
+ }
+ return result;
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/FunctionBehaviorCompositeNameEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/FunctionBehaviorCompositeNameEditPart.java
new file mode 100644
index 00000000000..7354aa4871c
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/FunctionBehaviorCompositeNameEditPart.java
@@ -0,0 +1,791 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EAnnotation;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.emf.transaction.RunnableWithResult;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.AccessibleEditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.requests.DirectEditRequest;
+import org.eclipse.gef.tools.DirectEditManager;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.CompartmentEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
+import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
+import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
+import org.eclipse.gmf.runtime.notation.FontStyle;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
+import org.eclipse.jface.viewers.ICellEditorValidator;
+import org.eclipse.jface.window.Window;
+import org.eclipse.papyrus.diagram.common.directedit.MultilineLabelDirectEditManager;
+import org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition;
+import org.eclipse.papyrus.diagram.common.editpolicies.IMaskManagedLabelEditPolicy;
+import org.eclipse.papyrus.diagram.common.figure.node.ILabelFigure;
+import org.eclipse.papyrus.diagram.common.util.DiagramEditPartsUtil;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLTextSelectionEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.diagram.composite.providers.UMLParserProvider;
+import org.eclipse.papyrus.extensionpoints.editors.Activator;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
+import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
+import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
+import org.eclipse.papyrus.umlutils.ui.VisualInformationPapyrusConstant;
+import org.eclipse.papyrus.umlutils.ui.helper.NameLabelIconHelper;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.AccessibleEvent;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.FontData;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.ui.PlatformUI;
+
+/**
+ * @generated
+ */
+public class FunctionBehaviorCompositeNameEditPart extends CompartmentEditPart implements ITextAwareEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 5116;
+
+ /**
+ * @generated
+ */
+ private DirectEditManager manager;
+
+ /**
+ * @generated
+ */
+ private IParser parser;
+
+ /**
+ * @generated
+ */
+ private List<?> parserElements;
+
+ /**
+ * @generated
+ */
+ private String defaultText;
+
+ /**
+ * direct edition mode (default, undefined, registered editor, etc.)
+ *
+ * @generated
+ */
+ protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
+
+ /**
+ * configuration from a registered edit dialog
+ *
+ * @generated
+ */
+ protected IDirectEditorConfiguration configuration;
+
+ /**
+ * @generated
+ */
+ public FunctionBehaviorCompositeNameEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
+ installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new CompositeStructureDiagramEditPart.NodeLabelDragPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelTextHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getText();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getText();
+ } else {
+ return ((Label)figure).getText();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelTextHelper(IFigure figure, String text) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setText(text);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setText(text);
+ } else {
+ ((Label)figure).setText(text);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIconHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getIcon();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getIcon();
+ } else {
+ return ((Label)figure).getIcon();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelIconHelper(IFigure figure, Image icon) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setIcon(icon);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setIcon(icon);
+ } else {
+ ((Label)figure).setIcon(icon);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabel(WrappingLabel figure) {
+ unregisterVisuals();
+ setFigure(figure);
+ defaultText = getLabelTextHelper(figure);
+ registerVisuals();
+ refreshVisuals();
+ }
+
+ /**
+ * @generated
+ */
+ protected List getModelChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject getParserElement() {
+ return resolveSemanticElement();
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIcon() {
+ EObject parserElement = getParserElement();
+ if(parserElement == null) {
+ return null;
+ }
+
+ List<View> views = DiagramEditPartsUtil.findViews(parserElement, getViewer());
+ for(View view : views) {
+ if(NameLabelIconHelper.showLabelIcon(view)) {
+ return UMLElementTypes.getImage(parserElement.eClass());
+ }
+ }
+ return null;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelText() {
+ String text = null;
+ EObject parserElement = getParserElement();
+ if(parserElement != null && getParser() != null) {
+ text = getParser().getPrintString(new EObjectAdapter(parserElement), getParserOptions().intValue());
+ }
+ if(text == null || text.length() == 0) {
+ text = defaultText;
+ }
+ return text;
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabelText(String text) {
+ setLabelTextHelper(getFigure(), text);
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public String getEditText() {
+ if(getParserElement() == null || getParser() == null) {
+ return ""; //$NON-NLS-1$
+ }
+ return getParser().getEditString(new EObjectAdapter(getParserElement()), getParserOptions().intValue());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean isEditable() {
+ return getParser() != null;
+ }
+
+ /**
+ * @generated
+ */
+ public ICellEditorValidator getEditTextValidator() {
+ return new ICellEditorValidator() {
+
+ public String isValid(final Object value) {
+ if(value instanceof String) {
+ final EObject element = getParserElement();
+ final IParser parser = getParser();
+ try {
+ IParserEditStatus valid = (IParserEditStatus)getEditingDomain().runExclusive(new RunnableWithResult.Impl() {
+
+ public void run() {
+ setResult(parser.isValidEditString(new EObjectAdapter(element), (String)value));
+ }
+ });
+ return valid.getCode() == ParserEditStatus.EDITABLE ? null : valid.getMessage();
+ } catch (InterruptedException ie) {
+ ie.printStackTrace();
+ }
+ }
+
+ // shouldn't get here
+ return null;
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ public IContentAssistProcessor getCompletionProcessor() {
+ if(getParserElement() == null || getParser() == null) {
+ return null;
+ }
+ return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
+ }
+
+ /**
+ * @generated
+ */
+ public ParserOptions getParserOptions() {
+ return ParserOptions.NONE;
+ }
+
+ /**
+ * @generated
+ */
+ public IParser getParser() {
+ if(parser == null) {
+ parser = UMLParserProvider.getParser(UMLElementTypes.FunctionBehavior_2064, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.diagram.composite.edit.parts.FunctionBehaviorCompositeNameEditPart.VISUAL_ID));
+ }
+ return parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected DirectEditManager getManager() {
+ if(manager == null) {
+ setManager(new MultilineLabelDirectEditManager(this, MultilineLabelDirectEditManager.getTextCellEditorClass(this), UMLEditPartFactory.getTextCellEditorLocator(this)));
+ }
+ return manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setManager(DirectEditManager manager) {
+ this.manager = manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit() {
+ getManager().show();
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit(Point eventLocation) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(eventLocation.getSWTPoint());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void performDirectEdit(char initialCharacter) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(initialCharacter);
+ } else {
+ performDirectEdit();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEditRequest(Request request) {
+
+ final Request theRequest = request;
+
+ if(IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
+ directEditionMode = getDirectEditionType();
+ }
+ switch(directEditionMode) {
+ case IDirectEdition.NO_DIRECT_EDITION:
+ // no direct edition mode => does nothing
+ return;
+ case IDirectEdition.EXTENDED_DIRECT_EDITOR:
+ updateExtendedEditorConfiguration();
+ if(configuration == null || configuration.getLanguage() == null) {
+ performDefaultDirectEditorEdit(theRequest);
+ } else {
+ configuration.preEditAction(resolveSemanticElement());
+ Dialog dialog = null;
+ if(configuration instanceof IPopupEditorConfiguration) {
+ IPopupEditorHelper helper = ((IPopupEditorConfiguration)configuration).createPopupEditorHelper(this);
+ helper.showEditor();
+ return;
+ } else if(configuration instanceof IAdvancedEditorConfiguration) {
+ dialog = ((IAdvancedEditorConfiguration)configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
+ } else if(configuration instanceof IDirectEditorConfiguration) {
+ dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), ((IDirectEditorConfiguration)configuration).getTextToEdit(resolveSemanticElement()), (IDirectEditorConfiguration)configuration);
+ } else {
+ return;
+ }
+ final Dialog finalDialog = dialog;
+
+ if(Window.OK == dialog.open()) {
+ TransactionalEditingDomain domain = getEditingDomain();
+ RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
+
+ @Override
+ protected void doExecute() {
+ configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog)finalDialog).getValue());
+
+ }
+ };
+ domain.getCommandStack().execute(command);
+ }
+ }
+ break;
+ case IDirectEdition.DEFAULT_DIRECT_EDITOR:
+
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ break;
+ default:
+ break;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshLabel();
+ refreshFont();
+ refreshFontColor();
+ refreshUnderline();
+ refreshStrikeThrough();
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshLabel() {
+ EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
+ if(maskLabelPolicy == null) {
+ setLabelTextHelper(getFigure(), getLabelText());
+ setLabelIconHelper(getFigure(), getLabelIcon());
+ }
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshUnderline() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextUnderline(style.isUnderline());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshStrikeThrough() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextStrikeThrough(style.isStrikeThrough());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshFont() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null) {
+ FontData fontData = new FontData(style.getFontName(), style.getFontHeight(), (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
+ setFont(fontData);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setFontColor(Color color) {
+ getFigure().setForegroundColor(color);
+ }
+
+ /**
+ * @generated
+ */
+ protected void addSemanticListeners() {
+ if(getParser() instanceof ISemanticParser) {
+ EObject element = resolveSemanticElement();
+ parserElements = ((ISemanticParser)getParser()).getSemanticElementsBeingParsed(element);
+ for(int i = 0; i < parserElements.size(); i++) {
+ addListenerFilter("SemanticModel" + i, this, (EObject)parserElements.get(i)); //$NON-NLS-1$
+ }
+ } else {
+ super.addSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeSemanticListeners() {
+ if(parserElements != null) {
+ for(int i = 0; i < parserElements.size(); i++) {
+ removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
+ }
+ } else {
+ super.removeSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected AccessibleEditPart getAccessibleEditPart() {
+ if(accessibleEP == null) {
+ accessibleEP = new AccessibleGraphicalEditPart() {
+
+ public void getName(AccessibleEvent e) {
+ e.result = getLabelTextHelper(getFigure());
+ }
+ };
+ }
+ return accessibleEP;
+ }
+
+ /**
+ * @generated
+ */
+ private View getFontStyleOwnerView() {
+ return (View)getModel();
+ }
+
+ /**
+ * Returns the kind of associated editor for direct edition.
+ *
+ * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition
+ * @generated
+ */
+ public int getDirectEditionType() {
+ if(checkExtendedEditor()) {
+ initExtendedEditorConfiguration();
+ return IDirectEdition.EXTENDED_DIRECT_EDITOR;
+ }
+ if(checkDefaultEdition()) {
+ return IDirectEdition.DEFAULT_DIRECT_EDITOR;
+ }
+
+ // not a named element. no specific editor => do nothing
+ return IDirectEdition.NO_DIRECT_EDITION;
+ }
+
+ /**
+ * Checks if an extended editor is present.
+ *
+ * @return <code>true</code> if an extended editor is present.
+ * @generated
+ */
+ protected boolean checkExtendedEditor() {
+ if(resolveSemanticElement() != null) {
+ return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ return false;
+ }
+
+ /**
+ * Checks if a default direct edition is available
+ *
+ * @return <code>true</code> if a default direct edition is available
+ * @generated
+ */
+ protected boolean checkDefaultEdition() {
+ return (getParser() != null);
+ }
+
+ /**
+ * Initializes the extended editor configuration
+ *
+ * @generated
+ */
+ protected void initExtendedEditorConfiguration() {
+ if(configuration == null) {
+ final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("")) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else {
+ configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ }
+ }
+
+ /**
+ * Updates the preference configuration
+ *
+ * @generated
+ */
+ protected void updateExtendedEditorConfiguration() {
+ String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("") && languagePreferred != configuration.getLanguage()) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else if(IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
+ configuration = null;
+ }
+ }
+
+ /**
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
+ protected void performDefaultDirectEditorEdit(final Request theRequest) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void addNotationalListeners() {
+ super.addNotationalListeners();
+ addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeNotationalListeners() {
+ super.removeNotationalListeners();
+ removeListenerFilter("PrimaryView"); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void handleNotificationEvent(Notification event) {
+ refreshLabel();
+ Object feature = event.getFeature();
+ if(NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
+ Integer c = (Integer)event.getNewValue();
+ setFontColor(DiagramColorRegistry.getInstance().getColor(c));
+ } else if(NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
+ refreshUnderline();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
+ refreshStrikeThrough();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
+ refreshFont();
+ } else {
+ if(getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
+ refreshLabel();
+ }
+ if(getParser() instanceof ISemanticParser) {
+ ISemanticParser modelParser = (ISemanticParser)getParser();
+ if(modelParser.areSemanticElementsAffected(null, event)) {
+ removeSemanticListeners();
+ if(resolveSemanticElement() != null) {
+ addSemanticListeners();
+ }
+ refreshLabel();
+ }
+ }
+ }
+
+ if(event.getNewValue() instanceof EAnnotation && VisualInformationPapyrusConstant.DISPLAY_NAMELABELICON.equals(((EAnnotation)event.getNewValue()).getSource())) {
+ refreshLabel();
+ }
+
+ super.handleNotificationEvent(event);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createFigure() {
+ // Parent should assign one using setLabel() method
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ private static final String ADD_PARENT_MODEL = "AddParentModel";
+
+ /**
+ * @generated
+ */
+ public void activate() {
+ super.activate();
+ addOwnerElementListeners();
+ }
+
+ /**
+ * @generated
+ */
+ protected void addOwnerElementListeners() {
+ addListenerFilter(ADD_PARENT_MODEL, this, ((View)getParent().getModel())); //$NON-NLS-1$
+
+ }
+
+ /**
+ * @generated
+ */
+ public void deactivate() {
+ removeOwnerElementListeners();
+ super.deactivate();
+
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeOwnerElementListeners() {
+ removeListenerFilter(ADD_PARENT_MODEL);
+
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/FunctionBehaviorCompositeNameEditPartCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/FunctionBehaviorCompositeNameEditPartCN.java
new file mode 100644
index 00000000000..0bcb54b7c1e
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/FunctionBehaviorCompositeNameEditPartCN.java
@@ -0,0 +1,791 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EAnnotation;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.emf.transaction.RunnableWithResult;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.AccessibleEditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.requests.DirectEditRequest;
+import org.eclipse.gef.tools.DirectEditManager;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.CompartmentEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
+import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
+import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
+import org.eclipse.gmf.runtime.notation.FontStyle;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
+import org.eclipse.jface.viewers.ICellEditorValidator;
+import org.eclipse.jface.window.Window;
+import org.eclipse.papyrus.diagram.common.directedit.MultilineLabelDirectEditManager;
+import org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition;
+import org.eclipse.papyrus.diagram.common.editpolicies.IMaskManagedLabelEditPolicy;
+import org.eclipse.papyrus.diagram.common.figure.node.ILabelFigure;
+import org.eclipse.papyrus.diagram.common.util.DiagramEditPartsUtil;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLTextSelectionEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.diagram.composite.providers.UMLParserProvider;
+import org.eclipse.papyrus.extensionpoints.editors.Activator;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
+import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
+import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
+import org.eclipse.papyrus.umlutils.ui.VisualInformationPapyrusConstant;
+import org.eclipse.papyrus.umlutils.ui.helper.NameLabelIconHelper;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.AccessibleEvent;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.FontData;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.ui.PlatformUI;
+
+/**
+ * @generated
+ */
+public class FunctionBehaviorCompositeNameEditPartCN extends CompartmentEditPart implements ITextAwareEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 5132;
+
+ /**
+ * @generated
+ */
+ private DirectEditManager manager;
+
+ /**
+ * @generated
+ */
+ private IParser parser;
+
+ /**
+ * @generated
+ */
+ private List<?> parserElements;
+
+ /**
+ * @generated
+ */
+ private String defaultText;
+
+ /**
+ * direct edition mode (default, undefined, registered editor, etc.)
+ *
+ * @generated
+ */
+ protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
+
+ /**
+ * configuration from a registered edit dialog
+ *
+ * @generated
+ */
+ protected IDirectEditorConfiguration configuration;
+
+ /**
+ * @generated
+ */
+ public FunctionBehaviorCompositeNameEditPartCN(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
+ installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new CompositeStructureDiagramEditPart.NodeLabelDragPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelTextHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getText();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getText();
+ } else {
+ return ((Label)figure).getText();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelTextHelper(IFigure figure, String text) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setText(text);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setText(text);
+ } else {
+ ((Label)figure).setText(text);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIconHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getIcon();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getIcon();
+ } else {
+ return ((Label)figure).getIcon();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelIconHelper(IFigure figure, Image icon) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setIcon(icon);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setIcon(icon);
+ } else {
+ ((Label)figure).setIcon(icon);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabel(WrappingLabel figure) {
+ unregisterVisuals();
+ setFigure(figure);
+ defaultText = getLabelTextHelper(figure);
+ registerVisuals();
+ refreshVisuals();
+ }
+
+ /**
+ * @generated
+ */
+ protected List getModelChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject getParserElement() {
+ return resolveSemanticElement();
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIcon() {
+ EObject parserElement = getParserElement();
+ if(parserElement == null) {
+ return null;
+ }
+
+ List<View> views = DiagramEditPartsUtil.findViews(parserElement, getViewer());
+ for(View view : views) {
+ if(NameLabelIconHelper.showLabelIcon(view)) {
+ return UMLElementTypes.getImage(parserElement.eClass());
+ }
+ }
+ return null;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelText() {
+ String text = null;
+ EObject parserElement = getParserElement();
+ if(parserElement != null && getParser() != null) {
+ text = getParser().getPrintString(new EObjectAdapter(parserElement), getParserOptions().intValue());
+ }
+ if(text == null || text.length() == 0) {
+ text = defaultText;
+ }
+ return text;
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabelText(String text) {
+ setLabelTextHelper(getFigure(), text);
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public String getEditText() {
+ if(getParserElement() == null || getParser() == null) {
+ return ""; //$NON-NLS-1$
+ }
+ return getParser().getEditString(new EObjectAdapter(getParserElement()), getParserOptions().intValue());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean isEditable() {
+ return getParser() != null;
+ }
+
+ /**
+ * @generated
+ */
+ public ICellEditorValidator getEditTextValidator() {
+ return new ICellEditorValidator() {
+
+ public String isValid(final Object value) {
+ if(value instanceof String) {
+ final EObject element = getParserElement();
+ final IParser parser = getParser();
+ try {
+ IParserEditStatus valid = (IParserEditStatus)getEditingDomain().runExclusive(new RunnableWithResult.Impl() {
+
+ public void run() {
+ setResult(parser.isValidEditString(new EObjectAdapter(element), (String)value));
+ }
+ });
+ return valid.getCode() == ParserEditStatus.EDITABLE ? null : valid.getMessage();
+ } catch (InterruptedException ie) {
+ ie.printStackTrace();
+ }
+ }
+
+ // shouldn't get here
+ return null;
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ public IContentAssistProcessor getCompletionProcessor() {
+ if(getParserElement() == null || getParser() == null) {
+ return null;
+ }
+ return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
+ }
+
+ /**
+ * @generated
+ */
+ public ParserOptions getParserOptions() {
+ return ParserOptions.NONE;
+ }
+
+ /**
+ * @generated
+ */
+ public IParser getParser() {
+ if(parser == null) {
+ parser = UMLParserProvider.getParser(UMLElementTypes.FunctionBehavior_3076, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.diagram.composite.edit.parts.FunctionBehaviorCompositeNameEditPartCN.VISUAL_ID));
+ }
+ return parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected DirectEditManager getManager() {
+ if(manager == null) {
+ setManager(new MultilineLabelDirectEditManager(this, MultilineLabelDirectEditManager.getTextCellEditorClass(this), UMLEditPartFactory.getTextCellEditorLocator(this)));
+ }
+ return manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setManager(DirectEditManager manager) {
+ this.manager = manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit() {
+ getManager().show();
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit(Point eventLocation) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(eventLocation.getSWTPoint());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void performDirectEdit(char initialCharacter) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(initialCharacter);
+ } else {
+ performDirectEdit();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEditRequest(Request request) {
+
+ final Request theRequest = request;
+
+ if(IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
+ directEditionMode = getDirectEditionType();
+ }
+ switch(directEditionMode) {
+ case IDirectEdition.NO_DIRECT_EDITION:
+ // no direct edition mode => does nothing
+ return;
+ case IDirectEdition.EXTENDED_DIRECT_EDITOR:
+ updateExtendedEditorConfiguration();
+ if(configuration == null || configuration.getLanguage() == null) {
+ performDefaultDirectEditorEdit(theRequest);
+ } else {
+ configuration.preEditAction(resolveSemanticElement());
+ Dialog dialog = null;
+ if(configuration instanceof IPopupEditorConfiguration) {
+ IPopupEditorHelper helper = ((IPopupEditorConfiguration)configuration).createPopupEditorHelper(this);
+ helper.showEditor();
+ return;
+ } else if(configuration instanceof IAdvancedEditorConfiguration) {
+ dialog = ((IAdvancedEditorConfiguration)configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
+ } else if(configuration instanceof IDirectEditorConfiguration) {
+ dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), ((IDirectEditorConfiguration)configuration).getTextToEdit(resolveSemanticElement()), (IDirectEditorConfiguration)configuration);
+ } else {
+ return;
+ }
+ final Dialog finalDialog = dialog;
+
+ if(Window.OK == dialog.open()) {
+ TransactionalEditingDomain domain = getEditingDomain();
+ RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
+
+ @Override
+ protected void doExecute() {
+ configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog)finalDialog).getValue());
+
+ }
+ };
+ domain.getCommandStack().execute(command);
+ }
+ }
+ break;
+ case IDirectEdition.DEFAULT_DIRECT_EDITOR:
+
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ break;
+ default:
+ break;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshLabel();
+ refreshFont();
+ refreshFontColor();
+ refreshUnderline();
+ refreshStrikeThrough();
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshLabel() {
+ EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
+ if(maskLabelPolicy == null) {
+ setLabelTextHelper(getFigure(), getLabelText());
+ setLabelIconHelper(getFigure(), getLabelIcon());
+ }
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshUnderline() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextUnderline(style.isUnderline());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshStrikeThrough() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextStrikeThrough(style.isStrikeThrough());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshFont() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null) {
+ FontData fontData = new FontData(style.getFontName(), style.getFontHeight(), (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
+ setFont(fontData);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setFontColor(Color color) {
+ getFigure().setForegroundColor(color);
+ }
+
+ /**
+ * @generated
+ */
+ protected void addSemanticListeners() {
+ if(getParser() instanceof ISemanticParser) {
+ EObject element = resolveSemanticElement();
+ parserElements = ((ISemanticParser)getParser()).getSemanticElementsBeingParsed(element);
+ for(int i = 0; i < parserElements.size(); i++) {
+ addListenerFilter("SemanticModel" + i, this, (EObject)parserElements.get(i)); //$NON-NLS-1$
+ }
+ } else {
+ super.addSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeSemanticListeners() {
+ if(parserElements != null) {
+ for(int i = 0; i < parserElements.size(); i++) {
+ removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
+ }
+ } else {
+ super.removeSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected AccessibleEditPart getAccessibleEditPart() {
+ if(accessibleEP == null) {
+ accessibleEP = new AccessibleGraphicalEditPart() {
+
+ public void getName(AccessibleEvent e) {
+ e.result = getLabelTextHelper(getFigure());
+ }
+ };
+ }
+ return accessibleEP;
+ }
+
+ /**
+ * @generated
+ */
+ private View getFontStyleOwnerView() {
+ return (View)getModel();
+ }
+
+ /**
+ * Returns the kind of associated editor for direct edition.
+ *
+ * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition
+ * @generated
+ */
+ public int getDirectEditionType() {
+ if(checkExtendedEditor()) {
+ initExtendedEditorConfiguration();
+ return IDirectEdition.EXTENDED_DIRECT_EDITOR;
+ }
+ if(checkDefaultEdition()) {
+ return IDirectEdition.DEFAULT_DIRECT_EDITOR;
+ }
+
+ // not a named element. no specific editor => do nothing
+ return IDirectEdition.NO_DIRECT_EDITION;
+ }
+
+ /**
+ * Checks if an extended editor is present.
+ *
+ * @return <code>true</code> if an extended editor is present.
+ * @generated
+ */
+ protected boolean checkExtendedEditor() {
+ if(resolveSemanticElement() != null) {
+ return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ return false;
+ }
+
+ /**
+ * Checks if a default direct edition is available
+ *
+ * @return <code>true</code> if a default direct edition is available
+ * @generated
+ */
+ protected boolean checkDefaultEdition() {
+ return (getParser() != null);
+ }
+
+ /**
+ * Initializes the extended editor configuration
+ *
+ * @generated
+ */
+ protected void initExtendedEditorConfiguration() {
+ if(configuration == null) {
+ final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("")) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else {
+ configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ }
+ }
+
+ /**
+ * Updates the preference configuration
+ *
+ * @generated
+ */
+ protected void updateExtendedEditorConfiguration() {
+ String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("") && languagePreferred != configuration.getLanguage()) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else if(IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
+ configuration = null;
+ }
+ }
+
+ /**
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
+ protected void performDefaultDirectEditorEdit(final Request theRequest) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void addNotationalListeners() {
+ super.addNotationalListeners();
+ addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeNotationalListeners() {
+ super.removeNotationalListeners();
+ removeListenerFilter("PrimaryView"); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void handleNotificationEvent(Notification event) {
+ refreshLabel();
+ Object feature = event.getFeature();
+ if(NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
+ Integer c = (Integer)event.getNewValue();
+ setFontColor(DiagramColorRegistry.getInstance().getColor(c));
+ } else if(NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
+ refreshUnderline();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
+ refreshStrikeThrough();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
+ refreshFont();
+ } else {
+ if(getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
+ refreshLabel();
+ }
+ if(getParser() instanceof ISemanticParser) {
+ ISemanticParser modelParser = (ISemanticParser)getParser();
+ if(modelParser.areSemanticElementsAffected(null, event)) {
+ removeSemanticListeners();
+ if(resolveSemanticElement() != null) {
+ addSemanticListeners();
+ }
+ refreshLabel();
+ }
+ }
+ }
+
+ if(event.getNewValue() instanceof EAnnotation && VisualInformationPapyrusConstant.DISPLAY_NAMELABELICON.equals(((EAnnotation)event.getNewValue()).getSource())) {
+ refreshLabel();
+ }
+
+ super.handleNotificationEvent(event);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createFigure() {
+ // Parent should assign one using setLabel() method
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ private static final String ADD_PARENT_MODEL = "AddParentModel";
+
+ /**
+ * @generated
+ */
+ public void activate() {
+ super.activate();
+ addOwnerElementListeners();
+ }
+
+ /**
+ * @generated
+ */
+ protected void addOwnerElementListeners() {
+ addListenerFilter(ADD_PARENT_MODEL, this, ((View)getParent().getModel())); //$NON-NLS-1$
+
+ }
+
+ /**
+ * @generated
+ */
+ public void deactivate() {
+ removeOwnerElementListeners();
+ super.deactivate();
+
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeOwnerElementListeners() {
+ removeListenerFilter(ADD_PARENT_MODEL);
+
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/FunctionBehaviorEditPartCLN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/FunctionBehaviorEditPartCLN.java
new file mode 100644
index 00000000000..36fafac3fc5
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/FunctionBehaviorEditPartCLN.java
@@ -0,0 +1,781 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EAnnotation;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.emf.transaction.RunnableWithResult;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.AccessibleEditPart;
+import org.eclipse.gef.DragTracker;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.requests.DirectEditRequest;
+import org.eclipse.gef.requests.SelectionRequest;
+import org.eclipse.gef.tools.DirectEditManager;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.CompartmentEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IPrimaryEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.ListItemComponentEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
+import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
+import org.eclipse.gmf.runtime.diagram.ui.tools.DragEditPartsTrackerEx;
+import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
+import org.eclipse.gmf.runtime.notation.FontStyle;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
+import org.eclipse.jface.viewers.ICellEditorValidator;
+import org.eclipse.jface.window.Window;
+import org.eclipse.papyrus.diagram.common.directedit.MultilineLabelDirectEditManager;
+import org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition;
+import org.eclipse.papyrus.diagram.common.editpolicies.IMaskManagedLabelEditPolicy;
+import org.eclipse.papyrus.diagram.common.figure.node.ILabelFigure;
+import org.eclipse.papyrus.diagram.common.util.DiagramEditPartsUtil;
+import org.eclipse.papyrus.diagram.composite.edit.policies.FunctionBehaviorItemSemanticEditPolicyCLN;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLTextNonResizableEditPolicy;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLTextSelectionEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.diagram.composite.providers.UMLParserProvider;
+import org.eclipse.papyrus.extensionpoints.editors.Activator;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
+import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
+import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
+import org.eclipse.papyrus.umlutils.ui.VisualInformationPapyrusConstant;
+import org.eclipse.papyrus.umlutils.ui.helper.NameLabelIconHelper;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.AccessibleEvent;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.FontData;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.ui.PlatformUI;
+
+/**
+ * @generated
+ */
+public class FunctionBehaviorEditPartCLN
+
+extends CompartmentEditPart
+
+implements ITextAwareEditPart, IPrimaryEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 3107;
+
+ /**
+ * @generated
+ */
+ private DirectEditManager manager;
+
+ /**
+ * @generated
+ */
+ private IParser parser;
+
+ /**
+ * @generated
+ */
+ private List<?> parserElements;
+
+ /**
+ * @generated
+ */
+ private String defaultText;
+
+ /**
+ * direct edition mode (default, undefined, registered editor, etc.)
+ *
+ * @generated
+ */
+ protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
+
+ /**
+ * configuration from a registered edit dialog
+ *
+ * @generated
+ */
+ protected IDirectEditorConfiguration configuration;
+
+ /**
+ * @generated
+ */
+ public FunctionBehaviorEditPartCLN(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ public DragTracker getDragTracker(Request request) {
+ if(request instanceof SelectionRequest && ((SelectionRequest)request).getLastButtonPressed() == 3) {
+ return null;
+ }
+ return new DragEditPartsTrackerEx(this);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new FunctionBehaviorItemSemanticEditPolicyCLN());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new UMLTextNonResizableEditPolicy());
+ installEditPolicy(EditPolicy.COMPONENT_ROLE, new ListItemComponentEditPolicy());
+ installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelTextHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getText();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getText();
+ } else {
+ return ((Label)figure).getText();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelTextHelper(IFigure figure, String text) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setText(text);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setText(text);
+ } else {
+ ((Label)figure).setText(text);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIconHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getIcon();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getIcon();
+ } else {
+ return ((Label)figure).getIcon();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelIconHelper(IFigure figure, Image icon) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setIcon(icon);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setIcon(icon);
+ } else {
+ ((Label)figure).setIcon(icon);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabel(IFigure figure) {
+ unregisterVisuals();
+ setFigure(figure);
+ defaultText = getLabelTextHelper(figure);
+ registerVisuals();
+ refreshVisuals();
+ }
+
+ /**
+ * @generated
+ */
+ protected List getModelChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject getParserElement() {
+ return resolveSemanticElement();
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIcon() {
+ EObject parserElement = getParserElement();
+ if(parserElement == null) {
+ return null;
+ }
+
+ List<View> views = DiagramEditPartsUtil.findViews(parserElement, getViewer());
+ for(View view : views) {
+ if(NameLabelIconHelper.showLabelIcon(view)) {
+ return UMLElementTypes.getImage(parserElement.eClass());
+ }
+ }
+ return null;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelText() {
+ String text = null;
+ EObject parserElement = getParserElement();
+ if(parserElement != null && getParser() != null) {
+ text = getParser().getPrintString(new EObjectAdapter(parserElement), getParserOptions().intValue());
+ }
+ if(text == null || text.length() == 0) {
+ text = defaultText;
+ }
+ return text;
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabelText(String text) {
+ setLabelTextHelper(getFigure(), text);
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public String getEditText() {
+ if(getParserElement() == null || getParser() == null) {
+ return ""; //$NON-NLS-1$
+ }
+ return getParser().getEditString(new EObjectAdapter(getParserElement()), getParserOptions().intValue());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean isEditable() {
+ return getParser() != null;
+ }
+
+ /**
+ * @generated
+ */
+ public ICellEditorValidator getEditTextValidator() {
+ return new ICellEditorValidator() {
+
+ public String isValid(final Object value) {
+ if(value instanceof String) {
+ final EObject element = getParserElement();
+ final IParser parser = getParser();
+ try {
+ IParserEditStatus valid = (IParserEditStatus)getEditingDomain().runExclusive(new RunnableWithResult.Impl() {
+
+ public void run() {
+ setResult(parser.isValidEditString(new EObjectAdapter(element), (String)value));
+ }
+ });
+ return valid.getCode() == ParserEditStatus.EDITABLE ? null : valid.getMessage();
+ } catch (InterruptedException ie) {
+ ie.printStackTrace();
+ }
+ }
+
+ // shouldn't get here
+ return null;
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ public IContentAssistProcessor getCompletionProcessor() {
+ if(getParserElement() == null || getParser() == null) {
+ return null;
+ }
+ return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
+ }
+
+ /**
+ * @generated
+ */
+ public ParserOptions getParserOptions() {
+ return ParserOptions.NONE;
+ }
+
+ /**
+ * @generated
+ */
+ public IParser getParser() {
+ if(parser == null) {
+ parser = UMLParserProvider.getParser(UMLElementTypes.FunctionBehavior_3107, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.diagram.composite.edit.parts.FunctionBehaviorEditPartCLN.VISUAL_ID));
+ }
+ return parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected DirectEditManager getManager() {
+ if(manager == null) {
+ setManager(new MultilineLabelDirectEditManager(this, MultilineLabelDirectEditManager.getTextCellEditorClass(this), UMLEditPartFactory.getTextCellEditorLocator(this)));
+ }
+ return manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setManager(DirectEditManager manager) {
+ this.manager = manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit() {
+ getManager().show();
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit(Point eventLocation) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(eventLocation.getSWTPoint());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void performDirectEdit(char initialCharacter) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(initialCharacter);
+ } else {
+ performDirectEdit();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEditRequest(Request request) {
+
+ final Request theRequest = request;
+
+ if(IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
+ directEditionMode = getDirectEditionType();
+ }
+ switch(directEditionMode) {
+ case IDirectEdition.NO_DIRECT_EDITION:
+ // no direct edition mode => does nothing
+ return;
+ case IDirectEdition.EXTENDED_DIRECT_EDITOR:
+ updateExtendedEditorConfiguration();
+ if(configuration == null || configuration.getLanguage() == null) {
+ performDefaultDirectEditorEdit(theRequest);
+ } else {
+ configuration.preEditAction(resolveSemanticElement());
+ Dialog dialog = null;
+ if(configuration instanceof IPopupEditorConfiguration) {
+ IPopupEditorHelper helper = ((IPopupEditorConfiguration)configuration).createPopupEditorHelper(this);
+ helper.showEditor();
+ return;
+ } else if(configuration instanceof IAdvancedEditorConfiguration) {
+ dialog = ((IAdvancedEditorConfiguration)configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
+ } else if(configuration instanceof IDirectEditorConfiguration) {
+ dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), ((IDirectEditorConfiguration)configuration).getTextToEdit(resolveSemanticElement()), (IDirectEditorConfiguration)configuration);
+ } else {
+ return;
+ }
+ final Dialog finalDialog = dialog;
+
+ if(Window.OK == dialog.open()) {
+ TransactionalEditingDomain domain = getEditingDomain();
+ RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
+
+ @Override
+ protected void doExecute() {
+ configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog)finalDialog).getValue());
+
+ }
+ };
+ domain.getCommandStack().execute(command);
+ }
+ }
+ break;
+ case IDirectEdition.DEFAULT_DIRECT_EDITOR:
+
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ break;
+ default:
+ break;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshLabel();
+ refreshFont();
+ refreshFontColor();
+ refreshUnderline();
+ refreshStrikeThrough();
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshLabel() {
+ EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
+ if(maskLabelPolicy == null) {
+ setLabelTextHelper(getFigure(), getLabelText());
+ setLabelIconHelper(getFigure(), getLabelIcon());
+ }
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshUnderline() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextUnderline(style.isUnderline());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshStrikeThrough() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextStrikeThrough(style.isStrikeThrough());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshFont() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null) {
+ FontData fontData = new FontData(style.getFontName(), style.getFontHeight(), (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
+ setFont(fontData);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setFontColor(Color color) {
+ getFigure().setForegroundColor(color);
+ }
+
+ /**
+ * @generated
+ */
+ protected void addSemanticListeners() {
+ if(getParser() instanceof ISemanticParser) {
+ EObject element = resolveSemanticElement();
+ parserElements = ((ISemanticParser)getParser()).getSemanticElementsBeingParsed(element);
+ for(int i = 0; i < parserElements.size(); i++) {
+ addListenerFilter("SemanticModel" + i, this, (EObject)parserElements.get(i)); //$NON-NLS-1$
+ }
+ } else {
+ super.addSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeSemanticListeners() {
+ if(parserElements != null) {
+ for(int i = 0; i < parserElements.size(); i++) {
+ removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
+ }
+ } else {
+ super.removeSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected AccessibleEditPart getAccessibleEditPart() {
+ if(accessibleEP == null) {
+ accessibleEP = new AccessibleGraphicalEditPart() {
+
+ public void getName(AccessibleEvent e) {
+ e.result = getLabelTextHelper(getFigure());
+ }
+ };
+ }
+ return accessibleEP;
+ }
+
+ /**
+ * @generated
+ */
+ private View getFontStyleOwnerView() {
+ return getPrimaryView();
+ }
+
+ /**
+ * Returns the kind of associated editor for direct edition.
+ *
+ * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition
+ * @generated
+ */
+ public int getDirectEditionType() {
+ if(checkExtendedEditor()) {
+ initExtendedEditorConfiguration();
+ return IDirectEdition.EXTENDED_DIRECT_EDITOR;
+ }
+ if(checkDefaultEdition()) {
+ return IDirectEdition.DEFAULT_DIRECT_EDITOR;
+ }
+
+ // not a named element. no specific editor => do nothing
+ return IDirectEdition.NO_DIRECT_EDITION;
+ }
+
+ /**
+ * Checks if an extended editor is present.
+ *
+ * @return <code>true</code> if an extended editor is present.
+ * @generated
+ */
+ protected boolean checkExtendedEditor() {
+ if(resolveSemanticElement() != null) {
+ return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ return false;
+ }
+
+ /**
+ * Checks if a default direct edition is available
+ *
+ * @return <code>true</code> if a default direct edition is available
+ * @generated
+ */
+ protected boolean checkDefaultEdition() {
+ return (getParser() != null);
+ }
+
+ /**
+ * Initializes the extended editor configuration
+ *
+ * @generated
+ */
+ protected void initExtendedEditorConfiguration() {
+ if(configuration == null) {
+ final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("")) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else {
+ configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ }
+ }
+
+ /**
+ * Updates the preference configuration
+ *
+ * @generated
+ */
+ protected void updateExtendedEditorConfiguration() {
+ String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("") && languagePreferred != configuration.getLanguage()) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else if(IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
+ configuration = null;
+ }
+ }
+
+ /**
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
+ protected void performDefaultDirectEditorEdit(final Request theRequest) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void addNotationalListeners() {
+ super.addNotationalListeners();
+ addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeNotationalListeners() {
+ super.removeNotationalListeners();
+ removeListenerFilter("PrimaryView"); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void handleNotificationEvent(Notification event) {
+ Object feature = event.getFeature();
+ if(NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
+ Integer c = (Integer)event.getNewValue();
+ setFontColor(DiagramColorRegistry.getInstance().getColor(c));
+ } else if(NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
+ refreshUnderline();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
+ refreshStrikeThrough();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
+ refreshFont();
+ } else {
+ if(getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
+ refreshLabel();
+ }
+ if(getParser() instanceof ISemanticParser) {
+ ISemanticParser modelParser = (ISemanticParser)getParser();
+ if(modelParser.areSemanticElementsAffected(null, event)) {
+ removeSemanticListeners();
+ if(resolveSemanticElement() != null) {
+ addSemanticListeners();
+ }
+ refreshLabel();
+ }
+ }
+ }
+ if(event.getNewValue() instanceof EAnnotation && VisualInformationPapyrusConstant.DISPLAY_NAMELABELICON.equals(((EAnnotation)event.getNewValue()).getSource())) {
+ refreshLabel();
+ }
+ super.handleNotificationEvent(event);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createFigure() {
+ IFigure label = createFigurePrim();
+ defaultText = getLabelTextHelper(label);
+ return label;
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createFigurePrim() {
+ return new WrappingLabel();
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/GeneralizationAppliedStereotypeEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/GeneralizationAppliedStereotypeEditPart.java
new file mode 100644
index 00000000000..a8d915016de
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/GeneralizationAppliedStereotypeEditPart.java
@@ -0,0 +1,742 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.ConnectionLocator;
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.emf.transaction.RunnableWithResult;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.AccessibleEditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.requests.DirectEditRequest;
+import org.eclipse.gef.tools.DirectEditManager;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.LabelEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
+import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
+import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
+import org.eclipse.gmf.runtime.notation.FontStyle;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
+import org.eclipse.jface.viewers.ICellEditorValidator;
+import org.eclipse.jface.window.Window;
+import org.eclipse.papyrus.diagram.common.directedit.MultilineLabelDirectEditManager;
+import org.eclipse.papyrus.diagram.common.editparts.ILabelRoleProvider;
+import org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition;
+import org.eclipse.papyrus.diagram.common.editpolicies.IMaskManagedLabelEditPolicy;
+import org.eclipse.papyrus.diagram.common.figure.node.ILabelFigure;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLTextSelectionEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.diagram.composite.providers.UMLParserProvider;
+import org.eclipse.papyrus.extensionpoints.editors.Activator;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
+import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
+import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.AccessibleEvent;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.FontData;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.ui.PlatformUI;
+
+/**
+ * @generated
+ */
+public class GeneralizationAppliedStereotypeEditPart extends LabelEditPart implements ITextAwareEditPart
+
+, ILabelRoleProvider
+
+{
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 6024;
+
+ /**
+ * @generated
+ */
+ private DirectEditManager manager;
+
+ /**
+ * @generated
+ */
+ private IParser parser;
+
+ /**
+ * @generated
+ */
+ private List<?> parserElements;
+
+ /**
+ * @generated
+ */
+ private String defaultText;
+
+ /**
+ * direct edition mode (default, undefined, registered editor, etc.)
+ *
+ * @generated
+ */
+ protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
+
+ /**
+ * configuration from a registered edit dialog
+ *
+ * @generated
+ */
+ protected IDirectEditorConfiguration configuration;
+
+ /**
+ * @generated
+ */
+ static {
+ registerSnapBackPosition(UMLVisualIDRegistry.getType(org.eclipse.papyrus.diagram.composite.edit.parts.GeneralizationAppliedStereotypeEditPart.VISUAL_ID), new Point(0, 60));
+ }
+
+ /**
+ * @generated
+ */
+ public GeneralizationAppliedStereotypeEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
+ installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new CompositeStructureDiagramEditPart.LinkLabelDragPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ public int getKeyPoint() {
+ return ConnectionLocator.MIDDLE;
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelTextHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getText();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getText();
+ } else {
+ return ((Label)figure).getText();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelTextHelper(IFigure figure, String text) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setText(text);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setText(text);
+ } else {
+ ((Label)figure).setText(text);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIconHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getIcon();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getIcon();
+ } else {
+ return ((Label)figure).getIcon();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelIconHelper(IFigure figure, Image icon) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setIcon(icon);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setIcon(icon);
+ } else {
+ ((Label)figure).setIcon(icon);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabel(WrappingLabel figure) {
+ unregisterVisuals();
+ setFigure(figure);
+ defaultText = getLabelTextHelper(figure);
+ registerVisuals();
+ refreshVisuals();
+ }
+
+ /**
+ * @generated
+ */
+ protected List getModelChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject getParserElement() {
+ return resolveSemanticElement();
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIcon() {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelText() {
+ String text = null;
+ EObject parserElement = getParserElement();
+ if(parserElement != null && getParser() != null) {
+ text = getParser().getPrintString(new EObjectAdapter(parserElement), getParserOptions().intValue());
+ }
+ if(text == null || text.length() == 0) {
+ text = defaultText;
+ }
+ return text;
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabelText(String text) {
+ setLabelTextHelper(getFigure(), text);
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public String getEditText() {
+ if(getParserElement() == null || getParser() == null) {
+ return ""; //$NON-NLS-1$
+ }
+ return getParser().getEditString(new EObjectAdapter(getParserElement()), getParserOptions().intValue());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean isEditable() {
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ public ICellEditorValidator getEditTextValidator() {
+ return new ICellEditorValidator() {
+
+ public String isValid(final Object value) {
+ if(value instanceof String) {
+ final EObject element = getParserElement();
+ final IParser parser = getParser();
+ try {
+ IParserEditStatus valid = (IParserEditStatus)getEditingDomain().runExclusive(new RunnableWithResult.Impl() {
+
+ public void run() {
+ setResult(parser.isValidEditString(new EObjectAdapter(element), (String)value));
+ }
+ });
+ return valid.getCode() == ParserEditStatus.EDITABLE ? null : valid.getMessage();
+ } catch (InterruptedException ie) {
+ ie.printStackTrace();
+ }
+ }
+
+ // shouldn't get here
+ return null;
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ public IContentAssistProcessor getCompletionProcessor() {
+ if(getParserElement() == null || getParser() == null) {
+ return null;
+ }
+ return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
+ }
+
+ /**
+ * @generated
+ */
+ public ParserOptions getParserOptions() {
+ return ParserOptions.NONE;
+ }
+
+ /**
+ * @generated
+ */
+ public IParser getParser() {
+ if(parser == null) {
+ parser = UMLParserProvider.getParser(UMLElementTypes.Generalization_4015, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.diagram.composite.edit.parts.GeneralizationAppliedStereotypeEditPart.VISUAL_ID));
+ }
+ return parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected DirectEditManager getManager() {
+ if(manager == null) {
+ setManager(new MultilineLabelDirectEditManager(this, MultilineLabelDirectEditManager.getTextCellEditorClass(this), UMLEditPartFactory.getTextCellEditorLocator(this)));
+ }
+ return manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setManager(DirectEditManager manager) {
+ this.manager = manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit() {
+ getManager().show();
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit(Point eventLocation) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(eventLocation.getSWTPoint());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void performDirectEdit(char initialCharacter) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(initialCharacter);
+ } else {
+ performDirectEdit();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEditRequest(Request request) {
+
+ final Request theRequest = request;
+
+ if(IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
+ directEditionMode = getDirectEditionType();
+ }
+ switch(directEditionMode) {
+ case IDirectEdition.NO_DIRECT_EDITION:
+ // no direct edition mode => does nothing
+ return;
+ case IDirectEdition.EXTENDED_DIRECT_EDITOR:
+ updateExtendedEditorConfiguration();
+ if(configuration == null || configuration.getLanguage() == null) {
+ performDefaultDirectEditorEdit(theRequest);
+ } else {
+ configuration.preEditAction(resolveSemanticElement());
+ Dialog dialog = null;
+ if(configuration instanceof IPopupEditorConfiguration) {
+ IPopupEditorHelper helper = ((IPopupEditorConfiguration)configuration).createPopupEditorHelper(this);
+ helper.showEditor();
+ return;
+ } else if(configuration instanceof IAdvancedEditorConfiguration) {
+ dialog = ((IAdvancedEditorConfiguration)configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
+ } else if(configuration instanceof IDirectEditorConfiguration) {
+ dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), ((IDirectEditorConfiguration)configuration).getTextToEdit(resolveSemanticElement()), (IDirectEditorConfiguration)configuration);
+ } else {
+ return;
+ }
+ final Dialog finalDialog = dialog;
+
+ if(Window.OK == dialog.open()) {
+ TransactionalEditingDomain domain = getEditingDomain();
+ RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
+
+ @Override
+ protected void doExecute() {
+ configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog)finalDialog).getValue());
+
+ }
+ };
+ domain.getCommandStack().execute(command);
+ }
+ }
+ break;
+ case IDirectEdition.DEFAULT_DIRECT_EDITOR:
+
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ break;
+ default:
+ break;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshLabel();
+ refreshFont();
+ refreshFontColor();
+ refreshUnderline();
+ refreshStrikeThrough();
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshLabel() {
+ EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
+ if(maskLabelPolicy == null) {
+ setLabelTextHelper(getFigure(), getLabelText());
+ setLabelIconHelper(getFigure(), getLabelIcon());
+ }
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshUnderline() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextUnderline(style.isUnderline());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshStrikeThrough() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextStrikeThrough(style.isStrikeThrough());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshFont() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null) {
+ FontData fontData = new FontData(style.getFontName(), style.getFontHeight(), (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
+ setFont(fontData);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setFontColor(Color color) {
+ getFigure().setForegroundColor(color);
+ }
+
+ /**
+ * @generated
+ */
+ protected void addSemanticListeners() {
+ if(getParser() instanceof ISemanticParser) {
+ EObject element = resolveSemanticElement();
+ parserElements = ((ISemanticParser)getParser()).getSemanticElementsBeingParsed(element);
+ for(int i = 0; i < parserElements.size(); i++) {
+ addListenerFilter("SemanticModel" + i, this, (EObject)parserElements.get(i)); //$NON-NLS-1$
+ }
+ } else {
+ super.addSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeSemanticListeners() {
+ if(parserElements != null) {
+ for(int i = 0; i < parserElements.size(); i++) {
+ removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
+ }
+ } else {
+ super.removeSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected AccessibleEditPart getAccessibleEditPart() {
+ if(accessibleEP == null) {
+ accessibleEP = new AccessibleGraphicalEditPart() {
+
+ public void getName(AccessibleEvent e) {
+ e.result = getLabelTextHelper(getFigure());
+ }
+ };
+ }
+ return accessibleEP;
+ }
+
+ /**
+ * @generated
+ */
+ private View getFontStyleOwnerView() {
+ return getPrimaryView();
+ }
+
+ /**
+ * Returns the kind of associated editor for direct edition.
+ *
+ * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition
+ * @generated
+ */
+ public int getDirectEditionType() {
+ // The label is read-only (defined in GMFGen model)
+ return IDirectEdition.NO_DIRECT_EDITION;
+ }
+
+ /**
+ * Checks if an extended editor is present.
+ *
+ * @return <code>true</code> if an extended editor is present.
+ * @generated
+ */
+ protected boolean checkExtendedEditor() {
+ if(resolveSemanticElement() != null) {
+ return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ return false;
+ }
+
+ /**
+ * Checks if a default direct edition is available
+ *
+ * @return <code>true</code> if a default direct edition is available
+ * @generated
+ */
+ protected boolean checkDefaultEdition() {
+ return (getParser() != null);
+ }
+
+ /**
+ * Initializes the extended editor configuration
+ *
+ * @generated
+ */
+ protected void initExtendedEditorConfiguration() {
+ if(configuration == null) {
+ final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("")) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else {
+ configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ }
+ }
+
+ /**
+ * Updates the preference configuration
+ *
+ * @generated
+ */
+ protected void updateExtendedEditorConfiguration() {
+ String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("") && languagePreferred != configuration.getLanguage()) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else if(IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
+ configuration = null;
+ }
+ }
+
+ /**
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
+ protected void performDefaultDirectEditorEdit(final Request theRequest) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void handleNotificationEvent(Notification event) {
+ Object feature = event.getFeature();
+ if(NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
+ Integer c = (Integer)event.getNewValue();
+ setFontColor(DiagramColorRegistry.getInstance().getColor(c));
+ } else if(NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
+ refreshUnderline();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
+ refreshStrikeThrough();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
+ refreshFont();
+ } else {
+ if(getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
+ refreshLabel();
+ }
+ if(getParser() instanceof ISemanticParser) {
+ ISemanticParser modelParser = (ISemanticParser)getParser();
+ if(modelParser.areSemanticElementsAffected(null, event)) {
+ removeSemanticListeners();
+ if(resolveSemanticElement() != null) {
+ addSemanticListeners();
+ }
+ refreshLabel();
+ }
+ }
+ }
+
+ super.handleNotificationEvent(event);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createFigure() {
+ // Parent should assign one using setLabel() method
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ public String getLabelRole() {
+ return "Stereotype";//$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ public String getIconPathRole() {
+ return "";//$NON-NLS-1$
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/GeneralizationEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/GeneralizationEditPart.java
new file mode 100644
index 00000000000..0ca207b99c7
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/GeneralizationEditPart.java
@@ -0,0 +1,114 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import org.eclipse.draw2d.Connection;
+import org.eclipse.gef.EditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITreeBranchEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.diagram.common.editparts.UMLConnectionNodeEditPart;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeLinkLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.figure.edge.GeneralizationFigure;
+import org.eclipse.papyrus.diagram.composite.edit.policies.GeneralizationItemSemanticEditPolicy;
+
+/**
+ * @generated
+ */
+public class GeneralizationEditPart extends
+
+UMLConnectionNodeEditPart implements ITreeBranchEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 4015;
+
+ /**
+ * @generated
+ */
+ public GeneralizationEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new GeneralizationItemSemanticEditPolicy());
+ installEditPolicy(AppliedStereotypeLinkLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeLinkLabelDisplayEditPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean addFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof GeneralizationAppliedStereotypeEditPart) {
+ ((GeneralizationAppliedStereotypeEditPart)childEditPart).setLabel(getPrimaryShape().getAppliedStereotypeLabel());
+ return true;
+ }
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected void addChildVisual(EditPart childEditPart, int index) {
+ if(addFixedChild(childEditPart)) {
+ return;
+ }
+ super.addChildVisual(childEditPart, -1);
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean removeFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof GeneralizationAppliedStereotypeEditPart) {
+ return true;
+ }
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeChildVisual(EditPart childEditPart) {
+ if(removeFixedChild(childEditPart)) {
+ return;
+ }
+ super.removeChildVisual(childEditPart);
+ }
+
+ /**
+ * Creates figure for this edit part.
+ *
+ * Body of this method does not depend on settings in generation model
+ * so you may safely remove <i>generated</i> tag and modify it.
+ *
+ * @generated
+ */
+ protected Connection createConnectionFigure() {
+ return new GeneralizationFigure();
+ }
+
+ /**
+ * @generated
+ */
+ public GeneralizationFigure getPrimaryShape() {
+ return (GeneralizationFigure)getFigure();
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/InformationFlowAppliedStereotypeEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/InformationFlowAppliedStereotypeEditPart.java
new file mode 100644
index 00000000000..ad41aa5ef23
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/InformationFlowAppliedStereotypeEditPart.java
@@ -0,0 +1,742 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.ConnectionLocator;
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.emf.transaction.RunnableWithResult;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.AccessibleEditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.requests.DirectEditRequest;
+import org.eclipse.gef.tools.DirectEditManager;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.LabelEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
+import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
+import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
+import org.eclipse.gmf.runtime.notation.FontStyle;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
+import org.eclipse.jface.viewers.ICellEditorValidator;
+import org.eclipse.jface.window.Window;
+import org.eclipse.papyrus.diagram.common.directedit.MultilineLabelDirectEditManager;
+import org.eclipse.papyrus.diagram.common.editparts.ILabelRoleProvider;
+import org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition;
+import org.eclipse.papyrus.diagram.common.editpolicies.IMaskManagedLabelEditPolicy;
+import org.eclipse.papyrus.diagram.common.figure.node.ILabelFigure;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLTextSelectionEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.diagram.composite.providers.UMLParserProvider;
+import org.eclipse.papyrus.extensionpoints.editors.Activator;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
+import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
+import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.AccessibleEvent;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.FontData;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.ui.PlatformUI;
+
+/**
+ * @generated
+ */
+public class InformationFlowAppliedStereotypeEditPart extends LabelEditPart implements ITextAwareEditPart
+
+, ILabelRoleProvider
+
+{
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 6032;
+
+ /**
+ * @generated
+ */
+ private DirectEditManager manager;
+
+ /**
+ * @generated
+ */
+ private IParser parser;
+
+ /**
+ * @generated
+ */
+ private List<?> parserElements;
+
+ /**
+ * @generated
+ */
+ private String defaultText;
+
+ /**
+ * direct edition mode (default, undefined, registered editor, etc.)
+ *
+ * @generated
+ */
+ protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
+
+ /**
+ * configuration from a registered edit dialog
+ *
+ * @generated
+ */
+ protected IDirectEditorConfiguration configuration;
+
+ /**
+ * @generated
+ */
+ static {
+ registerSnapBackPosition(UMLVisualIDRegistry.getType(org.eclipse.papyrus.diagram.composite.edit.parts.InformationFlowAppliedStereotypeEditPart.VISUAL_ID), new Point(0, 15));
+ }
+
+ /**
+ * @generated
+ */
+ public InformationFlowAppliedStereotypeEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
+ installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new CompositeStructureDiagramEditPart.LinkLabelDragPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ public int getKeyPoint() {
+ return ConnectionLocator.MIDDLE;
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelTextHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getText();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getText();
+ } else {
+ return ((Label)figure).getText();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelTextHelper(IFigure figure, String text) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setText(text);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setText(text);
+ } else {
+ ((Label)figure).setText(text);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIconHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getIcon();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getIcon();
+ } else {
+ return ((Label)figure).getIcon();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelIconHelper(IFigure figure, Image icon) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setIcon(icon);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setIcon(icon);
+ } else {
+ ((Label)figure).setIcon(icon);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabel(WrappingLabel figure) {
+ unregisterVisuals();
+ setFigure(figure);
+ defaultText = getLabelTextHelper(figure);
+ registerVisuals();
+ refreshVisuals();
+ }
+
+ /**
+ * @generated
+ */
+ protected List getModelChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject getParserElement() {
+ return resolveSemanticElement();
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIcon() {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelText() {
+ String text = null;
+ EObject parserElement = getParserElement();
+ if(parserElement != null && getParser() != null) {
+ text = getParser().getPrintString(new EObjectAdapter(parserElement), getParserOptions().intValue());
+ }
+ if(text == null || text.length() == 0) {
+ text = defaultText;
+ }
+ return text;
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabelText(String text) {
+ setLabelTextHelper(getFigure(), text);
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public String getEditText() {
+ if(getParserElement() == null || getParser() == null) {
+ return ""; //$NON-NLS-1$
+ }
+ return getParser().getEditString(new EObjectAdapter(getParserElement()), getParserOptions().intValue());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean isEditable() {
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ public ICellEditorValidator getEditTextValidator() {
+ return new ICellEditorValidator() {
+
+ public String isValid(final Object value) {
+ if(value instanceof String) {
+ final EObject element = getParserElement();
+ final IParser parser = getParser();
+ try {
+ IParserEditStatus valid = (IParserEditStatus)getEditingDomain().runExclusive(new RunnableWithResult.Impl() {
+
+ public void run() {
+ setResult(parser.isValidEditString(new EObjectAdapter(element), (String)value));
+ }
+ });
+ return valid.getCode() == ParserEditStatus.EDITABLE ? null : valid.getMessage();
+ } catch (InterruptedException ie) {
+ ie.printStackTrace();
+ }
+ }
+
+ // shouldn't get here
+ return null;
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ public IContentAssistProcessor getCompletionProcessor() {
+ if(getParserElement() == null || getParser() == null) {
+ return null;
+ }
+ return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
+ }
+
+ /**
+ * @generated
+ */
+ public ParserOptions getParserOptions() {
+ return ParserOptions.NONE;
+ }
+
+ /**
+ * @generated
+ */
+ public IParser getParser() {
+ if(parser == null) {
+ parser = UMLParserProvider.getParser(UMLElementTypes.InformationFlow_4021, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.diagram.composite.edit.parts.InformationFlowAppliedStereotypeEditPart.VISUAL_ID));
+ }
+ return parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected DirectEditManager getManager() {
+ if(manager == null) {
+ setManager(new MultilineLabelDirectEditManager(this, MultilineLabelDirectEditManager.getTextCellEditorClass(this), UMLEditPartFactory.getTextCellEditorLocator(this)));
+ }
+ return manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setManager(DirectEditManager manager) {
+ this.manager = manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit() {
+ getManager().show();
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit(Point eventLocation) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(eventLocation.getSWTPoint());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void performDirectEdit(char initialCharacter) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(initialCharacter);
+ } else {
+ performDirectEdit();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEditRequest(Request request) {
+
+ final Request theRequest = request;
+
+ if(IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
+ directEditionMode = getDirectEditionType();
+ }
+ switch(directEditionMode) {
+ case IDirectEdition.NO_DIRECT_EDITION:
+ // no direct edition mode => does nothing
+ return;
+ case IDirectEdition.EXTENDED_DIRECT_EDITOR:
+ updateExtendedEditorConfiguration();
+ if(configuration == null || configuration.getLanguage() == null) {
+ performDefaultDirectEditorEdit(theRequest);
+ } else {
+ configuration.preEditAction(resolveSemanticElement());
+ Dialog dialog = null;
+ if(configuration instanceof IPopupEditorConfiguration) {
+ IPopupEditorHelper helper = ((IPopupEditorConfiguration)configuration).createPopupEditorHelper(this);
+ helper.showEditor();
+ return;
+ } else if(configuration instanceof IAdvancedEditorConfiguration) {
+ dialog = ((IAdvancedEditorConfiguration)configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
+ } else if(configuration instanceof IDirectEditorConfiguration) {
+ dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), ((IDirectEditorConfiguration)configuration).getTextToEdit(resolveSemanticElement()), (IDirectEditorConfiguration)configuration);
+ } else {
+ return;
+ }
+ final Dialog finalDialog = dialog;
+
+ if(Window.OK == dialog.open()) {
+ TransactionalEditingDomain domain = getEditingDomain();
+ RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
+
+ @Override
+ protected void doExecute() {
+ configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog)finalDialog).getValue());
+
+ }
+ };
+ domain.getCommandStack().execute(command);
+ }
+ }
+ break;
+ case IDirectEdition.DEFAULT_DIRECT_EDITOR:
+
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ break;
+ default:
+ break;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshLabel();
+ refreshFont();
+ refreshFontColor();
+ refreshUnderline();
+ refreshStrikeThrough();
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshLabel() {
+ EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
+ if(maskLabelPolicy == null) {
+ setLabelTextHelper(getFigure(), getLabelText());
+ setLabelIconHelper(getFigure(), getLabelIcon());
+ }
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshUnderline() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextUnderline(style.isUnderline());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshStrikeThrough() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextStrikeThrough(style.isStrikeThrough());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshFont() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null) {
+ FontData fontData = new FontData(style.getFontName(), style.getFontHeight(), (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
+ setFont(fontData);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setFontColor(Color color) {
+ getFigure().setForegroundColor(color);
+ }
+
+ /**
+ * @generated
+ */
+ protected void addSemanticListeners() {
+ if(getParser() instanceof ISemanticParser) {
+ EObject element = resolveSemanticElement();
+ parserElements = ((ISemanticParser)getParser()).getSemanticElementsBeingParsed(element);
+ for(int i = 0; i < parserElements.size(); i++) {
+ addListenerFilter("SemanticModel" + i, this, (EObject)parserElements.get(i)); //$NON-NLS-1$
+ }
+ } else {
+ super.addSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeSemanticListeners() {
+ if(parserElements != null) {
+ for(int i = 0; i < parserElements.size(); i++) {
+ removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
+ }
+ } else {
+ super.removeSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected AccessibleEditPart getAccessibleEditPart() {
+ if(accessibleEP == null) {
+ accessibleEP = new AccessibleGraphicalEditPart() {
+
+ public void getName(AccessibleEvent e) {
+ e.result = getLabelTextHelper(getFigure());
+ }
+ };
+ }
+ return accessibleEP;
+ }
+
+ /**
+ * @generated
+ */
+ private View getFontStyleOwnerView() {
+ return getPrimaryView();
+ }
+
+ /**
+ * Returns the kind of associated editor for direct edition.
+ *
+ * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition
+ * @generated
+ */
+ public int getDirectEditionType() {
+ // The label is read-only (defined in GMFGen model)
+ return IDirectEdition.NO_DIRECT_EDITION;
+ }
+
+ /**
+ * Checks if an extended editor is present.
+ *
+ * @return <code>true</code> if an extended editor is present.
+ * @generated
+ */
+ protected boolean checkExtendedEditor() {
+ if(resolveSemanticElement() != null) {
+ return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ return false;
+ }
+
+ /**
+ * Checks if a default direct edition is available
+ *
+ * @return <code>true</code> if a default direct edition is available
+ * @generated
+ */
+ protected boolean checkDefaultEdition() {
+ return (getParser() != null);
+ }
+
+ /**
+ * Initializes the extended editor configuration
+ *
+ * @generated
+ */
+ protected void initExtendedEditorConfiguration() {
+ if(configuration == null) {
+ final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("")) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else {
+ configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ }
+ }
+
+ /**
+ * Updates the preference configuration
+ *
+ * @generated
+ */
+ protected void updateExtendedEditorConfiguration() {
+ String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("") && languagePreferred != configuration.getLanguage()) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else if(IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
+ configuration = null;
+ }
+ }
+
+ /**
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
+ protected void performDefaultDirectEditorEdit(final Request theRequest) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void handleNotificationEvent(Notification event) {
+ Object feature = event.getFeature();
+ if(NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
+ Integer c = (Integer)event.getNewValue();
+ setFontColor(DiagramColorRegistry.getInstance().getColor(c));
+ } else if(NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
+ refreshUnderline();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
+ refreshStrikeThrough();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
+ refreshFont();
+ } else {
+ if(getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
+ refreshLabel();
+ }
+ if(getParser() instanceof ISemanticParser) {
+ ISemanticParser modelParser = (ISemanticParser)getParser();
+ if(modelParser.areSemanticElementsAffected(null, event)) {
+ removeSemanticListeners();
+ if(resolveSemanticElement() != null) {
+ addSemanticListeners();
+ }
+ refreshLabel();
+ }
+ }
+ }
+
+ super.handleNotificationEvent(event);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createFigure() {
+ // Parent should assign one using setLabel() method
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ public String getLabelRole() {
+ return "Stereotype";//$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ public String getIconPathRole() {
+ return "";//$NON-NLS-1$
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/InformationFlowConveyedLabelEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/InformationFlowConveyedLabelEditPart.java
new file mode 100644
index 00000000000..2c4dc10e361
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/InformationFlowConveyedLabelEditPart.java
@@ -0,0 +1,755 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.ConnectionLocator;
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.emf.transaction.RunnableWithResult;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.AccessibleEditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.requests.DirectEditRequest;
+import org.eclipse.gef.tools.DirectEditManager;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.LabelEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
+import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
+import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
+import org.eclipse.gmf.runtime.notation.FontStyle;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
+import org.eclipse.jface.viewers.ICellEditorValidator;
+import org.eclipse.jface.window.Window;
+import org.eclipse.papyrus.diagram.common.directedit.MultilineLabelDirectEditManager;
+import org.eclipse.papyrus.diagram.common.editparts.ILabelRoleProvider;
+import org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition;
+import org.eclipse.papyrus.diagram.common.editpolicies.IMaskManagedLabelEditPolicy;
+import org.eclipse.papyrus.diagram.common.figure.node.ILabelFigure;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.AbstractCustomLabelEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.InformationFlowCustomLabelEditPolicy;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLTextSelectionEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.diagram.composite.providers.UMLParserProvider;
+import org.eclipse.papyrus.extensionpoints.editors.Activator;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
+import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
+import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.AccessibleEvent;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.FontData;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.ui.PlatformUI;
+
+/**
+ * @generated
+ */
+public class InformationFlowConveyedLabelEditPart extends LabelEditPart implements ITextAwareEditPart
+
+, ILabelRoleProvider
+
+{
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 6031;
+
+ /**
+ * @generated
+ */
+ private DirectEditManager manager;
+
+ /**
+ * @generated
+ */
+ private IParser parser;
+
+ /**
+ * @generated
+ */
+ private List<?> parserElements;
+
+ /**
+ * @generated
+ */
+ private String defaultText;
+
+ /**
+ * direct edition mode (default, undefined, registered editor, etc.)
+ *
+ * @generated
+ */
+ protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
+
+ /**
+ * configuration from a registered edit dialog
+ *
+ * @generated
+ */
+ protected IDirectEditorConfiguration configuration;
+
+ /**
+ * @generated
+ */
+ static {
+ registerSnapBackPosition(UMLVisualIDRegistry.getType(org.eclipse.papyrus.diagram.composite.edit.parts.InformationFlowConveyedLabelEditPart.VISUAL_ID), new Point(0, 30));
+ }
+
+ /**
+ * @generated
+ */
+ public InformationFlowConveyedLabelEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
+ installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new CompositeStructureDiagramEditPart.LinkLabelDragPolicy());
+ installEditPolicy(AbstractCustomLabelEditPolicy.SPECIFIC_NAME_LABEL_POLICY, new InformationFlowCustomLabelEditPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ public int getKeyPoint() {
+ return ConnectionLocator.MIDDLE;
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelTextHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getText();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getText();
+ } else {
+ return ((Label)figure).getText();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelTextHelper(IFigure figure, String text) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setText(text);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setText(text);
+ } else {
+ ((Label)figure).setText(text);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIconHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getIcon();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getIcon();
+ } else {
+ return ((Label)figure).getIcon();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelIconHelper(IFigure figure, Image icon) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setIcon(icon);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setIcon(icon);
+ } else {
+ ((Label)figure).setIcon(icon);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabel(WrappingLabel figure) {
+ unregisterVisuals();
+ setFigure(figure);
+ defaultText = getLabelTextHelper(figure);
+ registerVisuals();
+ refreshVisuals();
+ }
+
+ /**
+ * @generated
+ */
+ protected List getModelChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject getParserElement() {
+
+ EObject element = resolveSemanticElement();
+ return element != null ? element : (View)getModel();
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIcon() {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelText() {
+ String text = null;
+ EObject parserElement = getParserElement();
+ if(parserElement != null && getParser() != null) {
+ text = getParser().getPrintString(new EObjectAdapter(parserElement), getParserOptions().intValue());
+ }
+ if(text == null || text.length() == 0) {
+ text = defaultText;
+ }
+ return text;
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabelText(String text) {
+ setLabelTextHelper(getFigure(), text);
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public String getEditText() {
+ if(getParserElement() == null || getParser() == null) {
+ return ""; //$NON-NLS-1$
+ }
+ return getParser().getEditString(new EObjectAdapter(getParserElement()), getParserOptions().intValue());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean isEditable() {
+ return getParser() != null;
+ }
+
+ /**
+ * @generated
+ */
+ public ICellEditorValidator getEditTextValidator() {
+ return new ICellEditorValidator() {
+
+ public String isValid(final Object value) {
+ if(value instanceof String) {
+ final EObject element = getParserElement();
+ final IParser parser = getParser();
+ try {
+ IParserEditStatus valid = (IParserEditStatus)getEditingDomain().runExclusive(new RunnableWithResult.Impl() {
+
+ public void run() {
+ setResult(parser.isValidEditString(new EObjectAdapter(element), (String)value));
+ }
+ });
+ return valid.getCode() == ParserEditStatus.EDITABLE ? null : valid.getMessage();
+ } catch (InterruptedException ie) {
+ ie.printStackTrace();
+ }
+ }
+
+ // shouldn't get here
+ return null;
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ public IContentAssistProcessor getCompletionProcessor() {
+ if(getParserElement() == null || getParser() == null) {
+ return null;
+ }
+ return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
+ }
+
+ /**
+ * @generated
+ */
+ public ParserOptions getParserOptions() {
+ return ParserOptions.NONE;
+ }
+
+ /**
+ * @generated
+ */
+ public IParser getParser() {
+ if(parser == null) {
+ parser = UMLParserProvider.getParser(UMLElementTypes.InformationFlow_4021, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.diagram.composite.edit.parts.InformationFlowConveyedLabelEditPart.VISUAL_ID));
+ }
+ return parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected DirectEditManager getManager() {
+ if(manager == null) {
+ setManager(new MultilineLabelDirectEditManager(this, MultilineLabelDirectEditManager.getTextCellEditorClass(this), UMLEditPartFactory.getTextCellEditorLocator(this)));
+ }
+ return manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setManager(DirectEditManager manager) {
+ this.manager = manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit() {
+ getManager().show();
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit(Point eventLocation) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(eventLocation.getSWTPoint());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void performDirectEdit(char initialCharacter) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(initialCharacter);
+ } else {
+ performDirectEdit();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEditRequest(Request request) {
+
+ final Request theRequest = request;
+
+ if(IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
+ directEditionMode = getDirectEditionType();
+ }
+ switch(directEditionMode) {
+ case IDirectEdition.NO_DIRECT_EDITION:
+ // no direct edition mode => does nothing
+ return;
+ case IDirectEdition.EXTENDED_DIRECT_EDITOR:
+ updateExtendedEditorConfiguration();
+ if(configuration == null || configuration.getLanguage() == null) {
+ performDefaultDirectEditorEdit(theRequest);
+ } else {
+ configuration.preEditAction(resolveSemanticElement());
+ Dialog dialog = null;
+ if(configuration instanceof IPopupEditorConfiguration) {
+ IPopupEditorHelper helper = ((IPopupEditorConfiguration)configuration).createPopupEditorHelper(this);
+ helper.showEditor();
+ return;
+ } else if(configuration instanceof IAdvancedEditorConfiguration) {
+ dialog = ((IAdvancedEditorConfiguration)configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
+ } else if(configuration instanceof IDirectEditorConfiguration) {
+ dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), ((IDirectEditorConfiguration)configuration).getTextToEdit(resolveSemanticElement()), (IDirectEditorConfiguration)configuration);
+ } else {
+ return;
+ }
+ final Dialog finalDialog = dialog;
+
+ if(Window.OK == dialog.open()) {
+ TransactionalEditingDomain domain = getEditingDomain();
+ RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
+
+ @Override
+ protected void doExecute() {
+ configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog)finalDialog).getValue());
+
+ }
+ };
+ domain.getCommandStack().execute(command);
+ }
+ }
+ break;
+ case IDirectEdition.DEFAULT_DIRECT_EDITOR:
+
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ break;
+ default:
+ break;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshLabel();
+ refreshFont();
+ refreshFontColor();
+ refreshUnderline();
+ refreshStrikeThrough();
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshLabel() {
+ EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
+ if(maskLabelPolicy == null) {
+ setLabelTextHelper(getFigure(), getLabelText());
+ setLabelIconHelper(getFigure(), getLabelIcon());
+ }
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshUnderline() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextUnderline(style.isUnderline());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshStrikeThrough() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextStrikeThrough(style.isStrikeThrough());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshFont() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null) {
+ FontData fontData = new FontData(style.getFontName(), style.getFontHeight(), (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
+ setFont(fontData);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setFontColor(Color color) {
+ getFigure().setForegroundColor(color);
+ }
+
+ /**
+ * @generated
+ */
+ protected void addSemanticListeners() {
+ if(getParser() instanceof ISemanticParser) {
+ EObject element = resolveSemanticElement();
+ parserElements = ((ISemanticParser)getParser()).getSemanticElementsBeingParsed(element);
+ for(int i = 0; i < parserElements.size(); i++) {
+ addListenerFilter("SemanticModel" + i, this, (EObject)parserElements.get(i)); //$NON-NLS-1$
+ }
+ } else {
+ super.addSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeSemanticListeners() {
+ if(parserElements != null) {
+ for(int i = 0; i < parserElements.size(); i++) {
+ removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
+ }
+ } else {
+ super.removeSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected AccessibleEditPart getAccessibleEditPart() {
+ if(accessibleEP == null) {
+ accessibleEP = new AccessibleGraphicalEditPart() {
+
+ public void getName(AccessibleEvent e) {
+ e.result = getLabelTextHelper(getFigure());
+ }
+ };
+ }
+ return accessibleEP;
+ }
+
+ /**
+ * @generated
+ */
+ private View getFontStyleOwnerView() {
+ return getPrimaryView();
+ }
+
+ /**
+ * Returns the kind of associated editor for direct edition.
+ *
+ * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition
+ * @generated
+ */
+ public int getDirectEditionType() {
+ if(checkExtendedEditor()) {
+ initExtendedEditorConfiguration();
+ return IDirectEdition.EXTENDED_DIRECT_EDITOR;
+ }
+ if(checkDefaultEdition()) {
+ return IDirectEdition.DEFAULT_DIRECT_EDITOR;
+ }
+
+ // not a named element. no specific editor => do nothing
+ return IDirectEdition.NO_DIRECT_EDITION;
+ }
+
+ /**
+ * Checks if an extended editor is present.
+ *
+ * @return <code>true</code> if an extended editor is present.
+ * @generated
+ */
+ protected boolean checkExtendedEditor() {
+ if(resolveSemanticElement() != null) {
+ return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ return false;
+ }
+
+ /**
+ * Checks if a default direct edition is available
+ *
+ * @return <code>true</code> if a default direct edition is available
+ * @generated
+ */
+ protected boolean checkDefaultEdition() {
+ return (getParser() != null);
+ }
+
+ /**
+ * Initializes the extended editor configuration
+ *
+ * @generated
+ */
+ protected void initExtendedEditorConfiguration() {
+ if(configuration == null) {
+ final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("")) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else {
+ configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ }
+ }
+
+ /**
+ * Updates the preference configuration
+ *
+ * @generated
+ */
+ protected void updateExtendedEditorConfiguration() {
+ String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("") && languagePreferred != configuration.getLanguage()) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else if(IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
+ configuration = null;
+ }
+ }
+
+ /**
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
+ protected void performDefaultDirectEditorEdit(final Request theRequest) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void handleNotificationEvent(Notification event) {
+ Object feature = event.getFeature();
+ if(NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
+ Integer c = (Integer)event.getNewValue();
+ setFontColor(DiagramColorRegistry.getInstance().getColor(c));
+ } else if(NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
+ refreshUnderline();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
+ refreshStrikeThrough();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
+ refreshFont();
+ } else {
+ if(getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
+ refreshLabel();
+ }
+ if(getParser() instanceof ISemanticParser) {
+ ISemanticParser modelParser = (ISemanticParser)getParser();
+ if(modelParser.areSemanticElementsAffected(null, event)) {
+ removeSemanticListeners();
+ if(resolveSemanticElement() != null) {
+ addSemanticListeners();
+ }
+ refreshLabel();
+ }
+ }
+ }
+
+ super.handleNotificationEvent(event);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createFigure() {
+ // Parent should assign one using setLabel() method
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ public String getLabelRole() {
+ return "ConveyedElements";//$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ public String getIconPathRole() {
+ return "";//$NON-NLS-1$
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/InformationFlowEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/InformationFlowEditPart.java
new file mode 100644
index 00000000000..fca09dd136c
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/InformationFlowEditPart.java
@@ -0,0 +1,122 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import org.eclipse.draw2d.Connection;
+import org.eclipse.gef.EditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITreeBranchEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.diagram.common.editparts.UMLConnectionNodeEditPart;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeInformationFlowLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeLinkLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.figures.InformationFlowFigure;
+import org.eclipse.papyrus.diagram.composite.edit.policies.InformationFlowItemSemanticEditPolicy;
+
+/**
+ * @generated
+ */
+public class InformationFlowEditPart extends
+
+UMLConnectionNodeEditPart implements ITreeBranchEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 4021;
+
+ /**
+ * @generated
+ */
+ public InformationFlowEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new InformationFlowItemSemanticEditPolicy());
+ installEditPolicy(AppliedStereotypeLinkLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeInformationFlowLabelDisplayEditPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean addFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof InformationFlowConveyedLabelEditPart) {
+ ((InformationFlowConveyedLabelEditPart)childEditPart).setLabel(getPrimaryShape().getConveyedLabel());
+ return true;
+ }
+ if(childEditPart instanceof InformationFlowAppliedStereotypeEditPart) {
+ ((InformationFlowAppliedStereotypeEditPart)childEditPart).setLabel(getPrimaryShape().getAppliedStereotypeLabel());
+ return true;
+ }
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected void addChildVisual(EditPart childEditPart, int index) {
+ if(addFixedChild(childEditPart)) {
+ return;
+ }
+ super.addChildVisual(childEditPart, -1);
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean removeFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof InformationFlowConveyedLabelEditPart) {
+ return true;
+ }
+ if(childEditPart instanceof InformationFlowAppliedStereotypeEditPart) {
+ return true;
+ }
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeChildVisual(EditPart childEditPart) {
+ if(removeFixedChild(childEditPart)) {
+ return;
+ }
+ super.removeChildVisual(childEditPart);
+ }
+
+ /**
+ * Creates figure for this edit part.
+ *
+ * Body of this method does not depend on settings in generation model
+ * so you may safely remove <i>generated</i> tag and modify it.
+ *
+ * @generated
+ */
+ protected Connection createConnectionFigure() {
+ return new InformationFlowFigure();
+ }
+
+ /**
+ * @generated
+ */
+ public InformationFlowFigure getPrimaryShape() {
+ return (InformationFlowFigure)getFigure();
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/InformationItemEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/InformationItemEditPart.java
new file mode 100644
index 00000000000..55c251e7d4f
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/InformationItemEditPart.java
@@ -0,0 +1,5514 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.ArrayList;
+import java.util.LinkedList;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Shape;
+import org.eclipse.draw2d.StackLayout;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EStructuralFeature;
+import org.eclipse.gef.EditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.editpolicies.LayoutEditPolicy;
+import org.eclipse.gef.editpolicies.NonResizableEditPolicy;
+import org.eclipse.gef.requests.CreateRequest;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.FigureUtilities;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.gef.ui.figures.DefaultSizeNodeFigure;
+import org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.jface.preference.PreferenceConverter;
+import org.eclipse.papyrus.diagram.common.editparts.NamedElementEditPart;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.HyperLinkPopupBarEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.QualifiedNameDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.helper.PreferenceInitializerForElementHelper;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.CustomDiagramDragDropEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.figures.InformationItemFigure;
+import org.eclipse.papyrus.diagram.composite.edit.policies.InformationItemItemSemanticEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorPlugin;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter;
+import org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper;
+import org.eclipse.swt.graphics.Color;
+
+/**
+ * @generated
+ */
+public class InformationItemEditPart extends
+
+NamedElementEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 2080;
+
+ /**
+ * @generated
+ */
+ protected IFigure contentPane;
+
+ /**
+ * @generated
+ */
+ protected IFigure primaryShape;
+
+ /**
+ * @generated
+ */
+ public InformationItemEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new InformationItemItemSemanticEditPolicy());
+ installEditPolicy(EditPolicy.LAYOUT_ROLE, createLayoutEditPolicy());
+ installEditPolicy(QualifiedNameDisplayEditPolicy.QUALIFIED_NAME_POLICY, new QualifiedNameDisplayEditPolicy());
+ installEditPolicy(AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeNodeLabelDisplayEditPolicy());
+ installEditPolicy(EditPolicyRoles.POPUPBAR_ROLE, new HyperLinkPopupBarEditPolicy());
+ installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new CustomDiagramDragDropEditPolicy());
+ // XXX need an SCR to runtime to have another abstract superclass that would let children add reasonable editpolicies
+ // removeEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CONNECTION_HANDLES_ROLE);
+ }
+
+ /**
+ * Papyrus codeGen
+ *
+ * @generated
+ **/
+ protected void handleNotificationEvent(Notification event) {
+ super.handleNotificationEvent(event);
+
+ }
+
+ /**
+ * @generated
+ */
+ protected LayoutEditPolicy createLayoutEditPolicy() {
+ org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy lep = new org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy() {
+
+ protected EditPolicy createChildEditPolicy(EditPart child) {
+ EditPolicy result = child.getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(result == null) {
+ result = new NonResizableEditPolicy();
+ }
+ return result;
+ }
+
+ protected Command getMoveChildrenCommand(Request request) {
+ return null;
+ }
+
+ protected Command getCreateCommand(CreateRequest request) {
+ return null;
+ }
+ };
+ return lep;
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createNodeShape() {
+ return primaryShape = new InformationItemFigure();
+ }
+
+ /**
+ * @generated
+ */
+ public InformationItemFigure getPrimaryShape() {
+ return (InformationItemFigure)primaryShape;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean addFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof InformationItemNameEditPart) {
+ ((InformationItemNameEditPart)childEditPart).setLabel(getPrimaryShape().getNameLabel());
+ return true;
+ }
+
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean removeFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof InformationItemNameEditPart) {
+ return true;
+ }
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected void addChildVisual(EditPart childEditPart, int index) {
+ if(addFixedChild(childEditPart)) {
+ return;
+ }
+ super.addChildVisual(childEditPart, -1);
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeChildVisual(EditPart childEditPart) {
+ if(removeFixedChild(childEditPart)) {
+ return;
+ }
+ super.removeChildVisual(childEditPart);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure getContentPaneFor(IGraphicalEditPart editPart) {
+ return getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ protected NodeFigure createNodePlate() {
+ String prefElementId = "InformationItem";
+ IPreferenceStore store = UMLDiagramEditorPlugin.getInstance().getPreferenceStore();
+ String preferenceConstantWitdh = PreferenceInitializerForElementHelper.getpreferenceKey(getNotationView(), prefElementId, PreferenceConstantHelper.WIDTH);
+ String preferenceConstantHeight = PreferenceInitializerForElementHelper.getpreferenceKey(getNotationView(), prefElementId, PreferenceConstantHelper.HEIGHT);
+ DefaultSizeNodeFigure result = new DefaultSizeNodeFigure(store.getInt(preferenceConstantWitdh), store.getInt(preferenceConstantHeight));
+
+ return result;
+ }
+
+ /**
+ * Creates figure for this edit part.
+ *
+ * Body of this method does not depend on settings in generation model
+ * so you may safely remove <i>generated</i> tag and modify it.
+ *
+ * @generated
+ */
+ protected NodeFigure createNodeFigure() {
+ NodeFigure figure = createNodePlate();
+ figure.setLayoutManager(new StackLayout());
+ IFigure shape = createNodeShape();
+ figure.add(shape);
+ contentPane = setupContentPane(shape);
+ return figure;
+ }
+
+ /**
+ * Default implementation treats passed figure as content pane.
+ * Respects layout one may have set for generated figure.
+ *
+ * @param nodeShape
+ * instance of generated figure class
+ * @generated
+ */
+ protected IFigure setupContentPane(IFigure nodeShape) {
+ if(nodeShape.getLayoutManager() == null) {
+ ConstrainedToolbarLayout layout = new ConstrainedToolbarLayout();
+ layout.setSpacing(5);
+ nodeShape.setLayoutManager(layout);
+ }
+ return nodeShape; // use nodeShape itself as contentPane
+ }
+
+ /**
+ * @generated
+ */
+ public IFigure getContentPane() {
+ if(contentPane != null) {
+ return contentPane;
+ }
+ return super.getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ protected void setForegroundColor(Color color) {
+ if(primaryShape != null) {
+ primaryShape.setForegroundColor(color);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLineWidth(int width) {
+ if(primaryShape instanceof Shape) {
+ ((Shape)primaryShape).setLineWidth(width);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLineType(int style) {
+ if(primaryShape instanceof Shape) {
+ ((Shape)primaryShape).setLineStyle(style);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public EditPart getPrimaryChildEditPart() {
+ return getChildBySemanticHint(UMLVisualIDRegistry.getType(InformationItemNameEditPart.VISUAL_ID));
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnSource() {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(13);
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ types.add(UMLElementTypes.Substitution_4011);
+ types.add(UMLElementTypes.Realization_4006);
+ types.add(UMLElementTypes.Manifestation_4012);
+ types.add(UMLElementTypes.Abstraction_4007);
+ types.add(UMLElementTypes.Usage_4008);
+ types.add(UMLElementTypes.Deployment_4009);
+ types.add(UMLElementTypes.Dependency_4017);
+ types.add(UMLElementTypes.Dependency_4010);
+ types.add(UMLElementTypes.Generalization_4015);
+ types.add(UMLElementTypes.InformationItemRepresented_4020);
+ types.add(UMLElementTypes.InformationFlow_4021);
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnSourceAndTarget(IGraphicalEditPart targetEditPart) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.InformationItemEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.InformationItemEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.InformationItemEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.InformationItemEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.InformationItemEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.InformationItemEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.InformationItemEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.InformationItemEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.InformationItemEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.InformationItemEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.InformationItemEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.InformationItemRepresented_4020);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.InformationItemRepresented_4020);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InformationItemRepresented_4020);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InformationItemRepresented_4020);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InformationItemRepresented_4020);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InformationItemRepresented_4020);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.InformationItemRepresented_4020);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.InformationItemRepresented_4020);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.InformationItemRepresented_4020);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.InformationItemRepresented_4020);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.InformationItemRepresented_4020);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.InformationItemRepresented_4020);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.InformationItemRepresented_4020);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.InformationItemRepresented_4020);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.InformationItemRepresented_4020);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.InformationItemRepresented_4020);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.InformationItemRepresented_4020);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.InformationItemRepresented_4020);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.InformationItemRepresented_4020);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.InformationItemEditPart) {
+ types.add(UMLElementTypes.InformationItemRepresented_4020);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.InformationItemRepresented_4020);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.InformationItemRepresented_4020);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationItemRepresented_4020);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationItemRepresented_4020);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationItemRepresented_4020);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationItemRepresented_4020);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationItemRepresented_4020);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationItemRepresented_4020);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationItemRepresented_4020);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationItemRepresented_4020);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationItemRepresented_4020);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationItemRepresented_4020);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationItemRepresented_4020);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationItemRepresented_4020);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.InformationItemRepresented_4020);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.InformationItemRepresented_4020);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.InformationItemRepresented_4020);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.InformationItemRepresented_4020);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.InformationItemRepresented_4020);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.InformationItemRepresented_4020);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.InformationItemRepresented_4020);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.InformationItemRepresented_4020);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.InformationItemRepresented_4020);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.InformationItemRepresented_4020);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.InformationItemEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMATypesForTarget(IElementType relationshipType) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(relationshipType == UMLElementTypes.ComponentRealization_4004) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InterfaceRealization_4005) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Substitution_4011) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Realization_4006) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Manifestation_4012) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Abstraction_4007) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Usage_4008) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Deployment_4009) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4017) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4010) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Generalization_4015) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ } else if(relationshipType == UMLElementTypes.InformationItemRepresented_4020) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ } else if(relationshipType == UMLElementTypes.InformationFlow_4021) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnTarget() {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(17);
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ types.add(UMLElementTypes.Substitution_4011);
+ types.add(UMLElementTypes.Realization_4006);
+ types.add(UMLElementTypes.Manifestation_4012);
+ types.add(UMLElementTypes.Abstraction_4007);
+ types.add(UMLElementTypes.Usage_4008);
+ types.add(UMLElementTypes.Deployment_4009);
+ types.add(UMLElementTypes.Dependency_4017);
+ types.add(UMLElementTypes.Dependency_4010);
+ types.add(UMLElementTypes.Generalization_4015);
+ types.add(UMLElementTypes.TimeObservationEvent_4018);
+ types.add(UMLElementTypes.DurationObservationEvent_4019);
+ types.add(UMLElementTypes.InformationItemRepresented_4020);
+ types.add(UMLElementTypes.InformationFlow_4021);
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMATypesForSource(IElementType relationshipType) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(relationshipType == UMLElementTypes.CommentAnnotatedElement_4002) {
+ types.add(UMLElementTypes.Comment_2109);
+ types.add(UMLElementTypes.Comment_3097);
+ } else if(relationshipType == UMLElementTypes.ConstraintConstrainedElement_4003) {
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.ComponentRealization_4004) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InterfaceRealization_4005) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Substitution_4011) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Realization_4006) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Manifestation_4012) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Abstraction_4007) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Usage_4008) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Deployment_4009) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4017) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4010) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Generalization_4015) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ } else if(relationshipType == UMLElementTypes.TimeObservationEvent_4018) {
+ types.add(UMLElementTypes.TimeObservation_2094);
+ } else if(relationshipType == UMLElementTypes.DurationObservationEvent_4019) {
+ types.add(UMLElementTypes.DurationObservation_2093);
+ } else if(relationshipType == UMLElementTypes.InformationItemRepresented_4020) {
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.InformationItem_3094);
+ } else if(relationshipType == UMLElementTypes.InformationFlow_4021) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public Object getPreferredValue(EStructuralFeature feature) {
+ IPreferenceStore preferenceStore = (IPreferenceStore)getDiagramPreferencesHint().getPreferenceStore();
+ Object result = null;
+
+ if(feature == NotationPackage.eINSTANCE.getLineStyle_LineColor() || feature == NotationPackage.eINSTANCE.getFontStyle_FontColor() || feature == NotationPackage.eINSTANCE.getFillStyle_FillColor()) {
+ String prefColor = null;
+ if(feature == NotationPackage.eINSTANCE.getLineStyle_LineColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("InformationItem", PreferenceConstantHelper.COLOR_LINE);
+ } else if(feature == NotationPackage.eINSTANCE.getFontStyle_FontColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("InformationItem", PreferenceConstantHelper.COLOR_FONT);
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_FillColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("InformationItem", PreferenceConstantHelper.COLOR_FILL);
+ }
+ result = FigureUtilities.RGBToInteger(PreferenceConverter.getColor((IPreferenceStore)preferenceStore, prefColor));
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_Transparency() || feature == NotationPackage.eINSTANCE.getFillStyle_Gradient()) {
+ String prefGradient = PreferenceConstantHelper.getElementConstant("InformationItem", PreferenceConstantHelper.COLOR_GRADIENT);
+ GradientPreferenceConverter gradientPreferenceConverter = new GradientPreferenceConverter(preferenceStore.getString(prefGradient));
+ if(feature == NotationPackage.eINSTANCE.getFillStyle_Transparency()) {
+ result = new Integer(gradientPreferenceConverter.getTransparency());
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_Gradient()) {
+ result = gradientPreferenceConverter.getGradientData();
+ }
+ }
+
+ if(result == null) {
+ result = getStructuralFeatureValue(feature);
+ }
+ return result;
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/InformationItemEditPartCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/InformationItemEditPartCN.java
new file mode 100644
index 00000000000..f2050fae27d
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/InformationItemEditPartCN.java
@@ -0,0 +1,5517 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.ArrayList;
+import java.util.LinkedList;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Shape;
+import org.eclipse.draw2d.StackLayout;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EStructuralFeature;
+import org.eclipse.gef.EditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.editpolicies.LayoutEditPolicy;
+import org.eclipse.gef.editpolicies.NonResizableEditPolicy;
+import org.eclipse.gef.requests.CreateRequest;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.FigureUtilities;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.gef.ui.figures.DefaultSizeNodeFigure;
+import org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.jface.preference.PreferenceConverter;
+import org.eclipse.papyrus.diagram.common.editparts.NamedElementEditPart;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.HyperLinkPopupBarEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.QualifiedNameDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.helper.PreferenceInitializerForElementHelper;
+import org.eclipse.papyrus.diagram.composite.custom.edit.parts.ConstrainedNamedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.CustomDiagramDragDropEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.NoScrollClassifierResizableShapeEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.figures.InformationItemFigure;
+import org.eclipse.papyrus.diagram.composite.edit.policies.InformationItemItemSemanticEditPolicyCN;
+import org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorPlugin;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter;
+import org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper;
+import org.eclipse.swt.graphics.Color;
+
+/**
+ * @generated
+ */
+public class InformationItemEditPartCN extends
+
+ConstrainedNamedElementEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 3094;
+
+ /**
+ * @generated
+ */
+ protected IFigure contentPane;
+
+ /**
+ * @generated
+ */
+ protected IFigure primaryShape;
+
+ /**
+ * @generated
+ */
+ public InformationItemEditPartCN(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new InformationItemItemSemanticEditPolicyCN());
+ installEditPolicy(EditPolicy.LAYOUT_ROLE, createLayoutEditPolicy());
+ installEditPolicy(QualifiedNameDisplayEditPolicy.QUALIFIED_NAME_POLICY, new QualifiedNameDisplayEditPolicy());
+ installEditPolicy(AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeNodeLabelDisplayEditPolicy());
+ installEditPolicy(EditPolicyRoles.POPUPBAR_ROLE, new HyperLinkPopupBarEditPolicy());
+ installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new CustomDiagramDragDropEditPolicy());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new NoScrollClassifierResizableShapeEditPolicy());
+ // XXX need an SCR to runtime to have another abstract superclass that would let children add reasonable editpolicies
+ // removeEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CONNECTION_HANDLES_ROLE);
+ }
+
+ /**
+ * Papyrus codeGen
+ *
+ * @generated
+ **/
+ protected void handleNotificationEvent(Notification event) {
+ super.handleNotificationEvent(event);
+
+ }
+
+ /**
+ * @generated
+ */
+ protected LayoutEditPolicy createLayoutEditPolicy() {
+ org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy lep = new org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy() {
+
+ protected EditPolicy createChildEditPolicy(EditPart child) {
+ EditPolicy result = child.getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(result == null) {
+ result = new NonResizableEditPolicy();
+ }
+ return result;
+ }
+
+ protected Command getMoveChildrenCommand(Request request) {
+ return null;
+ }
+
+ protected Command getCreateCommand(CreateRequest request) {
+ return null;
+ }
+ };
+ return lep;
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createNodeShape() {
+ return primaryShape = new InformationItemFigure();
+ }
+
+ /**
+ * @generated
+ */
+ public InformationItemFigure getPrimaryShape() {
+ return (InformationItemFigure)primaryShape;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean addFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof InformationItemNameEditPartCN) {
+ ((InformationItemNameEditPartCN)childEditPart).setLabel(getPrimaryShape().getNameLabel());
+ return true;
+ }
+
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean removeFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof InformationItemNameEditPartCN) {
+ return true;
+ }
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected void addChildVisual(EditPart childEditPart, int index) {
+ if(addFixedChild(childEditPart)) {
+ return;
+ }
+ super.addChildVisual(childEditPart, -1);
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeChildVisual(EditPart childEditPart) {
+ if(removeFixedChild(childEditPart)) {
+ return;
+ }
+ super.removeChildVisual(childEditPart);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure getContentPaneFor(IGraphicalEditPart editPart) {
+ return getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ protected NodeFigure createNodePlate() {
+ String prefElementId = "InformationItem";
+ IPreferenceStore store = UMLDiagramEditorPlugin.getInstance().getPreferenceStore();
+ String preferenceConstantWitdh = PreferenceInitializerForElementHelper.getpreferenceKey(getNotationView(), prefElementId, PreferenceConstantHelper.WIDTH);
+ String preferenceConstantHeight = PreferenceInitializerForElementHelper.getpreferenceKey(getNotationView(), prefElementId, PreferenceConstantHelper.HEIGHT);
+ DefaultSizeNodeFigure result = new DefaultSizeNodeFigure(store.getInt(preferenceConstantWitdh), store.getInt(preferenceConstantHeight));
+
+ return result;
+ }
+
+ /**
+ * Creates figure for this edit part.
+ *
+ * Body of this method does not depend on settings in generation model
+ * so you may safely remove <i>generated</i> tag and modify it.
+ *
+ * @generated
+ */
+ protected NodeFigure createNodeFigure() {
+ NodeFigure figure = createNodePlate();
+ figure.setLayoutManager(new StackLayout());
+ IFigure shape = createNodeShape();
+ figure.add(shape);
+ contentPane = setupContentPane(shape);
+ return figure;
+ }
+
+ /**
+ * Default implementation treats passed figure as content pane.
+ * Respects layout one may have set for generated figure.
+ *
+ * @param nodeShape
+ * instance of generated figure class
+ * @generated
+ */
+ protected IFigure setupContentPane(IFigure nodeShape) {
+ if(nodeShape.getLayoutManager() == null) {
+ ConstrainedToolbarLayout layout = new ConstrainedToolbarLayout();
+ layout.setSpacing(5);
+ nodeShape.setLayoutManager(layout);
+ }
+ return nodeShape; // use nodeShape itself as contentPane
+ }
+
+ /**
+ * @generated
+ */
+ public IFigure getContentPane() {
+ if(contentPane != null) {
+ return contentPane;
+ }
+ return super.getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ protected void setForegroundColor(Color color) {
+ if(primaryShape != null) {
+ primaryShape.setForegroundColor(color);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLineWidth(int width) {
+ if(primaryShape instanceof Shape) {
+ ((Shape)primaryShape).setLineWidth(width);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLineType(int style) {
+ if(primaryShape instanceof Shape) {
+ ((Shape)primaryShape).setLineStyle(style);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public EditPart getPrimaryChildEditPart() {
+ return getChildBySemanticHint(UMLVisualIDRegistry.getType(InformationItemNameEditPartCN.VISUAL_ID));
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnSource() {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(13);
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ types.add(UMLElementTypes.Substitution_4011);
+ types.add(UMLElementTypes.Realization_4006);
+ types.add(UMLElementTypes.Manifestation_4012);
+ types.add(UMLElementTypes.Abstraction_4007);
+ types.add(UMLElementTypes.Usage_4008);
+ types.add(UMLElementTypes.Deployment_4009);
+ types.add(UMLElementTypes.Dependency_4017);
+ types.add(UMLElementTypes.Dependency_4010);
+ types.add(UMLElementTypes.Generalization_4015);
+ types.add(UMLElementTypes.InformationItemRepresented_4020);
+ types.add(UMLElementTypes.InformationFlow_4021);
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnSourceAndTarget(IGraphicalEditPart targetEditPart) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.InformationItemEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.InformationItemEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.InformationItemRepresented_4020);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.InformationItemRepresented_4020);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InformationItemRepresented_4020);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InformationItemRepresented_4020);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InformationItemRepresented_4020);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InformationItemRepresented_4020);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.InformationItemRepresented_4020);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.InformationItemRepresented_4020);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.InformationItemRepresented_4020);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.InformationItemRepresented_4020);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.InformationItemRepresented_4020);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.InformationItemRepresented_4020);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.InformationItemRepresented_4020);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.InformationItemRepresented_4020);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.InformationItemRepresented_4020);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.InformationItemRepresented_4020);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.InformationItemRepresented_4020);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.InformationItemRepresented_4020);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.InformationItemRepresented_4020);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.InformationItemRepresented_4020);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.InformationItemRepresented_4020);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.InformationItemRepresented_4020);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationItemRepresented_4020);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationItemRepresented_4020);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationItemRepresented_4020);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationItemRepresented_4020);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationItemRepresented_4020);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationItemRepresented_4020);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationItemRepresented_4020);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationItemRepresented_4020);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationItemRepresented_4020);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationItemRepresented_4020);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationItemRepresented_4020);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationItemRepresented_4020);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.InformationItemRepresented_4020);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.InformationItemRepresented_4020);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.InformationItemRepresented_4020);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.InformationItemRepresented_4020);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.InformationItemRepresented_4020);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.InformationItemRepresented_4020);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.InformationItemRepresented_4020);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.InformationItemEditPartCN) {
+ types.add(UMLElementTypes.InformationItemRepresented_4020);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.InformationItemRepresented_4020);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.InformationItemRepresented_4020);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.InformationItemEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMATypesForTarget(IElementType relationshipType) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(relationshipType == UMLElementTypes.ComponentRealization_4004) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InterfaceRealization_4005) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Substitution_4011) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Realization_4006) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Manifestation_4012) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Abstraction_4007) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Usage_4008) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Deployment_4009) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4017) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4010) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Generalization_4015) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ } else if(relationshipType == UMLElementTypes.InformationItemRepresented_4020) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ } else if(relationshipType == UMLElementTypes.InformationFlow_4021) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnTarget() {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(17);
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ types.add(UMLElementTypes.Substitution_4011);
+ types.add(UMLElementTypes.Realization_4006);
+ types.add(UMLElementTypes.Manifestation_4012);
+ types.add(UMLElementTypes.Abstraction_4007);
+ types.add(UMLElementTypes.Usage_4008);
+ types.add(UMLElementTypes.Deployment_4009);
+ types.add(UMLElementTypes.Dependency_4017);
+ types.add(UMLElementTypes.Dependency_4010);
+ types.add(UMLElementTypes.Generalization_4015);
+ types.add(UMLElementTypes.TimeObservationEvent_4018);
+ types.add(UMLElementTypes.DurationObservationEvent_4019);
+ types.add(UMLElementTypes.InformationItemRepresented_4020);
+ types.add(UMLElementTypes.InformationFlow_4021);
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMATypesForSource(IElementType relationshipType) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(relationshipType == UMLElementTypes.CommentAnnotatedElement_4002) {
+ types.add(UMLElementTypes.Comment_2109);
+ types.add(UMLElementTypes.Comment_3097);
+ } else if(relationshipType == UMLElementTypes.ConstraintConstrainedElement_4003) {
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.ComponentRealization_4004) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InterfaceRealization_4005) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Substitution_4011) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Realization_4006) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Manifestation_4012) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Abstraction_4007) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Usage_4008) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Deployment_4009) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4017) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4010) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Generalization_4015) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ } else if(relationshipType == UMLElementTypes.TimeObservationEvent_4018) {
+ types.add(UMLElementTypes.TimeObservation_2094);
+ } else if(relationshipType == UMLElementTypes.DurationObservationEvent_4019) {
+ types.add(UMLElementTypes.DurationObservation_2093);
+ } else if(relationshipType == UMLElementTypes.InformationItemRepresented_4020) {
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.InformationItem_3094);
+ } else if(relationshipType == UMLElementTypes.InformationFlow_4021) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public Object getPreferredValue(EStructuralFeature feature) {
+ IPreferenceStore preferenceStore = (IPreferenceStore)getDiagramPreferencesHint().getPreferenceStore();
+ Object result = null;
+
+ if(feature == NotationPackage.eINSTANCE.getLineStyle_LineColor() || feature == NotationPackage.eINSTANCE.getFontStyle_FontColor() || feature == NotationPackage.eINSTANCE.getFillStyle_FillColor()) {
+ String prefColor = null;
+ if(feature == NotationPackage.eINSTANCE.getLineStyle_LineColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("InformationItem", PreferenceConstantHelper.COLOR_LINE);
+ } else if(feature == NotationPackage.eINSTANCE.getFontStyle_FontColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("InformationItem", PreferenceConstantHelper.COLOR_FONT);
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_FillColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("InformationItem", PreferenceConstantHelper.COLOR_FILL);
+ }
+ result = FigureUtilities.RGBToInteger(PreferenceConverter.getColor((IPreferenceStore)preferenceStore, prefColor));
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_Transparency() || feature == NotationPackage.eINSTANCE.getFillStyle_Gradient()) {
+ String prefGradient = PreferenceConstantHelper.getElementConstant("InformationItem", PreferenceConstantHelper.COLOR_GRADIENT);
+ GradientPreferenceConverter gradientPreferenceConverter = new GradientPreferenceConverter(preferenceStore.getString(prefGradient));
+ if(feature == NotationPackage.eINSTANCE.getFillStyle_Transparency()) {
+ result = new Integer(gradientPreferenceConverter.getTransparency());
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_Gradient()) {
+ result = gradientPreferenceConverter.getGradientData();
+ }
+ }
+
+ if(result == null) {
+ result = getStructuralFeatureValue(feature);
+ }
+ return result;
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/InformationItemNameEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/InformationItemNameEditPart.java
new file mode 100644
index 00000000000..85836198e87
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/InformationItemNameEditPart.java
@@ -0,0 +1,791 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EAnnotation;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.emf.transaction.RunnableWithResult;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.AccessibleEditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.requests.DirectEditRequest;
+import org.eclipse.gef.tools.DirectEditManager;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.CompartmentEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
+import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
+import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
+import org.eclipse.gmf.runtime.notation.FontStyle;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
+import org.eclipse.jface.viewers.ICellEditorValidator;
+import org.eclipse.jface.window.Window;
+import org.eclipse.papyrus.diagram.common.directedit.MultilineLabelDirectEditManager;
+import org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition;
+import org.eclipse.papyrus.diagram.common.editpolicies.IMaskManagedLabelEditPolicy;
+import org.eclipse.papyrus.diagram.common.figure.node.ILabelFigure;
+import org.eclipse.papyrus.diagram.common.util.DiagramEditPartsUtil;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLTextSelectionEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.diagram.composite.providers.UMLParserProvider;
+import org.eclipse.papyrus.extensionpoints.editors.Activator;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
+import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
+import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
+import org.eclipse.papyrus.umlutils.ui.VisualInformationPapyrusConstant;
+import org.eclipse.papyrus.umlutils.ui.helper.NameLabelIconHelper;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.AccessibleEvent;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.FontData;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.ui.PlatformUI;
+
+/**
+ * @generated
+ */
+public class InformationItemNameEditPart extends CompartmentEditPart implements ITextAwareEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 5163;
+
+ /**
+ * @generated
+ */
+ private DirectEditManager manager;
+
+ /**
+ * @generated
+ */
+ private IParser parser;
+
+ /**
+ * @generated
+ */
+ private List<?> parserElements;
+
+ /**
+ * @generated
+ */
+ private String defaultText;
+
+ /**
+ * direct edition mode (default, undefined, registered editor, etc.)
+ *
+ * @generated
+ */
+ protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
+
+ /**
+ * configuration from a registered edit dialog
+ *
+ * @generated
+ */
+ protected IDirectEditorConfiguration configuration;
+
+ /**
+ * @generated
+ */
+ public InformationItemNameEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
+ installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new CompositeStructureDiagramEditPart.NodeLabelDragPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelTextHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getText();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getText();
+ } else {
+ return ((Label)figure).getText();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelTextHelper(IFigure figure, String text) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setText(text);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setText(text);
+ } else {
+ ((Label)figure).setText(text);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIconHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getIcon();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getIcon();
+ } else {
+ return ((Label)figure).getIcon();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelIconHelper(IFigure figure, Image icon) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setIcon(icon);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setIcon(icon);
+ } else {
+ ((Label)figure).setIcon(icon);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabel(WrappingLabel figure) {
+ unregisterVisuals();
+ setFigure(figure);
+ defaultText = getLabelTextHelper(figure);
+ registerVisuals();
+ refreshVisuals();
+ }
+
+ /**
+ * @generated
+ */
+ protected List getModelChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject getParserElement() {
+ return resolveSemanticElement();
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIcon() {
+ EObject parserElement = getParserElement();
+ if(parserElement == null) {
+ return null;
+ }
+
+ List<View> views = DiagramEditPartsUtil.findViews(parserElement, getViewer());
+ for(View view : views) {
+ if(NameLabelIconHelper.showLabelIcon(view)) {
+ return UMLElementTypes.getImage(parserElement.eClass());
+ }
+ }
+ return null;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelText() {
+ String text = null;
+ EObject parserElement = getParserElement();
+ if(parserElement != null && getParser() != null) {
+ text = getParser().getPrintString(new EObjectAdapter(parserElement), getParserOptions().intValue());
+ }
+ if(text == null || text.length() == 0) {
+ text = defaultText;
+ }
+ return text;
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabelText(String text) {
+ setLabelTextHelper(getFigure(), text);
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public String getEditText() {
+ if(getParserElement() == null || getParser() == null) {
+ return ""; //$NON-NLS-1$
+ }
+ return getParser().getEditString(new EObjectAdapter(getParserElement()), getParserOptions().intValue());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean isEditable() {
+ return getParser() != null;
+ }
+
+ /**
+ * @generated
+ */
+ public ICellEditorValidator getEditTextValidator() {
+ return new ICellEditorValidator() {
+
+ public String isValid(final Object value) {
+ if(value instanceof String) {
+ final EObject element = getParserElement();
+ final IParser parser = getParser();
+ try {
+ IParserEditStatus valid = (IParserEditStatus)getEditingDomain().runExclusive(new RunnableWithResult.Impl() {
+
+ public void run() {
+ setResult(parser.isValidEditString(new EObjectAdapter(element), (String)value));
+ }
+ });
+ return valid.getCode() == ParserEditStatus.EDITABLE ? null : valid.getMessage();
+ } catch (InterruptedException ie) {
+ ie.printStackTrace();
+ }
+ }
+
+ // shouldn't get here
+ return null;
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ public IContentAssistProcessor getCompletionProcessor() {
+ if(getParserElement() == null || getParser() == null) {
+ return null;
+ }
+ return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
+ }
+
+ /**
+ * @generated
+ */
+ public ParserOptions getParserOptions() {
+ return ParserOptions.NONE;
+ }
+
+ /**
+ * @generated
+ */
+ public IParser getParser() {
+ if(parser == null) {
+ parser = UMLParserProvider.getParser(UMLElementTypes.InformationItem_2080, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.diagram.composite.edit.parts.InformationItemNameEditPart.VISUAL_ID));
+ }
+ return parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected DirectEditManager getManager() {
+ if(manager == null) {
+ setManager(new MultilineLabelDirectEditManager(this, MultilineLabelDirectEditManager.getTextCellEditorClass(this), UMLEditPartFactory.getTextCellEditorLocator(this)));
+ }
+ return manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setManager(DirectEditManager manager) {
+ this.manager = manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit() {
+ getManager().show();
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit(Point eventLocation) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(eventLocation.getSWTPoint());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void performDirectEdit(char initialCharacter) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(initialCharacter);
+ } else {
+ performDirectEdit();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEditRequest(Request request) {
+
+ final Request theRequest = request;
+
+ if(IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
+ directEditionMode = getDirectEditionType();
+ }
+ switch(directEditionMode) {
+ case IDirectEdition.NO_DIRECT_EDITION:
+ // no direct edition mode => does nothing
+ return;
+ case IDirectEdition.EXTENDED_DIRECT_EDITOR:
+ updateExtendedEditorConfiguration();
+ if(configuration == null || configuration.getLanguage() == null) {
+ performDefaultDirectEditorEdit(theRequest);
+ } else {
+ configuration.preEditAction(resolveSemanticElement());
+ Dialog dialog = null;
+ if(configuration instanceof IPopupEditorConfiguration) {
+ IPopupEditorHelper helper = ((IPopupEditorConfiguration)configuration).createPopupEditorHelper(this);
+ helper.showEditor();
+ return;
+ } else if(configuration instanceof IAdvancedEditorConfiguration) {
+ dialog = ((IAdvancedEditorConfiguration)configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
+ } else if(configuration instanceof IDirectEditorConfiguration) {
+ dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), ((IDirectEditorConfiguration)configuration).getTextToEdit(resolveSemanticElement()), (IDirectEditorConfiguration)configuration);
+ } else {
+ return;
+ }
+ final Dialog finalDialog = dialog;
+
+ if(Window.OK == dialog.open()) {
+ TransactionalEditingDomain domain = getEditingDomain();
+ RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
+
+ @Override
+ protected void doExecute() {
+ configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog)finalDialog).getValue());
+
+ }
+ };
+ domain.getCommandStack().execute(command);
+ }
+ }
+ break;
+ case IDirectEdition.DEFAULT_DIRECT_EDITOR:
+
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ break;
+ default:
+ break;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshLabel();
+ refreshFont();
+ refreshFontColor();
+ refreshUnderline();
+ refreshStrikeThrough();
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshLabel() {
+ EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
+ if(maskLabelPolicy == null) {
+ setLabelTextHelper(getFigure(), getLabelText());
+ setLabelIconHelper(getFigure(), getLabelIcon());
+ }
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshUnderline() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextUnderline(style.isUnderline());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshStrikeThrough() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextStrikeThrough(style.isStrikeThrough());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshFont() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null) {
+ FontData fontData = new FontData(style.getFontName(), style.getFontHeight(), (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
+ setFont(fontData);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setFontColor(Color color) {
+ getFigure().setForegroundColor(color);
+ }
+
+ /**
+ * @generated
+ */
+ protected void addSemanticListeners() {
+ if(getParser() instanceof ISemanticParser) {
+ EObject element = resolveSemanticElement();
+ parserElements = ((ISemanticParser)getParser()).getSemanticElementsBeingParsed(element);
+ for(int i = 0; i < parserElements.size(); i++) {
+ addListenerFilter("SemanticModel" + i, this, (EObject)parserElements.get(i)); //$NON-NLS-1$
+ }
+ } else {
+ super.addSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeSemanticListeners() {
+ if(parserElements != null) {
+ for(int i = 0; i < parserElements.size(); i++) {
+ removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
+ }
+ } else {
+ super.removeSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected AccessibleEditPart getAccessibleEditPart() {
+ if(accessibleEP == null) {
+ accessibleEP = new AccessibleGraphicalEditPart() {
+
+ public void getName(AccessibleEvent e) {
+ e.result = getLabelTextHelper(getFigure());
+ }
+ };
+ }
+ return accessibleEP;
+ }
+
+ /**
+ * @generated
+ */
+ private View getFontStyleOwnerView() {
+ return getPrimaryView();
+ }
+
+ /**
+ * Returns the kind of associated editor for direct edition.
+ *
+ * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition
+ * @generated
+ */
+ public int getDirectEditionType() {
+ if(checkExtendedEditor()) {
+ initExtendedEditorConfiguration();
+ return IDirectEdition.EXTENDED_DIRECT_EDITOR;
+ }
+ if(checkDefaultEdition()) {
+ return IDirectEdition.DEFAULT_DIRECT_EDITOR;
+ }
+
+ // not a named element. no specific editor => do nothing
+ return IDirectEdition.NO_DIRECT_EDITION;
+ }
+
+ /**
+ * Checks if an extended editor is present.
+ *
+ * @return <code>true</code> if an extended editor is present.
+ * @generated
+ */
+ protected boolean checkExtendedEditor() {
+ if(resolveSemanticElement() != null) {
+ return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ return false;
+ }
+
+ /**
+ * Checks if a default direct edition is available
+ *
+ * @return <code>true</code> if a default direct edition is available
+ * @generated
+ */
+ protected boolean checkDefaultEdition() {
+ return (getParser() != null);
+ }
+
+ /**
+ * Initializes the extended editor configuration
+ *
+ * @generated
+ */
+ protected void initExtendedEditorConfiguration() {
+ if(configuration == null) {
+ final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("")) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else {
+ configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ }
+ }
+
+ /**
+ * Updates the preference configuration
+ *
+ * @generated
+ */
+ protected void updateExtendedEditorConfiguration() {
+ String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("") && languagePreferred != configuration.getLanguage()) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else if(IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
+ configuration = null;
+ }
+ }
+
+ /**
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
+ protected void performDefaultDirectEditorEdit(final Request theRequest) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void addNotationalListeners() {
+ super.addNotationalListeners();
+ addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeNotationalListeners() {
+ super.removeNotationalListeners();
+ removeListenerFilter("PrimaryView"); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void handleNotificationEvent(Notification event) {
+ refreshLabel();
+ Object feature = event.getFeature();
+ if(NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
+ Integer c = (Integer)event.getNewValue();
+ setFontColor(DiagramColorRegistry.getInstance().getColor(c));
+ } else if(NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
+ refreshUnderline();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
+ refreshStrikeThrough();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
+ refreshFont();
+ } else {
+ if(getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
+ refreshLabel();
+ }
+ if(getParser() instanceof ISemanticParser) {
+ ISemanticParser modelParser = (ISemanticParser)getParser();
+ if(modelParser.areSemanticElementsAffected(null, event)) {
+ removeSemanticListeners();
+ if(resolveSemanticElement() != null) {
+ addSemanticListeners();
+ }
+ refreshLabel();
+ }
+ }
+ }
+
+ if(event.getNewValue() instanceof EAnnotation && VisualInformationPapyrusConstant.DISPLAY_NAMELABELICON.equals(((EAnnotation)event.getNewValue()).getSource())) {
+ refreshLabel();
+ }
+
+ super.handleNotificationEvent(event);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createFigure() {
+ // Parent should assign one using setLabel() method
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ private static final String ADD_PARENT_MODEL = "AddParentModel";
+
+ /**
+ * @generated
+ */
+ public void activate() {
+ super.activate();
+ addOwnerElementListeners();
+ }
+
+ /**
+ * @generated
+ */
+ protected void addOwnerElementListeners() {
+ addListenerFilter(ADD_PARENT_MODEL, this, ((View)getParent().getModel())); //$NON-NLS-1$
+
+ }
+
+ /**
+ * @generated
+ */
+ public void deactivate() {
+ removeOwnerElementListeners();
+ super.deactivate();
+
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeOwnerElementListeners() {
+ removeListenerFilter(ADD_PARENT_MODEL);
+
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/InformationItemNameEditPartCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/InformationItemNameEditPartCN.java
new file mode 100644
index 00000000000..8b135caf0c0
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/InformationItemNameEditPartCN.java
@@ -0,0 +1,791 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EAnnotation;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.emf.transaction.RunnableWithResult;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.AccessibleEditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.requests.DirectEditRequest;
+import org.eclipse.gef.tools.DirectEditManager;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.CompartmentEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
+import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
+import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
+import org.eclipse.gmf.runtime.notation.FontStyle;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
+import org.eclipse.jface.viewers.ICellEditorValidator;
+import org.eclipse.jface.window.Window;
+import org.eclipse.papyrus.diagram.common.directedit.MultilineLabelDirectEditManager;
+import org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition;
+import org.eclipse.papyrus.diagram.common.editpolicies.IMaskManagedLabelEditPolicy;
+import org.eclipse.papyrus.diagram.common.figure.node.ILabelFigure;
+import org.eclipse.papyrus.diagram.common.util.DiagramEditPartsUtil;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLTextSelectionEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.diagram.composite.providers.UMLParserProvider;
+import org.eclipse.papyrus.extensionpoints.editors.Activator;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
+import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
+import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
+import org.eclipse.papyrus.umlutils.ui.VisualInformationPapyrusConstant;
+import org.eclipse.papyrus.umlutils.ui.helper.NameLabelIconHelper;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.AccessibleEvent;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.FontData;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.ui.PlatformUI;
+
+/**
+ * @generated
+ */
+public class InformationItemNameEditPartCN extends CompartmentEditPart implements ITextAwareEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 5147;
+
+ /**
+ * @generated
+ */
+ private DirectEditManager manager;
+
+ /**
+ * @generated
+ */
+ private IParser parser;
+
+ /**
+ * @generated
+ */
+ private List<?> parserElements;
+
+ /**
+ * @generated
+ */
+ private String defaultText;
+
+ /**
+ * direct edition mode (default, undefined, registered editor, etc.)
+ *
+ * @generated
+ */
+ protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
+
+ /**
+ * configuration from a registered edit dialog
+ *
+ * @generated
+ */
+ protected IDirectEditorConfiguration configuration;
+
+ /**
+ * @generated
+ */
+ public InformationItemNameEditPartCN(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
+ installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new CompositeStructureDiagramEditPart.NodeLabelDragPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelTextHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getText();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getText();
+ } else {
+ return ((Label)figure).getText();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelTextHelper(IFigure figure, String text) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setText(text);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setText(text);
+ } else {
+ ((Label)figure).setText(text);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIconHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getIcon();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getIcon();
+ } else {
+ return ((Label)figure).getIcon();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelIconHelper(IFigure figure, Image icon) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setIcon(icon);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setIcon(icon);
+ } else {
+ ((Label)figure).setIcon(icon);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabel(WrappingLabel figure) {
+ unregisterVisuals();
+ setFigure(figure);
+ defaultText = getLabelTextHelper(figure);
+ registerVisuals();
+ refreshVisuals();
+ }
+
+ /**
+ * @generated
+ */
+ protected List getModelChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject getParserElement() {
+ return resolveSemanticElement();
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIcon() {
+ EObject parserElement = getParserElement();
+ if(parserElement == null) {
+ return null;
+ }
+
+ List<View> views = DiagramEditPartsUtil.findViews(parserElement, getViewer());
+ for(View view : views) {
+ if(NameLabelIconHelper.showLabelIcon(view)) {
+ return UMLElementTypes.getImage(parserElement.eClass());
+ }
+ }
+ return null;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelText() {
+ String text = null;
+ EObject parserElement = getParserElement();
+ if(parserElement != null && getParser() != null) {
+ text = getParser().getPrintString(new EObjectAdapter(parserElement), getParserOptions().intValue());
+ }
+ if(text == null || text.length() == 0) {
+ text = defaultText;
+ }
+ return text;
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabelText(String text) {
+ setLabelTextHelper(getFigure(), text);
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public String getEditText() {
+ if(getParserElement() == null || getParser() == null) {
+ return ""; //$NON-NLS-1$
+ }
+ return getParser().getEditString(new EObjectAdapter(getParserElement()), getParserOptions().intValue());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean isEditable() {
+ return getParser() != null;
+ }
+
+ /**
+ * @generated
+ */
+ public ICellEditorValidator getEditTextValidator() {
+ return new ICellEditorValidator() {
+
+ public String isValid(final Object value) {
+ if(value instanceof String) {
+ final EObject element = getParserElement();
+ final IParser parser = getParser();
+ try {
+ IParserEditStatus valid = (IParserEditStatus)getEditingDomain().runExclusive(new RunnableWithResult.Impl() {
+
+ public void run() {
+ setResult(parser.isValidEditString(new EObjectAdapter(element), (String)value));
+ }
+ });
+ return valid.getCode() == ParserEditStatus.EDITABLE ? null : valid.getMessage();
+ } catch (InterruptedException ie) {
+ ie.printStackTrace();
+ }
+ }
+
+ // shouldn't get here
+ return null;
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ public IContentAssistProcessor getCompletionProcessor() {
+ if(getParserElement() == null || getParser() == null) {
+ return null;
+ }
+ return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
+ }
+
+ /**
+ * @generated
+ */
+ public ParserOptions getParserOptions() {
+ return ParserOptions.NONE;
+ }
+
+ /**
+ * @generated
+ */
+ public IParser getParser() {
+ if(parser == null) {
+ parser = UMLParserProvider.getParser(UMLElementTypes.InformationItem_3094, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.diagram.composite.edit.parts.InformationItemNameEditPartCN.VISUAL_ID));
+ }
+ return parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected DirectEditManager getManager() {
+ if(manager == null) {
+ setManager(new MultilineLabelDirectEditManager(this, MultilineLabelDirectEditManager.getTextCellEditorClass(this), UMLEditPartFactory.getTextCellEditorLocator(this)));
+ }
+ return manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setManager(DirectEditManager manager) {
+ this.manager = manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit() {
+ getManager().show();
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit(Point eventLocation) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(eventLocation.getSWTPoint());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void performDirectEdit(char initialCharacter) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(initialCharacter);
+ } else {
+ performDirectEdit();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEditRequest(Request request) {
+
+ final Request theRequest = request;
+
+ if(IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
+ directEditionMode = getDirectEditionType();
+ }
+ switch(directEditionMode) {
+ case IDirectEdition.NO_DIRECT_EDITION:
+ // no direct edition mode => does nothing
+ return;
+ case IDirectEdition.EXTENDED_DIRECT_EDITOR:
+ updateExtendedEditorConfiguration();
+ if(configuration == null || configuration.getLanguage() == null) {
+ performDefaultDirectEditorEdit(theRequest);
+ } else {
+ configuration.preEditAction(resolveSemanticElement());
+ Dialog dialog = null;
+ if(configuration instanceof IPopupEditorConfiguration) {
+ IPopupEditorHelper helper = ((IPopupEditorConfiguration)configuration).createPopupEditorHelper(this);
+ helper.showEditor();
+ return;
+ } else if(configuration instanceof IAdvancedEditorConfiguration) {
+ dialog = ((IAdvancedEditorConfiguration)configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
+ } else if(configuration instanceof IDirectEditorConfiguration) {
+ dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), ((IDirectEditorConfiguration)configuration).getTextToEdit(resolveSemanticElement()), (IDirectEditorConfiguration)configuration);
+ } else {
+ return;
+ }
+ final Dialog finalDialog = dialog;
+
+ if(Window.OK == dialog.open()) {
+ TransactionalEditingDomain domain = getEditingDomain();
+ RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
+
+ @Override
+ protected void doExecute() {
+ configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog)finalDialog).getValue());
+
+ }
+ };
+ domain.getCommandStack().execute(command);
+ }
+ }
+ break;
+ case IDirectEdition.DEFAULT_DIRECT_EDITOR:
+
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ break;
+ default:
+ break;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshLabel();
+ refreshFont();
+ refreshFontColor();
+ refreshUnderline();
+ refreshStrikeThrough();
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshLabel() {
+ EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
+ if(maskLabelPolicy == null) {
+ setLabelTextHelper(getFigure(), getLabelText());
+ setLabelIconHelper(getFigure(), getLabelIcon());
+ }
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshUnderline() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextUnderline(style.isUnderline());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshStrikeThrough() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextStrikeThrough(style.isStrikeThrough());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshFont() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null) {
+ FontData fontData = new FontData(style.getFontName(), style.getFontHeight(), (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
+ setFont(fontData);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setFontColor(Color color) {
+ getFigure().setForegroundColor(color);
+ }
+
+ /**
+ * @generated
+ */
+ protected void addSemanticListeners() {
+ if(getParser() instanceof ISemanticParser) {
+ EObject element = resolveSemanticElement();
+ parserElements = ((ISemanticParser)getParser()).getSemanticElementsBeingParsed(element);
+ for(int i = 0; i < parserElements.size(); i++) {
+ addListenerFilter("SemanticModel" + i, this, (EObject)parserElements.get(i)); //$NON-NLS-1$
+ }
+ } else {
+ super.addSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeSemanticListeners() {
+ if(parserElements != null) {
+ for(int i = 0; i < parserElements.size(); i++) {
+ removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
+ }
+ } else {
+ super.removeSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected AccessibleEditPart getAccessibleEditPart() {
+ if(accessibleEP == null) {
+ accessibleEP = new AccessibleGraphicalEditPart() {
+
+ public void getName(AccessibleEvent e) {
+ e.result = getLabelTextHelper(getFigure());
+ }
+ };
+ }
+ return accessibleEP;
+ }
+
+ /**
+ * @generated
+ */
+ private View getFontStyleOwnerView() {
+ return getPrimaryView();
+ }
+
+ /**
+ * Returns the kind of associated editor for direct edition.
+ *
+ * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition
+ * @generated
+ */
+ public int getDirectEditionType() {
+ if(checkExtendedEditor()) {
+ initExtendedEditorConfiguration();
+ return IDirectEdition.EXTENDED_DIRECT_EDITOR;
+ }
+ if(checkDefaultEdition()) {
+ return IDirectEdition.DEFAULT_DIRECT_EDITOR;
+ }
+
+ // not a named element. no specific editor => do nothing
+ return IDirectEdition.NO_DIRECT_EDITION;
+ }
+
+ /**
+ * Checks if an extended editor is present.
+ *
+ * @return <code>true</code> if an extended editor is present.
+ * @generated
+ */
+ protected boolean checkExtendedEditor() {
+ if(resolveSemanticElement() != null) {
+ return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ return false;
+ }
+
+ /**
+ * Checks if a default direct edition is available
+ *
+ * @return <code>true</code> if a default direct edition is available
+ * @generated
+ */
+ protected boolean checkDefaultEdition() {
+ return (getParser() != null);
+ }
+
+ /**
+ * Initializes the extended editor configuration
+ *
+ * @generated
+ */
+ protected void initExtendedEditorConfiguration() {
+ if(configuration == null) {
+ final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("")) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else {
+ configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ }
+ }
+
+ /**
+ * Updates the preference configuration
+ *
+ * @generated
+ */
+ protected void updateExtendedEditorConfiguration() {
+ String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("") && languagePreferred != configuration.getLanguage()) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else if(IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
+ configuration = null;
+ }
+ }
+
+ /**
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
+ protected void performDefaultDirectEditorEdit(final Request theRequest) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void addNotationalListeners() {
+ super.addNotationalListeners();
+ addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeNotationalListeners() {
+ super.removeNotationalListeners();
+ removeListenerFilter("PrimaryView"); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void handleNotificationEvent(Notification event) {
+ refreshLabel();
+ Object feature = event.getFeature();
+ if(NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
+ Integer c = (Integer)event.getNewValue();
+ setFontColor(DiagramColorRegistry.getInstance().getColor(c));
+ } else if(NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
+ refreshUnderline();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
+ refreshStrikeThrough();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
+ refreshFont();
+ } else {
+ if(getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
+ refreshLabel();
+ }
+ if(getParser() instanceof ISemanticParser) {
+ ISemanticParser modelParser = (ISemanticParser)getParser();
+ if(modelParser.areSemanticElementsAffected(null, event)) {
+ removeSemanticListeners();
+ if(resolveSemanticElement() != null) {
+ addSemanticListeners();
+ }
+ refreshLabel();
+ }
+ }
+ }
+
+ if(event.getNewValue() instanceof EAnnotation && VisualInformationPapyrusConstant.DISPLAY_NAMELABELICON.equals(((EAnnotation)event.getNewValue()).getSource())) {
+ refreshLabel();
+ }
+
+ super.handleNotificationEvent(event);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createFigure() {
+ // Parent should assign one using setLabel() method
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ private static final String ADD_PARENT_MODEL = "AddParentModel";
+
+ /**
+ * @generated
+ */
+ public void activate() {
+ super.activate();
+ addOwnerElementListeners();
+ }
+
+ /**
+ * @generated
+ */
+ protected void addOwnerElementListeners() {
+ addListenerFilter(ADD_PARENT_MODEL, this, ((View)getParent().getModel())); //$NON-NLS-1$
+
+ }
+
+ /**
+ * @generated
+ */
+ public void deactivate() {
+ removeOwnerElementListeners();
+ super.deactivate();
+
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeOwnerElementListeners() {
+ removeListenerFilter(ADD_PARENT_MODEL);
+
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/InstanceValueEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/InstanceValueEditPart.java
new file mode 100644
index 00000000000..e60271f3787
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/InstanceValueEditPart.java
@@ -0,0 +1,5167 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.ArrayList;
+import java.util.LinkedList;
+import java.util.List;
+
+import org.eclipse.draw2d.ColorConstants;
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.RectangleFigure;
+import org.eclipse.draw2d.Shape;
+import org.eclipse.draw2d.StackLayout;
+import org.eclipse.emf.ecore.EStructuralFeature;
+import org.eclipse.gef.EditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.editpolicies.LayoutEditPolicy;
+import org.eclipse.gef.editpolicies.NonResizableEditPolicy;
+import org.eclipse.gef.requests.CreateRequest;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ShapeNodeEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.FigureUtilities;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.gef.ui.figures.DefaultSizeNodeFigure;
+import org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.jface.preference.PreferenceConverter;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.HyperLinkPopupBarEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.QualifiedNameDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.helper.PreferenceInitializerForElementHelper;
+import org.eclipse.papyrus.diagram.composite.edit.policies.InstanceValueItemSemanticEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorPlugin;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter;
+import org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.Font;
+import org.eclipse.swt.widgets.Display;
+
+/**
+ * @generated
+ */
+public class InstanceValueEditPart extends
+
+ShapeNodeEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 2108;
+
+ /**
+ * @generated
+ */
+ protected IFigure contentPane;
+
+ /**
+ * @generated
+ */
+ protected IFigure primaryShape;
+
+ /**
+ * @generated
+ */
+ public InstanceValueEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new InstanceValueItemSemanticEditPolicy());
+ installEditPolicy(EditPolicy.LAYOUT_ROLE, createLayoutEditPolicy());
+ installEditPolicy(QualifiedNameDisplayEditPolicy.QUALIFIED_NAME_POLICY, new QualifiedNameDisplayEditPolicy());
+ installEditPolicy(AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeNodeLabelDisplayEditPolicy());
+ installEditPolicy(EditPolicyRoles.POPUPBAR_ROLE, new HyperLinkPopupBarEditPolicy());
+ // XXX need an SCR to runtime to have another abstract superclass that would let children add reasonable editpolicies
+ // removeEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CONNECTION_HANDLES_ROLE);
+ }
+
+ /**
+ * @generated
+ */
+ protected LayoutEditPolicy createLayoutEditPolicy() {
+ org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy lep = new org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy() {
+
+ protected EditPolicy createChildEditPolicy(EditPart child) {
+ EditPolicy result = child.getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(result == null) {
+ result = new NonResizableEditPolicy();
+ }
+ return result;
+ }
+
+ protected Command getMoveChildrenCommand(Request request) {
+ return null;
+ }
+
+ protected Command getCreateCommand(CreateRequest request) {
+ return null;
+ }
+ };
+ return lep;
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createNodeShape() {
+ return primaryShape = new NamedElementDescriptor();
+ }
+
+ /**
+ * @generated
+ */
+ public NamedElementDescriptor getPrimaryShape() {
+ return (NamedElementDescriptor)primaryShape;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean addFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof InstanceValueNameEditPart) {
+ ((InstanceValueNameEditPart)childEditPart).setLabel(getPrimaryShape().getNamedElementNameLabel());
+ return true;
+ }
+
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean removeFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof InstanceValueNameEditPart) {
+ return true;
+ }
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected void addChildVisual(EditPart childEditPart, int index) {
+ if(addFixedChild(childEditPart)) {
+ return;
+ }
+ super.addChildVisual(childEditPart, -1);
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeChildVisual(EditPart childEditPart) {
+ if(removeFixedChild(childEditPart)) {
+ return;
+ }
+ super.removeChildVisual(childEditPart);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure getContentPaneFor(IGraphicalEditPart editPart) {
+ return getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ protected NodeFigure createNodePlate() {
+ String prefElementId = "InstanceValue";
+ IPreferenceStore store = UMLDiagramEditorPlugin.getInstance().getPreferenceStore();
+ String preferenceConstantWitdh = PreferenceInitializerForElementHelper.getpreferenceKey(getNotationView(), prefElementId, PreferenceConstantHelper.WIDTH);
+ String preferenceConstantHeight = PreferenceInitializerForElementHelper.getpreferenceKey(getNotationView(), prefElementId, PreferenceConstantHelper.HEIGHT);
+ DefaultSizeNodeFigure result = new DefaultSizeNodeFigure(store.getInt(preferenceConstantWitdh), store.getInt(preferenceConstantHeight));
+
+ return result;
+ }
+
+ /**
+ * Creates figure for this edit part.
+ *
+ * Body of this method does not depend on settings in generation model
+ * so you may safely remove <i>generated</i> tag and modify it.
+ *
+ * @generated
+ */
+ protected NodeFigure createNodeFigure() {
+ NodeFigure figure = createNodePlate();
+ figure.setLayoutManager(new StackLayout());
+ IFigure shape = createNodeShape();
+ figure.add(shape);
+ contentPane = setupContentPane(shape);
+ return figure;
+ }
+
+ /**
+ * Default implementation treats passed figure as content pane.
+ * Respects layout one may have set for generated figure.
+ *
+ * @param nodeShape
+ * instance of generated figure class
+ * @generated
+ */
+ protected IFigure setupContentPane(IFigure nodeShape) {
+ if(nodeShape.getLayoutManager() == null) {
+ ConstrainedToolbarLayout layout = new ConstrainedToolbarLayout();
+ layout.setSpacing(5);
+ nodeShape.setLayoutManager(layout);
+ }
+ return nodeShape; // use nodeShape itself as contentPane
+ }
+
+ /**
+ * @generated
+ */
+ public IFigure getContentPane() {
+ if(contentPane != null) {
+ return contentPane;
+ }
+ return super.getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ protected void setForegroundColor(Color color) {
+ if(primaryShape != null) {
+ primaryShape.setForegroundColor(color);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLineWidth(int width) {
+ if(primaryShape instanceof Shape) {
+ ((Shape)primaryShape).setLineWidth(width);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLineType(int style) {
+ if(primaryShape instanceof Shape) {
+ ((Shape)primaryShape).setLineStyle(style);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public EditPart getPrimaryChildEditPart() {
+ return getChildBySemanticHint(UMLVisualIDRegistry.getType(InstanceValueNameEditPart.VISUAL_ID));
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnSource() {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(11);
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ types.add(UMLElementTypes.Substitution_4011);
+ types.add(UMLElementTypes.Realization_4006);
+ types.add(UMLElementTypes.Manifestation_4012);
+ types.add(UMLElementTypes.Abstraction_4007);
+ types.add(UMLElementTypes.Usage_4008);
+ types.add(UMLElementTypes.Deployment_4009);
+ types.add(UMLElementTypes.Dependency_4017);
+ types.add(UMLElementTypes.Dependency_4010);
+ types.add(UMLElementTypes.InformationFlow_4021);
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnSourceAndTarget(IGraphicalEditPart targetEditPart) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.InstanceValueEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.InstanceValueEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.InstanceValueEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.InstanceValueEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.InstanceValueEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.InstanceValueEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.InstanceValueEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.InstanceValueEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.InstanceValueEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.InstanceValueEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.InstanceValueEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMATypesForTarget(IElementType relationshipType) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(relationshipType == UMLElementTypes.ComponentRealization_4004) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InterfaceRealization_4005) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Substitution_4011) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Realization_4006) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Manifestation_4012) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Abstraction_4007) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Usage_4008) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Deployment_4009) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4017) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4010) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InformationFlow_4021) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnTarget() {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(15);
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ types.add(UMLElementTypes.Substitution_4011);
+ types.add(UMLElementTypes.Realization_4006);
+ types.add(UMLElementTypes.Manifestation_4012);
+ types.add(UMLElementTypes.Abstraction_4007);
+ types.add(UMLElementTypes.Usage_4008);
+ types.add(UMLElementTypes.Deployment_4009);
+ types.add(UMLElementTypes.Dependency_4017);
+ types.add(UMLElementTypes.Dependency_4010);
+ types.add(UMLElementTypes.TimeObservationEvent_4018);
+ types.add(UMLElementTypes.DurationObservationEvent_4019);
+ types.add(UMLElementTypes.InformationFlow_4021);
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMATypesForSource(IElementType relationshipType) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(relationshipType == UMLElementTypes.CommentAnnotatedElement_4002) {
+ types.add(UMLElementTypes.Comment_2109);
+ types.add(UMLElementTypes.Comment_3097);
+ } else if(relationshipType == UMLElementTypes.ConstraintConstrainedElement_4003) {
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.ComponentRealization_4004) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InterfaceRealization_4005) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Substitution_4011) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Realization_4006) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Manifestation_4012) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Abstraction_4007) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Usage_4008) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Deployment_4009) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4017) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4010) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.TimeObservationEvent_4018) {
+ types.add(UMLElementTypes.TimeObservation_2094);
+ } else if(relationshipType == UMLElementTypes.DurationObservationEvent_4019) {
+ types.add(UMLElementTypes.DurationObservation_2093);
+ } else if(relationshipType == UMLElementTypes.InformationFlow_4021) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public class NamedElementDescriptor extends RectangleFigure {
+
+ /**
+ * @generated
+ */
+ private WrappingLabel fNamedElementNameLabel;
+
+ /**
+ * @generated
+ */
+ public NamedElementDescriptor() {
+ this.setLineWidth(1);
+ this.setForegroundColor(ColorConstants.black);
+ createContents();
+ }
+
+ /**
+ * @generated
+ */
+ private void createContents() {
+
+ fNamedElementNameLabel = new WrappingLabel();
+ fNamedElementNameLabel.setText("");
+ fNamedElementNameLabel.setForegroundColor(ColorConstants.black);
+
+ fNamedElementNameLabel.setFont(FNAMEDELEMENTNAMELABEL_FONT);
+
+ this.add(fNamedElementNameLabel);
+
+ }
+
+ /**
+ * @generated
+ */
+ private boolean myUseLocalCoordinates = false;
+
+ /**
+ * @generated
+ */
+ protected boolean useLocalCoordinates() {
+ return myUseLocalCoordinates;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setUseLocalCoordinates(boolean useLocalCoordinates) {
+ myUseLocalCoordinates = useLocalCoordinates;
+ }
+
+ /**
+ * @generated
+ */
+ public WrappingLabel getNamedElementNameLabel() {
+ return fNamedElementNameLabel;
+ }
+
+ }
+
+ /**
+ * @generated
+ */
+ static final Font FNAMEDELEMENTNAMELABEL_FONT = new Font(Display.getCurrent(), "Arial", 10, SWT.BOLD);
+
+ /**
+ * @generated
+ */
+ @Override
+ public Object getPreferredValue(EStructuralFeature feature) {
+ IPreferenceStore preferenceStore = (IPreferenceStore)getDiagramPreferencesHint().getPreferenceStore();
+ Object result = null;
+
+ if(feature == NotationPackage.eINSTANCE.getLineStyle_LineColor() || feature == NotationPackage.eINSTANCE.getFontStyle_FontColor() || feature == NotationPackage.eINSTANCE.getFillStyle_FillColor()) {
+ String prefColor = null;
+ if(feature == NotationPackage.eINSTANCE.getLineStyle_LineColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("InstanceValue", PreferenceConstantHelper.COLOR_LINE);
+ } else if(feature == NotationPackage.eINSTANCE.getFontStyle_FontColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("InstanceValue", PreferenceConstantHelper.COLOR_FONT);
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_FillColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("InstanceValue", PreferenceConstantHelper.COLOR_FILL);
+ }
+ result = FigureUtilities.RGBToInteger(PreferenceConverter.getColor((IPreferenceStore)preferenceStore, prefColor));
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_Transparency() || feature == NotationPackage.eINSTANCE.getFillStyle_Gradient()) {
+ String prefGradient = PreferenceConstantHelper.getElementConstant("InstanceValue", PreferenceConstantHelper.COLOR_GRADIENT);
+ GradientPreferenceConverter gradientPreferenceConverter = new GradientPreferenceConverter(preferenceStore.getString(prefGradient));
+ if(feature == NotationPackage.eINSTANCE.getFillStyle_Transparency()) {
+ result = new Integer(gradientPreferenceConverter.getTransparency());
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_Gradient()) {
+ result = gradientPreferenceConverter.getGradientData();
+ }
+ }
+
+ if(result == null) {
+ result = getStructuralFeatureValue(feature);
+ }
+ return result;
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/InstanceValueNameEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/InstanceValueNameEditPart.java
new file mode 100644
index 00000000000..03d71a2fa41
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/InstanceValueNameEditPart.java
@@ -0,0 +1,791 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EAnnotation;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.emf.transaction.RunnableWithResult;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.AccessibleEditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.requests.DirectEditRequest;
+import org.eclipse.gef.tools.DirectEditManager;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.CompartmentEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
+import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
+import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
+import org.eclipse.gmf.runtime.notation.FontStyle;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
+import org.eclipse.jface.viewers.ICellEditorValidator;
+import org.eclipse.jface.window.Window;
+import org.eclipse.papyrus.diagram.common.directedit.MultilineLabelDirectEditManager;
+import org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition;
+import org.eclipse.papyrus.diagram.common.editpolicies.IMaskManagedLabelEditPolicy;
+import org.eclipse.papyrus.diagram.common.figure.node.ILabelFigure;
+import org.eclipse.papyrus.diagram.common.util.DiagramEditPartsUtil;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLTextSelectionEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.diagram.composite.providers.UMLParserProvider;
+import org.eclipse.papyrus.extensionpoints.editors.Activator;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
+import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
+import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
+import org.eclipse.papyrus.umlutils.ui.VisualInformationPapyrusConstant;
+import org.eclipse.papyrus.umlutils.ui.helper.NameLabelIconHelper;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.AccessibleEvent;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.FontData;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.ui.PlatformUI;
+
+/**
+ * @generated
+ */
+public class InstanceValueNameEditPart extends CompartmentEditPart implements ITextAwareEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 5191;
+
+ /**
+ * @generated
+ */
+ private DirectEditManager manager;
+
+ /**
+ * @generated
+ */
+ private IParser parser;
+
+ /**
+ * @generated
+ */
+ private List<?> parserElements;
+
+ /**
+ * @generated
+ */
+ private String defaultText;
+
+ /**
+ * direct edition mode (default, undefined, registered editor, etc.)
+ *
+ * @generated
+ */
+ protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
+
+ /**
+ * configuration from a registered edit dialog
+ *
+ * @generated
+ */
+ protected IDirectEditorConfiguration configuration;
+
+ /**
+ * @generated
+ */
+ public InstanceValueNameEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
+ installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new CompositeStructureDiagramEditPart.NodeLabelDragPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelTextHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getText();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getText();
+ } else {
+ return ((Label)figure).getText();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelTextHelper(IFigure figure, String text) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setText(text);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setText(text);
+ } else {
+ ((Label)figure).setText(text);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIconHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getIcon();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getIcon();
+ } else {
+ return ((Label)figure).getIcon();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelIconHelper(IFigure figure, Image icon) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setIcon(icon);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setIcon(icon);
+ } else {
+ ((Label)figure).setIcon(icon);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabel(WrappingLabel figure) {
+ unregisterVisuals();
+ setFigure(figure);
+ defaultText = getLabelTextHelper(figure);
+ registerVisuals();
+ refreshVisuals();
+ }
+
+ /**
+ * @generated
+ */
+ protected List getModelChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject getParserElement() {
+ return resolveSemanticElement();
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIcon() {
+ EObject parserElement = getParserElement();
+ if(parserElement == null) {
+ return null;
+ }
+
+ List<View> views = DiagramEditPartsUtil.findViews(parserElement, getViewer());
+ for(View view : views) {
+ if(NameLabelIconHelper.showLabelIcon(view)) {
+ return UMLElementTypes.getImage(parserElement.eClass());
+ }
+ }
+ return null;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelText() {
+ String text = null;
+ EObject parserElement = getParserElement();
+ if(parserElement != null && getParser() != null) {
+ text = getParser().getPrintString(new EObjectAdapter(parserElement), getParserOptions().intValue());
+ }
+ if(text == null || text.length() == 0) {
+ text = defaultText;
+ }
+ return text;
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabelText(String text) {
+ setLabelTextHelper(getFigure(), text);
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public String getEditText() {
+ if(getParserElement() == null || getParser() == null) {
+ return ""; //$NON-NLS-1$
+ }
+ return getParser().getEditString(new EObjectAdapter(getParserElement()), getParserOptions().intValue());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean isEditable() {
+ return getParser() != null;
+ }
+
+ /**
+ * @generated
+ */
+ public ICellEditorValidator getEditTextValidator() {
+ return new ICellEditorValidator() {
+
+ public String isValid(final Object value) {
+ if(value instanceof String) {
+ final EObject element = getParserElement();
+ final IParser parser = getParser();
+ try {
+ IParserEditStatus valid = (IParserEditStatus)getEditingDomain().runExclusive(new RunnableWithResult.Impl() {
+
+ public void run() {
+ setResult(parser.isValidEditString(new EObjectAdapter(element), (String)value));
+ }
+ });
+ return valid.getCode() == ParserEditStatus.EDITABLE ? null : valid.getMessage();
+ } catch (InterruptedException ie) {
+ ie.printStackTrace();
+ }
+ }
+
+ // shouldn't get here
+ return null;
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ public IContentAssistProcessor getCompletionProcessor() {
+ if(getParserElement() == null || getParser() == null) {
+ return null;
+ }
+ return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
+ }
+
+ /**
+ * @generated
+ */
+ public ParserOptions getParserOptions() {
+ return ParserOptions.NONE;
+ }
+
+ /**
+ * @generated
+ */
+ public IParser getParser() {
+ if(parser == null) {
+ parser = UMLParserProvider.getParser(UMLElementTypes.InstanceValue_2108, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.diagram.composite.edit.parts.InstanceValueNameEditPart.VISUAL_ID));
+ }
+ return parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected DirectEditManager getManager() {
+ if(manager == null) {
+ setManager(new MultilineLabelDirectEditManager(this, MultilineLabelDirectEditManager.getTextCellEditorClass(this), UMLEditPartFactory.getTextCellEditorLocator(this)));
+ }
+ return manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setManager(DirectEditManager manager) {
+ this.manager = manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit() {
+ getManager().show();
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit(Point eventLocation) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(eventLocation.getSWTPoint());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void performDirectEdit(char initialCharacter) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(initialCharacter);
+ } else {
+ performDirectEdit();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEditRequest(Request request) {
+
+ final Request theRequest = request;
+
+ if(IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
+ directEditionMode = getDirectEditionType();
+ }
+ switch(directEditionMode) {
+ case IDirectEdition.NO_DIRECT_EDITION:
+ // no direct edition mode => does nothing
+ return;
+ case IDirectEdition.EXTENDED_DIRECT_EDITOR:
+ updateExtendedEditorConfiguration();
+ if(configuration == null || configuration.getLanguage() == null) {
+ performDefaultDirectEditorEdit(theRequest);
+ } else {
+ configuration.preEditAction(resolveSemanticElement());
+ Dialog dialog = null;
+ if(configuration instanceof IPopupEditorConfiguration) {
+ IPopupEditorHelper helper = ((IPopupEditorConfiguration)configuration).createPopupEditorHelper(this);
+ helper.showEditor();
+ return;
+ } else if(configuration instanceof IAdvancedEditorConfiguration) {
+ dialog = ((IAdvancedEditorConfiguration)configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
+ } else if(configuration instanceof IDirectEditorConfiguration) {
+ dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), ((IDirectEditorConfiguration)configuration).getTextToEdit(resolveSemanticElement()), (IDirectEditorConfiguration)configuration);
+ } else {
+ return;
+ }
+ final Dialog finalDialog = dialog;
+
+ if(Window.OK == dialog.open()) {
+ TransactionalEditingDomain domain = getEditingDomain();
+ RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
+
+ @Override
+ protected void doExecute() {
+ configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog)finalDialog).getValue());
+
+ }
+ };
+ domain.getCommandStack().execute(command);
+ }
+ }
+ break;
+ case IDirectEdition.DEFAULT_DIRECT_EDITOR:
+
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ break;
+ default:
+ break;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshLabel();
+ refreshFont();
+ refreshFontColor();
+ refreshUnderline();
+ refreshStrikeThrough();
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshLabel() {
+ EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
+ if(maskLabelPolicy == null) {
+ setLabelTextHelper(getFigure(), getLabelText());
+ setLabelIconHelper(getFigure(), getLabelIcon());
+ }
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshUnderline() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextUnderline(style.isUnderline());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshStrikeThrough() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextStrikeThrough(style.isStrikeThrough());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshFont() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null) {
+ FontData fontData = new FontData(style.getFontName(), style.getFontHeight(), (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
+ setFont(fontData);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setFontColor(Color color) {
+ getFigure().setForegroundColor(color);
+ }
+
+ /**
+ * @generated
+ */
+ protected void addSemanticListeners() {
+ if(getParser() instanceof ISemanticParser) {
+ EObject element = resolveSemanticElement();
+ parserElements = ((ISemanticParser)getParser()).getSemanticElementsBeingParsed(element);
+ for(int i = 0; i < parserElements.size(); i++) {
+ addListenerFilter("SemanticModel" + i, this, (EObject)parserElements.get(i)); //$NON-NLS-1$
+ }
+ } else {
+ super.addSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeSemanticListeners() {
+ if(parserElements != null) {
+ for(int i = 0; i < parserElements.size(); i++) {
+ removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
+ }
+ } else {
+ super.removeSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected AccessibleEditPart getAccessibleEditPart() {
+ if(accessibleEP == null) {
+ accessibleEP = new AccessibleGraphicalEditPart() {
+
+ public void getName(AccessibleEvent e) {
+ e.result = getLabelTextHelper(getFigure());
+ }
+ };
+ }
+ return accessibleEP;
+ }
+
+ /**
+ * @generated
+ */
+ private View getFontStyleOwnerView() {
+ return (View)getModel();
+ }
+
+ /**
+ * Returns the kind of associated editor for direct edition.
+ *
+ * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition
+ * @generated
+ */
+ public int getDirectEditionType() {
+ if(checkExtendedEditor()) {
+ initExtendedEditorConfiguration();
+ return IDirectEdition.EXTENDED_DIRECT_EDITOR;
+ }
+ if(checkDefaultEdition()) {
+ return IDirectEdition.DEFAULT_DIRECT_EDITOR;
+ }
+
+ // not a named element. no specific editor => do nothing
+ return IDirectEdition.NO_DIRECT_EDITION;
+ }
+
+ /**
+ * Checks if an extended editor is present.
+ *
+ * @return <code>true</code> if an extended editor is present.
+ * @generated
+ */
+ protected boolean checkExtendedEditor() {
+ if(resolveSemanticElement() != null) {
+ return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ return false;
+ }
+
+ /**
+ * Checks if a default direct edition is available
+ *
+ * @return <code>true</code> if a default direct edition is available
+ * @generated
+ */
+ protected boolean checkDefaultEdition() {
+ return (getParser() != null);
+ }
+
+ /**
+ * Initializes the extended editor configuration
+ *
+ * @generated
+ */
+ protected void initExtendedEditorConfiguration() {
+ if(configuration == null) {
+ final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("")) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else {
+ configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ }
+ }
+
+ /**
+ * Updates the preference configuration
+ *
+ * @generated
+ */
+ protected void updateExtendedEditorConfiguration() {
+ String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("") && languagePreferred != configuration.getLanguage()) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else if(IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
+ configuration = null;
+ }
+ }
+
+ /**
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
+ protected void performDefaultDirectEditorEdit(final Request theRequest) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void addNotationalListeners() {
+ super.addNotationalListeners();
+ addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeNotationalListeners() {
+ super.removeNotationalListeners();
+ removeListenerFilter("PrimaryView"); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void handleNotificationEvent(Notification event) {
+ refreshLabel();
+ Object feature = event.getFeature();
+ if(NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
+ Integer c = (Integer)event.getNewValue();
+ setFontColor(DiagramColorRegistry.getInstance().getColor(c));
+ } else if(NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
+ refreshUnderline();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
+ refreshStrikeThrough();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
+ refreshFont();
+ } else {
+ if(getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
+ refreshLabel();
+ }
+ if(getParser() instanceof ISemanticParser) {
+ ISemanticParser modelParser = (ISemanticParser)getParser();
+ if(modelParser.areSemanticElementsAffected(null, event)) {
+ removeSemanticListeners();
+ if(resolveSemanticElement() != null) {
+ addSemanticListeners();
+ }
+ refreshLabel();
+ }
+ }
+ }
+
+ if(event.getNewValue() instanceof EAnnotation && VisualInformationPapyrusConstant.DISPLAY_NAMELABELICON.equals(((EAnnotation)event.getNewValue()).getSource())) {
+ refreshLabel();
+ }
+
+ super.handleNotificationEvent(event);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createFigure() {
+ // Parent should assign one using setLabel() method
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ private static final String ADD_PARENT_MODEL = "AddParentModel";
+
+ /**
+ * @generated
+ */
+ public void activate() {
+ super.activate();
+ addOwnerElementListeners();
+ }
+
+ /**
+ * @generated
+ */
+ protected void addOwnerElementListeners() {
+ addListenerFilter(ADD_PARENT_MODEL, this, ((View)getParent().getModel())); //$NON-NLS-1$
+
+ }
+
+ /**
+ * @generated
+ */
+ public void deactivate() {
+ removeOwnerElementListeners();
+ super.deactivate();
+
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeOwnerElementListeners() {
+ removeListenerFilter(ADD_PARENT_MODEL);
+
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/InteractionCompositeCompartmentEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/InteractionCompositeCompartmentEditPart.java
new file mode 100644
index 00000000000..f49a35a8563
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/InteractionCompositeCompartmentEditPart.java
@@ -0,0 +1,123 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import org.eclipse.draw2d.geometry.Dimension;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.draw2d.geometry.Rectangle;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.GraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ShapeCompartmentEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.CreationEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.DragDropEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.ResizableCompartmentEditPolicy;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.diagram.common.editparts.NoScrollBarShapeCompartmentEditPart;
+import org.eclipse.papyrus.diagram.common.editpolicies.CustomContainerEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.DuplicatePasteEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.CustomDiagramDragDropEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.PortInCompartmentCreationEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.RemoveOrphanViewPolicy;
+import org.eclipse.papyrus.diagram.composite.edit.policies.InteractionCompositeCompartmentItemSemanticEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.Messages;
+
+/**
+ * @generated
+ */
+public class InteractionCompositeCompartmentEditPart
+
+extends NoScrollBarShapeCompartmentEditPart
+
+{
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 7064;
+
+ /**
+ * @generated
+ */
+ public InteractionCompositeCompartmentEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ public String getCompartmentName() {
+ return Messages.InteractionCompositeCompartmentEditPart_title;
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new ResizableCompartmentEditPolicy());
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new InteractionCompositeCompartmentItemSemanticEditPolicy());
+ installEditPolicy(EditPolicyRoles.CREATION_ROLE, new CreationEditPolicy());
+ installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new DragDropEditPolicy());
+ installEditPolicy(DuplicatePasteEditPolicy.PASTE_ROLE, new DuplicatePasteEditPolicy());
+ installEditPolicy("REMOVE_ORPHAN_VIEW", new RemoveOrphanViewPolicy()); //$NON-NLS-1$
+ installEditPolicy(EditPolicy.GRAPHICAL_NODE_ROLE, new CustomContainerEditPolicy());
+ installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new CustomDiagramDragDropEditPolicy());
+ installEditPolicy(EditPolicyRoles.CREATION_ROLE, new PortInCompartmentCreationEditPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ protected void setRatio(Double ratio) {
+ if(getFigure().getParent().getLayoutManager() instanceof ConstrainedToolbarLayout) {
+ super.setRatio(ratio);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void handleNotificationEvent(Notification notification) {
+ Object feature = notification.getFeature();
+ if(NotationPackage.eINSTANCE.getSize_Width().equals(feature) || NotationPackage.eINSTANCE.getSize_Height().equals(feature) || NotationPackage.eINSTANCE.getLocation_X().equals(feature) || NotationPackage.eINSTANCE.getLocation_Y().equals(feature)) {
+ refreshBounds();
+ }
+ super.handleNotificationEvent(notification);
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshBounds() {
+ int width = ((Integer)getStructuralFeatureValue(NotationPackage.eINSTANCE.getSize_Width())).intValue();
+ int height = ((Integer)getStructuralFeatureValue(NotationPackage.eINSTANCE.getSize_Height())).intValue();
+ Dimension size = new Dimension(width, height);
+ int x = ((Integer)getStructuralFeatureValue(NotationPackage.eINSTANCE.getLocation_X())).intValue();
+ int y = ((Integer)getStructuralFeatureValue(NotationPackage.eINSTANCE.getLocation_Y())).intValue();
+ Point loc = new Point(x, y);
+ ((GraphicalEditPart)getParent()).setLayoutConstraint(this, getFigure(), new Rectangle(loc, size));
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshBounds();
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/InteractionCompositeCompartmentEditPartCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/InteractionCompositeCompartmentEditPartCN.java
new file mode 100644
index 00000000000..b6198cf2ed0
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/InteractionCompositeCompartmentEditPartCN.java
@@ -0,0 +1,123 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import org.eclipse.draw2d.geometry.Dimension;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.draw2d.geometry.Rectangle;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.GraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ShapeCompartmentEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.CreationEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.DragDropEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.ResizableCompartmentEditPolicy;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.diagram.common.editparts.NoScrollBarShapeCompartmentEditPart;
+import org.eclipse.papyrus.diagram.common.editpolicies.CustomContainerEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.DuplicatePasteEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.CustomDiagramDragDropEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.PortInCompartmentCreationEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.RemoveOrphanViewPolicy;
+import org.eclipse.papyrus.diagram.composite.edit.policies.InteractionCompositeCompartmentItemSemanticEditPolicyCN;
+import org.eclipse.papyrus.diagram.composite.part.Messages;
+
+/**
+ * @generated
+ */
+public class InteractionCompositeCompartmentEditPartCN
+
+extends NoScrollBarShapeCompartmentEditPart
+
+{
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 7051;
+
+ /**
+ * @generated
+ */
+ public InteractionCompositeCompartmentEditPartCN(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ public String getCompartmentName() {
+ return Messages.InteractionCompositeCompartmentEditPartCN_title;
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new ResizableCompartmentEditPolicy());
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new InteractionCompositeCompartmentItemSemanticEditPolicyCN());
+ installEditPolicy(EditPolicyRoles.CREATION_ROLE, new CreationEditPolicy());
+ installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new DragDropEditPolicy());
+ installEditPolicy(DuplicatePasteEditPolicy.PASTE_ROLE, new DuplicatePasteEditPolicy());
+ installEditPolicy("REMOVE_ORPHAN_VIEW", new RemoveOrphanViewPolicy()); //$NON-NLS-1$
+ installEditPolicy(EditPolicy.GRAPHICAL_NODE_ROLE, new CustomContainerEditPolicy());
+ installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new CustomDiagramDragDropEditPolicy());
+ installEditPolicy(EditPolicyRoles.CREATION_ROLE, new PortInCompartmentCreationEditPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ protected void setRatio(Double ratio) {
+ if(getFigure().getParent().getLayoutManager() instanceof ConstrainedToolbarLayout) {
+ super.setRatio(ratio);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void handleNotificationEvent(Notification notification) {
+ Object feature = notification.getFeature();
+ if(NotationPackage.eINSTANCE.getSize_Width().equals(feature) || NotationPackage.eINSTANCE.getSize_Height().equals(feature) || NotationPackage.eINSTANCE.getLocation_X().equals(feature) || NotationPackage.eINSTANCE.getLocation_Y().equals(feature)) {
+ refreshBounds();
+ }
+ super.handleNotificationEvent(notification);
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshBounds() {
+ int width = ((Integer)getStructuralFeatureValue(NotationPackage.eINSTANCE.getSize_Width())).intValue();
+ int height = ((Integer)getStructuralFeatureValue(NotationPackage.eINSTANCE.getSize_Height())).intValue();
+ Dimension size = new Dimension(width, height);
+ int x = ((Integer)getStructuralFeatureValue(NotationPackage.eINSTANCE.getLocation_X())).intValue();
+ int y = ((Integer)getStructuralFeatureValue(NotationPackage.eINSTANCE.getLocation_Y())).intValue();
+ Point loc = new Point(x, y);
+ ((GraphicalEditPart)getParent()).setLayoutConstraint(this, getFigure(), new Rectangle(loc, size));
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshBounds();
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/InteractionCompositeEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/InteractionCompositeEditPart.java
new file mode 100644
index 00000000000..e90b0bdeb90
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/InteractionCompositeEditPart.java
@@ -0,0 +1,5406 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.ArrayList;
+import java.util.LinkedList;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.PositionConstants;
+import org.eclipse.draw2d.Shape;
+import org.eclipse.draw2d.StackLayout;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EStructuralFeature;
+import org.eclipse.gef.EditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.editpolicies.LayoutEditPolicy;
+import org.eclipse.gef.editpolicies.NonResizableEditPolicy;
+import org.eclipse.gef.requests.CreateRequest;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IBorderItemEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.CreationEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.DragDropEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.diagram.ui.figures.IBorderItemLocator;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.FigureUtilities;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.gef.ui.figures.DefaultSizeNodeFigure;
+import org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.jface.preference.PreferenceConverter;
+import org.eclipse.papyrus.diagram.common.editparts.NamedElementEditPart;
+import org.eclipse.papyrus.diagram.common.editpolicies.AffixedNodeAlignmentEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.BorderItemResizableEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.HyperLinkPopupBarEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.QualifiedNameDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.ShowHideClassifierContentsEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.ShowHideCompartmentEditPolicy;
+import org.eclipse.papyrus.diagram.common.helper.PreferenceInitializerForElementHelper;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.BehaviorLayoutEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.BehaviorResizableShapeEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.CustomDiagramDragDropEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.RemoveOrphanViewPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.figures.InteractionCompositeFigure;
+import org.eclipse.papyrus.diagram.composite.custom.locators.PortPositionLocator;
+import org.eclipse.papyrus.diagram.composite.edit.policies.InteractionCompositeItemSemanticEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorPlugin;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter;
+import org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper;
+import org.eclipse.swt.graphics.Color;
+
+/**
+ * @generated
+ */
+public class InteractionCompositeEditPart extends
+
+NamedElementEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 2061;
+
+ /**
+ * @generated
+ */
+ protected IFigure contentPane;
+
+ /**
+ * @generated
+ */
+ protected IFigure primaryShape;
+
+ /**
+ * @generated
+ */
+ public InteractionCompositeEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ installEditPolicy(EditPolicyRoles.CREATION_ROLE, new CreationEditPolicy());
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new InteractionCompositeItemSemanticEditPolicy());
+ installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new DragDropEditPolicy());
+ installEditPolicy(EditPolicy.LAYOUT_ROLE, createLayoutEditPolicy());
+ installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new CustomDiagramDragDropEditPolicy());
+ installEditPolicy(QualifiedNameDisplayEditPolicy.QUALIFIED_NAME_POLICY, new QualifiedNameDisplayEditPolicy());
+ installEditPolicy(AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeNodeLabelDisplayEditPolicy());
+ installEditPolicy(EditPolicyRoles.POPUPBAR_ROLE, new HyperLinkPopupBarEditPolicy());
+ installEditPolicy(EditPolicy.LAYOUT_ROLE, new BehaviorLayoutEditPolicy());
+ installEditPolicy(ShowHideClassifierContentsEditPolicy.SHOW_HIDE_CLASSIFIER_CONTENTS_POLICY, new ShowHideClassifierContentsEditPolicy());
+ installEditPolicy(ShowHideCompartmentEditPolicy.SHOW_HIDE_COMPARTMENT_POLICY, new ShowHideCompartmentEditPolicy());
+ installEditPolicy(AffixedNodeAlignmentEditPolicy.AFFIXED_CHILD_ALIGNMENT_ROLE, new AffixedNodeAlignmentEditPolicy());
+ installEditPolicy("REMOVE_ORPHAN_VIEW", new RemoveOrphanViewPolicy()); //$NON-NLS-1$
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new BehaviorResizableShapeEditPolicy());
+ // XXX need an SCR to runtime to have another abstract superclass that would let children add reasonable editpolicies
+ // removeEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CONNECTION_HANDLES_ROLE);
+ }
+
+ /**
+ * Papyrus codeGen
+ *
+ * @generated
+ **/
+ protected void handleNotificationEvent(Notification event) {
+ super.handleNotificationEvent(event);
+
+ }
+
+ /**
+ * @generated
+ */
+ protected LayoutEditPolicy createLayoutEditPolicy() {
+ org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy lep = new org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy() {
+
+ protected EditPolicy createChildEditPolicy(EditPart child) {
+ View childView = (View)child.getModel();
+ switch(UMLVisualIDRegistry.getVisualID(childView)) {
+ case PortEditPart.VISUAL_ID:
+ case ParameterEditPart.VISUAL_ID:
+
+ return new BorderItemResizableEditPolicy();
+
+ }
+ EditPolicy result = child.getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(result == null) {
+ result = new NonResizableEditPolicy();
+ }
+ return result;
+ }
+
+ protected Command getMoveChildrenCommand(Request request) {
+ return null;
+ }
+
+ protected Command getCreateCommand(CreateRequest request) {
+ return null;
+ }
+ };
+ return lep;
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createNodeShape() {
+ return primaryShape = new InteractionCompositeFigure();
+ }
+
+ /**
+ * @generated
+ */
+ public InteractionCompositeFigure getPrimaryShape() {
+ return (InteractionCompositeFigure)primaryShape;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean addFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof InteractionCompositeNameEditPart) {
+ ((InteractionCompositeNameEditPart)childEditPart).setLabel(getPrimaryShape().getNameLabel());
+ return true;
+ }
+
+ if(childEditPart instanceof InteractionCompositeCompartmentEditPart) {
+ IFigure pane = getPrimaryShape().getCompositeCompartmentFigure();
+ setupContentPane(pane); // FIXME each comparment should handle his content pane in his own way
+ pane.add(((InteractionCompositeCompartmentEditPart)childEditPart).getFigure());
+ return true;
+ }
+
+ //Papyrus Gencode :Affixed Port locator
+ if(childEditPart instanceof PortEditPart) {
+ IBorderItemLocator locator = new PortPositionLocator(getMainFigure(), PositionConstants.NONE);
+ getBorderedFigure().getBorderItemContainer().add(((PortEditPart)childEditPart).getFigure(), locator);
+ return true;
+ }
+
+ //Papyrus Gencode :Affixed Port locator
+ if(childEditPart instanceof ParameterEditPart) {
+ IBorderItemLocator locator = new PortPositionLocator(getMainFigure(), PositionConstants.NONE);
+ getBorderedFigure().getBorderItemContainer().add(((ParameterEditPart)childEditPart).getFigure(), locator);
+ return true;
+ }
+
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean removeFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof InteractionCompositeNameEditPart) {
+ return true;
+ }
+ if(childEditPart instanceof InteractionCompositeCompartmentEditPart) {
+ IFigure pane = getPrimaryShape().getCompositeCompartmentFigure();
+ setupContentPane(pane); // FIXME each comparment should handle his content pane in his own way
+ pane.remove(((InteractionCompositeCompartmentEditPart)childEditPart).getFigure());
+ return true;
+ }
+ if(childEditPart instanceof PortEditPart) {
+ getBorderedFigure().getBorderItemContainer().remove(((PortEditPart)childEditPart).getFigure());
+ return true;
+ }
+ if(childEditPart instanceof ParameterEditPart) {
+ getBorderedFigure().getBorderItemContainer().remove(((ParameterEditPart)childEditPart).getFigure());
+ return true;
+ }
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected void addChildVisual(EditPart childEditPart, int index) {
+ if(addFixedChild(childEditPart)) {
+ return;
+ }
+ super.addChildVisual(childEditPart, -1);
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeChildVisual(EditPart childEditPart) {
+ if(removeFixedChild(childEditPart)) {
+ return;
+ }
+ super.removeChildVisual(childEditPart);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure getContentPaneFor(IGraphicalEditPart editPart) {
+ if(editPart instanceof InteractionCompositeCompartmentEditPart) {
+ return getPrimaryShape().getCompositeCompartmentFigure();
+ }
+ if(editPart instanceof IBorderItemEditPart) {
+ return getBorderedFigure().getBorderItemContainer();
+ }
+ return getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ protected NodeFigure createNodePlate() {
+ String prefElementId = "Interaction";
+ IPreferenceStore store = UMLDiagramEditorPlugin.getInstance().getPreferenceStore();
+ String preferenceConstantWitdh = PreferenceInitializerForElementHelper.getpreferenceKey(getNotationView(), prefElementId, PreferenceConstantHelper.WIDTH);
+ String preferenceConstantHeight = PreferenceInitializerForElementHelper.getpreferenceKey(getNotationView(), prefElementId, PreferenceConstantHelper.HEIGHT);
+ DefaultSizeNodeFigure result = new DefaultSizeNodeFigure(store.getInt(preferenceConstantWitdh), store.getInt(preferenceConstantHeight));
+
+ return result;
+ }
+
+ /**
+ * Creates figure for this edit part.
+ *
+ * Body of this method does not depend on settings in generation model
+ * so you may safely remove <i>generated</i> tag and modify it.
+ *
+ * @generated
+ */
+ protected NodeFigure createMainFigure() {
+ NodeFigure figure = createNodePlate();
+ figure.setLayoutManager(new StackLayout());
+ IFigure shape = createNodeShape();
+ figure.add(shape);
+ contentPane = setupContentPane(shape);
+ return figure;
+ }
+
+ /**
+ * Default implementation treats passed figure as content pane.
+ * Respects layout one may have set for generated figure.
+ *
+ * @param nodeShape
+ * instance of generated figure class
+ * @generated
+ */
+ protected IFigure setupContentPane(IFigure nodeShape) {
+ if(nodeShape.getLayoutManager() == null) {
+ ConstrainedToolbarLayout layout = new ConstrainedToolbarLayout();
+ layout.setSpacing(5);
+ nodeShape.setLayoutManager(layout);
+ }
+ return nodeShape; // use nodeShape itself as contentPane
+ }
+
+ /**
+ * @generated
+ */
+ public IFigure getContentPane() {
+ if(contentPane != null) {
+ return contentPane;
+ }
+ return super.getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ protected void setForegroundColor(Color color) {
+ if(primaryShape != null) {
+ primaryShape.setForegroundColor(color);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLineWidth(int width) {
+ if(primaryShape instanceof Shape) {
+ ((Shape)primaryShape).setLineWidth(width);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLineType(int style) {
+ if(primaryShape instanceof Shape) {
+ ((Shape)primaryShape).setLineStyle(style);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public EditPart getPrimaryChildEditPart() {
+ return getChildBySemanticHint(UMLVisualIDRegistry.getType(InteractionCompositeNameEditPart.VISUAL_ID));
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnSource() {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(12);
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ types.add(UMLElementTypes.Substitution_4011);
+ types.add(UMLElementTypes.Realization_4006);
+ types.add(UMLElementTypes.Manifestation_4012);
+ types.add(UMLElementTypes.Abstraction_4007);
+ types.add(UMLElementTypes.Usage_4008);
+ types.add(UMLElementTypes.Deployment_4009);
+ types.add(UMLElementTypes.Dependency_4017);
+ types.add(UMLElementTypes.Dependency_4010);
+ types.add(UMLElementTypes.Generalization_4015);
+ types.add(UMLElementTypes.InformationFlow_4021);
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnSourceAndTarget(IGraphicalEditPart targetEditPart) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMATypesForTarget(IElementType relationshipType) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(relationshipType == UMLElementTypes.ComponentRealization_4004) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InterfaceRealization_4005) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Substitution_4011) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Realization_4006) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Manifestation_4012) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Abstraction_4007) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Usage_4008) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Deployment_4009) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4017) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4010) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Generalization_4015) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ } else if(relationshipType == UMLElementTypes.InformationFlow_4021) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnTarget() {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(17);
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ types.add(UMLElementTypes.Substitution_4011);
+ types.add(UMLElementTypes.Realization_4006);
+ types.add(UMLElementTypes.Manifestation_4012);
+ types.add(UMLElementTypes.Abstraction_4007);
+ types.add(UMLElementTypes.Usage_4008);
+ types.add(UMLElementTypes.Deployment_4009);
+ types.add(UMLElementTypes.Dependency_4017);
+ types.add(UMLElementTypes.Dependency_4010);
+ types.add(UMLElementTypes.Generalization_4015);
+ types.add(UMLElementTypes.TimeObservationEvent_4018);
+ types.add(UMLElementTypes.DurationObservationEvent_4019);
+ types.add(UMLElementTypes.InformationItemRepresented_4020);
+ types.add(UMLElementTypes.InformationFlow_4021);
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMATypesForSource(IElementType relationshipType) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(relationshipType == UMLElementTypes.CommentAnnotatedElement_4002) {
+ types.add(UMLElementTypes.Comment_2109);
+ types.add(UMLElementTypes.Comment_3097);
+ } else if(relationshipType == UMLElementTypes.ConstraintConstrainedElement_4003) {
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.ComponentRealization_4004) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InterfaceRealization_4005) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Substitution_4011) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Realization_4006) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Manifestation_4012) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Abstraction_4007) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Usage_4008) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Deployment_4009) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4017) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4010) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Generalization_4015) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ } else if(relationshipType == UMLElementTypes.TimeObservationEvent_4018) {
+ types.add(UMLElementTypes.TimeObservation_2094);
+ } else if(relationshipType == UMLElementTypes.DurationObservationEvent_4019) {
+ types.add(UMLElementTypes.DurationObservation_2093);
+ } else if(relationshipType == UMLElementTypes.InformationItemRepresented_4020) {
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.InformationItem_3094);
+ } else if(relationshipType == UMLElementTypes.InformationFlow_4021) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public Object getPreferredValue(EStructuralFeature feature) {
+ IPreferenceStore preferenceStore = (IPreferenceStore)getDiagramPreferencesHint().getPreferenceStore();
+ Object result = null;
+
+ if(feature == NotationPackage.eINSTANCE.getLineStyle_LineColor() || feature == NotationPackage.eINSTANCE.getFontStyle_FontColor() || feature == NotationPackage.eINSTANCE.getFillStyle_FillColor()) {
+ String prefColor = null;
+ if(feature == NotationPackage.eINSTANCE.getLineStyle_LineColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("Interaction", PreferenceConstantHelper.COLOR_LINE);
+ } else if(feature == NotationPackage.eINSTANCE.getFontStyle_FontColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("Interaction", PreferenceConstantHelper.COLOR_FONT);
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_FillColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("Interaction", PreferenceConstantHelper.COLOR_FILL);
+ }
+ result = FigureUtilities.RGBToInteger(PreferenceConverter.getColor((IPreferenceStore)preferenceStore, prefColor));
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_Transparency() || feature == NotationPackage.eINSTANCE.getFillStyle_Gradient()) {
+ String prefGradient = PreferenceConstantHelper.getElementConstant("Interaction", PreferenceConstantHelper.COLOR_GRADIENT);
+ GradientPreferenceConverter gradientPreferenceConverter = new GradientPreferenceConverter(preferenceStore.getString(prefGradient));
+ if(feature == NotationPackage.eINSTANCE.getFillStyle_Transparency()) {
+ result = new Integer(gradientPreferenceConverter.getTransparency());
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_Gradient()) {
+ result = gradientPreferenceConverter.getGradientData();
+ }
+ }
+
+ if(result == null) {
+ result = getStructuralFeatureValue(feature);
+ }
+ return result;
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/InteractionCompositeEditPartCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/InteractionCompositeEditPartCN.java
new file mode 100644
index 00000000000..be275e77b37
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/InteractionCompositeEditPartCN.java
@@ -0,0 +1,5408 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.ArrayList;
+import java.util.LinkedList;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.PositionConstants;
+import org.eclipse.draw2d.Shape;
+import org.eclipse.draw2d.StackLayout;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EStructuralFeature;
+import org.eclipse.gef.EditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.editpolicies.LayoutEditPolicy;
+import org.eclipse.gef.editpolicies.NonResizableEditPolicy;
+import org.eclipse.gef.requests.CreateRequest;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IBorderItemEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.CreationEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.DragDropEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.diagram.ui.figures.IBorderItemLocator;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.FigureUtilities;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.gef.ui.figures.DefaultSizeNodeFigure;
+import org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.jface.preference.PreferenceConverter;
+import org.eclipse.papyrus.diagram.common.editparts.NamedElementEditPart;
+import org.eclipse.papyrus.diagram.common.editpolicies.AffixedNodeAlignmentEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.BorderItemResizableEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.HyperLinkPopupBarEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.QualifiedNameDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.ShowHideClassifierContentsEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.ShowHideCompartmentEditPolicy;
+import org.eclipse.papyrus.diagram.common.helper.PreferenceInitializerForElementHelper;
+import org.eclipse.papyrus.diagram.composite.custom.edit.parts.ConstrainedNamedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.BehaviorLayoutEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.BehaviorResizableShapeEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.CustomDiagramDragDropEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.NoScrollBehaviorResizableShapeEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.RemoveOrphanViewPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.figures.InteractionCompositeFigure;
+import org.eclipse.papyrus.diagram.composite.custom.locators.PortPositionLocator;
+import org.eclipse.papyrus.diagram.composite.edit.policies.InteractionCompositeItemSemanticEditPolicyCN;
+import org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorPlugin;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter;
+import org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper;
+import org.eclipse.swt.graphics.Color;
+
+/**
+ * @generated
+ */
+public class InteractionCompositeEditPartCN extends
+
+ConstrainedNamedElementEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 3073;
+
+ /**
+ * @generated
+ */
+ protected IFigure contentPane;
+
+ /**
+ * @generated
+ */
+ protected IFigure primaryShape;
+
+ /**
+ * @generated
+ */
+ public InteractionCompositeEditPartCN(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ installEditPolicy(EditPolicyRoles.CREATION_ROLE, new CreationEditPolicy());
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new InteractionCompositeItemSemanticEditPolicyCN());
+ installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new DragDropEditPolicy());
+ installEditPolicy(EditPolicy.LAYOUT_ROLE, createLayoutEditPolicy());
+ installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new CustomDiagramDragDropEditPolicy());
+ installEditPolicy(QualifiedNameDisplayEditPolicy.QUALIFIED_NAME_POLICY, new QualifiedNameDisplayEditPolicy());
+ installEditPolicy(AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeNodeLabelDisplayEditPolicy());
+ installEditPolicy(EditPolicyRoles.POPUPBAR_ROLE, new HyperLinkPopupBarEditPolicy());
+ installEditPolicy(EditPolicy.LAYOUT_ROLE, new BehaviorLayoutEditPolicy());
+ installEditPolicy(ShowHideClassifierContentsEditPolicy.SHOW_HIDE_CLASSIFIER_CONTENTS_POLICY, new ShowHideClassifierContentsEditPolicy());
+ installEditPolicy(ShowHideCompartmentEditPolicy.SHOW_HIDE_COMPARTMENT_POLICY, new ShowHideCompartmentEditPolicy());
+ installEditPolicy(AffixedNodeAlignmentEditPolicy.AFFIXED_CHILD_ALIGNMENT_ROLE, new AffixedNodeAlignmentEditPolicy());
+ installEditPolicy("REMOVE_ORPHAN_VIEW", new RemoveOrphanViewPolicy()); //$NON-NLS-1$
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new NoScrollBehaviorResizableShapeEditPolicy());
+ // XXX need an SCR to runtime to have another abstract superclass that would let children add reasonable editpolicies
+ // removeEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CONNECTION_HANDLES_ROLE);
+ }
+
+ /**
+ * Papyrus codeGen
+ *
+ * @generated
+ **/
+ protected void handleNotificationEvent(Notification event) {
+ super.handleNotificationEvent(event);
+
+ }
+
+ /**
+ * @generated
+ */
+ protected LayoutEditPolicy createLayoutEditPolicy() {
+ org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy lep = new org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy() {
+
+ protected EditPolicy createChildEditPolicy(EditPart child) {
+ View childView = (View)child.getModel();
+ switch(UMLVisualIDRegistry.getVisualID(childView)) {
+ case PortEditPart.VISUAL_ID:
+ case ParameterEditPart.VISUAL_ID:
+
+ return new BorderItemResizableEditPolicy();
+
+ }
+ EditPolicy result = child.getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(result == null) {
+ result = new NonResizableEditPolicy();
+ }
+ return result;
+ }
+
+ protected Command getMoveChildrenCommand(Request request) {
+ return null;
+ }
+
+ protected Command getCreateCommand(CreateRequest request) {
+ return null;
+ }
+ };
+ return lep;
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createNodeShape() {
+ return primaryShape = new InteractionCompositeFigure();
+ }
+
+ /**
+ * @generated
+ */
+ public InteractionCompositeFigure getPrimaryShape() {
+ return (InteractionCompositeFigure)primaryShape;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean addFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof InteractionCompositeNameEditPartCN) {
+ ((InteractionCompositeNameEditPartCN)childEditPart).setLabel(getPrimaryShape().getNameLabel());
+ return true;
+ }
+
+ if(childEditPart instanceof InteractionCompositeCompartmentEditPartCN) {
+ IFigure pane = getPrimaryShape().getCompositeCompartmentFigure();
+ setupContentPane(pane); // FIXME each comparment should handle his content pane in his own way
+ pane.add(((InteractionCompositeCompartmentEditPartCN)childEditPart).getFigure());
+ return true;
+ }
+
+ //Papyrus Gencode :Affixed Port locator
+ if(childEditPart instanceof PortEditPart) {
+ IBorderItemLocator locator = new PortPositionLocator(getMainFigure(), PositionConstants.NONE);
+ getBorderedFigure().getBorderItemContainer().add(((PortEditPart)childEditPart).getFigure(), locator);
+ return true;
+ }
+
+ //Papyrus Gencode :Affixed Port locator
+ if(childEditPart instanceof ParameterEditPart) {
+ IBorderItemLocator locator = new PortPositionLocator(getMainFigure(), PositionConstants.NONE);
+ getBorderedFigure().getBorderItemContainer().add(((ParameterEditPart)childEditPart).getFigure(), locator);
+ return true;
+ }
+
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean removeFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof InteractionCompositeNameEditPartCN) {
+ return true;
+ }
+ if(childEditPart instanceof InteractionCompositeCompartmentEditPartCN) {
+ IFigure pane = getPrimaryShape().getCompositeCompartmentFigure();
+ setupContentPane(pane); // FIXME each comparment should handle his content pane in his own way
+ pane.remove(((InteractionCompositeCompartmentEditPartCN)childEditPart).getFigure());
+ return true;
+ }
+ if(childEditPart instanceof PortEditPart) {
+ getBorderedFigure().getBorderItemContainer().remove(((PortEditPart)childEditPart).getFigure());
+ return true;
+ }
+ if(childEditPart instanceof ParameterEditPart) {
+ getBorderedFigure().getBorderItemContainer().remove(((ParameterEditPart)childEditPart).getFigure());
+ return true;
+ }
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected void addChildVisual(EditPart childEditPart, int index) {
+ if(addFixedChild(childEditPart)) {
+ return;
+ }
+ super.addChildVisual(childEditPart, -1);
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeChildVisual(EditPart childEditPart) {
+ if(removeFixedChild(childEditPart)) {
+ return;
+ }
+ super.removeChildVisual(childEditPart);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure getContentPaneFor(IGraphicalEditPart editPart) {
+ if(editPart instanceof InteractionCompositeCompartmentEditPartCN) {
+ return getPrimaryShape().getCompositeCompartmentFigure();
+ }
+ if(editPart instanceof IBorderItemEditPart) {
+ return getBorderedFigure().getBorderItemContainer();
+ }
+ return getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ protected NodeFigure createNodePlate() {
+ String prefElementId = "Interaction";
+ IPreferenceStore store = UMLDiagramEditorPlugin.getInstance().getPreferenceStore();
+ String preferenceConstantWitdh = PreferenceInitializerForElementHelper.getpreferenceKey(getNotationView(), prefElementId, PreferenceConstantHelper.WIDTH);
+ String preferenceConstantHeight = PreferenceInitializerForElementHelper.getpreferenceKey(getNotationView(), prefElementId, PreferenceConstantHelper.HEIGHT);
+ DefaultSizeNodeFigure result = new DefaultSizeNodeFigure(store.getInt(preferenceConstantWitdh), store.getInt(preferenceConstantHeight));
+
+ return result;
+ }
+
+ /**
+ * Creates figure for this edit part.
+ *
+ * Body of this method does not depend on settings in generation model
+ * so you may safely remove <i>generated</i> tag and modify it.
+ *
+ * @generated
+ */
+ protected NodeFigure createMainFigure() {
+ NodeFigure figure = createNodePlate();
+ figure.setLayoutManager(new StackLayout());
+ IFigure shape = createNodeShape();
+ figure.add(shape);
+ contentPane = setupContentPane(shape);
+ return figure;
+ }
+
+ /**
+ * Default implementation treats passed figure as content pane.
+ * Respects layout one may have set for generated figure.
+ *
+ * @param nodeShape
+ * instance of generated figure class
+ * @generated
+ */
+ protected IFigure setupContentPane(IFigure nodeShape) {
+ if(nodeShape.getLayoutManager() == null) {
+ ConstrainedToolbarLayout layout = new ConstrainedToolbarLayout();
+ layout.setSpacing(5);
+ nodeShape.setLayoutManager(layout);
+ }
+ return nodeShape; // use nodeShape itself as contentPane
+ }
+
+ /**
+ * @generated
+ */
+ public IFigure getContentPane() {
+ if(contentPane != null) {
+ return contentPane;
+ }
+ return super.getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ protected void setForegroundColor(Color color) {
+ if(primaryShape != null) {
+ primaryShape.setForegroundColor(color);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLineWidth(int width) {
+ if(primaryShape instanceof Shape) {
+ ((Shape)primaryShape).setLineWidth(width);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLineType(int style) {
+ if(primaryShape instanceof Shape) {
+ ((Shape)primaryShape).setLineStyle(style);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public EditPart getPrimaryChildEditPart() {
+ return getChildBySemanticHint(UMLVisualIDRegistry.getType(InteractionCompositeNameEditPartCN.VISUAL_ID));
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnSource() {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(12);
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ types.add(UMLElementTypes.Substitution_4011);
+ types.add(UMLElementTypes.Realization_4006);
+ types.add(UMLElementTypes.Manifestation_4012);
+ types.add(UMLElementTypes.Abstraction_4007);
+ types.add(UMLElementTypes.Usage_4008);
+ types.add(UMLElementTypes.Deployment_4009);
+ types.add(UMLElementTypes.Dependency_4017);
+ types.add(UMLElementTypes.Dependency_4010);
+ types.add(UMLElementTypes.Generalization_4015);
+ types.add(UMLElementTypes.InformationFlow_4021);
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnSourceAndTarget(IGraphicalEditPart targetEditPart) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMATypesForTarget(IElementType relationshipType) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(relationshipType == UMLElementTypes.ComponentRealization_4004) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InterfaceRealization_4005) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Substitution_4011) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Realization_4006) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Manifestation_4012) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Abstraction_4007) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Usage_4008) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Deployment_4009) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4017) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4010) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Generalization_4015) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ } else if(relationshipType == UMLElementTypes.InformationFlow_4021) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnTarget() {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(17);
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ types.add(UMLElementTypes.Substitution_4011);
+ types.add(UMLElementTypes.Realization_4006);
+ types.add(UMLElementTypes.Manifestation_4012);
+ types.add(UMLElementTypes.Abstraction_4007);
+ types.add(UMLElementTypes.Usage_4008);
+ types.add(UMLElementTypes.Deployment_4009);
+ types.add(UMLElementTypes.Dependency_4017);
+ types.add(UMLElementTypes.Dependency_4010);
+ types.add(UMLElementTypes.Generalization_4015);
+ types.add(UMLElementTypes.TimeObservationEvent_4018);
+ types.add(UMLElementTypes.DurationObservationEvent_4019);
+ types.add(UMLElementTypes.InformationItemRepresented_4020);
+ types.add(UMLElementTypes.InformationFlow_4021);
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMATypesForSource(IElementType relationshipType) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(relationshipType == UMLElementTypes.CommentAnnotatedElement_4002) {
+ types.add(UMLElementTypes.Comment_2109);
+ types.add(UMLElementTypes.Comment_3097);
+ } else if(relationshipType == UMLElementTypes.ConstraintConstrainedElement_4003) {
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.ComponentRealization_4004) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InterfaceRealization_4005) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Substitution_4011) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Realization_4006) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Manifestation_4012) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Abstraction_4007) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Usage_4008) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Deployment_4009) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4017) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4010) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Generalization_4015) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ } else if(relationshipType == UMLElementTypes.TimeObservationEvent_4018) {
+ types.add(UMLElementTypes.TimeObservation_2094);
+ } else if(relationshipType == UMLElementTypes.DurationObservationEvent_4019) {
+ types.add(UMLElementTypes.DurationObservation_2093);
+ } else if(relationshipType == UMLElementTypes.InformationItemRepresented_4020) {
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.InformationItem_3094);
+ } else if(relationshipType == UMLElementTypes.InformationFlow_4021) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public Object getPreferredValue(EStructuralFeature feature) {
+ IPreferenceStore preferenceStore = (IPreferenceStore)getDiagramPreferencesHint().getPreferenceStore();
+ Object result = null;
+
+ if(feature == NotationPackage.eINSTANCE.getLineStyle_LineColor() || feature == NotationPackage.eINSTANCE.getFontStyle_FontColor() || feature == NotationPackage.eINSTANCE.getFillStyle_FillColor()) {
+ String prefColor = null;
+ if(feature == NotationPackage.eINSTANCE.getLineStyle_LineColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("Interaction", PreferenceConstantHelper.COLOR_LINE);
+ } else if(feature == NotationPackage.eINSTANCE.getFontStyle_FontColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("Interaction", PreferenceConstantHelper.COLOR_FONT);
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_FillColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("Interaction", PreferenceConstantHelper.COLOR_FILL);
+ }
+ result = FigureUtilities.RGBToInteger(PreferenceConverter.getColor((IPreferenceStore)preferenceStore, prefColor));
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_Transparency() || feature == NotationPackage.eINSTANCE.getFillStyle_Gradient()) {
+ String prefGradient = PreferenceConstantHelper.getElementConstant("Interaction", PreferenceConstantHelper.COLOR_GRADIENT);
+ GradientPreferenceConverter gradientPreferenceConverter = new GradientPreferenceConverter(preferenceStore.getString(prefGradient));
+ if(feature == NotationPackage.eINSTANCE.getFillStyle_Transparency()) {
+ result = new Integer(gradientPreferenceConverter.getTransparency());
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_Gradient()) {
+ result = gradientPreferenceConverter.getGradientData();
+ }
+ }
+
+ if(result == null) {
+ result = getStructuralFeatureValue(feature);
+ }
+ return result;
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/InteractionCompositeNameEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/InteractionCompositeNameEditPart.java
new file mode 100644
index 00000000000..50a1ce48d08
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/InteractionCompositeNameEditPart.java
@@ -0,0 +1,791 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EAnnotation;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.emf.transaction.RunnableWithResult;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.AccessibleEditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.requests.DirectEditRequest;
+import org.eclipse.gef.tools.DirectEditManager;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.CompartmentEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
+import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
+import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
+import org.eclipse.gmf.runtime.notation.FontStyle;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
+import org.eclipse.jface.viewers.ICellEditorValidator;
+import org.eclipse.jface.window.Window;
+import org.eclipse.papyrus.diagram.common.directedit.MultilineLabelDirectEditManager;
+import org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition;
+import org.eclipse.papyrus.diagram.common.editpolicies.IMaskManagedLabelEditPolicy;
+import org.eclipse.papyrus.diagram.common.figure.node.ILabelFigure;
+import org.eclipse.papyrus.diagram.common.util.DiagramEditPartsUtil;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLTextSelectionEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.diagram.composite.providers.UMLParserProvider;
+import org.eclipse.papyrus.extensionpoints.editors.Activator;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
+import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
+import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
+import org.eclipse.papyrus.umlutils.ui.VisualInformationPapyrusConstant;
+import org.eclipse.papyrus.umlutils.ui.helper.NameLabelIconHelper;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.AccessibleEvent;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.FontData;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.ui.PlatformUI;
+
+/**
+ * @generated
+ */
+public class InteractionCompositeNameEditPart extends CompartmentEditPart implements ITextAwareEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 5113;
+
+ /**
+ * @generated
+ */
+ private DirectEditManager manager;
+
+ /**
+ * @generated
+ */
+ private IParser parser;
+
+ /**
+ * @generated
+ */
+ private List<?> parserElements;
+
+ /**
+ * @generated
+ */
+ private String defaultText;
+
+ /**
+ * direct edition mode (default, undefined, registered editor, etc.)
+ *
+ * @generated
+ */
+ protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
+
+ /**
+ * configuration from a registered edit dialog
+ *
+ * @generated
+ */
+ protected IDirectEditorConfiguration configuration;
+
+ /**
+ * @generated
+ */
+ public InteractionCompositeNameEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
+ installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new CompositeStructureDiagramEditPart.NodeLabelDragPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelTextHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getText();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getText();
+ } else {
+ return ((Label)figure).getText();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelTextHelper(IFigure figure, String text) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setText(text);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setText(text);
+ } else {
+ ((Label)figure).setText(text);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIconHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getIcon();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getIcon();
+ } else {
+ return ((Label)figure).getIcon();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelIconHelper(IFigure figure, Image icon) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setIcon(icon);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setIcon(icon);
+ } else {
+ ((Label)figure).setIcon(icon);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabel(WrappingLabel figure) {
+ unregisterVisuals();
+ setFigure(figure);
+ defaultText = getLabelTextHelper(figure);
+ registerVisuals();
+ refreshVisuals();
+ }
+
+ /**
+ * @generated
+ */
+ protected List getModelChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject getParserElement() {
+ return resolveSemanticElement();
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIcon() {
+ EObject parserElement = getParserElement();
+ if(parserElement == null) {
+ return null;
+ }
+
+ List<View> views = DiagramEditPartsUtil.findViews(parserElement, getViewer());
+ for(View view : views) {
+ if(NameLabelIconHelper.showLabelIcon(view)) {
+ return UMLElementTypes.getImage(parserElement.eClass());
+ }
+ }
+ return null;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelText() {
+ String text = null;
+ EObject parserElement = getParserElement();
+ if(parserElement != null && getParser() != null) {
+ text = getParser().getPrintString(new EObjectAdapter(parserElement), getParserOptions().intValue());
+ }
+ if(text == null || text.length() == 0) {
+ text = defaultText;
+ }
+ return text;
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabelText(String text) {
+ setLabelTextHelper(getFigure(), text);
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public String getEditText() {
+ if(getParserElement() == null || getParser() == null) {
+ return ""; //$NON-NLS-1$
+ }
+ return getParser().getEditString(new EObjectAdapter(getParserElement()), getParserOptions().intValue());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean isEditable() {
+ return getParser() != null;
+ }
+
+ /**
+ * @generated
+ */
+ public ICellEditorValidator getEditTextValidator() {
+ return new ICellEditorValidator() {
+
+ public String isValid(final Object value) {
+ if(value instanceof String) {
+ final EObject element = getParserElement();
+ final IParser parser = getParser();
+ try {
+ IParserEditStatus valid = (IParserEditStatus)getEditingDomain().runExclusive(new RunnableWithResult.Impl() {
+
+ public void run() {
+ setResult(parser.isValidEditString(new EObjectAdapter(element), (String)value));
+ }
+ });
+ return valid.getCode() == ParserEditStatus.EDITABLE ? null : valid.getMessage();
+ } catch (InterruptedException ie) {
+ ie.printStackTrace();
+ }
+ }
+
+ // shouldn't get here
+ return null;
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ public IContentAssistProcessor getCompletionProcessor() {
+ if(getParserElement() == null || getParser() == null) {
+ return null;
+ }
+ return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
+ }
+
+ /**
+ * @generated
+ */
+ public ParserOptions getParserOptions() {
+ return ParserOptions.NONE;
+ }
+
+ /**
+ * @generated
+ */
+ public IParser getParser() {
+ if(parser == null) {
+ parser = UMLParserProvider.getParser(UMLElementTypes.Interaction_2061, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.diagram.composite.edit.parts.InteractionCompositeNameEditPart.VISUAL_ID));
+ }
+ return parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected DirectEditManager getManager() {
+ if(manager == null) {
+ setManager(new MultilineLabelDirectEditManager(this, MultilineLabelDirectEditManager.getTextCellEditorClass(this), UMLEditPartFactory.getTextCellEditorLocator(this)));
+ }
+ return manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setManager(DirectEditManager manager) {
+ this.manager = manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit() {
+ getManager().show();
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit(Point eventLocation) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(eventLocation.getSWTPoint());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void performDirectEdit(char initialCharacter) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(initialCharacter);
+ } else {
+ performDirectEdit();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEditRequest(Request request) {
+
+ final Request theRequest = request;
+
+ if(IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
+ directEditionMode = getDirectEditionType();
+ }
+ switch(directEditionMode) {
+ case IDirectEdition.NO_DIRECT_EDITION:
+ // no direct edition mode => does nothing
+ return;
+ case IDirectEdition.EXTENDED_DIRECT_EDITOR:
+ updateExtendedEditorConfiguration();
+ if(configuration == null || configuration.getLanguage() == null) {
+ performDefaultDirectEditorEdit(theRequest);
+ } else {
+ configuration.preEditAction(resolveSemanticElement());
+ Dialog dialog = null;
+ if(configuration instanceof IPopupEditorConfiguration) {
+ IPopupEditorHelper helper = ((IPopupEditorConfiguration)configuration).createPopupEditorHelper(this);
+ helper.showEditor();
+ return;
+ } else if(configuration instanceof IAdvancedEditorConfiguration) {
+ dialog = ((IAdvancedEditorConfiguration)configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
+ } else if(configuration instanceof IDirectEditorConfiguration) {
+ dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), ((IDirectEditorConfiguration)configuration).getTextToEdit(resolveSemanticElement()), (IDirectEditorConfiguration)configuration);
+ } else {
+ return;
+ }
+ final Dialog finalDialog = dialog;
+
+ if(Window.OK == dialog.open()) {
+ TransactionalEditingDomain domain = getEditingDomain();
+ RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
+
+ @Override
+ protected void doExecute() {
+ configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog)finalDialog).getValue());
+
+ }
+ };
+ domain.getCommandStack().execute(command);
+ }
+ }
+ break;
+ case IDirectEdition.DEFAULT_DIRECT_EDITOR:
+
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ break;
+ default:
+ break;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshLabel();
+ refreshFont();
+ refreshFontColor();
+ refreshUnderline();
+ refreshStrikeThrough();
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshLabel() {
+ EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
+ if(maskLabelPolicy == null) {
+ setLabelTextHelper(getFigure(), getLabelText());
+ setLabelIconHelper(getFigure(), getLabelIcon());
+ }
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshUnderline() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextUnderline(style.isUnderline());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshStrikeThrough() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextStrikeThrough(style.isStrikeThrough());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshFont() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null) {
+ FontData fontData = new FontData(style.getFontName(), style.getFontHeight(), (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
+ setFont(fontData);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setFontColor(Color color) {
+ getFigure().setForegroundColor(color);
+ }
+
+ /**
+ * @generated
+ */
+ protected void addSemanticListeners() {
+ if(getParser() instanceof ISemanticParser) {
+ EObject element = resolveSemanticElement();
+ parserElements = ((ISemanticParser)getParser()).getSemanticElementsBeingParsed(element);
+ for(int i = 0; i < parserElements.size(); i++) {
+ addListenerFilter("SemanticModel" + i, this, (EObject)parserElements.get(i)); //$NON-NLS-1$
+ }
+ } else {
+ super.addSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeSemanticListeners() {
+ if(parserElements != null) {
+ for(int i = 0; i < parserElements.size(); i++) {
+ removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
+ }
+ } else {
+ super.removeSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected AccessibleEditPart getAccessibleEditPart() {
+ if(accessibleEP == null) {
+ accessibleEP = new AccessibleGraphicalEditPart() {
+
+ public void getName(AccessibleEvent e) {
+ e.result = getLabelTextHelper(getFigure());
+ }
+ };
+ }
+ return accessibleEP;
+ }
+
+ /**
+ * @generated
+ */
+ private View getFontStyleOwnerView() {
+ return (View)getModel();
+ }
+
+ /**
+ * Returns the kind of associated editor for direct edition.
+ *
+ * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition
+ * @generated
+ */
+ public int getDirectEditionType() {
+ if(checkExtendedEditor()) {
+ initExtendedEditorConfiguration();
+ return IDirectEdition.EXTENDED_DIRECT_EDITOR;
+ }
+ if(checkDefaultEdition()) {
+ return IDirectEdition.DEFAULT_DIRECT_EDITOR;
+ }
+
+ // not a named element. no specific editor => do nothing
+ return IDirectEdition.NO_DIRECT_EDITION;
+ }
+
+ /**
+ * Checks if an extended editor is present.
+ *
+ * @return <code>true</code> if an extended editor is present.
+ * @generated
+ */
+ protected boolean checkExtendedEditor() {
+ if(resolveSemanticElement() != null) {
+ return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ return false;
+ }
+
+ /**
+ * Checks if a default direct edition is available
+ *
+ * @return <code>true</code> if a default direct edition is available
+ * @generated
+ */
+ protected boolean checkDefaultEdition() {
+ return (getParser() != null);
+ }
+
+ /**
+ * Initializes the extended editor configuration
+ *
+ * @generated
+ */
+ protected void initExtendedEditorConfiguration() {
+ if(configuration == null) {
+ final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("")) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else {
+ configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ }
+ }
+
+ /**
+ * Updates the preference configuration
+ *
+ * @generated
+ */
+ protected void updateExtendedEditorConfiguration() {
+ String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("") && languagePreferred != configuration.getLanguage()) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else if(IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
+ configuration = null;
+ }
+ }
+
+ /**
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
+ protected void performDefaultDirectEditorEdit(final Request theRequest) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void addNotationalListeners() {
+ super.addNotationalListeners();
+ addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeNotationalListeners() {
+ super.removeNotationalListeners();
+ removeListenerFilter("PrimaryView"); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void handleNotificationEvent(Notification event) {
+ refreshLabel();
+ Object feature = event.getFeature();
+ if(NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
+ Integer c = (Integer)event.getNewValue();
+ setFontColor(DiagramColorRegistry.getInstance().getColor(c));
+ } else if(NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
+ refreshUnderline();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
+ refreshStrikeThrough();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
+ refreshFont();
+ } else {
+ if(getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
+ refreshLabel();
+ }
+ if(getParser() instanceof ISemanticParser) {
+ ISemanticParser modelParser = (ISemanticParser)getParser();
+ if(modelParser.areSemanticElementsAffected(null, event)) {
+ removeSemanticListeners();
+ if(resolveSemanticElement() != null) {
+ addSemanticListeners();
+ }
+ refreshLabel();
+ }
+ }
+ }
+
+ if(event.getNewValue() instanceof EAnnotation && VisualInformationPapyrusConstant.DISPLAY_NAMELABELICON.equals(((EAnnotation)event.getNewValue()).getSource())) {
+ refreshLabel();
+ }
+
+ super.handleNotificationEvent(event);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createFigure() {
+ // Parent should assign one using setLabel() method
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ private static final String ADD_PARENT_MODEL = "AddParentModel";
+
+ /**
+ * @generated
+ */
+ public void activate() {
+ super.activate();
+ addOwnerElementListeners();
+ }
+
+ /**
+ * @generated
+ */
+ protected void addOwnerElementListeners() {
+ addListenerFilter(ADD_PARENT_MODEL, this, ((View)getParent().getModel())); //$NON-NLS-1$
+
+ }
+
+ /**
+ * @generated
+ */
+ public void deactivate() {
+ removeOwnerElementListeners();
+ super.deactivate();
+
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeOwnerElementListeners() {
+ removeListenerFilter(ADD_PARENT_MODEL);
+
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/InteractionCompositeNameEditPartCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/InteractionCompositeNameEditPartCN.java
new file mode 100644
index 00000000000..a486d4b3f9c
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/InteractionCompositeNameEditPartCN.java
@@ -0,0 +1,791 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EAnnotation;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.emf.transaction.RunnableWithResult;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.AccessibleEditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.requests.DirectEditRequest;
+import org.eclipse.gef.tools.DirectEditManager;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.CompartmentEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
+import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
+import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
+import org.eclipse.gmf.runtime.notation.FontStyle;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
+import org.eclipse.jface.viewers.ICellEditorValidator;
+import org.eclipse.jface.window.Window;
+import org.eclipse.papyrus.diagram.common.directedit.MultilineLabelDirectEditManager;
+import org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition;
+import org.eclipse.papyrus.diagram.common.editpolicies.IMaskManagedLabelEditPolicy;
+import org.eclipse.papyrus.diagram.common.figure.node.ILabelFigure;
+import org.eclipse.papyrus.diagram.common.util.DiagramEditPartsUtil;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLTextSelectionEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.diagram.composite.providers.UMLParserProvider;
+import org.eclipse.papyrus.extensionpoints.editors.Activator;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
+import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
+import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
+import org.eclipse.papyrus.umlutils.ui.VisualInformationPapyrusConstant;
+import org.eclipse.papyrus.umlutils.ui.helper.NameLabelIconHelper;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.AccessibleEvent;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.FontData;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.ui.PlatformUI;
+
+/**
+ * @generated
+ */
+public class InteractionCompositeNameEditPartCN extends CompartmentEditPart implements ITextAwareEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 5129;
+
+ /**
+ * @generated
+ */
+ private DirectEditManager manager;
+
+ /**
+ * @generated
+ */
+ private IParser parser;
+
+ /**
+ * @generated
+ */
+ private List<?> parserElements;
+
+ /**
+ * @generated
+ */
+ private String defaultText;
+
+ /**
+ * direct edition mode (default, undefined, registered editor, etc.)
+ *
+ * @generated
+ */
+ protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
+
+ /**
+ * configuration from a registered edit dialog
+ *
+ * @generated
+ */
+ protected IDirectEditorConfiguration configuration;
+
+ /**
+ * @generated
+ */
+ public InteractionCompositeNameEditPartCN(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
+ installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new CompositeStructureDiagramEditPart.NodeLabelDragPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelTextHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getText();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getText();
+ } else {
+ return ((Label)figure).getText();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelTextHelper(IFigure figure, String text) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setText(text);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setText(text);
+ } else {
+ ((Label)figure).setText(text);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIconHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getIcon();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getIcon();
+ } else {
+ return ((Label)figure).getIcon();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelIconHelper(IFigure figure, Image icon) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setIcon(icon);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setIcon(icon);
+ } else {
+ ((Label)figure).setIcon(icon);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabel(WrappingLabel figure) {
+ unregisterVisuals();
+ setFigure(figure);
+ defaultText = getLabelTextHelper(figure);
+ registerVisuals();
+ refreshVisuals();
+ }
+
+ /**
+ * @generated
+ */
+ protected List getModelChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject getParserElement() {
+ return resolveSemanticElement();
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIcon() {
+ EObject parserElement = getParserElement();
+ if(parserElement == null) {
+ return null;
+ }
+
+ List<View> views = DiagramEditPartsUtil.findViews(parserElement, getViewer());
+ for(View view : views) {
+ if(NameLabelIconHelper.showLabelIcon(view)) {
+ return UMLElementTypes.getImage(parserElement.eClass());
+ }
+ }
+ return null;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelText() {
+ String text = null;
+ EObject parserElement = getParserElement();
+ if(parserElement != null && getParser() != null) {
+ text = getParser().getPrintString(new EObjectAdapter(parserElement), getParserOptions().intValue());
+ }
+ if(text == null || text.length() == 0) {
+ text = defaultText;
+ }
+ return text;
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabelText(String text) {
+ setLabelTextHelper(getFigure(), text);
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public String getEditText() {
+ if(getParserElement() == null || getParser() == null) {
+ return ""; //$NON-NLS-1$
+ }
+ return getParser().getEditString(new EObjectAdapter(getParserElement()), getParserOptions().intValue());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean isEditable() {
+ return getParser() != null;
+ }
+
+ /**
+ * @generated
+ */
+ public ICellEditorValidator getEditTextValidator() {
+ return new ICellEditorValidator() {
+
+ public String isValid(final Object value) {
+ if(value instanceof String) {
+ final EObject element = getParserElement();
+ final IParser parser = getParser();
+ try {
+ IParserEditStatus valid = (IParserEditStatus)getEditingDomain().runExclusive(new RunnableWithResult.Impl() {
+
+ public void run() {
+ setResult(parser.isValidEditString(new EObjectAdapter(element), (String)value));
+ }
+ });
+ return valid.getCode() == ParserEditStatus.EDITABLE ? null : valid.getMessage();
+ } catch (InterruptedException ie) {
+ ie.printStackTrace();
+ }
+ }
+
+ // shouldn't get here
+ return null;
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ public IContentAssistProcessor getCompletionProcessor() {
+ if(getParserElement() == null || getParser() == null) {
+ return null;
+ }
+ return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
+ }
+
+ /**
+ * @generated
+ */
+ public ParserOptions getParserOptions() {
+ return ParserOptions.NONE;
+ }
+
+ /**
+ * @generated
+ */
+ public IParser getParser() {
+ if(parser == null) {
+ parser = UMLParserProvider.getParser(UMLElementTypes.Interaction_3073, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.diagram.composite.edit.parts.InteractionCompositeNameEditPartCN.VISUAL_ID));
+ }
+ return parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected DirectEditManager getManager() {
+ if(manager == null) {
+ setManager(new MultilineLabelDirectEditManager(this, MultilineLabelDirectEditManager.getTextCellEditorClass(this), UMLEditPartFactory.getTextCellEditorLocator(this)));
+ }
+ return manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setManager(DirectEditManager manager) {
+ this.manager = manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit() {
+ getManager().show();
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit(Point eventLocation) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(eventLocation.getSWTPoint());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void performDirectEdit(char initialCharacter) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(initialCharacter);
+ } else {
+ performDirectEdit();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEditRequest(Request request) {
+
+ final Request theRequest = request;
+
+ if(IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
+ directEditionMode = getDirectEditionType();
+ }
+ switch(directEditionMode) {
+ case IDirectEdition.NO_DIRECT_EDITION:
+ // no direct edition mode => does nothing
+ return;
+ case IDirectEdition.EXTENDED_DIRECT_EDITOR:
+ updateExtendedEditorConfiguration();
+ if(configuration == null || configuration.getLanguage() == null) {
+ performDefaultDirectEditorEdit(theRequest);
+ } else {
+ configuration.preEditAction(resolveSemanticElement());
+ Dialog dialog = null;
+ if(configuration instanceof IPopupEditorConfiguration) {
+ IPopupEditorHelper helper = ((IPopupEditorConfiguration)configuration).createPopupEditorHelper(this);
+ helper.showEditor();
+ return;
+ } else if(configuration instanceof IAdvancedEditorConfiguration) {
+ dialog = ((IAdvancedEditorConfiguration)configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
+ } else if(configuration instanceof IDirectEditorConfiguration) {
+ dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), ((IDirectEditorConfiguration)configuration).getTextToEdit(resolveSemanticElement()), (IDirectEditorConfiguration)configuration);
+ } else {
+ return;
+ }
+ final Dialog finalDialog = dialog;
+
+ if(Window.OK == dialog.open()) {
+ TransactionalEditingDomain domain = getEditingDomain();
+ RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
+
+ @Override
+ protected void doExecute() {
+ configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog)finalDialog).getValue());
+
+ }
+ };
+ domain.getCommandStack().execute(command);
+ }
+ }
+ break;
+ case IDirectEdition.DEFAULT_DIRECT_EDITOR:
+
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ break;
+ default:
+ break;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshLabel();
+ refreshFont();
+ refreshFontColor();
+ refreshUnderline();
+ refreshStrikeThrough();
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshLabel() {
+ EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
+ if(maskLabelPolicy == null) {
+ setLabelTextHelper(getFigure(), getLabelText());
+ setLabelIconHelper(getFigure(), getLabelIcon());
+ }
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshUnderline() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextUnderline(style.isUnderline());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshStrikeThrough() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextStrikeThrough(style.isStrikeThrough());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshFont() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null) {
+ FontData fontData = new FontData(style.getFontName(), style.getFontHeight(), (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
+ setFont(fontData);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setFontColor(Color color) {
+ getFigure().setForegroundColor(color);
+ }
+
+ /**
+ * @generated
+ */
+ protected void addSemanticListeners() {
+ if(getParser() instanceof ISemanticParser) {
+ EObject element = resolveSemanticElement();
+ parserElements = ((ISemanticParser)getParser()).getSemanticElementsBeingParsed(element);
+ for(int i = 0; i < parserElements.size(); i++) {
+ addListenerFilter("SemanticModel" + i, this, (EObject)parserElements.get(i)); //$NON-NLS-1$
+ }
+ } else {
+ super.addSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeSemanticListeners() {
+ if(parserElements != null) {
+ for(int i = 0; i < parserElements.size(); i++) {
+ removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
+ }
+ } else {
+ super.removeSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected AccessibleEditPart getAccessibleEditPart() {
+ if(accessibleEP == null) {
+ accessibleEP = new AccessibleGraphicalEditPart() {
+
+ public void getName(AccessibleEvent e) {
+ e.result = getLabelTextHelper(getFigure());
+ }
+ };
+ }
+ return accessibleEP;
+ }
+
+ /**
+ * @generated
+ */
+ private View getFontStyleOwnerView() {
+ return (View)getModel();
+ }
+
+ /**
+ * Returns the kind of associated editor for direct edition.
+ *
+ * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition
+ * @generated
+ */
+ public int getDirectEditionType() {
+ if(checkExtendedEditor()) {
+ initExtendedEditorConfiguration();
+ return IDirectEdition.EXTENDED_DIRECT_EDITOR;
+ }
+ if(checkDefaultEdition()) {
+ return IDirectEdition.DEFAULT_DIRECT_EDITOR;
+ }
+
+ // not a named element. no specific editor => do nothing
+ return IDirectEdition.NO_DIRECT_EDITION;
+ }
+
+ /**
+ * Checks if an extended editor is present.
+ *
+ * @return <code>true</code> if an extended editor is present.
+ * @generated
+ */
+ protected boolean checkExtendedEditor() {
+ if(resolveSemanticElement() != null) {
+ return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ return false;
+ }
+
+ /**
+ * Checks if a default direct edition is available
+ *
+ * @return <code>true</code> if a default direct edition is available
+ * @generated
+ */
+ protected boolean checkDefaultEdition() {
+ return (getParser() != null);
+ }
+
+ /**
+ * Initializes the extended editor configuration
+ *
+ * @generated
+ */
+ protected void initExtendedEditorConfiguration() {
+ if(configuration == null) {
+ final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("")) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else {
+ configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ }
+ }
+
+ /**
+ * Updates the preference configuration
+ *
+ * @generated
+ */
+ protected void updateExtendedEditorConfiguration() {
+ String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("") && languagePreferred != configuration.getLanguage()) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else if(IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
+ configuration = null;
+ }
+ }
+
+ /**
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
+ protected void performDefaultDirectEditorEdit(final Request theRequest) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void addNotationalListeners() {
+ super.addNotationalListeners();
+ addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeNotationalListeners() {
+ super.removeNotationalListeners();
+ removeListenerFilter("PrimaryView"); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void handleNotificationEvent(Notification event) {
+ refreshLabel();
+ Object feature = event.getFeature();
+ if(NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
+ Integer c = (Integer)event.getNewValue();
+ setFontColor(DiagramColorRegistry.getInstance().getColor(c));
+ } else if(NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
+ refreshUnderline();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
+ refreshStrikeThrough();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
+ refreshFont();
+ } else {
+ if(getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
+ refreshLabel();
+ }
+ if(getParser() instanceof ISemanticParser) {
+ ISemanticParser modelParser = (ISemanticParser)getParser();
+ if(modelParser.areSemanticElementsAffected(null, event)) {
+ removeSemanticListeners();
+ if(resolveSemanticElement() != null) {
+ addSemanticListeners();
+ }
+ refreshLabel();
+ }
+ }
+ }
+
+ if(event.getNewValue() instanceof EAnnotation && VisualInformationPapyrusConstant.DISPLAY_NAMELABELICON.equals(((EAnnotation)event.getNewValue()).getSource())) {
+ refreshLabel();
+ }
+
+ super.handleNotificationEvent(event);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createFigure() {
+ // Parent should assign one using setLabel() method
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ private static final String ADD_PARENT_MODEL = "AddParentModel";
+
+ /**
+ * @generated
+ */
+ public void activate() {
+ super.activate();
+ addOwnerElementListeners();
+ }
+
+ /**
+ * @generated
+ */
+ protected void addOwnerElementListeners() {
+ addListenerFilter(ADD_PARENT_MODEL, this, ((View)getParent().getModel())); //$NON-NLS-1$
+
+ }
+
+ /**
+ * @generated
+ */
+ public void deactivate() {
+ removeOwnerElementListeners();
+ super.deactivate();
+
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeOwnerElementListeners() {
+ removeListenerFilter(ADD_PARENT_MODEL);
+
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/InteractionConstraintEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/InteractionConstraintEditPart.java
new file mode 100644
index 00000000000..c0a7c6f5736
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/InteractionConstraintEditPart.java
@@ -0,0 +1,5459 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.ArrayList;
+import java.util.LinkedList;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Shape;
+import org.eclipse.draw2d.StackLayout;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EStructuralFeature;
+import org.eclipse.gef.EditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.editpolicies.LayoutEditPolicy;
+import org.eclipse.gef.editpolicies.NonResizableEditPolicy;
+import org.eclipse.gef.requests.CreateRequest;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.FigureUtilities;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.gef.ui.figures.DefaultSizeNodeFigure;
+import org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.jface.preference.PreferenceConverter;
+import org.eclipse.papyrus.diagram.common.editparts.AbstractConstraintEditPart;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.figure.node.ConstraintFigure;
+import org.eclipse.papyrus.diagram.common.helper.PreferenceInitializerForElementHelper;
+import org.eclipse.papyrus.diagram.composite.edit.policies.InteractionConstraintItemSemanticEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorPlugin;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter;
+import org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper;
+import org.eclipse.swt.graphics.Color;
+
+/**
+ * @generated
+ */
+public class InteractionConstraintEditPart extends
+
+AbstractConstraintEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 2113;
+
+ /**
+ * @generated
+ */
+ protected IFigure contentPane;
+
+ /**
+ * @generated
+ */
+ protected IFigure primaryShape;
+
+ /**
+ * @generated
+ */
+ public InteractionConstraintEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new InteractionConstraintItemSemanticEditPolicy());
+ installEditPolicy(EditPolicy.LAYOUT_ROLE, createLayoutEditPolicy());
+ installEditPolicy(AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeNodeLabelDisplayEditPolicy());
+ // XXX need an SCR to runtime to have another abstract superclass that would let children add reasonable editpolicies
+ // removeEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CONNECTION_HANDLES_ROLE);
+ }
+
+ /**
+ * Papyrus codeGen
+ *
+ * @generated
+ **/
+ protected void handleNotificationEvent(Notification event) {
+ super.handleNotificationEvent(event);
+
+ }
+
+ /**
+ * @generated
+ */
+ protected LayoutEditPolicy createLayoutEditPolicy() {
+ org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy lep = new org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy() {
+
+ protected EditPolicy createChildEditPolicy(EditPart child) {
+ EditPolicy result = child.getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(result == null) {
+ result = new NonResizableEditPolicy();
+ }
+ return result;
+ }
+
+ protected Command getMoveChildrenCommand(Request request) {
+ return null;
+ }
+
+ protected Command getCreateCommand(CreateRequest request) {
+ return null;
+ }
+ };
+ return lep;
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createNodeShape() {
+ return primaryShape = new ConstraintFigure();
+ }
+
+ /**
+ * @generated
+ */
+ public ConstraintFigure getPrimaryShape() {
+ return (ConstraintFigure)primaryShape;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean addFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof InteractionConstraintNameEditPart) {
+ ((InteractionConstraintNameEditPart)childEditPart).setLabel(getPrimaryShape().getNameLabel());
+ return true;
+ }
+ if(childEditPart instanceof InteractionConstraintSpecificationEditPart) {
+ ((InteractionConstraintSpecificationEditPart)childEditPart).setLabel(getPrimaryShape().getConstraintFigure());
+ return true;
+ }
+
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean removeFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof InteractionConstraintNameEditPart) {
+ return true;
+ }
+ if(childEditPart instanceof InteractionConstraintSpecificationEditPart) {
+ return true;
+ }
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected void addChildVisual(EditPart childEditPart, int index) {
+ if(addFixedChild(childEditPart)) {
+ return;
+ }
+ super.addChildVisual(childEditPart, -1);
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeChildVisual(EditPart childEditPart) {
+ if(removeFixedChild(childEditPart)) {
+ return;
+ }
+ super.removeChildVisual(childEditPart);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure getContentPaneFor(IGraphicalEditPart editPart) {
+ return getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ protected NodeFigure createNodePlate() {
+ String prefElementId = "InteractionConstraint";
+ IPreferenceStore store = UMLDiagramEditorPlugin.getInstance().getPreferenceStore();
+ String preferenceConstantWitdh = PreferenceInitializerForElementHelper.getpreferenceKey(getNotationView(), prefElementId, PreferenceConstantHelper.WIDTH);
+ String preferenceConstantHeight = PreferenceInitializerForElementHelper.getpreferenceKey(getNotationView(), prefElementId, PreferenceConstantHelper.HEIGHT);
+ DefaultSizeNodeFigure result = new DefaultSizeNodeFigure(store.getInt(preferenceConstantWitdh), store.getInt(preferenceConstantHeight));
+
+ return result;
+ }
+
+ /**
+ * Creates figure for this edit part.
+ *
+ * Body of this method does not depend on settings in generation model
+ * so you may safely remove <i>generated</i> tag and modify it.
+ *
+ * @generated
+ */
+ protected NodeFigure createNodeFigure() {
+ NodeFigure figure = createNodePlate();
+ figure.setLayoutManager(new StackLayout());
+ IFigure shape = createNodeShape();
+ figure.add(shape);
+ contentPane = setupContentPane(shape);
+ return figure;
+ }
+
+ /**
+ * Default implementation treats passed figure as content pane.
+ * Respects layout one may have set for generated figure.
+ *
+ * @param nodeShape
+ * instance of generated figure class
+ * @generated
+ */
+ protected IFigure setupContentPane(IFigure nodeShape) {
+ if(nodeShape.getLayoutManager() == null) {
+ ConstrainedToolbarLayout layout = new ConstrainedToolbarLayout();
+ layout.setSpacing(5);
+ nodeShape.setLayoutManager(layout);
+ }
+ return nodeShape; // use nodeShape itself as contentPane
+ }
+
+ /**
+ * @generated
+ */
+ public IFigure getContentPane() {
+ if(contentPane != null) {
+ return contentPane;
+ }
+ return super.getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ protected void setForegroundColor(Color color) {
+ if(primaryShape != null) {
+ primaryShape.setForegroundColor(color);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLineWidth(int width) {
+ if(primaryShape instanceof Shape) {
+ ((Shape)primaryShape).setLineWidth(width);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLineType(int style) {
+ if(primaryShape instanceof Shape) {
+ ((Shape)primaryShape).setLineStyle(style);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public EditPart getPrimaryChildEditPart() {
+ return getChildBySemanticHint(UMLVisualIDRegistry.getType(InteractionConstraintNameEditPart.VISUAL_ID));
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnSource() {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(12);
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ types.add(UMLElementTypes.Substitution_4011);
+ types.add(UMLElementTypes.Realization_4006);
+ types.add(UMLElementTypes.Manifestation_4012);
+ types.add(UMLElementTypes.Abstraction_4007);
+ types.add(UMLElementTypes.Usage_4008);
+ types.add(UMLElementTypes.Deployment_4009);
+ types.add(UMLElementTypes.Dependency_4017);
+ types.add(UMLElementTypes.Dependency_4010);
+ types.add(UMLElementTypes.InformationFlow_4021);
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnSourceAndTarget(IGraphicalEditPart targetEditPart) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof CommentEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof CommentEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMATypesForTarget(IElementType relationshipType) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(relationshipType == UMLElementTypes.ConstraintConstrainedElement_4003) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.Comment_2109);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.Comment_3097);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.ComponentRealization_4004) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InterfaceRealization_4005) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Substitution_4011) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Realization_4006) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Manifestation_4012) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Abstraction_4007) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Usage_4008) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Deployment_4009) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4017) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4010) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InformationFlow_4021) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnTarget() {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(15);
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ types.add(UMLElementTypes.Substitution_4011);
+ types.add(UMLElementTypes.Realization_4006);
+ types.add(UMLElementTypes.Manifestation_4012);
+ types.add(UMLElementTypes.Abstraction_4007);
+ types.add(UMLElementTypes.Usage_4008);
+ types.add(UMLElementTypes.Deployment_4009);
+ types.add(UMLElementTypes.Dependency_4017);
+ types.add(UMLElementTypes.Dependency_4010);
+ types.add(UMLElementTypes.TimeObservationEvent_4018);
+ types.add(UMLElementTypes.DurationObservationEvent_4019);
+ types.add(UMLElementTypes.InformationFlow_4021);
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMATypesForSource(IElementType relationshipType) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(relationshipType == UMLElementTypes.CommentAnnotatedElement_4002) {
+ types.add(UMLElementTypes.Comment_2109);
+ types.add(UMLElementTypes.Comment_3097);
+ } else if(relationshipType == UMLElementTypes.ConstraintConstrainedElement_4003) {
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.ComponentRealization_4004) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InterfaceRealization_4005) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Substitution_4011) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Realization_4006) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Manifestation_4012) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Abstraction_4007) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Usage_4008) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Deployment_4009) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4017) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4010) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.TimeObservationEvent_4018) {
+ types.add(UMLElementTypes.TimeObservation_2094);
+ } else if(relationshipType == UMLElementTypes.DurationObservationEvent_4019) {
+ types.add(UMLElementTypes.DurationObservation_2093);
+ } else if(relationshipType == UMLElementTypes.InformationFlow_4021) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public Object getPreferredValue(EStructuralFeature feature) {
+ IPreferenceStore preferenceStore = (IPreferenceStore)getDiagramPreferencesHint().getPreferenceStore();
+ Object result = null;
+
+ if(feature == NotationPackage.eINSTANCE.getLineStyle_LineColor() || feature == NotationPackage.eINSTANCE.getFontStyle_FontColor() || feature == NotationPackage.eINSTANCE.getFillStyle_FillColor()) {
+ String prefColor = null;
+ if(feature == NotationPackage.eINSTANCE.getLineStyle_LineColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("InteractionConstraint", PreferenceConstantHelper.COLOR_LINE);
+ } else if(feature == NotationPackage.eINSTANCE.getFontStyle_FontColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("InteractionConstraint", PreferenceConstantHelper.COLOR_FONT);
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_FillColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("InteractionConstraint", PreferenceConstantHelper.COLOR_FILL);
+ }
+ result = FigureUtilities.RGBToInteger(PreferenceConverter.getColor((IPreferenceStore)preferenceStore, prefColor));
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_Transparency() || feature == NotationPackage.eINSTANCE.getFillStyle_Gradient()) {
+ String prefGradient = PreferenceConstantHelper.getElementConstant("InteractionConstraint", PreferenceConstantHelper.COLOR_GRADIENT);
+ GradientPreferenceConverter gradientPreferenceConverter = new GradientPreferenceConverter(preferenceStore.getString(prefGradient));
+ if(feature == NotationPackage.eINSTANCE.getFillStyle_Transparency()) {
+ result = new Integer(gradientPreferenceConverter.getTransparency());
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_Gradient()) {
+ result = gradientPreferenceConverter.getGradientData();
+ }
+ }
+
+ if(result == null) {
+ result = getStructuralFeatureValue(feature);
+ }
+ return result;
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/InteractionConstraintEditPartCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/InteractionConstraintEditPartCN.java
new file mode 100644
index 00000000000..81aa198bcfa
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/InteractionConstraintEditPartCN.java
@@ -0,0 +1,5461 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.ArrayList;
+import java.util.LinkedList;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Shape;
+import org.eclipse.draw2d.StackLayout;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EStructuralFeature;
+import org.eclipse.gef.EditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.editpolicies.LayoutEditPolicy;
+import org.eclipse.gef.editpolicies.NonResizableEditPolicy;
+import org.eclipse.gef.requests.CreateRequest;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.FigureUtilities;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.gef.ui.figures.DefaultSizeNodeFigure;
+import org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.jface.preference.PreferenceConverter;
+import org.eclipse.papyrus.diagram.common.editparts.AbstractConstraintEditPart;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.figure.node.ConstraintFigure;
+import org.eclipse.papyrus.diagram.common.helper.PreferenceInitializerForElementHelper;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.NoScrollClassifierResizableShapeEditPolicy;
+import org.eclipse.papyrus.diagram.composite.edit.policies.InteractionConstraintItemSemanticEditPolicyCN;
+import org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorPlugin;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter;
+import org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper;
+import org.eclipse.swt.graphics.Color;
+
+/**
+ * @generated
+ */
+public class InteractionConstraintEditPartCN extends
+
+AbstractConstraintEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 3119;
+
+ /**
+ * @generated
+ */
+ protected IFigure contentPane;
+
+ /**
+ * @generated
+ */
+ protected IFigure primaryShape;
+
+ /**
+ * @generated
+ */
+ public InteractionConstraintEditPartCN(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new InteractionConstraintItemSemanticEditPolicyCN());
+ installEditPolicy(EditPolicy.LAYOUT_ROLE, createLayoutEditPolicy());
+ installEditPolicy(AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeNodeLabelDisplayEditPolicy());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new NoScrollClassifierResizableShapeEditPolicy());
+ // XXX need an SCR to runtime to have another abstract superclass that would let children add reasonable editpolicies
+ // removeEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CONNECTION_HANDLES_ROLE);
+ }
+
+ /**
+ * Papyrus codeGen
+ *
+ * @generated
+ **/
+ protected void handleNotificationEvent(Notification event) {
+ super.handleNotificationEvent(event);
+
+ }
+
+ /**
+ * @generated
+ */
+ protected LayoutEditPolicy createLayoutEditPolicy() {
+ org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy lep = new org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy() {
+
+ protected EditPolicy createChildEditPolicy(EditPart child) {
+ EditPolicy result = child.getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(result == null) {
+ result = new NonResizableEditPolicy();
+ }
+ return result;
+ }
+
+ protected Command getMoveChildrenCommand(Request request) {
+ return null;
+ }
+
+ protected Command getCreateCommand(CreateRequest request) {
+ return null;
+ }
+ };
+ return lep;
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createNodeShape() {
+ return primaryShape = new ConstraintFigure();
+ }
+
+ /**
+ * @generated
+ */
+ public ConstraintFigure getPrimaryShape() {
+ return (ConstraintFigure)primaryShape;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean addFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof InteractionConstraintNameEditPartCN) {
+ ((InteractionConstraintNameEditPartCN)childEditPart).setLabel(getPrimaryShape().getNameLabel());
+ return true;
+ }
+ if(childEditPart instanceof InteractionConstraintSpecificationEditPartCN) {
+ ((InteractionConstraintSpecificationEditPartCN)childEditPart).setLabel(getPrimaryShape().getConstraintFigure());
+ return true;
+ }
+
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean removeFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof InteractionConstraintNameEditPartCN) {
+ return true;
+ }
+ if(childEditPart instanceof InteractionConstraintSpecificationEditPartCN) {
+ return true;
+ }
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected void addChildVisual(EditPart childEditPart, int index) {
+ if(addFixedChild(childEditPart)) {
+ return;
+ }
+ super.addChildVisual(childEditPart, -1);
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeChildVisual(EditPart childEditPart) {
+ if(removeFixedChild(childEditPart)) {
+ return;
+ }
+ super.removeChildVisual(childEditPart);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure getContentPaneFor(IGraphicalEditPart editPart) {
+ return getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ protected NodeFigure createNodePlate() {
+ String prefElementId = "InteractionConstraint";
+ IPreferenceStore store = UMLDiagramEditorPlugin.getInstance().getPreferenceStore();
+ String preferenceConstantWitdh = PreferenceInitializerForElementHelper.getpreferenceKey(getNotationView(), prefElementId, PreferenceConstantHelper.WIDTH);
+ String preferenceConstantHeight = PreferenceInitializerForElementHelper.getpreferenceKey(getNotationView(), prefElementId, PreferenceConstantHelper.HEIGHT);
+ DefaultSizeNodeFigure result = new DefaultSizeNodeFigure(store.getInt(preferenceConstantWitdh), store.getInt(preferenceConstantHeight));
+
+ return result;
+ }
+
+ /**
+ * Creates figure for this edit part.
+ *
+ * Body of this method does not depend on settings in generation model
+ * so you may safely remove <i>generated</i> tag and modify it.
+ *
+ * @generated
+ */
+ protected NodeFigure createNodeFigure() {
+ NodeFigure figure = createNodePlate();
+ figure.setLayoutManager(new StackLayout());
+ IFigure shape = createNodeShape();
+ figure.add(shape);
+ contentPane = setupContentPane(shape);
+ return figure;
+ }
+
+ /**
+ * Default implementation treats passed figure as content pane.
+ * Respects layout one may have set for generated figure.
+ *
+ * @param nodeShape
+ * instance of generated figure class
+ * @generated
+ */
+ protected IFigure setupContentPane(IFigure nodeShape) {
+ if(nodeShape.getLayoutManager() == null) {
+ ConstrainedToolbarLayout layout = new ConstrainedToolbarLayout();
+ layout.setSpacing(5);
+ nodeShape.setLayoutManager(layout);
+ }
+ return nodeShape; // use nodeShape itself as contentPane
+ }
+
+ /**
+ * @generated
+ */
+ public IFigure getContentPane() {
+ if(contentPane != null) {
+ return contentPane;
+ }
+ return super.getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ protected void setForegroundColor(Color color) {
+ if(primaryShape != null) {
+ primaryShape.setForegroundColor(color);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLineWidth(int width) {
+ if(primaryShape instanceof Shape) {
+ ((Shape)primaryShape).setLineWidth(width);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLineType(int style) {
+ if(primaryShape instanceof Shape) {
+ ((Shape)primaryShape).setLineStyle(style);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public EditPart getPrimaryChildEditPart() {
+ return getChildBySemanticHint(UMLVisualIDRegistry.getType(InteractionConstraintNameEditPartCN.VISUAL_ID));
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnSource() {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(12);
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ types.add(UMLElementTypes.Substitution_4011);
+ types.add(UMLElementTypes.Realization_4006);
+ types.add(UMLElementTypes.Manifestation_4012);
+ types.add(UMLElementTypes.Abstraction_4007);
+ types.add(UMLElementTypes.Usage_4008);
+ types.add(UMLElementTypes.Deployment_4009);
+ types.add(UMLElementTypes.Dependency_4017);
+ types.add(UMLElementTypes.Dependency_4010);
+ types.add(UMLElementTypes.InformationFlow_4021);
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnSourceAndTarget(IGraphicalEditPart targetEditPart) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof CommentEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof CommentEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMATypesForTarget(IElementType relationshipType) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(relationshipType == UMLElementTypes.ConstraintConstrainedElement_4003) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.Comment_2109);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.Comment_3097);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.ComponentRealization_4004) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InterfaceRealization_4005) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Substitution_4011) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Realization_4006) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Manifestation_4012) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Abstraction_4007) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Usage_4008) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Deployment_4009) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4017) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4010) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InformationFlow_4021) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnTarget() {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(15);
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ types.add(UMLElementTypes.Substitution_4011);
+ types.add(UMLElementTypes.Realization_4006);
+ types.add(UMLElementTypes.Manifestation_4012);
+ types.add(UMLElementTypes.Abstraction_4007);
+ types.add(UMLElementTypes.Usage_4008);
+ types.add(UMLElementTypes.Deployment_4009);
+ types.add(UMLElementTypes.Dependency_4017);
+ types.add(UMLElementTypes.Dependency_4010);
+ types.add(UMLElementTypes.TimeObservationEvent_4018);
+ types.add(UMLElementTypes.DurationObservationEvent_4019);
+ types.add(UMLElementTypes.InformationFlow_4021);
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMATypesForSource(IElementType relationshipType) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(relationshipType == UMLElementTypes.CommentAnnotatedElement_4002) {
+ types.add(UMLElementTypes.Comment_2109);
+ types.add(UMLElementTypes.Comment_3097);
+ } else if(relationshipType == UMLElementTypes.ConstraintConstrainedElement_4003) {
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.ComponentRealization_4004) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InterfaceRealization_4005) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Substitution_4011) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Realization_4006) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Manifestation_4012) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Abstraction_4007) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Usage_4008) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Deployment_4009) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4017) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4010) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.TimeObservationEvent_4018) {
+ types.add(UMLElementTypes.TimeObservation_2094);
+ } else if(relationshipType == UMLElementTypes.DurationObservationEvent_4019) {
+ types.add(UMLElementTypes.DurationObservation_2093);
+ } else if(relationshipType == UMLElementTypes.InformationFlow_4021) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public Object getPreferredValue(EStructuralFeature feature) {
+ IPreferenceStore preferenceStore = (IPreferenceStore)getDiagramPreferencesHint().getPreferenceStore();
+ Object result = null;
+
+ if(feature == NotationPackage.eINSTANCE.getLineStyle_LineColor() || feature == NotationPackage.eINSTANCE.getFontStyle_FontColor() || feature == NotationPackage.eINSTANCE.getFillStyle_FillColor()) {
+ String prefColor = null;
+ if(feature == NotationPackage.eINSTANCE.getLineStyle_LineColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("InteractionConstraint", PreferenceConstantHelper.COLOR_LINE);
+ } else if(feature == NotationPackage.eINSTANCE.getFontStyle_FontColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("InteractionConstraint", PreferenceConstantHelper.COLOR_FONT);
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_FillColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("InteractionConstraint", PreferenceConstantHelper.COLOR_FILL);
+ }
+ result = FigureUtilities.RGBToInteger(PreferenceConverter.getColor((IPreferenceStore)preferenceStore, prefColor));
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_Transparency() || feature == NotationPackage.eINSTANCE.getFillStyle_Gradient()) {
+ String prefGradient = PreferenceConstantHelper.getElementConstant("InteractionConstraint", PreferenceConstantHelper.COLOR_GRADIENT);
+ GradientPreferenceConverter gradientPreferenceConverter = new GradientPreferenceConverter(preferenceStore.getString(prefGradient));
+ if(feature == NotationPackage.eINSTANCE.getFillStyle_Transparency()) {
+ result = new Integer(gradientPreferenceConverter.getTransparency());
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_Gradient()) {
+ result = gradientPreferenceConverter.getGradientData();
+ }
+ }
+
+ if(result == null) {
+ result = getStructuralFeatureValue(feature);
+ }
+ return result;
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/InteractionConstraintNameEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/InteractionConstraintNameEditPart.java
new file mode 100644
index 00000000000..b9447c8eec6
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/InteractionConstraintNameEditPart.java
@@ -0,0 +1,791 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EAnnotation;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.emf.transaction.RunnableWithResult;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.AccessibleEditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.requests.DirectEditRequest;
+import org.eclipse.gef.tools.DirectEditManager;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.CompartmentEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
+import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
+import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
+import org.eclipse.gmf.runtime.notation.FontStyle;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
+import org.eclipse.jface.viewers.ICellEditorValidator;
+import org.eclipse.jface.window.Window;
+import org.eclipse.papyrus.diagram.common.directedit.MultilineLabelDirectEditManager;
+import org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition;
+import org.eclipse.papyrus.diagram.common.editpolicies.IMaskManagedLabelEditPolicy;
+import org.eclipse.papyrus.diagram.common.figure.node.ILabelFigure;
+import org.eclipse.papyrus.diagram.common.util.DiagramEditPartsUtil;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLTextSelectionEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.diagram.composite.providers.UMLParserProvider;
+import org.eclipse.papyrus.extensionpoints.editors.Activator;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
+import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
+import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
+import org.eclipse.papyrus.umlutils.ui.VisualInformationPapyrusConstant;
+import org.eclipse.papyrus.umlutils.ui.helper.NameLabelIconHelper;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.AccessibleEvent;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.FontData;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.ui.PlatformUI;
+
+/**
+ * @generated
+ */
+public class InteractionConstraintNameEditPart extends CompartmentEditPart implements ITextAwareEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 5196;
+
+ /**
+ * @generated
+ */
+ private DirectEditManager manager;
+
+ /**
+ * @generated
+ */
+ private IParser parser;
+
+ /**
+ * @generated
+ */
+ private List<?> parserElements;
+
+ /**
+ * @generated
+ */
+ private String defaultText;
+
+ /**
+ * direct edition mode (default, undefined, registered editor, etc.)
+ *
+ * @generated
+ */
+ protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
+
+ /**
+ * configuration from a registered edit dialog
+ *
+ * @generated
+ */
+ protected IDirectEditorConfiguration configuration;
+
+ /**
+ * @generated
+ */
+ public InteractionConstraintNameEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
+ installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new CompositeStructureDiagramEditPart.NodeLabelDragPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelTextHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getText();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getText();
+ } else {
+ return ((Label)figure).getText();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelTextHelper(IFigure figure, String text) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setText(text);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setText(text);
+ } else {
+ ((Label)figure).setText(text);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIconHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getIcon();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getIcon();
+ } else {
+ return ((Label)figure).getIcon();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelIconHelper(IFigure figure, Image icon) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setIcon(icon);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setIcon(icon);
+ } else {
+ ((Label)figure).setIcon(icon);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabel(WrappingLabel figure) {
+ unregisterVisuals();
+ setFigure(figure);
+ defaultText = getLabelTextHelper(figure);
+ registerVisuals();
+ refreshVisuals();
+ }
+
+ /**
+ * @generated
+ */
+ protected List getModelChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject getParserElement() {
+ return resolveSemanticElement();
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIcon() {
+ EObject parserElement = getParserElement();
+ if(parserElement == null) {
+ return null;
+ }
+
+ List<View> views = DiagramEditPartsUtil.findViews(parserElement, getViewer());
+ for(View view : views) {
+ if(NameLabelIconHelper.showLabelIcon(view)) {
+ return UMLElementTypes.getImage(parserElement.eClass());
+ }
+ }
+ return null;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelText() {
+ String text = null;
+ EObject parserElement = getParserElement();
+ if(parserElement != null && getParser() != null) {
+ text = getParser().getPrintString(new EObjectAdapter(parserElement), getParserOptions().intValue());
+ }
+ if(text == null || text.length() == 0) {
+ text = defaultText;
+ }
+ return text;
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabelText(String text) {
+ setLabelTextHelper(getFigure(), text);
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public String getEditText() {
+ if(getParserElement() == null || getParser() == null) {
+ return ""; //$NON-NLS-1$
+ }
+ return getParser().getEditString(new EObjectAdapter(getParserElement()), getParserOptions().intValue());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean isEditable() {
+ return getParser() != null;
+ }
+
+ /**
+ * @generated
+ */
+ public ICellEditorValidator getEditTextValidator() {
+ return new ICellEditorValidator() {
+
+ public String isValid(final Object value) {
+ if(value instanceof String) {
+ final EObject element = getParserElement();
+ final IParser parser = getParser();
+ try {
+ IParserEditStatus valid = (IParserEditStatus)getEditingDomain().runExclusive(new RunnableWithResult.Impl() {
+
+ public void run() {
+ setResult(parser.isValidEditString(new EObjectAdapter(element), (String)value));
+ }
+ });
+ return valid.getCode() == ParserEditStatus.EDITABLE ? null : valid.getMessage();
+ } catch (InterruptedException ie) {
+ ie.printStackTrace();
+ }
+ }
+
+ // shouldn't get here
+ return null;
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ public IContentAssistProcessor getCompletionProcessor() {
+ if(getParserElement() == null || getParser() == null) {
+ return null;
+ }
+ return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
+ }
+
+ /**
+ * @generated
+ */
+ public ParserOptions getParserOptions() {
+ return ParserOptions.NONE;
+ }
+
+ /**
+ * @generated
+ */
+ public IParser getParser() {
+ if(parser == null) {
+ parser = UMLParserProvider.getParser(UMLElementTypes.InteractionConstraint_2113, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.diagram.composite.edit.parts.InteractionConstraintNameEditPart.VISUAL_ID));
+ }
+ return parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected DirectEditManager getManager() {
+ if(manager == null) {
+ setManager(new MultilineLabelDirectEditManager(this, MultilineLabelDirectEditManager.getTextCellEditorClass(this), UMLEditPartFactory.getTextCellEditorLocator(this)));
+ }
+ return manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setManager(DirectEditManager manager) {
+ this.manager = manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit() {
+ getManager().show();
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit(Point eventLocation) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(eventLocation.getSWTPoint());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void performDirectEdit(char initialCharacter) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(initialCharacter);
+ } else {
+ performDirectEdit();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEditRequest(Request request) {
+
+ final Request theRequest = request;
+
+ if(IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
+ directEditionMode = getDirectEditionType();
+ }
+ switch(directEditionMode) {
+ case IDirectEdition.NO_DIRECT_EDITION:
+ // no direct edition mode => does nothing
+ return;
+ case IDirectEdition.EXTENDED_DIRECT_EDITOR:
+ updateExtendedEditorConfiguration();
+ if(configuration == null || configuration.getLanguage() == null) {
+ performDefaultDirectEditorEdit(theRequest);
+ } else {
+ configuration.preEditAction(resolveSemanticElement());
+ Dialog dialog = null;
+ if(configuration instanceof IPopupEditorConfiguration) {
+ IPopupEditorHelper helper = ((IPopupEditorConfiguration)configuration).createPopupEditorHelper(this);
+ helper.showEditor();
+ return;
+ } else if(configuration instanceof IAdvancedEditorConfiguration) {
+ dialog = ((IAdvancedEditorConfiguration)configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
+ } else if(configuration instanceof IDirectEditorConfiguration) {
+ dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), ((IDirectEditorConfiguration)configuration).getTextToEdit(resolveSemanticElement()), (IDirectEditorConfiguration)configuration);
+ } else {
+ return;
+ }
+ final Dialog finalDialog = dialog;
+
+ if(Window.OK == dialog.open()) {
+ TransactionalEditingDomain domain = getEditingDomain();
+ RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
+
+ @Override
+ protected void doExecute() {
+ configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog)finalDialog).getValue());
+
+ }
+ };
+ domain.getCommandStack().execute(command);
+ }
+ }
+ break;
+ case IDirectEdition.DEFAULT_DIRECT_EDITOR:
+
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ break;
+ default:
+ break;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshLabel();
+ refreshFont();
+ refreshFontColor();
+ refreshUnderline();
+ refreshStrikeThrough();
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshLabel() {
+ EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
+ if(maskLabelPolicy == null) {
+ setLabelTextHelper(getFigure(), getLabelText());
+ setLabelIconHelper(getFigure(), getLabelIcon());
+ }
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshUnderline() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextUnderline(style.isUnderline());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshStrikeThrough() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextStrikeThrough(style.isStrikeThrough());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshFont() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null) {
+ FontData fontData = new FontData(style.getFontName(), style.getFontHeight(), (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
+ setFont(fontData);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setFontColor(Color color) {
+ getFigure().setForegroundColor(color);
+ }
+
+ /**
+ * @generated
+ */
+ protected void addSemanticListeners() {
+ if(getParser() instanceof ISemanticParser) {
+ EObject element = resolveSemanticElement();
+ parserElements = ((ISemanticParser)getParser()).getSemanticElementsBeingParsed(element);
+ for(int i = 0; i < parserElements.size(); i++) {
+ addListenerFilter("SemanticModel" + i, this, (EObject)parserElements.get(i)); //$NON-NLS-1$
+ }
+ } else {
+ super.addSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeSemanticListeners() {
+ if(parserElements != null) {
+ for(int i = 0; i < parserElements.size(); i++) {
+ removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
+ }
+ } else {
+ super.removeSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected AccessibleEditPart getAccessibleEditPart() {
+ if(accessibleEP == null) {
+ accessibleEP = new AccessibleGraphicalEditPart() {
+
+ public void getName(AccessibleEvent e) {
+ e.result = getLabelTextHelper(getFigure());
+ }
+ };
+ }
+ return accessibleEP;
+ }
+
+ /**
+ * @generated
+ */
+ private View getFontStyleOwnerView() {
+ return (View)getModel();
+ }
+
+ /**
+ * Returns the kind of associated editor for direct edition.
+ *
+ * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition
+ * @generated
+ */
+ public int getDirectEditionType() {
+ if(checkExtendedEditor()) {
+ initExtendedEditorConfiguration();
+ return IDirectEdition.EXTENDED_DIRECT_EDITOR;
+ }
+ if(checkDefaultEdition()) {
+ return IDirectEdition.DEFAULT_DIRECT_EDITOR;
+ }
+
+ // not a named element. no specific editor => do nothing
+ return IDirectEdition.NO_DIRECT_EDITION;
+ }
+
+ /**
+ * Checks if an extended editor is present.
+ *
+ * @return <code>true</code> if an extended editor is present.
+ * @generated
+ */
+ protected boolean checkExtendedEditor() {
+ if(resolveSemanticElement() != null) {
+ return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ return false;
+ }
+
+ /**
+ * Checks if a default direct edition is available
+ *
+ * @return <code>true</code> if a default direct edition is available
+ * @generated
+ */
+ protected boolean checkDefaultEdition() {
+ return (getParser() != null);
+ }
+
+ /**
+ * Initializes the extended editor configuration
+ *
+ * @generated
+ */
+ protected void initExtendedEditorConfiguration() {
+ if(configuration == null) {
+ final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("")) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else {
+ configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ }
+ }
+
+ /**
+ * Updates the preference configuration
+ *
+ * @generated
+ */
+ protected void updateExtendedEditorConfiguration() {
+ String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("") && languagePreferred != configuration.getLanguage()) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else if(IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
+ configuration = null;
+ }
+ }
+
+ /**
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
+ protected void performDefaultDirectEditorEdit(final Request theRequest) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void addNotationalListeners() {
+ super.addNotationalListeners();
+ addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeNotationalListeners() {
+ super.removeNotationalListeners();
+ removeListenerFilter("PrimaryView"); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void handleNotificationEvent(Notification event) {
+ refreshLabel();
+ Object feature = event.getFeature();
+ if(NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
+ Integer c = (Integer)event.getNewValue();
+ setFontColor(DiagramColorRegistry.getInstance().getColor(c));
+ } else if(NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
+ refreshUnderline();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
+ refreshStrikeThrough();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
+ refreshFont();
+ } else {
+ if(getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
+ refreshLabel();
+ }
+ if(getParser() instanceof ISemanticParser) {
+ ISemanticParser modelParser = (ISemanticParser)getParser();
+ if(modelParser.areSemanticElementsAffected(null, event)) {
+ removeSemanticListeners();
+ if(resolveSemanticElement() != null) {
+ addSemanticListeners();
+ }
+ refreshLabel();
+ }
+ }
+ }
+
+ if(event.getNewValue() instanceof EAnnotation && VisualInformationPapyrusConstant.DISPLAY_NAMELABELICON.equals(((EAnnotation)event.getNewValue()).getSource())) {
+ refreshLabel();
+ }
+
+ super.handleNotificationEvent(event);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createFigure() {
+ // Parent should assign one using setLabel() method
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ private static final String ADD_PARENT_MODEL = "AddParentModel";
+
+ /**
+ * @generated
+ */
+ public void activate() {
+ super.activate();
+ addOwnerElementListeners();
+ }
+
+ /**
+ * @generated
+ */
+ protected void addOwnerElementListeners() {
+ addListenerFilter(ADD_PARENT_MODEL, this, ((View)getParent().getModel())); //$NON-NLS-1$
+
+ }
+
+ /**
+ * @generated
+ */
+ public void deactivate() {
+ removeOwnerElementListeners();
+ super.deactivate();
+
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeOwnerElementListeners() {
+ removeListenerFilter(ADD_PARENT_MODEL);
+
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/InteractionConstraintNameEditPartCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/InteractionConstraintNameEditPartCN.java
new file mode 100644
index 00000000000..1f210af0265
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/InteractionConstraintNameEditPartCN.java
@@ -0,0 +1,791 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EAnnotation;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.emf.transaction.RunnableWithResult;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.AccessibleEditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.requests.DirectEditRequest;
+import org.eclipse.gef.tools.DirectEditManager;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.CompartmentEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
+import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
+import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
+import org.eclipse.gmf.runtime.notation.FontStyle;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
+import org.eclipse.jface.viewers.ICellEditorValidator;
+import org.eclipse.jface.window.Window;
+import org.eclipse.papyrus.diagram.common.directedit.MultilineLabelDirectEditManager;
+import org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition;
+import org.eclipse.papyrus.diagram.common.editpolicies.IMaskManagedLabelEditPolicy;
+import org.eclipse.papyrus.diagram.common.figure.node.ILabelFigure;
+import org.eclipse.papyrus.diagram.common.util.DiagramEditPartsUtil;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLTextSelectionEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.diagram.composite.providers.UMLParserProvider;
+import org.eclipse.papyrus.extensionpoints.editors.Activator;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
+import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
+import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
+import org.eclipse.papyrus.umlutils.ui.VisualInformationPapyrusConstant;
+import org.eclipse.papyrus.umlutils.ui.helper.NameLabelIconHelper;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.AccessibleEvent;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.FontData;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.ui.PlatformUI;
+
+/**
+ * @generated
+ */
+public class InteractionConstraintNameEditPartCN extends CompartmentEditPart implements ITextAwareEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 6046;
+
+ /**
+ * @generated
+ */
+ private DirectEditManager manager;
+
+ /**
+ * @generated
+ */
+ private IParser parser;
+
+ /**
+ * @generated
+ */
+ private List<?> parserElements;
+
+ /**
+ * @generated
+ */
+ private String defaultText;
+
+ /**
+ * direct edition mode (default, undefined, registered editor, etc.)
+ *
+ * @generated
+ */
+ protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
+
+ /**
+ * configuration from a registered edit dialog
+ *
+ * @generated
+ */
+ protected IDirectEditorConfiguration configuration;
+
+ /**
+ * @generated
+ */
+ public InteractionConstraintNameEditPartCN(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
+ installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new CompositeStructureDiagramEditPart.NodeLabelDragPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelTextHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getText();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getText();
+ } else {
+ return ((Label)figure).getText();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelTextHelper(IFigure figure, String text) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setText(text);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setText(text);
+ } else {
+ ((Label)figure).setText(text);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIconHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getIcon();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getIcon();
+ } else {
+ return ((Label)figure).getIcon();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelIconHelper(IFigure figure, Image icon) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setIcon(icon);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setIcon(icon);
+ } else {
+ ((Label)figure).setIcon(icon);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabel(WrappingLabel figure) {
+ unregisterVisuals();
+ setFigure(figure);
+ defaultText = getLabelTextHelper(figure);
+ registerVisuals();
+ refreshVisuals();
+ }
+
+ /**
+ * @generated
+ */
+ protected List getModelChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject getParserElement() {
+ return resolveSemanticElement();
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIcon() {
+ EObject parserElement = getParserElement();
+ if(parserElement == null) {
+ return null;
+ }
+
+ List<View> views = DiagramEditPartsUtil.findViews(parserElement, getViewer());
+ for(View view : views) {
+ if(NameLabelIconHelper.showLabelIcon(view)) {
+ return UMLElementTypes.getImage(parserElement.eClass());
+ }
+ }
+ return null;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelText() {
+ String text = null;
+ EObject parserElement = getParserElement();
+ if(parserElement != null && getParser() != null) {
+ text = getParser().getPrintString(new EObjectAdapter(parserElement), getParserOptions().intValue());
+ }
+ if(text == null || text.length() == 0) {
+ text = defaultText;
+ }
+ return text;
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabelText(String text) {
+ setLabelTextHelper(getFigure(), text);
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public String getEditText() {
+ if(getParserElement() == null || getParser() == null) {
+ return ""; //$NON-NLS-1$
+ }
+ return getParser().getEditString(new EObjectAdapter(getParserElement()), getParserOptions().intValue());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean isEditable() {
+ return getParser() != null;
+ }
+
+ /**
+ * @generated
+ */
+ public ICellEditorValidator getEditTextValidator() {
+ return new ICellEditorValidator() {
+
+ public String isValid(final Object value) {
+ if(value instanceof String) {
+ final EObject element = getParserElement();
+ final IParser parser = getParser();
+ try {
+ IParserEditStatus valid = (IParserEditStatus)getEditingDomain().runExclusive(new RunnableWithResult.Impl() {
+
+ public void run() {
+ setResult(parser.isValidEditString(new EObjectAdapter(element), (String)value));
+ }
+ });
+ return valid.getCode() == ParserEditStatus.EDITABLE ? null : valid.getMessage();
+ } catch (InterruptedException ie) {
+ ie.printStackTrace();
+ }
+ }
+
+ // shouldn't get here
+ return null;
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ public IContentAssistProcessor getCompletionProcessor() {
+ if(getParserElement() == null || getParser() == null) {
+ return null;
+ }
+ return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
+ }
+
+ /**
+ * @generated
+ */
+ public ParserOptions getParserOptions() {
+ return ParserOptions.NONE;
+ }
+
+ /**
+ * @generated
+ */
+ public IParser getParser() {
+ if(parser == null) {
+ parser = UMLParserProvider.getParser(UMLElementTypes.InteractionConstraint_3119, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.diagram.composite.edit.parts.InteractionConstraintNameEditPartCN.VISUAL_ID));
+ }
+ return parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected DirectEditManager getManager() {
+ if(manager == null) {
+ setManager(new MultilineLabelDirectEditManager(this, MultilineLabelDirectEditManager.getTextCellEditorClass(this), UMLEditPartFactory.getTextCellEditorLocator(this)));
+ }
+ return manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setManager(DirectEditManager manager) {
+ this.manager = manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit() {
+ getManager().show();
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit(Point eventLocation) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(eventLocation.getSWTPoint());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void performDirectEdit(char initialCharacter) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(initialCharacter);
+ } else {
+ performDirectEdit();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEditRequest(Request request) {
+
+ final Request theRequest = request;
+
+ if(IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
+ directEditionMode = getDirectEditionType();
+ }
+ switch(directEditionMode) {
+ case IDirectEdition.NO_DIRECT_EDITION:
+ // no direct edition mode => does nothing
+ return;
+ case IDirectEdition.EXTENDED_DIRECT_EDITOR:
+ updateExtendedEditorConfiguration();
+ if(configuration == null || configuration.getLanguage() == null) {
+ performDefaultDirectEditorEdit(theRequest);
+ } else {
+ configuration.preEditAction(resolveSemanticElement());
+ Dialog dialog = null;
+ if(configuration instanceof IPopupEditorConfiguration) {
+ IPopupEditorHelper helper = ((IPopupEditorConfiguration)configuration).createPopupEditorHelper(this);
+ helper.showEditor();
+ return;
+ } else if(configuration instanceof IAdvancedEditorConfiguration) {
+ dialog = ((IAdvancedEditorConfiguration)configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
+ } else if(configuration instanceof IDirectEditorConfiguration) {
+ dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), ((IDirectEditorConfiguration)configuration).getTextToEdit(resolveSemanticElement()), (IDirectEditorConfiguration)configuration);
+ } else {
+ return;
+ }
+ final Dialog finalDialog = dialog;
+
+ if(Window.OK == dialog.open()) {
+ TransactionalEditingDomain domain = getEditingDomain();
+ RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
+
+ @Override
+ protected void doExecute() {
+ configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog)finalDialog).getValue());
+
+ }
+ };
+ domain.getCommandStack().execute(command);
+ }
+ }
+ break;
+ case IDirectEdition.DEFAULT_DIRECT_EDITOR:
+
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ break;
+ default:
+ break;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshLabel();
+ refreshFont();
+ refreshFontColor();
+ refreshUnderline();
+ refreshStrikeThrough();
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshLabel() {
+ EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
+ if(maskLabelPolicy == null) {
+ setLabelTextHelper(getFigure(), getLabelText());
+ setLabelIconHelper(getFigure(), getLabelIcon());
+ }
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshUnderline() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextUnderline(style.isUnderline());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshStrikeThrough() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextStrikeThrough(style.isStrikeThrough());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshFont() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null) {
+ FontData fontData = new FontData(style.getFontName(), style.getFontHeight(), (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
+ setFont(fontData);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setFontColor(Color color) {
+ getFigure().setForegroundColor(color);
+ }
+
+ /**
+ * @generated
+ */
+ protected void addSemanticListeners() {
+ if(getParser() instanceof ISemanticParser) {
+ EObject element = resolveSemanticElement();
+ parserElements = ((ISemanticParser)getParser()).getSemanticElementsBeingParsed(element);
+ for(int i = 0; i < parserElements.size(); i++) {
+ addListenerFilter("SemanticModel" + i, this, (EObject)parserElements.get(i)); //$NON-NLS-1$
+ }
+ } else {
+ super.addSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeSemanticListeners() {
+ if(parserElements != null) {
+ for(int i = 0; i < parserElements.size(); i++) {
+ removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
+ }
+ } else {
+ super.removeSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected AccessibleEditPart getAccessibleEditPart() {
+ if(accessibleEP == null) {
+ accessibleEP = new AccessibleGraphicalEditPart() {
+
+ public void getName(AccessibleEvent e) {
+ e.result = getLabelTextHelper(getFigure());
+ }
+ };
+ }
+ return accessibleEP;
+ }
+
+ /**
+ * @generated
+ */
+ private View getFontStyleOwnerView() {
+ return (View)getModel();
+ }
+
+ /**
+ * Returns the kind of associated editor for direct edition.
+ *
+ * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition
+ * @generated
+ */
+ public int getDirectEditionType() {
+ if(checkExtendedEditor()) {
+ initExtendedEditorConfiguration();
+ return IDirectEdition.EXTENDED_DIRECT_EDITOR;
+ }
+ if(checkDefaultEdition()) {
+ return IDirectEdition.DEFAULT_DIRECT_EDITOR;
+ }
+
+ // not a named element. no specific editor => do nothing
+ return IDirectEdition.NO_DIRECT_EDITION;
+ }
+
+ /**
+ * Checks if an extended editor is present.
+ *
+ * @return <code>true</code> if an extended editor is present.
+ * @generated
+ */
+ protected boolean checkExtendedEditor() {
+ if(resolveSemanticElement() != null) {
+ return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ return false;
+ }
+
+ /**
+ * Checks if a default direct edition is available
+ *
+ * @return <code>true</code> if a default direct edition is available
+ * @generated
+ */
+ protected boolean checkDefaultEdition() {
+ return (getParser() != null);
+ }
+
+ /**
+ * Initializes the extended editor configuration
+ *
+ * @generated
+ */
+ protected void initExtendedEditorConfiguration() {
+ if(configuration == null) {
+ final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("")) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else {
+ configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ }
+ }
+
+ /**
+ * Updates the preference configuration
+ *
+ * @generated
+ */
+ protected void updateExtendedEditorConfiguration() {
+ String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("") && languagePreferred != configuration.getLanguage()) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else if(IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
+ configuration = null;
+ }
+ }
+
+ /**
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
+ protected void performDefaultDirectEditorEdit(final Request theRequest) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void addNotationalListeners() {
+ super.addNotationalListeners();
+ addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeNotationalListeners() {
+ super.removeNotationalListeners();
+ removeListenerFilter("PrimaryView"); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void handleNotificationEvent(Notification event) {
+ refreshLabel();
+ Object feature = event.getFeature();
+ if(NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
+ Integer c = (Integer)event.getNewValue();
+ setFontColor(DiagramColorRegistry.getInstance().getColor(c));
+ } else if(NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
+ refreshUnderline();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
+ refreshStrikeThrough();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
+ refreshFont();
+ } else {
+ if(getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
+ refreshLabel();
+ }
+ if(getParser() instanceof ISemanticParser) {
+ ISemanticParser modelParser = (ISemanticParser)getParser();
+ if(modelParser.areSemanticElementsAffected(null, event)) {
+ removeSemanticListeners();
+ if(resolveSemanticElement() != null) {
+ addSemanticListeners();
+ }
+ refreshLabel();
+ }
+ }
+ }
+
+ if(event.getNewValue() instanceof EAnnotation && VisualInformationPapyrusConstant.DISPLAY_NAMELABELICON.equals(((EAnnotation)event.getNewValue()).getSource())) {
+ refreshLabel();
+ }
+
+ super.handleNotificationEvent(event);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createFigure() {
+ // Parent should assign one using setLabel() method
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ private static final String ADD_PARENT_MODEL = "AddParentModel";
+
+ /**
+ * @generated
+ */
+ public void activate() {
+ super.activate();
+ addOwnerElementListeners();
+ }
+
+ /**
+ * @generated
+ */
+ protected void addOwnerElementListeners() {
+ addListenerFilter(ADD_PARENT_MODEL, this, ((View)getParent().getModel())); //$NON-NLS-1$
+
+ }
+
+ /**
+ * @generated
+ */
+ public void deactivate() {
+ removeOwnerElementListeners();
+ super.deactivate();
+
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeOwnerElementListeners() {
+ removeListenerFilter(ADD_PARENT_MODEL);
+
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/InteractionConstraintSpecificationEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/InteractionConstraintSpecificationEditPart.java
new file mode 100644
index 00000000000..387601113fb
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/InteractionConstraintSpecificationEditPart.java
@@ -0,0 +1,772 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.emf.transaction.RunnableWithResult;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.AccessibleEditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.requests.DirectEditRequest;
+import org.eclipse.gef.tools.DirectEditManager;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.CompartmentEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
+import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
+import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
+import org.eclipse.gmf.runtime.notation.FontStyle;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
+import org.eclipse.jface.viewers.ICellEditorValidator;
+import org.eclipse.jface.window.Window;
+import org.eclipse.papyrus.diagram.common.directedit.MultilineLabelDirectEditManager;
+import org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition;
+import org.eclipse.papyrus.diagram.common.editpolicies.IMaskManagedLabelEditPolicy;
+import org.eclipse.papyrus.diagram.common.figure.node.ConstraintFigure;
+import org.eclipse.papyrus.diagram.common.figure.node.ILabelFigure;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLTextSelectionEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.diagram.composite.providers.UMLParserProvider;
+import org.eclipse.papyrus.extensionpoints.editors.Activator;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
+import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
+import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.AccessibleEvent;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.FontData;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.ui.PlatformUI;
+
+/**
+ * @generated
+ */
+public class InteractionConstraintSpecificationEditPart extends CompartmentEditPart implements ITextAwareEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 6038;
+
+ /**
+ * @generated
+ */
+ private DirectEditManager manager;
+
+ /**
+ * @generated
+ */
+ private IParser parser;
+
+ /**
+ * @generated
+ */
+ private List<?> parserElements;
+
+ /**
+ * @generated
+ */
+ private String defaultText;
+
+ /**
+ * direct edition mode (default, undefined, registered editor, etc.)
+ *
+ * @generated
+ */
+ protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
+
+ /**
+ * configuration from a registered edit dialog
+ *
+ * @generated
+ */
+ protected IDirectEditorConfiguration configuration;
+
+ /**
+ * @generated
+ */
+ public InteractionConstraintSpecificationEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
+ installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new CompositeStructureDiagramEditPart.NodeLabelDragPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelTextHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getText();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getText();
+ } else {
+ return ((Label)figure).getText();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelTextHelper(IFigure figure, String text) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setText(text);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setText(text);
+ } else {
+ ((Label)figure).setText(text);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIconHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getIcon();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getIcon();
+ } else {
+ return ((Label)figure).getIcon();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelIconHelper(IFigure figure, Image icon) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setIcon(icon);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setIcon(icon);
+ } else {
+ ((Label)figure).setIcon(icon);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabel(ConstraintFigure figure) {
+ unregisterVisuals();
+ setFigure(figure);
+ defaultText = getLabelTextHelper(figure);
+ registerVisuals();
+ refreshVisuals();
+ }
+
+ /**
+ * @generated
+ */
+ protected List getModelChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject getParserElement() {
+ return resolveSemanticElement();
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIcon() {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelText() {
+ String text = null;
+ EObject parserElement = getParserElement();
+ if(parserElement != null && getParser() != null) {
+ text = getParser().getPrintString(new EObjectAdapter(parserElement), getParserOptions().intValue());
+ }
+ if(text == null || text.length() == 0) {
+ text = defaultText;
+ }
+ return text;
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabelText(String text) {
+ setLabelTextHelper(getFigure(), text);
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public String getEditText() {
+ if(getParserElement() == null || getParser() == null) {
+ return ""; //$NON-NLS-1$
+ }
+ return getParser().getEditString(new EObjectAdapter(getParserElement()), getParserOptions().intValue());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean isEditable() {
+ return getParser() != null;
+ }
+
+ /**
+ * @generated
+ */
+ public ICellEditorValidator getEditTextValidator() {
+ return new ICellEditorValidator() {
+
+ public String isValid(final Object value) {
+ if(value instanceof String) {
+ final EObject element = getParserElement();
+ final IParser parser = getParser();
+ try {
+ IParserEditStatus valid = (IParserEditStatus)getEditingDomain().runExclusive(new RunnableWithResult.Impl() {
+
+ public void run() {
+ setResult(parser.isValidEditString(new EObjectAdapter(element), (String)value));
+ }
+ });
+ return valid.getCode() == ParserEditStatus.EDITABLE ? null : valid.getMessage();
+ } catch (InterruptedException ie) {
+ ie.printStackTrace();
+ }
+ }
+
+ // shouldn't get here
+ return null;
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ public IContentAssistProcessor getCompletionProcessor() {
+ if(getParserElement() == null || getParser() == null) {
+ return null;
+ }
+ return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
+ }
+
+ /**
+ * @generated
+ */
+ public ParserOptions getParserOptions() {
+ return ParserOptions.NONE;
+ }
+
+ /**
+ * @generated
+ */
+ public IParser getParser() {
+ if(parser == null) {
+ parser = UMLParserProvider.getParser(UMLElementTypes.InteractionConstraint_2113, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.diagram.composite.edit.parts.InteractionConstraintSpecificationEditPart.VISUAL_ID));
+ }
+ return parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected DirectEditManager getManager() {
+ if(manager == null) {
+ setManager(new MultilineLabelDirectEditManager(this, MultilineLabelDirectEditManager.getTextCellEditorClass(this), UMLEditPartFactory.getTextCellEditorLocator(this)));
+ }
+ return manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setManager(DirectEditManager manager) {
+ this.manager = manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit() {
+ getManager().show();
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit(Point eventLocation) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(eventLocation.getSWTPoint());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void performDirectEdit(char initialCharacter) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(initialCharacter);
+ } else {
+ performDirectEdit();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEditRequest(Request request) {
+
+ final Request theRequest = request;
+
+ if(IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
+ directEditionMode = getDirectEditionType();
+ }
+ switch(directEditionMode) {
+ case IDirectEdition.NO_DIRECT_EDITION:
+ // no direct edition mode => does nothing
+ return;
+ case IDirectEdition.EXTENDED_DIRECT_EDITOR:
+ updateExtendedEditorConfiguration();
+ if(configuration == null || configuration.getLanguage() == null) {
+ performDefaultDirectEditorEdit(theRequest);
+ } else {
+ configuration.preEditAction(resolveSemanticElement());
+ Dialog dialog = null;
+ if(configuration instanceof IPopupEditorConfiguration) {
+ IPopupEditorHelper helper = ((IPopupEditorConfiguration)configuration).createPopupEditorHelper(this);
+ helper.showEditor();
+ return;
+ } else if(configuration instanceof IAdvancedEditorConfiguration) {
+ dialog = ((IAdvancedEditorConfiguration)configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
+ } else if(configuration instanceof IDirectEditorConfiguration) {
+ dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), ((IDirectEditorConfiguration)configuration).getTextToEdit(resolveSemanticElement()), (IDirectEditorConfiguration)configuration);
+ } else {
+ return;
+ }
+ final Dialog finalDialog = dialog;
+
+ if(Window.OK == dialog.open()) {
+ TransactionalEditingDomain domain = getEditingDomain();
+ RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
+
+ @Override
+ protected void doExecute() {
+ configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog)finalDialog).getValue());
+
+ }
+ };
+ domain.getCommandStack().execute(command);
+ }
+ }
+ break;
+ case IDirectEdition.DEFAULT_DIRECT_EDITOR:
+
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ break;
+ default:
+ break;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshLabel();
+ refreshFont();
+ refreshFontColor();
+ refreshUnderline();
+ refreshStrikeThrough();
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshLabel() {
+ EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
+ if(maskLabelPolicy == null) {
+ setLabelTextHelper(getFigure(), getLabelText());
+ setLabelIconHelper(getFigure(), getLabelIcon());
+ }
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshUnderline() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextUnderline(style.isUnderline());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshStrikeThrough() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextStrikeThrough(style.isStrikeThrough());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshFont() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null) {
+ FontData fontData = new FontData(style.getFontName(), style.getFontHeight(), (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
+ setFont(fontData);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setFontColor(Color color) {
+ getFigure().setForegroundColor(color);
+ }
+
+ /**
+ * @generated
+ */
+ protected void addSemanticListeners() {
+ if(getParser() instanceof ISemanticParser) {
+ EObject element = resolveSemanticElement();
+ parserElements = ((ISemanticParser)getParser()).getSemanticElementsBeingParsed(element);
+ for(int i = 0; i < parserElements.size(); i++) {
+ addListenerFilter("SemanticModel" + i, this, (EObject)parserElements.get(i)); //$NON-NLS-1$
+ }
+ } else {
+ super.addSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeSemanticListeners() {
+ if(parserElements != null) {
+ for(int i = 0; i < parserElements.size(); i++) {
+ removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
+ }
+ } else {
+ super.removeSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected AccessibleEditPart getAccessibleEditPart() {
+ if(accessibleEP == null) {
+ accessibleEP = new AccessibleGraphicalEditPart() {
+
+ public void getName(AccessibleEvent e) {
+ e.result = getLabelTextHelper(getFigure());
+ }
+ };
+ }
+ return accessibleEP;
+ }
+
+ /**
+ * @generated
+ */
+ private View getFontStyleOwnerView() {
+ return getPrimaryView();
+ }
+
+ /**
+ * Returns the kind of associated editor for direct edition.
+ *
+ * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition
+ * @generated
+ */
+ public int getDirectEditionType() {
+ if(checkExtendedEditor()) {
+ initExtendedEditorConfiguration();
+ return IDirectEdition.EXTENDED_DIRECT_EDITOR;
+ }
+ if(checkDefaultEdition()) {
+ return IDirectEdition.DEFAULT_DIRECT_EDITOR;
+ }
+
+ // not a named element. no specific editor => do nothing
+ return IDirectEdition.NO_DIRECT_EDITION;
+ }
+
+ /**
+ * Checks if an extended editor is present.
+ *
+ * @return <code>true</code> if an extended editor is present.
+ * @generated
+ */
+ protected boolean checkExtendedEditor() {
+ if(resolveSemanticElement() != null) {
+ return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ return false;
+ }
+
+ /**
+ * Checks if a default direct edition is available
+ *
+ * @return <code>true</code> if a default direct edition is available
+ * @generated
+ */
+ protected boolean checkDefaultEdition() {
+ return (getParser() != null);
+ }
+
+ /**
+ * Initializes the extended editor configuration
+ *
+ * @generated
+ */
+ protected void initExtendedEditorConfiguration() {
+ if(configuration == null) {
+ final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("")) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else {
+ configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ }
+ }
+
+ /**
+ * Updates the preference configuration
+ *
+ * @generated
+ */
+ protected void updateExtendedEditorConfiguration() {
+ String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("") && languagePreferred != configuration.getLanguage()) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else if(IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
+ configuration = null;
+ }
+ }
+
+ /**
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
+ protected void performDefaultDirectEditorEdit(final Request theRequest) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void addNotationalListeners() {
+ super.addNotationalListeners();
+ addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeNotationalListeners() {
+ super.removeNotationalListeners();
+ removeListenerFilter("PrimaryView"); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void handleNotificationEvent(Notification event) {
+ refreshLabel();
+ Object feature = event.getFeature();
+ if(NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
+ Integer c = (Integer)event.getNewValue();
+ setFontColor(DiagramColorRegistry.getInstance().getColor(c));
+ } else if(NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
+ refreshUnderline();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
+ refreshStrikeThrough();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
+ refreshFont();
+ } else {
+ if(getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
+ refreshLabel();
+ }
+ if(getParser() instanceof ISemanticParser) {
+ ISemanticParser modelParser = (ISemanticParser)getParser();
+ if(modelParser.areSemanticElementsAffected(null, event)) {
+ removeSemanticListeners();
+ if(resolveSemanticElement() != null) {
+ addSemanticListeners();
+ }
+ refreshLabel();
+ }
+ }
+ }
+
+ super.handleNotificationEvent(event);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createFigure() {
+ // Parent should assign one using setLabel() method
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ private static final String ADD_PARENT_MODEL = "AddParentModel";
+
+ /**
+ * @generated
+ */
+ public void activate() {
+ super.activate();
+ addOwnerElementListeners();
+ }
+
+ /**
+ * @generated
+ */
+ protected void addOwnerElementListeners() {
+ addListenerFilter(ADD_PARENT_MODEL, this, ((View)getParent().getModel())); //$NON-NLS-1$
+
+ }
+
+ /**
+ * @generated
+ */
+ public void deactivate() {
+ removeOwnerElementListeners();
+ super.deactivate();
+
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeOwnerElementListeners() {
+ removeListenerFilter(ADD_PARENT_MODEL);
+
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/InteractionConstraintSpecificationEditPartCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/InteractionConstraintSpecificationEditPartCN.java
new file mode 100644
index 00000000000..67d5cbb34a3
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/InteractionConstraintSpecificationEditPartCN.java
@@ -0,0 +1,772 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.emf.transaction.RunnableWithResult;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.AccessibleEditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.requests.DirectEditRequest;
+import org.eclipse.gef.tools.DirectEditManager;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.CompartmentEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
+import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
+import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
+import org.eclipse.gmf.runtime.notation.FontStyle;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
+import org.eclipse.jface.viewers.ICellEditorValidator;
+import org.eclipse.jface.window.Window;
+import org.eclipse.papyrus.diagram.common.directedit.MultilineLabelDirectEditManager;
+import org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition;
+import org.eclipse.papyrus.diagram.common.editpolicies.IMaskManagedLabelEditPolicy;
+import org.eclipse.papyrus.diagram.common.figure.node.ConstraintFigure;
+import org.eclipse.papyrus.diagram.common.figure.node.ILabelFigure;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLTextSelectionEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.diagram.composite.providers.UMLParserProvider;
+import org.eclipse.papyrus.extensionpoints.editors.Activator;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
+import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
+import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.AccessibleEvent;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.FontData;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.ui.PlatformUI;
+
+/**
+ * @generated
+ */
+public class InteractionConstraintSpecificationEditPartCN extends CompartmentEditPart implements ITextAwareEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 6047;
+
+ /**
+ * @generated
+ */
+ private DirectEditManager manager;
+
+ /**
+ * @generated
+ */
+ private IParser parser;
+
+ /**
+ * @generated
+ */
+ private List<?> parserElements;
+
+ /**
+ * @generated
+ */
+ private String defaultText;
+
+ /**
+ * direct edition mode (default, undefined, registered editor, etc.)
+ *
+ * @generated
+ */
+ protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
+
+ /**
+ * configuration from a registered edit dialog
+ *
+ * @generated
+ */
+ protected IDirectEditorConfiguration configuration;
+
+ /**
+ * @generated
+ */
+ public InteractionConstraintSpecificationEditPartCN(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
+ installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new CompositeStructureDiagramEditPart.NodeLabelDragPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelTextHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getText();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getText();
+ } else {
+ return ((Label)figure).getText();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelTextHelper(IFigure figure, String text) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setText(text);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setText(text);
+ } else {
+ ((Label)figure).setText(text);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIconHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getIcon();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getIcon();
+ } else {
+ return ((Label)figure).getIcon();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelIconHelper(IFigure figure, Image icon) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setIcon(icon);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setIcon(icon);
+ } else {
+ ((Label)figure).setIcon(icon);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabel(ConstraintFigure figure) {
+ unregisterVisuals();
+ setFigure(figure);
+ defaultText = getLabelTextHelper(figure);
+ registerVisuals();
+ refreshVisuals();
+ }
+
+ /**
+ * @generated
+ */
+ protected List getModelChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject getParserElement() {
+ return resolveSemanticElement();
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIcon() {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelText() {
+ String text = null;
+ EObject parserElement = getParserElement();
+ if(parserElement != null && getParser() != null) {
+ text = getParser().getPrintString(new EObjectAdapter(parserElement), getParserOptions().intValue());
+ }
+ if(text == null || text.length() == 0) {
+ text = defaultText;
+ }
+ return text;
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabelText(String text) {
+ setLabelTextHelper(getFigure(), text);
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public String getEditText() {
+ if(getParserElement() == null || getParser() == null) {
+ return ""; //$NON-NLS-1$
+ }
+ return getParser().getEditString(new EObjectAdapter(getParserElement()), getParserOptions().intValue());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean isEditable() {
+ return getParser() != null;
+ }
+
+ /**
+ * @generated
+ */
+ public ICellEditorValidator getEditTextValidator() {
+ return new ICellEditorValidator() {
+
+ public String isValid(final Object value) {
+ if(value instanceof String) {
+ final EObject element = getParserElement();
+ final IParser parser = getParser();
+ try {
+ IParserEditStatus valid = (IParserEditStatus)getEditingDomain().runExclusive(new RunnableWithResult.Impl() {
+
+ public void run() {
+ setResult(parser.isValidEditString(new EObjectAdapter(element), (String)value));
+ }
+ });
+ return valid.getCode() == ParserEditStatus.EDITABLE ? null : valid.getMessage();
+ } catch (InterruptedException ie) {
+ ie.printStackTrace();
+ }
+ }
+
+ // shouldn't get here
+ return null;
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ public IContentAssistProcessor getCompletionProcessor() {
+ if(getParserElement() == null || getParser() == null) {
+ return null;
+ }
+ return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
+ }
+
+ /**
+ * @generated
+ */
+ public ParserOptions getParserOptions() {
+ return ParserOptions.NONE;
+ }
+
+ /**
+ * @generated
+ */
+ public IParser getParser() {
+ if(parser == null) {
+ parser = UMLParserProvider.getParser(UMLElementTypes.InteractionConstraint_3119, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.diagram.composite.edit.parts.InteractionConstraintSpecificationEditPartCN.VISUAL_ID));
+ }
+ return parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected DirectEditManager getManager() {
+ if(manager == null) {
+ setManager(new MultilineLabelDirectEditManager(this, MultilineLabelDirectEditManager.getTextCellEditorClass(this), UMLEditPartFactory.getTextCellEditorLocator(this)));
+ }
+ return manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setManager(DirectEditManager manager) {
+ this.manager = manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit() {
+ getManager().show();
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit(Point eventLocation) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(eventLocation.getSWTPoint());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void performDirectEdit(char initialCharacter) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(initialCharacter);
+ } else {
+ performDirectEdit();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEditRequest(Request request) {
+
+ final Request theRequest = request;
+
+ if(IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
+ directEditionMode = getDirectEditionType();
+ }
+ switch(directEditionMode) {
+ case IDirectEdition.NO_DIRECT_EDITION:
+ // no direct edition mode => does nothing
+ return;
+ case IDirectEdition.EXTENDED_DIRECT_EDITOR:
+ updateExtendedEditorConfiguration();
+ if(configuration == null || configuration.getLanguage() == null) {
+ performDefaultDirectEditorEdit(theRequest);
+ } else {
+ configuration.preEditAction(resolveSemanticElement());
+ Dialog dialog = null;
+ if(configuration instanceof IPopupEditorConfiguration) {
+ IPopupEditorHelper helper = ((IPopupEditorConfiguration)configuration).createPopupEditorHelper(this);
+ helper.showEditor();
+ return;
+ } else if(configuration instanceof IAdvancedEditorConfiguration) {
+ dialog = ((IAdvancedEditorConfiguration)configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
+ } else if(configuration instanceof IDirectEditorConfiguration) {
+ dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), ((IDirectEditorConfiguration)configuration).getTextToEdit(resolveSemanticElement()), (IDirectEditorConfiguration)configuration);
+ } else {
+ return;
+ }
+ final Dialog finalDialog = dialog;
+
+ if(Window.OK == dialog.open()) {
+ TransactionalEditingDomain domain = getEditingDomain();
+ RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
+
+ @Override
+ protected void doExecute() {
+ configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog)finalDialog).getValue());
+
+ }
+ };
+ domain.getCommandStack().execute(command);
+ }
+ }
+ break;
+ case IDirectEdition.DEFAULT_DIRECT_EDITOR:
+
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ break;
+ default:
+ break;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshLabel();
+ refreshFont();
+ refreshFontColor();
+ refreshUnderline();
+ refreshStrikeThrough();
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshLabel() {
+ EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
+ if(maskLabelPolicy == null) {
+ setLabelTextHelper(getFigure(), getLabelText());
+ setLabelIconHelper(getFigure(), getLabelIcon());
+ }
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshUnderline() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextUnderline(style.isUnderline());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshStrikeThrough() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextStrikeThrough(style.isStrikeThrough());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshFont() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null) {
+ FontData fontData = new FontData(style.getFontName(), style.getFontHeight(), (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
+ setFont(fontData);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setFontColor(Color color) {
+ getFigure().setForegroundColor(color);
+ }
+
+ /**
+ * @generated
+ */
+ protected void addSemanticListeners() {
+ if(getParser() instanceof ISemanticParser) {
+ EObject element = resolveSemanticElement();
+ parserElements = ((ISemanticParser)getParser()).getSemanticElementsBeingParsed(element);
+ for(int i = 0; i < parserElements.size(); i++) {
+ addListenerFilter("SemanticModel" + i, this, (EObject)parserElements.get(i)); //$NON-NLS-1$
+ }
+ } else {
+ super.addSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeSemanticListeners() {
+ if(parserElements != null) {
+ for(int i = 0; i < parserElements.size(); i++) {
+ removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
+ }
+ } else {
+ super.removeSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected AccessibleEditPart getAccessibleEditPart() {
+ if(accessibleEP == null) {
+ accessibleEP = new AccessibleGraphicalEditPart() {
+
+ public void getName(AccessibleEvent e) {
+ e.result = getLabelTextHelper(getFigure());
+ }
+ };
+ }
+ return accessibleEP;
+ }
+
+ /**
+ * @generated
+ */
+ private View getFontStyleOwnerView() {
+ return getPrimaryView();
+ }
+
+ /**
+ * Returns the kind of associated editor for direct edition.
+ *
+ * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition
+ * @generated
+ */
+ public int getDirectEditionType() {
+ if(checkExtendedEditor()) {
+ initExtendedEditorConfiguration();
+ return IDirectEdition.EXTENDED_DIRECT_EDITOR;
+ }
+ if(checkDefaultEdition()) {
+ return IDirectEdition.DEFAULT_DIRECT_EDITOR;
+ }
+
+ // not a named element. no specific editor => do nothing
+ return IDirectEdition.NO_DIRECT_EDITION;
+ }
+
+ /**
+ * Checks if an extended editor is present.
+ *
+ * @return <code>true</code> if an extended editor is present.
+ * @generated
+ */
+ protected boolean checkExtendedEditor() {
+ if(resolveSemanticElement() != null) {
+ return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ return false;
+ }
+
+ /**
+ * Checks if a default direct edition is available
+ *
+ * @return <code>true</code> if a default direct edition is available
+ * @generated
+ */
+ protected boolean checkDefaultEdition() {
+ return (getParser() != null);
+ }
+
+ /**
+ * Initializes the extended editor configuration
+ *
+ * @generated
+ */
+ protected void initExtendedEditorConfiguration() {
+ if(configuration == null) {
+ final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("")) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else {
+ configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ }
+ }
+
+ /**
+ * Updates the preference configuration
+ *
+ * @generated
+ */
+ protected void updateExtendedEditorConfiguration() {
+ String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("") && languagePreferred != configuration.getLanguage()) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else if(IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
+ configuration = null;
+ }
+ }
+
+ /**
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
+ protected void performDefaultDirectEditorEdit(final Request theRequest) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void addNotationalListeners() {
+ super.addNotationalListeners();
+ addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeNotationalListeners() {
+ super.removeNotationalListeners();
+ removeListenerFilter("PrimaryView"); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void handleNotificationEvent(Notification event) {
+ refreshLabel();
+ Object feature = event.getFeature();
+ if(NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
+ Integer c = (Integer)event.getNewValue();
+ setFontColor(DiagramColorRegistry.getInstance().getColor(c));
+ } else if(NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
+ refreshUnderline();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
+ refreshStrikeThrough();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
+ refreshFont();
+ } else {
+ if(getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
+ refreshLabel();
+ }
+ if(getParser() instanceof ISemanticParser) {
+ ISemanticParser modelParser = (ISemanticParser)getParser();
+ if(modelParser.areSemanticElementsAffected(null, event)) {
+ removeSemanticListeners();
+ if(resolveSemanticElement() != null) {
+ addSemanticListeners();
+ }
+ refreshLabel();
+ }
+ }
+ }
+
+ super.handleNotificationEvent(event);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createFigure() {
+ // Parent should assign one using setLabel() method
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ private static final String ADD_PARENT_MODEL = "AddParentModel";
+
+ /**
+ * @generated
+ */
+ public void activate() {
+ super.activate();
+ addOwnerElementListeners();
+ }
+
+ /**
+ * @generated
+ */
+ protected void addOwnerElementListeners() {
+ addListenerFilter(ADD_PARENT_MODEL, this, ((View)getParent().getModel())); //$NON-NLS-1$
+
+ }
+
+ /**
+ * @generated
+ */
+ public void deactivate() {
+ removeOwnerElementListeners();
+ super.deactivate();
+
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeOwnerElementListeners() {
+ removeListenerFilter(ADD_PARENT_MODEL);
+
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/InteractionEditPartCLN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/InteractionEditPartCLN.java
new file mode 100644
index 00000000000..75659e71be1
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/InteractionEditPartCLN.java
@@ -0,0 +1,781 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EAnnotation;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.emf.transaction.RunnableWithResult;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.AccessibleEditPart;
+import org.eclipse.gef.DragTracker;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.requests.DirectEditRequest;
+import org.eclipse.gef.requests.SelectionRequest;
+import org.eclipse.gef.tools.DirectEditManager;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.CompartmentEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IPrimaryEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.ListItemComponentEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
+import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
+import org.eclipse.gmf.runtime.diagram.ui.tools.DragEditPartsTrackerEx;
+import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
+import org.eclipse.gmf.runtime.notation.FontStyle;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
+import org.eclipse.jface.viewers.ICellEditorValidator;
+import org.eclipse.jface.window.Window;
+import org.eclipse.papyrus.diagram.common.directedit.MultilineLabelDirectEditManager;
+import org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition;
+import org.eclipse.papyrus.diagram.common.editpolicies.IMaskManagedLabelEditPolicy;
+import org.eclipse.papyrus.diagram.common.figure.node.ILabelFigure;
+import org.eclipse.papyrus.diagram.common.util.DiagramEditPartsUtil;
+import org.eclipse.papyrus.diagram.composite.edit.policies.InteractionItemSemanticEditPolicyCLN;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLTextNonResizableEditPolicy;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLTextSelectionEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.diagram.composite.providers.UMLParserProvider;
+import org.eclipse.papyrus.extensionpoints.editors.Activator;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
+import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
+import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
+import org.eclipse.papyrus.umlutils.ui.VisualInformationPapyrusConstant;
+import org.eclipse.papyrus.umlutils.ui.helper.NameLabelIconHelper;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.AccessibleEvent;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.FontData;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.ui.PlatformUI;
+
+/**
+ * @generated
+ */
+public class InteractionEditPartCLN
+
+extends CompartmentEditPart
+
+implements ITextAwareEditPart, IPrimaryEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 3104;
+
+ /**
+ * @generated
+ */
+ private DirectEditManager manager;
+
+ /**
+ * @generated
+ */
+ private IParser parser;
+
+ /**
+ * @generated
+ */
+ private List<?> parserElements;
+
+ /**
+ * @generated
+ */
+ private String defaultText;
+
+ /**
+ * direct edition mode (default, undefined, registered editor, etc.)
+ *
+ * @generated
+ */
+ protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
+
+ /**
+ * configuration from a registered edit dialog
+ *
+ * @generated
+ */
+ protected IDirectEditorConfiguration configuration;
+
+ /**
+ * @generated
+ */
+ public InteractionEditPartCLN(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ public DragTracker getDragTracker(Request request) {
+ if(request instanceof SelectionRequest && ((SelectionRequest)request).getLastButtonPressed() == 3) {
+ return null;
+ }
+ return new DragEditPartsTrackerEx(this);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new InteractionItemSemanticEditPolicyCLN());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new UMLTextNonResizableEditPolicy());
+ installEditPolicy(EditPolicy.COMPONENT_ROLE, new ListItemComponentEditPolicy());
+ installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelTextHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getText();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getText();
+ } else {
+ return ((Label)figure).getText();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelTextHelper(IFigure figure, String text) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setText(text);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setText(text);
+ } else {
+ ((Label)figure).setText(text);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIconHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getIcon();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getIcon();
+ } else {
+ return ((Label)figure).getIcon();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelIconHelper(IFigure figure, Image icon) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setIcon(icon);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setIcon(icon);
+ } else {
+ ((Label)figure).setIcon(icon);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabel(IFigure figure) {
+ unregisterVisuals();
+ setFigure(figure);
+ defaultText = getLabelTextHelper(figure);
+ registerVisuals();
+ refreshVisuals();
+ }
+
+ /**
+ * @generated
+ */
+ protected List getModelChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject getParserElement() {
+ return resolveSemanticElement();
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIcon() {
+ EObject parserElement = getParserElement();
+ if(parserElement == null) {
+ return null;
+ }
+
+ List<View> views = DiagramEditPartsUtil.findViews(parserElement, getViewer());
+ for(View view : views) {
+ if(NameLabelIconHelper.showLabelIcon(view)) {
+ return UMLElementTypes.getImage(parserElement.eClass());
+ }
+ }
+ return null;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelText() {
+ String text = null;
+ EObject parserElement = getParserElement();
+ if(parserElement != null && getParser() != null) {
+ text = getParser().getPrintString(new EObjectAdapter(parserElement), getParserOptions().intValue());
+ }
+ if(text == null || text.length() == 0) {
+ text = defaultText;
+ }
+ return text;
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabelText(String text) {
+ setLabelTextHelper(getFigure(), text);
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public String getEditText() {
+ if(getParserElement() == null || getParser() == null) {
+ return ""; //$NON-NLS-1$
+ }
+ return getParser().getEditString(new EObjectAdapter(getParserElement()), getParserOptions().intValue());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean isEditable() {
+ return getParser() != null;
+ }
+
+ /**
+ * @generated
+ */
+ public ICellEditorValidator getEditTextValidator() {
+ return new ICellEditorValidator() {
+
+ public String isValid(final Object value) {
+ if(value instanceof String) {
+ final EObject element = getParserElement();
+ final IParser parser = getParser();
+ try {
+ IParserEditStatus valid = (IParserEditStatus)getEditingDomain().runExclusive(new RunnableWithResult.Impl() {
+
+ public void run() {
+ setResult(parser.isValidEditString(new EObjectAdapter(element), (String)value));
+ }
+ });
+ return valid.getCode() == ParserEditStatus.EDITABLE ? null : valid.getMessage();
+ } catch (InterruptedException ie) {
+ ie.printStackTrace();
+ }
+ }
+
+ // shouldn't get here
+ return null;
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ public IContentAssistProcessor getCompletionProcessor() {
+ if(getParserElement() == null || getParser() == null) {
+ return null;
+ }
+ return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
+ }
+
+ /**
+ * @generated
+ */
+ public ParserOptions getParserOptions() {
+ return ParserOptions.NONE;
+ }
+
+ /**
+ * @generated
+ */
+ public IParser getParser() {
+ if(parser == null) {
+ parser = UMLParserProvider.getParser(UMLElementTypes.Interaction_3104, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.diagram.composite.edit.parts.InteractionEditPartCLN.VISUAL_ID));
+ }
+ return parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected DirectEditManager getManager() {
+ if(manager == null) {
+ setManager(new MultilineLabelDirectEditManager(this, MultilineLabelDirectEditManager.getTextCellEditorClass(this), UMLEditPartFactory.getTextCellEditorLocator(this)));
+ }
+ return manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setManager(DirectEditManager manager) {
+ this.manager = manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit() {
+ getManager().show();
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit(Point eventLocation) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(eventLocation.getSWTPoint());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void performDirectEdit(char initialCharacter) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(initialCharacter);
+ } else {
+ performDirectEdit();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEditRequest(Request request) {
+
+ final Request theRequest = request;
+
+ if(IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
+ directEditionMode = getDirectEditionType();
+ }
+ switch(directEditionMode) {
+ case IDirectEdition.NO_DIRECT_EDITION:
+ // no direct edition mode => does nothing
+ return;
+ case IDirectEdition.EXTENDED_DIRECT_EDITOR:
+ updateExtendedEditorConfiguration();
+ if(configuration == null || configuration.getLanguage() == null) {
+ performDefaultDirectEditorEdit(theRequest);
+ } else {
+ configuration.preEditAction(resolveSemanticElement());
+ Dialog dialog = null;
+ if(configuration instanceof IPopupEditorConfiguration) {
+ IPopupEditorHelper helper = ((IPopupEditorConfiguration)configuration).createPopupEditorHelper(this);
+ helper.showEditor();
+ return;
+ } else if(configuration instanceof IAdvancedEditorConfiguration) {
+ dialog = ((IAdvancedEditorConfiguration)configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
+ } else if(configuration instanceof IDirectEditorConfiguration) {
+ dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), ((IDirectEditorConfiguration)configuration).getTextToEdit(resolveSemanticElement()), (IDirectEditorConfiguration)configuration);
+ } else {
+ return;
+ }
+ final Dialog finalDialog = dialog;
+
+ if(Window.OK == dialog.open()) {
+ TransactionalEditingDomain domain = getEditingDomain();
+ RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
+
+ @Override
+ protected void doExecute() {
+ configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog)finalDialog).getValue());
+
+ }
+ };
+ domain.getCommandStack().execute(command);
+ }
+ }
+ break;
+ case IDirectEdition.DEFAULT_DIRECT_EDITOR:
+
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ break;
+ default:
+ break;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshLabel();
+ refreshFont();
+ refreshFontColor();
+ refreshUnderline();
+ refreshStrikeThrough();
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshLabel() {
+ EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
+ if(maskLabelPolicy == null) {
+ setLabelTextHelper(getFigure(), getLabelText());
+ setLabelIconHelper(getFigure(), getLabelIcon());
+ }
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshUnderline() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextUnderline(style.isUnderline());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshStrikeThrough() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextStrikeThrough(style.isStrikeThrough());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshFont() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null) {
+ FontData fontData = new FontData(style.getFontName(), style.getFontHeight(), (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
+ setFont(fontData);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setFontColor(Color color) {
+ getFigure().setForegroundColor(color);
+ }
+
+ /**
+ * @generated
+ */
+ protected void addSemanticListeners() {
+ if(getParser() instanceof ISemanticParser) {
+ EObject element = resolveSemanticElement();
+ parserElements = ((ISemanticParser)getParser()).getSemanticElementsBeingParsed(element);
+ for(int i = 0; i < parserElements.size(); i++) {
+ addListenerFilter("SemanticModel" + i, this, (EObject)parserElements.get(i)); //$NON-NLS-1$
+ }
+ } else {
+ super.addSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeSemanticListeners() {
+ if(parserElements != null) {
+ for(int i = 0; i < parserElements.size(); i++) {
+ removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
+ }
+ } else {
+ super.removeSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected AccessibleEditPart getAccessibleEditPart() {
+ if(accessibleEP == null) {
+ accessibleEP = new AccessibleGraphicalEditPart() {
+
+ public void getName(AccessibleEvent e) {
+ e.result = getLabelTextHelper(getFigure());
+ }
+ };
+ }
+ return accessibleEP;
+ }
+
+ /**
+ * @generated
+ */
+ private View getFontStyleOwnerView() {
+ return getPrimaryView();
+ }
+
+ /**
+ * Returns the kind of associated editor for direct edition.
+ *
+ * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition
+ * @generated
+ */
+ public int getDirectEditionType() {
+ if(checkExtendedEditor()) {
+ initExtendedEditorConfiguration();
+ return IDirectEdition.EXTENDED_DIRECT_EDITOR;
+ }
+ if(checkDefaultEdition()) {
+ return IDirectEdition.DEFAULT_DIRECT_EDITOR;
+ }
+
+ // not a named element. no specific editor => do nothing
+ return IDirectEdition.NO_DIRECT_EDITION;
+ }
+
+ /**
+ * Checks if an extended editor is present.
+ *
+ * @return <code>true</code> if an extended editor is present.
+ * @generated
+ */
+ protected boolean checkExtendedEditor() {
+ if(resolveSemanticElement() != null) {
+ return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ return false;
+ }
+
+ /**
+ * Checks if a default direct edition is available
+ *
+ * @return <code>true</code> if a default direct edition is available
+ * @generated
+ */
+ protected boolean checkDefaultEdition() {
+ return (getParser() != null);
+ }
+
+ /**
+ * Initializes the extended editor configuration
+ *
+ * @generated
+ */
+ protected void initExtendedEditorConfiguration() {
+ if(configuration == null) {
+ final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("")) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else {
+ configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ }
+ }
+
+ /**
+ * Updates the preference configuration
+ *
+ * @generated
+ */
+ protected void updateExtendedEditorConfiguration() {
+ String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("") && languagePreferred != configuration.getLanguage()) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else if(IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
+ configuration = null;
+ }
+ }
+
+ /**
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
+ protected void performDefaultDirectEditorEdit(final Request theRequest) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void addNotationalListeners() {
+ super.addNotationalListeners();
+ addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeNotationalListeners() {
+ super.removeNotationalListeners();
+ removeListenerFilter("PrimaryView"); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void handleNotificationEvent(Notification event) {
+ Object feature = event.getFeature();
+ if(NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
+ Integer c = (Integer)event.getNewValue();
+ setFontColor(DiagramColorRegistry.getInstance().getColor(c));
+ } else if(NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
+ refreshUnderline();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
+ refreshStrikeThrough();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
+ refreshFont();
+ } else {
+ if(getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
+ refreshLabel();
+ }
+ if(getParser() instanceof ISemanticParser) {
+ ISemanticParser modelParser = (ISemanticParser)getParser();
+ if(modelParser.areSemanticElementsAffected(null, event)) {
+ removeSemanticListeners();
+ if(resolveSemanticElement() != null) {
+ addSemanticListeners();
+ }
+ refreshLabel();
+ }
+ }
+ }
+ if(event.getNewValue() instanceof EAnnotation && VisualInformationPapyrusConstant.DISPLAY_NAMELABELICON.equals(((EAnnotation)event.getNewValue()).getSource())) {
+ refreshLabel();
+ }
+ super.handleNotificationEvent(event);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createFigure() {
+ IFigure label = createFigurePrim();
+ defaultText = getLabelTextHelper(label);
+ return label;
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createFigurePrim() {
+ return new WrappingLabel();
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/InterfaceEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/InterfaceEditPart.java
new file mode 100644
index 00000000000..4a86eb74c15
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/InterfaceEditPart.java
@@ -0,0 +1,5338 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.ArrayList;
+import java.util.LinkedList;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Shape;
+import org.eclipse.draw2d.StackLayout;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EStructuralFeature;
+import org.eclipse.gef.EditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.editpolicies.LayoutEditPolicy;
+import org.eclipse.gef.editpolicies.NonResizableEditPolicy;
+import org.eclipse.gef.requests.CreateRequest;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.FigureUtilities;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.gef.ui.figures.DefaultSizeNodeFigure;
+import org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.jface.preference.PreferenceConverter;
+import org.eclipse.papyrus.diagram.common.editparts.NamedElementEditPart;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.HyperLinkPopupBarEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.QualifiedNameDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.ShowHideClassifierContentsEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.ShowHideCompartmentEditPolicy;
+import org.eclipse.papyrus.diagram.common.helper.PreferenceInitializerForElementHelper;
+import org.eclipse.papyrus.diagram.composite.custom.figures.InterfaceCompositeFigure;
+import org.eclipse.papyrus.diagram.composite.edit.policies.InterfaceItemSemanticEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorPlugin;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter;
+import org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper;
+import org.eclipse.swt.graphics.Color;
+
+/**
+ * @generated
+ */
+public class InterfaceEditPart extends
+
+NamedElementEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 2076;
+
+ /**
+ * @generated
+ */
+ protected IFigure contentPane;
+
+ /**
+ * @generated
+ */
+ protected IFigure primaryShape;
+
+ /**
+ * @generated
+ */
+ public InterfaceEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new InterfaceItemSemanticEditPolicy());
+ installEditPolicy(EditPolicy.LAYOUT_ROLE, createLayoutEditPolicy());
+ installEditPolicy(QualifiedNameDisplayEditPolicy.QUALIFIED_NAME_POLICY, new QualifiedNameDisplayEditPolicy());
+ installEditPolicy(AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeNodeLabelDisplayEditPolicy());
+ installEditPolicy(EditPolicyRoles.POPUPBAR_ROLE, new HyperLinkPopupBarEditPolicy());
+ installEditPolicy(ShowHideClassifierContentsEditPolicy.SHOW_HIDE_CLASSIFIER_CONTENTS_POLICY, new ShowHideClassifierContentsEditPolicy());
+ installEditPolicy(ShowHideCompartmentEditPolicy.SHOW_HIDE_COMPARTMENT_POLICY, new ShowHideCompartmentEditPolicy());
+ // XXX need an SCR to runtime to have another abstract superclass that would let children add reasonable editpolicies
+ // removeEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CONNECTION_HANDLES_ROLE);
+ }
+
+ /**
+ * Papyrus codeGen
+ *
+ * @generated
+ **/
+ protected void handleNotificationEvent(Notification event) {
+ super.handleNotificationEvent(event);
+
+ }
+
+ /**
+ * @generated
+ */
+ protected LayoutEditPolicy createLayoutEditPolicy() {
+ org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy lep = new org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy() {
+
+ protected EditPolicy createChildEditPolicy(EditPart child) {
+ EditPolicy result = child.getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(result == null) {
+ result = new NonResizableEditPolicy();
+ }
+ return result;
+ }
+
+ protected Command getMoveChildrenCommand(Request request) {
+ return null;
+ }
+
+ protected Command getCreateCommand(CreateRequest request) {
+ return null;
+ }
+ };
+ return lep;
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createNodeShape() {
+ return primaryShape = new InterfaceCompositeFigure();
+ }
+
+ /**
+ * @generated
+ */
+ public InterfaceCompositeFigure getPrimaryShape() {
+ return (InterfaceCompositeFigure)primaryShape;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean addFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof InterfaceNameEditPart) {
+ ((InterfaceNameEditPart)childEditPart).setLabel(getPrimaryShape().getNameLabel());
+ return true;
+ }
+
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean removeFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof InterfaceNameEditPart) {
+ return true;
+ }
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected void addChildVisual(EditPart childEditPart, int index) {
+ if(addFixedChild(childEditPart)) {
+ return;
+ }
+ super.addChildVisual(childEditPart, -1);
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeChildVisual(EditPart childEditPart) {
+ if(removeFixedChild(childEditPart)) {
+ return;
+ }
+ super.removeChildVisual(childEditPart);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure getContentPaneFor(IGraphicalEditPart editPart) {
+ return getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ protected NodeFigure createNodePlate() {
+ String prefElementId = "Interface";
+ IPreferenceStore store = UMLDiagramEditorPlugin.getInstance().getPreferenceStore();
+ String preferenceConstantWitdh = PreferenceInitializerForElementHelper.getpreferenceKey(getNotationView(), prefElementId, PreferenceConstantHelper.WIDTH);
+ String preferenceConstantHeight = PreferenceInitializerForElementHelper.getpreferenceKey(getNotationView(), prefElementId, PreferenceConstantHelper.HEIGHT);
+ DefaultSizeNodeFigure result = new DefaultSizeNodeFigure(store.getInt(preferenceConstantWitdh), store.getInt(preferenceConstantHeight));
+
+ return result;
+ }
+
+ /**
+ * Creates figure for this edit part.
+ *
+ * Body of this method does not depend on settings in generation model
+ * so you may safely remove <i>generated</i> tag and modify it.
+ *
+ * @generated
+ */
+ protected NodeFigure createNodeFigure() {
+ NodeFigure figure = createNodePlate();
+ figure.setLayoutManager(new StackLayout());
+ IFigure shape = createNodeShape();
+ figure.add(shape);
+ contentPane = setupContentPane(shape);
+ return figure;
+ }
+
+ /**
+ * Default implementation treats passed figure as content pane.
+ * Respects layout one may have set for generated figure.
+ *
+ * @param nodeShape
+ * instance of generated figure class
+ * @generated
+ */
+ protected IFigure setupContentPane(IFigure nodeShape) {
+ if(nodeShape.getLayoutManager() == null) {
+ ConstrainedToolbarLayout layout = new ConstrainedToolbarLayout();
+ layout.setSpacing(5);
+ nodeShape.setLayoutManager(layout);
+ }
+ return nodeShape; // use nodeShape itself as contentPane
+ }
+
+ /**
+ * @generated
+ */
+ public IFigure getContentPane() {
+ if(contentPane != null) {
+ return contentPane;
+ }
+ return super.getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ protected void setForegroundColor(Color color) {
+ if(primaryShape != null) {
+ primaryShape.setForegroundColor(color);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLineWidth(int width) {
+ if(primaryShape instanceof Shape) {
+ ((Shape)primaryShape).setLineWidth(width);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLineType(int style) {
+ if(primaryShape instanceof Shape) {
+ ((Shape)primaryShape).setLineStyle(style);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public EditPart getPrimaryChildEditPart() {
+ return getChildBySemanticHint(UMLVisualIDRegistry.getType(InterfaceNameEditPart.VISUAL_ID));
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnSource() {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(12);
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ types.add(UMLElementTypes.Substitution_4011);
+ types.add(UMLElementTypes.Realization_4006);
+ types.add(UMLElementTypes.Manifestation_4012);
+ types.add(UMLElementTypes.Abstraction_4007);
+ types.add(UMLElementTypes.Usage_4008);
+ types.add(UMLElementTypes.Deployment_4009);
+ types.add(UMLElementTypes.Dependency_4017);
+ types.add(UMLElementTypes.Dependency_4010);
+ types.add(UMLElementTypes.Generalization_4015);
+ types.add(UMLElementTypes.InformationFlow_4021);
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnSourceAndTarget(IGraphicalEditPart targetEditPart) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.InterfaceEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.InterfaceEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.InterfaceEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.InterfaceEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.InterfaceEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.InterfaceEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.InterfaceEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.InterfaceEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.InterfaceEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.InterfaceEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.InterfaceEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.InterfaceEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMATypesForTarget(IElementType relationshipType) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(relationshipType == UMLElementTypes.ComponentRealization_4004) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InterfaceRealization_4005) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Substitution_4011) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Realization_4006) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Manifestation_4012) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Abstraction_4007) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Usage_4008) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Deployment_4009) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4017) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4010) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Generalization_4015) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ } else if(relationshipType == UMLElementTypes.InformationFlow_4021) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnTarget() {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(17);
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ types.add(UMLElementTypes.Substitution_4011);
+ types.add(UMLElementTypes.Realization_4006);
+ types.add(UMLElementTypes.Manifestation_4012);
+ types.add(UMLElementTypes.Abstraction_4007);
+ types.add(UMLElementTypes.Usage_4008);
+ types.add(UMLElementTypes.Deployment_4009);
+ types.add(UMLElementTypes.Dependency_4017);
+ types.add(UMLElementTypes.Dependency_4010);
+ types.add(UMLElementTypes.Generalization_4015);
+ types.add(UMLElementTypes.TimeObservationEvent_4018);
+ types.add(UMLElementTypes.DurationObservationEvent_4019);
+ types.add(UMLElementTypes.InformationItemRepresented_4020);
+ types.add(UMLElementTypes.InformationFlow_4021);
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMATypesForSource(IElementType relationshipType) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(relationshipType == UMLElementTypes.CommentAnnotatedElement_4002) {
+ types.add(UMLElementTypes.Comment_2109);
+ types.add(UMLElementTypes.Comment_3097);
+ } else if(relationshipType == UMLElementTypes.ConstraintConstrainedElement_4003) {
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.ComponentRealization_4004) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InterfaceRealization_4005) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Substitution_4011) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Realization_4006) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Manifestation_4012) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Abstraction_4007) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Usage_4008) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Deployment_4009) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4017) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4010) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Generalization_4015) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ } else if(relationshipType == UMLElementTypes.TimeObservationEvent_4018) {
+ types.add(UMLElementTypes.TimeObservation_2094);
+ } else if(relationshipType == UMLElementTypes.DurationObservationEvent_4019) {
+ types.add(UMLElementTypes.DurationObservation_2093);
+ } else if(relationshipType == UMLElementTypes.InformationItemRepresented_4020) {
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.InformationItem_3094);
+ } else if(relationshipType == UMLElementTypes.InformationFlow_4021) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public Object getPreferredValue(EStructuralFeature feature) {
+ IPreferenceStore preferenceStore = (IPreferenceStore)getDiagramPreferencesHint().getPreferenceStore();
+ Object result = null;
+
+ if(feature == NotationPackage.eINSTANCE.getLineStyle_LineColor() || feature == NotationPackage.eINSTANCE.getFontStyle_FontColor() || feature == NotationPackage.eINSTANCE.getFillStyle_FillColor()) {
+ String prefColor = null;
+ if(feature == NotationPackage.eINSTANCE.getLineStyle_LineColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("Interface", PreferenceConstantHelper.COLOR_LINE);
+ } else if(feature == NotationPackage.eINSTANCE.getFontStyle_FontColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("Interface", PreferenceConstantHelper.COLOR_FONT);
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_FillColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("Interface", PreferenceConstantHelper.COLOR_FILL);
+ }
+ result = FigureUtilities.RGBToInteger(PreferenceConverter.getColor((IPreferenceStore)preferenceStore, prefColor));
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_Transparency() || feature == NotationPackage.eINSTANCE.getFillStyle_Gradient()) {
+ String prefGradient = PreferenceConstantHelper.getElementConstant("Interface", PreferenceConstantHelper.COLOR_GRADIENT);
+ GradientPreferenceConverter gradientPreferenceConverter = new GradientPreferenceConverter(preferenceStore.getString(prefGradient));
+ if(feature == NotationPackage.eINSTANCE.getFillStyle_Transparency()) {
+ result = new Integer(gradientPreferenceConverter.getTransparency());
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_Gradient()) {
+ result = gradientPreferenceConverter.getGradientData();
+ }
+ }
+
+ if(result == null) {
+ result = getStructuralFeatureValue(feature);
+ }
+ return result;
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/InterfaceEditPartCLN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/InterfaceEditPartCLN.java
new file mode 100644
index 00000000000..2bc6cf31e45
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/InterfaceEditPartCLN.java
@@ -0,0 +1,781 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EAnnotation;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.emf.transaction.RunnableWithResult;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.AccessibleEditPart;
+import org.eclipse.gef.DragTracker;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.requests.DirectEditRequest;
+import org.eclipse.gef.requests.SelectionRequest;
+import org.eclipse.gef.tools.DirectEditManager;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.CompartmentEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IPrimaryEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.ListItemComponentEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
+import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
+import org.eclipse.gmf.runtime.diagram.ui.tools.DragEditPartsTrackerEx;
+import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
+import org.eclipse.gmf.runtime.notation.FontStyle;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
+import org.eclipse.jface.viewers.ICellEditorValidator;
+import org.eclipse.jface.window.Window;
+import org.eclipse.papyrus.diagram.common.directedit.MultilineLabelDirectEditManager;
+import org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition;
+import org.eclipse.papyrus.diagram.common.editpolicies.IMaskManagedLabelEditPolicy;
+import org.eclipse.papyrus.diagram.common.figure.node.ILabelFigure;
+import org.eclipse.papyrus.diagram.common.util.DiagramEditPartsUtil;
+import org.eclipse.papyrus.diagram.composite.edit.policies.InterfaceItemSemanticEditPolicyCLN;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLTextNonResizableEditPolicy;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLTextSelectionEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.diagram.composite.providers.UMLParserProvider;
+import org.eclipse.papyrus.extensionpoints.editors.Activator;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
+import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
+import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
+import org.eclipse.papyrus.umlutils.ui.VisualInformationPapyrusConstant;
+import org.eclipse.papyrus.umlutils.ui.helper.NameLabelIconHelper;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.AccessibleEvent;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.FontData;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.ui.PlatformUI;
+
+/**
+ * @generated
+ */
+public class InterfaceEditPartCLN
+
+extends CompartmentEditPart
+
+implements ITextAwareEditPart, IPrimaryEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 3110;
+
+ /**
+ * @generated
+ */
+ private DirectEditManager manager;
+
+ /**
+ * @generated
+ */
+ private IParser parser;
+
+ /**
+ * @generated
+ */
+ private List<?> parserElements;
+
+ /**
+ * @generated
+ */
+ private String defaultText;
+
+ /**
+ * direct edition mode (default, undefined, registered editor, etc.)
+ *
+ * @generated
+ */
+ protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
+
+ /**
+ * configuration from a registered edit dialog
+ *
+ * @generated
+ */
+ protected IDirectEditorConfiguration configuration;
+
+ /**
+ * @generated
+ */
+ public InterfaceEditPartCLN(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ public DragTracker getDragTracker(Request request) {
+ if(request instanceof SelectionRequest && ((SelectionRequest)request).getLastButtonPressed() == 3) {
+ return null;
+ }
+ return new DragEditPartsTrackerEx(this);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new InterfaceItemSemanticEditPolicyCLN());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new UMLTextNonResizableEditPolicy());
+ installEditPolicy(EditPolicy.COMPONENT_ROLE, new ListItemComponentEditPolicy());
+ installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelTextHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getText();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getText();
+ } else {
+ return ((Label)figure).getText();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelTextHelper(IFigure figure, String text) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setText(text);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setText(text);
+ } else {
+ ((Label)figure).setText(text);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIconHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getIcon();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getIcon();
+ } else {
+ return ((Label)figure).getIcon();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelIconHelper(IFigure figure, Image icon) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setIcon(icon);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setIcon(icon);
+ } else {
+ ((Label)figure).setIcon(icon);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabel(IFigure figure) {
+ unregisterVisuals();
+ setFigure(figure);
+ defaultText = getLabelTextHelper(figure);
+ registerVisuals();
+ refreshVisuals();
+ }
+
+ /**
+ * @generated
+ */
+ protected List getModelChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject getParserElement() {
+ return resolveSemanticElement();
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIcon() {
+ EObject parserElement = getParserElement();
+ if(parserElement == null) {
+ return null;
+ }
+
+ List<View> views = DiagramEditPartsUtil.findViews(parserElement, getViewer());
+ for(View view : views) {
+ if(NameLabelIconHelper.showLabelIcon(view)) {
+ return UMLElementTypes.getImage(parserElement.eClass());
+ }
+ }
+ return null;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelText() {
+ String text = null;
+ EObject parserElement = getParserElement();
+ if(parserElement != null && getParser() != null) {
+ text = getParser().getPrintString(new EObjectAdapter(parserElement), getParserOptions().intValue());
+ }
+ if(text == null || text.length() == 0) {
+ text = defaultText;
+ }
+ return text;
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabelText(String text) {
+ setLabelTextHelper(getFigure(), text);
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public String getEditText() {
+ if(getParserElement() == null || getParser() == null) {
+ return ""; //$NON-NLS-1$
+ }
+ return getParser().getEditString(new EObjectAdapter(getParserElement()), getParserOptions().intValue());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean isEditable() {
+ return getParser() != null;
+ }
+
+ /**
+ * @generated
+ */
+ public ICellEditorValidator getEditTextValidator() {
+ return new ICellEditorValidator() {
+
+ public String isValid(final Object value) {
+ if(value instanceof String) {
+ final EObject element = getParserElement();
+ final IParser parser = getParser();
+ try {
+ IParserEditStatus valid = (IParserEditStatus)getEditingDomain().runExclusive(new RunnableWithResult.Impl() {
+
+ public void run() {
+ setResult(parser.isValidEditString(new EObjectAdapter(element), (String)value));
+ }
+ });
+ return valid.getCode() == ParserEditStatus.EDITABLE ? null : valid.getMessage();
+ } catch (InterruptedException ie) {
+ ie.printStackTrace();
+ }
+ }
+
+ // shouldn't get here
+ return null;
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ public IContentAssistProcessor getCompletionProcessor() {
+ if(getParserElement() == null || getParser() == null) {
+ return null;
+ }
+ return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
+ }
+
+ /**
+ * @generated
+ */
+ public ParserOptions getParserOptions() {
+ return ParserOptions.NONE;
+ }
+
+ /**
+ * @generated
+ */
+ public IParser getParser() {
+ if(parser == null) {
+ parser = UMLParserProvider.getParser(UMLElementTypes.Interface_3110, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.diagram.composite.edit.parts.InterfaceEditPartCLN.VISUAL_ID));
+ }
+ return parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected DirectEditManager getManager() {
+ if(manager == null) {
+ setManager(new MultilineLabelDirectEditManager(this, MultilineLabelDirectEditManager.getTextCellEditorClass(this), UMLEditPartFactory.getTextCellEditorLocator(this)));
+ }
+ return manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setManager(DirectEditManager manager) {
+ this.manager = manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit() {
+ getManager().show();
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit(Point eventLocation) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(eventLocation.getSWTPoint());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void performDirectEdit(char initialCharacter) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(initialCharacter);
+ } else {
+ performDirectEdit();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEditRequest(Request request) {
+
+ final Request theRequest = request;
+
+ if(IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
+ directEditionMode = getDirectEditionType();
+ }
+ switch(directEditionMode) {
+ case IDirectEdition.NO_DIRECT_EDITION:
+ // no direct edition mode => does nothing
+ return;
+ case IDirectEdition.EXTENDED_DIRECT_EDITOR:
+ updateExtendedEditorConfiguration();
+ if(configuration == null || configuration.getLanguage() == null) {
+ performDefaultDirectEditorEdit(theRequest);
+ } else {
+ configuration.preEditAction(resolveSemanticElement());
+ Dialog dialog = null;
+ if(configuration instanceof IPopupEditorConfiguration) {
+ IPopupEditorHelper helper = ((IPopupEditorConfiguration)configuration).createPopupEditorHelper(this);
+ helper.showEditor();
+ return;
+ } else if(configuration instanceof IAdvancedEditorConfiguration) {
+ dialog = ((IAdvancedEditorConfiguration)configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
+ } else if(configuration instanceof IDirectEditorConfiguration) {
+ dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), ((IDirectEditorConfiguration)configuration).getTextToEdit(resolveSemanticElement()), (IDirectEditorConfiguration)configuration);
+ } else {
+ return;
+ }
+ final Dialog finalDialog = dialog;
+
+ if(Window.OK == dialog.open()) {
+ TransactionalEditingDomain domain = getEditingDomain();
+ RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
+
+ @Override
+ protected void doExecute() {
+ configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog)finalDialog).getValue());
+
+ }
+ };
+ domain.getCommandStack().execute(command);
+ }
+ }
+ break;
+ case IDirectEdition.DEFAULT_DIRECT_EDITOR:
+
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ break;
+ default:
+ break;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshLabel();
+ refreshFont();
+ refreshFontColor();
+ refreshUnderline();
+ refreshStrikeThrough();
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshLabel() {
+ EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
+ if(maskLabelPolicy == null) {
+ setLabelTextHelper(getFigure(), getLabelText());
+ setLabelIconHelper(getFigure(), getLabelIcon());
+ }
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshUnderline() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextUnderline(style.isUnderline());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshStrikeThrough() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextStrikeThrough(style.isStrikeThrough());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshFont() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null) {
+ FontData fontData = new FontData(style.getFontName(), style.getFontHeight(), (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
+ setFont(fontData);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setFontColor(Color color) {
+ getFigure().setForegroundColor(color);
+ }
+
+ /**
+ * @generated
+ */
+ protected void addSemanticListeners() {
+ if(getParser() instanceof ISemanticParser) {
+ EObject element = resolveSemanticElement();
+ parserElements = ((ISemanticParser)getParser()).getSemanticElementsBeingParsed(element);
+ for(int i = 0; i < parserElements.size(); i++) {
+ addListenerFilter("SemanticModel" + i, this, (EObject)parserElements.get(i)); //$NON-NLS-1$
+ }
+ } else {
+ super.addSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeSemanticListeners() {
+ if(parserElements != null) {
+ for(int i = 0; i < parserElements.size(); i++) {
+ removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
+ }
+ } else {
+ super.removeSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected AccessibleEditPart getAccessibleEditPart() {
+ if(accessibleEP == null) {
+ accessibleEP = new AccessibleGraphicalEditPart() {
+
+ public void getName(AccessibleEvent e) {
+ e.result = getLabelTextHelper(getFigure());
+ }
+ };
+ }
+ return accessibleEP;
+ }
+
+ /**
+ * @generated
+ */
+ private View getFontStyleOwnerView() {
+ return getPrimaryView();
+ }
+
+ /**
+ * Returns the kind of associated editor for direct edition.
+ *
+ * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition
+ * @generated
+ */
+ public int getDirectEditionType() {
+ if(checkExtendedEditor()) {
+ initExtendedEditorConfiguration();
+ return IDirectEdition.EXTENDED_DIRECT_EDITOR;
+ }
+ if(checkDefaultEdition()) {
+ return IDirectEdition.DEFAULT_DIRECT_EDITOR;
+ }
+
+ // not a named element. no specific editor => do nothing
+ return IDirectEdition.NO_DIRECT_EDITION;
+ }
+
+ /**
+ * Checks if an extended editor is present.
+ *
+ * @return <code>true</code> if an extended editor is present.
+ * @generated
+ */
+ protected boolean checkExtendedEditor() {
+ if(resolveSemanticElement() != null) {
+ return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ return false;
+ }
+
+ /**
+ * Checks if a default direct edition is available
+ *
+ * @return <code>true</code> if a default direct edition is available
+ * @generated
+ */
+ protected boolean checkDefaultEdition() {
+ return (getParser() != null);
+ }
+
+ /**
+ * Initializes the extended editor configuration
+ *
+ * @generated
+ */
+ protected void initExtendedEditorConfiguration() {
+ if(configuration == null) {
+ final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("")) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else {
+ configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ }
+ }
+
+ /**
+ * Updates the preference configuration
+ *
+ * @generated
+ */
+ protected void updateExtendedEditorConfiguration() {
+ String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("") && languagePreferred != configuration.getLanguage()) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else if(IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
+ configuration = null;
+ }
+ }
+
+ /**
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
+ protected void performDefaultDirectEditorEdit(final Request theRequest) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void addNotationalListeners() {
+ super.addNotationalListeners();
+ addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeNotationalListeners() {
+ super.removeNotationalListeners();
+ removeListenerFilter("PrimaryView"); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void handleNotificationEvent(Notification event) {
+ Object feature = event.getFeature();
+ if(NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
+ Integer c = (Integer)event.getNewValue();
+ setFontColor(DiagramColorRegistry.getInstance().getColor(c));
+ } else if(NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
+ refreshUnderline();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
+ refreshStrikeThrough();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
+ refreshFont();
+ } else {
+ if(getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
+ refreshLabel();
+ }
+ if(getParser() instanceof ISemanticParser) {
+ ISemanticParser modelParser = (ISemanticParser)getParser();
+ if(modelParser.areSemanticElementsAffected(null, event)) {
+ removeSemanticListeners();
+ if(resolveSemanticElement() != null) {
+ addSemanticListeners();
+ }
+ refreshLabel();
+ }
+ }
+ }
+ if(event.getNewValue() instanceof EAnnotation && VisualInformationPapyrusConstant.DISPLAY_NAMELABELICON.equals(((EAnnotation)event.getNewValue()).getSource())) {
+ refreshLabel();
+ }
+ super.handleNotificationEvent(event);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createFigure() {
+ IFigure label = createFigurePrim();
+ defaultText = getLabelTextHelper(label);
+ return label;
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createFigurePrim() {
+ return new WrappingLabel();
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/InterfaceEditPartCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/InterfaceEditPartCN.java
new file mode 100644
index 00000000000..5ff382194b3
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/InterfaceEditPartCN.java
@@ -0,0 +1,5341 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.ArrayList;
+import java.util.LinkedList;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Shape;
+import org.eclipse.draw2d.StackLayout;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EStructuralFeature;
+import org.eclipse.gef.EditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.editpolicies.LayoutEditPolicy;
+import org.eclipse.gef.editpolicies.NonResizableEditPolicy;
+import org.eclipse.gef.requests.CreateRequest;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.FigureUtilities;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.gef.ui.figures.DefaultSizeNodeFigure;
+import org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.jface.preference.PreferenceConverter;
+import org.eclipse.papyrus.diagram.common.editparts.NamedElementEditPart;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.HyperLinkPopupBarEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.QualifiedNameDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.ShowHideClassifierContentsEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.ShowHideCompartmentEditPolicy;
+import org.eclipse.papyrus.diagram.common.helper.PreferenceInitializerForElementHelper;
+import org.eclipse.papyrus.diagram.composite.custom.edit.parts.ConstrainedNamedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.NoScrollClassifierResizableShapeEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.figures.InterfaceCompositeFigure;
+import org.eclipse.papyrus.diagram.composite.edit.policies.InterfaceItemSemanticEditPolicyCN;
+import org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorPlugin;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter;
+import org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper;
+import org.eclipse.swt.graphics.Color;
+
+/**
+ * @generated
+ */
+public class InterfaceEditPartCN extends
+
+ConstrainedNamedElementEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 3087;
+
+ /**
+ * @generated
+ */
+ protected IFigure contentPane;
+
+ /**
+ * @generated
+ */
+ protected IFigure primaryShape;
+
+ /**
+ * @generated
+ */
+ public InterfaceEditPartCN(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new InterfaceItemSemanticEditPolicyCN());
+ installEditPolicy(EditPolicy.LAYOUT_ROLE, createLayoutEditPolicy());
+ installEditPolicy(QualifiedNameDisplayEditPolicy.QUALIFIED_NAME_POLICY, new QualifiedNameDisplayEditPolicy());
+ installEditPolicy(AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeNodeLabelDisplayEditPolicy());
+ installEditPolicy(EditPolicyRoles.POPUPBAR_ROLE, new HyperLinkPopupBarEditPolicy());
+ installEditPolicy(ShowHideClassifierContentsEditPolicy.SHOW_HIDE_CLASSIFIER_CONTENTS_POLICY, new ShowHideClassifierContentsEditPolicy());
+ installEditPolicy(ShowHideCompartmentEditPolicy.SHOW_HIDE_COMPARTMENT_POLICY, new ShowHideCompartmentEditPolicy());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new NoScrollClassifierResizableShapeEditPolicy());
+ // XXX need an SCR to runtime to have another abstract superclass that would let children add reasonable editpolicies
+ // removeEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CONNECTION_HANDLES_ROLE);
+ }
+
+ /**
+ * Papyrus codeGen
+ *
+ * @generated
+ **/
+ protected void handleNotificationEvent(Notification event) {
+ super.handleNotificationEvent(event);
+
+ }
+
+ /**
+ * @generated
+ */
+ protected LayoutEditPolicy createLayoutEditPolicy() {
+ org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy lep = new org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy() {
+
+ protected EditPolicy createChildEditPolicy(EditPart child) {
+ EditPolicy result = child.getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(result == null) {
+ result = new NonResizableEditPolicy();
+ }
+ return result;
+ }
+
+ protected Command getMoveChildrenCommand(Request request) {
+ return null;
+ }
+
+ protected Command getCreateCommand(CreateRequest request) {
+ return null;
+ }
+ };
+ return lep;
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createNodeShape() {
+ return primaryShape = new InterfaceCompositeFigure();
+ }
+
+ /**
+ * @generated
+ */
+ public InterfaceCompositeFigure getPrimaryShape() {
+ return (InterfaceCompositeFigure)primaryShape;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean addFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof InterfaceNameEditPartCN) {
+ ((InterfaceNameEditPartCN)childEditPart).setLabel(getPrimaryShape().getNameLabel());
+ return true;
+ }
+
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean removeFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof InterfaceNameEditPartCN) {
+ return true;
+ }
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected void addChildVisual(EditPart childEditPart, int index) {
+ if(addFixedChild(childEditPart)) {
+ return;
+ }
+ super.addChildVisual(childEditPart, -1);
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeChildVisual(EditPart childEditPart) {
+ if(removeFixedChild(childEditPart)) {
+ return;
+ }
+ super.removeChildVisual(childEditPart);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure getContentPaneFor(IGraphicalEditPart editPart) {
+ return getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ protected NodeFigure createNodePlate() {
+ String prefElementId = "Interface";
+ IPreferenceStore store = UMLDiagramEditorPlugin.getInstance().getPreferenceStore();
+ String preferenceConstantWitdh = PreferenceInitializerForElementHelper.getpreferenceKey(getNotationView(), prefElementId, PreferenceConstantHelper.WIDTH);
+ String preferenceConstantHeight = PreferenceInitializerForElementHelper.getpreferenceKey(getNotationView(), prefElementId, PreferenceConstantHelper.HEIGHT);
+ DefaultSizeNodeFigure result = new DefaultSizeNodeFigure(store.getInt(preferenceConstantWitdh), store.getInt(preferenceConstantHeight));
+
+ return result;
+ }
+
+ /**
+ * Creates figure for this edit part.
+ *
+ * Body of this method does not depend on settings in generation model
+ * so you may safely remove <i>generated</i> tag and modify it.
+ *
+ * @generated
+ */
+ protected NodeFigure createNodeFigure() {
+ NodeFigure figure = createNodePlate();
+ figure.setLayoutManager(new StackLayout());
+ IFigure shape = createNodeShape();
+ figure.add(shape);
+ contentPane = setupContentPane(shape);
+ return figure;
+ }
+
+ /**
+ * Default implementation treats passed figure as content pane.
+ * Respects layout one may have set for generated figure.
+ *
+ * @param nodeShape
+ * instance of generated figure class
+ * @generated
+ */
+ protected IFigure setupContentPane(IFigure nodeShape) {
+ if(nodeShape.getLayoutManager() == null) {
+ ConstrainedToolbarLayout layout = new ConstrainedToolbarLayout();
+ layout.setSpacing(5);
+ nodeShape.setLayoutManager(layout);
+ }
+ return nodeShape; // use nodeShape itself as contentPane
+ }
+
+ /**
+ * @generated
+ */
+ public IFigure getContentPane() {
+ if(contentPane != null) {
+ return contentPane;
+ }
+ return super.getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ protected void setForegroundColor(Color color) {
+ if(primaryShape != null) {
+ primaryShape.setForegroundColor(color);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLineWidth(int width) {
+ if(primaryShape instanceof Shape) {
+ ((Shape)primaryShape).setLineWidth(width);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLineType(int style) {
+ if(primaryShape instanceof Shape) {
+ ((Shape)primaryShape).setLineStyle(style);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public EditPart getPrimaryChildEditPart() {
+ return getChildBySemanticHint(UMLVisualIDRegistry.getType(InterfaceNameEditPartCN.VISUAL_ID));
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnSource() {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(12);
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ types.add(UMLElementTypes.Substitution_4011);
+ types.add(UMLElementTypes.Realization_4006);
+ types.add(UMLElementTypes.Manifestation_4012);
+ types.add(UMLElementTypes.Abstraction_4007);
+ types.add(UMLElementTypes.Usage_4008);
+ types.add(UMLElementTypes.Deployment_4009);
+ types.add(UMLElementTypes.Dependency_4017);
+ types.add(UMLElementTypes.Dependency_4010);
+ types.add(UMLElementTypes.Generalization_4015);
+ types.add(UMLElementTypes.InformationFlow_4021);
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnSourceAndTarget(IGraphicalEditPart targetEditPart) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.InterfaceEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.InterfaceEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.InterfaceEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMATypesForTarget(IElementType relationshipType) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(relationshipType == UMLElementTypes.ComponentRealization_4004) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InterfaceRealization_4005) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Substitution_4011) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Realization_4006) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Manifestation_4012) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Abstraction_4007) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Usage_4008) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Deployment_4009) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4017) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4010) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Generalization_4015) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ } else if(relationshipType == UMLElementTypes.InformationFlow_4021) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnTarget() {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(17);
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ types.add(UMLElementTypes.Substitution_4011);
+ types.add(UMLElementTypes.Realization_4006);
+ types.add(UMLElementTypes.Manifestation_4012);
+ types.add(UMLElementTypes.Abstraction_4007);
+ types.add(UMLElementTypes.Usage_4008);
+ types.add(UMLElementTypes.Deployment_4009);
+ types.add(UMLElementTypes.Dependency_4017);
+ types.add(UMLElementTypes.Dependency_4010);
+ types.add(UMLElementTypes.Generalization_4015);
+ types.add(UMLElementTypes.TimeObservationEvent_4018);
+ types.add(UMLElementTypes.DurationObservationEvent_4019);
+ types.add(UMLElementTypes.InformationItemRepresented_4020);
+ types.add(UMLElementTypes.InformationFlow_4021);
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMATypesForSource(IElementType relationshipType) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(relationshipType == UMLElementTypes.CommentAnnotatedElement_4002) {
+ types.add(UMLElementTypes.Comment_2109);
+ types.add(UMLElementTypes.Comment_3097);
+ } else if(relationshipType == UMLElementTypes.ConstraintConstrainedElement_4003) {
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.ComponentRealization_4004) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InterfaceRealization_4005) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Substitution_4011) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Realization_4006) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Manifestation_4012) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Abstraction_4007) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Usage_4008) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Deployment_4009) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4017) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4010) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Generalization_4015) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ } else if(relationshipType == UMLElementTypes.TimeObservationEvent_4018) {
+ types.add(UMLElementTypes.TimeObservation_2094);
+ } else if(relationshipType == UMLElementTypes.DurationObservationEvent_4019) {
+ types.add(UMLElementTypes.DurationObservation_2093);
+ } else if(relationshipType == UMLElementTypes.InformationItemRepresented_4020) {
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.InformationItem_3094);
+ } else if(relationshipType == UMLElementTypes.InformationFlow_4021) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public Object getPreferredValue(EStructuralFeature feature) {
+ IPreferenceStore preferenceStore = (IPreferenceStore)getDiagramPreferencesHint().getPreferenceStore();
+ Object result = null;
+
+ if(feature == NotationPackage.eINSTANCE.getLineStyle_LineColor() || feature == NotationPackage.eINSTANCE.getFontStyle_FontColor() || feature == NotationPackage.eINSTANCE.getFillStyle_FillColor()) {
+ String prefColor = null;
+ if(feature == NotationPackage.eINSTANCE.getLineStyle_LineColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("Interface", PreferenceConstantHelper.COLOR_LINE);
+ } else if(feature == NotationPackage.eINSTANCE.getFontStyle_FontColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("Interface", PreferenceConstantHelper.COLOR_FONT);
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_FillColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("Interface", PreferenceConstantHelper.COLOR_FILL);
+ }
+ result = FigureUtilities.RGBToInteger(PreferenceConverter.getColor((IPreferenceStore)preferenceStore, prefColor));
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_Transparency() || feature == NotationPackage.eINSTANCE.getFillStyle_Gradient()) {
+ String prefGradient = PreferenceConstantHelper.getElementConstant("Interface", PreferenceConstantHelper.COLOR_GRADIENT);
+ GradientPreferenceConverter gradientPreferenceConverter = new GradientPreferenceConverter(preferenceStore.getString(prefGradient));
+ if(feature == NotationPackage.eINSTANCE.getFillStyle_Transparency()) {
+ result = new Integer(gradientPreferenceConverter.getTransparency());
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_Gradient()) {
+ result = gradientPreferenceConverter.getGradientData();
+ }
+ }
+
+ if(result == null) {
+ result = getStructuralFeatureValue(feature);
+ }
+ return result;
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/InterfaceNameEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/InterfaceNameEditPart.java
new file mode 100644
index 00000000000..92d051bc425
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/InterfaceNameEditPart.java
@@ -0,0 +1,791 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EAnnotation;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.emf.transaction.RunnableWithResult;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.AccessibleEditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.requests.DirectEditRequest;
+import org.eclipse.gef.tools.DirectEditManager;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.CompartmentEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
+import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
+import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
+import org.eclipse.gmf.runtime.notation.FontStyle;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
+import org.eclipse.jface.viewers.ICellEditorValidator;
+import org.eclipse.jface.window.Window;
+import org.eclipse.papyrus.diagram.common.directedit.MultilineLabelDirectEditManager;
+import org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition;
+import org.eclipse.papyrus.diagram.common.editpolicies.IMaskManagedLabelEditPolicy;
+import org.eclipse.papyrus.diagram.common.figure.node.ILabelFigure;
+import org.eclipse.papyrus.diagram.common.util.DiagramEditPartsUtil;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLTextSelectionEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.diagram.composite.providers.UMLParserProvider;
+import org.eclipse.papyrus.extensionpoints.editors.Activator;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
+import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
+import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
+import org.eclipse.papyrus.umlutils.ui.VisualInformationPapyrusConstant;
+import org.eclipse.papyrus.umlutils.ui.helper.NameLabelIconHelper;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.AccessibleEvent;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.FontData;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.ui.PlatformUI;
+
+/**
+ * @generated
+ */
+public class InterfaceNameEditPart extends CompartmentEditPart implements ITextAwareEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 5159;
+
+ /**
+ * @generated
+ */
+ private DirectEditManager manager;
+
+ /**
+ * @generated
+ */
+ private IParser parser;
+
+ /**
+ * @generated
+ */
+ private List<?> parserElements;
+
+ /**
+ * @generated
+ */
+ private String defaultText;
+
+ /**
+ * direct edition mode (default, undefined, registered editor, etc.)
+ *
+ * @generated
+ */
+ protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
+
+ /**
+ * configuration from a registered edit dialog
+ *
+ * @generated
+ */
+ protected IDirectEditorConfiguration configuration;
+
+ /**
+ * @generated
+ */
+ public InterfaceNameEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
+ installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new CompositeStructureDiagramEditPart.NodeLabelDragPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelTextHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getText();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getText();
+ } else {
+ return ((Label)figure).getText();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelTextHelper(IFigure figure, String text) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setText(text);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setText(text);
+ } else {
+ ((Label)figure).setText(text);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIconHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getIcon();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getIcon();
+ } else {
+ return ((Label)figure).getIcon();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelIconHelper(IFigure figure, Image icon) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setIcon(icon);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setIcon(icon);
+ } else {
+ ((Label)figure).setIcon(icon);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabel(WrappingLabel figure) {
+ unregisterVisuals();
+ setFigure(figure);
+ defaultText = getLabelTextHelper(figure);
+ registerVisuals();
+ refreshVisuals();
+ }
+
+ /**
+ * @generated
+ */
+ protected List getModelChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject getParserElement() {
+ return resolveSemanticElement();
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIcon() {
+ EObject parserElement = getParserElement();
+ if(parserElement == null) {
+ return null;
+ }
+
+ List<View> views = DiagramEditPartsUtil.findViews(parserElement, getViewer());
+ for(View view : views) {
+ if(NameLabelIconHelper.showLabelIcon(view)) {
+ return UMLElementTypes.getImage(parserElement.eClass());
+ }
+ }
+ return null;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelText() {
+ String text = null;
+ EObject parserElement = getParserElement();
+ if(parserElement != null && getParser() != null) {
+ text = getParser().getPrintString(new EObjectAdapter(parserElement), getParserOptions().intValue());
+ }
+ if(text == null || text.length() == 0) {
+ text = defaultText;
+ }
+ return text;
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabelText(String text) {
+ setLabelTextHelper(getFigure(), text);
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public String getEditText() {
+ if(getParserElement() == null || getParser() == null) {
+ return ""; //$NON-NLS-1$
+ }
+ return getParser().getEditString(new EObjectAdapter(getParserElement()), getParserOptions().intValue());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean isEditable() {
+ return getParser() != null;
+ }
+
+ /**
+ * @generated
+ */
+ public ICellEditorValidator getEditTextValidator() {
+ return new ICellEditorValidator() {
+
+ public String isValid(final Object value) {
+ if(value instanceof String) {
+ final EObject element = getParserElement();
+ final IParser parser = getParser();
+ try {
+ IParserEditStatus valid = (IParserEditStatus)getEditingDomain().runExclusive(new RunnableWithResult.Impl() {
+
+ public void run() {
+ setResult(parser.isValidEditString(new EObjectAdapter(element), (String)value));
+ }
+ });
+ return valid.getCode() == ParserEditStatus.EDITABLE ? null : valid.getMessage();
+ } catch (InterruptedException ie) {
+ ie.printStackTrace();
+ }
+ }
+
+ // shouldn't get here
+ return null;
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ public IContentAssistProcessor getCompletionProcessor() {
+ if(getParserElement() == null || getParser() == null) {
+ return null;
+ }
+ return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
+ }
+
+ /**
+ * @generated
+ */
+ public ParserOptions getParserOptions() {
+ return ParserOptions.NONE;
+ }
+
+ /**
+ * @generated
+ */
+ public IParser getParser() {
+ if(parser == null) {
+ parser = UMLParserProvider.getParser(UMLElementTypes.Interface_2076, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.diagram.composite.edit.parts.InterfaceNameEditPart.VISUAL_ID));
+ }
+ return parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected DirectEditManager getManager() {
+ if(manager == null) {
+ setManager(new MultilineLabelDirectEditManager(this, MultilineLabelDirectEditManager.getTextCellEditorClass(this), UMLEditPartFactory.getTextCellEditorLocator(this)));
+ }
+ return manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setManager(DirectEditManager manager) {
+ this.manager = manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit() {
+ getManager().show();
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit(Point eventLocation) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(eventLocation.getSWTPoint());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void performDirectEdit(char initialCharacter) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(initialCharacter);
+ } else {
+ performDirectEdit();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEditRequest(Request request) {
+
+ final Request theRequest = request;
+
+ if(IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
+ directEditionMode = getDirectEditionType();
+ }
+ switch(directEditionMode) {
+ case IDirectEdition.NO_DIRECT_EDITION:
+ // no direct edition mode => does nothing
+ return;
+ case IDirectEdition.EXTENDED_DIRECT_EDITOR:
+ updateExtendedEditorConfiguration();
+ if(configuration == null || configuration.getLanguage() == null) {
+ performDefaultDirectEditorEdit(theRequest);
+ } else {
+ configuration.preEditAction(resolveSemanticElement());
+ Dialog dialog = null;
+ if(configuration instanceof IPopupEditorConfiguration) {
+ IPopupEditorHelper helper = ((IPopupEditorConfiguration)configuration).createPopupEditorHelper(this);
+ helper.showEditor();
+ return;
+ } else if(configuration instanceof IAdvancedEditorConfiguration) {
+ dialog = ((IAdvancedEditorConfiguration)configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
+ } else if(configuration instanceof IDirectEditorConfiguration) {
+ dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), ((IDirectEditorConfiguration)configuration).getTextToEdit(resolveSemanticElement()), (IDirectEditorConfiguration)configuration);
+ } else {
+ return;
+ }
+ final Dialog finalDialog = dialog;
+
+ if(Window.OK == dialog.open()) {
+ TransactionalEditingDomain domain = getEditingDomain();
+ RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
+
+ @Override
+ protected void doExecute() {
+ configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog)finalDialog).getValue());
+
+ }
+ };
+ domain.getCommandStack().execute(command);
+ }
+ }
+ break;
+ case IDirectEdition.DEFAULT_DIRECT_EDITOR:
+
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ break;
+ default:
+ break;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshLabel();
+ refreshFont();
+ refreshFontColor();
+ refreshUnderline();
+ refreshStrikeThrough();
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshLabel() {
+ EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
+ if(maskLabelPolicy == null) {
+ setLabelTextHelper(getFigure(), getLabelText());
+ setLabelIconHelper(getFigure(), getLabelIcon());
+ }
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshUnderline() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextUnderline(style.isUnderline());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshStrikeThrough() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextStrikeThrough(style.isStrikeThrough());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshFont() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null) {
+ FontData fontData = new FontData(style.getFontName(), style.getFontHeight(), (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
+ setFont(fontData);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setFontColor(Color color) {
+ getFigure().setForegroundColor(color);
+ }
+
+ /**
+ * @generated
+ */
+ protected void addSemanticListeners() {
+ if(getParser() instanceof ISemanticParser) {
+ EObject element = resolveSemanticElement();
+ parserElements = ((ISemanticParser)getParser()).getSemanticElementsBeingParsed(element);
+ for(int i = 0; i < parserElements.size(); i++) {
+ addListenerFilter("SemanticModel" + i, this, (EObject)parserElements.get(i)); //$NON-NLS-1$
+ }
+ } else {
+ super.addSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeSemanticListeners() {
+ if(parserElements != null) {
+ for(int i = 0; i < parserElements.size(); i++) {
+ removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
+ }
+ } else {
+ super.removeSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected AccessibleEditPart getAccessibleEditPart() {
+ if(accessibleEP == null) {
+ accessibleEP = new AccessibleGraphicalEditPart() {
+
+ public void getName(AccessibleEvent e) {
+ e.result = getLabelTextHelper(getFigure());
+ }
+ };
+ }
+ return accessibleEP;
+ }
+
+ /**
+ * @generated
+ */
+ private View getFontStyleOwnerView() {
+ return (View)getModel();
+ }
+
+ /**
+ * Returns the kind of associated editor for direct edition.
+ *
+ * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition
+ * @generated
+ */
+ public int getDirectEditionType() {
+ if(checkExtendedEditor()) {
+ initExtendedEditorConfiguration();
+ return IDirectEdition.EXTENDED_DIRECT_EDITOR;
+ }
+ if(checkDefaultEdition()) {
+ return IDirectEdition.DEFAULT_DIRECT_EDITOR;
+ }
+
+ // not a named element. no specific editor => do nothing
+ return IDirectEdition.NO_DIRECT_EDITION;
+ }
+
+ /**
+ * Checks if an extended editor is present.
+ *
+ * @return <code>true</code> if an extended editor is present.
+ * @generated
+ */
+ protected boolean checkExtendedEditor() {
+ if(resolveSemanticElement() != null) {
+ return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ return false;
+ }
+
+ /**
+ * Checks if a default direct edition is available
+ *
+ * @return <code>true</code> if a default direct edition is available
+ * @generated
+ */
+ protected boolean checkDefaultEdition() {
+ return (getParser() != null);
+ }
+
+ /**
+ * Initializes the extended editor configuration
+ *
+ * @generated
+ */
+ protected void initExtendedEditorConfiguration() {
+ if(configuration == null) {
+ final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("")) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else {
+ configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ }
+ }
+
+ /**
+ * Updates the preference configuration
+ *
+ * @generated
+ */
+ protected void updateExtendedEditorConfiguration() {
+ String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("") && languagePreferred != configuration.getLanguage()) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else if(IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
+ configuration = null;
+ }
+ }
+
+ /**
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
+ protected void performDefaultDirectEditorEdit(final Request theRequest) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void addNotationalListeners() {
+ super.addNotationalListeners();
+ addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeNotationalListeners() {
+ super.removeNotationalListeners();
+ removeListenerFilter("PrimaryView"); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void handleNotificationEvent(Notification event) {
+ refreshLabel();
+ Object feature = event.getFeature();
+ if(NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
+ Integer c = (Integer)event.getNewValue();
+ setFontColor(DiagramColorRegistry.getInstance().getColor(c));
+ } else if(NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
+ refreshUnderline();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
+ refreshStrikeThrough();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
+ refreshFont();
+ } else {
+ if(getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
+ refreshLabel();
+ }
+ if(getParser() instanceof ISemanticParser) {
+ ISemanticParser modelParser = (ISemanticParser)getParser();
+ if(modelParser.areSemanticElementsAffected(null, event)) {
+ removeSemanticListeners();
+ if(resolveSemanticElement() != null) {
+ addSemanticListeners();
+ }
+ refreshLabel();
+ }
+ }
+ }
+
+ if(event.getNewValue() instanceof EAnnotation && VisualInformationPapyrusConstant.DISPLAY_NAMELABELICON.equals(((EAnnotation)event.getNewValue()).getSource())) {
+ refreshLabel();
+ }
+
+ super.handleNotificationEvent(event);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createFigure() {
+ // Parent should assign one using setLabel() method
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ private static final String ADD_PARENT_MODEL = "AddParentModel";
+
+ /**
+ * @generated
+ */
+ public void activate() {
+ super.activate();
+ addOwnerElementListeners();
+ }
+
+ /**
+ * @generated
+ */
+ protected void addOwnerElementListeners() {
+ addListenerFilter(ADD_PARENT_MODEL, this, ((View)getParent().getModel())); //$NON-NLS-1$
+
+ }
+
+ /**
+ * @generated
+ */
+ public void deactivate() {
+ removeOwnerElementListeners();
+ super.deactivate();
+
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeOwnerElementListeners() {
+ removeListenerFilter(ADD_PARENT_MODEL);
+
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/InterfaceNameEditPartCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/InterfaceNameEditPartCN.java
new file mode 100644
index 00000000000..06d76fcc9bc
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/InterfaceNameEditPartCN.java
@@ -0,0 +1,791 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EAnnotation;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.emf.transaction.RunnableWithResult;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.AccessibleEditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.requests.DirectEditRequest;
+import org.eclipse.gef.tools.DirectEditManager;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.CompartmentEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
+import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
+import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
+import org.eclipse.gmf.runtime.notation.FontStyle;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
+import org.eclipse.jface.viewers.ICellEditorValidator;
+import org.eclipse.jface.window.Window;
+import org.eclipse.papyrus.diagram.common.directedit.MultilineLabelDirectEditManager;
+import org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition;
+import org.eclipse.papyrus.diagram.common.editpolicies.IMaskManagedLabelEditPolicy;
+import org.eclipse.papyrus.diagram.common.figure.node.ILabelFigure;
+import org.eclipse.papyrus.diagram.common.util.DiagramEditPartsUtil;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLTextSelectionEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.diagram.composite.providers.UMLParserProvider;
+import org.eclipse.papyrus.extensionpoints.editors.Activator;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
+import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
+import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
+import org.eclipse.papyrus.umlutils.ui.VisualInformationPapyrusConstant;
+import org.eclipse.papyrus.umlutils.ui.helper.NameLabelIconHelper;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.AccessibleEvent;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.FontData;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.ui.PlatformUI;
+
+/**
+ * @generated
+ */
+public class InterfaceNameEditPartCN extends CompartmentEditPart implements ITextAwareEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 5154;
+
+ /**
+ * @generated
+ */
+ private DirectEditManager manager;
+
+ /**
+ * @generated
+ */
+ private IParser parser;
+
+ /**
+ * @generated
+ */
+ private List<?> parserElements;
+
+ /**
+ * @generated
+ */
+ private String defaultText;
+
+ /**
+ * direct edition mode (default, undefined, registered editor, etc.)
+ *
+ * @generated
+ */
+ protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
+
+ /**
+ * configuration from a registered edit dialog
+ *
+ * @generated
+ */
+ protected IDirectEditorConfiguration configuration;
+
+ /**
+ * @generated
+ */
+ public InterfaceNameEditPartCN(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
+ installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new CompositeStructureDiagramEditPart.NodeLabelDragPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelTextHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getText();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getText();
+ } else {
+ return ((Label)figure).getText();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelTextHelper(IFigure figure, String text) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setText(text);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setText(text);
+ } else {
+ ((Label)figure).setText(text);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIconHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getIcon();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getIcon();
+ } else {
+ return ((Label)figure).getIcon();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelIconHelper(IFigure figure, Image icon) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setIcon(icon);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setIcon(icon);
+ } else {
+ ((Label)figure).setIcon(icon);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabel(WrappingLabel figure) {
+ unregisterVisuals();
+ setFigure(figure);
+ defaultText = getLabelTextHelper(figure);
+ registerVisuals();
+ refreshVisuals();
+ }
+
+ /**
+ * @generated
+ */
+ protected List getModelChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject getParserElement() {
+ return resolveSemanticElement();
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIcon() {
+ EObject parserElement = getParserElement();
+ if(parserElement == null) {
+ return null;
+ }
+
+ List<View> views = DiagramEditPartsUtil.findViews(parserElement, getViewer());
+ for(View view : views) {
+ if(NameLabelIconHelper.showLabelIcon(view)) {
+ return UMLElementTypes.getImage(parserElement.eClass());
+ }
+ }
+ return null;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelText() {
+ String text = null;
+ EObject parserElement = getParserElement();
+ if(parserElement != null && getParser() != null) {
+ text = getParser().getPrintString(new EObjectAdapter(parserElement), getParserOptions().intValue());
+ }
+ if(text == null || text.length() == 0) {
+ text = defaultText;
+ }
+ return text;
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabelText(String text) {
+ setLabelTextHelper(getFigure(), text);
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public String getEditText() {
+ if(getParserElement() == null || getParser() == null) {
+ return ""; //$NON-NLS-1$
+ }
+ return getParser().getEditString(new EObjectAdapter(getParserElement()), getParserOptions().intValue());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean isEditable() {
+ return getParser() != null;
+ }
+
+ /**
+ * @generated
+ */
+ public ICellEditorValidator getEditTextValidator() {
+ return new ICellEditorValidator() {
+
+ public String isValid(final Object value) {
+ if(value instanceof String) {
+ final EObject element = getParserElement();
+ final IParser parser = getParser();
+ try {
+ IParserEditStatus valid = (IParserEditStatus)getEditingDomain().runExclusive(new RunnableWithResult.Impl() {
+
+ public void run() {
+ setResult(parser.isValidEditString(new EObjectAdapter(element), (String)value));
+ }
+ });
+ return valid.getCode() == ParserEditStatus.EDITABLE ? null : valid.getMessage();
+ } catch (InterruptedException ie) {
+ ie.printStackTrace();
+ }
+ }
+
+ // shouldn't get here
+ return null;
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ public IContentAssistProcessor getCompletionProcessor() {
+ if(getParserElement() == null || getParser() == null) {
+ return null;
+ }
+ return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
+ }
+
+ /**
+ * @generated
+ */
+ public ParserOptions getParserOptions() {
+ return ParserOptions.NONE;
+ }
+
+ /**
+ * @generated
+ */
+ public IParser getParser() {
+ if(parser == null) {
+ parser = UMLParserProvider.getParser(UMLElementTypes.Interface_3087, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.diagram.composite.edit.parts.InterfaceNameEditPartCN.VISUAL_ID));
+ }
+ return parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected DirectEditManager getManager() {
+ if(manager == null) {
+ setManager(new MultilineLabelDirectEditManager(this, MultilineLabelDirectEditManager.getTextCellEditorClass(this), UMLEditPartFactory.getTextCellEditorLocator(this)));
+ }
+ return manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setManager(DirectEditManager manager) {
+ this.manager = manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit() {
+ getManager().show();
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit(Point eventLocation) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(eventLocation.getSWTPoint());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void performDirectEdit(char initialCharacter) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(initialCharacter);
+ } else {
+ performDirectEdit();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEditRequest(Request request) {
+
+ final Request theRequest = request;
+
+ if(IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
+ directEditionMode = getDirectEditionType();
+ }
+ switch(directEditionMode) {
+ case IDirectEdition.NO_DIRECT_EDITION:
+ // no direct edition mode => does nothing
+ return;
+ case IDirectEdition.EXTENDED_DIRECT_EDITOR:
+ updateExtendedEditorConfiguration();
+ if(configuration == null || configuration.getLanguage() == null) {
+ performDefaultDirectEditorEdit(theRequest);
+ } else {
+ configuration.preEditAction(resolveSemanticElement());
+ Dialog dialog = null;
+ if(configuration instanceof IPopupEditorConfiguration) {
+ IPopupEditorHelper helper = ((IPopupEditorConfiguration)configuration).createPopupEditorHelper(this);
+ helper.showEditor();
+ return;
+ } else if(configuration instanceof IAdvancedEditorConfiguration) {
+ dialog = ((IAdvancedEditorConfiguration)configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
+ } else if(configuration instanceof IDirectEditorConfiguration) {
+ dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), ((IDirectEditorConfiguration)configuration).getTextToEdit(resolveSemanticElement()), (IDirectEditorConfiguration)configuration);
+ } else {
+ return;
+ }
+ final Dialog finalDialog = dialog;
+
+ if(Window.OK == dialog.open()) {
+ TransactionalEditingDomain domain = getEditingDomain();
+ RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
+
+ @Override
+ protected void doExecute() {
+ configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog)finalDialog).getValue());
+
+ }
+ };
+ domain.getCommandStack().execute(command);
+ }
+ }
+ break;
+ case IDirectEdition.DEFAULT_DIRECT_EDITOR:
+
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ break;
+ default:
+ break;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshLabel();
+ refreshFont();
+ refreshFontColor();
+ refreshUnderline();
+ refreshStrikeThrough();
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshLabel() {
+ EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
+ if(maskLabelPolicy == null) {
+ setLabelTextHelper(getFigure(), getLabelText());
+ setLabelIconHelper(getFigure(), getLabelIcon());
+ }
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshUnderline() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextUnderline(style.isUnderline());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshStrikeThrough() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextStrikeThrough(style.isStrikeThrough());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshFont() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null) {
+ FontData fontData = new FontData(style.getFontName(), style.getFontHeight(), (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
+ setFont(fontData);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setFontColor(Color color) {
+ getFigure().setForegroundColor(color);
+ }
+
+ /**
+ * @generated
+ */
+ protected void addSemanticListeners() {
+ if(getParser() instanceof ISemanticParser) {
+ EObject element = resolveSemanticElement();
+ parserElements = ((ISemanticParser)getParser()).getSemanticElementsBeingParsed(element);
+ for(int i = 0; i < parserElements.size(); i++) {
+ addListenerFilter("SemanticModel" + i, this, (EObject)parserElements.get(i)); //$NON-NLS-1$
+ }
+ } else {
+ super.addSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeSemanticListeners() {
+ if(parserElements != null) {
+ for(int i = 0; i < parserElements.size(); i++) {
+ removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
+ }
+ } else {
+ super.removeSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected AccessibleEditPart getAccessibleEditPart() {
+ if(accessibleEP == null) {
+ accessibleEP = new AccessibleGraphicalEditPart() {
+
+ public void getName(AccessibleEvent e) {
+ e.result = getLabelTextHelper(getFigure());
+ }
+ };
+ }
+ return accessibleEP;
+ }
+
+ /**
+ * @generated
+ */
+ private View getFontStyleOwnerView() {
+ return (View)getModel();
+ }
+
+ /**
+ * Returns the kind of associated editor for direct edition.
+ *
+ * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition
+ * @generated
+ */
+ public int getDirectEditionType() {
+ if(checkExtendedEditor()) {
+ initExtendedEditorConfiguration();
+ return IDirectEdition.EXTENDED_DIRECT_EDITOR;
+ }
+ if(checkDefaultEdition()) {
+ return IDirectEdition.DEFAULT_DIRECT_EDITOR;
+ }
+
+ // not a named element. no specific editor => do nothing
+ return IDirectEdition.NO_DIRECT_EDITION;
+ }
+
+ /**
+ * Checks if an extended editor is present.
+ *
+ * @return <code>true</code> if an extended editor is present.
+ * @generated
+ */
+ protected boolean checkExtendedEditor() {
+ if(resolveSemanticElement() != null) {
+ return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ return false;
+ }
+
+ /**
+ * Checks if a default direct edition is available
+ *
+ * @return <code>true</code> if a default direct edition is available
+ * @generated
+ */
+ protected boolean checkDefaultEdition() {
+ return (getParser() != null);
+ }
+
+ /**
+ * Initializes the extended editor configuration
+ *
+ * @generated
+ */
+ protected void initExtendedEditorConfiguration() {
+ if(configuration == null) {
+ final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("")) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else {
+ configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ }
+ }
+
+ /**
+ * Updates the preference configuration
+ *
+ * @generated
+ */
+ protected void updateExtendedEditorConfiguration() {
+ String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("") && languagePreferred != configuration.getLanguage()) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else if(IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
+ configuration = null;
+ }
+ }
+
+ /**
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
+ protected void performDefaultDirectEditorEdit(final Request theRequest) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void addNotationalListeners() {
+ super.addNotationalListeners();
+ addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeNotationalListeners() {
+ super.removeNotationalListeners();
+ removeListenerFilter("PrimaryView"); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void handleNotificationEvent(Notification event) {
+ refreshLabel();
+ Object feature = event.getFeature();
+ if(NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
+ Integer c = (Integer)event.getNewValue();
+ setFontColor(DiagramColorRegistry.getInstance().getColor(c));
+ } else if(NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
+ refreshUnderline();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
+ refreshStrikeThrough();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
+ refreshFont();
+ } else {
+ if(getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
+ refreshLabel();
+ }
+ if(getParser() instanceof ISemanticParser) {
+ ISemanticParser modelParser = (ISemanticParser)getParser();
+ if(modelParser.areSemanticElementsAffected(null, event)) {
+ removeSemanticListeners();
+ if(resolveSemanticElement() != null) {
+ addSemanticListeners();
+ }
+ refreshLabel();
+ }
+ }
+ }
+
+ if(event.getNewValue() instanceof EAnnotation && VisualInformationPapyrusConstant.DISPLAY_NAMELABELICON.equals(((EAnnotation)event.getNewValue()).getSource())) {
+ refreshLabel();
+ }
+
+ super.handleNotificationEvent(event);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createFigure() {
+ // Parent should assign one using setLabel() method
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ private static final String ADD_PARENT_MODEL = "AddParentModel";
+
+ /**
+ * @generated
+ */
+ public void activate() {
+ super.activate();
+ addOwnerElementListeners();
+ }
+
+ /**
+ * @generated
+ */
+ protected void addOwnerElementListeners() {
+ addListenerFilter(ADD_PARENT_MODEL, this, ((View)getParent().getModel())); //$NON-NLS-1$
+
+ }
+
+ /**
+ * @generated
+ */
+ public void deactivate() {
+ removeOwnerElementListeners();
+ super.deactivate();
+
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeOwnerElementListeners() {
+ removeListenerFilter(ADD_PARENT_MODEL);
+
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/InterfaceRealizationAppliedStereotypeEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/InterfaceRealizationAppliedStereotypeEditPart.java
new file mode 100644
index 00000000000..bc80f2f79c4
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/InterfaceRealizationAppliedStereotypeEditPart.java
@@ -0,0 +1,742 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.ConnectionLocator;
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.emf.transaction.RunnableWithResult;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.AccessibleEditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.requests.DirectEditRequest;
+import org.eclipse.gef.tools.DirectEditManager;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.LabelEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
+import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
+import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
+import org.eclipse.gmf.runtime.notation.FontStyle;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
+import org.eclipse.jface.viewers.ICellEditorValidator;
+import org.eclipse.jface.window.Window;
+import org.eclipse.papyrus.diagram.common.directedit.MultilineLabelDirectEditManager;
+import org.eclipse.papyrus.diagram.common.editparts.ILabelRoleProvider;
+import org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition;
+import org.eclipse.papyrus.diagram.common.editpolicies.IMaskManagedLabelEditPolicy;
+import org.eclipse.papyrus.diagram.common.figure.node.ILabelFigure;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLTextSelectionEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.diagram.composite.providers.UMLParserProvider;
+import org.eclipse.papyrus.extensionpoints.editors.Activator;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
+import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
+import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.AccessibleEvent;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.FontData;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.ui.PlatformUI;
+
+/**
+ * @generated
+ */
+public class InterfaceRealizationAppliedStereotypeEditPart extends LabelEditPart implements ITextAwareEditPart
+
+, ILabelRoleProvider
+
+{
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 6016;
+
+ /**
+ * @generated
+ */
+ private DirectEditManager manager;
+
+ /**
+ * @generated
+ */
+ private IParser parser;
+
+ /**
+ * @generated
+ */
+ private List<?> parserElements;
+
+ /**
+ * @generated
+ */
+ private String defaultText;
+
+ /**
+ * direct edition mode (default, undefined, registered editor, etc.)
+ *
+ * @generated
+ */
+ protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
+
+ /**
+ * configuration from a registered edit dialog
+ *
+ * @generated
+ */
+ protected IDirectEditorConfiguration configuration;
+
+ /**
+ * @generated
+ */
+ static {
+ registerSnapBackPosition(UMLVisualIDRegistry.getType(org.eclipse.papyrus.diagram.composite.edit.parts.InterfaceRealizationAppliedStereotypeEditPart.VISUAL_ID), new Point(0, 30));
+ }
+
+ /**
+ * @generated
+ */
+ public InterfaceRealizationAppliedStereotypeEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
+ installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new CompositeStructureDiagramEditPart.LinkLabelDragPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ public int getKeyPoint() {
+ return ConnectionLocator.MIDDLE;
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelTextHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getText();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getText();
+ } else {
+ return ((Label)figure).getText();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelTextHelper(IFigure figure, String text) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setText(text);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setText(text);
+ } else {
+ ((Label)figure).setText(text);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIconHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getIcon();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getIcon();
+ } else {
+ return ((Label)figure).getIcon();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelIconHelper(IFigure figure, Image icon) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setIcon(icon);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setIcon(icon);
+ } else {
+ ((Label)figure).setIcon(icon);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabel(WrappingLabel figure) {
+ unregisterVisuals();
+ setFigure(figure);
+ defaultText = getLabelTextHelper(figure);
+ registerVisuals();
+ refreshVisuals();
+ }
+
+ /**
+ * @generated
+ */
+ protected List getModelChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject getParserElement() {
+ return resolveSemanticElement();
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIcon() {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelText() {
+ String text = null;
+ EObject parserElement = getParserElement();
+ if(parserElement != null && getParser() != null) {
+ text = getParser().getPrintString(new EObjectAdapter(parserElement), getParserOptions().intValue());
+ }
+ if(text == null || text.length() == 0) {
+ text = defaultText;
+ }
+ return text;
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabelText(String text) {
+ setLabelTextHelper(getFigure(), text);
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public String getEditText() {
+ if(getParserElement() == null || getParser() == null) {
+ return ""; //$NON-NLS-1$
+ }
+ return getParser().getEditString(new EObjectAdapter(getParserElement()), getParserOptions().intValue());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean isEditable() {
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ public ICellEditorValidator getEditTextValidator() {
+ return new ICellEditorValidator() {
+
+ public String isValid(final Object value) {
+ if(value instanceof String) {
+ final EObject element = getParserElement();
+ final IParser parser = getParser();
+ try {
+ IParserEditStatus valid = (IParserEditStatus)getEditingDomain().runExclusive(new RunnableWithResult.Impl() {
+
+ public void run() {
+ setResult(parser.isValidEditString(new EObjectAdapter(element), (String)value));
+ }
+ });
+ return valid.getCode() == ParserEditStatus.EDITABLE ? null : valid.getMessage();
+ } catch (InterruptedException ie) {
+ ie.printStackTrace();
+ }
+ }
+
+ // shouldn't get here
+ return null;
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ public IContentAssistProcessor getCompletionProcessor() {
+ if(getParserElement() == null || getParser() == null) {
+ return null;
+ }
+ return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
+ }
+
+ /**
+ * @generated
+ */
+ public ParserOptions getParserOptions() {
+ return ParserOptions.NONE;
+ }
+
+ /**
+ * @generated
+ */
+ public IParser getParser() {
+ if(parser == null) {
+ parser = UMLParserProvider.getParser(UMLElementTypes.InterfaceRealization_4005, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.diagram.composite.edit.parts.InterfaceRealizationAppliedStereotypeEditPart.VISUAL_ID));
+ }
+ return parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected DirectEditManager getManager() {
+ if(manager == null) {
+ setManager(new MultilineLabelDirectEditManager(this, MultilineLabelDirectEditManager.getTextCellEditorClass(this), UMLEditPartFactory.getTextCellEditorLocator(this)));
+ }
+ return manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setManager(DirectEditManager manager) {
+ this.manager = manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit() {
+ getManager().show();
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit(Point eventLocation) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(eventLocation.getSWTPoint());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void performDirectEdit(char initialCharacter) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(initialCharacter);
+ } else {
+ performDirectEdit();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEditRequest(Request request) {
+
+ final Request theRequest = request;
+
+ if(IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
+ directEditionMode = getDirectEditionType();
+ }
+ switch(directEditionMode) {
+ case IDirectEdition.NO_DIRECT_EDITION:
+ // no direct edition mode => does nothing
+ return;
+ case IDirectEdition.EXTENDED_DIRECT_EDITOR:
+ updateExtendedEditorConfiguration();
+ if(configuration == null || configuration.getLanguage() == null) {
+ performDefaultDirectEditorEdit(theRequest);
+ } else {
+ configuration.preEditAction(resolveSemanticElement());
+ Dialog dialog = null;
+ if(configuration instanceof IPopupEditorConfiguration) {
+ IPopupEditorHelper helper = ((IPopupEditorConfiguration)configuration).createPopupEditorHelper(this);
+ helper.showEditor();
+ return;
+ } else if(configuration instanceof IAdvancedEditorConfiguration) {
+ dialog = ((IAdvancedEditorConfiguration)configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
+ } else if(configuration instanceof IDirectEditorConfiguration) {
+ dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), ((IDirectEditorConfiguration)configuration).getTextToEdit(resolveSemanticElement()), (IDirectEditorConfiguration)configuration);
+ } else {
+ return;
+ }
+ final Dialog finalDialog = dialog;
+
+ if(Window.OK == dialog.open()) {
+ TransactionalEditingDomain domain = getEditingDomain();
+ RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
+
+ @Override
+ protected void doExecute() {
+ configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog)finalDialog).getValue());
+
+ }
+ };
+ domain.getCommandStack().execute(command);
+ }
+ }
+ break;
+ case IDirectEdition.DEFAULT_DIRECT_EDITOR:
+
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ break;
+ default:
+ break;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshLabel();
+ refreshFont();
+ refreshFontColor();
+ refreshUnderline();
+ refreshStrikeThrough();
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshLabel() {
+ EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
+ if(maskLabelPolicy == null) {
+ setLabelTextHelper(getFigure(), getLabelText());
+ setLabelIconHelper(getFigure(), getLabelIcon());
+ }
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshUnderline() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextUnderline(style.isUnderline());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshStrikeThrough() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextStrikeThrough(style.isStrikeThrough());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshFont() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null) {
+ FontData fontData = new FontData(style.getFontName(), style.getFontHeight(), (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
+ setFont(fontData);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setFontColor(Color color) {
+ getFigure().setForegroundColor(color);
+ }
+
+ /**
+ * @generated
+ */
+ protected void addSemanticListeners() {
+ if(getParser() instanceof ISemanticParser) {
+ EObject element = resolveSemanticElement();
+ parserElements = ((ISemanticParser)getParser()).getSemanticElementsBeingParsed(element);
+ for(int i = 0; i < parserElements.size(); i++) {
+ addListenerFilter("SemanticModel" + i, this, (EObject)parserElements.get(i)); //$NON-NLS-1$
+ }
+ } else {
+ super.addSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeSemanticListeners() {
+ if(parserElements != null) {
+ for(int i = 0; i < parserElements.size(); i++) {
+ removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
+ }
+ } else {
+ super.removeSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected AccessibleEditPart getAccessibleEditPart() {
+ if(accessibleEP == null) {
+ accessibleEP = new AccessibleGraphicalEditPart() {
+
+ public void getName(AccessibleEvent e) {
+ e.result = getLabelTextHelper(getFigure());
+ }
+ };
+ }
+ return accessibleEP;
+ }
+
+ /**
+ * @generated
+ */
+ private View getFontStyleOwnerView() {
+ return getPrimaryView();
+ }
+
+ /**
+ * Returns the kind of associated editor for direct edition.
+ *
+ * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition
+ * @generated
+ */
+ public int getDirectEditionType() {
+ // The label is read-only (defined in GMFGen model)
+ return IDirectEdition.NO_DIRECT_EDITION;
+ }
+
+ /**
+ * Checks if an extended editor is present.
+ *
+ * @return <code>true</code> if an extended editor is present.
+ * @generated
+ */
+ protected boolean checkExtendedEditor() {
+ if(resolveSemanticElement() != null) {
+ return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ return false;
+ }
+
+ /**
+ * Checks if a default direct edition is available
+ *
+ * @return <code>true</code> if a default direct edition is available
+ * @generated
+ */
+ protected boolean checkDefaultEdition() {
+ return (getParser() != null);
+ }
+
+ /**
+ * Initializes the extended editor configuration
+ *
+ * @generated
+ */
+ protected void initExtendedEditorConfiguration() {
+ if(configuration == null) {
+ final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("")) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else {
+ configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ }
+ }
+
+ /**
+ * Updates the preference configuration
+ *
+ * @generated
+ */
+ protected void updateExtendedEditorConfiguration() {
+ String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("") && languagePreferred != configuration.getLanguage()) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else if(IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
+ configuration = null;
+ }
+ }
+
+ /**
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
+ protected void performDefaultDirectEditorEdit(final Request theRequest) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void handleNotificationEvent(Notification event) {
+ Object feature = event.getFeature();
+ if(NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
+ Integer c = (Integer)event.getNewValue();
+ setFontColor(DiagramColorRegistry.getInstance().getColor(c));
+ } else if(NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
+ refreshUnderline();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
+ refreshStrikeThrough();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
+ refreshFont();
+ } else {
+ if(getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
+ refreshLabel();
+ }
+ if(getParser() instanceof ISemanticParser) {
+ ISemanticParser modelParser = (ISemanticParser)getParser();
+ if(modelParser.areSemanticElementsAffected(null, event)) {
+ removeSemanticListeners();
+ if(resolveSemanticElement() != null) {
+ addSemanticListeners();
+ }
+ refreshLabel();
+ }
+ }
+ }
+
+ super.handleNotificationEvent(event);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createFigure() {
+ // Parent should assign one using setLabel() method
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ public String getLabelRole() {
+ return "Stereotype";//$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ public String getIconPathRole() {
+ return "";//$NON-NLS-1$
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/InterfaceRealizationEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/InterfaceRealizationEditPart.java
new file mode 100644
index 00000000000..49ac80b6df8
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/InterfaceRealizationEditPart.java
@@ -0,0 +1,121 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import org.eclipse.draw2d.Connection;
+import org.eclipse.gef.EditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITreeBranchEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.diagram.common.editparts.UMLConnectionNodeEditPart;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeLinkLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.figure.edge.InterfaceRealizationFigure;
+import org.eclipse.papyrus.diagram.composite.edit.policies.InterfaceRealizationItemSemanticEditPolicy;
+
+/**
+ * @generated
+ */
+public class InterfaceRealizationEditPart extends
+
+UMLConnectionNodeEditPart implements ITreeBranchEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 4005;
+
+ /**
+ * @generated
+ */
+ public InterfaceRealizationEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new InterfaceRealizationItemSemanticEditPolicy());
+ installEditPolicy(AppliedStereotypeLinkLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeLinkLabelDisplayEditPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean addFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof InterfaceRealizationNameEditPart) {
+ ((InterfaceRealizationNameEditPart)childEditPart).setLabel(getPrimaryShape().getNameLabel());
+ return true;
+ }
+ if(childEditPart instanceof InterfaceRealizationAppliedStereotypeEditPart) {
+ ((InterfaceRealizationAppliedStereotypeEditPart)childEditPart).setLabel(getPrimaryShape().getAppliedStereotypeLabel());
+ return true;
+ }
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected void addChildVisual(EditPart childEditPart, int index) {
+ if(addFixedChild(childEditPart)) {
+ return;
+ }
+ super.addChildVisual(childEditPart, -1);
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean removeFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof InterfaceRealizationNameEditPart) {
+ return true;
+ }
+ if(childEditPart instanceof InterfaceRealizationAppliedStereotypeEditPart) {
+ return true;
+ }
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeChildVisual(EditPart childEditPart) {
+ if(removeFixedChild(childEditPart)) {
+ return;
+ }
+ super.removeChildVisual(childEditPart);
+ }
+
+ /**
+ * Creates figure for this edit part.
+ *
+ * Body of this method does not depend on settings in generation model
+ * so you may safely remove <i>generated</i> tag and modify it.
+ *
+ * @generated
+ */
+ protected Connection createConnectionFigure() {
+ return new InterfaceRealizationFigure();
+ }
+
+ /**
+ * @generated
+ */
+ public InterfaceRealizationFigure getPrimaryShape() {
+ return (InterfaceRealizationFigure)getFigure();
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/InterfaceRealizationNameEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/InterfaceRealizationNameEditPart.java
new file mode 100644
index 00000000000..88d493997e7
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/InterfaceRealizationNameEditPart.java
@@ -0,0 +1,750 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.ConnectionLocator;
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.emf.transaction.RunnableWithResult;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.AccessibleEditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.requests.DirectEditRequest;
+import org.eclipse.gef.tools.DirectEditManager;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.LabelEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
+import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
+import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
+import org.eclipse.gmf.runtime.notation.FontStyle;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
+import org.eclipse.jface.viewers.ICellEditorValidator;
+import org.eclipse.jface.window.Window;
+import org.eclipse.papyrus.diagram.common.directedit.MultilineLabelDirectEditManager;
+import org.eclipse.papyrus.diagram.common.editparts.ILabelRoleProvider;
+import org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition;
+import org.eclipse.papyrus.diagram.common.editpolicies.IMaskManagedLabelEditPolicy;
+import org.eclipse.papyrus.diagram.common.figure.node.ILabelFigure;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLTextSelectionEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.diagram.composite.providers.UMLParserProvider;
+import org.eclipse.papyrus.extensionpoints.editors.Activator;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
+import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
+import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.AccessibleEvent;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.FontData;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.ui.PlatformUI;
+
+/**
+ * @generated
+ */
+public class InterfaceRealizationNameEditPart extends LabelEditPart implements ITextAwareEditPart
+
+, ILabelRoleProvider
+
+{
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 6002;
+
+ /**
+ * @generated
+ */
+ private DirectEditManager manager;
+
+ /**
+ * @generated
+ */
+ private IParser parser;
+
+ /**
+ * @generated
+ */
+ private List<?> parserElements;
+
+ /**
+ * @generated
+ */
+ private String defaultText;
+
+ /**
+ * direct edition mode (default, undefined, registered editor, etc.)
+ *
+ * @generated
+ */
+ protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
+
+ /**
+ * configuration from a registered edit dialog
+ *
+ * @generated
+ */
+ protected IDirectEditorConfiguration configuration;
+
+ /**
+ * @generated
+ */
+ static {
+ registerSnapBackPosition(UMLVisualIDRegistry.getType(org.eclipse.papyrus.diagram.composite.edit.parts.InterfaceRealizationNameEditPart.VISUAL_ID), new Point(0, 60));
+ }
+
+ /**
+ * @generated
+ */
+ public InterfaceRealizationNameEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
+ installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new CompositeStructureDiagramEditPart.LinkLabelDragPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ public int getKeyPoint() {
+ return ConnectionLocator.MIDDLE;
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelTextHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getText();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getText();
+ } else {
+ return ((Label)figure).getText();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelTextHelper(IFigure figure, String text) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setText(text);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setText(text);
+ } else {
+ ((Label)figure).setText(text);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIconHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getIcon();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getIcon();
+ } else {
+ return ((Label)figure).getIcon();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelIconHelper(IFigure figure, Image icon) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setIcon(icon);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setIcon(icon);
+ } else {
+ ((Label)figure).setIcon(icon);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabel(WrappingLabel figure) {
+ unregisterVisuals();
+ setFigure(figure);
+ defaultText = getLabelTextHelper(figure);
+ registerVisuals();
+ refreshVisuals();
+ }
+
+ /**
+ * @generated
+ */
+ protected List getModelChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject getParserElement() {
+ return resolveSemanticElement();
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIcon() {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelText() {
+ String text = null;
+ EObject parserElement = getParserElement();
+ if(parserElement != null && getParser() != null) {
+ text = getParser().getPrintString(new EObjectAdapter(parserElement), getParserOptions().intValue());
+ }
+ if(text == null || text.length() == 0) {
+ text = defaultText;
+ }
+ return text;
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabelText(String text) {
+ setLabelTextHelper(getFigure(), text);
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public String getEditText() {
+ if(getParserElement() == null || getParser() == null) {
+ return ""; //$NON-NLS-1$
+ }
+ return getParser().getEditString(new EObjectAdapter(getParserElement()), getParserOptions().intValue());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean isEditable() {
+ return getParser() != null;
+ }
+
+ /**
+ * @generated
+ */
+ public ICellEditorValidator getEditTextValidator() {
+ return new ICellEditorValidator() {
+
+ public String isValid(final Object value) {
+ if(value instanceof String) {
+ final EObject element = getParserElement();
+ final IParser parser = getParser();
+ try {
+ IParserEditStatus valid = (IParserEditStatus)getEditingDomain().runExclusive(new RunnableWithResult.Impl() {
+
+ public void run() {
+ setResult(parser.isValidEditString(new EObjectAdapter(element), (String)value));
+ }
+ });
+ return valid.getCode() == ParserEditStatus.EDITABLE ? null : valid.getMessage();
+ } catch (InterruptedException ie) {
+ ie.printStackTrace();
+ }
+ }
+
+ // shouldn't get here
+ return null;
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ public IContentAssistProcessor getCompletionProcessor() {
+ if(getParserElement() == null || getParser() == null) {
+ return null;
+ }
+ return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
+ }
+
+ /**
+ * @generated
+ */
+ public ParserOptions getParserOptions() {
+ return ParserOptions.NONE;
+ }
+
+ /**
+ * @generated
+ */
+ public IParser getParser() {
+ if(parser == null) {
+ parser = UMLParserProvider.getParser(UMLElementTypes.InterfaceRealization_4005, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.diagram.composite.edit.parts.InterfaceRealizationNameEditPart.VISUAL_ID));
+ }
+ return parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected DirectEditManager getManager() {
+ if(manager == null) {
+ setManager(new MultilineLabelDirectEditManager(this, MultilineLabelDirectEditManager.getTextCellEditorClass(this), UMLEditPartFactory.getTextCellEditorLocator(this)));
+ }
+ return manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setManager(DirectEditManager manager) {
+ this.manager = manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit() {
+ getManager().show();
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit(Point eventLocation) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(eventLocation.getSWTPoint());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void performDirectEdit(char initialCharacter) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(initialCharacter);
+ } else {
+ performDirectEdit();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEditRequest(Request request) {
+
+ final Request theRequest = request;
+
+ if(IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
+ directEditionMode = getDirectEditionType();
+ }
+ switch(directEditionMode) {
+ case IDirectEdition.NO_DIRECT_EDITION:
+ // no direct edition mode => does nothing
+ return;
+ case IDirectEdition.EXTENDED_DIRECT_EDITOR:
+ updateExtendedEditorConfiguration();
+ if(configuration == null || configuration.getLanguage() == null) {
+ performDefaultDirectEditorEdit(theRequest);
+ } else {
+ configuration.preEditAction(resolveSemanticElement());
+ Dialog dialog = null;
+ if(configuration instanceof IPopupEditorConfiguration) {
+ IPopupEditorHelper helper = ((IPopupEditorConfiguration)configuration).createPopupEditorHelper(this);
+ helper.showEditor();
+ return;
+ } else if(configuration instanceof IAdvancedEditorConfiguration) {
+ dialog = ((IAdvancedEditorConfiguration)configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
+ } else if(configuration instanceof IDirectEditorConfiguration) {
+ dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), ((IDirectEditorConfiguration)configuration).getTextToEdit(resolveSemanticElement()), (IDirectEditorConfiguration)configuration);
+ } else {
+ return;
+ }
+ final Dialog finalDialog = dialog;
+
+ if(Window.OK == dialog.open()) {
+ TransactionalEditingDomain domain = getEditingDomain();
+ RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
+
+ @Override
+ protected void doExecute() {
+ configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog)finalDialog).getValue());
+
+ }
+ };
+ domain.getCommandStack().execute(command);
+ }
+ }
+ break;
+ case IDirectEdition.DEFAULT_DIRECT_EDITOR:
+
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ break;
+ default:
+ break;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshLabel();
+ refreshFont();
+ refreshFontColor();
+ refreshUnderline();
+ refreshStrikeThrough();
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshLabel() {
+ EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
+ if(maskLabelPolicy == null) {
+ setLabelTextHelper(getFigure(), getLabelText());
+ setLabelIconHelper(getFigure(), getLabelIcon());
+ }
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshUnderline() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextUnderline(style.isUnderline());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshStrikeThrough() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextStrikeThrough(style.isStrikeThrough());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshFont() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null) {
+ FontData fontData = new FontData(style.getFontName(), style.getFontHeight(), (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
+ setFont(fontData);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setFontColor(Color color) {
+ getFigure().setForegroundColor(color);
+ }
+
+ /**
+ * @generated
+ */
+ protected void addSemanticListeners() {
+ if(getParser() instanceof ISemanticParser) {
+ EObject element = resolveSemanticElement();
+ parserElements = ((ISemanticParser)getParser()).getSemanticElementsBeingParsed(element);
+ for(int i = 0; i < parserElements.size(); i++) {
+ addListenerFilter("SemanticModel" + i, this, (EObject)parserElements.get(i)); //$NON-NLS-1$
+ }
+ } else {
+ super.addSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeSemanticListeners() {
+ if(parserElements != null) {
+ for(int i = 0; i < parserElements.size(); i++) {
+ removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
+ }
+ } else {
+ super.removeSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected AccessibleEditPart getAccessibleEditPart() {
+ if(accessibleEP == null) {
+ accessibleEP = new AccessibleGraphicalEditPart() {
+
+ public void getName(AccessibleEvent e) {
+ e.result = getLabelTextHelper(getFigure());
+ }
+ };
+ }
+ return accessibleEP;
+ }
+
+ /**
+ * @generated
+ */
+ private View getFontStyleOwnerView() {
+ return getPrimaryView();
+ }
+
+ /**
+ * Returns the kind of associated editor for direct edition.
+ *
+ * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition
+ * @generated
+ */
+ public int getDirectEditionType() {
+ if(checkExtendedEditor()) {
+ initExtendedEditorConfiguration();
+ return IDirectEdition.EXTENDED_DIRECT_EDITOR;
+ }
+ if(checkDefaultEdition()) {
+ return IDirectEdition.DEFAULT_DIRECT_EDITOR;
+ }
+
+ // not a named element. no specific editor => do nothing
+ return IDirectEdition.NO_DIRECT_EDITION;
+ }
+
+ /**
+ * Checks if an extended editor is present.
+ *
+ * @return <code>true</code> if an extended editor is present.
+ * @generated
+ */
+ protected boolean checkExtendedEditor() {
+ if(resolveSemanticElement() != null) {
+ return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ return false;
+ }
+
+ /**
+ * Checks if a default direct edition is available
+ *
+ * @return <code>true</code> if a default direct edition is available
+ * @generated
+ */
+ protected boolean checkDefaultEdition() {
+ return (getParser() != null);
+ }
+
+ /**
+ * Initializes the extended editor configuration
+ *
+ * @generated
+ */
+ protected void initExtendedEditorConfiguration() {
+ if(configuration == null) {
+ final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("")) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else {
+ configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ }
+ }
+
+ /**
+ * Updates the preference configuration
+ *
+ * @generated
+ */
+ protected void updateExtendedEditorConfiguration() {
+ String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("") && languagePreferred != configuration.getLanguage()) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else if(IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
+ configuration = null;
+ }
+ }
+
+ /**
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
+ protected void performDefaultDirectEditorEdit(final Request theRequest) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void handleNotificationEvent(Notification event) {
+ Object feature = event.getFeature();
+ if(NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
+ Integer c = (Integer)event.getNewValue();
+ setFontColor(DiagramColorRegistry.getInstance().getColor(c));
+ } else if(NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
+ refreshUnderline();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
+ refreshStrikeThrough();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
+ refreshFont();
+ } else {
+ if(getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
+ refreshLabel();
+ }
+ if(getParser() instanceof ISemanticParser) {
+ ISemanticParser modelParser = (ISemanticParser)getParser();
+ if(modelParser.areSemanticElementsAffected(null, event)) {
+ removeSemanticListeners();
+ if(resolveSemanticElement() != null) {
+ addSemanticListeners();
+ }
+ refreshLabel();
+ }
+ }
+ }
+
+ super.handleNotificationEvent(event);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createFigure() {
+ // Parent should assign one using setLabel() method
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ public String getLabelRole() {
+ return "Name";//$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ public String getIconPathRole() {
+ return "";//$NON-NLS-1$
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/IntervalConstraintEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/IntervalConstraintEditPart.java
new file mode 100644
index 00000000000..57df7008054
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/IntervalConstraintEditPart.java
@@ -0,0 +1,5459 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.ArrayList;
+import java.util.LinkedList;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Shape;
+import org.eclipse.draw2d.StackLayout;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EStructuralFeature;
+import org.eclipse.gef.EditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.editpolicies.LayoutEditPolicy;
+import org.eclipse.gef.editpolicies.NonResizableEditPolicy;
+import org.eclipse.gef.requests.CreateRequest;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.FigureUtilities;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.gef.ui.figures.DefaultSizeNodeFigure;
+import org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.jface.preference.PreferenceConverter;
+import org.eclipse.papyrus.diagram.common.editparts.AbstractConstraintEditPart;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.figure.node.ConstraintFigure;
+import org.eclipse.papyrus.diagram.common.helper.PreferenceInitializerForElementHelper;
+import org.eclipse.papyrus.diagram.composite.edit.policies.IntervalConstraintItemSemanticEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorPlugin;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter;
+import org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper;
+import org.eclipse.swt.graphics.Color;
+
+/**
+ * @generated
+ */
+public class IntervalConstraintEditPart extends
+
+AbstractConstraintEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 2112;
+
+ /**
+ * @generated
+ */
+ protected IFigure contentPane;
+
+ /**
+ * @generated
+ */
+ protected IFigure primaryShape;
+
+ /**
+ * @generated
+ */
+ public IntervalConstraintEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new IntervalConstraintItemSemanticEditPolicy());
+ installEditPolicy(EditPolicy.LAYOUT_ROLE, createLayoutEditPolicy());
+ installEditPolicy(AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeNodeLabelDisplayEditPolicy());
+ // XXX need an SCR to runtime to have another abstract superclass that would let children add reasonable editpolicies
+ // removeEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CONNECTION_HANDLES_ROLE);
+ }
+
+ /**
+ * Papyrus codeGen
+ *
+ * @generated
+ **/
+ protected void handleNotificationEvent(Notification event) {
+ super.handleNotificationEvent(event);
+
+ }
+
+ /**
+ * @generated
+ */
+ protected LayoutEditPolicy createLayoutEditPolicy() {
+ org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy lep = new org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy() {
+
+ protected EditPolicy createChildEditPolicy(EditPart child) {
+ EditPolicy result = child.getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(result == null) {
+ result = new NonResizableEditPolicy();
+ }
+ return result;
+ }
+
+ protected Command getMoveChildrenCommand(Request request) {
+ return null;
+ }
+
+ protected Command getCreateCommand(CreateRequest request) {
+ return null;
+ }
+ };
+ return lep;
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createNodeShape() {
+ return primaryShape = new ConstraintFigure();
+ }
+
+ /**
+ * @generated
+ */
+ public ConstraintFigure getPrimaryShape() {
+ return (ConstraintFigure)primaryShape;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean addFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof IntervalConstraintNameEditPart) {
+ ((IntervalConstraintNameEditPart)childEditPart).setLabel(getPrimaryShape().getNameLabel());
+ return true;
+ }
+ if(childEditPart instanceof IntervalConstraintSpecificationEditPart) {
+ ((IntervalConstraintSpecificationEditPart)childEditPart).setLabel(getPrimaryShape().getConstraintFigure());
+ return true;
+ }
+
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean removeFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof IntervalConstraintNameEditPart) {
+ return true;
+ }
+ if(childEditPart instanceof IntervalConstraintSpecificationEditPart) {
+ return true;
+ }
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected void addChildVisual(EditPart childEditPart, int index) {
+ if(addFixedChild(childEditPart)) {
+ return;
+ }
+ super.addChildVisual(childEditPart, -1);
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeChildVisual(EditPart childEditPart) {
+ if(removeFixedChild(childEditPart)) {
+ return;
+ }
+ super.removeChildVisual(childEditPart);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure getContentPaneFor(IGraphicalEditPart editPart) {
+ return getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ protected NodeFigure createNodePlate() {
+ String prefElementId = "IntervalConstraint";
+ IPreferenceStore store = UMLDiagramEditorPlugin.getInstance().getPreferenceStore();
+ String preferenceConstantWitdh = PreferenceInitializerForElementHelper.getpreferenceKey(getNotationView(), prefElementId, PreferenceConstantHelper.WIDTH);
+ String preferenceConstantHeight = PreferenceInitializerForElementHelper.getpreferenceKey(getNotationView(), prefElementId, PreferenceConstantHelper.HEIGHT);
+ DefaultSizeNodeFigure result = new DefaultSizeNodeFigure(store.getInt(preferenceConstantWitdh), store.getInt(preferenceConstantHeight));
+
+ return result;
+ }
+
+ /**
+ * Creates figure for this edit part.
+ *
+ * Body of this method does not depend on settings in generation model
+ * so you may safely remove <i>generated</i> tag and modify it.
+ *
+ * @generated
+ */
+ protected NodeFigure createNodeFigure() {
+ NodeFigure figure = createNodePlate();
+ figure.setLayoutManager(new StackLayout());
+ IFigure shape = createNodeShape();
+ figure.add(shape);
+ contentPane = setupContentPane(shape);
+ return figure;
+ }
+
+ /**
+ * Default implementation treats passed figure as content pane.
+ * Respects layout one may have set for generated figure.
+ *
+ * @param nodeShape
+ * instance of generated figure class
+ * @generated
+ */
+ protected IFigure setupContentPane(IFigure nodeShape) {
+ if(nodeShape.getLayoutManager() == null) {
+ ConstrainedToolbarLayout layout = new ConstrainedToolbarLayout();
+ layout.setSpacing(5);
+ nodeShape.setLayoutManager(layout);
+ }
+ return nodeShape; // use nodeShape itself as contentPane
+ }
+
+ /**
+ * @generated
+ */
+ public IFigure getContentPane() {
+ if(contentPane != null) {
+ return contentPane;
+ }
+ return super.getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ protected void setForegroundColor(Color color) {
+ if(primaryShape != null) {
+ primaryShape.setForegroundColor(color);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLineWidth(int width) {
+ if(primaryShape instanceof Shape) {
+ ((Shape)primaryShape).setLineWidth(width);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLineType(int style) {
+ if(primaryShape instanceof Shape) {
+ ((Shape)primaryShape).setLineStyle(style);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public EditPart getPrimaryChildEditPart() {
+ return getChildBySemanticHint(UMLVisualIDRegistry.getType(IntervalConstraintNameEditPart.VISUAL_ID));
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnSource() {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(12);
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ types.add(UMLElementTypes.Substitution_4011);
+ types.add(UMLElementTypes.Realization_4006);
+ types.add(UMLElementTypes.Manifestation_4012);
+ types.add(UMLElementTypes.Abstraction_4007);
+ types.add(UMLElementTypes.Usage_4008);
+ types.add(UMLElementTypes.Deployment_4009);
+ types.add(UMLElementTypes.Dependency_4017);
+ types.add(UMLElementTypes.Dependency_4010);
+ types.add(UMLElementTypes.InformationFlow_4021);
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnSourceAndTarget(IGraphicalEditPart targetEditPart) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof CommentEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof CommentEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMATypesForTarget(IElementType relationshipType) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(relationshipType == UMLElementTypes.ConstraintConstrainedElement_4003) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.Comment_2109);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.Comment_3097);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.ComponentRealization_4004) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InterfaceRealization_4005) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Substitution_4011) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Realization_4006) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Manifestation_4012) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Abstraction_4007) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Usage_4008) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Deployment_4009) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4017) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4010) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InformationFlow_4021) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnTarget() {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(15);
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ types.add(UMLElementTypes.Substitution_4011);
+ types.add(UMLElementTypes.Realization_4006);
+ types.add(UMLElementTypes.Manifestation_4012);
+ types.add(UMLElementTypes.Abstraction_4007);
+ types.add(UMLElementTypes.Usage_4008);
+ types.add(UMLElementTypes.Deployment_4009);
+ types.add(UMLElementTypes.Dependency_4017);
+ types.add(UMLElementTypes.Dependency_4010);
+ types.add(UMLElementTypes.TimeObservationEvent_4018);
+ types.add(UMLElementTypes.DurationObservationEvent_4019);
+ types.add(UMLElementTypes.InformationFlow_4021);
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMATypesForSource(IElementType relationshipType) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(relationshipType == UMLElementTypes.CommentAnnotatedElement_4002) {
+ types.add(UMLElementTypes.Comment_2109);
+ types.add(UMLElementTypes.Comment_3097);
+ } else if(relationshipType == UMLElementTypes.ConstraintConstrainedElement_4003) {
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.ComponentRealization_4004) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InterfaceRealization_4005) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Substitution_4011) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Realization_4006) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Manifestation_4012) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Abstraction_4007) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Usage_4008) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Deployment_4009) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4017) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4010) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.TimeObservationEvent_4018) {
+ types.add(UMLElementTypes.TimeObservation_2094);
+ } else if(relationshipType == UMLElementTypes.DurationObservationEvent_4019) {
+ types.add(UMLElementTypes.DurationObservation_2093);
+ } else if(relationshipType == UMLElementTypes.InformationFlow_4021) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public Object getPreferredValue(EStructuralFeature feature) {
+ IPreferenceStore preferenceStore = (IPreferenceStore)getDiagramPreferencesHint().getPreferenceStore();
+ Object result = null;
+
+ if(feature == NotationPackage.eINSTANCE.getLineStyle_LineColor() || feature == NotationPackage.eINSTANCE.getFontStyle_FontColor() || feature == NotationPackage.eINSTANCE.getFillStyle_FillColor()) {
+ String prefColor = null;
+ if(feature == NotationPackage.eINSTANCE.getLineStyle_LineColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("IntervalConstraint", PreferenceConstantHelper.COLOR_LINE);
+ } else if(feature == NotationPackage.eINSTANCE.getFontStyle_FontColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("IntervalConstraint", PreferenceConstantHelper.COLOR_FONT);
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_FillColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("IntervalConstraint", PreferenceConstantHelper.COLOR_FILL);
+ }
+ result = FigureUtilities.RGBToInteger(PreferenceConverter.getColor((IPreferenceStore)preferenceStore, prefColor));
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_Transparency() || feature == NotationPackage.eINSTANCE.getFillStyle_Gradient()) {
+ String prefGradient = PreferenceConstantHelper.getElementConstant("IntervalConstraint", PreferenceConstantHelper.COLOR_GRADIENT);
+ GradientPreferenceConverter gradientPreferenceConverter = new GradientPreferenceConverter(preferenceStore.getString(prefGradient));
+ if(feature == NotationPackage.eINSTANCE.getFillStyle_Transparency()) {
+ result = new Integer(gradientPreferenceConverter.getTransparency());
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_Gradient()) {
+ result = gradientPreferenceConverter.getGradientData();
+ }
+ }
+
+ if(result == null) {
+ result = getStructuralFeatureValue(feature);
+ }
+ return result;
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/IntervalConstraintEditPartCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/IntervalConstraintEditPartCN.java
new file mode 100644
index 00000000000..3a7f75773e9
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/IntervalConstraintEditPartCN.java
@@ -0,0 +1,5461 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.ArrayList;
+import java.util.LinkedList;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Shape;
+import org.eclipse.draw2d.StackLayout;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EStructuralFeature;
+import org.eclipse.gef.EditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.editpolicies.LayoutEditPolicy;
+import org.eclipse.gef.editpolicies.NonResizableEditPolicy;
+import org.eclipse.gef.requests.CreateRequest;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.FigureUtilities;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.gef.ui.figures.DefaultSizeNodeFigure;
+import org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.jface.preference.PreferenceConverter;
+import org.eclipse.papyrus.diagram.common.editparts.AbstractConstraintEditPart;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.figure.node.ConstraintFigure;
+import org.eclipse.papyrus.diagram.common.helper.PreferenceInitializerForElementHelper;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.NoScrollClassifierResizableShapeEditPolicy;
+import org.eclipse.papyrus.diagram.composite.edit.policies.IntervalConstraintItemSemanticEditPolicyCN;
+import org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorPlugin;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter;
+import org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper;
+import org.eclipse.swt.graphics.Color;
+
+/**
+ * @generated
+ */
+public class IntervalConstraintEditPartCN extends
+
+AbstractConstraintEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 3118;
+
+ /**
+ * @generated
+ */
+ protected IFigure contentPane;
+
+ /**
+ * @generated
+ */
+ protected IFigure primaryShape;
+
+ /**
+ * @generated
+ */
+ public IntervalConstraintEditPartCN(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new IntervalConstraintItemSemanticEditPolicyCN());
+ installEditPolicy(EditPolicy.LAYOUT_ROLE, createLayoutEditPolicy());
+ installEditPolicy(AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeNodeLabelDisplayEditPolicy());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new NoScrollClassifierResizableShapeEditPolicy());
+ // XXX need an SCR to runtime to have another abstract superclass that would let children add reasonable editpolicies
+ // removeEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CONNECTION_HANDLES_ROLE);
+ }
+
+ /**
+ * Papyrus codeGen
+ *
+ * @generated
+ **/
+ protected void handleNotificationEvent(Notification event) {
+ super.handleNotificationEvent(event);
+
+ }
+
+ /**
+ * @generated
+ */
+ protected LayoutEditPolicy createLayoutEditPolicy() {
+ org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy lep = new org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy() {
+
+ protected EditPolicy createChildEditPolicy(EditPart child) {
+ EditPolicy result = child.getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(result == null) {
+ result = new NonResizableEditPolicy();
+ }
+ return result;
+ }
+
+ protected Command getMoveChildrenCommand(Request request) {
+ return null;
+ }
+
+ protected Command getCreateCommand(CreateRequest request) {
+ return null;
+ }
+ };
+ return lep;
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createNodeShape() {
+ return primaryShape = new ConstraintFigure();
+ }
+
+ /**
+ * @generated
+ */
+ public ConstraintFigure getPrimaryShape() {
+ return (ConstraintFigure)primaryShape;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean addFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof IntervalConstraintNameEditPartCN) {
+ ((IntervalConstraintNameEditPartCN)childEditPart).setLabel(getPrimaryShape().getNameLabel());
+ return true;
+ }
+ if(childEditPart instanceof IntervalConstraintSpecificationEditPartCN) {
+ ((IntervalConstraintSpecificationEditPartCN)childEditPart).setLabel(getPrimaryShape().getConstraintFigure());
+ return true;
+ }
+
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean removeFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof IntervalConstraintNameEditPartCN) {
+ return true;
+ }
+ if(childEditPart instanceof IntervalConstraintSpecificationEditPartCN) {
+ return true;
+ }
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected void addChildVisual(EditPart childEditPart, int index) {
+ if(addFixedChild(childEditPart)) {
+ return;
+ }
+ super.addChildVisual(childEditPart, -1);
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeChildVisual(EditPart childEditPart) {
+ if(removeFixedChild(childEditPart)) {
+ return;
+ }
+ super.removeChildVisual(childEditPart);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure getContentPaneFor(IGraphicalEditPart editPart) {
+ return getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ protected NodeFigure createNodePlate() {
+ String prefElementId = "IntervalConstraint";
+ IPreferenceStore store = UMLDiagramEditorPlugin.getInstance().getPreferenceStore();
+ String preferenceConstantWitdh = PreferenceInitializerForElementHelper.getpreferenceKey(getNotationView(), prefElementId, PreferenceConstantHelper.WIDTH);
+ String preferenceConstantHeight = PreferenceInitializerForElementHelper.getpreferenceKey(getNotationView(), prefElementId, PreferenceConstantHelper.HEIGHT);
+ DefaultSizeNodeFigure result = new DefaultSizeNodeFigure(store.getInt(preferenceConstantWitdh), store.getInt(preferenceConstantHeight));
+
+ return result;
+ }
+
+ /**
+ * Creates figure for this edit part.
+ *
+ * Body of this method does not depend on settings in generation model
+ * so you may safely remove <i>generated</i> tag and modify it.
+ *
+ * @generated
+ */
+ protected NodeFigure createNodeFigure() {
+ NodeFigure figure = createNodePlate();
+ figure.setLayoutManager(new StackLayout());
+ IFigure shape = createNodeShape();
+ figure.add(shape);
+ contentPane = setupContentPane(shape);
+ return figure;
+ }
+
+ /**
+ * Default implementation treats passed figure as content pane.
+ * Respects layout one may have set for generated figure.
+ *
+ * @param nodeShape
+ * instance of generated figure class
+ * @generated
+ */
+ protected IFigure setupContentPane(IFigure nodeShape) {
+ if(nodeShape.getLayoutManager() == null) {
+ ConstrainedToolbarLayout layout = new ConstrainedToolbarLayout();
+ layout.setSpacing(5);
+ nodeShape.setLayoutManager(layout);
+ }
+ return nodeShape; // use nodeShape itself as contentPane
+ }
+
+ /**
+ * @generated
+ */
+ public IFigure getContentPane() {
+ if(contentPane != null) {
+ return contentPane;
+ }
+ return super.getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ protected void setForegroundColor(Color color) {
+ if(primaryShape != null) {
+ primaryShape.setForegroundColor(color);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLineWidth(int width) {
+ if(primaryShape instanceof Shape) {
+ ((Shape)primaryShape).setLineWidth(width);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLineType(int style) {
+ if(primaryShape instanceof Shape) {
+ ((Shape)primaryShape).setLineStyle(style);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public EditPart getPrimaryChildEditPart() {
+ return getChildBySemanticHint(UMLVisualIDRegistry.getType(IntervalConstraintNameEditPartCN.VISUAL_ID));
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnSource() {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(12);
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ types.add(UMLElementTypes.Substitution_4011);
+ types.add(UMLElementTypes.Realization_4006);
+ types.add(UMLElementTypes.Manifestation_4012);
+ types.add(UMLElementTypes.Abstraction_4007);
+ types.add(UMLElementTypes.Usage_4008);
+ types.add(UMLElementTypes.Deployment_4009);
+ types.add(UMLElementTypes.Dependency_4017);
+ types.add(UMLElementTypes.Dependency_4010);
+ types.add(UMLElementTypes.InformationFlow_4021);
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnSourceAndTarget(IGraphicalEditPart targetEditPart) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof CommentEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof CommentEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMATypesForTarget(IElementType relationshipType) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(relationshipType == UMLElementTypes.ConstraintConstrainedElement_4003) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.Comment_2109);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.Comment_3097);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.ComponentRealization_4004) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InterfaceRealization_4005) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Substitution_4011) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Realization_4006) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Manifestation_4012) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Abstraction_4007) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Usage_4008) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Deployment_4009) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4017) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4010) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InformationFlow_4021) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnTarget() {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(15);
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ types.add(UMLElementTypes.Substitution_4011);
+ types.add(UMLElementTypes.Realization_4006);
+ types.add(UMLElementTypes.Manifestation_4012);
+ types.add(UMLElementTypes.Abstraction_4007);
+ types.add(UMLElementTypes.Usage_4008);
+ types.add(UMLElementTypes.Deployment_4009);
+ types.add(UMLElementTypes.Dependency_4017);
+ types.add(UMLElementTypes.Dependency_4010);
+ types.add(UMLElementTypes.TimeObservationEvent_4018);
+ types.add(UMLElementTypes.DurationObservationEvent_4019);
+ types.add(UMLElementTypes.InformationFlow_4021);
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMATypesForSource(IElementType relationshipType) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(relationshipType == UMLElementTypes.CommentAnnotatedElement_4002) {
+ types.add(UMLElementTypes.Comment_2109);
+ types.add(UMLElementTypes.Comment_3097);
+ } else if(relationshipType == UMLElementTypes.ConstraintConstrainedElement_4003) {
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.ComponentRealization_4004) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InterfaceRealization_4005) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Substitution_4011) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Realization_4006) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Manifestation_4012) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Abstraction_4007) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Usage_4008) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Deployment_4009) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4017) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4010) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.TimeObservationEvent_4018) {
+ types.add(UMLElementTypes.TimeObservation_2094);
+ } else if(relationshipType == UMLElementTypes.DurationObservationEvent_4019) {
+ types.add(UMLElementTypes.DurationObservation_2093);
+ } else if(relationshipType == UMLElementTypes.InformationFlow_4021) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public Object getPreferredValue(EStructuralFeature feature) {
+ IPreferenceStore preferenceStore = (IPreferenceStore)getDiagramPreferencesHint().getPreferenceStore();
+ Object result = null;
+
+ if(feature == NotationPackage.eINSTANCE.getLineStyle_LineColor() || feature == NotationPackage.eINSTANCE.getFontStyle_FontColor() || feature == NotationPackage.eINSTANCE.getFillStyle_FillColor()) {
+ String prefColor = null;
+ if(feature == NotationPackage.eINSTANCE.getLineStyle_LineColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("IntervalConstraint", PreferenceConstantHelper.COLOR_LINE);
+ } else if(feature == NotationPackage.eINSTANCE.getFontStyle_FontColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("IntervalConstraint", PreferenceConstantHelper.COLOR_FONT);
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_FillColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("IntervalConstraint", PreferenceConstantHelper.COLOR_FILL);
+ }
+ result = FigureUtilities.RGBToInteger(PreferenceConverter.getColor((IPreferenceStore)preferenceStore, prefColor));
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_Transparency() || feature == NotationPackage.eINSTANCE.getFillStyle_Gradient()) {
+ String prefGradient = PreferenceConstantHelper.getElementConstant("IntervalConstraint", PreferenceConstantHelper.COLOR_GRADIENT);
+ GradientPreferenceConverter gradientPreferenceConverter = new GradientPreferenceConverter(preferenceStore.getString(prefGradient));
+ if(feature == NotationPackage.eINSTANCE.getFillStyle_Transparency()) {
+ result = new Integer(gradientPreferenceConverter.getTransparency());
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_Gradient()) {
+ result = gradientPreferenceConverter.getGradientData();
+ }
+ }
+
+ if(result == null) {
+ result = getStructuralFeatureValue(feature);
+ }
+ return result;
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/IntervalConstraintNameEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/IntervalConstraintNameEditPart.java
new file mode 100644
index 00000000000..b9e8fc7c562
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/IntervalConstraintNameEditPart.java
@@ -0,0 +1,791 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EAnnotation;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.emf.transaction.RunnableWithResult;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.AccessibleEditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.requests.DirectEditRequest;
+import org.eclipse.gef.tools.DirectEditManager;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.CompartmentEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
+import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
+import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
+import org.eclipse.gmf.runtime.notation.FontStyle;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
+import org.eclipse.jface.viewers.ICellEditorValidator;
+import org.eclipse.jface.window.Window;
+import org.eclipse.papyrus.diagram.common.directedit.MultilineLabelDirectEditManager;
+import org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition;
+import org.eclipse.papyrus.diagram.common.editpolicies.IMaskManagedLabelEditPolicy;
+import org.eclipse.papyrus.diagram.common.figure.node.ILabelFigure;
+import org.eclipse.papyrus.diagram.common.util.DiagramEditPartsUtil;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLTextSelectionEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.diagram.composite.providers.UMLParserProvider;
+import org.eclipse.papyrus.extensionpoints.editors.Activator;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
+import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
+import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
+import org.eclipse.papyrus.umlutils.ui.VisualInformationPapyrusConstant;
+import org.eclipse.papyrus.umlutils.ui.helper.NameLabelIconHelper;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.AccessibleEvent;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.FontData;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.ui.PlatformUI;
+
+/**
+ * @generated
+ */
+public class IntervalConstraintNameEditPart extends CompartmentEditPart implements ITextAwareEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 5195;
+
+ /**
+ * @generated
+ */
+ private DirectEditManager manager;
+
+ /**
+ * @generated
+ */
+ private IParser parser;
+
+ /**
+ * @generated
+ */
+ private List<?> parserElements;
+
+ /**
+ * @generated
+ */
+ private String defaultText;
+
+ /**
+ * direct edition mode (default, undefined, registered editor, etc.)
+ *
+ * @generated
+ */
+ protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
+
+ /**
+ * configuration from a registered edit dialog
+ *
+ * @generated
+ */
+ protected IDirectEditorConfiguration configuration;
+
+ /**
+ * @generated
+ */
+ public IntervalConstraintNameEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
+ installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new CompositeStructureDiagramEditPart.NodeLabelDragPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelTextHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getText();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getText();
+ } else {
+ return ((Label)figure).getText();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelTextHelper(IFigure figure, String text) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setText(text);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setText(text);
+ } else {
+ ((Label)figure).setText(text);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIconHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getIcon();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getIcon();
+ } else {
+ return ((Label)figure).getIcon();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelIconHelper(IFigure figure, Image icon) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setIcon(icon);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setIcon(icon);
+ } else {
+ ((Label)figure).setIcon(icon);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabel(WrappingLabel figure) {
+ unregisterVisuals();
+ setFigure(figure);
+ defaultText = getLabelTextHelper(figure);
+ registerVisuals();
+ refreshVisuals();
+ }
+
+ /**
+ * @generated
+ */
+ protected List getModelChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject getParserElement() {
+ return resolveSemanticElement();
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIcon() {
+ EObject parserElement = getParserElement();
+ if(parserElement == null) {
+ return null;
+ }
+
+ List<View> views = DiagramEditPartsUtil.findViews(parserElement, getViewer());
+ for(View view : views) {
+ if(NameLabelIconHelper.showLabelIcon(view)) {
+ return UMLElementTypes.getImage(parserElement.eClass());
+ }
+ }
+ return null;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelText() {
+ String text = null;
+ EObject parserElement = getParserElement();
+ if(parserElement != null && getParser() != null) {
+ text = getParser().getPrintString(new EObjectAdapter(parserElement), getParserOptions().intValue());
+ }
+ if(text == null || text.length() == 0) {
+ text = defaultText;
+ }
+ return text;
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabelText(String text) {
+ setLabelTextHelper(getFigure(), text);
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public String getEditText() {
+ if(getParserElement() == null || getParser() == null) {
+ return ""; //$NON-NLS-1$
+ }
+ return getParser().getEditString(new EObjectAdapter(getParserElement()), getParserOptions().intValue());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean isEditable() {
+ return getParser() != null;
+ }
+
+ /**
+ * @generated
+ */
+ public ICellEditorValidator getEditTextValidator() {
+ return new ICellEditorValidator() {
+
+ public String isValid(final Object value) {
+ if(value instanceof String) {
+ final EObject element = getParserElement();
+ final IParser parser = getParser();
+ try {
+ IParserEditStatus valid = (IParserEditStatus)getEditingDomain().runExclusive(new RunnableWithResult.Impl() {
+
+ public void run() {
+ setResult(parser.isValidEditString(new EObjectAdapter(element), (String)value));
+ }
+ });
+ return valid.getCode() == ParserEditStatus.EDITABLE ? null : valid.getMessage();
+ } catch (InterruptedException ie) {
+ ie.printStackTrace();
+ }
+ }
+
+ // shouldn't get here
+ return null;
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ public IContentAssistProcessor getCompletionProcessor() {
+ if(getParserElement() == null || getParser() == null) {
+ return null;
+ }
+ return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
+ }
+
+ /**
+ * @generated
+ */
+ public ParserOptions getParserOptions() {
+ return ParserOptions.NONE;
+ }
+
+ /**
+ * @generated
+ */
+ public IParser getParser() {
+ if(parser == null) {
+ parser = UMLParserProvider.getParser(UMLElementTypes.IntervalConstraint_2112, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.diagram.composite.edit.parts.IntervalConstraintNameEditPart.VISUAL_ID));
+ }
+ return parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected DirectEditManager getManager() {
+ if(manager == null) {
+ setManager(new MultilineLabelDirectEditManager(this, MultilineLabelDirectEditManager.getTextCellEditorClass(this), UMLEditPartFactory.getTextCellEditorLocator(this)));
+ }
+ return manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setManager(DirectEditManager manager) {
+ this.manager = manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit() {
+ getManager().show();
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit(Point eventLocation) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(eventLocation.getSWTPoint());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void performDirectEdit(char initialCharacter) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(initialCharacter);
+ } else {
+ performDirectEdit();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEditRequest(Request request) {
+
+ final Request theRequest = request;
+
+ if(IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
+ directEditionMode = getDirectEditionType();
+ }
+ switch(directEditionMode) {
+ case IDirectEdition.NO_DIRECT_EDITION:
+ // no direct edition mode => does nothing
+ return;
+ case IDirectEdition.EXTENDED_DIRECT_EDITOR:
+ updateExtendedEditorConfiguration();
+ if(configuration == null || configuration.getLanguage() == null) {
+ performDefaultDirectEditorEdit(theRequest);
+ } else {
+ configuration.preEditAction(resolveSemanticElement());
+ Dialog dialog = null;
+ if(configuration instanceof IPopupEditorConfiguration) {
+ IPopupEditorHelper helper = ((IPopupEditorConfiguration)configuration).createPopupEditorHelper(this);
+ helper.showEditor();
+ return;
+ } else if(configuration instanceof IAdvancedEditorConfiguration) {
+ dialog = ((IAdvancedEditorConfiguration)configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
+ } else if(configuration instanceof IDirectEditorConfiguration) {
+ dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), ((IDirectEditorConfiguration)configuration).getTextToEdit(resolveSemanticElement()), (IDirectEditorConfiguration)configuration);
+ } else {
+ return;
+ }
+ final Dialog finalDialog = dialog;
+
+ if(Window.OK == dialog.open()) {
+ TransactionalEditingDomain domain = getEditingDomain();
+ RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
+
+ @Override
+ protected void doExecute() {
+ configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog)finalDialog).getValue());
+
+ }
+ };
+ domain.getCommandStack().execute(command);
+ }
+ }
+ break;
+ case IDirectEdition.DEFAULT_DIRECT_EDITOR:
+
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ break;
+ default:
+ break;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshLabel();
+ refreshFont();
+ refreshFontColor();
+ refreshUnderline();
+ refreshStrikeThrough();
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshLabel() {
+ EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
+ if(maskLabelPolicy == null) {
+ setLabelTextHelper(getFigure(), getLabelText());
+ setLabelIconHelper(getFigure(), getLabelIcon());
+ }
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshUnderline() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextUnderline(style.isUnderline());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshStrikeThrough() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextStrikeThrough(style.isStrikeThrough());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshFont() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null) {
+ FontData fontData = new FontData(style.getFontName(), style.getFontHeight(), (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
+ setFont(fontData);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setFontColor(Color color) {
+ getFigure().setForegroundColor(color);
+ }
+
+ /**
+ * @generated
+ */
+ protected void addSemanticListeners() {
+ if(getParser() instanceof ISemanticParser) {
+ EObject element = resolveSemanticElement();
+ parserElements = ((ISemanticParser)getParser()).getSemanticElementsBeingParsed(element);
+ for(int i = 0; i < parserElements.size(); i++) {
+ addListenerFilter("SemanticModel" + i, this, (EObject)parserElements.get(i)); //$NON-NLS-1$
+ }
+ } else {
+ super.addSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeSemanticListeners() {
+ if(parserElements != null) {
+ for(int i = 0; i < parserElements.size(); i++) {
+ removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
+ }
+ } else {
+ super.removeSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected AccessibleEditPart getAccessibleEditPart() {
+ if(accessibleEP == null) {
+ accessibleEP = new AccessibleGraphicalEditPart() {
+
+ public void getName(AccessibleEvent e) {
+ e.result = getLabelTextHelper(getFigure());
+ }
+ };
+ }
+ return accessibleEP;
+ }
+
+ /**
+ * @generated
+ */
+ private View getFontStyleOwnerView() {
+ return (View)getModel();
+ }
+
+ /**
+ * Returns the kind of associated editor for direct edition.
+ *
+ * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition
+ * @generated
+ */
+ public int getDirectEditionType() {
+ if(checkExtendedEditor()) {
+ initExtendedEditorConfiguration();
+ return IDirectEdition.EXTENDED_DIRECT_EDITOR;
+ }
+ if(checkDefaultEdition()) {
+ return IDirectEdition.DEFAULT_DIRECT_EDITOR;
+ }
+
+ // not a named element. no specific editor => do nothing
+ return IDirectEdition.NO_DIRECT_EDITION;
+ }
+
+ /**
+ * Checks if an extended editor is present.
+ *
+ * @return <code>true</code> if an extended editor is present.
+ * @generated
+ */
+ protected boolean checkExtendedEditor() {
+ if(resolveSemanticElement() != null) {
+ return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ return false;
+ }
+
+ /**
+ * Checks if a default direct edition is available
+ *
+ * @return <code>true</code> if a default direct edition is available
+ * @generated
+ */
+ protected boolean checkDefaultEdition() {
+ return (getParser() != null);
+ }
+
+ /**
+ * Initializes the extended editor configuration
+ *
+ * @generated
+ */
+ protected void initExtendedEditorConfiguration() {
+ if(configuration == null) {
+ final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("")) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else {
+ configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ }
+ }
+
+ /**
+ * Updates the preference configuration
+ *
+ * @generated
+ */
+ protected void updateExtendedEditorConfiguration() {
+ String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("") && languagePreferred != configuration.getLanguage()) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else if(IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
+ configuration = null;
+ }
+ }
+
+ /**
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
+ protected void performDefaultDirectEditorEdit(final Request theRequest) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void addNotationalListeners() {
+ super.addNotationalListeners();
+ addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeNotationalListeners() {
+ super.removeNotationalListeners();
+ removeListenerFilter("PrimaryView"); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void handleNotificationEvent(Notification event) {
+ refreshLabel();
+ Object feature = event.getFeature();
+ if(NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
+ Integer c = (Integer)event.getNewValue();
+ setFontColor(DiagramColorRegistry.getInstance().getColor(c));
+ } else if(NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
+ refreshUnderline();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
+ refreshStrikeThrough();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
+ refreshFont();
+ } else {
+ if(getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
+ refreshLabel();
+ }
+ if(getParser() instanceof ISemanticParser) {
+ ISemanticParser modelParser = (ISemanticParser)getParser();
+ if(modelParser.areSemanticElementsAffected(null, event)) {
+ removeSemanticListeners();
+ if(resolveSemanticElement() != null) {
+ addSemanticListeners();
+ }
+ refreshLabel();
+ }
+ }
+ }
+
+ if(event.getNewValue() instanceof EAnnotation && VisualInformationPapyrusConstant.DISPLAY_NAMELABELICON.equals(((EAnnotation)event.getNewValue()).getSource())) {
+ refreshLabel();
+ }
+
+ super.handleNotificationEvent(event);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createFigure() {
+ // Parent should assign one using setLabel() method
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ private static final String ADD_PARENT_MODEL = "AddParentModel";
+
+ /**
+ * @generated
+ */
+ public void activate() {
+ super.activate();
+ addOwnerElementListeners();
+ }
+
+ /**
+ * @generated
+ */
+ protected void addOwnerElementListeners() {
+ addListenerFilter(ADD_PARENT_MODEL, this, ((View)getParent().getModel())); //$NON-NLS-1$
+
+ }
+
+ /**
+ * @generated
+ */
+ public void deactivate() {
+ removeOwnerElementListeners();
+ super.deactivate();
+
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeOwnerElementListeners() {
+ removeListenerFilter(ADD_PARENT_MODEL);
+
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/IntervalConstraintNameEditPartCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/IntervalConstraintNameEditPartCN.java
new file mode 100644
index 00000000000..584d0009aac
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/IntervalConstraintNameEditPartCN.java
@@ -0,0 +1,791 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EAnnotation;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.emf.transaction.RunnableWithResult;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.AccessibleEditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.requests.DirectEditRequest;
+import org.eclipse.gef.tools.DirectEditManager;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.CompartmentEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
+import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
+import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
+import org.eclipse.gmf.runtime.notation.FontStyle;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
+import org.eclipse.jface.viewers.ICellEditorValidator;
+import org.eclipse.jface.window.Window;
+import org.eclipse.papyrus.diagram.common.directedit.MultilineLabelDirectEditManager;
+import org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition;
+import org.eclipse.papyrus.diagram.common.editpolicies.IMaskManagedLabelEditPolicy;
+import org.eclipse.papyrus.diagram.common.figure.node.ILabelFigure;
+import org.eclipse.papyrus.diagram.common.util.DiagramEditPartsUtil;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLTextSelectionEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.diagram.composite.providers.UMLParserProvider;
+import org.eclipse.papyrus.extensionpoints.editors.Activator;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
+import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
+import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
+import org.eclipse.papyrus.umlutils.ui.VisualInformationPapyrusConstant;
+import org.eclipse.papyrus.umlutils.ui.helper.NameLabelIconHelper;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.AccessibleEvent;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.FontData;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.ui.PlatformUI;
+
+/**
+ * @generated
+ */
+public class IntervalConstraintNameEditPartCN extends CompartmentEditPart implements ITextAwareEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 6044;
+
+ /**
+ * @generated
+ */
+ private DirectEditManager manager;
+
+ /**
+ * @generated
+ */
+ private IParser parser;
+
+ /**
+ * @generated
+ */
+ private List<?> parserElements;
+
+ /**
+ * @generated
+ */
+ private String defaultText;
+
+ /**
+ * direct edition mode (default, undefined, registered editor, etc.)
+ *
+ * @generated
+ */
+ protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
+
+ /**
+ * configuration from a registered edit dialog
+ *
+ * @generated
+ */
+ protected IDirectEditorConfiguration configuration;
+
+ /**
+ * @generated
+ */
+ public IntervalConstraintNameEditPartCN(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
+ installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new CompositeStructureDiagramEditPart.NodeLabelDragPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelTextHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getText();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getText();
+ } else {
+ return ((Label)figure).getText();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelTextHelper(IFigure figure, String text) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setText(text);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setText(text);
+ } else {
+ ((Label)figure).setText(text);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIconHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getIcon();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getIcon();
+ } else {
+ return ((Label)figure).getIcon();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelIconHelper(IFigure figure, Image icon) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setIcon(icon);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setIcon(icon);
+ } else {
+ ((Label)figure).setIcon(icon);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabel(WrappingLabel figure) {
+ unregisterVisuals();
+ setFigure(figure);
+ defaultText = getLabelTextHelper(figure);
+ registerVisuals();
+ refreshVisuals();
+ }
+
+ /**
+ * @generated
+ */
+ protected List getModelChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject getParserElement() {
+ return resolveSemanticElement();
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIcon() {
+ EObject parserElement = getParserElement();
+ if(parserElement == null) {
+ return null;
+ }
+
+ List<View> views = DiagramEditPartsUtil.findViews(parserElement, getViewer());
+ for(View view : views) {
+ if(NameLabelIconHelper.showLabelIcon(view)) {
+ return UMLElementTypes.getImage(parserElement.eClass());
+ }
+ }
+ return null;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelText() {
+ String text = null;
+ EObject parserElement = getParserElement();
+ if(parserElement != null && getParser() != null) {
+ text = getParser().getPrintString(new EObjectAdapter(parserElement), getParserOptions().intValue());
+ }
+ if(text == null || text.length() == 0) {
+ text = defaultText;
+ }
+ return text;
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabelText(String text) {
+ setLabelTextHelper(getFigure(), text);
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public String getEditText() {
+ if(getParserElement() == null || getParser() == null) {
+ return ""; //$NON-NLS-1$
+ }
+ return getParser().getEditString(new EObjectAdapter(getParserElement()), getParserOptions().intValue());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean isEditable() {
+ return getParser() != null;
+ }
+
+ /**
+ * @generated
+ */
+ public ICellEditorValidator getEditTextValidator() {
+ return new ICellEditorValidator() {
+
+ public String isValid(final Object value) {
+ if(value instanceof String) {
+ final EObject element = getParserElement();
+ final IParser parser = getParser();
+ try {
+ IParserEditStatus valid = (IParserEditStatus)getEditingDomain().runExclusive(new RunnableWithResult.Impl() {
+
+ public void run() {
+ setResult(parser.isValidEditString(new EObjectAdapter(element), (String)value));
+ }
+ });
+ return valid.getCode() == ParserEditStatus.EDITABLE ? null : valid.getMessage();
+ } catch (InterruptedException ie) {
+ ie.printStackTrace();
+ }
+ }
+
+ // shouldn't get here
+ return null;
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ public IContentAssistProcessor getCompletionProcessor() {
+ if(getParserElement() == null || getParser() == null) {
+ return null;
+ }
+ return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
+ }
+
+ /**
+ * @generated
+ */
+ public ParserOptions getParserOptions() {
+ return ParserOptions.NONE;
+ }
+
+ /**
+ * @generated
+ */
+ public IParser getParser() {
+ if(parser == null) {
+ parser = UMLParserProvider.getParser(UMLElementTypes.IntervalConstraint_3118, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.diagram.composite.edit.parts.IntervalConstraintNameEditPartCN.VISUAL_ID));
+ }
+ return parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected DirectEditManager getManager() {
+ if(manager == null) {
+ setManager(new MultilineLabelDirectEditManager(this, MultilineLabelDirectEditManager.getTextCellEditorClass(this), UMLEditPartFactory.getTextCellEditorLocator(this)));
+ }
+ return manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setManager(DirectEditManager manager) {
+ this.manager = manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit() {
+ getManager().show();
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit(Point eventLocation) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(eventLocation.getSWTPoint());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void performDirectEdit(char initialCharacter) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(initialCharacter);
+ } else {
+ performDirectEdit();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEditRequest(Request request) {
+
+ final Request theRequest = request;
+
+ if(IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
+ directEditionMode = getDirectEditionType();
+ }
+ switch(directEditionMode) {
+ case IDirectEdition.NO_DIRECT_EDITION:
+ // no direct edition mode => does nothing
+ return;
+ case IDirectEdition.EXTENDED_DIRECT_EDITOR:
+ updateExtendedEditorConfiguration();
+ if(configuration == null || configuration.getLanguage() == null) {
+ performDefaultDirectEditorEdit(theRequest);
+ } else {
+ configuration.preEditAction(resolveSemanticElement());
+ Dialog dialog = null;
+ if(configuration instanceof IPopupEditorConfiguration) {
+ IPopupEditorHelper helper = ((IPopupEditorConfiguration)configuration).createPopupEditorHelper(this);
+ helper.showEditor();
+ return;
+ } else if(configuration instanceof IAdvancedEditorConfiguration) {
+ dialog = ((IAdvancedEditorConfiguration)configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
+ } else if(configuration instanceof IDirectEditorConfiguration) {
+ dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), ((IDirectEditorConfiguration)configuration).getTextToEdit(resolveSemanticElement()), (IDirectEditorConfiguration)configuration);
+ } else {
+ return;
+ }
+ final Dialog finalDialog = dialog;
+
+ if(Window.OK == dialog.open()) {
+ TransactionalEditingDomain domain = getEditingDomain();
+ RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
+
+ @Override
+ protected void doExecute() {
+ configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog)finalDialog).getValue());
+
+ }
+ };
+ domain.getCommandStack().execute(command);
+ }
+ }
+ break;
+ case IDirectEdition.DEFAULT_DIRECT_EDITOR:
+
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ break;
+ default:
+ break;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshLabel();
+ refreshFont();
+ refreshFontColor();
+ refreshUnderline();
+ refreshStrikeThrough();
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshLabel() {
+ EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
+ if(maskLabelPolicy == null) {
+ setLabelTextHelper(getFigure(), getLabelText());
+ setLabelIconHelper(getFigure(), getLabelIcon());
+ }
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshUnderline() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextUnderline(style.isUnderline());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshStrikeThrough() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextStrikeThrough(style.isStrikeThrough());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshFont() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null) {
+ FontData fontData = new FontData(style.getFontName(), style.getFontHeight(), (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
+ setFont(fontData);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setFontColor(Color color) {
+ getFigure().setForegroundColor(color);
+ }
+
+ /**
+ * @generated
+ */
+ protected void addSemanticListeners() {
+ if(getParser() instanceof ISemanticParser) {
+ EObject element = resolveSemanticElement();
+ parserElements = ((ISemanticParser)getParser()).getSemanticElementsBeingParsed(element);
+ for(int i = 0; i < parserElements.size(); i++) {
+ addListenerFilter("SemanticModel" + i, this, (EObject)parserElements.get(i)); //$NON-NLS-1$
+ }
+ } else {
+ super.addSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeSemanticListeners() {
+ if(parserElements != null) {
+ for(int i = 0; i < parserElements.size(); i++) {
+ removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
+ }
+ } else {
+ super.removeSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected AccessibleEditPart getAccessibleEditPart() {
+ if(accessibleEP == null) {
+ accessibleEP = new AccessibleGraphicalEditPart() {
+
+ public void getName(AccessibleEvent e) {
+ e.result = getLabelTextHelper(getFigure());
+ }
+ };
+ }
+ return accessibleEP;
+ }
+
+ /**
+ * @generated
+ */
+ private View getFontStyleOwnerView() {
+ return (View)getModel();
+ }
+
+ /**
+ * Returns the kind of associated editor for direct edition.
+ *
+ * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition
+ * @generated
+ */
+ public int getDirectEditionType() {
+ if(checkExtendedEditor()) {
+ initExtendedEditorConfiguration();
+ return IDirectEdition.EXTENDED_DIRECT_EDITOR;
+ }
+ if(checkDefaultEdition()) {
+ return IDirectEdition.DEFAULT_DIRECT_EDITOR;
+ }
+
+ // not a named element. no specific editor => do nothing
+ return IDirectEdition.NO_DIRECT_EDITION;
+ }
+
+ /**
+ * Checks if an extended editor is present.
+ *
+ * @return <code>true</code> if an extended editor is present.
+ * @generated
+ */
+ protected boolean checkExtendedEditor() {
+ if(resolveSemanticElement() != null) {
+ return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ return false;
+ }
+
+ /**
+ * Checks if a default direct edition is available
+ *
+ * @return <code>true</code> if a default direct edition is available
+ * @generated
+ */
+ protected boolean checkDefaultEdition() {
+ return (getParser() != null);
+ }
+
+ /**
+ * Initializes the extended editor configuration
+ *
+ * @generated
+ */
+ protected void initExtendedEditorConfiguration() {
+ if(configuration == null) {
+ final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("")) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else {
+ configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ }
+ }
+
+ /**
+ * Updates the preference configuration
+ *
+ * @generated
+ */
+ protected void updateExtendedEditorConfiguration() {
+ String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("") && languagePreferred != configuration.getLanguage()) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else if(IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
+ configuration = null;
+ }
+ }
+
+ /**
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
+ protected void performDefaultDirectEditorEdit(final Request theRequest) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void addNotationalListeners() {
+ super.addNotationalListeners();
+ addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeNotationalListeners() {
+ super.removeNotationalListeners();
+ removeListenerFilter("PrimaryView"); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void handleNotificationEvent(Notification event) {
+ refreshLabel();
+ Object feature = event.getFeature();
+ if(NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
+ Integer c = (Integer)event.getNewValue();
+ setFontColor(DiagramColorRegistry.getInstance().getColor(c));
+ } else if(NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
+ refreshUnderline();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
+ refreshStrikeThrough();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
+ refreshFont();
+ } else {
+ if(getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
+ refreshLabel();
+ }
+ if(getParser() instanceof ISemanticParser) {
+ ISemanticParser modelParser = (ISemanticParser)getParser();
+ if(modelParser.areSemanticElementsAffected(null, event)) {
+ removeSemanticListeners();
+ if(resolveSemanticElement() != null) {
+ addSemanticListeners();
+ }
+ refreshLabel();
+ }
+ }
+ }
+
+ if(event.getNewValue() instanceof EAnnotation && VisualInformationPapyrusConstant.DISPLAY_NAMELABELICON.equals(((EAnnotation)event.getNewValue()).getSource())) {
+ refreshLabel();
+ }
+
+ super.handleNotificationEvent(event);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createFigure() {
+ // Parent should assign one using setLabel() method
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ private static final String ADD_PARENT_MODEL = "AddParentModel";
+
+ /**
+ * @generated
+ */
+ public void activate() {
+ super.activate();
+ addOwnerElementListeners();
+ }
+
+ /**
+ * @generated
+ */
+ protected void addOwnerElementListeners() {
+ addListenerFilter(ADD_PARENT_MODEL, this, ((View)getParent().getModel())); //$NON-NLS-1$
+
+ }
+
+ /**
+ * @generated
+ */
+ public void deactivate() {
+ removeOwnerElementListeners();
+ super.deactivate();
+
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeOwnerElementListeners() {
+ removeListenerFilter(ADD_PARENT_MODEL);
+
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/IntervalConstraintSpecificationEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/IntervalConstraintSpecificationEditPart.java
new file mode 100644
index 00000000000..83787859eee
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/IntervalConstraintSpecificationEditPart.java
@@ -0,0 +1,772 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.emf.transaction.RunnableWithResult;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.AccessibleEditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.requests.DirectEditRequest;
+import org.eclipse.gef.tools.DirectEditManager;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.CompartmentEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
+import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
+import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
+import org.eclipse.gmf.runtime.notation.FontStyle;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
+import org.eclipse.jface.viewers.ICellEditorValidator;
+import org.eclipse.jface.window.Window;
+import org.eclipse.papyrus.diagram.common.directedit.MultilineLabelDirectEditManager;
+import org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition;
+import org.eclipse.papyrus.diagram.common.editpolicies.IMaskManagedLabelEditPolicy;
+import org.eclipse.papyrus.diagram.common.figure.node.ConstraintFigure;
+import org.eclipse.papyrus.diagram.common.figure.node.ILabelFigure;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLTextSelectionEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.diagram.composite.providers.UMLParserProvider;
+import org.eclipse.papyrus.extensionpoints.editors.Activator;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
+import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
+import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.AccessibleEvent;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.FontData;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.ui.PlatformUI;
+
+/**
+ * @generated
+ */
+public class IntervalConstraintSpecificationEditPart extends CompartmentEditPart implements ITextAwareEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 6037;
+
+ /**
+ * @generated
+ */
+ private DirectEditManager manager;
+
+ /**
+ * @generated
+ */
+ private IParser parser;
+
+ /**
+ * @generated
+ */
+ private List<?> parserElements;
+
+ /**
+ * @generated
+ */
+ private String defaultText;
+
+ /**
+ * direct edition mode (default, undefined, registered editor, etc.)
+ *
+ * @generated
+ */
+ protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
+
+ /**
+ * configuration from a registered edit dialog
+ *
+ * @generated
+ */
+ protected IDirectEditorConfiguration configuration;
+
+ /**
+ * @generated
+ */
+ public IntervalConstraintSpecificationEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
+ installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new CompositeStructureDiagramEditPart.NodeLabelDragPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelTextHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getText();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getText();
+ } else {
+ return ((Label)figure).getText();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelTextHelper(IFigure figure, String text) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setText(text);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setText(text);
+ } else {
+ ((Label)figure).setText(text);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIconHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getIcon();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getIcon();
+ } else {
+ return ((Label)figure).getIcon();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelIconHelper(IFigure figure, Image icon) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setIcon(icon);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setIcon(icon);
+ } else {
+ ((Label)figure).setIcon(icon);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabel(ConstraintFigure figure) {
+ unregisterVisuals();
+ setFigure(figure);
+ defaultText = getLabelTextHelper(figure);
+ registerVisuals();
+ refreshVisuals();
+ }
+
+ /**
+ * @generated
+ */
+ protected List getModelChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject getParserElement() {
+ return resolveSemanticElement();
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIcon() {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelText() {
+ String text = null;
+ EObject parserElement = getParserElement();
+ if(parserElement != null && getParser() != null) {
+ text = getParser().getPrintString(new EObjectAdapter(parserElement), getParserOptions().intValue());
+ }
+ if(text == null || text.length() == 0) {
+ text = defaultText;
+ }
+ return text;
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabelText(String text) {
+ setLabelTextHelper(getFigure(), text);
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public String getEditText() {
+ if(getParserElement() == null || getParser() == null) {
+ return ""; //$NON-NLS-1$
+ }
+ return getParser().getEditString(new EObjectAdapter(getParserElement()), getParserOptions().intValue());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean isEditable() {
+ return getParser() != null;
+ }
+
+ /**
+ * @generated
+ */
+ public ICellEditorValidator getEditTextValidator() {
+ return new ICellEditorValidator() {
+
+ public String isValid(final Object value) {
+ if(value instanceof String) {
+ final EObject element = getParserElement();
+ final IParser parser = getParser();
+ try {
+ IParserEditStatus valid = (IParserEditStatus)getEditingDomain().runExclusive(new RunnableWithResult.Impl() {
+
+ public void run() {
+ setResult(parser.isValidEditString(new EObjectAdapter(element), (String)value));
+ }
+ });
+ return valid.getCode() == ParserEditStatus.EDITABLE ? null : valid.getMessage();
+ } catch (InterruptedException ie) {
+ ie.printStackTrace();
+ }
+ }
+
+ // shouldn't get here
+ return null;
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ public IContentAssistProcessor getCompletionProcessor() {
+ if(getParserElement() == null || getParser() == null) {
+ return null;
+ }
+ return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
+ }
+
+ /**
+ * @generated
+ */
+ public ParserOptions getParserOptions() {
+ return ParserOptions.NONE;
+ }
+
+ /**
+ * @generated
+ */
+ public IParser getParser() {
+ if(parser == null) {
+ parser = UMLParserProvider.getParser(UMLElementTypes.IntervalConstraint_2112, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.diagram.composite.edit.parts.IntervalConstraintSpecificationEditPart.VISUAL_ID));
+ }
+ return parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected DirectEditManager getManager() {
+ if(manager == null) {
+ setManager(new MultilineLabelDirectEditManager(this, MultilineLabelDirectEditManager.getTextCellEditorClass(this), UMLEditPartFactory.getTextCellEditorLocator(this)));
+ }
+ return manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setManager(DirectEditManager manager) {
+ this.manager = manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit() {
+ getManager().show();
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit(Point eventLocation) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(eventLocation.getSWTPoint());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void performDirectEdit(char initialCharacter) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(initialCharacter);
+ } else {
+ performDirectEdit();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEditRequest(Request request) {
+
+ final Request theRequest = request;
+
+ if(IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
+ directEditionMode = getDirectEditionType();
+ }
+ switch(directEditionMode) {
+ case IDirectEdition.NO_DIRECT_EDITION:
+ // no direct edition mode => does nothing
+ return;
+ case IDirectEdition.EXTENDED_DIRECT_EDITOR:
+ updateExtendedEditorConfiguration();
+ if(configuration == null || configuration.getLanguage() == null) {
+ performDefaultDirectEditorEdit(theRequest);
+ } else {
+ configuration.preEditAction(resolveSemanticElement());
+ Dialog dialog = null;
+ if(configuration instanceof IPopupEditorConfiguration) {
+ IPopupEditorHelper helper = ((IPopupEditorConfiguration)configuration).createPopupEditorHelper(this);
+ helper.showEditor();
+ return;
+ } else if(configuration instanceof IAdvancedEditorConfiguration) {
+ dialog = ((IAdvancedEditorConfiguration)configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
+ } else if(configuration instanceof IDirectEditorConfiguration) {
+ dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), ((IDirectEditorConfiguration)configuration).getTextToEdit(resolveSemanticElement()), (IDirectEditorConfiguration)configuration);
+ } else {
+ return;
+ }
+ final Dialog finalDialog = dialog;
+
+ if(Window.OK == dialog.open()) {
+ TransactionalEditingDomain domain = getEditingDomain();
+ RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
+
+ @Override
+ protected void doExecute() {
+ configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog)finalDialog).getValue());
+
+ }
+ };
+ domain.getCommandStack().execute(command);
+ }
+ }
+ break;
+ case IDirectEdition.DEFAULT_DIRECT_EDITOR:
+
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ break;
+ default:
+ break;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshLabel();
+ refreshFont();
+ refreshFontColor();
+ refreshUnderline();
+ refreshStrikeThrough();
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshLabel() {
+ EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
+ if(maskLabelPolicy == null) {
+ setLabelTextHelper(getFigure(), getLabelText());
+ setLabelIconHelper(getFigure(), getLabelIcon());
+ }
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshUnderline() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextUnderline(style.isUnderline());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshStrikeThrough() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextStrikeThrough(style.isStrikeThrough());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshFont() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null) {
+ FontData fontData = new FontData(style.getFontName(), style.getFontHeight(), (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
+ setFont(fontData);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setFontColor(Color color) {
+ getFigure().setForegroundColor(color);
+ }
+
+ /**
+ * @generated
+ */
+ protected void addSemanticListeners() {
+ if(getParser() instanceof ISemanticParser) {
+ EObject element = resolveSemanticElement();
+ parserElements = ((ISemanticParser)getParser()).getSemanticElementsBeingParsed(element);
+ for(int i = 0; i < parserElements.size(); i++) {
+ addListenerFilter("SemanticModel" + i, this, (EObject)parserElements.get(i)); //$NON-NLS-1$
+ }
+ } else {
+ super.addSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeSemanticListeners() {
+ if(parserElements != null) {
+ for(int i = 0; i < parserElements.size(); i++) {
+ removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
+ }
+ } else {
+ super.removeSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected AccessibleEditPart getAccessibleEditPart() {
+ if(accessibleEP == null) {
+ accessibleEP = new AccessibleGraphicalEditPart() {
+
+ public void getName(AccessibleEvent e) {
+ e.result = getLabelTextHelper(getFigure());
+ }
+ };
+ }
+ return accessibleEP;
+ }
+
+ /**
+ * @generated
+ */
+ private View getFontStyleOwnerView() {
+ return getPrimaryView();
+ }
+
+ /**
+ * Returns the kind of associated editor for direct edition.
+ *
+ * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition
+ * @generated
+ */
+ public int getDirectEditionType() {
+ if(checkExtendedEditor()) {
+ initExtendedEditorConfiguration();
+ return IDirectEdition.EXTENDED_DIRECT_EDITOR;
+ }
+ if(checkDefaultEdition()) {
+ return IDirectEdition.DEFAULT_DIRECT_EDITOR;
+ }
+
+ // not a named element. no specific editor => do nothing
+ return IDirectEdition.NO_DIRECT_EDITION;
+ }
+
+ /**
+ * Checks if an extended editor is present.
+ *
+ * @return <code>true</code> if an extended editor is present.
+ * @generated
+ */
+ protected boolean checkExtendedEditor() {
+ if(resolveSemanticElement() != null) {
+ return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ return false;
+ }
+
+ /**
+ * Checks if a default direct edition is available
+ *
+ * @return <code>true</code> if a default direct edition is available
+ * @generated
+ */
+ protected boolean checkDefaultEdition() {
+ return (getParser() != null);
+ }
+
+ /**
+ * Initializes the extended editor configuration
+ *
+ * @generated
+ */
+ protected void initExtendedEditorConfiguration() {
+ if(configuration == null) {
+ final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("")) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else {
+ configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ }
+ }
+
+ /**
+ * Updates the preference configuration
+ *
+ * @generated
+ */
+ protected void updateExtendedEditorConfiguration() {
+ String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("") && languagePreferred != configuration.getLanguage()) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else if(IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
+ configuration = null;
+ }
+ }
+
+ /**
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
+ protected void performDefaultDirectEditorEdit(final Request theRequest) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void addNotationalListeners() {
+ super.addNotationalListeners();
+ addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeNotationalListeners() {
+ super.removeNotationalListeners();
+ removeListenerFilter("PrimaryView"); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void handleNotificationEvent(Notification event) {
+ refreshLabel();
+ Object feature = event.getFeature();
+ if(NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
+ Integer c = (Integer)event.getNewValue();
+ setFontColor(DiagramColorRegistry.getInstance().getColor(c));
+ } else if(NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
+ refreshUnderline();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
+ refreshStrikeThrough();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
+ refreshFont();
+ } else {
+ if(getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
+ refreshLabel();
+ }
+ if(getParser() instanceof ISemanticParser) {
+ ISemanticParser modelParser = (ISemanticParser)getParser();
+ if(modelParser.areSemanticElementsAffected(null, event)) {
+ removeSemanticListeners();
+ if(resolveSemanticElement() != null) {
+ addSemanticListeners();
+ }
+ refreshLabel();
+ }
+ }
+ }
+
+ super.handleNotificationEvent(event);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createFigure() {
+ // Parent should assign one using setLabel() method
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ private static final String ADD_PARENT_MODEL = "AddParentModel";
+
+ /**
+ * @generated
+ */
+ public void activate() {
+ super.activate();
+ addOwnerElementListeners();
+ }
+
+ /**
+ * @generated
+ */
+ protected void addOwnerElementListeners() {
+ addListenerFilter(ADD_PARENT_MODEL, this, ((View)getParent().getModel())); //$NON-NLS-1$
+
+ }
+
+ /**
+ * @generated
+ */
+ public void deactivate() {
+ removeOwnerElementListeners();
+ super.deactivate();
+
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeOwnerElementListeners() {
+ removeListenerFilter(ADD_PARENT_MODEL);
+
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/IntervalConstraintSpecificationEditPartCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/IntervalConstraintSpecificationEditPartCN.java
new file mode 100644
index 00000000000..25aa1308a84
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/IntervalConstraintSpecificationEditPartCN.java
@@ -0,0 +1,772 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.emf.transaction.RunnableWithResult;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.AccessibleEditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.requests.DirectEditRequest;
+import org.eclipse.gef.tools.DirectEditManager;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.CompartmentEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
+import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
+import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
+import org.eclipse.gmf.runtime.notation.FontStyle;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
+import org.eclipse.jface.viewers.ICellEditorValidator;
+import org.eclipse.jface.window.Window;
+import org.eclipse.papyrus.diagram.common.directedit.MultilineLabelDirectEditManager;
+import org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition;
+import org.eclipse.papyrus.diagram.common.editpolicies.IMaskManagedLabelEditPolicy;
+import org.eclipse.papyrus.diagram.common.figure.node.ConstraintFigure;
+import org.eclipse.papyrus.diagram.common.figure.node.ILabelFigure;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLTextSelectionEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.diagram.composite.providers.UMLParserProvider;
+import org.eclipse.papyrus.extensionpoints.editors.Activator;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
+import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
+import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.AccessibleEvent;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.FontData;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.ui.PlatformUI;
+
+/**
+ * @generated
+ */
+public class IntervalConstraintSpecificationEditPartCN extends CompartmentEditPart implements ITextAwareEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 6045;
+
+ /**
+ * @generated
+ */
+ private DirectEditManager manager;
+
+ /**
+ * @generated
+ */
+ private IParser parser;
+
+ /**
+ * @generated
+ */
+ private List<?> parserElements;
+
+ /**
+ * @generated
+ */
+ private String defaultText;
+
+ /**
+ * direct edition mode (default, undefined, registered editor, etc.)
+ *
+ * @generated
+ */
+ protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
+
+ /**
+ * configuration from a registered edit dialog
+ *
+ * @generated
+ */
+ protected IDirectEditorConfiguration configuration;
+
+ /**
+ * @generated
+ */
+ public IntervalConstraintSpecificationEditPartCN(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
+ installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new CompositeStructureDiagramEditPart.NodeLabelDragPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelTextHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getText();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getText();
+ } else {
+ return ((Label)figure).getText();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelTextHelper(IFigure figure, String text) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setText(text);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setText(text);
+ } else {
+ ((Label)figure).setText(text);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIconHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getIcon();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getIcon();
+ } else {
+ return ((Label)figure).getIcon();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelIconHelper(IFigure figure, Image icon) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setIcon(icon);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setIcon(icon);
+ } else {
+ ((Label)figure).setIcon(icon);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabel(ConstraintFigure figure) {
+ unregisterVisuals();
+ setFigure(figure);
+ defaultText = getLabelTextHelper(figure);
+ registerVisuals();
+ refreshVisuals();
+ }
+
+ /**
+ * @generated
+ */
+ protected List getModelChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject getParserElement() {
+ return resolveSemanticElement();
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIcon() {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelText() {
+ String text = null;
+ EObject parserElement = getParserElement();
+ if(parserElement != null && getParser() != null) {
+ text = getParser().getPrintString(new EObjectAdapter(parserElement), getParserOptions().intValue());
+ }
+ if(text == null || text.length() == 0) {
+ text = defaultText;
+ }
+ return text;
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabelText(String text) {
+ setLabelTextHelper(getFigure(), text);
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public String getEditText() {
+ if(getParserElement() == null || getParser() == null) {
+ return ""; //$NON-NLS-1$
+ }
+ return getParser().getEditString(new EObjectAdapter(getParserElement()), getParserOptions().intValue());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean isEditable() {
+ return getParser() != null;
+ }
+
+ /**
+ * @generated
+ */
+ public ICellEditorValidator getEditTextValidator() {
+ return new ICellEditorValidator() {
+
+ public String isValid(final Object value) {
+ if(value instanceof String) {
+ final EObject element = getParserElement();
+ final IParser parser = getParser();
+ try {
+ IParserEditStatus valid = (IParserEditStatus)getEditingDomain().runExclusive(new RunnableWithResult.Impl() {
+
+ public void run() {
+ setResult(parser.isValidEditString(new EObjectAdapter(element), (String)value));
+ }
+ });
+ return valid.getCode() == ParserEditStatus.EDITABLE ? null : valid.getMessage();
+ } catch (InterruptedException ie) {
+ ie.printStackTrace();
+ }
+ }
+
+ // shouldn't get here
+ return null;
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ public IContentAssistProcessor getCompletionProcessor() {
+ if(getParserElement() == null || getParser() == null) {
+ return null;
+ }
+ return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
+ }
+
+ /**
+ * @generated
+ */
+ public ParserOptions getParserOptions() {
+ return ParserOptions.NONE;
+ }
+
+ /**
+ * @generated
+ */
+ public IParser getParser() {
+ if(parser == null) {
+ parser = UMLParserProvider.getParser(UMLElementTypes.IntervalConstraint_3118, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.diagram.composite.edit.parts.IntervalConstraintSpecificationEditPartCN.VISUAL_ID));
+ }
+ return parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected DirectEditManager getManager() {
+ if(manager == null) {
+ setManager(new MultilineLabelDirectEditManager(this, MultilineLabelDirectEditManager.getTextCellEditorClass(this), UMLEditPartFactory.getTextCellEditorLocator(this)));
+ }
+ return manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setManager(DirectEditManager manager) {
+ this.manager = manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit() {
+ getManager().show();
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit(Point eventLocation) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(eventLocation.getSWTPoint());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void performDirectEdit(char initialCharacter) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(initialCharacter);
+ } else {
+ performDirectEdit();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEditRequest(Request request) {
+
+ final Request theRequest = request;
+
+ if(IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
+ directEditionMode = getDirectEditionType();
+ }
+ switch(directEditionMode) {
+ case IDirectEdition.NO_DIRECT_EDITION:
+ // no direct edition mode => does nothing
+ return;
+ case IDirectEdition.EXTENDED_DIRECT_EDITOR:
+ updateExtendedEditorConfiguration();
+ if(configuration == null || configuration.getLanguage() == null) {
+ performDefaultDirectEditorEdit(theRequest);
+ } else {
+ configuration.preEditAction(resolveSemanticElement());
+ Dialog dialog = null;
+ if(configuration instanceof IPopupEditorConfiguration) {
+ IPopupEditorHelper helper = ((IPopupEditorConfiguration)configuration).createPopupEditorHelper(this);
+ helper.showEditor();
+ return;
+ } else if(configuration instanceof IAdvancedEditorConfiguration) {
+ dialog = ((IAdvancedEditorConfiguration)configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
+ } else if(configuration instanceof IDirectEditorConfiguration) {
+ dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), ((IDirectEditorConfiguration)configuration).getTextToEdit(resolveSemanticElement()), (IDirectEditorConfiguration)configuration);
+ } else {
+ return;
+ }
+ final Dialog finalDialog = dialog;
+
+ if(Window.OK == dialog.open()) {
+ TransactionalEditingDomain domain = getEditingDomain();
+ RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
+
+ @Override
+ protected void doExecute() {
+ configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog)finalDialog).getValue());
+
+ }
+ };
+ domain.getCommandStack().execute(command);
+ }
+ }
+ break;
+ case IDirectEdition.DEFAULT_DIRECT_EDITOR:
+
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ break;
+ default:
+ break;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshLabel();
+ refreshFont();
+ refreshFontColor();
+ refreshUnderline();
+ refreshStrikeThrough();
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshLabel() {
+ EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
+ if(maskLabelPolicy == null) {
+ setLabelTextHelper(getFigure(), getLabelText());
+ setLabelIconHelper(getFigure(), getLabelIcon());
+ }
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshUnderline() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextUnderline(style.isUnderline());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshStrikeThrough() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextStrikeThrough(style.isStrikeThrough());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshFont() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null) {
+ FontData fontData = new FontData(style.getFontName(), style.getFontHeight(), (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
+ setFont(fontData);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setFontColor(Color color) {
+ getFigure().setForegroundColor(color);
+ }
+
+ /**
+ * @generated
+ */
+ protected void addSemanticListeners() {
+ if(getParser() instanceof ISemanticParser) {
+ EObject element = resolveSemanticElement();
+ parserElements = ((ISemanticParser)getParser()).getSemanticElementsBeingParsed(element);
+ for(int i = 0; i < parserElements.size(); i++) {
+ addListenerFilter("SemanticModel" + i, this, (EObject)parserElements.get(i)); //$NON-NLS-1$
+ }
+ } else {
+ super.addSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeSemanticListeners() {
+ if(parserElements != null) {
+ for(int i = 0; i < parserElements.size(); i++) {
+ removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
+ }
+ } else {
+ super.removeSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected AccessibleEditPart getAccessibleEditPart() {
+ if(accessibleEP == null) {
+ accessibleEP = new AccessibleGraphicalEditPart() {
+
+ public void getName(AccessibleEvent e) {
+ e.result = getLabelTextHelper(getFigure());
+ }
+ };
+ }
+ return accessibleEP;
+ }
+
+ /**
+ * @generated
+ */
+ private View getFontStyleOwnerView() {
+ return getPrimaryView();
+ }
+
+ /**
+ * Returns the kind of associated editor for direct edition.
+ *
+ * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition
+ * @generated
+ */
+ public int getDirectEditionType() {
+ if(checkExtendedEditor()) {
+ initExtendedEditorConfiguration();
+ return IDirectEdition.EXTENDED_DIRECT_EDITOR;
+ }
+ if(checkDefaultEdition()) {
+ return IDirectEdition.DEFAULT_DIRECT_EDITOR;
+ }
+
+ // not a named element. no specific editor => do nothing
+ return IDirectEdition.NO_DIRECT_EDITION;
+ }
+
+ /**
+ * Checks if an extended editor is present.
+ *
+ * @return <code>true</code> if an extended editor is present.
+ * @generated
+ */
+ protected boolean checkExtendedEditor() {
+ if(resolveSemanticElement() != null) {
+ return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ return false;
+ }
+
+ /**
+ * Checks if a default direct edition is available
+ *
+ * @return <code>true</code> if a default direct edition is available
+ * @generated
+ */
+ protected boolean checkDefaultEdition() {
+ return (getParser() != null);
+ }
+
+ /**
+ * Initializes the extended editor configuration
+ *
+ * @generated
+ */
+ protected void initExtendedEditorConfiguration() {
+ if(configuration == null) {
+ final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("")) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else {
+ configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ }
+ }
+
+ /**
+ * Updates the preference configuration
+ *
+ * @generated
+ */
+ protected void updateExtendedEditorConfiguration() {
+ String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("") && languagePreferred != configuration.getLanguage()) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else if(IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
+ configuration = null;
+ }
+ }
+
+ /**
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
+ protected void performDefaultDirectEditorEdit(final Request theRequest) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void addNotationalListeners() {
+ super.addNotationalListeners();
+ addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeNotationalListeners() {
+ super.removeNotationalListeners();
+ removeListenerFilter("PrimaryView"); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void handleNotificationEvent(Notification event) {
+ refreshLabel();
+ Object feature = event.getFeature();
+ if(NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
+ Integer c = (Integer)event.getNewValue();
+ setFontColor(DiagramColorRegistry.getInstance().getColor(c));
+ } else if(NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
+ refreshUnderline();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
+ refreshStrikeThrough();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
+ refreshFont();
+ } else {
+ if(getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
+ refreshLabel();
+ }
+ if(getParser() instanceof ISemanticParser) {
+ ISemanticParser modelParser = (ISemanticParser)getParser();
+ if(modelParser.areSemanticElementsAffected(null, event)) {
+ removeSemanticListeners();
+ if(resolveSemanticElement() != null) {
+ addSemanticListeners();
+ }
+ refreshLabel();
+ }
+ }
+ }
+
+ super.handleNotificationEvent(event);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createFigure() {
+ // Parent should assign one using setLabel() method
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ private static final String ADD_PARENT_MODEL = "AddParentModel";
+
+ /**
+ * @generated
+ */
+ public void activate() {
+ super.activate();
+ addOwnerElementListeners();
+ }
+
+ /**
+ * @generated
+ */
+ protected void addOwnerElementListeners() {
+ addListenerFilter(ADD_PARENT_MODEL, this, ((View)getParent().getModel())); //$NON-NLS-1$
+
+ }
+
+ /**
+ * @generated
+ */
+ public void deactivate() {
+ removeOwnerElementListeners();
+ super.deactivate();
+
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeOwnerElementListeners() {
+ removeListenerFilter(ADD_PARENT_MODEL);
+
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/IntervalEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/IntervalEditPart.java
new file mode 100644
index 00000000000..f3bd1ea9ca9
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/IntervalEditPart.java
@@ -0,0 +1,5167 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.ArrayList;
+import java.util.LinkedList;
+import java.util.List;
+
+import org.eclipse.draw2d.ColorConstants;
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.RectangleFigure;
+import org.eclipse.draw2d.Shape;
+import org.eclipse.draw2d.StackLayout;
+import org.eclipse.emf.ecore.EStructuralFeature;
+import org.eclipse.gef.EditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.editpolicies.LayoutEditPolicy;
+import org.eclipse.gef.editpolicies.NonResizableEditPolicy;
+import org.eclipse.gef.requests.CreateRequest;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ShapeNodeEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.FigureUtilities;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.gef.ui.figures.DefaultSizeNodeFigure;
+import org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.jface.preference.PreferenceConverter;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.HyperLinkPopupBarEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.QualifiedNameDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.helper.PreferenceInitializerForElementHelper;
+import org.eclipse.papyrus.diagram.composite.edit.policies.IntervalItemSemanticEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorPlugin;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter;
+import org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.Font;
+import org.eclipse.swt.widgets.Display;
+
+/**
+ * @generated
+ */
+public class IntervalEditPart extends
+
+ShapeNodeEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 2107;
+
+ /**
+ * @generated
+ */
+ protected IFigure contentPane;
+
+ /**
+ * @generated
+ */
+ protected IFigure primaryShape;
+
+ /**
+ * @generated
+ */
+ public IntervalEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new IntervalItemSemanticEditPolicy());
+ installEditPolicy(EditPolicy.LAYOUT_ROLE, createLayoutEditPolicy());
+ installEditPolicy(QualifiedNameDisplayEditPolicy.QUALIFIED_NAME_POLICY, new QualifiedNameDisplayEditPolicy());
+ installEditPolicy(AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeNodeLabelDisplayEditPolicy());
+ installEditPolicy(EditPolicyRoles.POPUPBAR_ROLE, new HyperLinkPopupBarEditPolicy());
+ // XXX need an SCR to runtime to have another abstract superclass that would let children add reasonable editpolicies
+ // removeEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CONNECTION_HANDLES_ROLE);
+ }
+
+ /**
+ * @generated
+ */
+ protected LayoutEditPolicy createLayoutEditPolicy() {
+ org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy lep = new org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy() {
+
+ protected EditPolicy createChildEditPolicy(EditPart child) {
+ EditPolicy result = child.getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(result == null) {
+ result = new NonResizableEditPolicy();
+ }
+ return result;
+ }
+
+ protected Command getMoveChildrenCommand(Request request) {
+ return null;
+ }
+
+ protected Command getCreateCommand(CreateRequest request) {
+ return null;
+ }
+ };
+ return lep;
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createNodeShape() {
+ return primaryShape = new NamedElementDescriptor();
+ }
+
+ /**
+ * @generated
+ */
+ public NamedElementDescriptor getPrimaryShape() {
+ return (NamedElementDescriptor)primaryShape;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean addFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof IntervalNameEditPart) {
+ ((IntervalNameEditPart)childEditPart).setLabel(getPrimaryShape().getNamedElementNameLabel());
+ return true;
+ }
+
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean removeFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof IntervalNameEditPart) {
+ return true;
+ }
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected void addChildVisual(EditPart childEditPart, int index) {
+ if(addFixedChild(childEditPart)) {
+ return;
+ }
+ super.addChildVisual(childEditPart, -1);
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeChildVisual(EditPart childEditPart) {
+ if(removeFixedChild(childEditPart)) {
+ return;
+ }
+ super.removeChildVisual(childEditPart);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure getContentPaneFor(IGraphicalEditPart editPart) {
+ return getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ protected NodeFigure createNodePlate() {
+ String prefElementId = "Interval";
+ IPreferenceStore store = UMLDiagramEditorPlugin.getInstance().getPreferenceStore();
+ String preferenceConstantWitdh = PreferenceInitializerForElementHelper.getpreferenceKey(getNotationView(), prefElementId, PreferenceConstantHelper.WIDTH);
+ String preferenceConstantHeight = PreferenceInitializerForElementHelper.getpreferenceKey(getNotationView(), prefElementId, PreferenceConstantHelper.HEIGHT);
+ DefaultSizeNodeFigure result = new DefaultSizeNodeFigure(store.getInt(preferenceConstantWitdh), store.getInt(preferenceConstantHeight));
+
+ return result;
+ }
+
+ /**
+ * Creates figure for this edit part.
+ *
+ * Body of this method does not depend on settings in generation model
+ * so you may safely remove <i>generated</i> tag and modify it.
+ *
+ * @generated
+ */
+ protected NodeFigure createNodeFigure() {
+ NodeFigure figure = createNodePlate();
+ figure.setLayoutManager(new StackLayout());
+ IFigure shape = createNodeShape();
+ figure.add(shape);
+ contentPane = setupContentPane(shape);
+ return figure;
+ }
+
+ /**
+ * Default implementation treats passed figure as content pane.
+ * Respects layout one may have set for generated figure.
+ *
+ * @param nodeShape
+ * instance of generated figure class
+ * @generated
+ */
+ protected IFigure setupContentPane(IFigure nodeShape) {
+ if(nodeShape.getLayoutManager() == null) {
+ ConstrainedToolbarLayout layout = new ConstrainedToolbarLayout();
+ layout.setSpacing(5);
+ nodeShape.setLayoutManager(layout);
+ }
+ return nodeShape; // use nodeShape itself as contentPane
+ }
+
+ /**
+ * @generated
+ */
+ public IFigure getContentPane() {
+ if(contentPane != null) {
+ return contentPane;
+ }
+ return super.getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ protected void setForegroundColor(Color color) {
+ if(primaryShape != null) {
+ primaryShape.setForegroundColor(color);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLineWidth(int width) {
+ if(primaryShape instanceof Shape) {
+ ((Shape)primaryShape).setLineWidth(width);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLineType(int style) {
+ if(primaryShape instanceof Shape) {
+ ((Shape)primaryShape).setLineStyle(style);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public EditPart getPrimaryChildEditPart() {
+ return getChildBySemanticHint(UMLVisualIDRegistry.getType(IntervalNameEditPart.VISUAL_ID));
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnSource() {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(11);
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ types.add(UMLElementTypes.Substitution_4011);
+ types.add(UMLElementTypes.Realization_4006);
+ types.add(UMLElementTypes.Manifestation_4012);
+ types.add(UMLElementTypes.Abstraction_4007);
+ types.add(UMLElementTypes.Usage_4008);
+ types.add(UMLElementTypes.Deployment_4009);
+ types.add(UMLElementTypes.Dependency_4017);
+ types.add(UMLElementTypes.Dependency_4010);
+ types.add(UMLElementTypes.InformationFlow_4021);
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnSourceAndTarget(IGraphicalEditPart targetEditPart) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.IntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.IntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.IntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.IntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.IntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.IntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.IntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.IntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.IntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.IntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.IntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMATypesForTarget(IElementType relationshipType) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(relationshipType == UMLElementTypes.ComponentRealization_4004) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InterfaceRealization_4005) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Substitution_4011) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Realization_4006) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Manifestation_4012) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Abstraction_4007) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Usage_4008) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Deployment_4009) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4017) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4010) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InformationFlow_4021) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnTarget() {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(15);
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ types.add(UMLElementTypes.Substitution_4011);
+ types.add(UMLElementTypes.Realization_4006);
+ types.add(UMLElementTypes.Manifestation_4012);
+ types.add(UMLElementTypes.Abstraction_4007);
+ types.add(UMLElementTypes.Usage_4008);
+ types.add(UMLElementTypes.Deployment_4009);
+ types.add(UMLElementTypes.Dependency_4017);
+ types.add(UMLElementTypes.Dependency_4010);
+ types.add(UMLElementTypes.TimeObservationEvent_4018);
+ types.add(UMLElementTypes.DurationObservationEvent_4019);
+ types.add(UMLElementTypes.InformationFlow_4021);
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMATypesForSource(IElementType relationshipType) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(relationshipType == UMLElementTypes.CommentAnnotatedElement_4002) {
+ types.add(UMLElementTypes.Comment_2109);
+ types.add(UMLElementTypes.Comment_3097);
+ } else if(relationshipType == UMLElementTypes.ConstraintConstrainedElement_4003) {
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.ComponentRealization_4004) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InterfaceRealization_4005) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Substitution_4011) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Realization_4006) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Manifestation_4012) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Abstraction_4007) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Usage_4008) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Deployment_4009) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4017) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4010) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.TimeObservationEvent_4018) {
+ types.add(UMLElementTypes.TimeObservation_2094);
+ } else if(relationshipType == UMLElementTypes.DurationObservationEvent_4019) {
+ types.add(UMLElementTypes.DurationObservation_2093);
+ } else if(relationshipType == UMLElementTypes.InformationFlow_4021) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public class NamedElementDescriptor extends RectangleFigure {
+
+ /**
+ * @generated
+ */
+ private WrappingLabel fNamedElementNameLabel;
+
+ /**
+ * @generated
+ */
+ public NamedElementDescriptor() {
+ this.setLineWidth(1);
+ this.setForegroundColor(ColorConstants.black);
+ createContents();
+ }
+
+ /**
+ * @generated
+ */
+ private void createContents() {
+
+ fNamedElementNameLabel = new WrappingLabel();
+ fNamedElementNameLabel.setText("");
+ fNamedElementNameLabel.setForegroundColor(ColorConstants.black);
+
+ fNamedElementNameLabel.setFont(FNAMEDELEMENTNAMELABEL_FONT);
+
+ this.add(fNamedElementNameLabel);
+
+ }
+
+ /**
+ * @generated
+ */
+ private boolean myUseLocalCoordinates = false;
+
+ /**
+ * @generated
+ */
+ protected boolean useLocalCoordinates() {
+ return myUseLocalCoordinates;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setUseLocalCoordinates(boolean useLocalCoordinates) {
+ myUseLocalCoordinates = useLocalCoordinates;
+ }
+
+ /**
+ * @generated
+ */
+ public WrappingLabel getNamedElementNameLabel() {
+ return fNamedElementNameLabel;
+ }
+
+ }
+
+ /**
+ * @generated
+ */
+ static final Font FNAMEDELEMENTNAMELABEL_FONT = new Font(Display.getCurrent(), "Arial", 10, SWT.BOLD);
+
+ /**
+ * @generated
+ */
+ @Override
+ public Object getPreferredValue(EStructuralFeature feature) {
+ IPreferenceStore preferenceStore = (IPreferenceStore)getDiagramPreferencesHint().getPreferenceStore();
+ Object result = null;
+
+ if(feature == NotationPackage.eINSTANCE.getLineStyle_LineColor() || feature == NotationPackage.eINSTANCE.getFontStyle_FontColor() || feature == NotationPackage.eINSTANCE.getFillStyle_FillColor()) {
+ String prefColor = null;
+ if(feature == NotationPackage.eINSTANCE.getLineStyle_LineColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("Interval", PreferenceConstantHelper.COLOR_LINE);
+ } else if(feature == NotationPackage.eINSTANCE.getFontStyle_FontColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("Interval", PreferenceConstantHelper.COLOR_FONT);
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_FillColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("Interval", PreferenceConstantHelper.COLOR_FILL);
+ }
+ result = FigureUtilities.RGBToInteger(PreferenceConverter.getColor((IPreferenceStore)preferenceStore, prefColor));
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_Transparency() || feature == NotationPackage.eINSTANCE.getFillStyle_Gradient()) {
+ String prefGradient = PreferenceConstantHelper.getElementConstant("Interval", PreferenceConstantHelper.COLOR_GRADIENT);
+ GradientPreferenceConverter gradientPreferenceConverter = new GradientPreferenceConverter(preferenceStore.getString(prefGradient));
+ if(feature == NotationPackage.eINSTANCE.getFillStyle_Transparency()) {
+ result = new Integer(gradientPreferenceConverter.getTransparency());
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_Gradient()) {
+ result = gradientPreferenceConverter.getGradientData();
+ }
+ }
+
+ if(result == null) {
+ result = getStructuralFeatureValue(feature);
+ }
+ return result;
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/IntervalNameEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/IntervalNameEditPart.java
new file mode 100644
index 00000000000..473a784b8de
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/IntervalNameEditPart.java
@@ -0,0 +1,791 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EAnnotation;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.emf.transaction.RunnableWithResult;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.AccessibleEditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.requests.DirectEditRequest;
+import org.eclipse.gef.tools.DirectEditManager;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.CompartmentEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
+import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
+import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
+import org.eclipse.gmf.runtime.notation.FontStyle;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
+import org.eclipse.jface.viewers.ICellEditorValidator;
+import org.eclipse.jface.window.Window;
+import org.eclipse.papyrus.diagram.common.directedit.MultilineLabelDirectEditManager;
+import org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition;
+import org.eclipse.papyrus.diagram.common.editpolicies.IMaskManagedLabelEditPolicy;
+import org.eclipse.papyrus.diagram.common.figure.node.ILabelFigure;
+import org.eclipse.papyrus.diagram.common.util.DiagramEditPartsUtil;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLTextSelectionEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.diagram.composite.providers.UMLParserProvider;
+import org.eclipse.papyrus.extensionpoints.editors.Activator;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
+import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
+import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
+import org.eclipse.papyrus.umlutils.ui.VisualInformationPapyrusConstant;
+import org.eclipse.papyrus.umlutils.ui.helper.NameLabelIconHelper;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.AccessibleEvent;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.FontData;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.ui.PlatformUI;
+
+/**
+ * @generated
+ */
+public class IntervalNameEditPart extends CompartmentEditPart implements ITextAwareEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 5190;
+
+ /**
+ * @generated
+ */
+ private DirectEditManager manager;
+
+ /**
+ * @generated
+ */
+ private IParser parser;
+
+ /**
+ * @generated
+ */
+ private List<?> parserElements;
+
+ /**
+ * @generated
+ */
+ private String defaultText;
+
+ /**
+ * direct edition mode (default, undefined, registered editor, etc.)
+ *
+ * @generated
+ */
+ protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
+
+ /**
+ * configuration from a registered edit dialog
+ *
+ * @generated
+ */
+ protected IDirectEditorConfiguration configuration;
+
+ /**
+ * @generated
+ */
+ public IntervalNameEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
+ installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new CompositeStructureDiagramEditPart.NodeLabelDragPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelTextHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getText();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getText();
+ } else {
+ return ((Label)figure).getText();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelTextHelper(IFigure figure, String text) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setText(text);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setText(text);
+ } else {
+ ((Label)figure).setText(text);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIconHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getIcon();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getIcon();
+ } else {
+ return ((Label)figure).getIcon();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelIconHelper(IFigure figure, Image icon) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setIcon(icon);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setIcon(icon);
+ } else {
+ ((Label)figure).setIcon(icon);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabel(WrappingLabel figure) {
+ unregisterVisuals();
+ setFigure(figure);
+ defaultText = getLabelTextHelper(figure);
+ registerVisuals();
+ refreshVisuals();
+ }
+
+ /**
+ * @generated
+ */
+ protected List getModelChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject getParserElement() {
+ return resolveSemanticElement();
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIcon() {
+ EObject parserElement = getParserElement();
+ if(parserElement == null) {
+ return null;
+ }
+
+ List<View> views = DiagramEditPartsUtil.findViews(parserElement, getViewer());
+ for(View view : views) {
+ if(NameLabelIconHelper.showLabelIcon(view)) {
+ return UMLElementTypes.getImage(parserElement.eClass());
+ }
+ }
+ return null;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelText() {
+ String text = null;
+ EObject parserElement = getParserElement();
+ if(parserElement != null && getParser() != null) {
+ text = getParser().getPrintString(new EObjectAdapter(parserElement), getParserOptions().intValue());
+ }
+ if(text == null || text.length() == 0) {
+ text = defaultText;
+ }
+ return text;
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabelText(String text) {
+ setLabelTextHelper(getFigure(), text);
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public String getEditText() {
+ if(getParserElement() == null || getParser() == null) {
+ return ""; //$NON-NLS-1$
+ }
+ return getParser().getEditString(new EObjectAdapter(getParserElement()), getParserOptions().intValue());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean isEditable() {
+ return getParser() != null;
+ }
+
+ /**
+ * @generated
+ */
+ public ICellEditorValidator getEditTextValidator() {
+ return new ICellEditorValidator() {
+
+ public String isValid(final Object value) {
+ if(value instanceof String) {
+ final EObject element = getParserElement();
+ final IParser parser = getParser();
+ try {
+ IParserEditStatus valid = (IParserEditStatus)getEditingDomain().runExclusive(new RunnableWithResult.Impl() {
+
+ public void run() {
+ setResult(parser.isValidEditString(new EObjectAdapter(element), (String)value));
+ }
+ });
+ return valid.getCode() == ParserEditStatus.EDITABLE ? null : valid.getMessage();
+ } catch (InterruptedException ie) {
+ ie.printStackTrace();
+ }
+ }
+
+ // shouldn't get here
+ return null;
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ public IContentAssistProcessor getCompletionProcessor() {
+ if(getParserElement() == null || getParser() == null) {
+ return null;
+ }
+ return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
+ }
+
+ /**
+ * @generated
+ */
+ public ParserOptions getParserOptions() {
+ return ParserOptions.NONE;
+ }
+
+ /**
+ * @generated
+ */
+ public IParser getParser() {
+ if(parser == null) {
+ parser = UMLParserProvider.getParser(UMLElementTypes.Interval_2107, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.diagram.composite.edit.parts.IntervalNameEditPart.VISUAL_ID));
+ }
+ return parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected DirectEditManager getManager() {
+ if(manager == null) {
+ setManager(new MultilineLabelDirectEditManager(this, MultilineLabelDirectEditManager.getTextCellEditorClass(this), UMLEditPartFactory.getTextCellEditorLocator(this)));
+ }
+ return manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setManager(DirectEditManager manager) {
+ this.manager = manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit() {
+ getManager().show();
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit(Point eventLocation) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(eventLocation.getSWTPoint());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void performDirectEdit(char initialCharacter) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(initialCharacter);
+ } else {
+ performDirectEdit();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEditRequest(Request request) {
+
+ final Request theRequest = request;
+
+ if(IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
+ directEditionMode = getDirectEditionType();
+ }
+ switch(directEditionMode) {
+ case IDirectEdition.NO_DIRECT_EDITION:
+ // no direct edition mode => does nothing
+ return;
+ case IDirectEdition.EXTENDED_DIRECT_EDITOR:
+ updateExtendedEditorConfiguration();
+ if(configuration == null || configuration.getLanguage() == null) {
+ performDefaultDirectEditorEdit(theRequest);
+ } else {
+ configuration.preEditAction(resolveSemanticElement());
+ Dialog dialog = null;
+ if(configuration instanceof IPopupEditorConfiguration) {
+ IPopupEditorHelper helper = ((IPopupEditorConfiguration)configuration).createPopupEditorHelper(this);
+ helper.showEditor();
+ return;
+ } else if(configuration instanceof IAdvancedEditorConfiguration) {
+ dialog = ((IAdvancedEditorConfiguration)configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
+ } else if(configuration instanceof IDirectEditorConfiguration) {
+ dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), ((IDirectEditorConfiguration)configuration).getTextToEdit(resolveSemanticElement()), (IDirectEditorConfiguration)configuration);
+ } else {
+ return;
+ }
+ final Dialog finalDialog = dialog;
+
+ if(Window.OK == dialog.open()) {
+ TransactionalEditingDomain domain = getEditingDomain();
+ RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
+
+ @Override
+ protected void doExecute() {
+ configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog)finalDialog).getValue());
+
+ }
+ };
+ domain.getCommandStack().execute(command);
+ }
+ }
+ break;
+ case IDirectEdition.DEFAULT_DIRECT_EDITOR:
+
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ break;
+ default:
+ break;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshLabel();
+ refreshFont();
+ refreshFontColor();
+ refreshUnderline();
+ refreshStrikeThrough();
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshLabel() {
+ EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
+ if(maskLabelPolicy == null) {
+ setLabelTextHelper(getFigure(), getLabelText());
+ setLabelIconHelper(getFigure(), getLabelIcon());
+ }
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshUnderline() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextUnderline(style.isUnderline());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshStrikeThrough() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextStrikeThrough(style.isStrikeThrough());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshFont() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null) {
+ FontData fontData = new FontData(style.getFontName(), style.getFontHeight(), (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
+ setFont(fontData);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setFontColor(Color color) {
+ getFigure().setForegroundColor(color);
+ }
+
+ /**
+ * @generated
+ */
+ protected void addSemanticListeners() {
+ if(getParser() instanceof ISemanticParser) {
+ EObject element = resolveSemanticElement();
+ parserElements = ((ISemanticParser)getParser()).getSemanticElementsBeingParsed(element);
+ for(int i = 0; i < parserElements.size(); i++) {
+ addListenerFilter("SemanticModel" + i, this, (EObject)parserElements.get(i)); //$NON-NLS-1$
+ }
+ } else {
+ super.addSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeSemanticListeners() {
+ if(parserElements != null) {
+ for(int i = 0; i < parserElements.size(); i++) {
+ removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
+ }
+ } else {
+ super.removeSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected AccessibleEditPart getAccessibleEditPart() {
+ if(accessibleEP == null) {
+ accessibleEP = new AccessibleGraphicalEditPart() {
+
+ public void getName(AccessibleEvent e) {
+ e.result = getLabelTextHelper(getFigure());
+ }
+ };
+ }
+ return accessibleEP;
+ }
+
+ /**
+ * @generated
+ */
+ private View getFontStyleOwnerView() {
+ return (View)getModel();
+ }
+
+ /**
+ * Returns the kind of associated editor for direct edition.
+ *
+ * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition
+ * @generated
+ */
+ public int getDirectEditionType() {
+ if(checkExtendedEditor()) {
+ initExtendedEditorConfiguration();
+ return IDirectEdition.EXTENDED_DIRECT_EDITOR;
+ }
+ if(checkDefaultEdition()) {
+ return IDirectEdition.DEFAULT_DIRECT_EDITOR;
+ }
+
+ // not a named element. no specific editor => do nothing
+ return IDirectEdition.NO_DIRECT_EDITION;
+ }
+
+ /**
+ * Checks if an extended editor is present.
+ *
+ * @return <code>true</code> if an extended editor is present.
+ * @generated
+ */
+ protected boolean checkExtendedEditor() {
+ if(resolveSemanticElement() != null) {
+ return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ return false;
+ }
+
+ /**
+ * Checks if a default direct edition is available
+ *
+ * @return <code>true</code> if a default direct edition is available
+ * @generated
+ */
+ protected boolean checkDefaultEdition() {
+ return (getParser() != null);
+ }
+
+ /**
+ * Initializes the extended editor configuration
+ *
+ * @generated
+ */
+ protected void initExtendedEditorConfiguration() {
+ if(configuration == null) {
+ final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("")) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else {
+ configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ }
+ }
+
+ /**
+ * Updates the preference configuration
+ *
+ * @generated
+ */
+ protected void updateExtendedEditorConfiguration() {
+ String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("") && languagePreferred != configuration.getLanguage()) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else if(IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
+ configuration = null;
+ }
+ }
+
+ /**
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
+ protected void performDefaultDirectEditorEdit(final Request theRequest) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void addNotationalListeners() {
+ super.addNotationalListeners();
+ addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeNotationalListeners() {
+ super.removeNotationalListeners();
+ removeListenerFilter("PrimaryView"); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void handleNotificationEvent(Notification event) {
+ refreshLabel();
+ Object feature = event.getFeature();
+ if(NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
+ Integer c = (Integer)event.getNewValue();
+ setFontColor(DiagramColorRegistry.getInstance().getColor(c));
+ } else if(NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
+ refreshUnderline();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
+ refreshStrikeThrough();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
+ refreshFont();
+ } else {
+ if(getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
+ refreshLabel();
+ }
+ if(getParser() instanceof ISemanticParser) {
+ ISemanticParser modelParser = (ISemanticParser)getParser();
+ if(modelParser.areSemanticElementsAffected(null, event)) {
+ removeSemanticListeners();
+ if(resolveSemanticElement() != null) {
+ addSemanticListeners();
+ }
+ refreshLabel();
+ }
+ }
+ }
+
+ if(event.getNewValue() instanceof EAnnotation && VisualInformationPapyrusConstant.DISPLAY_NAMELABELICON.equals(((EAnnotation)event.getNewValue()).getSource())) {
+ refreshLabel();
+ }
+
+ super.handleNotificationEvent(event);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createFigure() {
+ // Parent should assign one using setLabel() method
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ private static final String ADD_PARENT_MODEL = "AddParentModel";
+
+ /**
+ * @generated
+ */
+ public void activate() {
+ super.activate();
+ addOwnerElementListeners();
+ }
+
+ /**
+ * @generated
+ */
+ protected void addOwnerElementListeners() {
+ addListenerFilter(ADD_PARENT_MODEL, this, ((View)getParent().getModel())); //$NON-NLS-1$
+
+ }
+
+ /**
+ * @generated
+ */
+ public void deactivate() {
+ removeOwnerElementListeners();
+ super.deactivate();
+
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeOwnerElementListeners() {
+ removeListenerFilter(ADD_PARENT_MODEL);
+
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/LinkDescriptorEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/LinkDescriptorEditPart.java
new file mode 100644
index 00000000000..a689248bb21
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/LinkDescriptorEditPart.java
@@ -0,0 +1,90 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import org.eclipse.draw2d.Connection;
+import org.eclipse.draw2d.Graphics;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ConnectionNodeEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITreeBranchEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.ViewComponentEditPolicy;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.PolylineConnectionEx;
+import org.eclipse.gmf.runtime.notation.View;
+
+/**
+ * @generated
+ */
+public class LinkDescriptorEditPart extends ConnectionNodeEditPart
+
+implements ITreeBranchEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 4001;
+
+ /**
+ * @generated
+ */
+ public LinkDescriptorEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.COMPONENT_ROLE, new ViewComponentEditPolicy());
+ removeEditPolicy(EditPolicyRoles.SEMANTIC_ROLE);
+ }
+
+ /**
+ * Creates figure for this edit part.
+ *
+ * Body of this method does not depend on settings in generation model
+ * so you may safely remove <i>generated</i> tag and modify it.
+ *
+ * @generated
+ */
+
+ protected Connection createConnectionFigure() {
+ return new LinkDescriptor();
+ }
+
+ /**
+ * @generated
+ */
+ public LinkDescriptor getPrimaryShape() {
+ return (LinkDescriptor)getFigure();
+ }
+
+ /**
+ * @generated
+ */
+ public class LinkDescriptor extends PolylineConnectionEx {
+
+ /**
+ * @generated
+ */
+ public LinkDescriptor() {
+ this.setLineWidth(1);
+ this.setLineStyle(Graphics.LINE_DASH);
+
+ }
+
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/LiteralBooleanEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/LiteralBooleanEditPart.java
new file mode 100644
index 00000000000..e91e1b2ea52
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/LiteralBooleanEditPart.java
@@ -0,0 +1,5167 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.ArrayList;
+import java.util.LinkedList;
+import java.util.List;
+
+import org.eclipse.draw2d.ColorConstants;
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.RectangleFigure;
+import org.eclipse.draw2d.Shape;
+import org.eclipse.draw2d.StackLayout;
+import org.eclipse.emf.ecore.EStructuralFeature;
+import org.eclipse.gef.EditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.editpolicies.LayoutEditPolicy;
+import org.eclipse.gef.editpolicies.NonResizableEditPolicy;
+import org.eclipse.gef.requests.CreateRequest;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ShapeNodeEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.FigureUtilities;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.gef.ui.figures.DefaultSizeNodeFigure;
+import org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.jface.preference.PreferenceConverter;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.HyperLinkPopupBarEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.QualifiedNameDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.helper.PreferenceInitializerForElementHelper;
+import org.eclipse.papyrus.diagram.composite.edit.policies.LiteralBooleanItemSemanticEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorPlugin;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter;
+import org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.Font;
+import org.eclipse.swt.widgets.Display;
+
+/**
+ * @generated
+ */
+public class LiteralBooleanEditPart extends
+
+ShapeNodeEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 2095;
+
+ /**
+ * @generated
+ */
+ protected IFigure contentPane;
+
+ /**
+ * @generated
+ */
+ protected IFigure primaryShape;
+
+ /**
+ * @generated
+ */
+ public LiteralBooleanEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new LiteralBooleanItemSemanticEditPolicy());
+ installEditPolicy(EditPolicy.LAYOUT_ROLE, createLayoutEditPolicy());
+ installEditPolicy(QualifiedNameDisplayEditPolicy.QUALIFIED_NAME_POLICY, new QualifiedNameDisplayEditPolicy());
+ installEditPolicy(AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeNodeLabelDisplayEditPolicy());
+ installEditPolicy(EditPolicyRoles.POPUPBAR_ROLE, new HyperLinkPopupBarEditPolicy());
+ // XXX need an SCR to runtime to have another abstract superclass that would let children add reasonable editpolicies
+ // removeEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CONNECTION_HANDLES_ROLE);
+ }
+
+ /**
+ * @generated
+ */
+ protected LayoutEditPolicy createLayoutEditPolicy() {
+ org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy lep = new org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy() {
+
+ protected EditPolicy createChildEditPolicy(EditPart child) {
+ EditPolicy result = child.getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(result == null) {
+ result = new NonResizableEditPolicy();
+ }
+ return result;
+ }
+
+ protected Command getMoveChildrenCommand(Request request) {
+ return null;
+ }
+
+ protected Command getCreateCommand(CreateRequest request) {
+ return null;
+ }
+ };
+ return lep;
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createNodeShape() {
+ return primaryShape = new NamedElementDescriptor();
+ }
+
+ /**
+ * @generated
+ */
+ public NamedElementDescriptor getPrimaryShape() {
+ return (NamedElementDescriptor)primaryShape;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean addFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof LiteralBooleanNameEditPart) {
+ ((LiteralBooleanNameEditPart)childEditPart).setLabel(getPrimaryShape().getNamedElementNameLabel());
+ return true;
+ }
+
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean removeFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof LiteralBooleanNameEditPart) {
+ return true;
+ }
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected void addChildVisual(EditPart childEditPart, int index) {
+ if(addFixedChild(childEditPart)) {
+ return;
+ }
+ super.addChildVisual(childEditPart, -1);
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeChildVisual(EditPart childEditPart) {
+ if(removeFixedChild(childEditPart)) {
+ return;
+ }
+ super.removeChildVisual(childEditPart);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure getContentPaneFor(IGraphicalEditPart editPart) {
+ return getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ protected NodeFigure createNodePlate() {
+ String prefElementId = "LiteralBoolean";
+ IPreferenceStore store = UMLDiagramEditorPlugin.getInstance().getPreferenceStore();
+ String preferenceConstantWitdh = PreferenceInitializerForElementHelper.getpreferenceKey(getNotationView(), prefElementId, PreferenceConstantHelper.WIDTH);
+ String preferenceConstantHeight = PreferenceInitializerForElementHelper.getpreferenceKey(getNotationView(), prefElementId, PreferenceConstantHelper.HEIGHT);
+ DefaultSizeNodeFigure result = new DefaultSizeNodeFigure(store.getInt(preferenceConstantWitdh), store.getInt(preferenceConstantHeight));
+
+ return result;
+ }
+
+ /**
+ * Creates figure for this edit part.
+ *
+ * Body of this method does not depend on settings in generation model
+ * so you may safely remove <i>generated</i> tag and modify it.
+ *
+ * @generated
+ */
+ protected NodeFigure createNodeFigure() {
+ NodeFigure figure = createNodePlate();
+ figure.setLayoutManager(new StackLayout());
+ IFigure shape = createNodeShape();
+ figure.add(shape);
+ contentPane = setupContentPane(shape);
+ return figure;
+ }
+
+ /**
+ * Default implementation treats passed figure as content pane.
+ * Respects layout one may have set for generated figure.
+ *
+ * @param nodeShape
+ * instance of generated figure class
+ * @generated
+ */
+ protected IFigure setupContentPane(IFigure nodeShape) {
+ if(nodeShape.getLayoutManager() == null) {
+ ConstrainedToolbarLayout layout = new ConstrainedToolbarLayout();
+ layout.setSpacing(5);
+ nodeShape.setLayoutManager(layout);
+ }
+ return nodeShape; // use nodeShape itself as contentPane
+ }
+
+ /**
+ * @generated
+ */
+ public IFigure getContentPane() {
+ if(contentPane != null) {
+ return contentPane;
+ }
+ return super.getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ protected void setForegroundColor(Color color) {
+ if(primaryShape != null) {
+ primaryShape.setForegroundColor(color);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLineWidth(int width) {
+ if(primaryShape instanceof Shape) {
+ ((Shape)primaryShape).setLineWidth(width);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLineType(int style) {
+ if(primaryShape instanceof Shape) {
+ ((Shape)primaryShape).setLineStyle(style);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public EditPart getPrimaryChildEditPart() {
+ return getChildBySemanticHint(UMLVisualIDRegistry.getType(LiteralBooleanNameEditPart.VISUAL_ID));
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnSource() {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(11);
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ types.add(UMLElementTypes.Substitution_4011);
+ types.add(UMLElementTypes.Realization_4006);
+ types.add(UMLElementTypes.Manifestation_4012);
+ types.add(UMLElementTypes.Abstraction_4007);
+ types.add(UMLElementTypes.Usage_4008);
+ types.add(UMLElementTypes.Deployment_4009);
+ types.add(UMLElementTypes.Dependency_4017);
+ types.add(UMLElementTypes.Dependency_4010);
+ types.add(UMLElementTypes.InformationFlow_4021);
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnSourceAndTarget(IGraphicalEditPart targetEditPart) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMATypesForTarget(IElementType relationshipType) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(relationshipType == UMLElementTypes.ComponentRealization_4004) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InterfaceRealization_4005) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Substitution_4011) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Realization_4006) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Manifestation_4012) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Abstraction_4007) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Usage_4008) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Deployment_4009) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4017) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4010) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InformationFlow_4021) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnTarget() {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(15);
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ types.add(UMLElementTypes.Substitution_4011);
+ types.add(UMLElementTypes.Realization_4006);
+ types.add(UMLElementTypes.Manifestation_4012);
+ types.add(UMLElementTypes.Abstraction_4007);
+ types.add(UMLElementTypes.Usage_4008);
+ types.add(UMLElementTypes.Deployment_4009);
+ types.add(UMLElementTypes.Dependency_4017);
+ types.add(UMLElementTypes.Dependency_4010);
+ types.add(UMLElementTypes.TimeObservationEvent_4018);
+ types.add(UMLElementTypes.DurationObservationEvent_4019);
+ types.add(UMLElementTypes.InformationFlow_4021);
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMATypesForSource(IElementType relationshipType) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(relationshipType == UMLElementTypes.CommentAnnotatedElement_4002) {
+ types.add(UMLElementTypes.Comment_2109);
+ types.add(UMLElementTypes.Comment_3097);
+ } else if(relationshipType == UMLElementTypes.ConstraintConstrainedElement_4003) {
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.ComponentRealization_4004) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InterfaceRealization_4005) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Substitution_4011) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Realization_4006) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Manifestation_4012) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Abstraction_4007) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Usage_4008) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Deployment_4009) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4017) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4010) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.TimeObservationEvent_4018) {
+ types.add(UMLElementTypes.TimeObservation_2094);
+ } else if(relationshipType == UMLElementTypes.DurationObservationEvent_4019) {
+ types.add(UMLElementTypes.DurationObservation_2093);
+ } else if(relationshipType == UMLElementTypes.InformationFlow_4021) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public class NamedElementDescriptor extends RectangleFigure {
+
+ /**
+ * @generated
+ */
+ private WrappingLabel fNamedElementNameLabel;
+
+ /**
+ * @generated
+ */
+ public NamedElementDescriptor() {
+ this.setLineWidth(1);
+ this.setForegroundColor(ColorConstants.black);
+ createContents();
+ }
+
+ /**
+ * @generated
+ */
+ private void createContents() {
+
+ fNamedElementNameLabel = new WrappingLabel();
+ fNamedElementNameLabel.setText("");
+ fNamedElementNameLabel.setForegroundColor(ColorConstants.black);
+
+ fNamedElementNameLabel.setFont(FNAMEDELEMENTNAMELABEL_FONT);
+
+ this.add(fNamedElementNameLabel);
+
+ }
+
+ /**
+ * @generated
+ */
+ private boolean myUseLocalCoordinates = false;
+
+ /**
+ * @generated
+ */
+ protected boolean useLocalCoordinates() {
+ return myUseLocalCoordinates;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setUseLocalCoordinates(boolean useLocalCoordinates) {
+ myUseLocalCoordinates = useLocalCoordinates;
+ }
+
+ /**
+ * @generated
+ */
+ public WrappingLabel getNamedElementNameLabel() {
+ return fNamedElementNameLabel;
+ }
+
+ }
+
+ /**
+ * @generated
+ */
+ static final Font FNAMEDELEMENTNAMELABEL_FONT = new Font(Display.getCurrent(), "Arial", 10, SWT.BOLD);
+
+ /**
+ * @generated
+ */
+ @Override
+ public Object getPreferredValue(EStructuralFeature feature) {
+ IPreferenceStore preferenceStore = (IPreferenceStore)getDiagramPreferencesHint().getPreferenceStore();
+ Object result = null;
+
+ if(feature == NotationPackage.eINSTANCE.getLineStyle_LineColor() || feature == NotationPackage.eINSTANCE.getFontStyle_FontColor() || feature == NotationPackage.eINSTANCE.getFillStyle_FillColor()) {
+ String prefColor = null;
+ if(feature == NotationPackage.eINSTANCE.getLineStyle_LineColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("LiteralBoolean", PreferenceConstantHelper.COLOR_LINE);
+ } else if(feature == NotationPackage.eINSTANCE.getFontStyle_FontColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("LiteralBoolean", PreferenceConstantHelper.COLOR_FONT);
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_FillColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("LiteralBoolean", PreferenceConstantHelper.COLOR_FILL);
+ }
+ result = FigureUtilities.RGBToInteger(PreferenceConverter.getColor((IPreferenceStore)preferenceStore, prefColor));
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_Transparency() || feature == NotationPackage.eINSTANCE.getFillStyle_Gradient()) {
+ String prefGradient = PreferenceConstantHelper.getElementConstant("LiteralBoolean", PreferenceConstantHelper.COLOR_GRADIENT);
+ GradientPreferenceConverter gradientPreferenceConverter = new GradientPreferenceConverter(preferenceStore.getString(prefGradient));
+ if(feature == NotationPackage.eINSTANCE.getFillStyle_Transparency()) {
+ result = new Integer(gradientPreferenceConverter.getTransparency());
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_Gradient()) {
+ result = gradientPreferenceConverter.getGradientData();
+ }
+ }
+
+ if(result == null) {
+ result = getStructuralFeatureValue(feature);
+ }
+ return result;
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/LiteralBooleanNameEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/LiteralBooleanNameEditPart.java
new file mode 100644
index 00000000000..55505efce4e
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/LiteralBooleanNameEditPart.java
@@ -0,0 +1,791 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EAnnotation;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.emf.transaction.RunnableWithResult;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.AccessibleEditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.requests.DirectEditRequest;
+import org.eclipse.gef.tools.DirectEditManager;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.CompartmentEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
+import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
+import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
+import org.eclipse.gmf.runtime.notation.FontStyle;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
+import org.eclipse.jface.viewers.ICellEditorValidator;
+import org.eclipse.jface.window.Window;
+import org.eclipse.papyrus.diagram.common.directedit.MultilineLabelDirectEditManager;
+import org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition;
+import org.eclipse.papyrus.diagram.common.editpolicies.IMaskManagedLabelEditPolicy;
+import org.eclipse.papyrus.diagram.common.figure.node.ILabelFigure;
+import org.eclipse.papyrus.diagram.common.util.DiagramEditPartsUtil;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLTextSelectionEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.diagram.composite.providers.UMLParserProvider;
+import org.eclipse.papyrus.extensionpoints.editors.Activator;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
+import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
+import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
+import org.eclipse.papyrus.umlutils.ui.VisualInformationPapyrusConstant;
+import org.eclipse.papyrus.umlutils.ui.helper.NameLabelIconHelper;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.AccessibleEvent;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.FontData;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.ui.PlatformUI;
+
+/**
+ * @generated
+ */
+public class LiteralBooleanNameEditPart extends CompartmentEditPart implements ITextAwareEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 5178;
+
+ /**
+ * @generated
+ */
+ private DirectEditManager manager;
+
+ /**
+ * @generated
+ */
+ private IParser parser;
+
+ /**
+ * @generated
+ */
+ private List<?> parserElements;
+
+ /**
+ * @generated
+ */
+ private String defaultText;
+
+ /**
+ * direct edition mode (default, undefined, registered editor, etc.)
+ *
+ * @generated
+ */
+ protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
+
+ /**
+ * configuration from a registered edit dialog
+ *
+ * @generated
+ */
+ protected IDirectEditorConfiguration configuration;
+
+ /**
+ * @generated
+ */
+ public LiteralBooleanNameEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
+ installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new CompositeStructureDiagramEditPart.NodeLabelDragPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelTextHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getText();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getText();
+ } else {
+ return ((Label)figure).getText();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelTextHelper(IFigure figure, String text) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setText(text);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setText(text);
+ } else {
+ ((Label)figure).setText(text);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIconHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getIcon();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getIcon();
+ } else {
+ return ((Label)figure).getIcon();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelIconHelper(IFigure figure, Image icon) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setIcon(icon);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setIcon(icon);
+ } else {
+ ((Label)figure).setIcon(icon);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabel(WrappingLabel figure) {
+ unregisterVisuals();
+ setFigure(figure);
+ defaultText = getLabelTextHelper(figure);
+ registerVisuals();
+ refreshVisuals();
+ }
+
+ /**
+ * @generated
+ */
+ protected List getModelChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject getParserElement() {
+ return resolveSemanticElement();
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIcon() {
+ EObject parserElement = getParserElement();
+ if(parserElement == null) {
+ return null;
+ }
+
+ List<View> views = DiagramEditPartsUtil.findViews(parserElement, getViewer());
+ for(View view : views) {
+ if(NameLabelIconHelper.showLabelIcon(view)) {
+ return UMLElementTypes.getImage(parserElement.eClass());
+ }
+ }
+ return null;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelText() {
+ String text = null;
+ EObject parserElement = getParserElement();
+ if(parserElement != null && getParser() != null) {
+ text = getParser().getPrintString(new EObjectAdapter(parserElement), getParserOptions().intValue());
+ }
+ if(text == null || text.length() == 0) {
+ text = defaultText;
+ }
+ return text;
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabelText(String text) {
+ setLabelTextHelper(getFigure(), text);
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public String getEditText() {
+ if(getParserElement() == null || getParser() == null) {
+ return ""; //$NON-NLS-1$
+ }
+ return getParser().getEditString(new EObjectAdapter(getParserElement()), getParserOptions().intValue());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean isEditable() {
+ return getParser() != null;
+ }
+
+ /**
+ * @generated
+ */
+ public ICellEditorValidator getEditTextValidator() {
+ return new ICellEditorValidator() {
+
+ public String isValid(final Object value) {
+ if(value instanceof String) {
+ final EObject element = getParserElement();
+ final IParser parser = getParser();
+ try {
+ IParserEditStatus valid = (IParserEditStatus)getEditingDomain().runExclusive(new RunnableWithResult.Impl() {
+
+ public void run() {
+ setResult(parser.isValidEditString(new EObjectAdapter(element), (String)value));
+ }
+ });
+ return valid.getCode() == ParserEditStatus.EDITABLE ? null : valid.getMessage();
+ } catch (InterruptedException ie) {
+ ie.printStackTrace();
+ }
+ }
+
+ // shouldn't get here
+ return null;
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ public IContentAssistProcessor getCompletionProcessor() {
+ if(getParserElement() == null || getParser() == null) {
+ return null;
+ }
+ return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
+ }
+
+ /**
+ * @generated
+ */
+ public ParserOptions getParserOptions() {
+ return ParserOptions.NONE;
+ }
+
+ /**
+ * @generated
+ */
+ public IParser getParser() {
+ if(parser == null) {
+ parser = UMLParserProvider.getParser(UMLElementTypes.LiteralBoolean_2095, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.diagram.composite.edit.parts.LiteralBooleanNameEditPart.VISUAL_ID));
+ }
+ return parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected DirectEditManager getManager() {
+ if(manager == null) {
+ setManager(new MultilineLabelDirectEditManager(this, MultilineLabelDirectEditManager.getTextCellEditorClass(this), UMLEditPartFactory.getTextCellEditorLocator(this)));
+ }
+ return manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setManager(DirectEditManager manager) {
+ this.manager = manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit() {
+ getManager().show();
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit(Point eventLocation) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(eventLocation.getSWTPoint());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void performDirectEdit(char initialCharacter) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(initialCharacter);
+ } else {
+ performDirectEdit();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEditRequest(Request request) {
+
+ final Request theRequest = request;
+
+ if(IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
+ directEditionMode = getDirectEditionType();
+ }
+ switch(directEditionMode) {
+ case IDirectEdition.NO_DIRECT_EDITION:
+ // no direct edition mode => does nothing
+ return;
+ case IDirectEdition.EXTENDED_DIRECT_EDITOR:
+ updateExtendedEditorConfiguration();
+ if(configuration == null || configuration.getLanguage() == null) {
+ performDefaultDirectEditorEdit(theRequest);
+ } else {
+ configuration.preEditAction(resolveSemanticElement());
+ Dialog dialog = null;
+ if(configuration instanceof IPopupEditorConfiguration) {
+ IPopupEditorHelper helper = ((IPopupEditorConfiguration)configuration).createPopupEditorHelper(this);
+ helper.showEditor();
+ return;
+ } else if(configuration instanceof IAdvancedEditorConfiguration) {
+ dialog = ((IAdvancedEditorConfiguration)configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
+ } else if(configuration instanceof IDirectEditorConfiguration) {
+ dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), ((IDirectEditorConfiguration)configuration).getTextToEdit(resolveSemanticElement()), (IDirectEditorConfiguration)configuration);
+ } else {
+ return;
+ }
+ final Dialog finalDialog = dialog;
+
+ if(Window.OK == dialog.open()) {
+ TransactionalEditingDomain domain = getEditingDomain();
+ RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
+
+ @Override
+ protected void doExecute() {
+ configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog)finalDialog).getValue());
+
+ }
+ };
+ domain.getCommandStack().execute(command);
+ }
+ }
+ break;
+ case IDirectEdition.DEFAULT_DIRECT_EDITOR:
+
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ break;
+ default:
+ break;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshLabel();
+ refreshFont();
+ refreshFontColor();
+ refreshUnderline();
+ refreshStrikeThrough();
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshLabel() {
+ EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
+ if(maskLabelPolicy == null) {
+ setLabelTextHelper(getFigure(), getLabelText());
+ setLabelIconHelper(getFigure(), getLabelIcon());
+ }
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshUnderline() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextUnderline(style.isUnderline());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshStrikeThrough() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextStrikeThrough(style.isStrikeThrough());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshFont() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null) {
+ FontData fontData = new FontData(style.getFontName(), style.getFontHeight(), (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
+ setFont(fontData);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setFontColor(Color color) {
+ getFigure().setForegroundColor(color);
+ }
+
+ /**
+ * @generated
+ */
+ protected void addSemanticListeners() {
+ if(getParser() instanceof ISemanticParser) {
+ EObject element = resolveSemanticElement();
+ parserElements = ((ISemanticParser)getParser()).getSemanticElementsBeingParsed(element);
+ for(int i = 0; i < parserElements.size(); i++) {
+ addListenerFilter("SemanticModel" + i, this, (EObject)parserElements.get(i)); //$NON-NLS-1$
+ }
+ } else {
+ super.addSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeSemanticListeners() {
+ if(parserElements != null) {
+ for(int i = 0; i < parserElements.size(); i++) {
+ removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
+ }
+ } else {
+ super.removeSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected AccessibleEditPart getAccessibleEditPart() {
+ if(accessibleEP == null) {
+ accessibleEP = new AccessibleGraphicalEditPart() {
+
+ public void getName(AccessibleEvent e) {
+ e.result = getLabelTextHelper(getFigure());
+ }
+ };
+ }
+ return accessibleEP;
+ }
+
+ /**
+ * @generated
+ */
+ private View getFontStyleOwnerView() {
+ return (View)getModel();
+ }
+
+ /**
+ * Returns the kind of associated editor for direct edition.
+ *
+ * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition
+ * @generated
+ */
+ public int getDirectEditionType() {
+ if(checkExtendedEditor()) {
+ initExtendedEditorConfiguration();
+ return IDirectEdition.EXTENDED_DIRECT_EDITOR;
+ }
+ if(checkDefaultEdition()) {
+ return IDirectEdition.DEFAULT_DIRECT_EDITOR;
+ }
+
+ // not a named element. no specific editor => do nothing
+ return IDirectEdition.NO_DIRECT_EDITION;
+ }
+
+ /**
+ * Checks if an extended editor is present.
+ *
+ * @return <code>true</code> if an extended editor is present.
+ * @generated
+ */
+ protected boolean checkExtendedEditor() {
+ if(resolveSemanticElement() != null) {
+ return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ return false;
+ }
+
+ /**
+ * Checks if a default direct edition is available
+ *
+ * @return <code>true</code> if a default direct edition is available
+ * @generated
+ */
+ protected boolean checkDefaultEdition() {
+ return (getParser() != null);
+ }
+
+ /**
+ * Initializes the extended editor configuration
+ *
+ * @generated
+ */
+ protected void initExtendedEditorConfiguration() {
+ if(configuration == null) {
+ final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("")) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else {
+ configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ }
+ }
+
+ /**
+ * Updates the preference configuration
+ *
+ * @generated
+ */
+ protected void updateExtendedEditorConfiguration() {
+ String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("") && languagePreferred != configuration.getLanguage()) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else if(IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
+ configuration = null;
+ }
+ }
+
+ /**
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
+ protected void performDefaultDirectEditorEdit(final Request theRequest) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void addNotationalListeners() {
+ super.addNotationalListeners();
+ addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeNotationalListeners() {
+ super.removeNotationalListeners();
+ removeListenerFilter("PrimaryView"); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void handleNotificationEvent(Notification event) {
+ refreshLabel();
+ Object feature = event.getFeature();
+ if(NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
+ Integer c = (Integer)event.getNewValue();
+ setFontColor(DiagramColorRegistry.getInstance().getColor(c));
+ } else if(NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
+ refreshUnderline();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
+ refreshStrikeThrough();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
+ refreshFont();
+ } else {
+ if(getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
+ refreshLabel();
+ }
+ if(getParser() instanceof ISemanticParser) {
+ ISemanticParser modelParser = (ISemanticParser)getParser();
+ if(modelParser.areSemanticElementsAffected(null, event)) {
+ removeSemanticListeners();
+ if(resolveSemanticElement() != null) {
+ addSemanticListeners();
+ }
+ refreshLabel();
+ }
+ }
+ }
+
+ if(event.getNewValue() instanceof EAnnotation && VisualInformationPapyrusConstant.DISPLAY_NAMELABELICON.equals(((EAnnotation)event.getNewValue()).getSource())) {
+ refreshLabel();
+ }
+
+ super.handleNotificationEvent(event);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createFigure() {
+ // Parent should assign one using setLabel() method
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ private static final String ADD_PARENT_MODEL = "AddParentModel";
+
+ /**
+ * @generated
+ */
+ public void activate() {
+ super.activate();
+ addOwnerElementListeners();
+ }
+
+ /**
+ * @generated
+ */
+ protected void addOwnerElementListeners() {
+ addListenerFilter(ADD_PARENT_MODEL, this, ((View)getParent().getModel())); //$NON-NLS-1$
+
+ }
+
+ /**
+ * @generated
+ */
+ public void deactivate() {
+ removeOwnerElementListeners();
+ super.deactivate();
+
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeOwnerElementListeners() {
+ removeListenerFilter(ADD_PARENT_MODEL);
+
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/LiteralIntegerEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/LiteralIntegerEditPart.java
new file mode 100644
index 00000000000..0c2fcc2c8a0
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/LiteralIntegerEditPart.java
@@ -0,0 +1,5167 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.ArrayList;
+import java.util.LinkedList;
+import java.util.List;
+
+import org.eclipse.draw2d.ColorConstants;
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.RectangleFigure;
+import org.eclipse.draw2d.Shape;
+import org.eclipse.draw2d.StackLayout;
+import org.eclipse.emf.ecore.EStructuralFeature;
+import org.eclipse.gef.EditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.editpolicies.LayoutEditPolicy;
+import org.eclipse.gef.editpolicies.NonResizableEditPolicy;
+import org.eclipse.gef.requests.CreateRequest;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ShapeNodeEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.FigureUtilities;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.gef.ui.figures.DefaultSizeNodeFigure;
+import org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.jface.preference.PreferenceConverter;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.HyperLinkPopupBarEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.QualifiedNameDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.helper.PreferenceInitializerForElementHelper;
+import org.eclipse.papyrus.diagram.composite.edit.policies.LiteralIntegerItemSemanticEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorPlugin;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter;
+import org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.Font;
+import org.eclipse.swt.widgets.Display;
+
+/**
+ * @generated
+ */
+public class LiteralIntegerEditPart extends
+
+ShapeNodeEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 2096;
+
+ /**
+ * @generated
+ */
+ protected IFigure contentPane;
+
+ /**
+ * @generated
+ */
+ protected IFigure primaryShape;
+
+ /**
+ * @generated
+ */
+ public LiteralIntegerEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new LiteralIntegerItemSemanticEditPolicy());
+ installEditPolicy(EditPolicy.LAYOUT_ROLE, createLayoutEditPolicy());
+ installEditPolicy(QualifiedNameDisplayEditPolicy.QUALIFIED_NAME_POLICY, new QualifiedNameDisplayEditPolicy());
+ installEditPolicy(AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeNodeLabelDisplayEditPolicy());
+ installEditPolicy(EditPolicyRoles.POPUPBAR_ROLE, new HyperLinkPopupBarEditPolicy());
+ // XXX need an SCR to runtime to have another abstract superclass that would let children add reasonable editpolicies
+ // removeEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CONNECTION_HANDLES_ROLE);
+ }
+
+ /**
+ * @generated
+ */
+ protected LayoutEditPolicy createLayoutEditPolicy() {
+ org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy lep = new org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy() {
+
+ protected EditPolicy createChildEditPolicy(EditPart child) {
+ EditPolicy result = child.getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(result == null) {
+ result = new NonResizableEditPolicy();
+ }
+ return result;
+ }
+
+ protected Command getMoveChildrenCommand(Request request) {
+ return null;
+ }
+
+ protected Command getCreateCommand(CreateRequest request) {
+ return null;
+ }
+ };
+ return lep;
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createNodeShape() {
+ return primaryShape = new NamedElementDescriptor();
+ }
+
+ /**
+ * @generated
+ */
+ public NamedElementDescriptor getPrimaryShape() {
+ return (NamedElementDescriptor)primaryShape;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean addFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof LiteralIntegerNameEditPart) {
+ ((LiteralIntegerNameEditPart)childEditPart).setLabel(getPrimaryShape().getNamedElementNameLabel());
+ return true;
+ }
+
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean removeFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof LiteralIntegerNameEditPart) {
+ return true;
+ }
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected void addChildVisual(EditPart childEditPart, int index) {
+ if(addFixedChild(childEditPart)) {
+ return;
+ }
+ super.addChildVisual(childEditPart, -1);
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeChildVisual(EditPart childEditPart) {
+ if(removeFixedChild(childEditPart)) {
+ return;
+ }
+ super.removeChildVisual(childEditPart);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure getContentPaneFor(IGraphicalEditPart editPart) {
+ return getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ protected NodeFigure createNodePlate() {
+ String prefElementId = "LiteralInteger";
+ IPreferenceStore store = UMLDiagramEditorPlugin.getInstance().getPreferenceStore();
+ String preferenceConstantWitdh = PreferenceInitializerForElementHelper.getpreferenceKey(getNotationView(), prefElementId, PreferenceConstantHelper.WIDTH);
+ String preferenceConstantHeight = PreferenceInitializerForElementHelper.getpreferenceKey(getNotationView(), prefElementId, PreferenceConstantHelper.HEIGHT);
+ DefaultSizeNodeFigure result = new DefaultSizeNodeFigure(store.getInt(preferenceConstantWitdh), store.getInt(preferenceConstantHeight));
+
+ return result;
+ }
+
+ /**
+ * Creates figure for this edit part.
+ *
+ * Body of this method does not depend on settings in generation model
+ * so you may safely remove <i>generated</i> tag and modify it.
+ *
+ * @generated
+ */
+ protected NodeFigure createNodeFigure() {
+ NodeFigure figure = createNodePlate();
+ figure.setLayoutManager(new StackLayout());
+ IFigure shape = createNodeShape();
+ figure.add(shape);
+ contentPane = setupContentPane(shape);
+ return figure;
+ }
+
+ /**
+ * Default implementation treats passed figure as content pane.
+ * Respects layout one may have set for generated figure.
+ *
+ * @param nodeShape
+ * instance of generated figure class
+ * @generated
+ */
+ protected IFigure setupContentPane(IFigure nodeShape) {
+ if(nodeShape.getLayoutManager() == null) {
+ ConstrainedToolbarLayout layout = new ConstrainedToolbarLayout();
+ layout.setSpacing(5);
+ nodeShape.setLayoutManager(layout);
+ }
+ return nodeShape; // use nodeShape itself as contentPane
+ }
+
+ /**
+ * @generated
+ */
+ public IFigure getContentPane() {
+ if(contentPane != null) {
+ return contentPane;
+ }
+ return super.getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ protected void setForegroundColor(Color color) {
+ if(primaryShape != null) {
+ primaryShape.setForegroundColor(color);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLineWidth(int width) {
+ if(primaryShape instanceof Shape) {
+ ((Shape)primaryShape).setLineWidth(width);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLineType(int style) {
+ if(primaryShape instanceof Shape) {
+ ((Shape)primaryShape).setLineStyle(style);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public EditPart getPrimaryChildEditPart() {
+ return getChildBySemanticHint(UMLVisualIDRegistry.getType(LiteralIntegerNameEditPart.VISUAL_ID));
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnSource() {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(11);
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ types.add(UMLElementTypes.Substitution_4011);
+ types.add(UMLElementTypes.Realization_4006);
+ types.add(UMLElementTypes.Manifestation_4012);
+ types.add(UMLElementTypes.Abstraction_4007);
+ types.add(UMLElementTypes.Usage_4008);
+ types.add(UMLElementTypes.Deployment_4009);
+ types.add(UMLElementTypes.Dependency_4017);
+ types.add(UMLElementTypes.Dependency_4010);
+ types.add(UMLElementTypes.InformationFlow_4021);
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnSourceAndTarget(IGraphicalEditPart targetEditPart) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMATypesForTarget(IElementType relationshipType) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(relationshipType == UMLElementTypes.ComponentRealization_4004) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InterfaceRealization_4005) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Substitution_4011) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Realization_4006) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Manifestation_4012) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Abstraction_4007) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Usage_4008) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Deployment_4009) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4017) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4010) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InformationFlow_4021) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnTarget() {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(15);
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ types.add(UMLElementTypes.Substitution_4011);
+ types.add(UMLElementTypes.Realization_4006);
+ types.add(UMLElementTypes.Manifestation_4012);
+ types.add(UMLElementTypes.Abstraction_4007);
+ types.add(UMLElementTypes.Usage_4008);
+ types.add(UMLElementTypes.Deployment_4009);
+ types.add(UMLElementTypes.Dependency_4017);
+ types.add(UMLElementTypes.Dependency_4010);
+ types.add(UMLElementTypes.TimeObservationEvent_4018);
+ types.add(UMLElementTypes.DurationObservationEvent_4019);
+ types.add(UMLElementTypes.InformationFlow_4021);
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMATypesForSource(IElementType relationshipType) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(relationshipType == UMLElementTypes.CommentAnnotatedElement_4002) {
+ types.add(UMLElementTypes.Comment_2109);
+ types.add(UMLElementTypes.Comment_3097);
+ } else if(relationshipType == UMLElementTypes.ConstraintConstrainedElement_4003) {
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.ComponentRealization_4004) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InterfaceRealization_4005) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Substitution_4011) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Realization_4006) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Manifestation_4012) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Abstraction_4007) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Usage_4008) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Deployment_4009) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4017) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4010) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.TimeObservationEvent_4018) {
+ types.add(UMLElementTypes.TimeObservation_2094);
+ } else if(relationshipType == UMLElementTypes.DurationObservationEvent_4019) {
+ types.add(UMLElementTypes.DurationObservation_2093);
+ } else if(relationshipType == UMLElementTypes.InformationFlow_4021) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public class NamedElementDescriptor extends RectangleFigure {
+
+ /**
+ * @generated
+ */
+ private WrappingLabel fNamedElementNameLabel;
+
+ /**
+ * @generated
+ */
+ public NamedElementDescriptor() {
+ this.setLineWidth(1);
+ this.setForegroundColor(ColorConstants.black);
+ createContents();
+ }
+
+ /**
+ * @generated
+ */
+ private void createContents() {
+
+ fNamedElementNameLabel = new WrappingLabel();
+ fNamedElementNameLabel.setText("");
+ fNamedElementNameLabel.setForegroundColor(ColorConstants.black);
+
+ fNamedElementNameLabel.setFont(FNAMEDELEMENTNAMELABEL_FONT);
+
+ this.add(fNamedElementNameLabel);
+
+ }
+
+ /**
+ * @generated
+ */
+ private boolean myUseLocalCoordinates = false;
+
+ /**
+ * @generated
+ */
+ protected boolean useLocalCoordinates() {
+ return myUseLocalCoordinates;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setUseLocalCoordinates(boolean useLocalCoordinates) {
+ myUseLocalCoordinates = useLocalCoordinates;
+ }
+
+ /**
+ * @generated
+ */
+ public WrappingLabel getNamedElementNameLabel() {
+ return fNamedElementNameLabel;
+ }
+
+ }
+
+ /**
+ * @generated
+ */
+ static final Font FNAMEDELEMENTNAMELABEL_FONT = new Font(Display.getCurrent(), "Arial", 10, SWT.BOLD);
+
+ /**
+ * @generated
+ */
+ @Override
+ public Object getPreferredValue(EStructuralFeature feature) {
+ IPreferenceStore preferenceStore = (IPreferenceStore)getDiagramPreferencesHint().getPreferenceStore();
+ Object result = null;
+
+ if(feature == NotationPackage.eINSTANCE.getLineStyle_LineColor() || feature == NotationPackage.eINSTANCE.getFontStyle_FontColor() || feature == NotationPackage.eINSTANCE.getFillStyle_FillColor()) {
+ String prefColor = null;
+ if(feature == NotationPackage.eINSTANCE.getLineStyle_LineColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("LiteralInteger", PreferenceConstantHelper.COLOR_LINE);
+ } else if(feature == NotationPackage.eINSTANCE.getFontStyle_FontColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("LiteralInteger", PreferenceConstantHelper.COLOR_FONT);
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_FillColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("LiteralInteger", PreferenceConstantHelper.COLOR_FILL);
+ }
+ result = FigureUtilities.RGBToInteger(PreferenceConverter.getColor((IPreferenceStore)preferenceStore, prefColor));
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_Transparency() || feature == NotationPackage.eINSTANCE.getFillStyle_Gradient()) {
+ String prefGradient = PreferenceConstantHelper.getElementConstant("LiteralInteger", PreferenceConstantHelper.COLOR_GRADIENT);
+ GradientPreferenceConverter gradientPreferenceConverter = new GradientPreferenceConverter(preferenceStore.getString(prefGradient));
+ if(feature == NotationPackage.eINSTANCE.getFillStyle_Transparency()) {
+ result = new Integer(gradientPreferenceConverter.getTransparency());
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_Gradient()) {
+ result = gradientPreferenceConverter.getGradientData();
+ }
+ }
+
+ if(result == null) {
+ result = getStructuralFeatureValue(feature);
+ }
+ return result;
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/LiteralIntegerNameEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/LiteralIntegerNameEditPart.java
new file mode 100644
index 00000000000..44452621943
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/LiteralIntegerNameEditPart.java
@@ -0,0 +1,791 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EAnnotation;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.emf.transaction.RunnableWithResult;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.AccessibleEditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.requests.DirectEditRequest;
+import org.eclipse.gef.tools.DirectEditManager;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.CompartmentEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
+import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
+import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
+import org.eclipse.gmf.runtime.notation.FontStyle;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
+import org.eclipse.jface.viewers.ICellEditorValidator;
+import org.eclipse.jface.window.Window;
+import org.eclipse.papyrus.diagram.common.directedit.MultilineLabelDirectEditManager;
+import org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition;
+import org.eclipse.papyrus.diagram.common.editpolicies.IMaskManagedLabelEditPolicy;
+import org.eclipse.papyrus.diagram.common.figure.node.ILabelFigure;
+import org.eclipse.papyrus.diagram.common.util.DiagramEditPartsUtil;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLTextSelectionEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.diagram.composite.providers.UMLParserProvider;
+import org.eclipse.papyrus.extensionpoints.editors.Activator;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
+import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
+import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
+import org.eclipse.papyrus.umlutils.ui.VisualInformationPapyrusConstant;
+import org.eclipse.papyrus.umlutils.ui.helper.NameLabelIconHelper;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.AccessibleEvent;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.FontData;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.ui.PlatformUI;
+
+/**
+ * @generated
+ */
+public class LiteralIntegerNameEditPart extends CompartmentEditPart implements ITextAwareEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 5179;
+
+ /**
+ * @generated
+ */
+ private DirectEditManager manager;
+
+ /**
+ * @generated
+ */
+ private IParser parser;
+
+ /**
+ * @generated
+ */
+ private List<?> parserElements;
+
+ /**
+ * @generated
+ */
+ private String defaultText;
+
+ /**
+ * direct edition mode (default, undefined, registered editor, etc.)
+ *
+ * @generated
+ */
+ protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
+
+ /**
+ * configuration from a registered edit dialog
+ *
+ * @generated
+ */
+ protected IDirectEditorConfiguration configuration;
+
+ /**
+ * @generated
+ */
+ public LiteralIntegerNameEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
+ installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new CompositeStructureDiagramEditPart.NodeLabelDragPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelTextHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getText();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getText();
+ } else {
+ return ((Label)figure).getText();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelTextHelper(IFigure figure, String text) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setText(text);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setText(text);
+ } else {
+ ((Label)figure).setText(text);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIconHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getIcon();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getIcon();
+ } else {
+ return ((Label)figure).getIcon();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelIconHelper(IFigure figure, Image icon) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setIcon(icon);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setIcon(icon);
+ } else {
+ ((Label)figure).setIcon(icon);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabel(WrappingLabel figure) {
+ unregisterVisuals();
+ setFigure(figure);
+ defaultText = getLabelTextHelper(figure);
+ registerVisuals();
+ refreshVisuals();
+ }
+
+ /**
+ * @generated
+ */
+ protected List getModelChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject getParserElement() {
+ return resolveSemanticElement();
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIcon() {
+ EObject parserElement = getParserElement();
+ if(parserElement == null) {
+ return null;
+ }
+
+ List<View> views = DiagramEditPartsUtil.findViews(parserElement, getViewer());
+ for(View view : views) {
+ if(NameLabelIconHelper.showLabelIcon(view)) {
+ return UMLElementTypes.getImage(parserElement.eClass());
+ }
+ }
+ return null;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelText() {
+ String text = null;
+ EObject parserElement = getParserElement();
+ if(parserElement != null && getParser() != null) {
+ text = getParser().getPrintString(new EObjectAdapter(parserElement), getParserOptions().intValue());
+ }
+ if(text == null || text.length() == 0) {
+ text = defaultText;
+ }
+ return text;
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabelText(String text) {
+ setLabelTextHelper(getFigure(), text);
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public String getEditText() {
+ if(getParserElement() == null || getParser() == null) {
+ return ""; //$NON-NLS-1$
+ }
+ return getParser().getEditString(new EObjectAdapter(getParserElement()), getParserOptions().intValue());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean isEditable() {
+ return getParser() != null;
+ }
+
+ /**
+ * @generated
+ */
+ public ICellEditorValidator getEditTextValidator() {
+ return new ICellEditorValidator() {
+
+ public String isValid(final Object value) {
+ if(value instanceof String) {
+ final EObject element = getParserElement();
+ final IParser parser = getParser();
+ try {
+ IParserEditStatus valid = (IParserEditStatus)getEditingDomain().runExclusive(new RunnableWithResult.Impl() {
+
+ public void run() {
+ setResult(parser.isValidEditString(new EObjectAdapter(element), (String)value));
+ }
+ });
+ return valid.getCode() == ParserEditStatus.EDITABLE ? null : valid.getMessage();
+ } catch (InterruptedException ie) {
+ ie.printStackTrace();
+ }
+ }
+
+ // shouldn't get here
+ return null;
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ public IContentAssistProcessor getCompletionProcessor() {
+ if(getParserElement() == null || getParser() == null) {
+ return null;
+ }
+ return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
+ }
+
+ /**
+ * @generated
+ */
+ public ParserOptions getParserOptions() {
+ return ParserOptions.NONE;
+ }
+
+ /**
+ * @generated
+ */
+ public IParser getParser() {
+ if(parser == null) {
+ parser = UMLParserProvider.getParser(UMLElementTypes.LiteralInteger_2096, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.diagram.composite.edit.parts.LiteralIntegerNameEditPart.VISUAL_ID));
+ }
+ return parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected DirectEditManager getManager() {
+ if(manager == null) {
+ setManager(new MultilineLabelDirectEditManager(this, MultilineLabelDirectEditManager.getTextCellEditorClass(this), UMLEditPartFactory.getTextCellEditorLocator(this)));
+ }
+ return manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setManager(DirectEditManager manager) {
+ this.manager = manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit() {
+ getManager().show();
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit(Point eventLocation) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(eventLocation.getSWTPoint());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void performDirectEdit(char initialCharacter) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(initialCharacter);
+ } else {
+ performDirectEdit();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEditRequest(Request request) {
+
+ final Request theRequest = request;
+
+ if(IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
+ directEditionMode = getDirectEditionType();
+ }
+ switch(directEditionMode) {
+ case IDirectEdition.NO_DIRECT_EDITION:
+ // no direct edition mode => does nothing
+ return;
+ case IDirectEdition.EXTENDED_DIRECT_EDITOR:
+ updateExtendedEditorConfiguration();
+ if(configuration == null || configuration.getLanguage() == null) {
+ performDefaultDirectEditorEdit(theRequest);
+ } else {
+ configuration.preEditAction(resolveSemanticElement());
+ Dialog dialog = null;
+ if(configuration instanceof IPopupEditorConfiguration) {
+ IPopupEditorHelper helper = ((IPopupEditorConfiguration)configuration).createPopupEditorHelper(this);
+ helper.showEditor();
+ return;
+ } else if(configuration instanceof IAdvancedEditorConfiguration) {
+ dialog = ((IAdvancedEditorConfiguration)configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
+ } else if(configuration instanceof IDirectEditorConfiguration) {
+ dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), ((IDirectEditorConfiguration)configuration).getTextToEdit(resolveSemanticElement()), (IDirectEditorConfiguration)configuration);
+ } else {
+ return;
+ }
+ final Dialog finalDialog = dialog;
+
+ if(Window.OK == dialog.open()) {
+ TransactionalEditingDomain domain = getEditingDomain();
+ RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
+
+ @Override
+ protected void doExecute() {
+ configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog)finalDialog).getValue());
+
+ }
+ };
+ domain.getCommandStack().execute(command);
+ }
+ }
+ break;
+ case IDirectEdition.DEFAULT_DIRECT_EDITOR:
+
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ break;
+ default:
+ break;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshLabel();
+ refreshFont();
+ refreshFontColor();
+ refreshUnderline();
+ refreshStrikeThrough();
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshLabel() {
+ EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
+ if(maskLabelPolicy == null) {
+ setLabelTextHelper(getFigure(), getLabelText());
+ setLabelIconHelper(getFigure(), getLabelIcon());
+ }
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshUnderline() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextUnderline(style.isUnderline());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshStrikeThrough() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextStrikeThrough(style.isStrikeThrough());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshFont() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null) {
+ FontData fontData = new FontData(style.getFontName(), style.getFontHeight(), (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
+ setFont(fontData);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setFontColor(Color color) {
+ getFigure().setForegroundColor(color);
+ }
+
+ /**
+ * @generated
+ */
+ protected void addSemanticListeners() {
+ if(getParser() instanceof ISemanticParser) {
+ EObject element = resolveSemanticElement();
+ parserElements = ((ISemanticParser)getParser()).getSemanticElementsBeingParsed(element);
+ for(int i = 0; i < parserElements.size(); i++) {
+ addListenerFilter("SemanticModel" + i, this, (EObject)parserElements.get(i)); //$NON-NLS-1$
+ }
+ } else {
+ super.addSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeSemanticListeners() {
+ if(parserElements != null) {
+ for(int i = 0; i < parserElements.size(); i++) {
+ removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
+ }
+ } else {
+ super.removeSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected AccessibleEditPart getAccessibleEditPart() {
+ if(accessibleEP == null) {
+ accessibleEP = new AccessibleGraphicalEditPart() {
+
+ public void getName(AccessibleEvent e) {
+ e.result = getLabelTextHelper(getFigure());
+ }
+ };
+ }
+ return accessibleEP;
+ }
+
+ /**
+ * @generated
+ */
+ private View getFontStyleOwnerView() {
+ return (View)getModel();
+ }
+
+ /**
+ * Returns the kind of associated editor for direct edition.
+ *
+ * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition
+ * @generated
+ */
+ public int getDirectEditionType() {
+ if(checkExtendedEditor()) {
+ initExtendedEditorConfiguration();
+ return IDirectEdition.EXTENDED_DIRECT_EDITOR;
+ }
+ if(checkDefaultEdition()) {
+ return IDirectEdition.DEFAULT_DIRECT_EDITOR;
+ }
+
+ // not a named element. no specific editor => do nothing
+ return IDirectEdition.NO_DIRECT_EDITION;
+ }
+
+ /**
+ * Checks if an extended editor is present.
+ *
+ * @return <code>true</code> if an extended editor is present.
+ * @generated
+ */
+ protected boolean checkExtendedEditor() {
+ if(resolveSemanticElement() != null) {
+ return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ return false;
+ }
+
+ /**
+ * Checks if a default direct edition is available
+ *
+ * @return <code>true</code> if a default direct edition is available
+ * @generated
+ */
+ protected boolean checkDefaultEdition() {
+ return (getParser() != null);
+ }
+
+ /**
+ * Initializes the extended editor configuration
+ *
+ * @generated
+ */
+ protected void initExtendedEditorConfiguration() {
+ if(configuration == null) {
+ final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("")) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else {
+ configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ }
+ }
+
+ /**
+ * Updates the preference configuration
+ *
+ * @generated
+ */
+ protected void updateExtendedEditorConfiguration() {
+ String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("") && languagePreferred != configuration.getLanguage()) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else if(IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
+ configuration = null;
+ }
+ }
+
+ /**
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
+ protected void performDefaultDirectEditorEdit(final Request theRequest) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void addNotationalListeners() {
+ super.addNotationalListeners();
+ addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeNotationalListeners() {
+ super.removeNotationalListeners();
+ removeListenerFilter("PrimaryView"); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void handleNotificationEvent(Notification event) {
+ refreshLabel();
+ Object feature = event.getFeature();
+ if(NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
+ Integer c = (Integer)event.getNewValue();
+ setFontColor(DiagramColorRegistry.getInstance().getColor(c));
+ } else if(NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
+ refreshUnderline();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
+ refreshStrikeThrough();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
+ refreshFont();
+ } else {
+ if(getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
+ refreshLabel();
+ }
+ if(getParser() instanceof ISemanticParser) {
+ ISemanticParser modelParser = (ISemanticParser)getParser();
+ if(modelParser.areSemanticElementsAffected(null, event)) {
+ removeSemanticListeners();
+ if(resolveSemanticElement() != null) {
+ addSemanticListeners();
+ }
+ refreshLabel();
+ }
+ }
+ }
+
+ if(event.getNewValue() instanceof EAnnotation && VisualInformationPapyrusConstant.DISPLAY_NAMELABELICON.equals(((EAnnotation)event.getNewValue()).getSource())) {
+ refreshLabel();
+ }
+
+ super.handleNotificationEvent(event);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createFigure() {
+ // Parent should assign one using setLabel() method
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ private static final String ADD_PARENT_MODEL = "AddParentModel";
+
+ /**
+ * @generated
+ */
+ public void activate() {
+ super.activate();
+ addOwnerElementListeners();
+ }
+
+ /**
+ * @generated
+ */
+ protected void addOwnerElementListeners() {
+ addListenerFilter(ADD_PARENT_MODEL, this, ((View)getParent().getModel())); //$NON-NLS-1$
+
+ }
+
+ /**
+ * @generated
+ */
+ public void deactivate() {
+ removeOwnerElementListeners();
+ super.deactivate();
+
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeOwnerElementListeners() {
+ removeListenerFilter(ADD_PARENT_MODEL);
+
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/LiteralNullEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/LiteralNullEditPart.java
new file mode 100644
index 00000000000..0a607e66124
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/LiteralNullEditPart.java
@@ -0,0 +1,5167 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.ArrayList;
+import java.util.LinkedList;
+import java.util.List;
+
+import org.eclipse.draw2d.ColorConstants;
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.RectangleFigure;
+import org.eclipse.draw2d.Shape;
+import org.eclipse.draw2d.StackLayout;
+import org.eclipse.emf.ecore.EStructuralFeature;
+import org.eclipse.gef.EditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.editpolicies.LayoutEditPolicy;
+import org.eclipse.gef.editpolicies.NonResizableEditPolicy;
+import org.eclipse.gef.requests.CreateRequest;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ShapeNodeEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.FigureUtilities;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.gef.ui.figures.DefaultSizeNodeFigure;
+import org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.jface.preference.PreferenceConverter;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.HyperLinkPopupBarEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.QualifiedNameDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.helper.PreferenceInitializerForElementHelper;
+import org.eclipse.papyrus.diagram.composite.edit.policies.LiteralNullItemSemanticEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorPlugin;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter;
+import org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.Font;
+import org.eclipse.swt.widgets.Display;
+
+/**
+ * @generated
+ */
+public class LiteralNullEditPart extends
+
+ShapeNodeEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 2097;
+
+ /**
+ * @generated
+ */
+ protected IFigure contentPane;
+
+ /**
+ * @generated
+ */
+ protected IFigure primaryShape;
+
+ /**
+ * @generated
+ */
+ public LiteralNullEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new LiteralNullItemSemanticEditPolicy());
+ installEditPolicy(EditPolicy.LAYOUT_ROLE, createLayoutEditPolicy());
+ installEditPolicy(QualifiedNameDisplayEditPolicy.QUALIFIED_NAME_POLICY, new QualifiedNameDisplayEditPolicy());
+ installEditPolicy(AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeNodeLabelDisplayEditPolicy());
+ installEditPolicy(EditPolicyRoles.POPUPBAR_ROLE, new HyperLinkPopupBarEditPolicy());
+ // XXX need an SCR to runtime to have another abstract superclass that would let children add reasonable editpolicies
+ // removeEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CONNECTION_HANDLES_ROLE);
+ }
+
+ /**
+ * @generated
+ */
+ protected LayoutEditPolicy createLayoutEditPolicy() {
+ org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy lep = new org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy() {
+
+ protected EditPolicy createChildEditPolicy(EditPart child) {
+ EditPolicy result = child.getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(result == null) {
+ result = new NonResizableEditPolicy();
+ }
+ return result;
+ }
+
+ protected Command getMoveChildrenCommand(Request request) {
+ return null;
+ }
+
+ protected Command getCreateCommand(CreateRequest request) {
+ return null;
+ }
+ };
+ return lep;
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createNodeShape() {
+ return primaryShape = new NamedElementDescriptor();
+ }
+
+ /**
+ * @generated
+ */
+ public NamedElementDescriptor getPrimaryShape() {
+ return (NamedElementDescriptor)primaryShape;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean addFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof LiteralNullNameEditPart) {
+ ((LiteralNullNameEditPart)childEditPart).setLabel(getPrimaryShape().getNamedElementNameLabel());
+ return true;
+ }
+
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean removeFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof LiteralNullNameEditPart) {
+ return true;
+ }
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected void addChildVisual(EditPart childEditPart, int index) {
+ if(addFixedChild(childEditPart)) {
+ return;
+ }
+ super.addChildVisual(childEditPart, -1);
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeChildVisual(EditPart childEditPart) {
+ if(removeFixedChild(childEditPart)) {
+ return;
+ }
+ super.removeChildVisual(childEditPart);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure getContentPaneFor(IGraphicalEditPart editPart) {
+ return getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ protected NodeFigure createNodePlate() {
+ String prefElementId = "LiteralNull";
+ IPreferenceStore store = UMLDiagramEditorPlugin.getInstance().getPreferenceStore();
+ String preferenceConstantWitdh = PreferenceInitializerForElementHelper.getpreferenceKey(getNotationView(), prefElementId, PreferenceConstantHelper.WIDTH);
+ String preferenceConstantHeight = PreferenceInitializerForElementHelper.getpreferenceKey(getNotationView(), prefElementId, PreferenceConstantHelper.HEIGHT);
+ DefaultSizeNodeFigure result = new DefaultSizeNodeFigure(store.getInt(preferenceConstantWitdh), store.getInt(preferenceConstantHeight));
+
+ return result;
+ }
+
+ /**
+ * Creates figure for this edit part.
+ *
+ * Body of this method does not depend on settings in generation model
+ * so you may safely remove <i>generated</i> tag and modify it.
+ *
+ * @generated
+ */
+ protected NodeFigure createNodeFigure() {
+ NodeFigure figure = createNodePlate();
+ figure.setLayoutManager(new StackLayout());
+ IFigure shape = createNodeShape();
+ figure.add(shape);
+ contentPane = setupContentPane(shape);
+ return figure;
+ }
+
+ /**
+ * Default implementation treats passed figure as content pane.
+ * Respects layout one may have set for generated figure.
+ *
+ * @param nodeShape
+ * instance of generated figure class
+ * @generated
+ */
+ protected IFigure setupContentPane(IFigure nodeShape) {
+ if(nodeShape.getLayoutManager() == null) {
+ ConstrainedToolbarLayout layout = new ConstrainedToolbarLayout();
+ layout.setSpacing(5);
+ nodeShape.setLayoutManager(layout);
+ }
+ return nodeShape; // use nodeShape itself as contentPane
+ }
+
+ /**
+ * @generated
+ */
+ public IFigure getContentPane() {
+ if(contentPane != null) {
+ return contentPane;
+ }
+ return super.getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ protected void setForegroundColor(Color color) {
+ if(primaryShape != null) {
+ primaryShape.setForegroundColor(color);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLineWidth(int width) {
+ if(primaryShape instanceof Shape) {
+ ((Shape)primaryShape).setLineWidth(width);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLineType(int style) {
+ if(primaryShape instanceof Shape) {
+ ((Shape)primaryShape).setLineStyle(style);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public EditPart getPrimaryChildEditPart() {
+ return getChildBySemanticHint(UMLVisualIDRegistry.getType(LiteralNullNameEditPart.VISUAL_ID));
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnSource() {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(11);
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ types.add(UMLElementTypes.Substitution_4011);
+ types.add(UMLElementTypes.Realization_4006);
+ types.add(UMLElementTypes.Manifestation_4012);
+ types.add(UMLElementTypes.Abstraction_4007);
+ types.add(UMLElementTypes.Usage_4008);
+ types.add(UMLElementTypes.Deployment_4009);
+ types.add(UMLElementTypes.Dependency_4017);
+ types.add(UMLElementTypes.Dependency_4010);
+ types.add(UMLElementTypes.InformationFlow_4021);
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnSourceAndTarget(IGraphicalEditPart targetEditPart) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.LiteralNullEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.LiteralNullEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.LiteralNullEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.LiteralNullEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.LiteralNullEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.LiteralNullEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.LiteralNullEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.LiteralNullEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.LiteralNullEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.LiteralNullEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.LiteralNullEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMATypesForTarget(IElementType relationshipType) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(relationshipType == UMLElementTypes.ComponentRealization_4004) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InterfaceRealization_4005) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Substitution_4011) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Realization_4006) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Manifestation_4012) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Abstraction_4007) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Usage_4008) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Deployment_4009) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4017) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4010) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InformationFlow_4021) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnTarget() {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(15);
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ types.add(UMLElementTypes.Substitution_4011);
+ types.add(UMLElementTypes.Realization_4006);
+ types.add(UMLElementTypes.Manifestation_4012);
+ types.add(UMLElementTypes.Abstraction_4007);
+ types.add(UMLElementTypes.Usage_4008);
+ types.add(UMLElementTypes.Deployment_4009);
+ types.add(UMLElementTypes.Dependency_4017);
+ types.add(UMLElementTypes.Dependency_4010);
+ types.add(UMLElementTypes.TimeObservationEvent_4018);
+ types.add(UMLElementTypes.DurationObservationEvent_4019);
+ types.add(UMLElementTypes.InformationFlow_4021);
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMATypesForSource(IElementType relationshipType) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(relationshipType == UMLElementTypes.CommentAnnotatedElement_4002) {
+ types.add(UMLElementTypes.Comment_2109);
+ types.add(UMLElementTypes.Comment_3097);
+ } else if(relationshipType == UMLElementTypes.ConstraintConstrainedElement_4003) {
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.ComponentRealization_4004) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InterfaceRealization_4005) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Substitution_4011) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Realization_4006) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Manifestation_4012) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Abstraction_4007) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Usage_4008) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Deployment_4009) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4017) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4010) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.TimeObservationEvent_4018) {
+ types.add(UMLElementTypes.TimeObservation_2094);
+ } else if(relationshipType == UMLElementTypes.DurationObservationEvent_4019) {
+ types.add(UMLElementTypes.DurationObservation_2093);
+ } else if(relationshipType == UMLElementTypes.InformationFlow_4021) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public class NamedElementDescriptor extends RectangleFigure {
+
+ /**
+ * @generated
+ */
+ private WrappingLabel fNamedElementNameLabel;
+
+ /**
+ * @generated
+ */
+ public NamedElementDescriptor() {
+ this.setLineWidth(1);
+ this.setForegroundColor(ColorConstants.black);
+ createContents();
+ }
+
+ /**
+ * @generated
+ */
+ private void createContents() {
+
+ fNamedElementNameLabel = new WrappingLabel();
+ fNamedElementNameLabel.setText("");
+ fNamedElementNameLabel.setForegroundColor(ColorConstants.black);
+
+ fNamedElementNameLabel.setFont(FNAMEDELEMENTNAMELABEL_FONT);
+
+ this.add(fNamedElementNameLabel);
+
+ }
+
+ /**
+ * @generated
+ */
+ private boolean myUseLocalCoordinates = false;
+
+ /**
+ * @generated
+ */
+ protected boolean useLocalCoordinates() {
+ return myUseLocalCoordinates;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setUseLocalCoordinates(boolean useLocalCoordinates) {
+ myUseLocalCoordinates = useLocalCoordinates;
+ }
+
+ /**
+ * @generated
+ */
+ public WrappingLabel getNamedElementNameLabel() {
+ return fNamedElementNameLabel;
+ }
+
+ }
+
+ /**
+ * @generated
+ */
+ static final Font FNAMEDELEMENTNAMELABEL_FONT = new Font(Display.getCurrent(), "Arial", 10, SWT.BOLD);
+
+ /**
+ * @generated
+ */
+ @Override
+ public Object getPreferredValue(EStructuralFeature feature) {
+ IPreferenceStore preferenceStore = (IPreferenceStore)getDiagramPreferencesHint().getPreferenceStore();
+ Object result = null;
+
+ if(feature == NotationPackage.eINSTANCE.getLineStyle_LineColor() || feature == NotationPackage.eINSTANCE.getFontStyle_FontColor() || feature == NotationPackage.eINSTANCE.getFillStyle_FillColor()) {
+ String prefColor = null;
+ if(feature == NotationPackage.eINSTANCE.getLineStyle_LineColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("LiteralNull", PreferenceConstantHelper.COLOR_LINE);
+ } else if(feature == NotationPackage.eINSTANCE.getFontStyle_FontColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("LiteralNull", PreferenceConstantHelper.COLOR_FONT);
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_FillColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("LiteralNull", PreferenceConstantHelper.COLOR_FILL);
+ }
+ result = FigureUtilities.RGBToInteger(PreferenceConverter.getColor((IPreferenceStore)preferenceStore, prefColor));
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_Transparency() || feature == NotationPackage.eINSTANCE.getFillStyle_Gradient()) {
+ String prefGradient = PreferenceConstantHelper.getElementConstant("LiteralNull", PreferenceConstantHelper.COLOR_GRADIENT);
+ GradientPreferenceConverter gradientPreferenceConverter = new GradientPreferenceConverter(preferenceStore.getString(prefGradient));
+ if(feature == NotationPackage.eINSTANCE.getFillStyle_Transparency()) {
+ result = new Integer(gradientPreferenceConverter.getTransparency());
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_Gradient()) {
+ result = gradientPreferenceConverter.getGradientData();
+ }
+ }
+
+ if(result == null) {
+ result = getStructuralFeatureValue(feature);
+ }
+ return result;
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/LiteralNullNameEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/LiteralNullNameEditPart.java
new file mode 100644
index 00000000000..e1394756023
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/LiteralNullNameEditPart.java
@@ -0,0 +1,791 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EAnnotation;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.emf.transaction.RunnableWithResult;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.AccessibleEditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.requests.DirectEditRequest;
+import org.eclipse.gef.tools.DirectEditManager;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.CompartmentEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
+import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
+import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
+import org.eclipse.gmf.runtime.notation.FontStyle;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
+import org.eclipse.jface.viewers.ICellEditorValidator;
+import org.eclipse.jface.window.Window;
+import org.eclipse.papyrus.diagram.common.directedit.MultilineLabelDirectEditManager;
+import org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition;
+import org.eclipse.papyrus.diagram.common.editpolicies.IMaskManagedLabelEditPolicy;
+import org.eclipse.papyrus.diagram.common.figure.node.ILabelFigure;
+import org.eclipse.papyrus.diagram.common.util.DiagramEditPartsUtil;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLTextSelectionEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.diagram.composite.providers.UMLParserProvider;
+import org.eclipse.papyrus.extensionpoints.editors.Activator;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
+import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
+import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
+import org.eclipse.papyrus.umlutils.ui.VisualInformationPapyrusConstant;
+import org.eclipse.papyrus.umlutils.ui.helper.NameLabelIconHelper;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.AccessibleEvent;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.FontData;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.ui.PlatformUI;
+
+/**
+ * @generated
+ */
+public class LiteralNullNameEditPart extends CompartmentEditPart implements ITextAwareEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 5180;
+
+ /**
+ * @generated
+ */
+ private DirectEditManager manager;
+
+ /**
+ * @generated
+ */
+ private IParser parser;
+
+ /**
+ * @generated
+ */
+ private List<?> parserElements;
+
+ /**
+ * @generated
+ */
+ private String defaultText;
+
+ /**
+ * direct edition mode (default, undefined, registered editor, etc.)
+ *
+ * @generated
+ */
+ protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
+
+ /**
+ * configuration from a registered edit dialog
+ *
+ * @generated
+ */
+ protected IDirectEditorConfiguration configuration;
+
+ /**
+ * @generated
+ */
+ public LiteralNullNameEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
+ installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new CompositeStructureDiagramEditPart.NodeLabelDragPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelTextHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getText();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getText();
+ } else {
+ return ((Label)figure).getText();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelTextHelper(IFigure figure, String text) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setText(text);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setText(text);
+ } else {
+ ((Label)figure).setText(text);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIconHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getIcon();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getIcon();
+ } else {
+ return ((Label)figure).getIcon();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelIconHelper(IFigure figure, Image icon) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setIcon(icon);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setIcon(icon);
+ } else {
+ ((Label)figure).setIcon(icon);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabel(WrappingLabel figure) {
+ unregisterVisuals();
+ setFigure(figure);
+ defaultText = getLabelTextHelper(figure);
+ registerVisuals();
+ refreshVisuals();
+ }
+
+ /**
+ * @generated
+ */
+ protected List getModelChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject getParserElement() {
+ return resolveSemanticElement();
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIcon() {
+ EObject parserElement = getParserElement();
+ if(parserElement == null) {
+ return null;
+ }
+
+ List<View> views = DiagramEditPartsUtil.findViews(parserElement, getViewer());
+ for(View view : views) {
+ if(NameLabelIconHelper.showLabelIcon(view)) {
+ return UMLElementTypes.getImage(parserElement.eClass());
+ }
+ }
+ return null;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelText() {
+ String text = null;
+ EObject parserElement = getParserElement();
+ if(parserElement != null && getParser() != null) {
+ text = getParser().getPrintString(new EObjectAdapter(parserElement), getParserOptions().intValue());
+ }
+ if(text == null || text.length() == 0) {
+ text = defaultText;
+ }
+ return text;
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabelText(String text) {
+ setLabelTextHelper(getFigure(), text);
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public String getEditText() {
+ if(getParserElement() == null || getParser() == null) {
+ return ""; //$NON-NLS-1$
+ }
+ return getParser().getEditString(new EObjectAdapter(getParserElement()), getParserOptions().intValue());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean isEditable() {
+ return getParser() != null;
+ }
+
+ /**
+ * @generated
+ */
+ public ICellEditorValidator getEditTextValidator() {
+ return new ICellEditorValidator() {
+
+ public String isValid(final Object value) {
+ if(value instanceof String) {
+ final EObject element = getParserElement();
+ final IParser parser = getParser();
+ try {
+ IParserEditStatus valid = (IParserEditStatus)getEditingDomain().runExclusive(new RunnableWithResult.Impl() {
+
+ public void run() {
+ setResult(parser.isValidEditString(new EObjectAdapter(element), (String)value));
+ }
+ });
+ return valid.getCode() == ParserEditStatus.EDITABLE ? null : valid.getMessage();
+ } catch (InterruptedException ie) {
+ ie.printStackTrace();
+ }
+ }
+
+ // shouldn't get here
+ return null;
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ public IContentAssistProcessor getCompletionProcessor() {
+ if(getParserElement() == null || getParser() == null) {
+ return null;
+ }
+ return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
+ }
+
+ /**
+ * @generated
+ */
+ public ParserOptions getParserOptions() {
+ return ParserOptions.NONE;
+ }
+
+ /**
+ * @generated
+ */
+ public IParser getParser() {
+ if(parser == null) {
+ parser = UMLParserProvider.getParser(UMLElementTypes.LiteralNull_2097, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.diagram.composite.edit.parts.LiteralNullNameEditPart.VISUAL_ID));
+ }
+ return parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected DirectEditManager getManager() {
+ if(manager == null) {
+ setManager(new MultilineLabelDirectEditManager(this, MultilineLabelDirectEditManager.getTextCellEditorClass(this), UMLEditPartFactory.getTextCellEditorLocator(this)));
+ }
+ return manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setManager(DirectEditManager manager) {
+ this.manager = manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit() {
+ getManager().show();
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit(Point eventLocation) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(eventLocation.getSWTPoint());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void performDirectEdit(char initialCharacter) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(initialCharacter);
+ } else {
+ performDirectEdit();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEditRequest(Request request) {
+
+ final Request theRequest = request;
+
+ if(IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
+ directEditionMode = getDirectEditionType();
+ }
+ switch(directEditionMode) {
+ case IDirectEdition.NO_DIRECT_EDITION:
+ // no direct edition mode => does nothing
+ return;
+ case IDirectEdition.EXTENDED_DIRECT_EDITOR:
+ updateExtendedEditorConfiguration();
+ if(configuration == null || configuration.getLanguage() == null) {
+ performDefaultDirectEditorEdit(theRequest);
+ } else {
+ configuration.preEditAction(resolveSemanticElement());
+ Dialog dialog = null;
+ if(configuration instanceof IPopupEditorConfiguration) {
+ IPopupEditorHelper helper = ((IPopupEditorConfiguration)configuration).createPopupEditorHelper(this);
+ helper.showEditor();
+ return;
+ } else if(configuration instanceof IAdvancedEditorConfiguration) {
+ dialog = ((IAdvancedEditorConfiguration)configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
+ } else if(configuration instanceof IDirectEditorConfiguration) {
+ dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), ((IDirectEditorConfiguration)configuration).getTextToEdit(resolveSemanticElement()), (IDirectEditorConfiguration)configuration);
+ } else {
+ return;
+ }
+ final Dialog finalDialog = dialog;
+
+ if(Window.OK == dialog.open()) {
+ TransactionalEditingDomain domain = getEditingDomain();
+ RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
+
+ @Override
+ protected void doExecute() {
+ configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog)finalDialog).getValue());
+
+ }
+ };
+ domain.getCommandStack().execute(command);
+ }
+ }
+ break;
+ case IDirectEdition.DEFAULT_DIRECT_EDITOR:
+
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ break;
+ default:
+ break;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshLabel();
+ refreshFont();
+ refreshFontColor();
+ refreshUnderline();
+ refreshStrikeThrough();
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshLabel() {
+ EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
+ if(maskLabelPolicy == null) {
+ setLabelTextHelper(getFigure(), getLabelText());
+ setLabelIconHelper(getFigure(), getLabelIcon());
+ }
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshUnderline() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextUnderline(style.isUnderline());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshStrikeThrough() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextStrikeThrough(style.isStrikeThrough());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshFont() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null) {
+ FontData fontData = new FontData(style.getFontName(), style.getFontHeight(), (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
+ setFont(fontData);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setFontColor(Color color) {
+ getFigure().setForegroundColor(color);
+ }
+
+ /**
+ * @generated
+ */
+ protected void addSemanticListeners() {
+ if(getParser() instanceof ISemanticParser) {
+ EObject element = resolveSemanticElement();
+ parserElements = ((ISemanticParser)getParser()).getSemanticElementsBeingParsed(element);
+ for(int i = 0; i < parserElements.size(); i++) {
+ addListenerFilter("SemanticModel" + i, this, (EObject)parserElements.get(i)); //$NON-NLS-1$
+ }
+ } else {
+ super.addSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeSemanticListeners() {
+ if(parserElements != null) {
+ for(int i = 0; i < parserElements.size(); i++) {
+ removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
+ }
+ } else {
+ super.removeSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected AccessibleEditPart getAccessibleEditPart() {
+ if(accessibleEP == null) {
+ accessibleEP = new AccessibleGraphicalEditPart() {
+
+ public void getName(AccessibleEvent e) {
+ e.result = getLabelTextHelper(getFigure());
+ }
+ };
+ }
+ return accessibleEP;
+ }
+
+ /**
+ * @generated
+ */
+ private View getFontStyleOwnerView() {
+ return (View)getModel();
+ }
+
+ /**
+ * Returns the kind of associated editor for direct edition.
+ *
+ * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition
+ * @generated
+ */
+ public int getDirectEditionType() {
+ if(checkExtendedEditor()) {
+ initExtendedEditorConfiguration();
+ return IDirectEdition.EXTENDED_DIRECT_EDITOR;
+ }
+ if(checkDefaultEdition()) {
+ return IDirectEdition.DEFAULT_DIRECT_EDITOR;
+ }
+
+ // not a named element. no specific editor => do nothing
+ return IDirectEdition.NO_DIRECT_EDITION;
+ }
+
+ /**
+ * Checks if an extended editor is present.
+ *
+ * @return <code>true</code> if an extended editor is present.
+ * @generated
+ */
+ protected boolean checkExtendedEditor() {
+ if(resolveSemanticElement() != null) {
+ return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ return false;
+ }
+
+ /**
+ * Checks if a default direct edition is available
+ *
+ * @return <code>true</code> if a default direct edition is available
+ * @generated
+ */
+ protected boolean checkDefaultEdition() {
+ return (getParser() != null);
+ }
+
+ /**
+ * Initializes the extended editor configuration
+ *
+ * @generated
+ */
+ protected void initExtendedEditorConfiguration() {
+ if(configuration == null) {
+ final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("")) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else {
+ configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ }
+ }
+
+ /**
+ * Updates the preference configuration
+ *
+ * @generated
+ */
+ protected void updateExtendedEditorConfiguration() {
+ String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("") && languagePreferred != configuration.getLanguage()) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else if(IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
+ configuration = null;
+ }
+ }
+
+ /**
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
+ protected void performDefaultDirectEditorEdit(final Request theRequest) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void addNotationalListeners() {
+ super.addNotationalListeners();
+ addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeNotationalListeners() {
+ super.removeNotationalListeners();
+ removeListenerFilter("PrimaryView"); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void handleNotificationEvent(Notification event) {
+ refreshLabel();
+ Object feature = event.getFeature();
+ if(NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
+ Integer c = (Integer)event.getNewValue();
+ setFontColor(DiagramColorRegistry.getInstance().getColor(c));
+ } else if(NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
+ refreshUnderline();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
+ refreshStrikeThrough();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
+ refreshFont();
+ } else {
+ if(getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
+ refreshLabel();
+ }
+ if(getParser() instanceof ISemanticParser) {
+ ISemanticParser modelParser = (ISemanticParser)getParser();
+ if(modelParser.areSemanticElementsAffected(null, event)) {
+ removeSemanticListeners();
+ if(resolveSemanticElement() != null) {
+ addSemanticListeners();
+ }
+ refreshLabel();
+ }
+ }
+ }
+
+ if(event.getNewValue() instanceof EAnnotation && VisualInformationPapyrusConstant.DISPLAY_NAMELABELICON.equals(((EAnnotation)event.getNewValue()).getSource())) {
+ refreshLabel();
+ }
+
+ super.handleNotificationEvent(event);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createFigure() {
+ // Parent should assign one using setLabel() method
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ private static final String ADD_PARENT_MODEL = "AddParentModel";
+
+ /**
+ * @generated
+ */
+ public void activate() {
+ super.activate();
+ addOwnerElementListeners();
+ }
+
+ /**
+ * @generated
+ */
+ protected void addOwnerElementListeners() {
+ addListenerFilter(ADD_PARENT_MODEL, this, ((View)getParent().getModel())); //$NON-NLS-1$
+
+ }
+
+ /**
+ * @generated
+ */
+ public void deactivate() {
+ removeOwnerElementListeners();
+ super.deactivate();
+
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeOwnerElementListeners() {
+ removeListenerFilter(ADD_PARENT_MODEL);
+
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/LiteralStringEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/LiteralStringEditPart.java
new file mode 100644
index 00000000000..650ce1af971
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/LiteralStringEditPart.java
@@ -0,0 +1,5167 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.ArrayList;
+import java.util.LinkedList;
+import java.util.List;
+
+import org.eclipse.draw2d.ColorConstants;
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.RectangleFigure;
+import org.eclipse.draw2d.Shape;
+import org.eclipse.draw2d.StackLayout;
+import org.eclipse.emf.ecore.EStructuralFeature;
+import org.eclipse.gef.EditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.editpolicies.LayoutEditPolicy;
+import org.eclipse.gef.editpolicies.NonResizableEditPolicy;
+import org.eclipse.gef.requests.CreateRequest;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ShapeNodeEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.FigureUtilities;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.gef.ui.figures.DefaultSizeNodeFigure;
+import org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.jface.preference.PreferenceConverter;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.HyperLinkPopupBarEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.QualifiedNameDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.helper.PreferenceInitializerForElementHelper;
+import org.eclipse.papyrus.diagram.composite.edit.policies.LiteralStringItemSemanticEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorPlugin;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter;
+import org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.Font;
+import org.eclipse.swt.widgets.Display;
+
+/**
+ * @generated
+ */
+public class LiteralStringEditPart extends
+
+ShapeNodeEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 2098;
+
+ /**
+ * @generated
+ */
+ protected IFigure contentPane;
+
+ /**
+ * @generated
+ */
+ protected IFigure primaryShape;
+
+ /**
+ * @generated
+ */
+ public LiteralStringEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new LiteralStringItemSemanticEditPolicy());
+ installEditPolicy(EditPolicy.LAYOUT_ROLE, createLayoutEditPolicy());
+ installEditPolicy(QualifiedNameDisplayEditPolicy.QUALIFIED_NAME_POLICY, new QualifiedNameDisplayEditPolicy());
+ installEditPolicy(AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeNodeLabelDisplayEditPolicy());
+ installEditPolicy(EditPolicyRoles.POPUPBAR_ROLE, new HyperLinkPopupBarEditPolicy());
+ // XXX need an SCR to runtime to have another abstract superclass that would let children add reasonable editpolicies
+ // removeEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CONNECTION_HANDLES_ROLE);
+ }
+
+ /**
+ * @generated
+ */
+ protected LayoutEditPolicy createLayoutEditPolicy() {
+ org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy lep = new org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy() {
+
+ protected EditPolicy createChildEditPolicy(EditPart child) {
+ EditPolicy result = child.getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(result == null) {
+ result = new NonResizableEditPolicy();
+ }
+ return result;
+ }
+
+ protected Command getMoveChildrenCommand(Request request) {
+ return null;
+ }
+
+ protected Command getCreateCommand(CreateRequest request) {
+ return null;
+ }
+ };
+ return lep;
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createNodeShape() {
+ return primaryShape = new NamedElementDescriptor();
+ }
+
+ /**
+ * @generated
+ */
+ public NamedElementDescriptor getPrimaryShape() {
+ return (NamedElementDescriptor)primaryShape;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean addFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof LiteralStringNameEditPart) {
+ ((LiteralStringNameEditPart)childEditPart).setLabel(getPrimaryShape().getNamedElementNameLabel());
+ return true;
+ }
+
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean removeFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof LiteralStringNameEditPart) {
+ return true;
+ }
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected void addChildVisual(EditPart childEditPart, int index) {
+ if(addFixedChild(childEditPart)) {
+ return;
+ }
+ super.addChildVisual(childEditPart, -1);
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeChildVisual(EditPart childEditPart) {
+ if(removeFixedChild(childEditPart)) {
+ return;
+ }
+ super.removeChildVisual(childEditPart);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure getContentPaneFor(IGraphicalEditPart editPart) {
+ return getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ protected NodeFigure createNodePlate() {
+ String prefElementId = "LiteralString";
+ IPreferenceStore store = UMLDiagramEditorPlugin.getInstance().getPreferenceStore();
+ String preferenceConstantWitdh = PreferenceInitializerForElementHelper.getpreferenceKey(getNotationView(), prefElementId, PreferenceConstantHelper.WIDTH);
+ String preferenceConstantHeight = PreferenceInitializerForElementHelper.getpreferenceKey(getNotationView(), prefElementId, PreferenceConstantHelper.HEIGHT);
+ DefaultSizeNodeFigure result = new DefaultSizeNodeFigure(store.getInt(preferenceConstantWitdh), store.getInt(preferenceConstantHeight));
+
+ return result;
+ }
+
+ /**
+ * Creates figure for this edit part.
+ *
+ * Body of this method does not depend on settings in generation model
+ * so you may safely remove <i>generated</i> tag and modify it.
+ *
+ * @generated
+ */
+ protected NodeFigure createNodeFigure() {
+ NodeFigure figure = createNodePlate();
+ figure.setLayoutManager(new StackLayout());
+ IFigure shape = createNodeShape();
+ figure.add(shape);
+ contentPane = setupContentPane(shape);
+ return figure;
+ }
+
+ /**
+ * Default implementation treats passed figure as content pane.
+ * Respects layout one may have set for generated figure.
+ *
+ * @param nodeShape
+ * instance of generated figure class
+ * @generated
+ */
+ protected IFigure setupContentPane(IFigure nodeShape) {
+ if(nodeShape.getLayoutManager() == null) {
+ ConstrainedToolbarLayout layout = new ConstrainedToolbarLayout();
+ layout.setSpacing(5);
+ nodeShape.setLayoutManager(layout);
+ }
+ return nodeShape; // use nodeShape itself as contentPane
+ }
+
+ /**
+ * @generated
+ */
+ public IFigure getContentPane() {
+ if(contentPane != null) {
+ return contentPane;
+ }
+ return super.getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ protected void setForegroundColor(Color color) {
+ if(primaryShape != null) {
+ primaryShape.setForegroundColor(color);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLineWidth(int width) {
+ if(primaryShape instanceof Shape) {
+ ((Shape)primaryShape).setLineWidth(width);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLineType(int style) {
+ if(primaryShape instanceof Shape) {
+ ((Shape)primaryShape).setLineStyle(style);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public EditPart getPrimaryChildEditPart() {
+ return getChildBySemanticHint(UMLVisualIDRegistry.getType(LiteralStringNameEditPart.VISUAL_ID));
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnSource() {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(11);
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ types.add(UMLElementTypes.Substitution_4011);
+ types.add(UMLElementTypes.Realization_4006);
+ types.add(UMLElementTypes.Manifestation_4012);
+ types.add(UMLElementTypes.Abstraction_4007);
+ types.add(UMLElementTypes.Usage_4008);
+ types.add(UMLElementTypes.Deployment_4009);
+ types.add(UMLElementTypes.Dependency_4017);
+ types.add(UMLElementTypes.Dependency_4010);
+ types.add(UMLElementTypes.InformationFlow_4021);
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnSourceAndTarget(IGraphicalEditPart targetEditPart) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.LiteralStringEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.LiteralStringEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.LiteralStringEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.LiteralStringEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.LiteralStringEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.LiteralStringEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.LiteralStringEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.LiteralStringEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.LiteralStringEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.LiteralStringEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.LiteralStringEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMATypesForTarget(IElementType relationshipType) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(relationshipType == UMLElementTypes.ComponentRealization_4004) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InterfaceRealization_4005) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Substitution_4011) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Realization_4006) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Manifestation_4012) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Abstraction_4007) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Usage_4008) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Deployment_4009) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4017) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4010) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InformationFlow_4021) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnTarget() {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(15);
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ types.add(UMLElementTypes.Substitution_4011);
+ types.add(UMLElementTypes.Realization_4006);
+ types.add(UMLElementTypes.Manifestation_4012);
+ types.add(UMLElementTypes.Abstraction_4007);
+ types.add(UMLElementTypes.Usage_4008);
+ types.add(UMLElementTypes.Deployment_4009);
+ types.add(UMLElementTypes.Dependency_4017);
+ types.add(UMLElementTypes.Dependency_4010);
+ types.add(UMLElementTypes.TimeObservationEvent_4018);
+ types.add(UMLElementTypes.DurationObservationEvent_4019);
+ types.add(UMLElementTypes.InformationFlow_4021);
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMATypesForSource(IElementType relationshipType) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(relationshipType == UMLElementTypes.CommentAnnotatedElement_4002) {
+ types.add(UMLElementTypes.Comment_2109);
+ types.add(UMLElementTypes.Comment_3097);
+ } else if(relationshipType == UMLElementTypes.ConstraintConstrainedElement_4003) {
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.ComponentRealization_4004) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InterfaceRealization_4005) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Substitution_4011) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Realization_4006) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Manifestation_4012) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Abstraction_4007) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Usage_4008) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Deployment_4009) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4017) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4010) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.TimeObservationEvent_4018) {
+ types.add(UMLElementTypes.TimeObservation_2094);
+ } else if(relationshipType == UMLElementTypes.DurationObservationEvent_4019) {
+ types.add(UMLElementTypes.DurationObservation_2093);
+ } else if(relationshipType == UMLElementTypes.InformationFlow_4021) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public class NamedElementDescriptor extends RectangleFigure {
+
+ /**
+ * @generated
+ */
+ private WrappingLabel fNamedElementNameLabel;
+
+ /**
+ * @generated
+ */
+ public NamedElementDescriptor() {
+ this.setLineWidth(1);
+ this.setForegroundColor(ColorConstants.black);
+ createContents();
+ }
+
+ /**
+ * @generated
+ */
+ private void createContents() {
+
+ fNamedElementNameLabel = new WrappingLabel();
+ fNamedElementNameLabel.setText("");
+ fNamedElementNameLabel.setForegroundColor(ColorConstants.black);
+
+ fNamedElementNameLabel.setFont(FNAMEDELEMENTNAMELABEL_FONT);
+
+ this.add(fNamedElementNameLabel);
+
+ }
+
+ /**
+ * @generated
+ */
+ private boolean myUseLocalCoordinates = false;
+
+ /**
+ * @generated
+ */
+ protected boolean useLocalCoordinates() {
+ return myUseLocalCoordinates;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setUseLocalCoordinates(boolean useLocalCoordinates) {
+ myUseLocalCoordinates = useLocalCoordinates;
+ }
+
+ /**
+ * @generated
+ */
+ public WrappingLabel getNamedElementNameLabel() {
+ return fNamedElementNameLabel;
+ }
+
+ }
+
+ /**
+ * @generated
+ */
+ static final Font FNAMEDELEMENTNAMELABEL_FONT = new Font(Display.getCurrent(), "Arial", 10, SWT.BOLD);
+
+ /**
+ * @generated
+ */
+ @Override
+ public Object getPreferredValue(EStructuralFeature feature) {
+ IPreferenceStore preferenceStore = (IPreferenceStore)getDiagramPreferencesHint().getPreferenceStore();
+ Object result = null;
+
+ if(feature == NotationPackage.eINSTANCE.getLineStyle_LineColor() || feature == NotationPackage.eINSTANCE.getFontStyle_FontColor() || feature == NotationPackage.eINSTANCE.getFillStyle_FillColor()) {
+ String prefColor = null;
+ if(feature == NotationPackage.eINSTANCE.getLineStyle_LineColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("LiteralString", PreferenceConstantHelper.COLOR_LINE);
+ } else if(feature == NotationPackage.eINSTANCE.getFontStyle_FontColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("LiteralString", PreferenceConstantHelper.COLOR_FONT);
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_FillColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("LiteralString", PreferenceConstantHelper.COLOR_FILL);
+ }
+ result = FigureUtilities.RGBToInteger(PreferenceConverter.getColor((IPreferenceStore)preferenceStore, prefColor));
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_Transparency() || feature == NotationPackage.eINSTANCE.getFillStyle_Gradient()) {
+ String prefGradient = PreferenceConstantHelper.getElementConstant("LiteralString", PreferenceConstantHelper.COLOR_GRADIENT);
+ GradientPreferenceConverter gradientPreferenceConverter = new GradientPreferenceConverter(preferenceStore.getString(prefGradient));
+ if(feature == NotationPackage.eINSTANCE.getFillStyle_Transparency()) {
+ result = new Integer(gradientPreferenceConverter.getTransparency());
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_Gradient()) {
+ result = gradientPreferenceConverter.getGradientData();
+ }
+ }
+
+ if(result == null) {
+ result = getStructuralFeatureValue(feature);
+ }
+ return result;
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/LiteralStringNameEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/LiteralStringNameEditPart.java
new file mode 100644
index 00000000000..c983e2f17a8
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/LiteralStringNameEditPart.java
@@ -0,0 +1,791 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EAnnotation;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.emf.transaction.RunnableWithResult;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.AccessibleEditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.requests.DirectEditRequest;
+import org.eclipse.gef.tools.DirectEditManager;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.CompartmentEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
+import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
+import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
+import org.eclipse.gmf.runtime.notation.FontStyle;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
+import org.eclipse.jface.viewers.ICellEditorValidator;
+import org.eclipse.jface.window.Window;
+import org.eclipse.papyrus.diagram.common.directedit.MultilineLabelDirectEditManager;
+import org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition;
+import org.eclipse.papyrus.diagram.common.editpolicies.IMaskManagedLabelEditPolicy;
+import org.eclipse.papyrus.diagram.common.figure.node.ILabelFigure;
+import org.eclipse.papyrus.diagram.common.util.DiagramEditPartsUtil;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLTextSelectionEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.diagram.composite.providers.UMLParserProvider;
+import org.eclipse.papyrus.extensionpoints.editors.Activator;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
+import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
+import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
+import org.eclipse.papyrus.umlutils.ui.VisualInformationPapyrusConstant;
+import org.eclipse.papyrus.umlutils.ui.helper.NameLabelIconHelper;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.AccessibleEvent;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.FontData;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.ui.PlatformUI;
+
+/**
+ * @generated
+ */
+public class LiteralStringNameEditPart extends CompartmentEditPart implements ITextAwareEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 5181;
+
+ /**
+ * @generated
+ */
+ private DirectEditManager manager;
+
+ /**
+ * @generated
+ */
+ private IParser parser;
+
+ /**
+ * @generated
+ */
+ private List<?> parserElements;
+
+ /**
+ * @generated
+ */
+ private String defaultText;
+
+ /**
+ * direct edition mode (default, undefined, registered editor, etc.)
+ *
+ * @generated
+ */
+ protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
+
+ /**
+ * configuration from a registered edit dialog
+ *
+ * @generated
+ */
+ protected IDirectEditorConfiguration configuration;
+
+ /**
+ * @generated
+ */
+ public LiteralStringNameEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
+ installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new CompositeStructureDiagramEditPart.NodeLabelDragPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelTextHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getText();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getText();
+ } else {
+ return ((Label)figure).getText();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelTextHelper(IFigure figure, String text) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setText(text);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setText(text);
+ } else {
+ ((Label)figure).setText(text);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIconHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getIcon();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getIcon();
+ } else {
+ return ((Label)figure).getIcon();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelIconHelper(IFigure figure, Image icon) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setIcon(icon);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setIcon(icon);
+ } else {
+ ((Label)figure).setIcon(icon);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabel(WrappingLabel figure) {
+ unregisterVisuals();
+ setFigure(figure);
+ defaultText = getLabelTextHelper(figure);
+ registerVisuals();
+ refreshVisuals();
+ }
+
+ /**
+ * @generated
+ */
+ protected List getModelChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject getParserElement() {
+ return resolveSemanticElement();
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIcon() {
+ EObject parserElement = getParserElement();
+ if(parserElement == null) {
+ return null;
+ }
+
+ List<View> views = DiagramEditPartsUtil.findViews(parserElement, getViewer());
+ for(View view : views) {
+ if(NameLabelIconHelper.showLabelIcon(view)) {
+ return UMLElementTypes.getImage(parserElement.eClass());
+ }
+ }
+ return null;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelText() {
+ String text = null;
+ EObject parserElement = getParserElement();
+ if(parserElement != null && getParser() != null) {
+ text = getParser().getPrintString(new EObjectAdapter(parserElement), getParserOptions().intValue());
+ }
+ if(text == null || text.length() == 0) {
+ text = defaultText;
+ }
+ return text;
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabelText(String text) {
+ setLabelTextHelper(getFigure(), text);
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public String getEditText() {
+ if(getParserElement() == null || getParser() == null) {
+ return ""; //$NON-NLS-1$
+ }
+ return getParser().getEditString(new EObjectAdapter(getParserElement()), getParserOptions().intValue());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean isEditable() {
+ return getParser() != null;
+ }
+
+ /**
+ * @generated
+ */
+ public ICellEditorValidator getEditTextValidator() {
+ return new ICellEditorValidator() {
+
+ public String isValid(final Object value) {
+ if(value instanceof String) {
+ final EObject element = getParserElement();
+ final IParser parser = getParser();
+ try {
+ IParserEditStatus valid = (IParserEditStatus)getEditingDomain().runExclusive(new RunnableWithResult.Impl() {
+
+ public void run() {
+ setResult(parser.isValidEditString(new EObjectAdapter(element), (String)value));
+ }
+ });
+ return valid.getCode() == ParserEditStatus.EDITABLE ? null : valid.getMessage();
+ } catch (InterruptedException ie) {
+ ie.printStackTrace();
+ }
+ }
+
+ // shouldn't get here
+ return null;
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ public IContentAssistProcessor getCompletionProcessor() {
+ if(getParserElement() == null || getParser() == null) {
+ return null;
+ }
+ return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
+ }
+
+ /**
+ * @generated
+ */
+ public ParserOptions getParserOptions() {
+ return ParserOptions.NONE;
+ }
+
+ /**
+ * @generated
+ */
+ public IParser getParser() {
+ if(parser == null) {
+ parser = UMLParserProvider.getParser(UMLElementTypes.LiteralString_2098, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.diagram.composite.edit.parts.LiteralStringNameEditPart.VISUAL_ID));
+ }
+ return parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected DirectEditManager getManager() {
+ if(manager == null) {
+ setManager(new MultilineLabelDirectEditManager(this, MultilineLabelDirectEditManager.getTextCellEditorClass(this), UMLEditPartFactory.getTextCellEditorLocator(this)));
+ }
+ return manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setManager(DirectEditManager manager) {
+ this.manager = manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit() {
+ getManager().show();
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit(Point eventLocation) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(eventLocation.getSWTPoint());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void performDirectEdit(char initialCharacter) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(initialCharacter);
+ } else {
+ performDirectEdit();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEditRequest(Request request) {
+
+ final Request theRequest = request;
+
+ if(IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
+ directEditionMode = getDirectEditionType();
+ }
+ switch(directEditionMode) {
+ case IDirectEdition.NO_DIRECT_EDITION:
+ // no direct edition mode => does nothing
+ return;
+ case IDirectEdition.EXTENDED_DIRECT_EDITOR:
+ updateExtendedEditorConfiguration();
+ if(configuration == null || configuration.getLanguage() == null) {
+ performDefaultDirectEditorEdit(theRequest);
+ } else {
+ configuration.preEditAction(resolveSemanticElement());
+ Dialog dialog = null;
+ if(configuration instanceof IPopupEditorConfiguration) {
+ IPopupEditorHelper helper = ((IPopupEditorConfiguration)configuration).createPopupEditorHelper(this);
+ helper.showEditor();
+ return;
+ } else if(configuration instanceof IAdvancedEditorConfiguration) {
+ dialog = ((IAdvancedEditorConfiguration)configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
+ } else if(configuration instanceof IDirectEditorConfiguration) {
+ dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), ((IDirectEditorConfiguration)configuration).getTextToEdit(resolveSemanticElement()), (IDirectEditorConfiguration)configuration);
+ } else {
+ return;
+ }
+ final Dialog finalDialog = dialog;
+
+ if(Window.OK == dialog.open()) {
+ TransactionalEditingDomain domain = getEditingDomain();
+ RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
+
+ @Override
+ protected void doExecute() {
+ configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog)finalDialog).getValue());
+
+ }
+ };
+ domain.getCommandStack().execute(command);
+ }
+ }
+ break;
+ case IDirectEdition.DEFAULT_DIRECT_EDITOR:
+
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ break;
+ default:
+ break;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshLabel();
+ refreshFont();
+ refreshFontColor();
+ refreshUnderline();
+ refreshStrikeThrough();
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshLabel() {
+ EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
+ if(maskLabelPolicy == null) {
+ setLabelTextHelper(getFigure(), getLabelText());
+ setLabelIconHelper(getFigure(), getLabelIcon());
+ }
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshUnderline() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextUnderline(style.isUnderline());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshStrikeThrough() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextStrikeThrough(style.isStrikeThrough());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshFont() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null) {
+ FontData fontData = new FontData(style.getFontName(), style.getFontHeight(), (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
+ setFont(fontData);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setFontColor(Color color) {
+ getFigure().setForegroundColor(color);
+ }
+
+ /**
+ * @generated
+ */
+ protected void addSemanticListeners() {
+ if(getParser() instanceof ISemanticParser) {
+ EObject element = resolveSemanticElement();
+ parserElements = ((ISemanticParser)getParser()).getSemanticElementsBeingParsed(element);
+ for(int i = 0; i < parserElements.size(); i++) {
+ addListenerFilter("SemanticModel" + i, this, (EObject)parserElements.get(i)); //$NON-NLS-1$
+ }
+ } else {
+ super.addSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeSemanticListeners() {
+ if(parserElements != null) {
+ for(int i = 0; i < parserElements.size(); i++) {
+ removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
+ }
+ } else {
+ super.removeSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected AccessibleEditPart getAccessibleEditPart() {
+ if(accessibleEP == null) {
+ accessibleEP = new AccessibleGraphicalEditPart() {
+
+ public void getName(AccessibleEvent e) {
+ e.result = getLabelTextHelper(getFigure());
+ }
+ };
+ }
+ return accessibleEP;
+ }
+
+ /**
+ * @generated
+ */
+ private View getFontStyleOwnerView() {
+ return (View)getModel();
+ }
+
+ /**
+ * Returns the kind of associated editor for direct edition.
+ *
+ * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition
+ * @generated
+ */
+ public int getDirectEditionType() {
+ if(checkExtendedEditor()) {
+ initExtendedEditorConfiguration();
+ return IDirectEdition.EXTENDED_DIRECT_EDITOR;
+ }
+ if(checkDefaultEdition()) {
+ return IDirectEdition.DEFAULT_DIRECT_EDITOR;
+ }
+
+ // not a named element. no specific editor => do nothing
+ return IDirectEdition.NO_DIRECT_EDITION;
+ }
+
+ /**
+ * Checks if an extended editor is present.
+ *
+ * @return <code>true</code> if an extended editor is present.
+ * @generated
+ */
+ protected boolean checkExtendedEditor() {
+ if(resolveSemanticElement() != null) {
+ return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ return false;
+ }
+
+ /**
+ * Checks if a default direct edition is available
+ *
+ * @return <code>true</code> if a default direct edition is available
+ * @generated
+ */
+ protected boolean checkDefaultEdition() {
+ return (getParser() != null);
+ }
+
+ /**
+ * Initializes the extended editor configuration
+ *
+ * @generated
+ */
+ protected void initExtendedEditorConfiguration() {
+ if(configuration == null) {
+ final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("")) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else {
+ configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ }
+ }
+
+ /**
+ * Updates the preference configuration
+ *
+ * @generated
+ */
+ protected void updateExtendedEditorConfiguration() {
+ String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("") && languagePreferred != configuration.getLanguage()) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else if(IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
+ configuration = null;
+ }
+ }
+
+ /**
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
+ protected void performDefaultDirectEditorEdit(final Request theRequest) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void addNotationalListeners() {
+ super.addNotationalListeners();
+ addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeNotationalListeners() {
+ super.removeNotationalListeners();
+ removeListenerFilter("PrimaryView"); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void handleNotificationEvent(Notification event) {
+ refreshLabel();
+ Object feature = event.getFeature();
+ if(NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
+ Integer c = (Integer)event.getNewValue();
+ setFontColor(DiagramColorRegistry.getInstance().getColor(c));
+ } else if(NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
+ refreshUnderline();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
+ refreshStrikeThrough();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
+ refreshFont();
+ } else {
+ if(getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
+ refreshLabel();
+ }
+ if(getParser() instanceof ISemanticParser) {
+ ISemanticParser modelParser = (ISemanticParser)getParser();
+ if(modelParser.areSemanticElementsAffected(null, event)) {
+ removeSemanticListeners();
+ if(resolveSemanticElement() != null) {
+ addSemanticListeners();
+ }
+ refreshLabel();
+ }
+ }
+ }
+
+ if(event.getNewValue() instanceof EAnnotation && VisualInformationPapyrusConstant.DISPLAY_NAMELABELICON.equals(((EAnnotation)event.getNewValue()).getSource())) {
+ refreshLabel();
+ }
+
+ super.handleNotificationEvent(event);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createFigure() {
+ // Parent should assign one using setLabel() method
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ private static final String ADD_PARENT_MODEL = "AddParentModel";
+
+ /**
+ * @generated
+ */
+ public void activate() {
+ super.activate();
+ addOwnerElementListeners();
+ }
+
+ /**
+ * @generated
+ */
+ protected void addOwnerElementListeners() {
+ addListenerFilter(ADD_PARENT_MODEL, this, ((View)getParent().getModel())); //$NON-NLS-1$
+
+ }
+
+ /**
+ * @generated
+ */
+ public void deactivate() {
+ removeOwnerElementListeners();
+ super.deactivate();
+
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeOwnerElementListeners() {
+ removeListenerFilter(ADD_PARENT_MODEL);
+
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/LiteralUnlimitedNaturalEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/LiteralUnlimitedNaturalEditPart.java
new file mode 100644
index 00000000000..d05906dbff1
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/LiteralUnlimitedNaturalEditPart.java
@@ -0,0 +1,5167 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.ArrayList;
+import java.util.LinkedList;
+import java.util.List;
+
+import org.eclipse.draw2d.ColorConstants;
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.RectangleFigure;
+import org.eclipse.draw2d.Shape;
+import org.eclipse.draw2d.StackLayout;
+import org.eclipse.emf.ecore.EStructuralFeature;
+import org.eclipse.gef.EditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.editpolicies.LayoutEditPolicy;
+import org.eclipse.gef.editpolicies.NonResizableEditPolicy;
+import org.eclipse.gef.requests.CreateRequest;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ShapeNodeEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.FigureUtilities;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.gef.ui.figures.DefaultSizeNodeFigure;
+import org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.jface.preference.PreferenceConverter;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.HyperLinkPopupBarEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.QualifiedNameDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.helper.PreferenceInitializerForElementHelper;
+import org.eclipse.papyrus.diagram.composite.edit.policies.LiteralUnlimitedNaturalItemSemanticEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorPlugin;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter;
+import org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.Font;
+import org.eclipse.swt.widgets.Display;
+
+/**
+ * @generated
+ */
+public class LiteralUnlimitedNaturalEditPart extends
+
+ShapeNodeEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 2099;
+
+ /**
+ * @generated
+ */
+ protected IFigure contentPane;
+
+ /**
+ * @generated
+ */
+ protected IFigure primaryShape;
+
+ /**
+ * @generated
+ */
+ public LiteralUnlimitedNaturalEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new LiteralUnlimitedNaturalItemSemanticEditPolicy());
+ installEditPolicy(EditPolicy.LAYOUT_ROLE, createLayoutEditPolicy());
+ installEditPolicy(QualifiedNameDisplayEditPolicy.QUALIFIED_NAME_POLICY, new QualifiedNameDisplayEditPolicy());
+ installEditPolicy(AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeNodeLabelDisplayEditPolicy());
+ installEditPolicy(EditPolicyRoles.POPUPBAR_ROLE, new HyperLinkPopupBarEditPolicy());
+ // XXX need an SCR to runtime to have another abstract superclass that would let children add reasonable editpolicies
+ // removeEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CONNECTION_HANDLES_ROLE);
+ }
+
+ /**
+ * @generated
+ */
+ protected LayoutEditPolicy createLayoutEditPolicy() {
+ org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy lep = new org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy() {
+
+ protected EditPolicy createChildEditPolicy(EditPart child) {
+ EditPolicy result = child.getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(result == null) {
+ result = new NonResizableEditPolicy();
+ }
+ return result;
+ }
+
+ protected Command getMoveChildrenCommand(Request request) {
+ return null;
+ }
+
+ protected Command getCreateCommand(CreateRequest request) {
+ return null;
+ }
+ };
+ return lep;
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createNodeShape() {
+ return primaryShape = new NamedElementDescriptor();
+ }
+
+ /**
+ * @generated
+ */
+ public NamedElementDescriptor getPrimaryShape() {
+ return (NamedElementDescriptor)primaryShape;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean addFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof LiteralUnlimitedNaturalNameEditPart) {
+ ((LiteralUnlimitedNaturalNameEditPart)childEditPart).setLabel(getPrimaryShape().getNamedElementNameLabel());
+ return true;
+ }
+
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean removeFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof LiteralUnlimitedNaturalNameEditPart) {
+ return true;
+ }
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected void addChildVisual(EditPart childEditPart, int index) {
+ if(addFixedChild(childEditPart)) {
+ return;
+ }
+ super.addChildVisual(childEditPart, -1);
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeChildVisual(EditPart childEditPart) {
+ if(removeFixedChild(childEditPart)) {
+ return;
+ }
+ super.removeChildVisual(childEditPart);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure getContentPaneFor(IGraphicalEditPart editPart) {
+ return getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ protected NodeFigure createNodePlate() {
+ String prefElementId = "LiteralUnlimitedNatural";
+ IPreferenceStore store = UMLDiagramEditorPlugin.getInstance().getPreferenceStore();
+ String preferenceConstantWitdh = PreferenceInitializerForElementHelper.getpreferenceKey(getNotationView(), prefElementId, PreferenceConstantHelper.WIDTH);
+ String preferenceConstantHeight = PreferenceInitializerForElementHelper.getpreferenceKey(getNotationView(), prefElementId, PreferenceConstantHelper.HEIGHT);
+ DefaultSizeNodeFigure result = new DefaultSizeNodeFigure(store.getInt(preferenceConstantWitdh), store.getInt(preferenceConstantHeight));
+
+ return result;
+ }
+
+ /**
+ * Creates figure for this edit part.
+ *
+ * Body of this method does not depend on settings in generation model
+ * so you may safely remove <i>generated</i> tag and modify it.
+ *
+ * @generated
+ */
+ protected NodeFigure createNodeFigure() {
+ NodeFigure figure = createNodePlate();
+ figure.setLayoutManager(new StackLayout());
+ IFigure shape = createNodeShape();
+ figure.add(shape);
+ contentPane = setupContentPane(shape);
+ return figure;
+ }
+
+ /**
+ * Default implementation treats passed figure as content pane.
+ * Respects layout one may have set for generated figure.
+ *
+ * @param nodeShape
+ * instance of generated figure class
+ * @generated
+ */
+ protected IFigure setupContentPane(IFigure nodeShape) {
+ if(nodeShape.getLayoutManager() == null) {
+ ConstrainedToolbarLayout layout = new ConstrainedToolbarLayout();
+ layout.setSpacing(5);
+ nodeShape.setLayoutManager(layout);
+ }
+ return nodeShape; // use nodeShape itself as contentPane
+ }
+
+ /**
+ * @generated
+ */
+ public IFigure getContentPane() {
+ if(contentPane != null) {
+ return contentPane;
+ }
+ return super.getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ protected void setForegroundColor(Color color) {
+ if(primaryShape != null) {
+ primaryShape.setForegroundColor(color);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLineWidth(int width) {
+ if(primaryShape instanceof Shape) {
+ ((Shape)primaryShape).setLineWidth(width);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLineType(int style) {
+ if(primaryShape instanceof Shape) {
+ ((Shape)primaryShape).setLineStyle(style);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public EditPart getPrimaryChildEditPart() {
+ return getChildBySemanticHint(UMLVisualIDRegistry.getType(LiteralUnlimitedNaturalNameEditPart.VISUAL_ID));
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnSource() {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(11);
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ types.add(UMLElementTypes.Substitution_4011);
+ types.add(UMLElementTypes.Realization_4006);
+ types.add(UMLElementTypes.Manifestation_4012);
+ types.add(UMLElementTypes.Abstraction_4007);
+ types.add(UMLElementTypes.Usage_4008);
+ types.add(UMLElementTypes.Deployment_4009);
+ types.add(UMLElementTypes.Dependency_4017);
+ types.add(UMLElementTypes.Dependency_4010);
+ types.add(UMLElementTypes.InformationFlow_4021);
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnSourceAndTarget(IGraphicalEditPart targetEditPart) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMATypesForTarget(IElementType relationshipType) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(relationshipType == UMLElementTypes.ComponentRealization_4004) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InterfaceRealization_4005) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Substitution_4011) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Realization_4006) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Manifestation_4012) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Abstraction_4007) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Usage_4008) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Deployment_4009) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4017) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4010) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InformationFlow_4021) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnTarget() {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(15);
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ types.add(UMLElementTypes.Substitution_4011);
+ types.add(UMLElementTypes.Realization_4006);
+ types.add(UMLElementTypes.Manifestation_4012);
+ types.add(UMLElementTypes.Abstraction_4007);
+ types.add(UMLElementTypes.Usage_4008);
+ types.add(UMLElementTypes.Deployment_4009);
+ types.add(UMLElementTypes.Dependency_4017);
+ types.add(UMLElementTypes.Dependency_4010);
+ types.add(UMLElementTypes.TimeObservationEvent_4018);
+ types.add(UMLElementTypes.DurationObservationEvent_4019);
+ types.add(UMLElementTypes.InformationFlow_4021);
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMATypesForSource(IElementType relationshipType) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(relationshipType == UMLElementTypes.CommentAnnotatedElement_4002) {
+ types.add(UMLElementTypes.Comment_2109);
+ types.add(UMLElementTypes.Comment_3097);
+ } else if(relationshipType == UMLElementTypes.ConstraintConstrainedElement_4003) {
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.ComponentRealization_4004) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InterfaceRealization_4005) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Substitution_4011) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Realization_4006) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Manifestation_4012) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Abstraction_4007) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Usage_4008) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Deployment_4009) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4017) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4010) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.TimeObservationEvent_4018) {
+ types.add(UMLElementTypes.TimeObservation_2094);
+ } else if(relationshipType == UMLElementTypes.DurationObservationEvent_4019) {
+ types.add(UMLElementTypes.DurationObservation_2093);
+ } else if(relationshipType == UMLElementTypes.InformationFlow_4021) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public class NamedElementDescriptor extends RectangleFigure {
+
+ /**
+ * @generated
+ */
+ private WrappingLabel fNamedElementNameLabel;
+
+ /**
+ * @generated
+ */
+ public NamedElementDescriptor() {
+ this.setLineWidth(1);
+ this.setForegroundColor(ColorConstants.black);
+ createContents();
+ }
+
+ /**
+ * @generated
+ */
+ private void createContents() {
+
+ fNamedElementNameLabel = new WrappingLabel();
+ fNamedElementNameLabel.setText("");
+ fNamedElementNameLabel.setForegroundColor(ColorConstants.black);
+
+ fNamedElementNameLabel.setFont(FNAMEDELEMENTNAMELABEL_FONT);
+
+ this.add(fNamedElementNameLabel);
+
+ }
+
+ /**
+ * @generated
+ */
+ private boolean myUseLocalCoordinates = false;
+
+ /**
+ * @generated
+ */
+ protected boolean useLocalCoordinates() {
+ return myUseLocalCoordinates;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setUseLocalCoordinates(boolean useLocalCoordinates) {
+ myUseLocalCoordinates = useLocalCoordinates;
+ }
+
+ /**
+ * @generated
+ */
+ public WrappingLabel getNamedElementNameLabel() {
+ return fNamedElementNameLabel;
+ }
+
+ }
+
+ /**
+ * @generated
+ */
+ static final Font FNAMEDELEMENTNAMELABEL_FONT = new Font(Display.getCurrent(), "Arial", 10, SWT.BOLD);
+
+ /**
+ * @generated
+ */
+ @Override
+ public Object getPreferredValue(EStructuralFeature feature) {
+ IPreferenceStore preferenceStore = (IPreferenceStore)getDiagramPreferencesHint().getPreferenceStore();
+ Object result = null;
+
+ if(feature == NotationPackage.eINSTANCE.getLineStyle_LineColor() || feature == NotationPackage.eINSTANCE.getFontStyle_FontColor() || feature == NotationPackage.eINSTANCE.getFillStyle_FillColor()) {
+ String prefColor = null;
+ if(feature == NotationPackage.eINSTANCE.getLineStyle_LineColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("LiteralUnlimitedNatural", PreferenceConstantHelper.COLOR_LINE);
+ } else if(feature == NotationPackage.eINSTANCE.getFontStyle_FontColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("LiteralUnlimitedNatural", PreferenceConstantHelper.COLOR_FONT);
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_FillColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("LiteralUnlimitedNatural", PreferenceConstantHelper.COLOR_FILL);
+ }
+ result = FigureUtilities.RGBToInteger(PreferenceConverter.getColor((IPreferenceStore)preferenceStore, prefColor));
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_Transparency() || feature == NotationPackage.eINSTANCE.getFillStyle_Gradient()) {
+ String prefGradient = PreferenceConstantHelper.getElementConstant("LiteralUnlimitedNatural", PreferenceConstantHelper.COLOR_GRADIENT);
+ GradientPreferenceConverter gradientPreferenceConverter = new GradientPreferenceConverter(preferenceStore.getString(prefGradient));
+ if(feature == NotationPackage.eINSTANCE.getFillStyle_Transparency()) {
+ result = new Integer(gradientPreferenceConverter.getTransparency());
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_Gradient()) {
+ result = gradientPreferenceConverter.getGradientData();
+ }
+ }
+
+ if(result == null) {
+ result = getStructuralFeatureValue(feature);
+ }
+ return result;
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/LiteralUnlimitedNaturalNameEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/LiteralUnlimitedNaturalNameEditPart.java
new file mode 100644
index 00000000000..b7c3ad89a6f
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/LiteralUnlimitedNaturalNameEditPart.java
@@ -0,0 +1,791 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EAnnotation;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.emf.transaction.RunnableWithResult;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.AccessibleEditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.requests.DirectEditRequest;
+import org.eclipse.gef.tools.DirectEditManager;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.CompartmentEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
+import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
+import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
+import org.eclipse.gmf.runtime.notation.FontStyle;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
+import org.eclipse.jface.viewers.ICellEditorValidator;
+import org.eclipse.jface.window.Window;
+import org.eclipse.papyrus.diagram.common.directedit.MultilineLabelDirectEditManager;
+import org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition;
+import org.eclipse.papyrus.diagram.common.editpolicies.IMaskManagedLabelEditPolicy;
+import org.eclipse.papyrus.diagram.common.figure.node.ILabelFigure;
+import org.eclipse.papyrus.diagram.common.util.DiagramEditPartsUtil;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLTextSelectionEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.diagram.composite.providers.UMLParserProvider;
+import org.eclipse.papyrus.extensionpoints.editors.Activator;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
+import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
+import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
+import org.eclipse.papyrus.umlutils.ui.VisualInformationPapyrusConstant;
+import org.eclipse.papyrus.umlutils.ui.helper.NameLabelIconHelper;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.AccessibleEvent;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.FontData;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.ui.PlatformUI;
+
+/**
+ * @generated
+ */
+public class LiteralUnlimitedNaturalNameEditPart extends CompartmentEditPart implements ITextAwareEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 5182;
+
+ /**
+ * @generated
+ */
+ private DirectEditManager manager;
+
+ /**
+ * @generated
+ */
+ private IParser parser;
+
+ /**
+ * @generated
+ */
+ private List<?> parserElements;
+
+ /**
+ * @generated
+ */
+ private String defaultText;
+
+ /**
+ * direct edition mode (default, undefined, registered editor, etc.)
+ *
+ * @generated
+ */
+ protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
+
+ /**
+ * configuration from a registered edit dialog
+ *
+ * @generated
+ */
+ protected IDirectEditorConfiguration configuration;
+
+ /**
+ * @generated
+ */
+ public LiteralUnlimitedNaturalNameEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
+ installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new CompositeStructureDiagramEditPart.NodeLabelDragPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelTextHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getText();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getText();
+ } else {
+ return ((Label)figure).getText();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelTextHelper(IFigure figure, String text) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setText(text);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setText(text);
+ } else {
+ ((Label)figure).setText(text);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIconHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getIcon();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getIcon();
+ } else {
+ return ((Label)figure).getIcon();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelIconHelper(IFigure figure, Image icon) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setIcon(icon);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setIcon(icon);
+ } else {
+ ((Label)figure).setIcon(icon);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabel(WrappingLabel figure) {
+ unregisterVisuals();
+ setFigure(figure);
+ defaultText = getLabelTextHelper(figure);
+ registerVisuals();
+ refreshVisuals();
+ }
+
+ /**
+ * @generated
+ */
+ protected List getModelChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject getParserElement() {
+ return resolveSemanticElement();
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIcon() {
+ EObject parserElement = getParserElement();
+ if(parserElement == null) {
+ return null;
+ }
+
+ List<View> views = DiagramEditPartsUtil.findViews(parserElement, getViewer());
+ for(View view : views) {
+ if(NameLabelIconHelper.showLabelIcon(view)) {
+ return UMLElementTypes.getImage(parserElement.eClass());
+ }
+ }
+ return null;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelText() {
+ String text = null;
+ EObject parserElement = getParserElement();
+ if(parserElement != null && getParser() != null) {
+ text = getParser().getPrintString(new EObjectAdapter(parserElement), getParserOptions().intValue());
+ }
+ if(text == null || text.length() == 0) {
+ text = defaultText;
+ }
+ return text;
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabelText(String text) {
+ setLabelTextHelper(getFigure(), text);
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public String getEditText() {
+ if(getParserElement() == null || getParser() == null) {
+ return ""; //$NON-NLS-1$
+ }
+ return getParser().getEditString(new EObjectAdapter(getParserElement()), getParserOptions().intValue());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean isEditable() {
+ return getParser() != null;
+ }
+
+ /**
+ * @generated
+ */
+ public ICellEditorValidator getEditTextValidator() {
+ return new ICellEditorValidator() {
+
+ public String isValid(final Object value) {
+ if(value instanceof String) {
+ final EObject element = getParserElement();
+ final IParser parser = getParser();
+ try {
+ IParserEditStatus valid = (IParserEditStatus)getEditingDomain().runExclusive(new RunnableWithResult.Impl() {
+
+ public void run() {
+ setResult(parser.isValidEditString(new EObjectAdapter(element), (String)value));
+ }
+ });
+ return valid.getCode() == ParserEditStatus.EDITABLE ? null : valid.getMessage();
+ } catch (InterruptedException ie) {
+ ie.printStackTrace();
+ }
+ }
+
+ // shouldn't get here
+ return null;
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ public IContentAssistProcessor getCompletionProcessor() {
+ if(getParserElement() == null || getParser() == null) {
+ return null;
+ }
+ return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
+ }
+
+ /**
+ * @generated
+ */
+ public ParserOptions getParserOptions() {
+ return ParserOptions.NONE;
+ }
+
+ /**
+ * @generated
+ */
+ public IParser getParser() {
+ if(parser == null) {
+ parser = UMLParserProvider.getParser(UMLElementTypes.LiteralUnlimitedNatural_2099, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.diagram.composite.edit.parts.LiteralUnlimitedNaturalNameEditPart.VISUAL_ID));
+ }
+ return parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected DirectEditManager getManager() {
+ if(manager == null) {
+ setManager(new MultilineLabelDirectEditManager(this, MultilineLabelDirectEditManager.getTextCellEditorClass(this), UMLEditPartFactory.getTextCellEditorLocator(this)));
+ }
+ return manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setManager(DirectEditManager manager) {
+ this.manager = manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit() {
+ getManager().show();
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit(Point eventLocation) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(eventLocation.getSWTPoint());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void performDirectEdit(char initialCharacter) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(initialCharacter);
+ } else {
+ performDirectEdit();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEditRequest(Request request) {
+
+ final Request theRequest = request;
+
+ if(IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
+ directEditionMode = getDirectEditionType();
+ }
+ switch(directEditionMode) {
+ case IDirectEdition.NO_DIRECT_EDITION:
+ // no direct edition mode => does nothing
+ return;
+ case IDirectEdition.EXTENDED_DIRECT_EDITOR:
+ updateExtendedEditorConfiguration();
+ if(configuration == null || configuration.getLanguage() == null) {
+ performDefaultDirectEditorEdit(theRequest);
+ } else {
+ configuration.preEditAction(resolveSemanticElement());
+ Dialog dialog = null;
+ if(configuration instanceof IPopupEditorConfiguration) {
+ IPopupEditorHelper helper = ((IPopupEditorConfiguration)configuration).createPopupEditorHelper(this);
+ helper.showEditor();
+ return;
+ } else if(configuration instanceof IAdvancedEditorConfiguration) {
+ dialog = ((IAdvancedEditorConfiguration)configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
+ } else if(configuration instanceof IDirectEditorConfiguration) {
+ dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), ((IDirectEditorConfiguration)configuration).getTextToEdit(resolveSemanticElement()), (IDirectEditorConfiguration)configuration);
+ } else {
+ return;
+ }
+ final Dialog finalDialog = dialog;
+
+ if(Window.OK == dialog.open()) {
+ TransactionalEditingDomain domain = getEditingDomain();
+ RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
+
+ @Override
+ protected void doExecute() {
+ configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog)finalDialog).getValue());
+
+ }
+ };
+ domain.getCommandStack().execute(command);
+ }
+ }
+ break;
+ case IDirectEdition.DEFAULT_DIRECT_EDITOR:
+
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ break;
+ default:
+ break;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshLabel();
+ refreshFont();
+ refreshFontColor();
+ refreshUnderline();
+ refreshStrikeThrough();
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshLabel() {
+ EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
+ if(maskLabelPolicy == null) {
+ setLabelTextHelper(getFigure(), getLabelText());
+ setLabelIconHelper(getFigure(), getLabelIcon());
+ }
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshUnderline() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextUnderline(style.isUnderline());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshStrikeThrough() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextStrikeThrough(style.isStrikeThrough());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshFont() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null) {
+ FontData fontData = new FontData(style.getFontName(), style.getFontHeight(), (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
+ setFont(fontData);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setFontColor(Color color) {
+ getFigure().setForegroundColor(color);
+ }
+
+ /**
+ * @generated
+ */
+ protected void addSemanticListeners() {
+ if(getParser() instanceof ISemanticParser) {
+ EObject element = resolveSemanticElement();
+ parserElements = ((ISemanticParser)getParser()).getSemanticElementsBeingParsed(element);
+ for(int i = 0; i < parserElements.size(); i++) {
+ addListenerFilter("SemanticModel" + i, this, (EObject)parserElements.get(i)); //$NON-NLS-1$
+ }
+ } else {
+ super.addSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeSemanticListeners() {
+ if(parserElements != null) {
+ for(int i = 0; i < parserElements.size(); i++) {
+ removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
+ }
+ } else {
+ super.removeSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected AccessibleEditPart getAccessibleEditPart() {
+ if(accessibleEP == null) {
+ accessibleEP = new AccessibleGraphicalEditPart() {
+
+ public void getName(AccessibleEvent e) {
+ e.result = getLabelTextHelper(getFigure());
+ }
+ };
+ }
+ return accessibleEP;
+ }
+
+ /**
+ * @generated
+ */
+ private View getFontStyleOwnerView() {
+ return (View)getModel();
+ }
+
+ /**
+ * Returns the kind of associated editor for direct edition.
+ *
+ * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition
+ * @generated
+ */
+ public int getDirectEditionType() {
+ if(checkExtendedEditor()) {
+ initExtendedEditorConfiguration();
+ return IDirectEdition.EXTENDED_DIRECT_EDITOR;
+ }
+ if(checkDefaultEdition()) {
+ return IDirectEdition.DEFAULT_DIRECT_EDITOR;
+ }
+
+ // not a named element. no specific editor => do nothing
+ return IDirectEdition.NO_DIRECT_EDITION;
+ }
+
+ /**
+ * Checks if an extended editor is present.
+ *
+ * @return <code>true</code> if an extended editor is present.
+ * @generated
+ */
+ protected boolean checkExtendedEditor() {
+ if(resolveSemanticElement() != null) {
+ return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ return false;
+ }
+
+ /**
+ * Checks if a default direct edition is available
+ *
+ * @return <code>true</code> if a default direct edition is available
+ * @generated
+ */
+ protected boolean checkDefaultEdition() {
+ return (getParser() != null);
+ }
+
+ /**
+ * Initializes the extended editor configuration
+ *
+ * @generated
+ */
+ protected void initExtendedEditorConfiguration() {
+ if(configuration == null) {
+ final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("")) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else {
+ configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ }
+ }
+
+ /**
+ * Updates the preference configuration
+ *
+ * @generated
+ */
+ protected void updateExtendedEditorConfiguration() {
+ String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("") && languagePreferred != configuration.getLanguage()) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else if(IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
+ configuration = null;
+ }
+ }
+
+ /**
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
+ protected void performDefaultDirectEditorEdit(final Request theRequest) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void addNotationalListeners() {
+ super.addNotationalListeners();
+ addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeNotationalListeners() {
+ super.removeNotationalListeners();
+ removeListenerFilter("PrimaryView"); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void handleNotificationEvent(Notification event) {
+ refreshLabel();
+ Object feature = event.getFeature();
+ if(NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
+ Integer c = (Integer)event.getNewValue();
+ setFontColor(DiagramColorRegistry.getInstance().getColor(c));
+ } else if(NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
+ refreshUnderline();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
+ refreshStrikeThrough();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
+ refreshFont();
+ } else {
+ if(getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
+ refreshLabel();
+ }
+ if(getParser() instanceof ISemanticParser) {
+ ISemanticParser modelParser = (ISemanticParser)getParser();
+ if(modelParser.areSemanticElementsAffected(null, event)) {
+ removeSemanticListeners();
+ if(resolveSemanticElement() != null) {
+ addSemanticListeners();
+ }
+ refreshLabel();
+ }
+ }
+ }
+
+ if(event.getNewValue() instanceof EAnnotation && VisualInformationPapyrusConstant.DISPLAY_NAMELABELICON.equals(((EAnnotation)event.getNewValue()).getSource())) {
+ refreshLabel();
+ }
+
+ super.handleNotificationEvent(event);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createFigure() {
+ // Parent should assign one using setLabel() method
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ private static final String ADD_PARENT_MODEL = "AddParentModel";
+
+ /**
+ * @generated
+ */
+ public void activate() {
+ super.activate();
+ addOwnerElementListeners();
+ }
+
+ /**
+ * @generated
+ */
+ protected void addOwnerElementListeners() {
+ addListenerFilter(ADD_PARENT_MODEL, this, ((View)getParent().getModel())); //$NON-NLS-1$
+
+ }
+
+ /**
+ * @generated
+ */
+ public void deactivate() {
+ removeOwnerElementListeners();
+ super.deactivate();
+
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeOwnerElementListeners() {
+ removeListenerFilter(ADD_PARENT_MODEL);
+
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ManifestationAppliedStereotypeEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ManifestationAppliedStereotypeEditPart.java
new file mode 100644
index 00000000000..3876f78ca5a
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ManifestationAppliedStereotypeEditPart.java
@@ -0,0 +1,742 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.ConnectionLocator;
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.emf.transaction.RunnableWithResult;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.AccessibleEditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.requests.DirectEditRequest;
+import org.eclipse.gef.tools.DirectEditManager;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.LabelEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
+import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
+import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
+import org.eclipse.gmf.runtime.notation.FontStyle;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
+import org.eclipse.jface.viewers.ICellEditorValidator;
+import org.eclipse.jface.window.Window;
+import org.eclipse.papyrus.diagram.common.directedit.MultilineLabelDirectEditManager;
+import org.eclipse.papyrus.diagram.common.editparts.ILabelRoleProvider;
+import org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition;
+import org.eclipse.papyrus.diagram.common.editpolicies.IMaskManagedLabelEditPolicy;
+import org.eclipse.papyrus.diagram.common.figure.node.ILabelFigure;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLTextSelectionEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.diagram.composite.providers.UMLParserProvider;
+import org.eclipse.papyrus.extensionpoints.editors.Activator;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
+import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
+import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.AccessibleEvent;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.FontData;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.ui.PlatformUI;
+
+/**
+ * @generated
+ */
+public class ManifestationAppliedStereotypeEditPart extends LabelEditPart implements ITextAwareEditPart
+
+, ILabelRoleProvider
+
+{
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 6019;
+
+ /**
+ * @generated
+ */
+ private DirectEditManager manager;
+
+ /**
+ * @generated
+ */
+ private IParser parser;
+
+ /**
+ * @generated
+ */
+ private List<?> parserElements;
+
+ /**
+ * @generated
+ */
+ private String defaultText;
+
+ /**
+ * direct edition mode (default, undefined, registered editor, etc.)
+ *
+ * @generated
+ */
+ protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
+
+ /**
+ * configuration from a registered edit dialog
+ *
+ * @generated
+ */
+ protected IDirectEditorConfiguration configuration;
+
+ /**
+ * @generated
+ */
+ static {
+ registerSnapBackPosition(UMLVisualIDRegistry.getType(org.eclipse.papyrus.diagram.composite.edit.parts.ManifestationAppliedStereotypeEditPart.VISUAL_ID), new Point(0, 30));
+ }
+
+ /**
+ * @generated
+ */
+ public ManifestationAppliedStereotypeEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
+ installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new CompositeStructureDiagramEditPart.LinkLabelDragPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ public int getKeyPoint() {
+ return ConnectionLocator.MIDDLE;
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelTextHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getText();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getText();
+ } else {
+ return ((Label)figure).getText();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelTextHelper(IFigure figure, String text) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setText(text);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setText(text);
+ } else {
+ ((Label)figure).setText(text);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIconHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getIcon();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getIcon();
+ } else {
+ return ((Label)figure).getIcon();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelIconHelper(IFigure figure, Image icon) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setIcon(icon);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setIcon(icon);
+ } else {
+ ((Label)figure).setIcon(icon);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabel(WrappingLabel figure) {
+ unregisterVisuals();
+ setFigure(figure);
+ defaultText = getLabelTextHelper(figure);
+ registerVisuals();
+ refreshVisuals();
+ }
+
+ /**
+ * @generated
+ */
+ protected List getModelChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject getParserElement() {
+ return resolveSemanticElement();
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIcon() {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelText() {
+ String text = null;
+ EObject parserElement = getParserElement();
+ if(parserElement != null && getParser() != null) {
+ text = getParser().getPrintString(new EObjectAdapter(parserElement), getParserOptions().intValue());
+ }
+ if(text == null || text.length() == 0) {
+ text = defaultText;
+ }
+ return text;
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabelText(String text) {
+ setLabelTextHelper(getFigure(), text);
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public String getEditText() {
+ if(getParserElement() == null || getParser() == null) {
+ return ""; //$NON-NLS-1$
+ }
+ return getParser().getEditString(new EObjectAdapter(getParserElement()), getParserOptions().intValue());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean isEditable() {
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ public ICellEditorValidator getEditTextValidator() {
+ return new ICellEditorValidator() {
+
+ public String isValid(final Object value) {
+ if(value instanceof String) {
+ final EObject element = getParserElement();
+ final IParser parser = getParser();
+ try {
+ IParserEditStatus valid = (IParserEditStatus)getEditingDomain().runExclusive(new RunnableWithResult.Impl() {
+
+ public void run() {
+ setResult(parser.isValidEditString(new EObjectAdapter(element), (String)value));
+ }
+ });
+ return valid.getCode() == ParserEditStatus.EDITABLE ? null : valid.getMessage();
+ } catch (InterruptedException ie) {
+ ie.printStackTrace();
+ }
+ }
+
+ // shouldn't get here
+ return null;
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ public IContentAssistProcessor getCompletionProcessor() {
+ if(getParserElement() == null || getParser() == null) {
+ return null;
+ }
+ return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
+ }
+
+ /**
+ * @generated
+ */
+ public ParserOptions getParserOptions() {
+ return ParserOptions.NONE;
+ }
+
+ /**
+ * @generated
+ */
+ public IParser getParser() {
+ if(parser == null) {
+ parser = UMLParserProvider.getParser(UMLElementTypes.Manifestation_4012, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.diagram.composite.edit.parts.ManifestationAppliedStereotypeEditPart.VISUAL_ID));
+ }
+ return parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected DirectEditManager getManager() {
+ if(manager == null) {
+ setManager(new MultilineLabelDirectEditManager(this, MultilineLabelDirectEditManager.getTextCellEditorClass(this), UMLEditPartFactory.getTextCellEditorLocator(this)));
+ }
+ return manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setManager(DirectEditManager manager) {
+ this.manager = manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit() {
+ getManager().show();
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit(Point eventLocation) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(eventLocation.getSWTPoint());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void performDirectEdit(char initialCharacter) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(initialCharacter);
+ } else {
+ performDirectEdit();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEditRequest(Request request) {
+
+ final Request theRequest = request;
+
+ if(IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
+ directEditionMode = getDirectEditionType();
+ }
+ switch(directEditionMode) {
+ case IDirectEdition.NO_DIRECT_EDITION:
+ // no direct edition mode => does nothing
+ return;
+ case IDirectEdition.EXTENDED_DIRECT_EDITOR:
+ updateExtendedEditorConfiguration();
+ if(configuration == null || configuration.getLanguage() == null) {
+ performDefaultDirectEditorEdit(theRequest);
+ } else {
+ configuration.preEditAction(resolveSemanticElement());
+ Dialog dialog = null;
+ if(configuration instanceof IPopupEditorConfiguration) {
+ IPopupEditorHelper helper = ((IPopupEditorConfiguration)configuration).createPopupEditorHelper(this);
+ helper.showEditor();
+ return;
+ } else if(configuration instanceof IAdvancedEditorConfiguration) {
+ dialog = ((IAdvancedEditorConfiguration)configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
+ } else if(configuration instanceof IDirectEditorConfiguration) {
+ dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), ((IDirectEditorConfiguration)configuration).getTextToEdit(resolveSemanticElement()), (IDirectEditorConfiguration)configuration);
+ } else {
+ return;
+ }
+ final Dialog finalDialog = dialog;
+
+ if(Window.OK == dialog.open()) {
+ TransactionalEditingDomain domain = getEditingDomain();
+ RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
+
+ @Override
+ protected void doExecute() {
+ configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog)finalDialog).getValue());
+
+ }
+ };
+ domain.getCommandStack().execute(command);
+ }
+ }
+ break;
+ case IDirectEdition.DEFAULT_DIRECT_EDITOR:
+
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ break;
+ default:
+ break;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshLabel();
+ refreshFont();
+ refreshFontColor();
+ refreshUnderline();
+ refreshStrikeThrough();
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshLabel() {
+ EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
+ if(maskLabelPolicy == null) {
+ setLabelTextHelper(getFigure(), getLabelText());
+ setLabelIconHelper(getFigure(), getLabelIcon());
+ }
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshUnderline() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextUnderline(style.isUnderline());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshStrikeThrough() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextStrikeThrough(style.isStrikeThrough());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshFont() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null) {
+ FontData fontData = new FontData(style.getFontName(), style.getFontHeight(), (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
+ setFont(fontData);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setFontColor(Color color) {
+ getFigure().setForegroundColor(color);
+ }
+
+ /**
+ * @generated
+ */
+ protected void addSemanticListeners() {
+ if(getParser() instanceof ISemanticParser) {
+ EObject element = resolveSemanticElement();
+ parserElements = ((ISemanticParser)getParser()).getSemanticElementsBeingParsed(element);
+ for(int i = 0; i < parserElements.size(); i++) {
+ addListenerFilter("SemanticModel" + i, this, (EObject)parserElements.get(i)); //$NON-NLS-1$
+ }
+ } else {
+ super.addSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeSemanticListeners() {
+ if(parserElements != null) {
+ for(int i = 0; i < parserElements.size(); i++) {
+ removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
+ }
+ } else {
+ super.removeSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected AccessibleEditPart getAccessibleEditPart() {
+ if(accessibleEP == null) {
+ accessibleEP = new AccessibleGraphicalEditPart() {
+
+ public void getName(AccessibleEvent e) {
+ e.result = getLabelTextHelper(getFigure());
+ }
+ };
+ }
+ return accessibleEP;
+ }
+
+ /**
+ * @generated
+ */
+ private View getFontStyleOwnerView() {
+ return getPrimaryView();
+ }
+
+ /**
+ * Returns the kind of associated editor for direct edition.
+ *
+ * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition
+ * @generated
+ */
+ public int getDirectEditionType() {
+ // The label is read-only (defined in GMFGen model)
+ return IDirectEdition.NO_DIRECT_EDITION;
+ }
+
+ /**
+ * Checks if an extended editor is present.
+ *
+ * @return <code>true</code> if an extended editor is present.
+ * @generated
+ */
+ protected boolean checkExtendedEditor() {
+ if(resolveSemanticElement() != null) {
+ return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ return false;
+ }
+
+ /**
+ * Checks if a default direct edition is available
+ *
+ * @return <code>true</code> if a default direct edition is available
+ * @generated
+ */
+ protected boolean checkDefaultEdition() {
+ return (getParser() != null);
+ }
+
+ /**
+ * Initializes the extended editor configuration
+ *
+ * @generated
+ */
+ protected void initExtendedEditorConfiguration() {
+ if(configuration == null) {
+ final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("")) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else {
+ configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ }
+ }
+
+ /**
+ * Updates the preference configuration
+ *
+ * @generated
+ */
+ protected void updateExtendedEditorConfiguration() {
+ String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("") && languagePreferred != configuration.getLanguage()) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else if(IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
+ configuration = null;
+ }
+ }
+
+ /**
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
+ protected void performDefaultDirectEditorEdit(final Request theRequest) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void handleNotificationEvent(Notification event) {
+ Object feature = event.getFeature();
+ if(NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
+ Integer c = (Integer)event.getNewValue();
+ setFontColor(DiagramColorRegistry.getInstance().getColor(c));
+ } else if(NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
+ refreshUnderline();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
+ refreshStrikeThrough();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
+ refreshFont();
+ } else {
+ if(getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
+ refreshLabel();
+ }
+ if(getParser() instanceof ISemanticParser) {
+ ISemanticParser modelParser = (ISemanticParser)getParser();
+ if(modelParser.areSemanticElementsAffected(null, event)) {
+ removeSemanticListeners();
+ if(resolveSemanticElement() != null) {
+ addSemanticListeners();
+ }
+ refreshLabel();
+ }
+ }
+ }
+
+ super.handleNotificationEvent(event);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createFigure() {
+ // Parent should assign one using setLabel() method
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ public String getLabelRole() {
+ return "Stereotype";//$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ public String getIconPathRole() {
+ return "";//$NON-NLS-1$
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ManifestationEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ManifestationEditPart.java
new file mode 100644
index 00000000000..1955a5a2ad3
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ManifestationEditPart.java
@@ -0,0 +1,122 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import org.eclipse.draw2d.Connection;
+import org.eclipse.gef.EditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITreeBranchEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.diagram.common.editparts.UMLConnectionNodeEditPart;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeLinkLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeManifestationLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.figure.edge.DashedEdgeFigure;
+import org.eclipse.papyrus.diagram.composite.edit.policies.ManifestationItemSemanticEditPolicy;
+
+/**
+ * @generated
+ */
+public class ManifestationEditPart extends
+
+UMLConnectionNodeEditPart implements ITreeBranchEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 4012;
+
+ /**
+ * @generated
+ */
+ public ManifestationEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new ManifestationItemSemanticEditPolicy());
+ installEditPolicy(AppliedStereotypeLinkLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeManifestationLabelDisplayEditPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean addFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof ManifestationNameEditPart) {
+ ((ManifestationNameEditPart)childEditPart).setLabel(getPrimaryShape().getNameLabel());
+ return true;
+ }
+ if(childEditPart instanceof ManifestationAppliedStereotypeEditPart) {
+ ((ManifestationAppliedStereotypeEditPart)childEditPart).setLabel(getPrimaryShape().getAppliedStereotypeLabel());
+ return true;
+ }
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected void addChildVisual(EditPart childEditPart, int index) {
+ if(addFixedChild(childEditPart)) {
+ return;
+ }
+ super.addChildVisual(childEditPart, -1);
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean removeFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof ManifestationNameEditPart) {
+ return true;
+ }
+ if(childEditPart instanceof ManifestationAppliedStereotypeEditPart) {
+ return true;
+ }
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeChildVisual(EditPart childEditPart) {
+ if(removeFixedChild(childEditPart)) {
+ return;
+ }
+ super.removeChildVisual(childEditPart);
+ }
+
+ /**
+ * Creates figure for this edit part.
+ *
+ * Body of this method does not depend on settings in generation model
+ * so you may safely remove <i>generated</i> tag and modify it.
+ *
+ * @generated
+ */
+ protected Connection createConnectionFigure() {
+ return new DashedEdgeFigure();
+ }
+
+ /**
+ * @generated
+ */
+ public DashedEdgeFigure getPrimaryShape() {
+ return (DashedEdgeFigure)getFigure();
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ManifestationNameEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ManifestationNameEditPart.java
new file mode 100644
index 00000000000..337770627c0
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ManifestationNameEditPart.java
@@ -0,0 +1,750 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.ConnectionLocator;
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.emf.transaction.RunnableWithResult;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.AccessibleEditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.requests.DirectEditRequest;
+import org.eclipse.gef.tools.DirectEditManager;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.LabelEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
+import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
+import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
+import org.eclipse.gmf.runtime.notation.FontStyle;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
+import org.eclipse.jface.viewers.ICellEditorValidator;
+import org.eclipse.jface.window.Window;
+import org.eclipse.papyrus.diagram.common.directedit.MultilineLabelDirectEditManager;
+import org.eclipse.papyrus.diagram.common.editparts.ILabelRoleProvider;
+import org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition;
+import org.eclipse.papyrus.diagram.common.editpolicies.IMaskManagedLabelEditPolicy;
+import org.eclipse.papyrus.diagram.common.figure.node.ILabelFigure;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLTextSelectionEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.diagram.composite.providers.UMLParserProvider;
+import org.eclipse.papyrus.extensionpoints.editors.Activator;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
+import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
+import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.AccessibleEvent;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.FontData;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.ui.PlatformUI;
+
+/**
+ * @generated
+ */
+public class ManifestationNameEditPart extends LabelEditPart implements ITextAwareEditPart
+
+, ILabelRoleProvider
+
+{
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 6005;
+
+ /**
+ * @generated
+ */
+ private DirectEditManager manager;
+
+ /**
+ * @generated
+ */
+ private IParser parser;
+
+ /**
+ * @generated
+ */
+ private List<?> parserElements;
+
+ /**
+ * @generated
+ */
+ private String defaultText;
+
+ /**
+ * direct edition mode (default, undefined, registered editor, etc.)
+ *
+ * @generated
+ */
+ protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
+
+ /**
+ * configuration from a registered edit dialog
+ *
+ * @generated
+ */
+ protected IDirectEditorConfiguration configuration;
+
+ /**
+ * @generated
+ */
+ static {
+ registerSnapBackPosition(UMLVisualIDRegistry.getType(org.eclipse.papyrus.diagram.composite.edit.parts.ManifestationNameEditPart.VISUAL_ID), new Point(0, 60));
+ }
+
+ /**
+ * @generated
+ */
+ public ManifestationNameEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
+ installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new CompositeStructureDiagramEditPart.LinkLabelDragPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ public int getKeyPoint() {
+ return ConnectionLocator.MIDDLE;
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelTextHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getText();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getText();
+ } else {
+ return ((Label)figure).getText();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelTextHelper(IFigure figure, String text) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setText(text);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setText(text);
+ } else {
+ ((Label)figure).setText(text);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIconHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getIcon();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getIcon();
+ } else {
+ return ((Label)figure).getIcon();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelIconHelper(IFigure figure, Image icon) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setIcon(icon);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setIcon(icon);
+ } else {
+ ((Label)figure).setIcon(icon);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabel(WrappingLabel figure) {
+ unregisterVisuals();
+ setFigure(figure);
+ defaultText = getLabelTextHelper(figure);
+ registerVisuals();
+ refreshVisuals();
+ }
+
+ /**
+ * @generated
+ */
+ protected List getModelChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject getParserElement() {
+ return resolveSemanticElement();
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIcon() {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelText() {
+ String text = null;
+ EObject parserElement = getParserElement();
+ if(parserElement != null && getParser() != null) {
+ text = getParser().getPrintString(new EObjectAdapter(parserElement), getParserOptions().intValue());
+ }
+ if(text == null || text.length() == 0) {
+ text = defaultText;
+ }
+ return text;
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabelText(String text) {
+ setLabelTextHelper(getFigure(), text);
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public String getEditText() {
+ if(getParserElement() == null || getParser() == null) {
+ return ""; //$NON-NLS-1$
+ }
+ return getParser().getEditString(new EObjectAdapter(getParserElement()), getParserOptions().intValue());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean isEditable() {
+ return getParser() != null;
+ }
+
+ /**
+ * @generated
+ */
+ public ICellEditorValidator getEditTextValidator() {
+ return new ICellEditorValidator() {
+
+ public String isValid(final Object value) {
+ if(value instanceof String) {
+ final EObject element = getParserElement();
+ final IParser parser = getParser();
+ try {
+ IParserEditStatus valid = (IParserEditStatus)getEditingDomain().runExclusive(new RunnableWithResult.Impl() {
+
+ public void run() {
+ setResult(parser.isValidEditString(new EObjectAdapter(element), (String)value));
+ }
+ });
+ return valid.getCode() == ParserEditStatus.EDITABLE ? null : valid.getMessage();
+ } catch (InterruptedException ie) {
+ ie.printStackTrace();
+ }
+ }
+
+ // shouldn't get here
+ return null;
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ public IContentAssistProcessor getCompletionProcessor() {
+ if(getParserElement() == null || getParser() == null) {
+ return null;
+ }
+ return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
+ }
+
+ /**
+ * @generated
+ */
+ public ParserOptions getParserOptions() {
+ return ParserOptions.NONE;
+ }
+
+ /**
+ * @generated
+ */
+ public IParser getParser() {
+ if(parser == null) {
+ parser = UMLParserProvider.getParser(UMLElementTypes.Manifestation_4012, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.diagram.composite.edit.parts.ManifestationNameEditPart.VISUAL_ID));
+ }
+ return parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected DirectEditManager getManager() {
+ if(manager == null) {
+ setManager(new MultilineLabelDirectEditManager(this, MultilineLabelDirectEditManager.getTextCellEditorClass(this), UMLEditPartFactory.getTextCellEditorLocator(this)));
+ }
+ return manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setManager(DirectEditManager manager) {
+ this.manager = manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit() {
+ getManager().show();
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit(Point eventLocation) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(eventLocation.getSWTPoint());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void performDirectEdit(char initialCharacter) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(initialCharacter);
+ } else {
+ performDirectEdit();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEditRequest(Request request) {
+
+ final Request theRequest = request;
+
+ if(IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
+ directEditionMode = getDirectEditionType();
+ }
+ switch(directEditionMode) {
+ case IDirectEdition.NO_DIRECT_EDITION:
+ // no direct edition mode => does nothing
+ return;
+ case IDirectEdition.EXTENDED_DIRECT_EDITOR:
+ updateExtendedEditorConfiguration();
+ if(configuration == null || configuration.getLanguage() == null) {
+ performDefaultDirectEditorEdit(theRequest);
+ } else {
+ configuration.preEditAction(resolveSemanticElement());
+ Dialog dialog = null;
+ if(configuration instanceof IPopupEditorConfiguration) {
+ IPopupEditorHelper helper = ((IPopupEditorConfiguration)configuration).createPopupEditorHelper(this);
+ helper.showEditor();
+ return;
+ } else if(configuration instanceof IAdvancedEditorConfiguration) {
+ dialog = ((IAdvancedEditorConfiguration)configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
+ } else if(configuration instanceof IDirectEditorConfiguration) {
+ dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), ((IDirectEditorConfiguration)configuration).getTextToEdit(resolveSemanticElement()), (IDirectEditorConfiguration)configuration);
+ } else {
+ return;
+ }
+ final Dialog finalDialog = dialog;
+
+ if(Window.OK == dialog.open()) {
+ TransactionalEditingDomain domain = getEditingDomain();
+ RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
+
+ @Override
+ protected void doExecute() {
+ configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog)finalDialog).getValue());
+
+ }
+ };
+ domain.getCommandStack().execute(command);
+ }
+ }
+ break;
+ case IDirectEdition.DEFAULT_DIRECT_EDITOR:
+
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ break;
+ default:
+ break;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshLabel();
+ refreshFont();
+ refreshFontColor();
+ refreshUnderline();
+ refreshStrikeThrough();
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshLabel() {
+ EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
+ if(maskLabelPolicy == null) {
+ setLabelTextHelper(getFigure(), getLabelText());
+ setLabelIconHelper(getFigure(), getLabelIcon());
+ }
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshUnderline() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextUnderline(style.isUnderline());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshStrikeThrough() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextStrikeThrough(style.isStrikeThrough());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshFont() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null) {
+ FontData fontData = new FontData(style.getFontName(), style.getFontHeight(), (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
+ setFont(fontData);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setFontColor(Color color) {
+ getFigure().setForegroundColor(color);
+ }
+
+ /**
+ * @generated
+ */
+ protected void addSemanticListeners() {
+ if(getParser() instanceof ISemanticParser) {
+ EObject element = resolveSemanticElement();
+ parserElements = ((ISemanticParser)getParser()).getSemanticElementsBeingParsed(element);
+ for(int i = 0; i < parserElements.size(); i++) {
+ addListenerFilter("SemanticModel" + i, this, (EObject)parserElements.get(i)); //$NON-NLS-1$
+ }
+ } else {
+ super.addSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeSemanticListeners() {
+ if(parserElements != null) {
+ for(int i = 0; i < parserElements.size(); i++) {
+ removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
+ }
+ } else {
+ super.removeSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected AccessibleEditPart getAccessibleEditPart() {
+ if(accessibleEP == null) {
+ accessibleEP = new AccessibleGraphicalEditPart() {
+
+ public void getName(AccessibleEvent e) {
+ e.result = getLabelTextHelper(getFigure());
+ }
+ };
+ }
+ return accessibleEP;
+ }
+
+ /**
+ * @generated
+ */
+ private View getFontStyleOwnerView() {
+ return getPrimaryView();
+ }
+
+ /**
+ * Returns the kind of associated editor for direct edition.
+ *
+ * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition
+ * @generated
+ */
+ public int getDirectEditionType() {
+ if(checkExtendedEditor()) {
+ initExtendedEditorConfiguration();
+ return IDirectEdition.EXTENDED_DIRECT_EDITOR;
+ }
+ if(checkDefaultEdition()) {
+ return IDirectEdition.DEFAULT_DIRECT_EDITOR;
+ }
+
+ // not a named element. no specific editor => do nothing
+ return IDirectEdition.NO_DIRECT_EDITION;
+ }
+
+ /**
+ * Checks if an extended editor is present.
+ *
+ * @return <code>true</code> if an extended editor is present.
+ * @generated
+ */
+ protected boolean checkExtendedEditor() {
+ if(resolveSemanticElement() != null) {
+ return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ return false;
+ }
+
+ /**
+ * Checks if a default direct edition is available
+ *
+ * @return <code>true</code> if a default direct edition is available
+ * @generated
+ */
+ protected boolean checkDefaultEdition() {
+ return (getParser() != null);
+ }
+
+ /**
+ * Initializes the extended editor configuration
+ *
+ * @generated
+ */
+ protected void initExtendedEditorConfiguration() {
+ if(configuration == null) {
+ final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("")) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else {
+ configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ }
+ }
+
+ /**
+ * Updates the preference configuration
+ *
+ * @generated
+ */
+ protected void updateExtendedEditorConfiguration() {
+ String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("") && languagePreferred != configuration.getLanguage()) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else if(IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
+ configuration = null;
+ }
+ }
+
+ /**
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
+ protected void performDefaultDirectEditorEdit(final Request theRequest) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void handleNotificationEvent(Notification event) {
+ Object feature = event.getFeature();
+ if(NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
+ Integer c = (Integer)event.getNewValue();
+ setFontColor(DiagramColorRegistry.getInstance().getColor(c));
+ } else if(NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
+ refreshUnderline();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
+ refreshStrikeThrough();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
+ refreshFont();
+ } else {
+ if(getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
+ refreshLabel();
+ }
+ if(getParser() instanceof ISemanticParser) {
+ ISemanticParser modelParser = (ISemanticParser)getParser();
+ if(modelParser.areSemanticElementsAffected(null, event)) {
+ removeSemanticListeners();
+ if(resolveSemanticElement() != null) {
+ addSemanticListeners();
+ }
+ refreshLabel();
+ }
+ }
+ }
+
+ super.handleNotificationEvent(event);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createFigure() {
+ // Parent should assign one using setLabel() method
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ public String getLabelRole() {
+ return "Name";//$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ public String getIconPathRole() {
+ return "";//$NON-NLS-1$
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/NodeCompositeCompartmentEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/NodeCompositeCompartmentEditPart.java
new file mode 100644
index 00000000000..c65e08407ee
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/NodeCompositeCompartmentEditPart.java
@@ -0,0 +1,123 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import org.eclipse.draw2d.geometry.Dimension;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.draw2d.geometry.Rectangle;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.GraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ShapeCompartmentEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.CreationEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.DragDropEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.ResizableCompartmentEditPolicy;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.diagram.common.editparts.NoScrollBarShapeCompartmentEditPart;
+import org.eclipse.papyrus.diagram.common.editpolicies.CustomContainerEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.DuplicatePasteEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.CustomDiagramDragDropEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.PortInCompartmentCreationEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.RemoveOrphanViewPolicy;
+import org.eclipse.papyrus.diagram.composite.edit.policies.NodeCompositeCompartmentItemSemanticEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.Messages;
+
+/**
+ * @generated
+ */
+public class NodeCompositeCompartmentEditPart
+
+extends NoScrollBarShapeCompartmentEditPart
+
+{
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 7072;
+
+ /**
+ * @generated
+ */
+ public NodeCompositeCompartmentEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ public String getCompartmentName() {
+ return Messages.NodeCompositeCompartmentEditPart_title;
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new ResizableCompartmentEditPolicy());
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new NodeCompositeCompartmentItemSemanticEditPolicy());
+ installEditPolicy(EditPolicyRoles.CREATION_ROLE, new CreationEditPolicy());
+ installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new DragDropEditPolicy());
+ installEditPolicy(DuplicatePasteEditPolicy.PASTE_ROLE, new DuplicatePasteEditPolicy());
+ installEditPolicy("REMOVE_ORPHAN_VIEW", new RemoveOrphanViewPolicy()); //$NON-NLS-1$
+ installEditPolicy(EditPolicy.GRAPHICAL_NODE_ROLE, new CustomContainerEditPolicy());
+ installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new CustomDiagramDragDropEditPolicy());
+ installEditPolicy(EditPolicyRoles.CREATION_ROLE, new PortInCompartmentCreationEditPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ protected void setRatio(Double ratio) {
+ if(getFigure().getParent().getLayoutManager() instanceof ConstrainedToolbarLayout) {
+ super.setRatio(ratio);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void handleNotificationEvent(Notification notification) {
+ Object feature = notification.getFeature();
+ if(NotationPackage.eINSTANCE.getSize_Width().equals(feature) || NotationPackage.eINSTANCE.getSize_Height().equals(feature) || NotationPackage.eINSTANCE.getLocation_X().equals(feature) || NotationPackage.eINSTANCE.getLocation_Y().equals(feature)) {
+ refreshBounds();
+ }
+ super.handleNotificationEvent(notification);
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshBounds() {
+ int width = ((Integer)getStructuralFeatureValue(NotationPackage.eINSTANCE.getSize_Width())).intValue();
+ int height = ((Integer)getStructuralFeatureValue(NotationPackage.eINSTANCE.getSize_Height())).intValue();
+ Dimension size = new Dimension(width, height);
+ int x = ((Integer)getStructuralFeatureValue(NotationPackage.eINSTANCE.getLocation_X())).intValue();
+ int y = ((Integer)getStructuralFeatureValue(NotationPackage.eINSTANCE.getLocation_Y())).intValue();
+ Point loc = new Point(x, y);
+ ((GraphicalEditPart)getParent()).setLayoutConstraint(this, getFigure(), new Rectangle(loc, size));
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshBounds();
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/NodeCompositeCompartmentEditPartCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/NodeCompositeCompartmentEditPartCN.java
new file mode 100644
index 00000000000..4cfb3f83d57
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/NodeCompositeCompartmentEditPartCN.java
@@ -0,0 +1,123 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import org.eclipse.draw2d.geometry.Dimension;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.draw2d.geometry.Rectangle;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.GraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ShapeCompartmentEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.CreationEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.DragDropEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.ResizableCompartmentEditPolicy;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.diagram.common.editparts.NoScrollBarShapeCompartmentEditPart;
+import org.eclipse.papyrus.diagram.common.editpolicies.CustomContainerEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.DuplicatePasteEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.CustomDiagramDragDropEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.PortInCompartmentCreationEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.RemoveOrphanViewPolicy;
+import org.eclipse.papyrus.diagram.composite.edit.policies.NodeCompositeCompartmentItemSemanticEditPolicyCN;
+import org.eclipse.papyrus.diagram.composite.part.Messages;
+
+/**
+ * @generated
+ */
+public class NodeCompositeCompartmentEditPartCN
+
+extends NoScrollBarShapeCompartmentEditPart
+
+{
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 7059;
+
+ /**
+ * @generated
+ */
+ public NodeCompositeCompartmentEditPartCN(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ public String getCompartmentName() {
+ return Messages.NodeCompositeCompartmentEditPartCN_title;
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new ResizableCompartmentEditPolicy());
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new NodeCompositeCompartmentItemSemanticEditPolicyCN());
+ installEditPolicy(EditPolicyRoles.CREATION_ROLE, new CreationEditPolicy());
+ installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new DragDropEditPolicy());
+ installEditPolicy(DuplicatePasteEditPolicy.PASTE_ROLE, new DuplicatePasteEditPolicy());
+ installEditPolicy("REMOVE_ORPHAN_VIEW", new RemoveOrphanViewPolicy()); //$NON-NLS-1$
+ installEditPolicy(EditPolicy.GRAPHICAL_NODE_ROLE, new CustomContainerEditPolicy());
+ installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new CustomDiagramDragDropEditPolicy());
+ installEditPolicy(EditPolicyRoles.CREATION_ROLE, new PortInCompartmentCreationEditPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ protected void setRatio(Double ratio) {
+ if(getFigure().getParent().getLayoutManager() instanceof ConstrainedToolbarLayout) {
+ super.setRatio(ratio);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void handleNotificationEvent(Notification notification) {
+ Object feature = notification.getFeature();
+ if(NotationPackage.eINSTANCE.getSize_Width().equals(feature) || NotationPackage.eINSTANCE.getSize_Height().equals(feature) || NotationPackage.eINSTANCE.getLocation_X().equals(feature) || NotationPackage.eINSTANCE.getLocation_Y().equals(feature)) {
+ refreshBounds();
+ }
+ super.handleNotificationEvent(notification);
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshBounds() {
+ int width = ((Integer)getStructuralFeatureValue(NotationPackage.eINSTANCE.getSize_Width())).intValue();
+ int height = ((Integer)getStructuralFeatureValue(NotationPackage.eINSTANCE.getSize_Height())).intValue();
+ Dimension size = new Dimension(width, height);
+ int x = ((Integer)getStructuralFeatureValue(NotationPackage.eINSTANCE.getLocation_X())).intValue();
+ int y = ((Integer)getStructuralFeatureValue(NotationPackage.eINSTANCE.getLocation_Y())).intValue();
+ Point loc = new Point(x, y);
+ ((GraphicalEditPart)getParent()).setLayoutConstraint(this, getFigure(), new Rectangle(loc, size));
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshBounds();
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/NodeCompositeEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/NodeCompositeEditPart.java
new file mode 100644
index 00000000000..aabe9ae5263
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/NodeCompositeEditPart.java
@@ -0,0 +1,5396 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.ArrayList;
+import java.util.LinkedList;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.PositionConstants;
+import org.eclipse.draw2d.Shape;
+import org.eclipse.draw2d.StackLayout;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EStructuralFeature;
+import org.eclipse.gef.EditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.editpolicies.LayoutEditPolicy;
+import org.eclipse.gef.editpolicies.NonResizableEditPolicy;
+import org.eclipse.gef.requests.CreateRequest;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IBorderItemEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.CreationEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.DragDropEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.diagram.ui.figures.IBorderItemLocator;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.FigureUtilities;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.gef.ui.figures.DefaultSizeNodeFigure;
+import org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.jface.preference.PreferenceConverter;
+import org.eclipse.papyrus.diagram.common.editparts.NamedElementEditPart;
+import org.eclipse.papyrus.diagram.common.editpolicies.AffixedNodeAlignmentEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.BorderItemResizableEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.HyperLinkPopupBarEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.QualifiedNameDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.ShowHideClassifierContentsEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.ShowHideCompartmentEditPolicy;
+import org.eclipse.papyrus.diagram.common.helper.PreferenceInitializerForElementHelper;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.CustomDiagramDragDropEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.EncapsulatedClassifierResizableShapeEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.GraphicalNodeEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.RemoveOrphanViewPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.StructuredClassifierLayoutEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.figures.NodeCompositeFigure;
+import org.eclipse.papyrus.diagram.composite.custom.locators.PortPositionLocator;
+import org.eclipse.papyrus.diagram.composite.edit.policies.NodeCompositeItemSemanticEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorPlugin;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter;
+import org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper;
+import org.eclipse.swt.graphics.Color;
+
+/**
+ * @generated
+ */
+public class NodeCompositeEditPart extends
+
+NamedElementEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 2072;
+
+ /**
+ * @generated
+ */
+ protected IFigure contentPane;
+
+ /**
+ * @generated
+ */
+ protected IFigure primaryShape;
+
+ /**
+ * @generated
+ */
+ public NodeCompositeEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ installEditPolicy(EditPolicyRoles.CREATION_ROLE, new CreationEditPolicy());
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new NodeCompositeItemSemanticEditPolicy());
+ installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new DragDropEditPolicy());
+ installEditPolicy(EditPolicy.LAYOUT_ROLE, createLayoutEditPolicy());
+ installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new CustomDiagramDragDropEditPolicy());
+ installEditPolicy(QualifiedNameDisplayEditPolicy.QUALIFIED_NAME_POLICY, new QualifiedNameDisplayEditPolicy());
+ installEditPolicy(AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeNodeLabelDisplayEditPolicy());
+ installEditPolicy(EditPolicyRoles.POPUPBAR_ROLE, new HyperLinkPopupBarEditPolicy());
+ installEditPolicy(EditPolicy.GRAPHICAL_NODE_ROLE, new GraphicalNodeEditPolicy());
+ installEditPolicy(EditPolicy.LAYOUT_ROLE, new StructuredClassifierLayoutEditPolicy());
+ installEditPolicy(ShowHideClassifierContentsEditPolicy.SHOW_HIDE_CLASSIFIER_CONTENTS_POLICY, new ShowHideClassifierContentsEditPolicy());
+ installEditPolicy(ShowHideCompartmentEditPolicy.SHOW_HIDE_COMPARTMENT_POLICY, new ShowHideCompartmentEditPolicy());
+ installEditPolicy(AffixedNodeAlignmentEditPolicy.AFFIXED_CHILD_ALIGNMENT_ROLE, new AffixedNodeAlignmentEditPolicy());
+ installEditPolicy("REMOVE_ORPHAN_VIEW", new RemoveOrphanViewPolicy()); //$NON-NLS-1$
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new EncapsulatedClassifierResizableShapeEditPolicy());
+ // XXX need an SCR to runtime to have another abstract superclass that would let children add reasonable editpolicies
+ // removeEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CONNECTION_HANDLES_ROLE);
+ }
+
+ /**
+ * Papyrus codeGen
+ *
+ * @generated
+ **/
+ protected void handleNotificationEvent(Notification event) {
+ super.handleNotificationEvent(event);
+
+ }
+
+ /**
+ * @generated
+ */
+ protected LayoutEditPolicy createLayoutEditPolicy() {
+ org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy lep = new org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy() {
+
+ protected EditPolicy createChildEditPolicy(EditPart child) {
+ View childView = (View)child.getModel();
+ switch(UMLVisualIDRegistry.getVisualID(childView)) {
+ case PortEditPart.VISUAL_ID:
+
+ return new BorderItemResizableEditPolicy();
+
+ }
+ EditPolicy result = child.getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(result == null) {
+ result = new NonResizableEditPolicy();
+ }
+ return result;
+ }
+
+ protected Command getMoveChildrenCommand(Request request) {
+ return null;
+ }
+
+ protected Command getCreateCommand(CreateRequest request) {
+ return null;
+ }
+ };
+ return lep;
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createNodeShape() {
+ return primaryShape = new NodeCompositeFigure();
+ }
+
+ /**
+ * @generated
+ */
+ public NodeCompositeFigure getPrimaryShape() {
+ return (NodeCompositeFigure)primaryShape;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean addFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof NodeCompositeNameEditPart) {
+ ((NodeCompositeNameEditPart)childEditPart).setLabel(getPrimaryShape().getNameLabel());
+ return true;
+ }
+
+ if(childEditPart instanceof NodeCompositeCompartmentEditPart) {
+ IFigure pane = getPrimaryShape().getCompositeCompartmentFigure();
+ setupContentPane(pane); // FIXME each comparment should handle his content pane in his own way
+ pane.add(((NodeCompositeCompartmentEditPart)childEditPart).getFigure());
+ return true;
+ }
+
+ //Papyrus Gencode :Affixed Port locator
+ if(childEditPart instanceof PortEditPart) {
+ IBorderItemLocator locator = new PortPositionLocator(getMainFigure(), PositionConstants.NONE);
+ getBorderedFigure().getBorderItemContainer().add(((PortEditPart)childEditPart).getFigure(), locator);
+ return true;
+ }
+
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean removeFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof NodeCompositeNameEditPart) {
+ return true;
+ }
+ if(childEditPart instanceof NodeCompositeCompartmentEditPart) {
+ IFigure pane = getPrimaryShape().getCompositeCompartmentFigure();
+ setupContentPane(pane); // FIXME each comparment should handle his content pane in his own way
+ pane.remove(((NodeCompositeCompartmentEditPart)childEditPart).getFigure());
+ return true;
+ }
+ if(childEditPart instanceof PortEditPart) {
+ getBorderedFigure().getBorderItemContainer().remove(((PortEditPart)childEditPart).getFigure());
+ return true;
+ }
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected void addChildVisual(EditPart childEditPart, int index) {
+ if(addFixedChild(childEditPart)) {
+ return;
+ }
+ super.addChildVisual(childEditPart, -1);
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeChildVisual(EditPart childEditPart) {
+ if(removeFixedChild(childEditPart)) {
+ return;
+ }
+ super.removeChildVisual(childEditPart);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure getContentPaneFor(IGraphicalEditPart editPart) {
+ if(editPart instanceof NodeCompositeCompartmentEditPart) {
+ return getPrimaryShape().getCompositeCompartmentFigure();
+ }
+ if(editPart instanceof IBorderItemEditPart) {
+ return getBorderedFigure().getBorderItemContainer();
+ }
+ return getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ protected NodeFigure createNodePlate() {
+ String prefElementId = "Node";
+ IPreferenceStore store = UMLDiagramEditorPlugin.getInstance().getPreferenceStore();
+ String preferenceConstantWitdh = PreferenceInitializerForElementHelper.getpreferenceKey(getNotationView(), prefElementId, PreferenceConstantHelper.WIDTH);
+ String preferenceConstantHeight = PreferenceInitializerForElementHelper.getpreferenceKey(getNotationView(), prefElementId, PreferenceConstantHelper.HEIGHT);
+ DefaultSizeNodeFigure result = new DefaultSizeNodeFigure(store.getInt(preferenceConstantWitdh), store.getInt(preferenceConstantHeight));
+
+ return result;
+ }
+
+ /**
+ * Creates figure for this edit part.
+ *
+ * Body of this method does not depend on settings in generation model
+ * so you may safely remove <i>generated</i> tag and modify it.
+ *
+ * @generated
+ */
+ protected NodeFigure createMainFigure() {
+ NodeFigure figure = createNodePlate();
+ figure.setLayoutManager(new StackLayout());
+ IFigure shape = createNodeShape();
+ figure.add(shape);
+ contentPane = setupContentPane(shape);
+ return figure;
+ }
+
+ /**
+ * Default implementation treats passed figure as content pane.
+ * Respects layout one may have set for generated figure.
+ *
+ * @param nodeShape
+ * instance of generated figure class
+ * @generated
+ */
+ protected IFigure setupContentPane(IFigure nodeShape) {
+ if(nodeShape.getLayoutManager() == null) {
+ ConstrainedToolbarLayout layout = new ConstrainedToolbarLayout();
+ layout.setSpacing(5);
+ nodeShape.setLayoutManager(layout);
+ }
+ return nodeShape; // use nodeShape itself as contentPane
+ }
+
+ /**
+ * @generated
+ */
+ public IFigure getContentPane() {
+ if(contentPane != null) {
+ return contentPane;
+ }
+ return super.getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ protected void setForegroundColor(Color color) {
+ if(primaryShape != null) {
+ primaryShape.setForegroundColor(color);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLineWidth(int width) {
+ if(primaryShape instanceof Shape) {
+ ((Shape)primaryShape).setLineWidth(width);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLineType(int style) {
+ if(primaryShape instanceof Shape) {
+ ((Shape)primaryShape).setLineStyle(style);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public EditPart getPrimaryChildEditPart() {
+ return getChildBySemanticHint(UMLVisualIDRegistry.getType(NodeCompositeNameEditPart.VISUAL_ID));
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnSource() {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(12);
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ types.add(UMLElementTypes.Substitution_4011);
+ types.add(UMLElementTypes.Realization_4006);
+ types.add(UMLElementTypes.Manifestation_4012);
+ types.add(UMLElementTypes.Abstraction_4007);
+ types.add(UMLElementTypes.Usage_4008);
+ types.add(UMLElementTypes.Deployment_4009);
+ types.add(UMLElementTypes.Dependency_4017);
+ types.add(UMLElementTypes.Dependency_4010);
+ types.add(UMLElementTypes.Generalization_4015);
+ types.add(UMLElementTypes.InformationFlow_4021);
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnSourceAndTarget(IGraphicalEditPart targetEditPart) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.NodeCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.NodeCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.NodeCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMATypesForTarget(IElementType relationshipType) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(relationshipType == UMLElementTypes.ComponentRealization_4004) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InterfaceRealization_4005) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Substitution_4011) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Realization_4006) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Manifestation_4012) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Abstraction_4007) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Usage_4008) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Deployment_4009) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4017) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4010) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Generalization_4015) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ } else if(relationshipType == UMLElementTypes.InformationFlow_4021) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnTarget() {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(17);
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ types.add(UMLElementTypes.Substitution_4011);
+ types.add(UMLElementTypes.Realization_4006);
+ types.add(UMLElementTypes.Manifestation_4012);
+ types.add(UMLElementTypes.Abstraction_4007);
+ types.add(UMLElementTypes.Usage_4008);
+ types.add(UMLElementTypes.Deployment_4009);
+ types.add(UMLElementTypes.Dependency_4017);
+ types.add(UMLElementTypes.Dependency_4010);
+ types.add(UMLElementTypes.Generalization_4015);
+ types.add(UMLElementTypes.TimeObservationEvent_4018);
+ types.add(UMLElementTypes.DurationObservationEvent_4019);
+ types.add(UMLElementTypes.InformationItemRepresented_4020);
+ types.add(UMLElementTypes.InformationFlow_4021);
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMATypesForSource(IElementType relationshipType) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(relationshipType == UMLElementTypes.CommentAnnotatedElement_4002) {
+ types.add(UMLElementTypes.Comment_2109);
+ types.add(UMLElementTypes.Comment_3097);
+ } else if(relationshipType == UMLElementTypes.ConstraintConstrainedElement_4003) {
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.ComponentRealization_4004) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InterfaceRealization_4005) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Substitution_4011) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Realization_4006) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Manifestation_4012) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Abstraction_4007) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Usage_4008) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Deployment_4009) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4017) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4010) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Generalization_4015) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ } else if(relationshipType == UMLElementTypes.TimeObservationEvent_4018) {
+ types.add(UMLElementTypes.TimeObservation_2094);
+ } else if(relationshipType == UMLElementTypes.DurationObservationEvent_4019) {
+ types.add(UMLElementTypes.DurationObservation_2093);
+ } else if(relationshipType == UMLElementTypes.InformationItemRepresented_4020) {
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.InformationItem_3094);
+ } else if(relationshipType == UMLElementTypes.InformationFlow_4021) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public Object getPreferredValue(EStructuralFeature feature) {
+ IPreferenceStore preferenceStore = (IPreferenceStore)getDiagramPreferencesHint().getPreferenceStore();
+ Object result = null;
+
+ if(feature == NotationPackage.eINSTANCE.getLineStyle_LineColor() || feature == NotationPackage.eINSTANCE.getFontStyle_FontColor() || feature == NotationPackage.eINSTANCE.getFillStyle_FillColor()) {
+ String prefColor = null;
+ if(feature == NotationPackage.eINSTANCE.getLineStyle_LineColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("Node", PreferenceConstantHelper.COLOR_LINE);
+ } else if(feature == NotationPackage.eINSTANCE.getFontStyle_FontColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("Node", PreferenceConstantHelper.COLOR_FONT);
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_FillColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("Node", PreferenceConstantHelper.COLOR_FILL);
+ }
+ result = FigureUtilities.RGBToInteger(PreferenceConverter.getColor((IPreferenceStore)preferenceStore, prefColor));
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_Transparency() || feature == NotationPackage.eINSTANCE.getFillStyle_Gradient()) {
+ String prefGradient = PreferenceConstantHelper.getElementConstant("Node", PreferenceConstantHelper.COLOR_GRADIENT);
+ GradientPreferenceConverter gradientPreferenceConverter = new GradientPreferenceConverter(preferenceStore.getString(prefGradient));
+ if(feature == NotationPackage.eINSTANCE.getFillStyle_Transparency()) {
+ result = new Integer(gradientPreferenceConverter.getTransparency());
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_Gradient()) {
+ result = gradientPreferenceConverter.getGradientData();
+ }
+ }
+
+ if(result == null) {
+ result = getStructuralFeatureValue(feature);
+ }
+ return result;
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/NodeCompositeEditPartCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/NodeCompositeEditPartCN.java
new file mode 100644
index 00000000000..456e39ea162
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/NodeCompositeEditPartCN.java
@@ -0,0 +1,5398 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.ArrayList;
+import java.util.LinkedList;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.PositionConstants;
+import org.eclipse.draw2d.Shape;
+import org.eclipse.draw2d.StackLayout;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EStructuralFeature;
+import org.eclipse.gef.EditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.editpolicies.LayoutEditPolicy;
+import org.eclipse.gef.editpolicies.NonResizableEditPolicy;
+import org.eclipse.gef.requests.CreateRequest;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IBorderItemEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.CreationEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.DragDropEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.diagram.ui.figures.IBorderItemLocator;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.FigureUtilities;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.gef.ui.figures.DefaultSizeNodeFigure;
+import org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.jface.preference.PreferenceConverter;
+import org.eclipse.papyrus.diagram.common.editparts.NamedElementEditPart;
+import org.eclipse.papyrus.diagram.common.editpolicies.AffixedNodeAlignmentEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.BorderItemResizableEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.HyperLinkPopupBarEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.QualifiedNameDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.ShowHideClassifierContentsEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.ShowHideCompartmentEditPolicy;
+import org.eclipse.papyrus.diagram.common.helper.PreferenceInitializerForElementHelper;
+import org.eclipse.papyrus.diagram.composite.custom.edit.parts.ConstrainedNamedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.CustomDiagramDragDropEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.EncapsulatedClassifierResizableShapeEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.GraphicalNodeEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.NoScrollClassifierResizableShapeEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.RemoveOrphanViewPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.StructuredClassifierLayoutEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.figures.NodeCompositeFigure;
+import org.eclipse.papyrus.diagram.composite.custom.locators.PortPositionLocator;
+import org.eclipse.papyrus.diagram.composite.edit.policies.NodeCompositeItemSemanticEditPolicycN;
+import org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorPlugin;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter;
+import org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper;
+import org.eclipse.swt.graphics.Color;
+
+/**
+ * @generated
+ */
+public class NodeCompositeEditPartCN extends
+
+ConstrainedNamedElementEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 3084;
+
+ /**
+ * @generated
+ */
+ protected IFigure contentPane;
+
+ /**
+ * @generated
+ */
+ protected IFigure primaryShape;
+
+ /**
+ * @generated
+ */
+ public NodeCompositeEditPartCN(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ installEditPolicy(EditPolicyRoles.CREATION_ROLE, new CreationEditPolicy());
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new NodeCompositeItemSemanticEditPolicycN());
+ installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new DragDropEditPolicy());
+ installEditPolicy(EditPolicy.LAYOUT_ROLE, createLayoutEditPolicy());
+ installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new CustomDiagramDragDropEditPolicy());
+ installEditPolicy(QualifiedNameDisplayEditPolicy.QUALIFIED_NAME_POLICY, new QualifiedNameDisplayEditPolicy());
+ installEditPolicy(AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeNodeLabelDisplayEditPolicy());
+ installEditPolicy(EditPolicyRoles.POPUPBAR_ROLE, new HyperLinkPopupBarEditPolicy());
+ installEditPolicy(EditPolicy.GRAPHICAL_NODE_ROLE, new GraphicalNodeEditPolicy());
+ installEditPolicy(EditPolicy.LAYOUT_ROLE, new StructuredClassifierLayoutEditPolicy());
+ installEditPolicy(ShowHideClassifierContentsEditPolicy.SHOW_HIDE_CLASSIFIER_CONTENTS_POLICY, new ShowHideClassifierContentsEditPolicy());
+ installEditPolicy(ShowHideCompartmentEditPolicy.SHOW_HIDE_COMPARTMENT_POLICY, new ShowHideCompartmentEditPolicy());
+ installEditPolicy(AffixedNodeAlignmentEditPolicy.AFFIXED_CHILD_ALIGNMENT_ROLE, new AffixedNodeAlignmentEditPolicy());
+ installEditPolicy("REMOVE_ORPHAN_VIEW", new RemoveOrphanViewPolicy()); //$NON-NLS-1$
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new NoScrollClassifierResizableShapeEditPolicy());
+ // XXX need an SCR to runtime to have another abstract superclass that would let children add reasonable editpolicies
+ // removeEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CONNECTION_HANDLES_ROLE);
+ }
+
+ /**
+ * Papyrus codeGen
+ *
+ * @generated
+ **/
+ protected void handleNotificationEvent(Notification event) {
+ super.handleNotificationEvent(event);
+
+ }
+
+ /**
+ * @generated
+ */
+ protected LayoutEditPolicy createLayoutEditPolicy() {
+ org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy lep = new org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy() {
+
+ protected EditPolicy createChildEditPolicy(EditPart child) {
+ View childView = (View)child.getModel();
+ switch(UMLVisualIDRegistry.getVisualID(childView)) {
+ case PortEditPart.VISUAL_ID:
+
+ return new BorderItemResizableEditPolicy();
+
+ }
+ EditPolicy result = child.getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(result == null) {
+ result = new NonResizableEditPolicy();
+ }
+ return result;
+ }
+
+ protected Command getMoveChildrenCommand(Request request) {
+ return null;
+ }
+
+ protected Command getCreateCommand(CreateRequest request) {
+ return null;
+ }
+ };
+ return lep;
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createNodeShape() {
+ return primaryShape = new NodeCompositeFigure();
+ }
+
+ /**
+ * @generated
+ */
+ public NodeCompositeFigure getPrimaryShape() {
+ return (NodeCompositeFigure)primaryShape;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean addFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof NodeCompositeNameEditPartCN) {
+ ((NodeCompositeNameEditPartCN)childEditPart).setLabel(getPrimaryShape().getNameLabel());
+ return true;
+ }
+
+ if(childEditPart instanceof NodeCompositeCompartmentEditPartCN) {
+ IFigure pane = getPrimaryShape().getCompositeCompartmentFigure();
+ setupContentPane(pane); // FIXME each comparment should handle his content pane in his own way
+ pane.add(((NodeCompositeCompartmentEditPartCN)childEditPart).getFigure());
+ return true;
+ }
+
+ //Papyrus Gencode :Affixed Port locator
+ if(childEditPart instanceof PortEditPart) {
+ IBorderItemLocator locator = new PortPositionLocator(getMainFigure(), PositionConstants.NONE);
+ getBorderedFigure().getBorderItemContainer().add(((PortEditPart)childEditPart).getFigure(), locator);
+ return true;
+ }
+
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean removeFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof NodeCompositeNameEditPartCN) {
+ return true;
+ }
+ if(childEditPart instanceof NodeCompositeCompartmentEditPartCN) {
+ IFigure pane = getPrimaryShape().getCompositeCompartmentFigure();
+ setupContentPane(pane); // FIXME each comparment should handle his content pane in his own way
+ pane.remove(((NodeCompositeCompartmentEditPartCN)childEditPart).getFigure());
+ return true;
+ }
+ if(childEditPart instanceof PortEditPart) {
+ getBorderedFigure().getBorderItemContainer().remove(((PortEditPart)childEditPart).getFigure());
+ return true;
+ }
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected void addChildVisual(EditPart childEditPart, int index) {
+ if(addFixedChild(childEditPart)) {
+ return;
+ }
+ super.addChildVisual(childEditPart, -1);
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeChildVisual(EditPart childEditPart) {
+ if(removeFixedChild(childEditPart)) {
+ return;
+ }
+ super.removeChildVisual(childEditPart);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure getContentPaneFor(IGraphicalEditPart editPart) {
+ if(editPart instanceof NodeCompositeCompartmentEditPartCN) {
+ return getPrimaryShape().getCompositeCompartmentFigure();
+ }
+ if(editPart instanceof IBorderItemEditPart) {
+ return getBorderedFigure().getBorderItemContainer();
+ }
+ return getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ protected NodeFigure createNodePlate() {
+ String prefElementId = "Node";
+ IPreferenceStore store = UMLDiagramEditorPlugin.getInstance().getPreferenceStore();
+ String preferenceConstantWitdh = PreferenceInitializerForElementHelper.getpreferenceKey(getNotationView(), prefElementId, PreferenceConstantHelper.WIDTH);
+ String preferenceConstantHeight = PreferenceInitializerForElementHelper.getpreferenceKey(getNotationView(), prefElementId, PreferenceConstantHelper.HEIGHT);
+ DefaultSizeNodeFigure result = new DefaultSizeNodeFigure(store.getInt(preferenceConstantWitdh), store.getInt(preferenceConstantHeight));
+
+ return result;
+ }
+
+ /**
+ * Creates figure for this edit part.
+ *
+ * Body of this method does not depend on settings in generation model
+ * so you may safely remove <i>generated</i> tag and modify it.
+ *
+ * @generated
+ */
+ protected NodeFigure createMainFigure() {
+ NodeFigure figure = createNodePlate();
+ figure.setLayoutManager(new StackLayout());
+ IFigure shape = createNodeShape();
+ figure.add(shape);
+ contentPane = setupContentPane(shape);
+ return figure;
+ }
+
+ /**
+ * Default implementation treats passed figure as content pane.
+ * Respects layout one may have set for generated figure.
+ *
+ * @param nodeShape
+ * instance of generated figure class
+ * @generated
+ */
+ protected IFigure setupContentPane(IFigure nodeShape) {
+ if(nodeShape.getLayoutManager() == null) {
+ ConstrainedToolbarLayout layout = new ConstrainedToolbarLayout();
+ layout.setSpacing(5);
+ nodeShape.setLayoutManager(layout);
+ }
+ return nodeShape; // use nodeShape itself as contentPane
+ }
+
+ /**
+ * @generated
+ */
+ public IFigure getContentPane() {
+ if(contentPane != null) {
+ return contentPane;
+ }
+ return super.getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ protected void setForegroundColor(Color color) {
+ if(primaryShape != null) {
+ primaryShape.setForegroundColor(color);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLineWidth(int width) {
+ if(primaryShape instanceof Shape) {
+ ((Shape)primaryShape).setLineWidth(width);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLineType(int style) {
+ if(primaryShape instanceof Shape) {
+ ((Shape)primaryShape).setLineStyle(style);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public EditPart getPrimaryChildEditPart() {
+ return getChildBySemanticHint(UMLVisualIDRegistry.getType(NodeCompositeNameEditPartCN.VISUAL_ID));
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnSource() {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(12);
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ types.add(UMLElementTypes.Substitution_4011);
+ types.add(UMLElementTypes.Realization_4006);
+ types.add(UMLElementTypes.Manifestation_4012);
+ types.add(UMLElementTypes.Abstraction_4007);
+ types.add(UMLElementTypes.Usage_4008);
+ types.add(UMLElementTypes.Deployment_4009);
+ types.add(UMLElementTypes.Dependency_4017);
+ types.add(UMLElementTypes.Dependency_4010);
+ types.add(UMLElementTypes.Generalization_4015);
+ types.add(UMLElementTypes.InformationFlow_4021);
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnSourceAndTarget(IGraphicalEditPart targetEditPart) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMATypesForTarget(IElementType relationshipType) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(relationshipType == UMLElementTypes.ComponentRealization_4004) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InterfaceRealization_4005) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Substitution_4011) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Realization_4006) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Manifestation_4012) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Abstraction_4007) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Usage_4008) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Deployment_4009) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4017) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4010) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Generalization_4015) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ } else if(relationshipType == UMLElementTypes.InformationFlow_4021) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnTarget() {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(17);
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ types.add(UMLElementTypes.Substitution_4011);
+ types.add(UMLElementTypes.Realization_4006);
+ types.add(UMLElementTypes.Manifestation_4012);
+ types.add(UMLElementTypes.Abstraction_4007);
+ types.add(UMLElementTypes.Usage_4008);
+ types.add(UMLElementTypes.Deployment_4009);
+ types.add(UMLElementTypes.Dependency_4017);
+ types.add(UMLElementTypes.Dependency_4010);
+ types.add(UMLElementTypes.Generalization_4015);
+ types.add(UMLElementTypes.TimeObservationEvent_4018);
+ types.add(UMLElementTypes.DurationObservationEvent_4019);
+ types.add(UMLElementTypes.InformationItemRepresented_4020);
+ types.add(UMLElementTypes.InformationFlow_4021);
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMATypesForSource(IElementType relationshipType) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(relationshipType == UMLElementTypes.CommentAnnotatedElement_4002) {
+ types.add(UMLElementTypes.Comment_2109);
+ types.add(UMLElementTypes.Comment_3097);
+ } else if(relationshipType == UMLElementTypes.ConstraintConstrainedElement_4003) {
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.ComponentRealization_4004) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InterfaceRealization_4005) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Substitution_4011) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Realization_4006) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Manifestation_4012) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Abstraction_4007) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Usage_4008) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Deployment_4009) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4017) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4010) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Generalization_4015) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ } else if(relationshipType == UMLElementTypes.TimeObservationEvent_4018) {
+ types.add(UMLElementTypes.TimeObservation_2094);
+ } else if(relationshipType == UMLElementTypes.DurationObservationEvent_4019) {
+ types.add(UMLElementTypes.DurationObservation_2093);
+ } else if(relationshipType == UMLElementTypes.InformationItemRepresented_4020) {
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.InformationItem_3094);
+ } else if(relationshipType == UMLElementTypes.InformationFlow_4021) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public Object getPreferredValue(EStructuralFeature feature) {
+ IPreferenceStore preferenceStore = (IPreferenceStore)getDiagramPreferencesHint().getPreferenceStore();
+ Object result = null;
+
+ if(feature == NotationPackage.eINSTANCE.getLineStyle_LineColor() || feature == NotationPackage.eINSTANCE.getFontStyle_FontColor() || feature == NotationPackage.eINSTANCE.getFillStyle_FillColor()) {
+ String prefColor = null;
+ if(feature == NotationPackage.eINSTANCE.getLineStyle_LineColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("Node", PreferenceConstantHelper.COLOR_LINE);
+ } else if(feature == NotationPackage.eINSTANCE.getFontStyle_FontColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("Node", PreferenceConstantHelper.COLOR_FONT);
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_FillColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("Node", PreferenceConstantHelper.COLOR_FILL);
+ }
+ result = FigureUtilities.RGBToInteger(PreferenceConverter.getColor((IPreferenceStore)preferenceStore, prefColor));
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_Transparency() || feature == NotationPackage.eINSTANCE.getFillStyle_Gradient()) {
+ String prefGradient = PreferenceConstantHelper.getElementConstant("Node", PreferenceConstantHelper.COLOR_GRADIENT);
+ GradientPreferenceConverter gradientPreferenceConverter = new GradientPreferenceConverter(preferenceStore.getString(prefGradient));
+ if(feature == NotationPackage.eINSTANCE.getFillStyle_Transparency()) {
+ result = new Integer(gradientPreferenceConverter.getTransparency());
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_Gradient()) {
+ result = gradientPreferenceConverter.getGradientData();
+ }
+ }
+
+ if(result == null) {
+ result = getStructuralFeatureValue(feature);
+ }
+ return result;
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/NodeCompositeNameEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/NodeCompositeNameEditPart.java
new file mode 100644
index 00000000000..15ea6c0bfa0
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/NodeCompositeNameEditPart.java
@@ -0,0 +1,791 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EAnnotation;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.emf.transaction.RunnableWithResult;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.AccessibleEditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.requests.DirectEditRequest;
+import org.eclipse.gef.tools.DirectEditManager;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.CompartmentEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
+import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
+import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
+import org.eclipse.gmf.runtime.notation.FontStyle;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
+import org.eclipse.jface.viewers.ICellEditorValidator;
+import org.eclipse.jface.window.Window;
+import org.eclipse.papyrus.diagram.common.directedit.MultilineLabelDirectEditManager;
+import org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition;
+import org.eclipse.papyrus.diagram.common.editpolicies.IMaskManagedLabelEditPolicy;
+import org.eclipse.papyrus.diagram.common.figure.node.ILabelFigure;
+import org.eclipse.papyrus.diagram.common.util.DiagramEditPartsUtil;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLTextSelectionEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.diagram.composite.providers.UMLParserProvider;
+import org.eclipse.papyrus.extensionpoints.editors.Activator;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
+import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
+import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
+import org.eclipse.papyrus.umlutils.ui.VisualInformationPapyrusConstant;
+import org.eclipse.papyrus.umlutils.ui.helper.NameLabelIconHelper;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.AccessibleEvent;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.FontData;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.ui.PlatformUI;
+
+/**
+ * @generated
+ */
+public class NodeCompositeNameEditPart extends CompartmentEditPart implements ITextAwareEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 5124;
+
+ /**
+ * @generated
+ */
+ private DirectEditManager manager;
+
+ /**
+ * @generated
+ */
+ private IParser parser;
+
+ /**
+ * @generated
+ */
+ private List<?> parserElements;
+
+ /**
+ * @generated
+ */
+ private String defaultText;
+
+ /**
+ * direct edition mode (default, undefined, registered editor, etc.)
+ *
+ * @generated
+ */
+ protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
+
+ /**
+ * configuration from a registered edit dialog
+ *
+ * @generated
+ */
+ protected IDirectEditorConfiguration configuration;
+
+ /**
+ * @generated
+ */
+ public NodeCompositeNameEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
+ installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new CompositeStructureDiagramEditPart.NodeLabelDragPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelTextHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getText();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getText();
+ } else {
+ return ((Label)figure).getText();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelTextHelper(IFigure figure, String text) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setText(text);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setText(text);
+ } else {
+ ((Label)figure).setText(text);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIconHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getIcon();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getIcon();
+ } else {
+ return ((Label)figure).getIcon();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelIconHelper(IFigure figure, Image icon) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setIcon(icon);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setIcon(icon);
+ } else {
+ ((Label)figure).setIcon(icon);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabel(WrappingLabel figure) {
+ unregisterVisuals();
+ setFigure(figure);
+ defaultText = getLabelTextHelper(figure);
+ registerVisuals();
+ refreshVisuals();
+ }
+
+ /**
+ * @generated
+ */
+ protected List getModelChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject getParserElement() {
+ return resolveSemanticElement();
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIcon() {
+ EObject parserElement = getParserElement();
+ if(parserElement == null) {
+ return null;
+ }
+
+ List<View> views = DiagramEditPartsUtil.findViews(parserElement, getViewer());
+ for(View view : views) {
+ if(NameLabelIconHelper.showLabelIcon(view)) {
+ return UMLElementTypes.getImage(parserElement.eClass());
+ }
+ }
+ return null;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelText() {
+ String text = null;
+ EObject parserElement = getParserElement();
+ if(parserElement != null && getParser() != null) {
+ text = getParser().getPrintString(new EObjectAdapter(parserElement), getParserOptions().intValue());
+ }
+ if(text == null || text.length() == 0) {
+ text = defaultText;
+ }
+ return text;
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabelText(String text) {
+ setLabelTextHelper(getFigure(), text);
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public String getEditText() {
+ if(getParserElement() == null || getParser() == null) {
+ return ""; //$NON-NLS-1$
+ }
+ return getParser().getEditString(new EObjectAdapter(getParserElement()), getParserOptions().intValue());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean isEditable() {
+ return getParser() != null;
+ }
+
+ /**
+ * @generated
+ */
+ public ICellEditorValidator getEditTextValidator() {
+ return new ICellEditorValidator() {
+
+ public String isValid(final Object value) {
+ if(value instanceof String) {
+ final EObject element = getParserElement();
+ final IParser parser = getParser();
+ try {
+ IParserEditStatus valid = (IParserEditStatus)getEditingDomain().runExclusive(new RunnableWithResult.Impl() {
+
+ public void run() {
+ setResult(parser.isValidEditString(new EObjectAdapter(element), (String)value));
+ }
+ });
+ return valid.getCode() == ParserEditStatus.EDITABLE ? null : valid.getMessage();
+ } catch (InterruptedException ie) {
+ ie.printStackTrace();
+ }
+ }
+
+ // shouldn't get here
+ return null;
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ public IContentAssistProcessor getCompletionProcessor() {
+ if(getParserElement() == null || getParser() == null) {
+ return null;
+ }
+ return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
+ }
+
+ /**
+ * @generated
+ */
+ public ParserOptions getParserOptions() {
+ return ParserOptions.NONE;
+ }
+
+ /**
+ * @generated
+ */
+ public IParser getParser() {
+ if(parser == null) {
+ parser = UMLParserProvider.getParser(UMLElementTypes.Node_2072, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.diagram.composite.edit.parts.NodeCompositeNameEditPart.VISUAL_ID));
+ }
+ return parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected DirectEditManager getManager() {
+ if(manager == null) {
+ setManager(new MultilineLabelDirectEditManager(this, MultilineLabelDirectEditManager.getTextCellEditorClass(this), UMLEditPartFactory.getTextCellEditorLocator(this)));
+ }
+ return manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setManager(DirectEditManager manager) {
+ this.manager = manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit() {
+ getManager().show();
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit(Point eventLocation) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(eventLocation.getSWTPoint());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void performDirectEdit(char initialCharacter) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(initialCharacter);
+ } else {
+ performDirectEdit();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEditRequest(Request request) {
+
+ final Request theRequest = request;
+
+ if(IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
+ directEditionMode = getDirectEditionType();
+ }
+ switch(directEditionMode) {
+ case IDirectEdition.NO_DIRECT_EDITION:
+ // no direct edition mode => does nothing
+ return;
+ case IDirectEdition.EXTENDED_DIRECT_EDITOR:
+ updateExtendedEditorConfiguration();
+ if(configuration == null || configuration.getLanguage() == null) {
+ performDefaultDirectEditorEdit(theRequest);
+ } else {
+ configuration.preEditAction(resolveSemanticElement());
+ Dialog dialog = null;
+ if(configuration instanceof IPopupEditorConfiguration) {
+ IPopupEditorHelper helper = ((IPopupEditorConfiguration)configuration).createPopupEditorHelper(this);
+ helper.showEditor();
+ return;
+ } else if(configuration instanceof IAdvancedEditorConfiguration) {
+ dialog = ((IAdvancedEditorConfiguration)configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
+ } else if(configuration instanceof IDirectEditorConfiguration) {
+ dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), ((IDirectEditorConfiguration)configuration).getTextToEdit(resolveSemanticElement()), (IDirectEditorConfiguration)configuration);
+ } else {
+ return;
+ }
+ final Dialog finalDialog = dialog;
+
+ if(Window.OK == dialog.open()) {
+ TransactionalEditingDomain domain = getEditingDomain();
+ RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
+
+ @Override
+ protected void doExecute() {
+ configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog)finalDialog).getValue());
+
+ }
+ };
+ domain.getCommandStack().execute(command);
+ }
+ }
+ break;
+ case IDirectEdition.DEFAULT_DIRECT_EDITOR:
+
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ break;
+ default:
+ break;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshLabel();
+ refreshFont();
+ refreshFontColor();
+ refreshUnderline();
+ refreshStrikeThrough();
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshLabel() {
+ EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
+ if(maskLabelPolicy == null) {
+ setLabelTextHelper(getFigure(), getLabelText());
+ setLabelIconHelper(getFigure(), getLabelIcon());
+ }
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshUnderline() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextUnderline(style.isUnderline());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshStrikeThrough() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextStrikeThrough(style.isStrikeThrough());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshFont() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null) {
+ FontData fontData = new FontData(style.getFontName(), style.getFontHeight(), (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
+ setFont(fontData);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setFontColor(Color color) {
+ getFigure().setForegroundColor(color);
+ }
+
+ /**
+ * @generated
+ */
+ protected void addSemanticListeners() {
+ if(getParser() instanceof ISemanticParser) {
+ EObject element = resolveSemanticElement();
+ parserElements = ((ISemanticParser)getParser()).getSemanticElementsBeingParsed(element);
+ for(int i = 0; i < parserElements.size(); i++) {
+ addListenerFilter("SemanticModel" + i, this, (EObject)parserElements.get(i)); //$NON-NLS-1$
+ }
+ } else {
+ super.addSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeSemanticListeners() {
+ if(parserElements != null) {
+ for(int i = 0; i < parserElements.size(); i++) {
+ removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
+ }
+ } else {
+ super.removeSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected AccessibleEditPart getAccessibleEditPart() {
+ if(accessibleEP == null) {
+ accessibleEP = new AccessibleGraphicalEditPart() {
+
+ public void getName(AccessibleEvent e) {
+ e.result = getLabelTextHelper(getFigure());
+ }
+ };
+ }
+ return accessibleEP;
+ }
+
+ /**
+ * @generated
+ */
+ private View getFontStyleOwnerView() {
+ return (View)getModel();
+ }
+
+ /**
+ * Returns the kind of associated editor for direct edition.
+ *
+ * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition
+ * @generated
+ */
+ public int getDirectEditionType() {
+ if(checkExtendedEditor()) {
+ initExtendedEditorConfiguration();
+ return IDirectEdition.EXTENDED_DIRECT_EDITOR;
+ }
+ if(checkDefaultEdition()) {
+ return IDirectEdition.DEFAULT_DIRECT_EDITOR;
+ }
+
+ // not a named element. no specific editor => do nothing
+ return IDirectEdition.NO_DIRECT_EDITION;
+ }
+
+ /**
+ * Checks if an extended editor is present.
+ *
+ * @return <code>true</code> if an extended editor is present.
+ * @generated
+ */
+ protected boolean checkExtendedEditor() {
+ if(resolveSemanticElement() != null) {
+ return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ return false;
+ }
+
+ /**
+ * Checks if a default direct edition is available
+ *
+ * @return <code>true</code> if a default direct edition is available
+ * @generated
+ */
+ protected boolean checkDefaultEdition() {
+ return (getParser() != null);
+ }
+
+ /**
+ * Initializes the extended editor configuration
+ *
+ * @generated
+ */
+ protected void initExtendedEditorConfiguration() {
+ if(configuration == null) {
+ final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("")) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else {
+ configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ }
+ }
+
+ /**
+ * Updates the preference configuration
+ *
+ * @generated
+ */
+ protected void updateExtendedEditorConfiguration() {
+ String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("") && languagePreferred != configuration.getLanguage()) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else if(IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
+ configuration = null;
+ }
+ }
+
+ /**
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
+ protected void performDefaultDirectEditorEdit(final Request theRequest) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void addNotationalListeners() {
+ super.addNotationalListeners();
+ addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeNotationalListeners() {
+ super.removeNotationalListeners();
+ removeListenerFilter("PrimaryView"); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void handleNotificationEvent(Notification event) {
+ refreshLabel();
+ Object feature = event.getFeature();
+ if(NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
+ Integer c = (Integer)event.getNewValue();
+ setFontColor(DiagramColorRegistry.getInstance().getColor(c));
+ } else if(NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
+ refreshUnderline();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
+ refreshStrikeThrough();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
+ refreshFont();
+ } else {
+ if(getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
+ refreshLabel();
+ }
+ if(getParser() instanceof ISemanticParser) {
+ ISemanticParser modelParser = (ISemanticParser)getParser();
+ if(modelParser.areSemanticElementsAffected(null, event)) {
+ removeSemanticListeners();
+ if(resolveSemanticElement() != null) {
+ addSemanticListeners();
+ }
+ refreshLabel();
+ }
+ }
+ }
+
+ if(event.getNewValue() instanceof EAnnotation && VisualInformationPapyrusConstant.DISPLAY_NAMELABELICON.equals(((EAnnotation)event.getNewValue()).getSource())) {
+ refreshLabel();
+ }
+
+ super.handleNotificationEvent(event);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createFigure() {
+ // Parent should assign one using setLabel() method
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ private static final String ADD_PARENT_MODEL = "AddParentModel";
+
+ /**
+ * @generated
+ */
+ public void activate() {
+ super.activate();
+ addOwnerElementListeners();
+ }
+
+ /**
+ * @generated
+ */
+ protected void addOwnerElementListeners() {
+ addListenerFilter(ADD_PARENT_MODEL, this, ((View)getParent().getModel())); //$NON-NLS-1$
+
+ }
+
+ /**
+ * @generated
+ */
+ public void deactivate() {
+ removeOwnerElementListeners();
+ super.deactivate();
+
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeOwnerElementListeners() {
+ removeListenerFilter(ADD_PARENT_MODEL);
+
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/NodeCompositeNameEditPartCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/NodeCompositeNameEditPartCN.java
new file mode 100644
index 00000000000..118b7cf433b
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/NodeCompositeNameEditPartCN.java
@@ -0,0 +1,791 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EAnnotation;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.emf.transaction.RunnableWithResult;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.AccessibleEditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.requests.DirectEditRequest;
+import org.eclipse.gef.tools.DirectEditManager;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.CompartmentEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
+import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
+import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
+import org.eclipse.gmf.runtime.notation.FontStyle;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
+import org.eclipse.jface.viewers.ICellEditorValidator;
+import org.eclipse.jface.window.Window;
+import org.eclipse.papyrus.diagram.common.directedit.MultilineLabelDirectEditManager;
+import org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition;
+import org.eclipse.papyrus.diagram.common.editpolicies.IMaskManagedLabelEditPolicy;
+import org.eclipse.papyrus.diagram.common.figure.node.ILabelFigure;
+import org.eclipse.papyrus.diagram.common.util.DiagramEditPartsUtil;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLTextSelectionEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.diagram.composite.providers.UMLParserProvider;
+import org.eclipse.papyrus.extensionpoints.editors.Activator;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
+import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
+import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
+import org.eclipse.papyrus.umlutils.ui.VisualInformationPapyrusConstant;
+import org.eclipse.papyrus.umlutils.ui.helper.NameLabelIconHelper;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.AccessibleEvent;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.FontData;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.ui.PlatformUI;
+
+/**
+ * @generated
+ */
+public class NodeCompositeNameEditPartCN extends CompartmentEditPart implements ITextAwareEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 5140;
+
+ /**
+ * @generated
+ */
+ private DirectEditManager manager;
+
+ /**
+ * @generated
+ */
+ private IParser parser;
+
+ /**
+ * @generated
+ */
+ private List<?> parserElements;
+
+ /**
+ * @generated
+ */
+ private String defaultText;
+
+ /**
+ * direct edition mode (default, undefined, registered editor, etc.)
+ *
+ * @generated
+ */
+ protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
+
+ /**
+ * configuration from a registered edit dialog
+ *
+ * @generated
+ */
+ protected IDirectEditorConfiguration configuration;
+
+ /**
+ * @generated
+ */
+ public NodeCompositeNameEditPartCN(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
+ installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new CompositeStructureDiagramEditPart.NodeLabelDragPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelTextHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getText();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getText();
+ } else {
+ return ((Label)figure).getText();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelTextHelper(IFigure figure, String text) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setText(text);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setText(text);
+ } else {
+ ((Label)figure).setText(text);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIconHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getIcon();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getIcon();
+ } else {
+ return ((Label)figure).getIcon();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelIconHelper(IFigure figure, Image icon) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setIcon(icon);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setIcon(icon);
+ } else {
+ ((Label)figure).setIcon(icon);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabel(WrappingLabel figure) {
+ unregisterVisuals();
+ setFigure(figure);
+ defaultText = getLabelTextHelper(figure);
+ registerVisuals();
+ refreshVisuals();
+ }
+
+ /**
+ * @generated
+ */
+ protected List getModelChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject getParserElement() {
+ return resolveSemanticElement();
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIcon() {
+ EObject parserElement = getParserElement();
+ if(parserElement == null) {
+ return null;
+ }
+
+ List<View> views = DiagramEditPartsUtil.findViews(parserElement, getViewer());
+ for(View view : views) {
+ if(NameLabelIconHelper.showLabelIcon(view)) {
+ return UMLElementTypes.getImage(parserElement.eClass());
+ }
+ }
+ return null;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelText() {
+ String text = null;
+ EObject parserElement = getParserElement();
+ if(parserElement != null && getParser() != null) {
+ text = getParser().getPrintString(new EObjectAdapter(parserElement), getParserOptions().intValue());
+ }
+ if(text == null || text.length() == 0) {
+ text = defaultText;
+ }
+ return text;
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabelText(String text) {
+ setLabelTextHelper(getFigure(), text);
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public String getEditText() {
+ if(getParserElement() == null || getParser() == null) {
+ return ""; //$NON-NLS-1$
+ }
+ return getParser().getEditString(new EObjectAdapter(getParserElement()), getParserOptions().intValue());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean isEditable() {
+ return getParser() != null;
+ }
+
+ /**
+ * @generated
+ */
+ public ICellEditorValidator getEditTextValidator() {
+ return new ICellEditorValidator() {
+
+ public String isValid(final Object value) {
+ if(value instanceof String) {
+ final EObject element = getParserElement();
+ final IParser parser = getParser();
+ try {
+ IParserEditStatus valid = (IParserEditStatus)getEditingDomain().runExclusive(new RunnableWithResult.Impl() {
+
+ public void run() {
+ setResult(parser.isValidEditString(new EObjectAdapter(element), (String)value));
+ }
+ });
+ return valid.getCode() == ParserEditStatus.EDITABLE ? null : valid.getMessage();
+ } catch (InterruptedException ie) {
+ ie.printStackTrace();
+ }
+ }
+
+ // shouldn't get here
+ return null;
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ public IContentAssistProcessor getCompletionProcessor() {
+ if(getParserElement() == null || getParser() == null) {
+ return null;
+ }
+ return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
+ }
+
+ /**
+ * @generated
+ */
+ public ParserOptions getParserOptions() {
+ return ParserOptions.NONE;
+ }
+
+ /**
+ * @generated
+ */
+ public IParser getParser() {
+ if(parser == null) {
+ parser = UMLParserProvider.getParser(UMLElementTypes.Node_3084, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.diagram.composite.edit.parts.NodeCompositeNameEditPartCN.VISUAL_ID));
+ }
+ return parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected DirectEditManager getManager() {
+ if(manager == null) {
+ setManager(new MultilineLabelDirectEditManager(this, MultilineLabelDirectEditManager.getTextCellEditorClass(this), UMLEditPartFactory.getTextCellEditorLocator(this)));
+ }
+ return manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setManager(DirectEditManager manager) {
+ this.manager = manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit() {
+ getManager().show();
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit(Point eventLocation) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(eventLocation.getSWTPoint());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void performDirectEdit(char initialCharacter) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(initialCharacter);
+ } else {
+ performDirectEdit();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEditRequest(Request request) {
+
+ final Request theRequest = request;
+
+ if(IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
+ directEditionMode = getDirectEditionType();
+ }
+ switch(directEditionMode) {
+ case IDirectEdition.NO_DIRECT_EDITION:
+ // no direct edition mode => does nothing
+ return;
+ case IDirectEdition.EXTENDED_DIRECT_EDITOR:
+ updateExtendedEditorConfiguration();
+ if(configuration == null || configuration.getLanguage() == null) {
+ performDefaultDirectEditorEdit(theRequest);
+ } else {
+ configuration.preEditAction(resolveSemanticElement());
+ Dialog dialog = null;
+ if(configuration instanceof IPopupEditorConfiguration) {
+ IPopupEditorHelper helper = ((IPopupEditorConfiguration)configuration).createPopupEditorHelper(this);
+ helper.showEditor();
+ return;
+ } else if(configuration instanceof IAdvancedEditorConfiguration) {
+ dialog = ((IAdvancedEditorConfiguration)configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
+ } else if(configuration instanceof IDirectEditorConfiguration) {
+ dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), ((IDirectEditorConfiguration)configuration).getTextToEdit(resolveSemanticElement()), (IDirectEditorConfiguration)configuration);
+ } else {
+ return;
+ }
+ final Dialog finalDialog = dialog;
+
+ if(Window.OK == dialog.open()) {
+ TransactionalEditingDomain domain = getEditingDomain();
+ RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
+
+ @Override
+ protected void doExecute() {
+ configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog)finalDialog).getValue());
+
+ }
+ };
+ domain.getCommandStack().execute(command);
+ }
+ }
+ break;
+ case IDirectEdition.DEFAULT_DIRECT_EDITOR:
+
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ break;
+ default:
+ break;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshLabel();
+ refreshFont();
+ refreshFontColor();
+ refreshUnderline();
+ refreshStrikeThrough();
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshLabel() {
+ EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
+ if(maskLabelPolicy == null) {
+ setLabelTextHelper(getFigure(), getLabelText());
+ setLabelIconHelper(getFigure(), getLabelIcon());
+ }
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshUnderline() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextUnderline(style.isUnderline());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshStrikeThrough() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextStrikeThrough(style.isStrikeThrough());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshFont() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null) {
+ FontData fontData = new FontData(style.getFontName(), style.getFontHeight(), (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
+ setFont(fontData);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setFontColor(Color color) {
+ getFigure().setForegroundColor(color);
+ }
+
+ /**
+ * @generated
+ */
+ protected void addSemanticListeners() {
+ if(getParser() instanceof ISemanticParser) {
+ EObject element = resolveSemanticElement();
+ parserElements = ((ISemanticParser)getParser()).getSemanticElementsBeingParsed(element);
+ for(int i = 0; i < parserElements.size(); i++) {
+ addListenerFilter("SemanticModel" + i, this, (EObject)parserElements.get(i)); //$NON-NLS-1$
+ }
+ } else {
+ super.addSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeSemanticListeners() {
+ if(parserElements != null) {
+ for(int i = 0; i < parserElements.size(); i++) {
+ removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
+ }
+ } else {
+ super.removeSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected AccessibleEditPart getAccessibleEditPart() {
+ if(accessibleEP == null) {
+ accessibleEP = new AccessibleGraphicalEditPart() {
+
+ public void getName(AccessibleEvent e) {
+ e.result = getLabelTextHelper(getFigure());
+ }
+ };
+ }
+ return accessibleEP;
+ }
+
+ /**
+ * @generated
+ */
+ private View getFontStyleOwnerView() {
+ return (View)getModel();
+ }
+
+ /**
+ * Returns the kind of associated editor for direct edition.
+ *
+ * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition
+ * @generated
+ */
+ public int getDirectEditionType() {
+ if(checkExtendedEditor()) {
+ initExtendedEditorConfiguration();
+ return IDirectEdition.EXTENDED_DIRECT_EDITOR;
+ }
+ if(checkDefaultEdition()) {
+ return IDirectEdition.DEFAULT_DIRECT_EDITOR;
+ }
+
+ // not a named element. no specific editor => do nothing
+ return IDirectEdition.NO_DIRECT_EDITION;
+ }
+
+ /**
+ * Checks if an extended editor is present.
+ *
+ * @return <code>true</code> if an extended editor is present.
+ * @generated
+ */
+ protected boolean checkExtendedEditor() {
+ if(resolveSemanticElement() != null) {
+ return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ return false;
+ }
+
+ /**
+ * Checks if a default direct edition is available
+ *
+ * @return <code>true</code> if a default direct edition is available
+ * @generated
+ */
+ protected boolean checkDefaultEdition() {
+ return (getParser() != null);
+ }
+
+ /**
+ * Initializes the extended editor configuration
+ *
+ * @generated
+ */
+ protected void initExtendedEditorConfiguration() {
+ if(configuration == null) {
+ final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("")) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else {
+ configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ }
+ }
+
+ /**
+ * Updates the preference configuration
+ *
+ * @generated
+ */
+ protected void updateExtendedEditorConfiguration() {
+ String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("") && languagePreferred != configuration.getLanguage()) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else if(IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
+ configuration = null;
+ }
+ }
+
+ /**
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
+ protected void performDefaultDirectEditorEdit(final Request theRequest) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void addNotationalListeners() {
+ super.addNotationalListeners();
+ addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeNotationalListeners() {
+ super.removeNotationalListeners();
+ removeListenerFilter("PrimaryView"); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void handleNotificationEvent(Notification event) {
+ refreshLabel();
+ Object feature = event.getFeature();
+ if(NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
+ Integer c = (Integer)event.getNewValue();
+ setFontColor(DiagramColorRegistry.getInstance().getColor(c));
+ } else if(NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
+ refreshUnderline();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
+ refreshStrikeThrough();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
+ refreshFont();
+ } else {
+ if(getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
+ refreshLabel();
+ }
+ if(getParser() instanceof ISemanticParser) {
+ ISemanticParser modelParser = (ISemanticParser)getParser();
+ if(modelParser.areSemanticElementsAffected(null, event)) {
+ removeSemanticListeners();
+ if(resolveSemanticElement() != null) {
+ addSemanticListeners();
+ }
+ refreshLabel();
+ }
+ }
+ }
+
+ if(event.getNewValue() instanceof EAnnotation && VisualInformationPapyrusConstant.DISPLAY_NAMELABELICON.equals(((EAnnotation)event.getNewValue()).getSource())) {
+ refreshLabel();
+ }
+
+ super.handleNotificationEvent(event);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createFigure() {
+ // Parent should assign one using setLabel() method
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ private static final String ADD_PARENT_MODEL = "AddParentModel";
+
+ /**
+ * @generated
+ */
+ public void activate() {
+ super.activate();
+ addOwnerElementListeners();
+ }
+
+ /**
+ * @generated
+ */
+ protected void addOwnerElementListeners() {
+ addListenerFilter(ADD_PARENT_MODEL, this, ((View)getParent().getModel())); //$NON-NLS-1$
+
+ }
+
+ /**
+ * @generated
+ */
+ public void deactivate() {
+ removeOwnerElementListeners();
+ super.deactivate();
+
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeOwnerElementListeners() {
+ removeListenerFilter(ADD_PARENT_MODEL);
+
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/OpaqueBehaviorCompositeCompartmentEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/OpaqueBehaviorCompositeCompartmentEditPart.java
new file mode 100644
index 00000000000..92b1437b967
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/OpaqueBehaviorCompositeCompartmentEditPart.java
@@ -0,0 +1,123 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import org.eclipse.draw2d.geometry.Dimension;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.draw2d.geometry.Rectangle;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.GraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ShapeCompartmentEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.CreationEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.DragDropEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.ResizableCompartmentEditPolicy;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.diagram.common.editparts.NoScrollBarShapeCompartmentEditPart;
+import org.eclipse.papyrus.diagram.common.editpolicies.CustomContainerEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.DuplicatePasteEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.CustomDiagramDragDropEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.PortInCompartmentCreationEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.RemoveOrphanViewPolicy;
+import org.eclipse.papyrus.diagram.composite.edit.policies.OpaqueBehaviorCompositeCompartmentItemSemanticEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.Messages;
+
+/**
+ * @generated
+ */
+public class OpaqueBehaviorCompositeCompartmentEditPart
+
+extends NoScrollBarShapeCompartmentEditPart
+
+{
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 7068;
+
+ /**
+ * @generated
+ */
+ public OpaqueBehaviorCompositeCompartmentEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ public String getCompartmentName() {
+ return Messages.OpaqueBehaviorCompositeCompartmentEditPart_title;
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new ResizableCompartmentEditPolicy());
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new OpaqueBehaviorCompositeCompartmentItemSemanticEditPolicy());
+ installEditPolicy(EditPolicyRoles.CREATION_ROLE, new CreationEditPolicy());
+ installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new DragDropEditPolicy());
+ installEditPolicy(DuplicatePasteEditPolicy.PASTE_ROLE, new DuplicatePasteEditPolicy());
+ installEditPolicy("REMOVE_ORPHAN_VIEW", new RemoveOrphanViewPolicy()); //$NON-NLS-1$
+ installEditPolicy(EditPolicy.GRAPHICAL_NODE_ROLE, new CustomContainerEditPolicy());
+ installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new CustomDiagramDragDropEditPolicy());
+ installEditPolicy(EditPolicyRoles.CREATION_ROLE, new PortInCompartmentCreationEditPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ protected void setRatio(Double ratio) {
+ if(getFigure().getParent().getLayoutManager() instanceof ConstrainedToolbarLayout) {
+ super.setRatio(ratio);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void handleNotificationEvent(Notification notification) {
+ Object feature = notification.getFeature();
+ if(NotationPackage.eINSTANCE.getSize_Width().equals(feature) || NotationPackage.eINSTANCE.getSize_Height().equals(feature) || NotationPackage.eINSTANCE.getLocation_X().equals(feature) || NotationPackage.eINSTANCE.getLocation_Y().equals(feature)) {
+ refreshBounds();
+ }
+ super.handleNotificationEvent(notification);
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshBounds() {
+ int width = ((Integer)getStructuralFeatureValue(NotationPackage.eINSTANCE.getSize_Width())).intValue();
+ int height = ((Integer)getStructuralFeatureValue(NotationPackage.eINSTANCE.getSize_Height())).intValue();
+ Dimension size = new Dimension(width, height);
+ int x = ((Integer)getStructuralFeatureValue(NotationPackage.eINSTANCE.getLocation_X())).intValue();
+ int y = ((Integer)getStructuralFeatureValue(NotationPackage.eINSTANCE.getLocation_Y())).intValue();
+ Point loc = new Point(x, y);
+ ((GraphicalEditPart)getParent()).setLayoutConstraint(this, getFigure(), new Rectangle(loc, size));
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshBounds();
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/OpaqueBehaviorCompositeCompartmentEditPartCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/OpaqueBehaviorCompositeCompartmentEditPartCN.java
new file mode 100644
index 00000000000..fd5d613fb80
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/OpaqueBehaviorCompositeCompartmentEditPartCN.java
@@ -0,0 +1,123 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import org.eclipse.draw2d.geometry.Dimension;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.draw2d.geometry.Rectangle;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.GraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ShapeCompartmentEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.CreationEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.DragDropEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.ResizableCompartmentEditPolicy;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.diagram.common.editparts.NoScrollBarShapeCompartmentEditPart;
+import org.eclipse.papyrus.diagram.common.editpolicies.CustomContainerEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.DuplicatePasteEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.CustomDiagramDragDropEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.PortInCompartmentCreationEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.RemoveOrphanViewPolicy;
+import org.eclipse.papyrus.diagram.composite.edit.policies.OpaqueBehaviorCompositeCompartmentItemSemanticEditPolicyCN;
+import org.eclipse.papyrus.diagram.composite.part.Messages;
+
+/**
+ * @generated
+ */
+public class OpaqueBehaviorCompositeCompartmentEditPartCN
+
+extends NoScrollBarShapeCompartmentEditPart
+
+{
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 7055;
+
+ /**
+ * @generated
+ */
+ public OpaqueBehaviorCompositeCompartmentEditPartCN(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ public String getCompartmentName() {
+ return Messages.OpaqueBehaviorCompositeCompartmentEditPartCN_title;
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new ResizableCompartmentEditPolicy());
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new OpaqueBehaviorCompositeCompartmentItemSemanticEditPolicyCN());
+ installEditPolicy(EditPolicyRoles.CREATION_ROLE, new CreationEditPolicy());
+ installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new DragDropEditPolicy());
+ installEditPolicy(DuplicatePasteEditPolicy.PASTE_ROLE, new DuplicatePasteEditPolicy());
+ installEditPolicy("REMOVE_ORPHAN_VIEW", new RemoveOrphanViewPolicy()); //$NON-NLS-1$
+ installEditPolicy(EditPolicy.GRAPHICAL_NODE_ROLE, new CustomContainerEditPolicy());
+ installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new CustomDiagramDragDropEditPolicy());
+ installEditPolicy(EditPolicyRoles.CREATION_ROLE, new PortInCompartmentCreationEditPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ protected void setRatio(Double ratio) {
+ if(getFigure().getParent().getLayoutManager() instanceof ConstrainedToolbarLayout) {
+ super.setRatio(ratio);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void handleNotificationEvent(Notification notification) {
+ Object feature = notification.getFeature();
+ if(NotationPackage.eINSTANCE.getSize_Width().equals(feature) || NotationPackage.eINSTANCE.getSize_Height().equals(feature) || NotationPackage.eINSTANCE.getLocation_X().equals(feature) || NotationPackage.eINSTANCE.getLocation_Y().equals(feature)) {
+ refreshBounds();
+ }
+ super.handleNotificationEvent(notification);
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshBounds() {
+ int width = ((Integer)getStructuralFeatureValue(NotationPackage.eINSTANCE.getSize_Width())).intValue();
+ int height = ((Integer)getStructuralFeatureValue(NotationPackage.eINSTANCE.getSize_Height())).intValue();
+ Dimension size = new Dimension(width, height);
+ int x = ((Integer)getStructuralFeatureValue(NotationPackage.eINSTANCE.getLocation_X())).intValue();
+ int y = ((Integer)getStructuralFeatureValue(NotationPackage.eINSTANCE.getLocation_Y())).intValue();
+ Point loc = new Point(x, y);
+ ((GraphicalEditPart)getParent()).setLayoutConstraint(this, getFigure(), new Rectangle(loc, size));
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshBounds();
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/OpaqueBehaviorCompositeEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/OpaqueBehaviorCompositeEditPart.java
new file mode 100644
index 00000000000..e4bffa54bbb
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/OpaqueBehaviorCompositeEditPart.java
@@ -0,0 +1,5406 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.ArrayList;
+import java.util.LinkedList;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.PositionConstants;
+import org.eclipse.draw2d.Shape;
+import org.eclipse.draw2d.StackLayout;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EStructuralFeature;
+import org.eclipse.gef.EditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.editpolicies.LayoutEditPolicy;
+import org.eclipse.gef.editpolicies.NonResizableEditPolicy;
+import org.eclipse.gef.requests.CreateRequest;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IBorderItemEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.CreationEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.DragDropEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.diagram.ui.figures.IBorderItemLocator;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.FigureUtilities;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.gef.ui.figures.DefaultSizeNodeFigure;
+import org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.jface.preference.PreferenceConverter;
+import org.eclipse.papyrus.diagram.common.editparts.NamedElementEditPart;
+import org.eclipse.papyrus.diagram.common.editpolicies.AffixedNodeAlignmentEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.BorderItemResizableEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.HyperLinkPopupBarEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.QualifiedNameDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.ShowHideClassifierContentsEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.ShowHideCompartmentEditPolicy;
+import org.eclipse.papyrus.diagram.common.helper.PreferenceInitializerForElementHelper;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.BehaviorLayoutEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.BehaviorResizableShapeEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.CustomDiagramDragDropEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.RemoveOrphanViewPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.figures.OpaqueBehaviorCompositeFigure;
+import org.eclipse.papyrus.diagram.composite.custom.locators.PortPositionLocator;
+import org.eclipse.papyrus.diagram.composite.edit.policies.OpaqueBehaviorCompositeItemSemanticEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorPlugin;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter;
+import org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper;
+import org.eclipse.swt.graphics.Color;
+
+/**
+ * @generated
+ */
+public class OpaqueBehaviorCompositeEditPart extends
+
+NamedElementEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 2065;
+
+ /**
+ * @generated
+ */
+ protected IFigure contentPane;
+
+ /**
+ * @generated
+ */
+ protected IFigure primaryShape;
+
+ /**
+ * @generated
+ */
+ public OpaqueBehaviorCompositeEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ installEditPolicy(EditPolicyRoles.CREATION_ROLE, new CreationEditPolicy());
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new OpaqueBehaviorCompositeItemSemanticEditPolicy());
+ installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new DragDropEditPolicy());
+ installEditPolicy(EditPolicy.LAYOUT_ROLE, createLayoutEditPolicy());
+ installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new CustomDiagramDragDropEditPolicy());
+ installEditPolicy(QualifiedNameDisplayEditPolicy.QUALIFIED_NAME_POLICY, new QualifiedNameDisplayEditPolicy());
+ installEditPolicy(AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeNodeLabelDisplayEditPolicy());
+ installEditPolicy(EditPolicyRoles.POPUPBAR_ROLE, new HyperLinkPopupBarEditPolicy());
+ installEditPolicy(EditPolicy.LAYOUT_ROLE, new BehaviorLayoutEditPolicy());
+ installEditPolicy(ShowHideClassifierContentsEditPolicy.SHOW_HIDE_CLASSIFIER_CONTENTS_POLICY, new ShowHideClassifierContentsEditPolicy());
+ installEditPolicy(ShowHideCompartmentEditPolicy.SHOW_HIDE_COMPARTMENT_POLICY, new ShowHideCompartmentEditPolicy());
+ installEditPolicy(AffixedNodeAlignmentEditPolicy.AFFIXED_CHILD_ALIGNMENT_ROLE, new AffixedNodeAlignmentEditPolicy());
+ installEditPolicy("REMOVE_ORPHAN_VIEW", new RemoveOrphanViewPolicy()); //$NON-NLS-1$
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new BehaviorResizableShapeEditPolicy());
+ // XXX need an SCR to runtime to have another abstract superclass that would let children add reasonable editpolicies
+ // removeEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CONNECTION_HANDLES_ROLE);
+ }
+
+ /**
+ * Papyrus codeGen
+ *
+ * @generated
+ **/
+ protected void handleNotificationEvent(Notification event) {
+ super.handleNotificationEvent(event);
+
+ }
+
+ /**
+ * @generated
+ */
+ protected LayoutEditPolicy createLayoutEditPolicy() {
+ org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy lep = new org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy() {
+
+ protected EditPolicy createChildEditPolicy(EditPart child) {
+ View childView = (View)child.getModel();
+ switch(UMLVisualIDRegistry.getVisualID(childView)) {
+ case PortEditPart.VISUAL_ID:
+ case ParameterEditPart.VISUAL_ID:
+
+ return new BorderItemResizableEditPolicy();
+
+ }
+ EditPolicy result = child.getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(result == null) {
+ result = new NonResizableEditPolicy();
+ }
+ return result;
+ }
+
+ protected Command getMoveChildrenCommand(Request request) {
+ return null;
+ }
+
+ protected Command getCreateCommand(CreateRequest request) {
+ return null;
+ }
+ };
+ return lep;
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createNodeShape() {
+ return primaryShape = new OpaqueBehaviorCompositeFigure();
+ }
+
+ /**
+ * @generated
+ */
+ public OpaqueBehaviorCompositeFigure getPrimaryShape() {
+ return (OpaqueBehaviorCompositeFigure)primaryShape;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean addFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof OpaqueBehaviorCompositeNameEditPart) {
+ ((OpaqueBehaviorCompositeNameEditPart)childEditPart).setLabel(getPrimaryShape().getNameLabel());
+ return true;
+ }
+
+ if(childEditPart instanceof OpaqueBehaviorCompositeCompartmentEditPart) {
+ IFigure pane = getPrimaryShape().getCompositeCompartmentFigure();
+ setupContentPane(pane); // FIXME each comparment should handle his content pane in his own way
+ pane.add(((OpaqueBehaviorCompositeCompartmentEditPart)childEditPart).getFigure());
+ return true;
+ }
+
+ //Papyrus Gencode :Affixed Port locator
+ if(childEditPart instanceof PortEditPart) {
+ IBorderItemLocator locator = new PortPositionLocator(getMainFigure(), PositionConstants.NONE);
+ getBorderedFigure().getBorderItemContainer().add(((PortEditPart)childEditPart).getFigure(), locator);
+ return true;
+ }
+
+ //Papyrus Gencode :Affixed Port locator
+ if(childEditPart instanceof ParameterEditPart) {
+ IBorderItemLocator locator = new PortPositionLocator(getMainFigure(), PositionConstants.NONE);
+ getBorderedFigure().getBorderItemContainer().add(((ParameterEditPart)childEditPart).getFigure(), locator);
+ return true;
+ }
+
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean removeFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof OpaqueBehaviorCompositeNameEditPart) {
+ return true;
+ }
+ if(childEditPart instanceof OpaqueBehaviorCompositeCompartmentEditPart) {
+ IFigure pane = getPrimaryShape().getCompositeCompartmentFigure();
+ setupContentPane(pane); // FIXME each comparment should handle his content pane in his own way
+ pane.remove(((OpaqueBehaviorCompositeCompartmentEditPart)childEditPart).getFigure());
+ return true;
+ }
+ if(childEditPart instanceof PortEditPart) {
+ getBorderedFigure().getBorderItemContainer().remove(((PortEditPart)childEditPart).getFigure());
+ return true;
+ }
+ if(childEditPart instanceof ParameterEditPart) {
+ getBorderedFigure().getBorderItemContainer().remove(((ParameterEditPart)childEditPart).getFigure());
+ return true;
+ }
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected void addChildVisual(EditPart childEditPart, int index) {
+ if(addFixedChild(childEditPart)) {
+ return;
+ }
+ super.addChildVisual(childEditPart, -1);
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeChildVisual(EditPart childEditPart) {
+ if(removeFixedChild(childEditPart)) {
+ return;
+ }
+ super.removeChildVisual(childEditPart);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure getContentPaneFor(IGraphicalEditPart editPart) {
+ if(editPart instanceof OpaqueBehaviorCompositeCompartmentEditPart) {
+ return getPrimaryShape().getCompositeCompartmentFigure();
+ }
+ if(editPart instanceof IBorderItemEditPart) {
+ return getBorderedFigure().getBorderItemContainer();
+ }
+ return getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ protected NodeFigure createNodePlate() {
+ String prefElementId = "OpaqueBehavior";
+ IPreferenceStore store = UMLDiagramEditorPlugin.getInstance().getPreferenceStore();
+ String preferenceConstantWitdh = PreferenceInitializerForElementHelper.getpreferenceKey(getNotationView(), prefElementId, PreferenceConstantHelper.WIDTH);
+ String preferenceConstantHeight = PreferenceInitializerForElementHelper.getpreferenceKey(getNotationView(), prefElementId, PreferenceConstantHelper.HEIGHT);
+ DefaultSizeNodeFigure result = new DefaultSizeNodeFigure(store.getInt(preferenceConstantWitdh), store.getInt(preferenceConstantHeight));
+
+ return result;
+ }
+
+ /**
+ * Creates figure for this edit part.
+ *
+ * Body of this method does not depend on settings in generation model
+ * so you may safely remove <i>generated</i> tag and modify it.
+ *
+ * @generated
+ */
+ protected NodeFigure createMainFigure() {
+ NodeFigure figure = createNodePlate();
+ figure.setLayoutManager(new StackLayout());
+ IFigure shape = createNodeShape();
+ figure.add(shape);
+ contentPane = setupContentPane(shape);
+ return figure;
+ }
+
+ /**
+ * Default implementation treats passed figure as content pane.
+ * Respects layout one may have set for generated figure.
+ *
+ * @param nodeShape
+ * instance of generated figure class
+ * @generated
+ */
+ protected IFigure setupContentPane(IFigure nodeShape) {
+ if(nodeShape.getLayoutManager() == null) {
+ ConstrainedToolbarLayout layout = new ConstrainedToolbarLayout();
+ layout.setSpacing(5);
+ nodeShape.setLayoutManager(layout);
+ }
+ return nodeShape; // use nodeShape itself as contentPane
+ }
+
+ /**
+ * @generated
+ */
+ public IFigure getContentPane() {
+ if(contentPane != null) {
+ return contentPane;
+ }
+ return super.getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ protected void setForegroundColor(Color color) {
+ if(primaryShape != null) {
+ primaryShape.setForegroundColor(color);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLineWidth(int width) {
+ if(primaryShape instanceof Shape) {
+ ((Shape)primaryShape).setLineWidth(width);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLineType(int style) {
+ if(primaryShape instanceof Shape) {
+ ((Shape)primaryShape).setLineStyle(style);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public EditPart getPrimaryChildEditPart() {
+ return getChildBySemanticHint(UMLVisualIDRegistry.getType(OpaqueBehaviorCompositeNameEditPart.VISUAL_ID));
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnSource() {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(12);
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ types.add(UMLElementTypes.Substitution_4011);
+ types.add(UMLElementTypes.Realization_4006);
+ types.add(UMLElementTypes.Manifestation_4012);
+ types.add(UMLElementTypes.Abstraction_4007);
+ types.add(UMLElementTypes.Usage_4008);
+ types.add(UMLElementTypes.Deployment_4009);
+ types.add(UMLElementTypes.Dependency_4017);
+ types.add(UMLElementTypes.Dependency_4010);
+ types.add(UMLElementTypes.Generalization_4015);
+ types.add(UMLElementTypes.InformationFlow_4021);
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnSourceAndTarget(IGraphicalEditPart targetEditPart) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMATypesForTarget(IElementType relationshipType) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(relationshipType == UMLElementTypes.ComponentRealization_4004) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InterfaceRealization_4005) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Substitution_4011) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Realization_4006) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Manifestation_4012) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Abstraction_4007) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Usage_4008) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Deployment_4009) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4017) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4010) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Generalization_4015) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ } else if(relationshipType == UMLElementTypes.InformationFlow_4021) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnTarget() {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(17);
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ types.add(UMLElementTypes.Substitution_4011);
+ types.add(UMLElementTypes.Realization_4006);
+ types.add(UMLElementTypes.Manifestation_4012);
+ types.add(UMLElementTypes.Abstraction_4007);
+ types.add(UMLElementTypes.Usage_4008);
+ types.add(UMLElementTypes.Deployment_4009);
+ types.add(UMLElementTypes.Dependency_4017);
+ types.add(UMLElementTypes.Dependency_4010);
+ types.add(UMLElementTypes.Generalization_4015);
+ types.add(UMLElementTypes.TimeObservationEvent_4018);
+ types.add(UMLElementTypes.DurationObservationEvent_4019);
+ types.add(UMLElementTypes.InformationItemRepresented_4020);
+ types.add(UMLElementTypes.InformationFlow_4021);
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMATypesForSource(IElementType relationshipType) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(relationshipType == UMLElementTypes.CommentAnnotatedElement_4002) {
+ types.add(UMLElementTypes.Comment_2109);
+ types.add(UMLElementTypes.Comment_3097);
+ } else if(relationshipType == UMLElementTypes.ConstraintConstrainedElement_4003) {
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.ComponentRealization_4004) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InterfaceRealization_4005) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Substitution_4011) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Realization_4006) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Manifestation_4012) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Abstraction_4007) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Usage_4008) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Deployment_4009) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4017) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4010) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Generalization_4015) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ } else if(relationshipType == UMLElementTypes.TimeObservationEvent_4018) {
+ types.add(UMLElementTypes.TimeObservation_2094);
+ } else if(relationshipType == UMLElementTypes.DurationObservationEvent_4019) {
+ types.add(UMLElementTypes.DurationObservation_2093);
+ } else if(relationshipType == UMLElementTypes.InformationItemRepresented_4020) {
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.InformationItem_3094);
+ } else if(relationshipType == UMLElementTypes.InformationFlow_4021) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public Object getPreferredValue(EStructuralFeature feature) {
+ IPreferenceStore preferenceStore = (IPreferenceStore)getDiagramPreferencesHint().getPreferenceStore();
+ Object result = null;
+
+ if(feature == NotationPackage.eINSTANCE.getLineStyle_LineColor() || feature == NotationPackage.eINSTANCE.getFontStyle_FontColor() || feature == NotationPackage.eINSTANCE.getFillStyle_FillColor()) {
+ String prefColor = null;
+ if(feature == NotationPackage.eINSTANCE.getLineStyle_LineColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("OpaqueBehavior", PreferenceConstantHelper.COLOR_LINE);
+ } else if(feature == NotationPackage.eINSTANCE.getFontStyle_FontColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("OpaqueBehavior", PreferenceConstantHelper.COLOR_FONT);
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_FillColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("OpaqueBehavior", PreferenceConstantHelper.COLOR_FILL);
+ }
+ result = FigureUtilities.RGBToInteger(PreferenceConverter.getColor((IPreferenceStore)preferenceStore, prefColor));
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_Transparency() || feature == NotationPackage.eINSTANCE.getFillStyle_Gradient()) {
+ String prefGradient = PreferenceConstantHelper.getElementConstant("OpaqueBehavior", PreferenceConstantHelper.COLOR_GRADIENT);
+ GradientPreferenceConverter gradientPreferenceConverter = new GradientPreferenceConverter(preferenceStore.getString(prefGradient));
+ if(feature == NotationPackage.eINSTANCE.getFillStyle_Transparency()) {
+ result = new Integer(gradientPreferenceConverter.getTransparency());
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_Gradient()) {
+ result = gradientPreferenceConverter.getGradientData();
+ }
+ }
+
+ if(result == null) {
+ result = getStructuralFeatureValue(feature);
+ }
+ return result;
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/OpaqueBehaviorCompositeEditPartCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/OpaqueBehaviorCompositeEditPartCN.java
new file mode 100644
index 00000000000..ef0de332560
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/OpaqueBehaviorCompositeEditPartCN.java
@@ -0,0 +1,5408 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.ArrayList;
+import java.util.LinkedList;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.PositionConstants;
+import org.eclipse.draw2d.Shape;
+import org.eclipse.draw2d.StackLayout;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EStructuralFeature;
+import org.eclipse.gef.EditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.editpolicies.LayoutEditPolicy;
+import org.eclipse.gef.editpolicies.NonResizableEditPolicy;
+import org.eclipse.gef.requests.CreateRequest;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IBorderItemEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.CreationEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.DragDropEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.diagram.ui.figures.IBorderItemLocator;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.FigureUtilities;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.gef.ui.figures.DefaultSizeNodeFigure;
+import org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.jface.preference.PreferenceConverter;
+import org.eclipse.papyrus.diagram.common.editparts.NamedElementEditPart;
+import org.eclipse.papyrus.diagram.common.editpolicies.AffixedNodeAlignmentEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.BorderItemResizableEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.HyperLinkPopupBarEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.QualifiedNameDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.ShowHideClassifierContentsEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.ShowHideCompartmentEditPolicy;
+import org.eclipse.papyrus.diagram.common.helper.PreferenceInitializerForElementHelper;
+import org.eclipse.papyrus.diagram.composite.custom.edit.parts.ConstrainedNamedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.BehaviorLayoutEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.BehaviorResizableShapeEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.CustomDiagramDragDropEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.NoScrollBehaviorResizableShapeEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.RemoveOrphanViewPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.figures.OpaqueBehaviorCompositeFigure;
+import org.eclipse.papyrus.diagram.composite.custom.locators.PortPositionLocator;
+import org.eclipse.papyrus.diagram.composite.edit.policies.OpaqueBehaviorCompositeItemSemanticEditPolicyCN;
+import org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorPlugin;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter;
+import org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper;
+import org.eclipse.swt.graphics.Color;
+
+/**
+ * @generated
+ */
+public class OpaqueBehaviorCompositeEditPartCN extends
+
+ConstrainedNamedElementEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 3077;
+
+ /**
+ * @generated
+ */
+ protected IFigure contentPane;
+
+ /**
+ * @generated
+ */
+ protected IFigure primaryShape;
+
+ /**
+ * @generated
+ */
+ public OpaqueBehaviorCompositeEditPartCN(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ installEditPolicy(EditPolicyRoles.CREATION_ROLE, new CreationEditPolicy());
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new OpaqueBehaviorCompositeItemSemanticEditPolicyCN());
+ installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new DragDropEditPolicy());
+ installEditPolicy(EditPolicy.LAYOUT_ROLE, createLayoutEditPolicy());
+ installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new CustomDiagramDragDropEditPolicy());
+ installEditPolicy(QualifiedNameDisplayEditPolicy.QUALIFIED_NAME_POLICY, new QualifiedNameDisplayEditPolicy());
+ installEditPolicy(AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeNodeLabelDisplayEditPolicy());
+ installEditPolicy(EditPolicyRoles.POPUPBAR_ROLE, new HyperLinkPopupBarEditPolicy());
+ installEditPolicy(EditPolicy.LAYOUT_ROLE, new BehaviorLayoutEditPolicy());
+ installEditPolicy(ShowHideClassifierContentsEditPolicy.SHOW_HIDE_CLASSIFIER_CONTENTS_POLICY, new ShowHideClassifierContentsEditPolicy());
+ installEditPolicy(ShowHideCompartmentEditPolicy.SHOW_HIDE_COMPARTMENT_POLICY, new ShowHideCompartmentEditPolicy());
+ installEditPolicy(AffixedNodeAlignmentEditPolicy.AFFIXED_CHILD_ALIGNMENT_ROLE, new AffixedNodeAlignmentEditPolicy());
+ installEditPolicy("REMOVE_ORPHAN_VIEW", new RemoveOrphanViewPolicy()); //$NON-NLS-1$
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new NoScrollBehaviorResizableShapeEditPolicy());
+ // XXX need an SCR to runtime to have another abstract superclass that would let children add reasonable editpolicies
+ // removeEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CONNECTION_HANDLES_ROLE);
+ }
+
+ /**
+ * Papyrus codeGen
+ *
+ * @generated
+ **/
+ protected void handleNotificationEvent(Notification event) {
+ super.handleNotificationEvent(event);
+
+ }
+
+ /**
+ * @generated
+ */
+ protected LayoutEditPolicy createLayoutEditPolicy() {
+ org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy lep = new org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy() {
+
+ protected EditPolicy createChildEditPolicy(EditPart child) {
+ View childView = (View)child.getModel();
+ switch(UMLVisualIDRegistry.getVisualID(childView)) {
+ case PortEditPart.VISUAL_ID:
+ case ParameterEditPart.VISUAL_ID:
+
+ return new BorderItemResizableEditPolicy();
+
+ }
+ EditPolicy result = child.getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(result == null) {
+ result = new NonResizableEditPolicy();
+ }
+ return result;
+ }
+
+ protected Command getMoveChildrenCommand(Request request) {
+ return null;
+ }
+
+ protected Command getCreateCommand(CreateRequest request) {
+ return null;
+ }
+ };
+ return lep;
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createNodeShape() {
+ return primaryShape = new OpaqueBehaviorCompositeFigure();
+ }
+
+ /**
+ * @generated
+ */
+ public OpaqueBehaviorCompositeFigure getPrimaryShape() {
+ return (OpaqueBehaviorCompositeFigure)primaryShape;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean addFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof OpaqueBehaviorCompositeNameEditPartCN) {
+ ((OpaqueBehaviorCompositeNameEditPartCN)childEditPart).setLabel(getPrimaryShape().getNameLabel());
+ return true;
+ }
+
+ if(childEditPart instanceof OpaqueBehaviorCompositeCompartmentEditPartCN) {
+ IFigure pane = getPrimaryShape().getCompositeCompartmentFigure();
+ setupContentPane(pane); // FIXME each comparment should handle his content pane in his own way
+ pane.add(((OpaqueBehaviorCompositeCompartmentEditPartCN)childEditPart).getFigure());
+ return true;
+ }
+
+ //Papyrus Gencode :Affixed Port locator
+ if(childEditPart instanceof PortEditPart) {
+ IBorderItemLocator locator = new PortPositionLocator(getMainFigure(), PositionConstants.NONE);
+ getBorderedFigure().getBorderItemContainer().add(((PortEditPart)childEditPart).getFigure(), locator);
+ return true;
+ }
+
+ //Papyrus Gencode :Affixed Port locator
+ if(childEditPart instanceof ParameterEditPart) {
+ IBorderItemLocator locator = new PortPositionLocator(getMainFigure(), PositionConstants.NONE);
+ getBorderedFigure().getBorderItemContainer().add(((ParameterEditPart)childEditPart).getFigure(), locator);
+ return true;
+ }
+
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean removeFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof OpaqueBehaviorCompositeNameEditPartCN) {
+ return true;
+ }
+ if(childEditPart instanceof OpaqueBehaviorCompositeCompartmentEditPartCN) {
+ IFigure pane = getPrimaryShape().getCompositeCompartmentFigure();
+ setupContentPane(pane); // FIXME each comparment should handle his content pane in his own way
+ pane.remove(((OpaqueBehaviorCompositeCompartmentEditPartCN)childEditPart).getFigure());
+ return true;
+ }
+ if(childEditPart instanceof PortEditPart) {
+ getBorderedFigure().getBorderItemContainer().remove(((PortEditPart)childEditPart).getFigure());
+ return true;
+ }
+ if(childEditPart instanceof ParameterEditPart) {
+ getBorderedFigure().getBorderItemContainer().remove(((ParameterEditPart)childEditPart).getFigure());
+ return true;
+ }
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected void addChildVisual(EditPart childEditPart, int index) {
+ if(addFixedChild(childEditPart)) {
+ return;
+ }
+ super.addChildVisual(childEditPart, -1);
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeChildVisual(EditPart childEditPart) {
+ if(removeFixedChild(childEditPart)) {
+ return;
+ }
+ super.removeChildVisual(childEditPart);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure getContentPaneFor(IGraphicalEditPart editPart) {
+ if(editPart instanceof OpaqueBehaviorCompositeCompartmentEditPartCN) {
+ return getPrimaryShape().getCompositeCompartmentFigure();
+ }
+ if(editPart instanceof IBorderItemEditPart) {
+ return getBorderedFigure().getBorderItemContainer();
+ }
+ return getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ protected NodeFigure createNodePlate() {
+ String prefElementId = "OpaqueBehavior";
+ IPreferenceStore store = UMLDiagramEditorPlugin.getInstance().getPreferenceStore();
+ String preferenceConstantWitdh = PreferenceInitializerForElementHelper.getpreferenceKey(getNotationView(), prefElementId, PreferenceConstantHelper.WIDTH);
+ String preferenceConstantHeight = PreferenceInitializerForElementHelper.getpreferenceKey(getNotationView(), prefElementId, PreferenceConstantHelper.HEIGHT);
+ DefaultSizeNodeFigure result = new DefaultSizeNodeFigure(store.getInt(preferenceConstantWitdh), store.getInt(preferenceConstantHeight));
+
+ return result;
+ }
+
+ /**
+ * Creates figure for this edit part.
+ *
+ * Body of this method does not depend on settings in generation model
+ * so you may safely remove <i>generated</i> tag and modify it.
+ *
+ * @generated
+ */
+ protected NodeFigure createMainFigure() {
+ NodeFigure figure = createNodePlate();
+ figure.setLayoutManager(new StackLayout());
+ IFigure shape = createNodeShape();
+ figure.add(shape);
+ contentPane = setupContentPane(shape);
+ return figure;
+ }
+
+ /**
+ * Default implementation treats passed figure as content pane.
+ * Respects layout one may have set for generated figure.
+ *
+ * @param nodeShape
+ * instance of generated figure class
+ * @generated
+ */
+ protected IFigure setupContentPane(IFigure nodeShape) {
+ if(nodeShape.getLayoutManager() == null) {
+ ConstrainedToolbarLayout layout = new ConstrainedToolbarLayout();
+ layout.setSpacing(5);
+ nodeShape.setLayoutManager(layout);
+ }
+ return nodeShape; // use nodeShape itself as contentPane
+ }
+
+ /**
+ * @generated
+ */
+ public IFigure getContentPane() {
+ if(contentPane != null) {
+ return contentPane;
+ }
+ return super.getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ protected void setForegroundColor(Color color) {
+ if(primaryShape != null) {
+ primaryShape.setForegroundColor(color);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLineWidth(int width) {
+ if(primaryShape instanceof Shape) {
+ ((Shape)primaryShape).setLineWidth(width);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLineType(int style) {
+ if(primaryShape instanceof Shape) {
+ ((Shape)primaryShape).setLineStyle(style);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public EditPart getPrimaryChildEditPart() {
+ return getChildBySemanticHint(UMLVisualIDRegistry.getType(OpaqueBehaviorCompositeNameEditPartCN.VISUAL_ID));
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnSource() {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(12);
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ types.add(UMLElementTypes.Substitution_4011);
+ types.add(UMLElementTypes.Realization_4006);
+ types.add(UMLElementTypes.Manifestation_4012);
+ types.add(UMLElementTypes.Abstraction_4007);
+ types.add(UMLElementTypes.Usage_4008);
+ types.add(UMLElementTypes.Deployment_4009);
+ types.add(UMLElementTypes.Dependency_4017);
+ types.add(UMLElementTypes.Dependency_4010);
+ types.add(UMLElementTypes.Generalization_4015);
+ types.add(UMLElementTypes.InformationFlow_4021);
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnSourceAndTarget(IGraphicalEditPart targetEditPart) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMATypesForTarget(IElementType relationshipType) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(relationshipType == UMLElementTypes.ComponentRealization_4004) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InterfaceRealization_4005) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Substitution_4011) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Realization_4006) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Manifestation_4012) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Abstraction_4007) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Usage_4008) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Deployment_4009) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4017) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4010) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Generalization_4015) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ } else if(relationshipType == UMLElementTypes.InformationFlow_4021) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnTarget() {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(17);
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ types.add(UMLElementTypes.Substitution_4011);
+ types.add(UMLElementTypes.Realization_4006);
+ types.add(UMLElementTypes.Manifestation_4012);
+ types.add(UMLElementTypes.Abstraction_4007);
+ types.add(UMLElementTypes.Usage_4008);
+ types.add(UMLElementTypes.Deployment_4009);
+ types.add(UMLElementTypes.Dependency_4017);
+ types.add(UMLElementTypes.Dependency_4010);
+ types.add(UMLElementTypes.Generalization_4015);
+ types.add(UMLElementTypes.TimeObservationEvent_4018);
+ types.add(UMLElementTypes.DurationObservationEvent_4019);
+ types.add(UMLElementTypes.InformationItemRepresented_4020);
+ types.add(UMLElementTypes.InformationFlow_4021);
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMATypesForSource(IElementType relationshipType) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(relationshipType == UMLElementTypes.CommentAnnotatedElement_4002) {
+ types.add(UMLElementTypes.Comment_2109);
+ types.add(UMLElementTypes.Comment_3097);
+ } else if(relationshipType == UMLElementTypes.ConstraintConstrainedElement_4003) {
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.ComponentRealization_4004) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InterfaceRealization_4005) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Substitution_4011) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Realization_4006) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Manifestation_4012) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Abstraction_4007) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Usage_4008) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Deployment_4009) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4017) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4010) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Generalization_4015) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ } else if(relationshipType == UMLElementTypes.TimeObservationEvent_4018) {
+ types.add(UMLElementTypes.TimeObservation_2094);
+ } else if(relationshipType == UMLElementTypes.DurationObservationEvent_4019) {
+ types.add(UMLElementTypes.DurationObservation_2093);
+ } else if(relationshipType == UMLElementTypes.InformationItemRepresented_4020) {
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.InformationItem_3094);
+ } else if(relationshipType == UMLElementTypes.InformationFlow_4021) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public Object getPreferredValue(EStructuralFeature feature) {
+ IPreferenceStore preferenceStore = (IPreferenceStore)getDiagramPreferencesHint().getPreferenceStore();
+ Object result = null;
+
+ if(feature == NotationPackage.eINSTANCE.getLineStyle_LineColor() || feature == NotationPackage.eINSTANCE.getFontStyle_FontColor() || feature == NotationPackage.eINSTANCE.getFillStyle_FillColor()) {
+ String prefColor = null;
+ if(feature == NotationPackage.eINSTANCE.getLineStyle_LineColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("OpaqueBehavior", PreferenceConstantHelper.COLOR_LINE);
+ } else if(feature == NotationPackage.eINSTANCE.getFontStyle_FontColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("OpaqueBehavior", PreferenceConstantHelper.COLOR_FONT);
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_FillColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("OpaqueBehavior", PreferenceConstantHelper.COLOR_FILL);
+ }
+ result = FigureUtilities.RGBToInteger(PreferenceConverter.getColor((IPreferenceStore)preferenceStore, prefColor));
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_Transparency() || feature == NotationPackage.eINSTANCE.getFillStyle_Gradient()) {
+ String prefGradient = PreferenceConstantHelper.getElementConstant("OpaqueBehavior", PreferenceConstantHelper.COLOR_GRADIENT);
+ GradientPreferenceConverter gradientPreferenceConverter = new GradientPreferenceConverter(preferenceStore.getString(prefGradient));
+ if(feature == NotationPackage.eINSTANCE.getFillStyle_Transparency()) {
+ result = new Integer(gradientPreferenceConverter.getTransparency());
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_Gradient()) {
+ result = gradientPreferenceConverter.getGradientData();
+ }
+ }
+
+ if(result == null) {
+ result = getStructuralFeatureValue(feature);
+ }
+ return result;
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/OpaqueBehaviorCompositeNameEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/OpaqueBehaviorCompositeNameEditPart.java
new file mode 100644
index 00000000000..60e6befcd97
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/OpaqueBehaviorCompositeNameEditPart.java
@@ -0,0 +1,791 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EAnnotation;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.emf.transaction.RunnableWithResult;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.AccessibleEditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.requests.DirectEditRequest;
+import org.eclipse.gef.tools.DirectEditManager;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.CompartmentEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
+import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
+import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
+import org.eclipse.gmf.runtime.notation.FontStyle;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
+import org.eclipse.jface.viewers.ICellEditorValidator;
+import org.eclipse.jface.window.Window;
+import org.eclipse.papyrus.diagram.common.directedit.MultilineLabelDirectEditManager;
+import org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition;
+import org.eclipse.papyrus.diagram.common.editpolicies.IMaskManagedLabelEditPolicy;
+import org.eclipse.papyrus.diagram.common.figure.node.ILabelFigure;
+import org.eclipse.papyrus.diagram.common.util.DiagramEditPartsUtil;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLTextSelectionEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.diagram.composite.providers.UMLParserProvider;
+import org.eclipse.papyrus.extensionpoints.editors.Activator;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
+import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
+import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
+import org.eclipse.papyrus.umlutils.ui.VisualInformationPapyrusConstant;
+import org.eclipse.papyrus.umlutils.ui.helper.NameLabelIconHelper;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.AccessibleEvent;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.FontData;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.ui.PlatformUI;
+
+/**
+ * @generated
+ */
+public class OpaqueBehaviorCompositeNameEditPart extends CompartmentEditPart implements ITextAwareEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 5117;
+
+ /**
+ * @generated
+ */
+ private DirectEditManager manager;
+
+ /**
+ * @generated
+ */
+ private IParser parser;
+
+ /**
+ * @generated
+ */
+ private List<?> parserElements;
+
+ /**
+ * @generated
+ */
+ private String defaultText;
+
+ /**
+ * direct edition mode (default, undefined, registered editor, etc.)
+ *
+ * @generated
+ */
+ protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
+
+ /**
+ * configuration from a registered edit dialog
+ *
+ * @generated
+ */
+ protected IDirectEditorConfiguration configuration;
+
+ /**
+ * @generated
+ */
+ public OpaqueBehaviorCompositeNameEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
+ installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new CompositeStructureDiagramEditPart.NodeLabelDragPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelTextHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getText();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getText();
+ } else {
+ return ((Label)figure).getText();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelTextHelper(IFigure figure, String text) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setText(text);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setText(text);
+ } else {
+ ((Label)figure).setText(text);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIconHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getIcon();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getIcon();
+ } else {
+ return ((Label)figure).getIcon();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelIconHelper(IFigure figure, Image icon) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setIcon(icon);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setIcon(icon);
+ } else {
+ ((Label)figure).setIcon(icon);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabel(WrappingLabel figure) {
+ unregisterVisuals();
+ setFigure(figure);
+ defaultText = getLabelTextHelper(figure);
+ registerVisuals();
+ refreshVisuals();
+ }
+
+ /**
+ * @generated
+ */
+ protected List getModelChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject getParserElement() {
+ return resolveSemanticElement();
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIcon() {
+ EObject parserElement = getParserElement();
+ if(parserElement == null) {
+ return null;
+ }
+
+ List<View> views = DiagramEditPartsUtil.findViews(parserElement, getViewer());
+ for(View view : views) {
+ if(NameLabelIconHelper.showLabelIcon(view)) {
+ return UMLElementTypes.getImage(parserElement.eClass());
+ }
+ }
+ return null;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelText() {
+ String text = null;
+ EObject parserElement = getParserElement();
+ if(parserElement != null && getParser() != null) {
+ text = getParser().getPrintString(new EObjectAdapter(parserElement), getParserOptions().intValue());
+ }
+ if(text == null || text.length() == 0) {
+ text = defaultText;
+ }
+ return text;
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabelText(String text) {
+ setLabelTextHelper(getFigure(), text);
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public String getEditText() {
+ if(getParserElement() == null || getParser() == null) {
+ return ""; //$NON-NLS-1$
+ }
+ return getParser().getEditString(new EObjectAdapter(getParserElement()), getParserOptions().intValue());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean isEditable() {
+ return getParser() != null;
+ }
+
+ /**
+ * @generated
+ */
+ public ICellEditorValidator getEditTextValidator() {
+ return new ICellEditorValidator() {
+
+ public String isValid(final Object value) {
+ if(value instanceof String) {
+ final EObject element = getParserElement();
+ final IParser parser = getParser();
+ try {
+ IParserEditStatus valid = (IParserEditStatus)getEditingDomain().runExclusive(new RunnableWithResult.Impl() {
+
+ public void run() {
+ setResult(parser.isValidEditString(new EObjectAdapter(element), (String)value));
+ }
+ });
+ return valid.getCode() == ParserEditStatus.EDITABLE ? null : valid.getMessage();
+ } catch (InterruptedException ie) {
+ ie.printStackTrace();
+ }
+ }
+
+ // shouldn't get here
+ return null;
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ public IContentAssistProcessor getCompletionProcessor() {
+ if(getParserElement() == null || getParser() == null) {
+ return null;
+ }
+ return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
+ }
+
+ /**
+ * @generated
+ */
+ public ParserOptions getParserOptions() {
+ return ParserOptions.NONE;
+ }
+
+ /**
+ * @generated
+ */
+ public IParser getParser() {
+ if(parser == null) {
+ parser = UMLParserProvider.getParser(UMLElementTypes.OpaqueBehavior_2065, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.diagram.composite.edit.parts.OpaqueBehaviorCompositeNameEditPart.VISUAL_ID));
+ }
+ return parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected DirectEditManager getManager() {
+ if(manager == null) {
+ setManager(new MultilineLabelDirectEditManager(this, MultilineLabelDirectEditManager.getTextCellEditorClass(this), UMLEditPartFactory.getTextCellEditorLocator(this)));
+ }
+ return manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setManager(DirectEditManager manager) {
+ this.manager = manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit() {
+ getManager().show();
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit(Point eventLocation) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(eventLocation.getSWTPoint());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void performDirectEdit(char initialCharacter) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(initialCharacter);
+ } else {
+ performDirectEdit();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEditRequest(Request request) {
+
+ final Request theRequest = request;
+
+ if(IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
+ directEditionMode = getDirectEditionType();
+ }
+ switch(directEditionMode) {
+ case IDirectEdition.NO_DIRECT_EDITION:
+ // no direct edition mode => does nothing
+ return;
+ case IDirectEdition.EXTENDED_DIRECT_EDITOR:
+ updateExtendedEditorConfiguration();
+ if(configuration == null || configuration.getLanguage() == null) {
+ performDefaultDirectEditorEdit(theRequest);
+ } else {
+ configuration.preEditAction(resolveSemanticElement());
+ Dialog dialog = null;
+ if(configuration instanceof IPopupEditorConfiguration) {
+ IPopupEditorHelper helper = ((IPopupEditorConfiguration)configuration).createPopupEditorHelper(this);
+ helper.showEditor();
+ return;
+ } else if(configuration instanceof IAdvancedEditorConfiguration) {
+ dialog = ((IAdvancedEditorConfiguration)configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
+ } else if(configuration instanceof IDirectEditorConfiguration) {
+ dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), ((IDirectEditorConfiguration)configuration).getTextToEdit(resolveSemanticElement()), (IDirectEditorConfiguration)configuration);
+ } else {
+ return;
+ }
+ final Dialog finalDialog = dialog;
+
+ if(Window.OK == dialog.open()) {
+ TransactionalEditingDomain domain = getEditingDomain();
+ RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
+
+ @Override
+ protected void doExecute() {
+ configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog)finalDialog).getValue());
+
+ }
+ };
+ domain.getCommandStack().execute(command);
+ }
+ }
+ break;
+ case IDirectEdition.DEFAULT_DIRECT_EDITOR:
+
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ break;
+ default:
+ break;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshLabel();
+ refreshFont();
+ refreshFontColor();
+ refreshUnderline();
+ refreshStrikeThrough();
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshLabel() {
+ EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
+ if(maskLabelPolicy == null) {
+ setLabelTextHelper(getFigure(), getLabelText());
+ setLabelIconHelper(getFigure(), getLabelIcon());
+ }
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshUnderline() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextUnderline(style.isUnderline());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshStrikeThrough() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextStrikeThrough(style.isStrikeThrough());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshFont() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null) {
+ FontData fontData = new FontData(style.getFontName(), style.getFontHeight(), (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
+ setFont(fontData);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setFontColor(Color color) {
+ getFigure().setForegroundColor(color);
+ }
+
+ /**
+ * @generated
+ */
+ protected void addSemanticListeners() {
+ if(getParser() instanceof ISemanticParser) {
+ EObject element = resolveSemanticElement();
+ parserElements = ((ISemanticParser)getParser()).getSemanticElementsBeingParsed(element);
+ for(int i = 0; i < parserElements.size(); i++) {
+ addListenerFilter("SemanticModel" + i, this, (EObject)parserElements.get(i)); //$NON-NLS-1$
+ }
+ } else {
+ super.addSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeSemanticListeners() {
+ if(parserElements != null) {
+ for(int i = 0; i < parserElements.size(); i++) {
+ removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
+ }
+ } else {
+ super.removeSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected AccessibleEditPart getAccessibleEditPart() {
+ if(accessibleEP == null) {
+ accessibleEP = new AccessibleGraphicalEditPart() {
+
+ public void getName(AccessibleEvent e) {
+ e.result = getLabelTextHelper(getFigure());
+ }
+ };
+ }
+ return accessibleEP;
+ }
+
+ /**
+ * @generated
+ */
+ private View getFontStyleOwnerView() {
+ return (View)getModel();
+ }
+
+ /**
+ * Returns the kind of associated editor for direct edition.
+ *
+ * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition
+ * @generated
+ */
+ public int getDirectEditionType() {
+ if(checkExtendedEditor()) {
+ initExtendedEditorConfiguration();
+ return IDirectEdition.EXTENDED_DIRECT_EDITOR;
+ }
+ if(checkDefaultEdition()) {
+ return IDirectEdition.DEFAULT_DIRECT_EDITOR;
+ }
+
+ // not a named element. no specific editor => do nothing
+ return IDirectEdition.NO_DIRECT_EDITION;
+ }
+
+ /**
+ * Checks if an extended editor is present.
+ *
+ * @return <code>true</code> if an extended editor is present.
+ * @generated
+ */
+ protected boolean checkExtendedEditor() {
+ if(resolveSemanticElement() != null) {
+ return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ return false;
+ }
+
+ /**
+ * Checks if a default direct edition is available
+ *
+ * @return <code>true</code> if a default direct edition is available
+ * @generated
+ */
+ protected boolean checkDefaultEdition() {
+ return (getParser() != null);
+ }
+
+ /**
+ * Initializes the extended editor configuration
+ *
+ * @generated
+ */
+ protected void initExtendedEditorConfiguration() {
+ if(configuration == null) {
+ final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("")) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else {
+ configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ }
+ }
+
+ /**
+ * Updates the preference configuration
+ *
+ * @generated
+ */
+ protected void updateExtendedEditorConfiguration() {
+ String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("") && languagePreferred != configuration.getLanguage()) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else if(IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
+ configuration = null;
+ }
+ }
+
+ /**
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
+ protected void performDefaultDirectEditorEdit(final Request theRequest) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void addNotationalListeners() {
+ super.addNotationalListeners();
+ addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeNotationalListeners() {
+ super.removeNotationalListeners();
+ removeListenerFilter("PrimaryView"); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void handleNotificationEvent(Notification event) {
+ refreshLabel();
+ Object feature = event.getFeature();
+ if(NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
+ Integer c = (Integer)event.getNewValue();
+ setFontColor(DiagramColorRegistry.getInstance().getColor(c));
+ } else if(NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
+ refreshUnderline();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
+ refreshStrikeThrough();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
+ refreshFont();
+ } else {
+ if(getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
+ refreshLabel();
+ }
+ if(getParser() instanceof ISemanticParser) {
+ ISemanticParser modelParser = (ISemanticParser)getParser();
+ if(modelParser.areSemanticElementsAffected(null, event)) {
+ removeSemanticListeners();
+ if(resolveSemanticElement() != null) {
+ addSemanticListeners();
+ }
+ refreshLabel();
+ }
+ }
+ }
+
+ if(event.getNewValue() instanceof EAnnotation && VisualInformationPapyrusConstant.DISPLAY_NAMELABELICON.equals(((EAnnotation)event.getNewValue()).getSource())) {
+ refreshLabel();
+ }
+
+ super.handleNotificationEvent(event);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createFigure() {
+ // Parent should assign one using setLabel() method
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ private static final String ADD_PARENT_MODEL = "AddParentModel";
+
+ /**
+ * @generated
+ */
+ public void activate() {
+ super.activate();
+ addOwnerElementListeners();
+ }
+
+ /**
+ * @generated
+ */
+ protected void addOwnerElementListeners() {
+ addListenerFilter(ADD_PARENT_MODEL, this, ((View)getParent().getModel())); //$NON-NLS-1$
+
+ }
+
+ /**
+ * @generated
+ */
+ public void deactivate() {
+ removeOwnerElementListeners();
+ super.deactivate();
+
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeOwnerElementListeners() {
+ removeListenerFilter(ADD_PARENT_MODEL);
+
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/OpaqueBehaviorCompositeNameEditPartCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/OpaqueBehaviorCompositeNameEditPartCN.java
new file mode 100644
index 00000000000..70b2c495cdd
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/OpaqueBehaviorCompositeNameEditPartCN.java
@@ -0,0 +1,791 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EAnnotation;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.emf.transaction.RunnableWithResult;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.AccessibleEditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.requests.DirectEditRequest;
+import org.eclipse.gef.tools.DirectEditManager;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.CompartmentEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
+import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
+import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
+import org.eclipse.gmf.runtime.notation.FontStyle;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
+import org.eclipse.jface.viewers.ICellEditorValidator;
+import org.eclipse.jface.window.Window;
+import org.eclipse.papyrus.diagram.common.directedit.MultilineLabelDirectEditManager;
+import org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition;
+import org.eclipse.papyrus.diagram.common.editpolicies.IMaskManagedLabelEditPolicy;
+import org.eclipse.papyrus.diagram.common.figure.node.ILabelFigure;
+import org.eclipse.papyrus.diagram.common.util.DiagramEditPartsUtil;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLTextSelectionEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.diagram.composite.providers.UMLParserProvider;
+import org.eclipse.papyrus.extensionpoints.editors.Activator;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
+import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
+import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
+import org.eclipse.papyrus.umlutils.ui.VisualInformationPapyrusConstant;
+import org.eclipse.papyrus.umlutils.ui.helper.NameLabelIconHelper;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.AccessibleEvent;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.FontData;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.ui.PlatformUI;
+
+/**
+ * @generated
+ */
+public class OpaqueBehaviorCompositeNameEditPartCN extends CompartmentEditPart implements ITextAwareEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 5133;
+
+ /**
+ * @generated
+ */
+ private DirectEditManager manager;
+
+ /**
+ * @generated
+ */
+ private IParser parser;
+
+ /**
+ * @generated
+ */
+ private List<?> parserElements;
+
+ /**
+ * @generated
+ */
+ private String defaultText;
+
+ /**
+ * direct edition mode (default, undefined, registered editor, etc.)
+ *
+ * @generated
+ */
+ protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
+
+ /**
+ * configuration from a registered edit dialog
+ *
+ * @generated
+ */
+ protected IDirectEditorConfiguration configuration;
+
+ /**
+ * @generated
+ */
+ public OpaqueBehaviorCompositeNameEditPartCN(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
+ installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new CompositeStructureDiagramEditPart.NodeLabelDragPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelTextHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getText();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getText();
+ } else {
+ return ((Label)figure).getText();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelTextHelper(IFigure figure, String text) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setText(text);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setText(text);
+ } else {
+ ((Label)figure).setText(text);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIconHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getIcon();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getIcon();
+ } else {
+ return ((Label)figure).getIcon();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelIconHelper(IFigure figure, Image icon) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setIcon(icon);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setIcon(icon);
+ } else {
+ ((Label)figure).setIcon(icon);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabel(WrappingLabel figure) {
+ unregisterVisuals();
+ setFigure(figure);
+ defaultText = getLabelTextHelper(figure);
+ registerVisuals();
+ refreshVisuals();
+ }
+
+ /**
+ * @generated
+ */
+ protected List getModelChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject getParserElement() {
+ return resolveSemanticElement();
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIcon() {
+ EObject parserElement = getParserElement();
+ if(parserElement == null) {
+ return null;
+ }
+
+ List<View> views = DiagramEditPartsUtil.findViews(parserElement, getViewer());
+ for(View view : views) {
+ if(NameLabelIconHelper.showLabelIcon(view)) {
+ return UMLElementTypes.getImage(parserElement.eClass());
+ }
+ }
+ return null;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelText() {
+ String text = null;
+ EObject parserElement = getParserElement();
+ if(parserElement != null && getParser() != null) {
+ text = getParser().getPrintString(new EObjectAdapter(parserElement), getParserOptions().intValue());
+ }
+ if(text == null || text.length() == 0) {
+ text = defaultText;
+ }
+ return text;
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabelText(String text) {
+ setLabelTextHelper(getFigure(), text);
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public String getEditText() {
+ if(getParserElement() == null || getParser() == null) {
+ return ""; //$NON-NLS-1$
+ }
+ return getParser().getEditString(new EObjectAdapter(getParserElement()), getParserOptions().intValue());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean isEditable() {
+ return getParser() != null;
+ }
+
+ /**
+ * @generated
+ */
+ public ICellEditorValidator getEditTextValidator() {
+ return new ICellEditorValidator() {
+
+ public String isValid(final Object value) {
+ if(value instanceof String) {
+ final EObject element = getParserElement();
+ final IParser parser = getParser();
+ try {
+ IParserEditStatus valid = (IParserEditStatus)getEditingDomain().runExclusive(new RunnableWithResult.Impl() {
+
+ public void run() {
+ setResult(parser.isValidEditString(new EObjectAdapter(element), (String)value));
+ }
+ });
+ return valid.getCode() == ParserEditStatus.EDITABLE ? null : valid.getMessage();
+ } catch (InterruptedException ie) {
+ ie.printStackTrace();
+ }
+ }
+
+ // shouldn't get here
+ return null;
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ public IContentAssistProcessor getCompletionProcessor() {
+ if(getParserElement() == null || getParser() == null) {
+ return null;
+ }
+ return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
+ }
+
+ /**
+ * @generated
+ */
+ public ParserOptions getParserOptions() {
+ return ParserOptions.NONE;
+ }
+
+ /**
+ * @generated
+ */
+ public IParser getParser() {
+ if(parser == null) {
+ parser = UMLParserProvider.getParser(UMLElementTypes.OpaqueBehavior_3077, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.diagram.composite.edit.parts.OpaqueBehaviorCompositeNameEditPartCN.VISUAL_ID));
+ }
+ return parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected DirectEditManager getManager() {
+ if(manager == null) {
+ setManager(new MultilineLabelDirectEditManager(this, MultilineLabelDirectEditManager.getTextCellEditorClass(this), UMLEditPartFactory.getTextCellEditorLocator(this)));
+ }
+ return manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setManager(DirectEditManager manager) {
+ this.manager = manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit() {
+ getManager().show();
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit(Point eventLocation) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(eventLocation.getSWTPoint());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void performDirectEdit(char initialCharacter) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(initialCharacter);
+ } else {
+ performDirectEdit();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEditRequest(Request request) {
+
+ final Request theRequest = request;
+
+ if(IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
+ directEditionMode = getDirectEditionType();
+ }
+ switch(directEditionMode) {
+ case IDirectEdition.NO_DIRECT_EDITION:
+ // no direct edition mode => does nothing
+ return;
+ case IDirectEdition.EXTENDED_DIRECT_EDITOR:
+ updateExtendedEditorConfiguration();
+ if(configuration == null || configuration.getLanguage() == null) {
+ performDefaultDirectEditorEdit(theRequest);
+ } else {
+ configuration.preEditAction(resolveSemanticElement());
+ Dialog dialog = null;
+ if(configuration instanceof IPopupEditorConfiguration) {
+ IPopupEditorHelper helper = ((IPopupEditorConfiguration)configuration).createPopupEditorHelper(this);
+ helper.showEditor();
+ return;
+ } else if(configuration instanceof IAdvancedEditorConfiguration) {
+ dialog = ((IAdvancedEditorConfiguration)configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
+ } else if(configuration instanceof IDirectEditorConfiguration) {
+ dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), ((IDirectEditorConfiguration)configuration).getTextToEdit(resolveSemanticElement()), (IDirectEditorConfiguration)configuration);
+ } else {
+ return;
+ }
+ final Dialog finalDialog = dialog;
+
+ if(Window.OK == dialog.open()) {
+ TransactionalEditingDomain domain = getEditingDomain();
+ RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
+
+ @Override
+ protected void doExecute() {
+ configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog)finalDialog).getValue());
+
+ }
+ };
+ domain.getCommandStack().execute(command);
+ }
+ }
+ break;
+ case IDirectEdition.DEFAULT_DIRECT_EDITOR:
+
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ break;
+ default:
+ break;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshLabel();
+ refreshFont();
+ refreshFontColor();
+ refreshUnderline();
+ refreshStrikeThrough();
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshLabel() {
+ EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
+ if(maskLabelPolicy == null) {
+ setLabelTextHelper(getFigure(), getLabelText());
+ setLabelIconHelper(getFigure(), getLabelIcon());
+ }
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshUnderline() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextUnderline(style.isUnderline());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshStrikeThrough() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextStrikeThrough(style.isStrikeThrough());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshFont() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null) {
+ FontData fontData = new FontData(style.getFontName(), style.getFontHeight(), (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
+ setFont(fontData);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setFontColor(Color color) {
+ getFigure().setForegroundColor(color);
+ }
+
+ /**
+ * @generated
+ */
+ protected void addSemanticListeners() {
+ if(getParser() instanceof ISemanticParser) {
+ EObject element = resolveSemanticElement();
+ parserElements = ((ISemanticParser)getParser()).getSemanticElementsBeingParsed(element);
+ for(int i = 0; i < parserElements.size(); i++) {
+ addListenerFilter("SemanticModel" + i, this, (EObject)parserElements.get(i)); //$NON-NLS-1$
+ }
+ } else {
+ super.addSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeSemanticListeners() {
+ if(parserElements != null) {
+ for(int i = 0; i < parserElements.size(); i++) {
+ removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
+ }
+ } else {
+ super.removeSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected AccessibleEditPart getAccessibleEditPart() {
+ if(accessibleEP == null) {
+ accessibleEP = new AccessibleGraphicalEditPart() {
+
+ public void getName(AccessibleEvent e) {
+ e.result = getLabelTextHelper(getFigure());
+ }
+ };
+ }
+ return accessibleEP;
+ }
+
+ /**
+ * @generated
+ */
+ private View getFontStyleOwnerView() {
+ return (View)getModel();
+ }
+
+ /**
+ * Returns the kind of associated editor for direct edition.
+ *
+ * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition
+ * @generated
+ */
+ public int getDirectEditionType() {
+ if(checkExtendedEditor()) {
+ initExtendedEditorConfiguration();
+ return IDirectEdition.EXTENDED_DIRECT_EDITOR;
+ }
+ if(checkDefaultEdition()) {
+ return IDirectEdition.DEFAULT_DIRECT_EDITOR;
+ }
+
+ // not a named element. no specific editor => do nothing
+ return IDirectEdition.NO_DIRECT_EDITION;
+ }
+
+ /**
+ * Checks if an extended editor is present.
+ *
+ * @return <code>true</code> if an extended editor is present.
+ * @generated
+ */
+ protected boolean checkExtendedEditor() {
+ if(resolveSemanticElement() != null) {
+ return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ return false;
+ }
+
+ /**
+ * Checks if a default direct edition is available
+ *
+ * @return <code>true</code> if a default direct edition is available
+ * @generated
+ */
+ protected boolean checkDefaultEdition() {
+ return (getParser() != null);
+ }
+
+ /**
+ * Initializes the extended editor configuration
+ *
+ * @generated
+ */
+ protected void initExtendedEditorConfiguration() {
+ if(configuration == null) {
+ final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("")) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else {
+ configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ }
+ }
+
+ /**
+ * Updates the preference configuration
+ *
+ * @generated
+ */
+ protected void updateExtendedEditorConfiguration() {
+ String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("") && languagePreferred != configuration.getLanguage()) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else if(IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
+ configuration = null;
+ }
+ }
+
+ /**
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
+ protected void performDefaultDirectEditorEdit(final Request theRequest) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void addNotationalListeners() {
+ super.addNotationalListeners();
+ addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeNotationalListeners() {
+ super.removeNotationalListeners();
+ removeListenerFilter("PrimaryView"); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void handleNotificationEvent(Notification event) {
+ refreshLabel();
+ Object feature = event.getFeature();
+ if(NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
+ Integer c = (Integer)event.getNewValue();
+ setFontColor(DiagramColorRegistry.getInstance().getColor(c));
+ } else if(NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
+ refreshUnderline();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
+ refreshStrikeThrough();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
+ refreshFont();
+ } else {
+ if(getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
+ refreshLabel();
+ }
+ if(getParser() instanceof ISemanticParser) {
+ ISemanticParser modelParser = (ISemanticParser)getParser();
+ if(modelParser.areSemanticElementsAffected(null, event)) {
+ removeSemanticListeners();
+ if(resolveSemanticElement() != null) {
+ addSemanticListeners();
+ }
+ refreshLabel();
+ }
+ }
+ }
+
+ if(event.getNewValue() instanceof EAnnotation && VisualInformationPapyrusConstant.DISPLAY_NAMELABELICON.equals(((EAnnotation)event.getNewValue()).getSource())) {
+ refreshLabel();
+ }
+
+ super.handleNotificationEvent(event);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createFigure() {
+ // Parent should assign one using setLabel() method
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ private static final String ADD_PARENT_MODEL = "AddParentModel";
+
+ /**
+ * @generated
+ */
+ public void activate() {
+ super.activate();
+ addOwnerElementListeners();
+ }
+
+ /**
+ * @generated
+ */
+ protected void addOwnerElementListeners() {
+ addListenerFilter(ADD_PARENT_MODEL, this, ((View)getParent().getModel())); //$NON-NLS-1$
+
+ }
+
+ /**
+ * @generated
+ */
+ public void deactivate() {
+ removeOwnerElementListeners();
+ super.deactivate();
+
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeOwnerElementListeners() {
+ removeListenerFilter(ADD_PARENT_MODEL);
+
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/OpaqueBehaviorEditPartCLN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/OpaqueBehaviorEditPartCLN.java
new file mode 100644
index 00000000000..a6e27c8c6a6
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/OpaqueBehaviorEditPartCLN.java
@@ -0,0 +1,781 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EAnnotation;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.emf.transaction.RunnableWithResult;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.AccessibleEditPart;
+import org.eclipse.gef.DragTracker;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.requests.DirectEditRequest;
+import org.eclipse.gef.requests.SelectionRequest;
+import org.eclipse.gef.tools.DirectEditManager;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.CompartmentEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IPrimaryEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.ListItemComponentEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
+import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
+import org.eclipse.gmf.runtime.diagram.ui.tools.DragEditPartsTrackerEx;
+import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
+import org.eclipse.gmf.runtime.notation.FontStyle;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
+import org.eclipse.jface.viewers.ICellEditorValidator;
+import org.eclipse.jface.window.Window;
+import org.eclipse.papyrus.diagram.common.directedit.MultilineLabelDirectEditManager;
+import org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition;
+import org.eclipse.papyrus.diagram.common.editpolicies.IMaskManagedLabelEditPolicy;
+import org.eclipse.papyrus.diagram.common.figure.node.ILabelFigure;
+import org.eclipse.papyrus.diagram.common.util.DiagramEditPartsUtil;
+import org.eclipse.papyrus.diagram.composite.edit.policies.OpaqueBehaviorItemSemanticEditPolicyCLN;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLTextNonResizableEditPolicy;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLTextSelectionEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.diagram.composite.providers.UMLParserProvider;
+import org.eclipse.papyrus.extensionpoints.editors.Activator;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
+import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
+import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
+import org.eclipse.papyrus.umlutils.ui.VisualInformationPapyrusConstant;
+import org.eclipse.papyrus.umlutils.ui.helper.NameLabelIconHelper;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.AccessibleEvent;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.FontData;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.ui.PlatformUI;
+
+/**
+ * @generated
+ */
+public class OpaqueBehaviorEditPartCLN
+
+extends CompartmentEditPart
+
+implements ITextAwareEditPart, IPrimaryEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 3108;
+
+ /**
+ * @generated
+ */
+ private DirectEditManager manager;
+
+ /**
+ * @generated
+ */
+ private IParser parser;
+
+ /**
+ * @generated
+ */
+ private List<?> parserElements;
+
+ /**
+ * @generated
+ */
+ private String defaultText;
+
+ /**
+ * direct edition mode (default, undefined, registered editor, etc.)
+ *
+ * @generated
+ */
+ protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
+
+ /**
+ * configuration from a registered edit dialog
+ *
+ * @generated
+ */
+ protected IDirectEditorConfiguration configuration;
+
+ /**
+ * @generated
+ */
+ public OpaqueBehaviorEditPartCLN(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ public DragTracker getDragTracker(Request request) {
+ if(request instanceof SelectionRequest && ((SelectionRequest)request).getLastButtonPressed() == 3) {
+ return null;
+ }
+ return new DragEditPartsTrackerEx(this);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new OpaqueBehaviorItemSemanticEditPolicyCLN());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new UMLTextNonResizableEditPolicy());
+ installEditPolicy(EditPolicy.COMPONENT_ROLE, new ListItemComponentEditPolicy());
+ installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelTextHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getText();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getText();
+ } else {
+ return ((Label)figure).getText();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelTextHelper(IFigure figure, String text) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setText(text);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setText(text);
+ } else {
+ ((Label)figure).setText(text);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIconHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getIcon();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getIcon();
+ } else {
+ return ((Label)figure).getIcon();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelIconHelper(IFigure figure, Image icon) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setIcon(icon);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setIcon(icon);
+ } else {
+ ((Label)figure).setIcon(icon);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabel(IFigure figure) {
+ unregisterVisuals();
+ setFigure(figure);
+ defaultText = getLabelTextHelper(figure);
+ registerVisuals();
+ refreshVisuals();
+ }
+
+ /**
+ * @generated
+ */
+ protected List getModelChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject getParserElement() {
+ return resolveSemanticElement();
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIcon() {
+ EObject parserElement = getParserElement();
+ if(parserElement == null) {
+ return null;
+ }
+
+ List<View> views = DiagramEditPartsUtil.findViews(parserElement, getViewer());
+ for(View view : views) {
+ if(NameLabelIconHelper.showLabelIcon(view)) {
+ return UMLElementTypes.getImage(parserElement.eClass());
+ }
+ }
+ return null;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelText() {
+ String text = null;
+ EObject parserElement = getParserElement();
+ if(parserElement != null && getParser() != null) {
+ text = getParser().getPrintString(new EObjectAdapter(parserElement), getParserOptions().intValue());
+ }
+ if(text == null || text.length() == 0) {
+ text = defaultText;
+ }
+ return text;
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabelText(String text) {
+ setLabelTextHelper(getFigure(), text);
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public String getEditText() {
+ if(getParserElement() == null || getParser() == null) {
+ return ""; //$NON-NLS-1$
+ }
+ return getParser().getEditString(new EObjectAdapter(getParserElement()), getParserOptions().intValue());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean isEditable() {
+ return getParser() != null;
+ }
+
+ /**
+ * @generated
+ */
+ public ICellEditorValidator getEditTextValidator() {
+ return new ICellEditorValidator() {
+
+ public String isValid(final Object value) {
+ if(value instanceof String) {
+ final EObject element = getParserElement();
+ final IParser parser = getParser();
+ try {
+ IParserEditStatus valid = (IParserEditStatus)getEditingDomain().runExclusive(new RunnableWithResult.Impl() {
+
+ public void run() {
+ setResult(parser.isValidEditString(new EObjectAdapter(element), (String)value));
+ }
+ });
+ return valid.getCode() == ParserEditStatus.EDITABLE ? null : valid.getMessage();
+ } catch (InterruptedException ie) {
+ ie.printStackTrace();
+ }
+ }
+
+ // shouldn't get here
+ return null;
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ public IContentAssistProcessor getCompletionProcessor() {
+ if(getParserElement() == null || getParser() == null) {
+ return null;
+ }
+ return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
+ }
+
+ /**
+ * @generated
+ */
+ public ParserOptions getParserOptions() {
+ return ParserOptions.NONE;
+ }
+
+ /**
+ * @generated
+ */
+ public IParser getParser() {
+ if(parser == null) {
+ parser = UMLParserProvider.getParser(UMLElementTypes.OpaqueBehavior_3108, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.diagram.composite.edit.parts.OpaqueBehaviorEditPartCLN.VISUAL_ID));
+ }
+ return parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected DirectEditManager getManager() {
+ if(manager == null) {
+ setManager(new MultilineLabelDirectEditManager(this, MultilineLabelDirectEditManager.getTextCellEditorClass(this), UMLEditPartFactory.getTextCellEditorLocator(this)));
+ }
+ return manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setManager(DirectEditManager manager) {
+ this.manager = manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit() {
+ getManager().show();
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit(Point eventLocation) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(eventLocation.getSWTPoint());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void performDirectEdit(char initialCharacter) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(initialCharacter);
+ } else {
+ performDirectEdit();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEditRequest(Request request) {
+
+ final Request theRequest = request;
+
+ if(IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
+ directEditionMode = getDirectEditionType();
+ }
+ switch(directEditionMode) {
+ case IDirectEdition.NO_DIRECT_EDITION:
+ // no direct edition mode => does nothing
+ return;
+ case IDirectEdition.EXTENDED_DIRECT_EDITOR:
+ updateExtendedEditorConfiguration();
+ if(configuration == null || configuration.getLanguage() == null) {
+ performDefaultDirectEditorEdit(theRequest);
+ } else {
+ configuration.preEditAction(resolveSemanticElement());
+ Dialog dialog = null;
+ if(configuration instanceof IPopupEditorConfiguration) {
+ IPopupEditorHelper helper = ((IPopupEditorConfiguration)configuration).createPopupEditorHelper(this);
+ helper.showEditor();
+ return;
+ } else if(configuration instanceof IAdvancedEditorConfiguration) {
+ dialog = ((IAdvancedEditorConfiguration)configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
+ } else if(configuration instanceof IDirectEditorConfiguration) {
+ dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), ((IDirectEditorConfiguration)configuration).getTextToEdit(resolveSemanticElement()), (IDirectEditorConfiguration)configuration);
+ } else {
+ return;
+ }
+ final Dialog finalDialog = dialog;
+
+ if(Window.OK == dialog.open()) {
+ TransactionalEditingDomain domain = getEditingDomain();
+ RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
+
+ @Override
+ protected void doExecute() {
+ configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog)finalDialog).getValue());
+
+ }
+ };
+ domain.getCommandStack().execute(command);
+ }
+ }
+ break;
+ case IDirectEdition.DEFAULT_DIRECT_EDITOR:
+
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ break;
+ default:
+ break;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshLabel();
+ refreshFont();
+ refreshFontColor();
+ refreshUnderline();
+ refreshStrikeThrough();
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshLabel() {
+ EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
+ if(maskLabelPolicy == null) {
+ setLabelTextHelper(getFigure(), getLabelText());
+ setLabelIconHelper(getFigure(), getLabelIcon());
+ }
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshUnderline() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextUnderline(style.isUnderline());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshStrikeThrough() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextStrikeThrough(style.isStrikeThrough());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshFont() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null) {
+ FontData fontData = new FontData(style.getFontName(), style.getFontHeight(), (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
+ setFont(fontData);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setFontColor(Color color) {
+ getFigure().setForegroundColor(color);
+ }
+
+ /**
+ * @generated
+ */
+ protected void addSemanticListeners() {
+ if(getParser() instanceof ISemanticParser) {
+ EObject element = resolveSemanticElement();
+ parserElements = ((ISemanticParser)getParser()).getSemanticElementsBeingParsed(element);
+ for(int i = 0; i < parserElements.size(); i++) {
+ addListenerFilter("SemanticModel" + i, this, (EObject)parserElements.get(i)); //$NON-NLS-1$
+ }
+ } else {
+ super.addSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeSemanticListeners() {
+ if(parserElements != null) {
+ for(int i = 0; i < parserElements.size(); i++) {
+ removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
+ }
+ } else {
+ super.removeSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected AccessibleEditPart getAccessibleEditPart() {
+ if(accessibleEP == null) {
+ accessibleEP = new AccessibleGraphicalEditPart() {
+
+ public void getName(AccessibleEvent e) {
+ e.result = getLabelTextHelper(getFigure());
+ }
+ };
+ }
+ return accessibleEP;
+ }
+
+ /**
+ * @generated
+ */
+ private View getFontStyleOwnerView() {
+ return getPrimaryView();
+ }
+
+ /**
+ * Returns the kind of associated editor for direct edition.
+ *
+ * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition
+ * @generated
+ */
+ public int getDirectEditionType() {
+ if(checkExtendedEditor()) {
+ initExtendedEditorConfiguration();
+ return IDirectEdition.EXTENDED_DIRECT_EDITOR;
+ }
+ if(checkDefaultEdition()) {
+ return IDirectEdition.DEFAULT_DIRECT_EDITOR;
+ }
+
+ // not a named element. no specific editor => do nothing
+ return IDirectEdition.NO_DIRECT_EDITION;
+ }
+
+ /**
+ * Checks if an extended editor is present.
+ *
+ * @return <code>true</code> if an extended editor is present.
+ * @generated
+ */
+ protected boolean checkExtendedEditor() {
+ if(resolveSemanticElement() != null) {
+ return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ return false;
+ }
+
+ /**
+ * Checks if a default direct edition is available
+ *
+ * @return <code>true</code> if a default direct edition is available
+ * @generated
+ */
+ protected boolean checkDefaultEdition() {
+ return (getParser() != null);
+ }
+
+ /**
+ * Initializes the extended editor configuration
+ *
+ * @generated
+ */
+ protected void initExtendedEditorConfiguration() {
+ if(configuration == null) {
+ final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("")) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else {
+ configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ }
+ }
+
+ /**
+ * Updates the preference configuration
+ *
+ * @generated
+ */
+ protected void updateExtendedEditorConfiguration() {
+ String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("") && languagePreferred != configuration.getLanguage()) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else if(IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
+ configuration = null;
+ }
+ }
+
+ /**
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
+ protected void performDefaultDirectEditorEdit(final Request theRequest) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void addNotationalListeners() {
+ super.addNotationalListeners();
+ addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeNotationalListeners() {
+ super.removeNotationalListeners();
+ removeListenerFilter("PrimaryView"); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void handleNotificationEvent(Notification event) {
+ Object feature = event.getFeature();
+ if(NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
+ Integer c = (Integer)event.getNewValue();
+ setFontColor(DiagramColorRegistry.getInstance().getColor(c));
+ } else if(NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
+ refreshUnderline();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
+ refreshStrikeThrough();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
+ refreshFont();
+ } else {
+ if(getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
+ refreshLabel();
+ }
+ if(getParser() instanceof ISemanticParser) {
+ ISemanticParser modelParser = (ISemanticParser)getParser();
+ if(modelParser.areSemanticElementsAffected(null, event)) {
+ removeSemanticListeners();
+ if(resolveSemanticElement() != null) {
+ addSemanticListeners();
+ }
+ refreshLabel();
+ }
+ }
+ }
+ if(event.getNewValue() instanceof EAnnotation && VisualInformationPapyrusConstant.DISPLAY_NAMELABELICON.equals(((EAnnotation)event.getNewValue()).getSource())) {
+ refreshLabel();
+ }
+ super.handleNotificationEvent(event);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createFigure() {
+ IFigure label = createFigurePrim();
+ defaultText = getLabelTextHelper(label);
+ return label;
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createFigurePrim() {
+ return new WrappingLabel();
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/OpaqueExpressionEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/OpaqueExpressionEditPart.java
new file mode 100644
index 00000000000..7b49ec61b05
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/OpaqueExpressionEditPart.java
@@ -0,0 +1,5167 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.ArrayList;
+import java.util.LinkedList;
+import java.util.List;
+
+import org.eclipse.draw2d.ColorConstants;
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.RectangleFigure;
+import org.eclipse.draw2d.Shape;
+import org.eclipse.draw2d.StackLayout;
+import org.eclipse.emf.ecore.EStructuralFeature;
+import org.eclipse.gef.EditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.editpolicies.LayoutEditPolicy;
+import org.eclipse.gef.editpolicies.NonResizableEditPolicy;
+import org.eclipse.gef.requests.CreateRequest;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ShapeNodeEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.FigureUtilities;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.gef.ui.figures.DefaultSizeNodeFigure;
+import org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.jface.preference.PreferenceConverter;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.HyperLinkPopupBarEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.QualifiedNameDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.helper.PreferenceInitializerForElementHelper;
+import org.eclipse.papyrus.diagram.composite.edit.policies.OpaqueExpressionItemSemanticEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorPlugin;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter;
+import org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.Font;
+import org.eclipse.swt.widgets.Display;
+
+/**
+ * @generated
+ */
+public class OpaqueExpressionEditPart extends
+
+ShapeNodeEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 2101;
+
+ /**
+ * @generated
+ */
+ protected IFigure contentPane;
+
+ /**
+ * @generated
+ */
+ protected IFigure primaryShape;
+
+ /**
+ * @generated
+ */
+ public OpaqueExpressionEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new OpaqueExpressionItemSemanticEditPolicy());
+ installEditPolicy(EditPolicy.LAYOUT_ROLE, createLayoutEditPolicy());
+ installEditPolicy(QualifiedNameDisplayEditPolicy.QUALIFIED_NAME_POLICY, new QualifiedNameDisplayEditPolicy());
+ installEditPolicy(AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeNodeLabelDisplayEditPolicy());
+ installEditPolicy(EditPolicyRoles.POPUPBAR_ROLE, new HyperLinkPopupBarEditPolicy());
+ // XXX need an SCR to runtime to have another abstract superclass that would let children add reasonable editpolicies
+ // removeEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CONNECTION_HANDLES_ROLE);
+ }
+
+ /**
+ * @generated
+ */
+ protected LayoutEditPolicy createLayoutEditPolicy() {
+ org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy lep = new org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy() {
+
+ protected EditPolicy createChildEditPolicy(EditPart child) {
+ EditPolicy result = child.getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(result == null) {
+ result = new NonResizableEditPolicy();
+ }
+ return result;
+ }
+
+ protected Command getMoveChildrenCommand(Request request) {
+ return null;
+ }
+
+ protected Command getCreateCommand(CreateRequest request) {
+ return null;
+ }
+ };
+ return lep;
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createNodeShape() {
+ return primaryShape = new NamedElementDescriptor();
+ }
+
+ /**
+ * @generated
+ */
+ public NamedElementDescriptor getPrimaryShape() {
+ return (NamedElementDescriptor)primaryShape;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean addFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof OpaqueExpressionNameEditPart) {
+ ((OpaqueExpressionNameEditPart)childEditPart).setLabel(getPrimaryShape().getNamedElementNameLabel());
+ return true;
+ }
+
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean removeFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof OpaqueExpressionNameEditPart) {
+ return true;
+ }
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected void addChildVisual(EditPart childEditPart, int index) {
+ if(addFixedChild(childEditPart)) {
+ return;
+ }
+ super.addChildVisual(childEditPart, -1);
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeChildVisual(EditPart childEditPart) {
+ if(removeFixedChild(childEditPart)) {
+ return;
+ }
+ super.removeChildVisual(childEditPart);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure getContentPaneFor(IGraphicalEditPart editPart) {
+ return getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ protected NodeFigure createNodePlate() {
+ String prefElementId = "OpaqueExpression";
+ IPreferenceStore store = UMLDiagramEditorPlugin.getInstance().getPreferenceStore();
+ String preferenceConstantWitdh = PreferenceInitializerForElementHelper.getpreferenceKey(getNotationView(), prefElementId, PreferenceConstantHelper.WIDTH);
+ String preferenceConstantHeight = PreferenceInitializerForElementHelper.getpreferenceKey(getNotationView(), prefElementId, PreferenceConstantHelper.HEIGHT);
+ DefaultSizeNodeFigure result = new DefaultSizeNodeFigure(store.getInt(preferenceConstantWitdh), store.getInt(preferenceConstantHeight));
+
+ return result;
+ }
+
+ /**
+ * Creates figure for this edit part.
+ *
+ * Body of this method does not depend on settings in generation model
+ * so you may safely remove <i>generated</i> tag and modify it.
+ *
+ * @generated
+ */
+ protected NodeFigure createNodeFigure() {
+ NodeFigure figure = createNodePlate();
+ figure.setLayoutManager(new StackLayout());
+ IFigure shape = createNodeShape();
+ figure.add(shape);
+ contentPane = setupContentPane(shape);
+ return figure;
+ }
+
+ /**
+ * Default implementation treats passed figure as content pane.
+ * Respects layout one may have set for generated figure.
+ *
+ * @param nodeShape
+ * instance of generated figure class
+ * @generated
+ */
+ protected IFigure setupContentPane(IFigure nodeShape) {
+ if(nodeShape.getLayoutManager() == null) {
+ ConstrainedToolbarLayout layout = new ConstrainedToolbarLayout();
+ layout.setSpacing(5);
+ nodeShape.setLayoutManager(layout);
+ }
+ return nodeShape; // use nodeShape itself as contentPane
+ }
+
+ /**
+ * @generated
+ */
+ public IFigure getContentPane() {
+ if(contentPane != null) {
+ return contentPane;
+ }
+ return super.getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ protected void setForegroundColor(Color color) {
+ if(primaryShape != null) {
+ primaryShape.setForegroundColor(color);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLineWidth(int width) {
+ if(primaryShape instanceof Shape) {
+ ((Shape)primaryShape).setLineWidth(width);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLineType(int style) {
+ if(primaryShape instanceof Shape) {
+ ((Shape)primaryShape).setLineStyle(style);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public EditPart getPrimaryChildEditPart() {
+ return getChildBySemanticHint(UMLVisualIDRegistry.getType(OpaqueExpressionNameEditPart.VISUAL_ID));
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnSource() {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(11);
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ types.add(UMLElementTypes.Substitution_4011);
+ types.add(UMLElementTypes.Realization_4006);
+ types.add(UMLElementTypes.Manifestation_4012);
+ types.add(UMLElementTypes.Abstraction_4007);
+ types.add(UMLElementTypes.Usage_4008);
+ types.add(UMLElementTypes.Deployment_4009);
+ types.add(UMLElementTypes.Dependency_4017);
+ types.add(UMLElementTypes.Dependency_4010);
+ types.add(UMLElementTypes.InformationFlow_4021);
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnSourceAndTarget(IGraphicalEditPart targetEditPart) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMATypesForTarget(IElementType relationshipType) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(relationshipType == UMLElementTypes.ComponentRealization_4004) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InterfaceRealization_4005) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Substitution_4011) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Realization_4006) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Manifestation_4012) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Abstraction_4007) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Usage_4008) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Deployment_4009) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4017) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4010) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InformationFlow_4021) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnTarget() {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(15);
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ types.add(UMLElementTypes.Substitution_4011);
+ types.add(UMLElementTypes.Realization_4006);
+ types.add(UMLElementTypes.Manifestation_4012);
+ types.add(UMLElementTypes.Abstraction_4007);
+ types.add(UMLElementTypes.Usage_4008);
+ types.add(UMLElementTypes.Deployment_4009);
+ types.add(UMLElementTypes.Dependency_4017);
+ types.add(UMLElementTypes.Dependency_4010);
+ types.add(UMLElementTypes.TimeObservationEvent_4018);
+ types.add(UMLElementTypes.DurationObservationEvent_4019);
+ types.add(UMLElementTypes.InformationFlow_4021);
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMATypesForSource(IElementType relationshipType) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(relationshipType == UMLElementTypes.CommentAnnotatedElement_4002) {
+ types.add(UMLElementTypes.Comment_2109);
+ types.add(UMLElementTypes.Comment_3097);
+ } else if(relationshipType == UMLElementTypes.ConstraintConstrainedElement_4003) {
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.ComponentRealization_4004) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InterfaceRealization_4005) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Substitution_4011) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Realization_4006) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Manifestation_4012) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Abstraction_4007) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Usage_4008) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Deployment_4009) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4017) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4010) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.TimeObservationEvent_4018) {
+ types.add(UMLElementTypes.TimeObservation_2094);
+ } else if(relationshipType == UMLElementTypes.DurationObservationEvent_4019) {
+ types.add(UMLElementTypes.DurationObservation_2093);
+ } else if(relationshipType == UMLElementTypes.InformationFlow_4021) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public class NamedElementDescriptor extends RectangleFigure {
+
+ /**
+ * @generated
+ */
+ private WrappingLabel fNamedElementNameLabel;
+
+ /**
+ * @generated
+ */
+ public NamedElementDescriptor() {
+ this.setLineWidth(1);
+ this.setForegroundColor(ColorConstants.black);
+ createContents();
+ }
+
+ /**
+ * @generated
+ */
+ private void createContents() {
+
+ fNamedElementNameLabel = new WrappingLabel();
+ fNamedElementNameLabel.setText("");
+ fNamedElementNameLabel.setForegroundColor(ColorConstants.black);
+
+ fNamedElementNameLabel.setFont(FNAMEDELEMENTNAMELABEL_FONT);
+
+ this.add(fNamedElementNameLabel);
+
+ }
+
+ /**
+ * @generated
+ */
+ private boolean myUseLocalCoordinates = false;
+
+ /**
+ * @generated
+ */
+ protected boolean useLocalCoordinates() {
+ return myUseLocalCoordinates;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setUseLocalCoordinates(boolean useLocalCoordinates) {
+ myUseLocalCoordinates = useLocalCoordinates;
+ }
+
+ /**
+ * @generated
+ */
+ public WrappingLabel getNamedElementNameLabel() {
+ return fNamedElementNameLabel;
+ }
+
+ }
+
+ /**
+ * @generated
+ */
+ static final Font FNAMEDELEMENTNAMELABEL_FONT = new Font(Display.getCurrent(), "Arial", 10, SWT.BOLD);
+
+ /**
+ * @generated
+ */
+ @Override
+ public Object getPreferredValue(EStructuralFeature feature) {
+ IPreferenceStore preferenceStore = (IPreferenceStore)getDiagramPreferencesHint().getPreferenceStore();
+ Object result = null;
+
+ if(feature == NotationPackage.eINSTANCE.getLineStyle_LineColor() || feature == NotationPackage.eINSTANCE.getFontStyle_FontColor() || feature == NotationPackage.eINSTANCE.getFillStyle_FillColor()) {
+ String prefColor = null;
+ if(feature == NotationPackage.eINSTANCE.getLineStyle_LineColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("OpaqueExpression", PreferenceConstantHelper.COLOR_LINE);
+ } else if(feature == NotationPackage.eINSTANCE.getFontStyle_FontColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("OpaqueExpression", PreferenceConstantHelper.COLOR_FONT);
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_FillColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("OpaqueExpression", PreferenceConstantHelper.COLOR_FILL);
+ }
+ result = FigureUtilities.RGBToInteger(PreferenceConverter.getColor((IPreferenceStore)preferenceStore, prefColor));
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_Transparency() || feature == NotationPackage.eINSTANCE.getFillStyle_Gradient()) {
+ String prefGradient = PreferenceConstantHelper.getElementConstant("OpaqueExpression", PreferenceConstantHelper.COLOR_GRADIENT);
+ GradientPreferenceConverter gradientPreferenceConverter = new GradientPreferenceConverter(preferenceStore.getString(prefGradient));
+ if(feature == NotationPackage.eINSTANCE.getFillStyle_Transparency()) {
+ result = new Integer(gradientPreferenceConverter.getTransparency());
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_Gradient()) {
+ result = gradientPreferenceConverter.getGradientData();
+ }
+ }
+
+ if(result == null) {
+ result = getStructuralFeatureValue(feature);
+ }
+ return result;
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/OpaqueExpressionNameEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/OpaqueExpressionNameEditPart.java
new file mode 100644
index 00000000000..aba87cd37c6
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/OpaqueExpressionNameEditPart.java
@@ -0,0 +1,791 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EAnnotation;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.emf.transaction.RunnableWithResult;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.AccessibleEditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.requests.DirectEditRequest;
+import org.eclipse.gef.tools.DirectEditManager;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.CompartmentEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
+import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
+import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
+import org.eclipse.gmf.runtime.notation.FontStyle;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
+import org.eclipse.jface.viewers.ICellEditorValidator;
+import org.eclipse.jface.window.Window;
+import org.eclipse.papyrus.diagram.common.directedit.MultilineLabelDirectEditManager;
+import org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition;
+import org.eclipse.papyrus.diagram.common.editpolicies.IMaskManagedLabelEditPolicy;
+import org.eclipse.papyrus.diagram.common.figure.node.ILabelFigure;
+import org.eclipse.papyrus.diagram.common.util.DiagramEditPartsUtil;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLTextSelectionEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.diagram.composite.providers.UMLParserProvider;
+import org.eclipse.papyrus.extensionpoints.editors.Activator;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
+import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
+import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
+import org.eclipse.papyrus.umlutils.ui.VisualInformationPapyrusConstant;
+import org.eclipse.papyrus.umlutils.ui.helper.NameLabelIconHelper;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.AccessibleEvent;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.FontData;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.ui.PlatformUI;
+
+/**
+ * @generated
+ */
+public class OpaqueExpressionNameEditPart extends CompartmentEditPart implements ITextAwareEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 5184;
+
+ /**
+ * @generated
+ */
+ private DirectEditManager manager;
+
+ /**
+ * @generated
+ */
+ private IParser parser;
+
+ /**
+ * @generated
+ */
+ private List<?> parserElements;
+
+ /**
+ * @generated
+ */
+ private String defaultText;
+
+ /**
+ * direct edition mode (default, undefined, registered editor, etc.)
+ *
+ * @generated
+ */
+ protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
+
+ /**
+ * configuration from a registered edit dialog
+ *
+ * @generated
+ */
+ protected IDirectEditorConfiguration configuration;
+
+ /**
+ * @generated
+ */
+ public OpaqueExpressionNameEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
+ installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new CompositeStructureDiagramEditPart.NodeLabelDragPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelTextHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getText();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getText();
+ } else {
+ return ((Label)figure).getText();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelTextHelper(IFigure figure, String text) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setText(text);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setText(text);
+ } else {
+ ((Label)figure).setText(text);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIconHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getIcon();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getIcon();
+ } else {
+ return ((Label)figure).getIcon();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelIconHelper(IFigure figure, Image icon) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setIcon(icon);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setIcon(icon);
+ } else {
+ ((Label)figure).setIcon(icon);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabel(WrappingLabel figure) {
+ unregisterVisuals();
+ setFigure(figure);
+ defaultText = getLabelTextHelper(figure);
+ registerVisuals();
+ refreshVisuals();
+ }
+
+ /**
+ * @generated
+ */
+ protected List getModelChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject getParserElement() {
+ return resolveSemanticElement();
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIcon() {
+ EObject parserElement = getParserElement();
+ if(parserElement == null) {
+ return null;
+ }
+
+ List<View> views = DiagramEditPartsUtil.findViews(parserElement, getViewer());
+ for(View view : views) {
+ if(NameLabelIconHelper.showLabelIcon(view)) {
+ return UMLElementTypes.getImage(parserElement.eClass());
+ }
+ }
+ return null;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelText() {
+ String text = null;
+ EObject parserElement = getParserElement();
+ if(parserElement != null && getParser() != null) {
+ text = getParser().getPrintString(new EObjectAdapter(parserElement), getParserOptions().intValue());
+ }
+ if(text == null || text.length() == 0) {
+ text = defaultText;
+ }
+ return text;
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabelText(String text) {
+ setLabelTextHelper(getFigure(), text);
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public String getEditText() {
+ if(getParserElement() == null || getParser() == null) {
+ return ""; //$NON-NLS-1$
+ }
+ return getParser().getEditString(new EObjectAdapter(getParserElement()), getParserOptions().intValue());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean isEditable() {
+ return getParser() != null;
+ }
+
+ /**
+ * @generated
+ */
+ public ICellEditorValidator getEditTextValidator() {
+ return new ICellEditorValidator() {
+
+ public String isValid(final Object value) {
+ if(value instanceof String) {
+ final EObject element = getParserElement();
+ final IParser parser = getParser();
+ try {
+ IParserEditStatus valid = (IParserEditStatus)getEditingDomain().runExclusive(new RunnableWithResult.Impl() {
+
+ public void run() {
+ setResult(parser.isValidEditString(new EObjectAdapter(element), (String)value));
+ }
+ });
+ return valid.getCode() == ParserEditStatus.EDITABLE ? null : valid.getMessage();
+ } catch (InterruptedException ie) {
+ ie.printStackTrace();
+ }
+ }
+
+ // shouldn't get here
+ return null;
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ public IContentAssistProcessor getCompletionProcessor() {
+ if(getParserElement() == null || getParser() == null) {
+ return null;
+ }
+ return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
+ }
+
+ /**
+ * @generated
+ */
+ public ParserOptions getParserOptions() {
+ return ParserOptions.NONE;
+ }
+
+ /**
+ * @generated
+ */
+ public IParser getParser() {
+ if(parser == null) {
+ parser = UMLParserProvider.getParser(UMLElementTypes.OpaqueExpression_2101, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.diagram.composite.edit.parts.OpaqueExpressionNameEditPart.VISUAL_ID));
+ }
+ return parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected DirectEditManager getManager() {
+ if(manager == null) {
+ setManager(new MultilineLabelDirectEditManager(this, MultilineLabelDirectEditManager.getTextCellEditorClass(this), UMLEditPartFactory.getTextCellEditorLocator(this)));
+ }
+ return manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setManager(DirectEditManager manager) {
+ this.manager = manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit() {
+ getManager().show();
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit(Point eventLocation) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(eventLocation.getSWTPoint());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void performDirectEdit(char initialCharacter) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(initialCharacter);
+ } else {
+ performDirectEdit();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEditRequest(Request request) {
+
+ final Request theRequest = request;
+
+ if(IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
+ directEditionMode = getDirectEditionType();
+ }
+ switch(directEditionMode) {
+ case IDirectEdition.NO_DIRECT_EDITION:
+ // no direct edition mode => does nothing
+ return;
+ case IDirectEdition.EXTENDED_DIRECT_EDITOR:
+ updateExtendedEditorConfiguration();
+ if(configuration == null || configuration.getLanguage() == null) {
+ performDefaultDirectEditorEdit(theRequest);
+ } else {
+ configuration.preEditAction(resolveSemanticElement());
+ Dialog dialog = null;
+ if(configuration instanceof IPopupEditorConfiguration) {
+ IPopupEditorHelper helper = ((IPopupEditorConfiguration)configuration).createPopupEditorHelper(this);
+ helper.showEditor();
+ return;
+ } else if(configuration instanceof IAdvancedEditorConfiguration) {
+ dialog = ((IAdvancedEditorConfiguration)configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
+ } else if(configuration instanceof IDirectEditorConfiguration) {
+ dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), ((IDirectEditorConfiguration)configuration).getTextToEdit(resolveSemanticElement()), (IDirectEditorConfiguration)configuration);
+ } else {
+ return;
+ }
+ final Dialog finalDialog = dialog;
+
+ if(Window.OK == dialog.open()) {
+ TransactionalEditingDomain domain = getEditingDomain();
+ RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
+
+ @Override
+ protected void doExecute() {
+ configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog)finalDialog).getValue());
+
+ }
+ };
+ domain.getCommandStack().execute(command);
+ }
+ }
+ break;
+ case IDirectEdition.DEFAULT_DIRECT_EDITOR:
+
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ break;
+ default:
+ break;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshLabel();
+ refreshFont();
+ refreshFontColor();
+ refreshUnderline();
+ refreshStrikeThrough();
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshLabel() {
+ EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
+ if(maskLabelPolicy == null) {
+ setLabelTextHelper(getFigure(), getLabelText());
+ setLabelIconHelper(getFigure(), getLabelIcon());
+ }
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshUnderline() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextUnderline(style.isUnderline());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshStrikeThrough() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextStrikeThrough(style.isStrikeThrough());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshFont() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null) {
+ FontData fontData = new FontData(style.getFontName(), style.getFontHeight(), (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
+ setFont(fontData);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setFontColor(Color color) {
+ getFigure().setForegroundColor(color);
+ }
+
+ /**
+ * @generated
+ */
+ protected void addSemanticListeners() {
+ if(getParser() instanceof ISemanticParser) {
+ EObject element = resolveSemanticElement();
+ parserElements = ((ISemanticParser)getParser()).getSemanticElementsBeingParsed(element);
+ for(int i = 0; i < parserElements.size(); i++) {
+ addListenerFilter("SemanticModel" + i, this, (EObject)parserElements.get(i)); //$NON-NLS-1$
+ }
+ } else {
+ super.addSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeSemanticListeners() {
+ if(parserElements != null) {
+ for(int i = 0; i < parserElements.size(); i++) {
+ removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
+ }
+ } else {
+ super.removeSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected AccessibleEditPart getAccessibleEditPart() {
+ if(accessibleEP == null) {
+ accessibleEP = new AccessibleGraphicalEditPart() {
+
+ public void getName(AccessibleEvent e) {
+ e.result = getLabelTextHelper(getFigure());
+ }
+ };
+ }
+ return accessibleEP;
+ }
+
+ /**
+ * @generated
+ */
+ private View getFontStyleOwnerView() {
+ return (View)getModel();
+ }
+
+ /**
+ * Returns the kind of associated editor for direct edition.
+ *
+ * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition
+ * @generated
+ */
+ public int getDirectEditionType() {
+ if(checkExtendedEditor()) {
+ initExtendedEditorConfiguration();
+ return IDirectEdition.EXTENDED_DIRECT_EDITOR;
+ }
+ if(checkDefaultEdition()) {
+ return IDirectEdition.DEFAULT_DIRECT_EDITOR;
+ }
+
+ // not a named element. no specific editor => do nothing
+ return IDirectEdition.NO_DIRECT_EDITION;
+ }
+
+ /**
+ * Checks if an extended editor is present.
+ *
+ * @return <code>true</code> if an extended editor is present.
+ * @generated
+ */
+ protected boolean checkExtendedEditor() {
+ if(resolveSemanticElement() != null) {
+ return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ return false;
+ }
+
+ /**
+ * Checks if a default direct edition is available
+ *
+ * @return <code>true</code> if a default direct edition is available
+ * @generated
+ */
+ protected boolean checkDefaultEdition() {
+ return (getParser() != null);
+ }
+
+ /**
+ * Initializes the extended editor configuration
+ *
+ * @generated
+ */
+ protected void initExtendedEditorConfiguration() {
+ if(configuration == null) {
+ final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("")) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else {
+ configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ }
+ }
+
+ /**
+ * Updates the preference configuration
+ *
+ * @generated
+ */
+ protected void updateExtendedEditorConfiguration() {
+ String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("") && languagePreferred != configuration.getLanguage()) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else if(IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
+ configuration = null;
+ }
+ }
+
+ /**
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
+ protected void performDefaultDirectEditorEdit(final Request theRequest) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void addNotationalListeners() {
+ super.addNotationalListeners();
+ addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeNotationalListeners() {
+ super.removeNotationalListeners();
+ removeListenerFilter("PrimaryView"); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void handleNotificationEvent(Notification event) {
+ refreshLabel();
+ Object feature = event.getFeature();
+ if(NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
+ Integer c = (Integer)event.getNewValue();
+ setFontColor(DiagramColorRegistry.getInstance().getColor(c));
+ } else if(NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
+ refreshUnderline();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
+ refreshStrikeThrough();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
+ refreshFont();
+ } else {
+ if(getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
+ refreshLabel();
+ }
+ if(getParser() instanceof ISemanticParser) {
+ ISemanticParser modelParser = (ISemanticParser)getParser();
+ if(modelParser.areSemanticElementsAffected(null, event)) {
+ removeSemanticListeners();
+ if(resolveSemanticElement() != null) {
+ addSemanticListeners();
+ }
+ refreshLabel();
+ }
+ }
+ }
+
+ if(event.getNewValue() instanceof EAnnotation && VisualInformationPapyrusConstant.DISPLAY_NAMELABELICON.equals(((EAnnotation)event.getNewValue()).getSource())) {
+ refreshLabel();
+ }
+
+ super.handleNotificationEvent(event);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createFigure() {
+ // Parent should assign one using setLabel() method
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ private static final String ADD_PARENT_MODEL = "AddParentModel";
+
+ /**
+ * @generated
+ */
+ public void activate() {
+ super.activate();
+ addOwnerElementListeners();
+ }
+
+ /**
+ * @generated
+ */
+ protected void addOwnerElementListeners() {
+ addListenerFilter(ADD_PARENT_MODEL, this, ((View)getParent().getModel())); //$NON-NLS-1$
+
+ }
+
+ /**
+ * @generated
+ */
+ public void deactivate() {
+ removeOwnerElementListeners();
+ super.deactivate();
+
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeOwnerElementListeners() {
+ removeListenerFilter(ADD_PARENT_MODEL);
+
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/OperationEditPartCLN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/OperationEditPartCLN.java
new file mode 100644
index 00000000000..883f438eb98
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/OperationEditPartCLN.java
@@ -0,0 +1,805 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EAnnotation;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.emf.transaction.RunnableWithResult;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.AccessibleEditPart;
+import org.eclipse.gef.DragTracker;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.requests.DirectEditRequest;
+import org.eclipse.gef.requests.SelectionRequest;
+import org.eclipse.gef.tools.DirectEditManager;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.CompartmentEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IPrimaryEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.ListItemComponentEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
+import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
+import org.eclipse.gmf.runtime.diagram.ui.tools.DragEditPartsTrackerEx;
+import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
+import org.eclipse.gmf.runtime.notation.FontStyle;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
+import org.eclipse.jface.viewers.ICellEditorValidator;
+import org.eclipse.jface.window.Window;
+import org.eclipse.papyrus.diagram.common.directedit.MultilineLabelDirectEditManager;
+import org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition;
+import org.eclipse.papyrus.diagram.common.editpolicies.IMaskManagedLabelEditPolicy;
+import org.eclipse.papyrus.diagram.common.figure.node.ILabelFigure;
+import org.eclipse.papyrus.diagram.common.util.DiagramEditPartsUtil;
+import org.eclipse.papyrus.diagram.composite.edit.policies.OperationItemSemanticEditPolicyCLN;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLTextNonResizableEditPolicy;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLTextSelectionEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.diagram.composite.providers.UMLParserProvider;
+import org.eclipse.papyrus.extensionpoints.editors.Activator;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
+import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
+import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
+import org.eclipse.papyrus.umlutils.ui.VisualInformationPapyrusConstant;
+import org.eclipse.papyrus.umlutils.ui.helper.NameLabelIconHelper;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.AccessibleEvent;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.Font;
+import org.eclipse.swt.graphics.FontData;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.swt.widgets.Display;
+import org.eclipse.ui.PlatformUI;
+
+/**
+ * @generated
+ */
+public class OperationEditPartCLN
+
+extends CompartmentEditPart
+
+implements ITextAwareEditPart, IPrimaryEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 3102;
+
+ /**
+ * @generated
+ */
+ private DirectEditManager manager;
+
+ /**
+ * @generated
+ */
+ private IParser parser;
+
+ /**
+ * @generated
+ */
+ private List<?> parserElements;
+
+ /**
+ * @generated
+ */
+ private String defaultText;
+
+ /**
+ * direct edition mode (default, undefined, registered editor, etc.)
+ *
+ * @generated
+ */
+ protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
+
+ /**
+ * configuration from a registered edit dialog
+ *
+ * @generated
+ */
+ protected IDirectEditorConfiguration configuration;
+
+ /**
+ * @generated
+ */
+ public OperationEditPartCLN(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ public DragTracker getDragTracker(Request request) {
+ if(request instanceof SelectionRequest && ((SelectionRequest)request).getLastButtonPressed() == 3) {
+ return null;
+ }
+ return new DragEditPartsTrackerEx(this);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new OperationItemSemanticEditPolicyCLN());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new UMLTextNonResizableEditPolicy());
+ installEditPolicy(EditPolicy.COMPONENT_ROLE, new ListItemComponentEditPolicy());
+ installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelTextHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getText();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getText();
+ } else {
+ return ((Label)figure).getText();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelTextHelper(IFigure figure, String text) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setText(text);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setText(text);
+ } else {
+ ((Label)figure).setText(text);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIconHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getIcon();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getIcon();
+ } else {
+ return ((Label)figure).getIcon();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelIconHelper(IFigure figure, Image icon) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setIcon(icon);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setIcon(icon);
+ } else {
+ ((Label)figure).setIcon(icon);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabel(IFigure figure) {
+ unregisterVisuals();
+ setFigure(figure);
+ defaultText = getLabelTextHelper(figure);
+ registerVisuals();
+ refreshVisuals();
+ }
+
+ /**
+ * @generated
+ */
+ protected List getModelChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject getParserElement() {
+ return resolveSemanticElement();
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIcon() {
+ EObject parserElement = getParserElement();
+ if(parserElement == null) {
+ return null;
+ }
+
+ List<View> views = DiagramEditPartsUtil.findViews(parserElement, getViewer());
+ for(View view : views) {
+ if(NameLabelIconHelper.showLabelIcon(view)) {
+ return UMLElementTypes.getImage(parserElement.eClass());
+ }
+ }
+ return null;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelText() {
+ String text = null;
+ EObject parserElement = getParserElement();
+ if(parserElement != null && getParser() != null) {
+ text = getParser().getPrintString(new EObjectAdapter(parserElement), getParserOptions().intValue());
+ }
+ if(text == null || text.length() == 0) {
+ text = defaultText;
+ }
+ return text;
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabelText(String text) {
+ setLabelTextHelper(getFigure(), text);
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public String getEditText() {
+ if(getParserElement() == null || getParser() == null) {
+ return ""; //$NON-NLS-1$
+ }
+ return getParser().getEditString(new EObjectAdapter(getParserElement()), getParserOptions().intValue());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean isEditable() {
+ return getParser() != null;
+ }
+
+ /**
+ * @generated
+ */
+ public ICellEditorValidator getEditTextValidator() {
+ return new ICellEditorValidator() {
+
+ public String isValid(final Object value) {
+ if(value instanceof String) {
+ final EObject element = getParserElement();
+ final IParser parser = getParser();
+ try {
+ IParserEditStatus valid = (IParserEditStatus)getEditingDomain().runExclusive(new RunnableWithResult.Impl() {
+
+ public void run() {
+ setResult(parser.isValidEditString(new EObjectAdapter(element), (String)value));
+ }
+ });
+ return valid.getCode() == ParserEditStatus.EDITABLE ? null : valid.getMessage();
+ } catch (InterruptedException ie) {
+ ie.printStackTrace();
+ }
+ }
+
+ // shouldn't get here
+ return null;
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ public IContentAssistProcessor getCompletionProcessor() {
+ if(getParserElement() == null || getParser() == null) {
+ return null;
+ }
+ return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
+ }
+
+ /**
+ * @generated
+ */
+ public ParserOptions getParserOptions() {
+ return ParserOptions.NONE;
+ }
+
+ /**
+ * @generated
+ */
+ public IParser getParser() {
+ if(parser == null) {
+ parser = UMLParserProvider.getParser(UMLElementTypes.Operation_3102, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.diagram.composite.edit.parts.OperationEditPartCLN.VISUAL_ID));
+ }
+ return parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected DirectEditManager getManager() {
+ if(manager == null) {
+ setManager(new MultilineLabelDirectEditManager(this, MultilineLabelDirectEditManager.getTextCellEditorClass(this), UMLEditPartFactory.getTextCellEditorLocator(this)));
+ }
+ return manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setManager(DirectEditManager manager) {
+ this.manager = manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit() {
+ getManager().show();
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit(Point eventLocation) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(eventLocation.getSWTPoint());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void performDirectEdit(char initialCharacter) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(initialCharacter);
+ } else {
+ performDirectEdit();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEditRequest(Request request) {
+
+ final Request theRequest = request;
+
+ if(IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
+ directEditionMode = getDirectEditionType();
+ }
+ switch(directEditionMode) {
+ case IDirectEdition.NO_DIRECT_EDITION:
+ // no direct edition mode => does nothing
+ return;
+ case IDirectEdition.EXTENDED_DIRECT_EDITOR:
+ updateExtendedEditorConfiguration();
+ if(configuration == null || configuration.getLanguage() == null) {
+ performDefaultDirectEditorEdit(theRequest);
+ } else {
+ configuration.preEditAction(resolveSemanticElement());
+ Dialog dialog = null;
+ if(configuration instanceof IPopupEditorConfiguration) {
+ IPopupEditorHelper helper = ((IPopupEditorConfiguration)configuration).createPopupEditorHelper(this);
+ helper.showEditor();
+ return;
+ } else if(configuration instanceof IAdvancedEditorConfiguration) {
+ dialog = ((IAdvancedEditorConfiguration)configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
+ } else if(configuration instanceof IDirectEditorConfiguration) {
+ dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), ((IDirectEditorConfiguration)configuration).getTextToEdit(resolveSemanticElement()), (IDirectEditorConfiguration)configuration);
+ } else {
+ return;
+ }
+ final Dialog finalDialog = dialog;
+
+ if(Window.OK == dialog.open()) {
+ TransactionalEditingDomain domain = getEditingDomain();
+ RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
+
+ @Override
+ protected void doExecute() {
+ configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog)finalDialog).getValue());
+
+ }
+ };
+ domain.getCommandStack().execute(command);
+ }
+ }
+ break;
+ case IDirectEdition.DEFAULT_DIRECT_EDITOR:
+
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ break;
+ default:
+ break;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshLabel();
+ refreshFont();
+ refreshFontColor();
+ refreshUnderline();
+ refreshStrikeThrough();
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshLabel() {
+ EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
+ if(maskLabelPolicy == null) {
+ setLabelTextHelper(getFigure(), getLabelText());
+ setLabelIconHelper(getFigure(), getLabelIcon());
+ }
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshUnderline() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextUnderline(style.isUnderline());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshStrikeThrough() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextStrikeThrough(style.isStrikeThrough());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshFont() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null) {
+ FontData fontData = new FontData(style.getFontName(), style.getFontHeight(), (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
+ setFont(fontData);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setFontColor(Color color) {
+ getFigure().setForegroundColor(color);
+ }
+
+ /**
+ * @generated
+ */
+ protected void addSemanticListeners() {
+ if(getParser() instanceof ISemanticParser) {
+ EObject element = resolveSemanticElement();
+ parserElements = ((ISemanticParser)getParser()).getSemanticElementsBeingParsed(element);
+ for(int i = 0; i < parserElements.size(); i++) {
+ addListenerFilter("SemanticModel" + i, this, (EObject)parserElements.get(i)); //$NON-NLS-1$
+ }
+ } else {
+ super.addSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeSemanticListeners() {
+ if(parserElements != null) {
+ for(int i = 0; i < parserElements.size(); i++) {
+ removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
+ }
+ } else {
+ super.removeSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected AccessibleEditPart getAccessibleEditPart() {
+ if(accessibleEP == null) {
+ accessibleEP = new AccessibleGraphicalEditPart() {
+
+ public void getName(AccessibleEvent e) {
+ e.result = getLabelTextHelper(getFigure());
+ }
+ };
+ }
+ return accessibleEP;
+ }
+
+ /**
+ * @generated
+ */
+ private View getFontStyleOwnerView() {
+ return (View)getModel();
+ }
+
+ /**
+ * Returns the kind of associated editor for direct edition.
+ *
+ * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition
+ * @generated
+ */
+ public int getDirectEditionType() {
+ if(checkExtendedEditor()) {
+ initExtendedEditorConfiguration();
+ return IDirectEdition.EXTENDED_DIRECT_EDITOR;
+ }
+ if(checkDefaultEdition()) {
+ return IDirectEdition.DEFAULT_DIRECT_EDITOR;
+ }
+
+ // not a named element. no specific editor => do nothing
+ return IDirectEdition.NO_DIRECT_EDITION;
+ }
+
+ /**
+ * Checks if an extended editor is present.
+ *
+ * @return <code>true</code> if an extended editor is present.
+ * @generated
+ */
+ protected boolean checkExtendedEditor() {
+ if(resolveSemanticElement() != null) {
+ return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ return false;
+ }
+
+ /**
+ * Checks if a default direct edition is available
+ *
+ * @return <code>true</code> if a default direct edition is available
+ * @generated
+ */
+ protected boolean checkDefaultEdition() {
+ return (getParser() != null);
+ }
+
+ /**
+ * Initializes the extended editor configuration
+ *
+ * @generated
+ */
+ protected void initExtendedEditorConfiguration() {
+ if(configuration == null) {
+ final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("")) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else {
+ configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ }
+ }
+
+ /**
+ * Updates the preference configuration
+ *
+ * @generated
+ */
+ protected void updateExtendedEditorConfiguration() {
+ String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("") && languagePreferred != configuration.getLanguage()) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else if(IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
+ configuration = null;
+ }
+ }
+
+ /**
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
+ protected void performDefaultDirectEditorEdit(final Request theRequest) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void addNotationalListeners() {
+ super.addNotationalListeners();
+ addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeNotationalListeners() {
+ super.removeNotationalListeners();
+ removeListenerFilter("PrimaryView"); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void handleNotificationEvent(Notification event) {
+ Object feature = event.getFeature();
+ if(NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
+ Integer c = (Integer)event.getNewValue();
+ setFontColor(DiagramColorRegistry.getInstance().getColor(c));
+ } else if(NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
+ refreshUnderline();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
+ refreshStrikeThrough();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
+ refreshFont();
+ } else {
+ if(getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
+ refreshLabel();
+ }
+ if(getParser() instanceof ISemanticParser) {
+ ISemanticParser modelParser = (ISemanticParser)getParser();
+ if(modelParser.areSemanticElementsAffected(null, event)) {
+ removeSemanticListeners();
+ if(resolveSemanticElement() != null) {
+ addSemanticListeners();
+ }
+ refreshLabel();
+ }
+ }
+ }
+ if(event.getNewValue() instanceof EAnnotation && VisualInformationPapyrusConstant.DISPLAY_NAMELABELICON.equals(((EAnnotation)event.getNewValue()).getSource())) {
+ refreshLabel();
+ }
+ super.handleNotificationEvent(event);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createFigure() {
+ IFigure label = createFigurePrim();
+ defaultText = getLabelTextHelper(label);
+ return label;
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createFigurePrim() {
+ return new OperationFigureDescriptor();
+ }
+
+ /**
+ * @generated
+ */
+ public class OperationFigureDescriptor extends WrappingLabel {
+
+ /**
+ * @generated
+ */
+ public OperationFigureDescriptor() {
+ this.setText("");
+
+ this.setFont(THIS_FONT);
+
+ }
+
+ }
+
+ /**
+ * @generated
+ */
+ static final Font THIS_FONT = new Font(Display.getCurrent(), "Arial", 10, SWT.NORMAL);
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ParameterAppliedStereotypeEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ParameterAppliedStereotypeEditPart.java
new file mode 100644
index 00000000000..00099e49372
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ParameterAppliedStereotypeEditPart.java
@@ -0,0 +1,774 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.draw2d.geometry.Rectangle;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.emf.transaction.RunnableWithResult;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.AccessibleEditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.requests.DirectEditRequest;
+import org.eclipse.gef.tools.DirectEditManager;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IBorderItemEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.LabelEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.figures.IBorderItemLocator;
+import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
+import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
+import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
+import org.eclipse.gmf.runtime.notation.FontStyle;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
+import org.eclipse.jface.viewers.ICellEditorValidator;
+import org.eclipse.jface.window.Window;
+import org.eclipse.papyrus.diagram.common.directedit.MultilineLabelDirectEditManager;
+import org.eclipse.papyrus.diagram.common.editparts.ILabelRoleProvider;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeExternalNodeEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition;
+import org.eclipse.papyrus.diagram.common.editpolicies.IMaskManagedLabelEditPolicy;
+import org.eclipse.papyrus.diagram.common.figure.node.AppliedStereotypeWrappingLabelFigure;
+import org.eclipse.papyrus.diagram.common.figure.node.ILabelFigure;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLTextSelectionEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.diagram.composite.providers.UMLParserProvider;
+import org.eclipse.papyrus.extensionpoints.editors.Activator;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
+import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
+import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.AccessibleEvent;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.FontData;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.ui.PlatformUI;
+
+/**
+ * @generated
+ */
+public class ParameterAppliedStereotypeEditPart
+
+extends LabelEditPart
+
+implements ITextAwareEditPart, IBorderItemEditPart
+
+, ILabelRoleProvider
+
+{
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 6034;
+
+ /**
+ * @generated
+ */
+ private DirectEditManager manager;
+
+ /**
+ * @generated
+ */
+ private IParser parser;
+
+ /**
+ * @generated
+ */
+ private List<?> parserElements;
+
+ /**
+ * @generated
+ */
+ private String defaultText;
+
+ /**
+ * direct edition mode (default, undefined, registered editor, etc.)
+ *
+ * @generated
+ */
+ protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
+
+ /**
+ * configuration from a registered edit dialog
+ *
+ * @generated
+ */
+ protected IDirectEditorConfiguration configuration;
+
+ /**
+ * @generated
+ */
+ static {
+ registerSnapBackPosition(UMLVisualIDRegistry.getType(org.eclipse.papyrus.diagram.composite.edit.parts.ParameterAppliedStereotypeEditPart.VISUAL_ID), new Point(0, 0));
+ }
+
+ /**
+ * @generated
+ */
+ public ParameterAppliedStereotypeEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
+ installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
+ installEditPolicy(AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeExternalNodeEditPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ public IBorderItemLocator getBorderItemLocator() {
+ IFigure parentFigure = getFigure().getParent();
+ if(parentFigure != null && parentFigure.getLayoutManager() != null) {
+ Object constraint = parentFigure.getLayoutManager().getConstraint(getFigure());
+ return (IBorderItemLocator)constraint;
+ }
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ public void refreshBounds() {
+ int x = ((Integer)getStructuralFeatureValue(NotationPackage.eINSTANCE.getLocation_X())).intValue();
+ int y = ((Integer)getStructuralFeatureValue(NotationPackage.eINSTANCE.getLocation_Y())).intValue();
+ int width = ((Integer)getStructuralFeatureValue(NotationPackage.eINSTANCE.getSize_Width())).intValue();
+ int height = ((Integer)getStructuralFeatureValue(NotationPackage.eINSTANCE.getSize_Height())).intValue();
+ getBorderItemLocator().setConstraint(new Rectangle(x, y, width, height));
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelTextHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getText();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getText();
+ } else {
+ return ((Label)figure).getText();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelTextHelper(IFigure figure, String text) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setText(text);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setText(text);
+ } else {
+ ((Label)figure).setText(text);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIconHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getIcon();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getIcon();
+ } else {
+ return ((Label)figure).getIcon();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelIconHelper(IFigure figure, Image icon) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setIcon(icon);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setIcon(icon);
+ } else {
+ ((Label)figure).setIcon(icon);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabel(IFigure figure) {
+ unregisterVisuals();
+ setFigure(figure);
+ defaultText = getLabelTextHelper(figure);
+ registerVisuals();
+ refreshVisuals();
+ }
+
+ /**
+ * @generated
+ */
+ protected List getModelChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject getParserElement() {
+ return resolveSemanticElement();
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIcon() {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelText() {
+ String text = null;
+ EObject parserElement = getParserElement();
+ if(parserElement != null && getParser() != null) {
+ text = getParser().getPrintString(new EObjectAdapter(parserElement), getParserOptions().intValue());
+ }
+ if(text == null || text.length() == 0) {
+ text = defaultText;
+ }
+ return text;
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabelText(String text) {
+ setLabelTextHelper(getFigure(), text);
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public String getEditText() {
+ if(getParserElement() == null || getParser() == null) {
+ return ""; //$NON-NLS-1$
+ }
+ return getParser().getEditString(new EObjectAdapter(getParserElement()), getParserOptions().intValue());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean isEditable() {
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ public ICellEditorValidator getEditTextValidator() {
+ return new ICellEditorValidator() {
+
+ public String isValid(final Object value) {
+ if(value instanceof String) {
+ final EObject element = getParserElement();
+ final IParser parser = getParser();
+ try {
+ IParserEditStatus valid = (IParserEditStatus)getEditingDomain().runExclusive(new RunnableWithResult.Impl() {
+
+ public void run() {
+ setResult(parser.isValidEditString(new EObjectAdapter(element), (String)value));
+ }
+ });
+ return valid.getCode() == ParserEditStatus.EDITABLE ? null : valid.getMessage();
+ } catch (InterruptedException ie) {
+ ie.printStackTrace();
+ }
+ }
+
+ // shouldn't get here
+ return null;
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ public IContentAssistProcessor getCompletionProcessor() {
+ if(getParserElement() == null || getParser() == null) {
+ return null;
+ }
+ return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
+ }
+
+ /**
+ * @generated
+ */
+ public ParserOptions getParserOptions() {
+ return ParserOptions.NONE;
+ }
+
+ /**
+ * @generated
+ */
+ public IParser getParser() {
+ if(parser == null) {
+ parser = UMLParserProvider.getParser(UMLElementTypes.Parameter_3088, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.diagram.composite.edit.parts.ParameterAppliedStereotypeEditPart.VISUAL_ID));
+ }
+ return parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected DirectEditManager getManager() {
+ if(manager == null) {
+ setManager(new MultilineLabelDirectEditManager(this, MultilineLabelDirectEditManager.getTextCellEditorClass(this), UMLEditPartFactory.getTextCellEditorLocator(this)));
+ }
+ return manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setManager(DirectEditManager manager) {
+ this.manager = manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit() {
+ getManager().show();
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit(Point eventLocation) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(eventLocation.getSWTPoint());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void performDirectEdit(char initialCharacter) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(initialCharacter);
+ } else {
+ performDirectEdit();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEditRequest(Request request) {
+
+ final Request theRequest = request;
+
+ if(IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
+ directEditionMode = getDirectEditionType();
+ }
+ switch(directEditionMode) {
+ case IDirectEdition.NO_DIRECT_EDITION:
+ // no direct edition mode => does nothing
+ return;
+ case IDirectEdition.EXTENDED_DIRECT_EDITOR:
+ updateExtendedEditorConfiguration();
+ if(configuration == null || configuration.getLanguage() == null) {
+ performDefaultDirectEditorEdit(theRequest);
+ } else {
+ configuration.preEditAction(resolveSemanticElement());
+ Dialog dialog = null;
+ if(configuration instanceof IPopupEditorConfiguration) {
+ IPopupEditorHelper helper = ((IPopupEditorConfiguration)configuration).createPopupEditorHelper(this);
+ helper.showEditor();
+ return;
+ } else if(configuration instanceof IAdvancedEditorConfiguration) {
+ dialog = ((IAdvancedEditorConfiguration)configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
+ } else if(configuration instanceof IDirectEditorConfiguration) {
+ dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), ((IDirectEditorConfiguration)configuration).getTextToEdit(resolveSemanticElement()), (IDirectEditorConfiguration)configuration);
+ } else {
+ return;
+ }
+ final Dialog finalDialog = dialog;
+
+ if(Window.OK == dialog.open()) {
+ TransactionalEditingDomain domain = getEditingDomain();
+ RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
+
+ @Override
+ protected void doExecute() {
+ configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog)finalDialog).getValue());
+
+ }
+ };
+ domain.getCommandStack().execute(command);
+ }
+ }
+ break;
+ case IDirectEdition.DEFAULT_DIRECT_EDITOR:
+
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ break;
+ default:
+ break;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshLabel();
+ refreshFont();
+ refreshFontColor();
+ refreshUnderline();
+ refreshStrikeThrough();
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshLabel() {
+ EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
+ if(maskLabelPolicy == null) {
+ setLabelTextHelper(getFigure(), getLabelText());
+ setLabelIconHelper(getFigure(), getLabelIcon());
+ }
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshUnderline() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextUnderline(style.isUnderline());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshStrikeThrough() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextStrikeThrough(style.isStrikeThrough());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshFont() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null) {
+ FontData fontData = new FontData(style.getFontName(), style.getFontHeight(), (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
+ setFont(fontData);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setFontColor(Color color) {
+ getFigure().setForegroundColor(color);
+ }
+
+ /**
+ * @generated
+ */
+ protected void addSemanticListeners() {
+ if(getParser() instanceof ISemanticParser) {
+ EObject element = resolveSemanticElement();
+ parserElements = ((ISemanticParser)getParser()).getSemanticElementsBeingParsed(element);
+ for(int i = 0; i < parserElements.size(); i++) {
+ addListenerFilter("SemanticModel" + i, this, (EObject)parserElements.get(i)); //$NON-NLS-1$
+ }
+ } else {
+ super.addSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeSemanticListeners() {
+ if(parserElements != null) {
+ for(int i = 0; i < parserElements.size(); i++) {
+ removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
+ }
+ } else {
+ super.removeSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected AccessibleEditPart getAccessibleEditPart() {
+ if(accessibleEP == null) {
+ accessibleEP = new AccessibleGraphicalEditPart() {
+
+ public void getName(AccessibleEvent e) {
+ e.result = getLabelTextHelper(getFigure());
+ }
+ };
+ }
+ return accessibleEP;
+ }
+
+ /**
+ * @generated
+ */
+ private View getFontStyleOwnerView() {
+ return getPrimaryView();
+ }
+
+ /**
+ * Returns the kind of associated editor for direct edition.
+ *
+ * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition
+ * @generated
+ */
+ public int getDirectEditionType() {
+ // The label is read-only (defined in GMFGen model)
+ return IDirectEdition.NO_DIRECT_EDITION;
+ }
+
+ /**
+ * Checks if an extended editor is present.
+ *
+ * @return <code>true</code> if an extended editor is present.
+ * @generated
+ */
+ protected boolean checkExtendedEditor() {
+ if(resolveSemanticElement() != null) {
+ return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ return false;
+ }
+
+ /**
+ * Checks if a default direct edition is available
+ *
+ * @return <code>true</code> if a default direct edition is available
+ * @generated
+ */
+ protected boolean checkDefaultEdition() {
+ return (getParser() != null);
+ }
+
+ /**
+ * Initializes the extended editor configuration
+ *
+ * @generated
+ */
+ protected void initExtendedEditorConfiguration() {
+ if(configuration == null) {
+ final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("")) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else {
+ configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ }
+ }
+
+ /**
+ * Updates the preference configuration
+ *
+ * @generated
+ */
+ protected void updateExtendedEditorConfiguration() {
+ String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("") && languagePreferred != configuration.getLanguage()) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else if(IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
+ configuration = null;
+ }
+ }
+
+ /**
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
+ protected void performDefaultDirectEditorEdit(final Request theRequest) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void handleNotificationEvent(Notification event) {
+ Object feature = event.getFeature();
+ if(NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
+ Integer c = (Integer)event.getNewValue();
+ setFontColor(DiagramColorRegistry.getInstance().getColor(c));
+ } else if(NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
+ refreshUnderline();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
+ refreshStrikeThrough();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
+ refreshFont();
+ } else {
+ if(getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
+ refreshLabel();
+ }
+ if(getParser() instanceof ISemanticParser) {
+ ISemanticParser modelParser = (ISemanticParser)getParser();
+ if(modelParser.areSemanticElementsAffected(null, event)) {
+ removeSemanticListeners();
+ if(resolveSemanticElement() != null) {
+ addSemanticListeners();
+ }
+ refreshLabel();
+ }
+ }
+ }
+ super.handleNotificationEvent(event);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createFigure() {
+ IFigure label = createFigurePrim();
+ defaultText = getLabelTextHelper(label);
+ return label;
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createFigurePrim() {
+ return new AppliedStereotypeWrappingLabelFigure();
+ }
+
+ /**
+ * @generated
+ */
+ public String getLabelRole() {
+ return "Stereotype";//$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ public String getIconPathRole() {
+ return "";//$NON-NLS-1$
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ParameterEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ParameterEditPart.java
new file mode 100644
index 00000000000..8b5871e39de
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ParameterEditPart.java
@@ -0,0 +1,5110 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.ArrayList;
+import java.util.Collections;
+import java.util.LinkedList;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Shape;
+import org.eclipse.draw2d.StackLayout;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EStructuralFeature;
+import org.eclipse.gef.EditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.GraphicalEditPart;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.editpolicies.LayoutEditPolicy;
+import org.eclipse.gef.editpolicies.NonResizableEditPolicy;
+import org.eclipse.gef.handles.MoveHandle;
+import org.eclipse.gef.requests.CreateRequest;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IBorderItemEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.BorderItemSelectionEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.diagram.ui.figures.IBorderItemLocator;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.FigureUtilities;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.gef.ui.figures.DefaultSizeNodeFigure;
+import org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure;
+import org.eclipse.gmf.runtime.notation.Edge;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.jface.preference.PreferenceConverter;
+import org.eclipse.papyrus.diagram.common.editparts.AbstractBorderEditPart;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeIconlDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.HyperLinkPopupBarEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.ShowHideLabelEditPolicy;
+import org.eclipse.papyrus.diagram.common.helper.PreferenceInitializerForElementHelper;
+import org.eclipse.papyrus.diagram.common.locator.ExternalLabelPositionLocator;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.CustomDiagramDragDropEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.GraphicalNodeEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.ParameterLayoutEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.figures.ParameterFigure;
+import org.eclipse.papyrus.diagram.composite.edit.policies.ParameterItemSemanticEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorPlugin;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter;
+import org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper;
+import org.eclipse.swt.graphics.Color;
+
+/**
+ * @generated
+ */
+public class ParameterEditPart extends
+
+AbstractBorderEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 3088;
+
+ /**
+ * @generated
+ */
+ protected IFigure contentPane;
+
+ /**
+ * @generated
+ */
+ protected IFigure primaryShape;
+
+ /**
+ * @generated
+ */
+ public ParameterEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, getPrimaryDragEditPolicy());
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new ParameterItemSemanticEditPolicy());
+ installEditPolicy(EditPolicy.LAYOUT_ROLE, createLayoutEditPolicy());
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new org.eclipse.papyrus.diagram.composite.custom.edit.policies.ParameterItemSemanticEditPolicy());
+ installEditPolicy(EditPolicy.GRAPHICAL_NODE_ROLE, new GraphicalNodeEditPolicy());
+ installEditPolicy(EditPolicyRoles.POPUPBAR_ROLE, new HyperLinkPopupBarEditPolicy());
+ installEditPolicy(AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeIconlDisplayEditPolicy());
+ installEditPolicy(EditPolicy.LAYOUT_ROLE, new ParameterLayoutEditPolicy());
+ installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new CustomDiagramDragDropEditPolicy());
+ installEditPolicy(ShowHideLabelEditPolicy.SHOW_HIDE_LABEL_ROLE, new ShowHideLabelEditPolicy());
+ // XXX need an SCR to runtime to have another abstract superclass that would let children add reasonable editpolicies
+ // removeEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CONNECTION_HANDLES_ROLE);
+ }
+
+ /**
+ * Papyrus codeGen
+ *
+ * @generated
+ **/
+ protected void handleNotificationEvent(Notification event) {
+ /*
+ * when a node have external node labels, the methods refreshChildren() remove the EditPart corresponding to the Label from the EditPart
+ * Registry. After that, we can't reset the visibility to true (using the Show/Hide Label Action)!
+ */
+ if(NotationPackage.eINSTANCE.getView_Visible().equals(event.getFeature())) {
+ Object notifier = event.getNotifier();
+ List<?> modelChildren = ((View)getModel()).getChildren();
+ if(!(notifier instanceof Edge)) {
+ if(modelChildren.contains(event.getNotifier())) {
+ return;
+ }
+ }
+ }
+ super.handleNotificationEvent(event);
+
+ }
+
+ /**
+ * @generated
+ */
+ protected LayoutEditPolicy createLayoutEditPolicy() {
+ org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy lep = new org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy() {
+
+ protected EditPolicy createChildEditPolicy(EditPart child) {
+ View childView = (View)child.getModel();
+ switch(UMLVisualIDRegistry.getVisualID(childView)) {
+ case ParameterNameEditPart.VISUAL_ID:
+ case ParameterAppliedStereotypeEditPart.VISUAL_ID:
+ return new BorderItemSelectionEditPolicy() {
+
+ protected List createSelectionHandles() {
+ MoveHandle mh = new MoveHandle((GraphicalEditPart)getHost());
+ mh.setBorder(null);
+ return Collections.singletonList(mh);
+ }
+ };
+ }
+ EditPolicy result = child.getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(result == null) {
+ result = new NonResizableEditPolicy();
+ }
+ return result;
+ }
+
+ protected Command getMoveChildrenCommand(Request request) {
+ return null;
+ }
+
+ protected Command getCreateCommand(CreateRequest request) {
+ return null;
+ }
+ };
+ return lep;
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createNodeShape() {
+ return primaryShape = new ParameterFigure();
+ }
+
+ /**
+ * @generated
+ */
+ public ParameterFigure getPrimaryShape() {
+ return (ParameterFigure)primaryShape;
+ }
+
+ /**
+ * @generated
+ */
+ protected void addBorderItem(IFigure borderItemContainer, IBorderItemEditPart borderItemEditPart) {
+ if(borderItemEditPart instanceof ParameterNameEditPart) {
+ IBorderItemLocator locator = new ExternalLabelPositionLocator(getMainFigure());
+ borderItemContainer.add(borderItemEditPart.getFigure(), locator);
+ } else if(borderItemEditPart instanceof ParameterAppliedStereotypeEditPart) {
+ IBorderItemLocator locator = new ExternalLabelPositionLocator(getMainFigure());
+ borderItemContainer.add(borderItemEditPart.getFigure(), locator);
+ } else {
+ super.addBorderItem(borderItemContainer, borderItemEditPart);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected NodeFigure createNodePlate() {
+ String prefElementId = "Parameter";
+ IPreferenceStore store = UMLDiagramEditorPlugin.getInstance().getPreferenceStore();
+ String preferenceConstantWitdh = PreferenceInitializerForElementHelper.getpreferenceKey(getNotationView(), prefElementId, PreferenceConstantHelper.WIDTH);
+ String preferenceConstantHeight = PreferenceInitializerForElementHelper.getpreferenceKey(getNotationView(), prefElementId, PreferenceConstantHelper.HEIGHT);
+ DefaultSizeNodeFigure result = new DefaultSizeNodeFigure(store.getInt(preferenceConstantWitdh), store.getInt(preferenceConstantHeight));
+
+ //FIXME: workaround for #154536
+ result.getBounds().setSize(result.getPreferredSize());
+ return result;
+ }
+
+ /**
+ * Creates figure for this edit part.
+ *
+ * Body of this method does not depend on settings in generation model
+ * so you may safely remove <i>generated</i> tag and modify it.
+ *
+ * @generated
+ */
+ protected NodeFigure createMainFigure() {
+ NodeFigure figure = createNodePlate();
+ figure.setLayoutManager(new StackLayout());
+ IFigure shape = createNodeShape();
+ figure.add(shape);
+ contentPane = setupContentPane(shape);
+ return figure;
+ }
+
+ /**
+ * Default implementation treats passed figure as content pane.
+ * Respects layout one may have set for generated figure.
+ *
+ * @param nodeShape
+ * instance of generated figure class
+ * @generated
+ */
+ protected IFigure setupContentPane(IFigure nodeShape) {
+ return nodeShape; // use nodeShape itself as contentPane
+ }
+
+ /**
+ * @generated
+ */
+ public IFigure getContentPane() {
+ if(contentPane != null) {
+ return contentPane;
+ }
+ return super.getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ protected void setForegroundColor(Color color) {
+ if(primaryShape != null) {
+ primaryShape.setForegroundColor(color);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLineWidth(int width) {
+ if(primaryShape instanceof Shape) {
+ ((Shape)primaryShape).setLineWidth(width);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLineType(int style) {
+ if(primaryShape instanceof Shape) {
+ ((Shape)primaryShape).setLineStyle(style);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public EditPart getPrimaryChildEditPart() {
+ return getChildBySemanticHint(UMLVisualIDRegistry.getType(ParameterNameEditPart.VISUAL_ID));
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnSource() {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(11);
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ types.add(UMLElementTypes.Substitution_4011);
+ types.add(UMLElementTypes.Realization_4006);
+ types.add(UMLElementTypes.Manifestation_4012);
+ types.add(UMLElementTypes.Abstraction_4007);
+ types.add(UMLElementTypes.Usage_4008);
+ types.add(UMLElementTypes.Deployment_4009);
+ types.add(UMLElementTypes.Dependency_4017);
+ types.add(UMLElementTypes.Dependency_4010);
+ types.add(UMLElementTypes.InformationFlow_4021);
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnSourceAndTarget(IGraphicalEditPart targetEditPart) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ParameterEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ParameterEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ParameterEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ParameterEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ParameterEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ParameterEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ParameterEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ParameterEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ParameterEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ParameterEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ParameterEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMATypesForTarget(IElementType relationshipType) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(relationshipType == UMLElementTypes.ComponentRealization_4004) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InterfaceRealization_4005) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Substitution_4011) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Realization_4006) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Manifestation_4012) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Abstraction_4007) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Usage_4008) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Deployment_4009) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4017) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4010) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InformationFlow_4021) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnTarget() {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(15);
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ types.add(UMLElementTypes.Substitution_4011);
+ types.add(UMLElementTypes.Realization_4006);
+ types.add(UMLElementTypes.Manifestation_4012);
+ types.add(UMLElementTypes.Abstraction_4007);
+ types.add(UMLElementTypes.Usage_4008);
+ types.add(UMLElementTypes.Deployment_4009);
+ types.add(UMLElementTypes.Dependency_4017);
+ types.add(UMLElementTypes.Dependency_4010);
+ types.add(UMLElementTypes.TimeObservationEvent_4018);
+ types.add(UMLElementTypes.DurationObservationEvent_4019);
+ types.add(UMLElementTypes.InformationFlow_4021);
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMATypesForSource(IElementType relationshipType) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(relationshipType == UMLElementTypes.CommentAnnotatedElement_4002) {
+ types.add(UMLElementTypes.Comment_2109);
+ types.add(UMLElementTypes.Comment_3097);
+ } else if(relationshipType == UMLElementTypes.ConstraintConstrainedElement_4003) {
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.ComponentRealization_4004) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InterfaceRealization_4005) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Substitution_4011) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Realization_4006) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Manifestation_4012) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Abstraction_4007) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Usage_4008) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Deployment_4009) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4017) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4010) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.TimeObservationEvent_4018) {
+ types.add(UMLElementTypes.TimeObservation_2094);
+ } else if(relationshipType == UMLElementTypes.DurationObservationEvent_4019) {
+ types.add(UMLElementTypes.DurationObservation_2093);
+ } else if(relationshipType == UMLElementTypes.InformationFlow_4021) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public Object getPreferredValue(EStructuralFeature feature) {
+ IPreferenceStore preferenceStore = (IPreferenceStore)getDiagramPreferencesHint().getPreferenceStore();
+ Object result = null;
+
+ if(feature == NotationPackage.eINSTANCE.getLineStyle_LineColor() || feature == NotationPackage.eINSTANCE.getFontStyle_FontColor() || feature == NotationPackage.eINSTANCE.getFillStyle_FillColor()) {
+ String prefColor = null;
+ if(feature == NotationPackage.eINSTANCE.getLineStyle_LineColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("Parameter", PreferenceConstantHelper.COLOR_LINE);
+ } else if(feature == NotationPackage.eINSTANCE.getFontStyle_FontColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("Parameter", PreferenceConstantHelper.COLOR_FONT);
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_FillColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("Parameter", PreferenceConstantHelper.COLOR_FILL);
+ }
+ result = FigureUtilities.RGBToInteger(PreferenceConverter.getColor((IPreferenceStore)preferenceStore, prefColor));
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_Transparency() || feature == NotationPackage.eINSTANCE.getFillStyle_Gradient()) {
+ String prefGradient = PreferenceConstantHelper.getElementConstant("Parameter", PreferenceConstantHelper.COLOR_GRADIENT);
+ GradientPreferenceConverter gradientPreferenceConverter = new GradientPreferenceConverter(preferenceStore.getString(prefGradient));
+ if(feature == NotationPackage.eINSTANCE.getFillStyle_Transparency()) {
+ result = new Integer(gradientPreferenceConverter.getTransparency());
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_Gradient()) {
+ result = gradientPreferenceConverter.getGradientData();
+ }
+ }
+
+ if(result == null) {
+ result = getStructuralFeatureValue(feature);
+ }
+ return result;
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ParameterNameEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ParameterNameEditPart.java
new file mode 100644
index 00000000000..e5fc75bfc1e
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ParameterNameEditPart.java
@@ -0,0 +1,794 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.draw2d.geometry.Rectangle;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.emf.transaction.RunnableWithResult;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.AccessibleEditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.requests.DirectEditRequest;
+import org.eclipse.gef.tools.DirectEditManager;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IBorderItemEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.LabelEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.figures.IBorderItemLocator;
+import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
+import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
+import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
+import org.eclipse.gmf.runtime.notation.FontStyle;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
+import org.eclipse.jface.viewers.ICellEditorValidator;
+import org.eclipse.jface.window.Window;
+import org.eclipse.papyrus.diagram.common.directedit.MultilineLabelDirectEditManager;
+import org.eclipse.papyrus.diagram.common.editparts.ILabelRoleProvider;
+import org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition;
+import org.eclipse.papyrus.diagram.common.editpolicies.IMaskManagedLabelEditPolicy;
+import org.eclipse.papyrus.diagram.common.figure.node.ILabelFigure;
+import org.eclipse.papyrus.diagram.common.util.DiagramEditPartsUtil;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.ParameterLabelEditPolicy;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLTextSelectionEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.diagram.composite.providers.UMLParserProvider;
+import org.eclipse.papyrus.extensionpoints.editors.Activator;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
+import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
+import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
+import org.eclipse.papyrus.umlutils.ui.helper.NameLabelIconHelper;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.AccessibleEvent;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.FontData;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.ui.PlatformUI;
+
+/**
+ * @generated
+ */
+public class ParameterNameEditPart
+
+extends LabelEditPart
+
+implements ITextAwareEditPart, IBorderItemEditPart
+
+, ILabelRoleProvider
+
+{
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 6033;
+
+ /**
+ * @generated
+ */
+ private DirectEditManager manager;
+
+ /**
+ * @generated
+ */
+ private IParser parser;
+
+ /**
+ * @generated
+ */
+ private List<?> parserElements;
+
+ /**
+ * @generated
+ */
+ private String defaultText;
+
+ /**
+ * direct edition mode (default, undefined, registered editor, etc.)
+ *
+ * @generated
+ */
+ protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
+
+ /**
+ * configuration from a registered edit dialog
+ *
+ * @generated
+ */
+ protected IDirectEditorConfiguration configuration;
+
+ /**
+ * @generated
+ */
+ static {
+ registerSnapBackPosition(UMLVisualIDRegistry.getType(org.eclipse.papyrus.diagram.composite.edit.parts.ParameterNameEditPart.VISUAL_ID), new Point(0, 0));
+ }
+
+ /**
+ * @generated
+ */
+ public ParameterNameEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
+ installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
+ installEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY, new ParameterLabelEditPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ public IBorderItemLocator getBorderItemLocator() {
+ IFigure parentFigure = getFigure().getParent();
+ if(parentFigure != null && parentFigure.getLayoutManager() != null) {
+ Object constraint = parentFigure.getLayoutManager().getConstraint(getFigure());
+ return (IBorderItemLocator)constraint;
+ }
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ public void refreshBounds() {
+ int x = ((Integer)getStructuralFeatureValue(NotationPackage.eINSTANCE.getLocation_X())).intValue();
+ int y = ((Integer)getStructuralFeatureValue(NotationPackage.eINSTANCE.getLocation_Y())).intValue();
+ int width = ((Integer)getStructuralFeatureValue(NotationPackage.eINSTANCE.getSize_Width())).intValue();
+ int height = ((Integer)getStructuralFeatureValue(NotationPackage.eINSTANCE.getSize_Height())).intValue();
+ getBorderItemLocator().setConstraint(new Rectangle(x, y, width, height));
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelTextHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getText();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getText();
+ } else {
+ return ((Label)figure).getText();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelTextHelper(IFigure figure, String text) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setText(text);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setText(text);
+ } else {
+ ((Label)figure).setText(text);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIconHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getIcon();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getIcon();
+ } else {
+ return ((Label)figure).getIcon();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelIconHelper(IFigure figure, Image icon) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setIcon(icon);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setIcon(icon);
+ } else {
+ ((Label)figure).setIcon(icon);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabel(IFigure figure) {
+ unregisterVisuals();
+ setFigure(figure);
+ defaultText = getLabelTextHelper(figure);
+ registerVisuals();
+ refreshVisuals();
+ }
+
+ /**
+ * @generated
+ */
+ protected List getModelChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject getParserElement() {
+ return resolveSemanticElement();
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIcon() {
+ EObject parserElement = getParserElement();
+ if(parserElement == null) {
+ return null;
+ }
+
+ List<View> views = DiagramEditPartsUtil.findViews(parserElement, getViewer());
+ for(View view : views) {
+ if(NameLabelIconHelper.showLabelIcon(view)) {
+ return UMLElementTypes.getImage(parserElement.eClass());
+ }
+ }
+ return null;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelText() {
+ String text = null;
+ EObject parserElement = getParserElement();
+ if(parserElement != null && getParser() != null) {
+ text = getParser().getPrintString(new EObjectAdapter(parserElement), getParserOptions().intValue());
+ }
+ if(text == null || text.length() == 0) {
+ text = defaultText;
+ }
+ return text;
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabelText(String text) {
+ setLabelTextHelper(getFigure(), text);
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public String getEditText() {
+ if(getParserElement() == null || getParser() == null) {
+ return ""; //$NON-NLS-1$
+ }
+ return getParser().getEditString(new EObjectAdapter(getParserElement()), getParserOptions().intValue());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean isEditable() {
+ return getParser() != null;
+ }
+
+ /**
+ * @generated
+ */
+ public ICellEditorValidator getEditTextValidator() {
+ return new ICellEditorValidator() {
+
+ public String isValid(final Object value) {
+ if(value instanceof String) {
+ final EObject element = getParserElement();
+ final IParser parser = getParser();
+ try {
+ IParserEditStatus valid = (IParserEditStatus)getEditingDomain().runExclusive(new RunnableWithResult.Impl() {
+
+ public void run() {
+ setResult(parser.isValidEditString(new EObjectAdapter(element), (String)value));
+ }
+ });
+ return valid.getCode() == ParserEditStatus.EDITABLE ? null : valid.getMessage();
+ } catch (InterruptedException ie) {
+ ie.printStackTrace();
+ }
+ }
+
+ // shouldn't get here
+ return null;
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ public IContentAssistProcessor getCompletionProcessor() {
+ if(getParserElement() == null || getParser() == null) {
+ return null;
+ }
+ return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
+ }
+
+ /**
+ * @generated
+ */
+ public ParserOptions getParserOptions() {
+ return ParserOptions.NONE;
+ }
+
+ /**
+ * @generated
+ */
+ public IParser getParser() {
+ if(parser == null) {
+ parser = UMLParserProvider.getParser(UMLElementTypes.Parameter_3088, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.diagram.composite.edit.parts.ParameterNameEditPart.VISUAL_ID));
+ }
+ return parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected DirectEditManager getManager() {
+ if(manager == null) {
+ setManager(new MultilineLabelDirectEditManager(this, MultilineLabelDirectEditManager.getTextCellEditorClass(this), UMLEditPartFactory.getTextCellEditorLocator(this)));
+ }
+ return manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setManager(DirectEditManager manager) {
+ this.manager = manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit() {
+ getManager().show();
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit(Point eventLocation) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(eventLocation.getSWTPoint());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void performDirectEdit(char initialCharacter) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(initialCharacter);
+ } else {
+ performDirectEdit();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEditRequest(Request request) {
+
+ final Request theRequest = request;
+
+ if(IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
+ directEditionMode = getDirectEditionType();
+ }
+ switch(directEditionMode) {
+ case IDirectEdition.NO_DIRECT_EDITION:
+ // no direct edition mode => does nothing
+ return;
+ case IDirectEdition.EXTENDED_DIRECT_EDITOR:
+ updateExtendedEditorConfiguration();
+ if(configuration == null || configuration.getLanguage() == null) {
+ performDefaultDirectEditorEdit(theRequest);
+ } else {
+ configuration.preEditAction(resolveSemanticElement());
+ Dialog dialog = null;
+ if(configuration instanceof IPopupEditorConfiguration) {
+ IPopupEditorHelper helper = ((IPopupEditorConfiguration)configuration).createPopupEditorHelper(this);
+ helper.showEditor();
+ return;
+ } else if(configuration instanceof IAdvancedEditorConfiguration) {
+ dialog = ((IAdvancedEditorConfiguration)configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
+ } else if(configuration instanceof IDirectEditorConfiguration) {
+ dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), ((IDirectEditorConfiguration)configuration).getTextToEdit(resolveSemanticElement()), (IDirectEditorConfiguration)configuration);
+ } else {
+ return;
+ }
+ final Dialog finalDialog = dialog;
+
+ if(Window.OK == dialog.open()) {
+ TransactionalEditingDomain domain = getEditingDomain();
+ RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
+
+ @Override
+ protected void doExecute() {
+ configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog)finalDialog).getValue());
+
+ }
+ };
+ domain.getCommandStack().execute(command);
+ }
+ }
+ break;
+ case IDirectEdition.DEFAULT_DIRECT_EDITOR:
+
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ break;
+ default:
+ break;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshLabel();
+ refreshFont();
+ refreshFontColor();
+ refreshUnderline();
+ refreshStrikeThrough();
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshLabel() {
+ EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
+ if(maskLabelPolicy == null) {
+ setLabelTextHelper(getFigure(), getLabelText());
+ setLabelIconHelper(getFigure(), getLabelIcon());
+ }
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshUnderline() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextUnderline(style.isUnderline());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshStrikeThrough() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextStrikeThrough(style.isStrikeThrough());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshFont() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null) {
+ FontData fontData = new FontData(style.getFontName(), style.getFontHeight(), (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
+ setFont(fontData);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setFontColor(Color color) {
+ getFigure().setForegroundColor(color);
+ }
+
+ /**
+ * @generated
+ */
+ protected void addSemanticListeners() {
+ if(getParser() instanceof ISemanticParser) {
+ EObject element = resolveSemanticElement();
+ parserElements = ((ISemanticParser)getParser()).getSemanticElementsBeingParsed(element);
+ for(int i = 0; i < parserElements.size(); i++) {
+ addListenerFilter("SemanticModel" + i, this, (EObject)parserElements.get(i)); //$NON-NLS-1$
+ }
+ } else {
+ super.addSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeSemanticListeners() {
+ if(parserElements != null) {
+ for(int i = 0; i < parserElements.size(); i++) {
+ removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
+ }
+ } else {
+ super.removeSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected AccessibleEditPart getAccessibleEditPart() {
+ if(accessibleEP == null) {
+ accessibleEP = new AccessibleGraphicalEditPart() {
+
+ public void getName(AccessibleEvent e) {
+ e.result = getLabelTextHelper(getFigure());
+ }
+ };
+ }
+ return accessibleEP;
+ }
+
+ /**
+ * @generated
+ */
+ private View getFontStyleOwnerView() {
+ return getPrimaryView();
+ }
+
+ /**
+ * Returns the kind of associated editor for direct edition.
+ *
+ * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition
+ * @generated
+ */
+ public int getDirectEditionType() {
+ if(checkExtendedEditor()) {
+ initExtendedEditorConfiguration();
+ return IDirectEdition.EXTENDED_DIRECT_EDITOR;
+ }
+ if(checkDefaultEdition()) {
+ return IDirectEdition.DEFAULT_DIRECT_EDITOR;
+ }
+
+ // not a named element. no specific editor => do nothing
+ return IDirectEdition.NO_DIRECT_EDITION;
+ }
+
+ /**
+ * Checks if an extended editor is present.
+ *
+ * @return <code>true</code> if an extended editor is present.
+ * @generated
+ */
+ protected boolean checkExtendedEditor() {
+ if(resolveSemanticElement() != null) {
+ return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ return false;
+ }
+
+ /**
+ * Checks if a default direct edition is available
+ *
+ * @return <code>true</code> if a default direct edition is available
+ * @generated
+ */
+ protected boolean checkDefaultEdition() {
+ return (getParser() != null);
+ }
+
+ /**
+ * Initializes the extended editor configuration
+ *
+ * @generated
+ */
+ protected void initExtendedEditorConfiguration() {
+ if(configuration == null) {
+ final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("")) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else {
+ configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ }
+ }
+
+ /**
+ * Updates the preference configuration
+ *
+ * @generated
+ */
+ protected void updateExtendedEditorConfiguration() {
+ String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("") && languagePreferred != configuration.getLanguage()) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else if(IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
+ configuration = null;
+ }
+ }
+
+ /**
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
+ protected void performDefaultDirectEditorEdit(final Request theRequest) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void handleNotificationEvent(Notification event) {
+ Object feature = event.getFeature();
+ if(NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
+ Integer c = (Integer)event.getNewValue();
+ setFontColor(DiagramColorRegistry.getInstance().getColor(c));
+ } else if(NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
+ refreshUnderline();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
+ refreshStrikeThrough();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
+ refreshFont();
+ } else {
+ if(getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
+ refreshLabel();
+ }
+ if(getParser() instanceof ISemanticParser) {
+ ISemanticParser modelParser = (ISemanticParser)getParser();
+ if(modelParser.areSemanticElementsAffected(null, event)) {
+ removeSemanticListeners();
+ if(resolveSemanticElement() != null) {
+ addSemanticListeners();
+ }
+ refreshLabel();
+ }
+ }
+ }
+ super.handleNotificationEvent(event);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createFigure() {
+ IFigure label = createFigurePrim();
+ defaultText = getLabelTextHelper(label);
+ return label;
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createFigurePrim() {
+ return new WrappingLabel();
+ }
+
+ /**
+ * @generated
+ */
+ public String getLabelRole() {
+ return "Name";//$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ public String getIconPathRole() {
+ return "";//$NON-NLS-1$
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/PortAppliedStereotypeEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/PortAppliedStereotypeEditPart.java
new file mode 100644
index 00000000000..cb7c7a90e0f
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/PortAppliedStereotypeEditPart.java
@@ -0,0 +1,774 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.draw2d.geometry.Rectangle;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.emf.transaction.RunnableWithResult;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.AccessibleEditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.requests.DirectEditRequest;
+import org.eclipse.gef.tools.DirectEditManager;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IBorderItemEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.figures.IBorderItemLocator;
+import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
+import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
+import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
+import org.eclipse.gmf.runtime.notation.FontStyle;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
+import org.eclipse.jface.viewers.ICellEditorValidator;
+import org.eclipse.jface.window.Window;
+import org.eclipse.papyrus.diagram.common.directedit.MultilineLabelDirectEditManager;
+import org.eclipse.papyrus.diagram.common.editparts.AbstractLabelEditPart;
+import org.eclipse.papyrus.diagram.common.editparts.ILabelRoleProvider;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeExternalNodeEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition;
+import org.eclipse.papyrus.diagram.common.editpolicies.IMaskManagedLabelEditPolicy;
+import org.eclipse.papyrus.diagram.common.figure.node.AppliedStereotypeWrappingLabelFigure;
+import org.eclipse.papyrus.diagram.common.figure.node.ILabelFigure;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLTextSelectionEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.diagram.composite.providers.UMLParserProvider;
+import org.eclipse.papyrus.extensionpoints.editors.Activator;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
+import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
+import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.AccessibleEvent;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.FontData;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.ui.PlatformUI;
+
+/**
+ * @generated
+ */
+public class PortAppliedStereotypeEditPart
+
+extends AbstractLabelEditPart
+
+implements ITextAwareEditPart, IBorderItemEditPart
+
+, ILabelRoleProvider
+
+{
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 6029;
+
+ /**
+ * @generated
+ */
+ private DirectEditManager manager;
+
+ /**
+ * @generated
+ */
+ private IParser parser;
+
+ /**
+ * @generated
+ */
+ private List<?> parserElements;
+
+ /**
+ * @generated
+ */
+ private String defaultText;
+
+ /**
+ * direct edition mode (default, undefined, registered editor, etc.)
+ *
+ * @generated
+ */
+ protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
+
+ /**
+ * configuration from a registered edit dialog
+ *
+ * @generated
+ */
+ protected IDirectEditorConfiguration configuration;
+
+ /**
+ * @generated
+ */
+ static {
+ registerSnapBackPosition(UMLVisualIDRegistry.getType(org.eclipse.papyrus.diagram.composite.edit.parts.PortAppliedStereotypeEditPart.VISUAL_ID), new Point(0, 0));
+ }
+
+ /**
+ * @generated
+ */
+ public PortAppliedStereotypeEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
+ installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
+ installEditPolicy(AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeExternalNodeEditPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ public IBorderItemLocator getBorderItemLocator() {
+ IFigure parentFigure = getFigure().getParent();
+ if(parentFigure != null && parentFigure.getLayoutManager() != null) {
+ Object constraint = parentFigure.getLayoutManager().getConstraint(getFigure());
+ return (IBorderItemLocator)constraint;
+ }
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ public void refreshBounds() {
+ int x = ((Integer)getStructuralFeatureValue(NotationPackage.eINSTANCE.getLocation_X())).intValue();
+ int y = ((Integer)getStructuralFeatureValue(NotationPackage.eINSTANCE.getLocation_Y())).intValue();
+ int width = ((Integer)getStructuralFeatureValue(NotationPackage.eINSTANCE.getSize_Width())).intValue();
+ int height = ((Integer)getStructuralFeatureValue(NotationPackage.eINSTANCE.getSize_Height())).intValue();
+ getBorderItemLocator().setConstraint(new Rectangle(x, y, width, height));
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelTextHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getText();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getText();
+ } else {
+ return ((Label)figure).getText();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelTextHelper(IFigure figure, String text) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setText(text);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setText(text);
+ } else {
+ ((Label)figure).setText(text);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIconHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getIcon();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getIcon();
+ } else {
+ return ((Label)figure).getIcon();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelIconHelper(IFigure figure, Image icon) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setIcon(icon);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setIcon(icon);
+ } else {
+ ((Label)figure).setIcon(icon);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabel(IFigure figure) {
+ unregisterVisuals();
+ setFigure(figure);
+ defaultText = getLabelTextHelper(figure);
+ registerVisuals();
+ refreshVisuals();
+ }
+
+ /**
+ * @generated
+ */
+ protected List getModelChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject getParserElement() {
+ return resolveSemanticElement();
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIcon() {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelText() {
+ String text = null;
+ EObject parserElement = getParserElement();
+ if(parserElement != null && getParser() != null) {
+ text = getParser().getPrintString(new EObjectAdapter(parserElement), getParserOptions().intValue());
+ }
+ if(text == null || text.length() == 0) {
+ text = defaultText;
+ }
+ return text;
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabelText(String text) {
+ setLabelTextHelper(getFigure(), text);
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public String getEditText() {
+ if(getParserElement() == null || getParser() == null) {
+ return ""; //$NON-NLS-1$
+ }
+ return getParser().getEditString(new EObjectAdapter(getParserElement()), getParserOptions().intValue());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean isEditable() {
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ public ICellEditorValidator getEditTextValidator() {
+ return new ICellEditorValidator() {
+
+ public String isValid(final Object value) {
+ if(value instanceof String) {
+ final EObject element = getParserElement();
+ final IParser parser = getParser();
+ try {
+ IParserEditStatus valid = (IParserEditStatus)getEditingDomain().runExclusive(new RunnableWithResult.Impl() {
+
+ public void run() {
+ setResult(parser.isValidEditString(new EObjectAdapter(element), (String)value));
+ }
+ });
+ return valid.getCode() == ParserEditStatus.EDITABLE ? null : valid.getMessage();
+ } catch (InterruptedException ie) {
+ ie.printStackTrace();
+ }
+ }
+
+ // shouldn't get here
+ return null;
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ public IContentAssistProcessor getCompletionProcessor() {
+ if(getParserElement() == null || getParser() == null) {
+ return null;
+ }
+ return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
+ }
+
+ /**
+ * @generated
+ */
+ public ParserOptions getParserOptions() {
+ return ParserOptions.NONE;
+ }
+
+ /**
+ * @generated
+ */
+ public IParser getParser() {
+ if(parser == null) {
+ parser = UMLParserProvider.getParser(UMLElementTypes.Port_3069, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.diagram.composite.edit.parts.PortAppliedStereotypeEditPart.VISUAL_ID));
+ }
+ return parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected DirectEditManager getManager() {
+ if(manager == null) {
+ setManager(new MultilineLabelDirectEditManager(this, MultilineLabelDirectEditManager.getTextCellEditorClass(this), UMLEditPartFactory.getTextCellEditorLocator(this)));
+ }
+ return manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setManager(DirectEditManager manager) {
+ this.manager = manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit() {
+ getManager().show();
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit(Point eventLocation) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(eventLocation.getSWTPoint());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void performDirectEdit(char initialCharacter) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(initialCharacter);
+ } else {
+ performDirectEdit();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEditRequest(Request request) {
+
+ final Request theRequest = request;
+
+ if(IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
+ directEditionMode = getDirectEditionType();
+ }
+ switch(directEditionMode) {
+ case IDirectEdition.NO_DIRECT_EDITION:
+ // no direct edition mode => does nothing
+ return;
+ case IDirectEdition.EXTENDED_DIRECT_EDITOR:
+ updateExtendedEditorConfiguration();
+ if(configuration == null || configuration.getLanguage() == null) {
+ performDefaultDirectEditorEdit(theRequest);
+ } else {
+ configuration.preEditAction(resolveSemanticElement());
+ Dialog dialog = null;
+ if(configuration instanceof IPopupEditorConfiguration) {
+ IPopupEditorHelper helper = ((IPopupEditorConfiguration)configuration).createPopupEditorHelper(this);
+ helper.showEditor();
+ return;
+ } else if(configuration instanceof IAdvancedEditorConfiguration) {
+ dialog = ((IAdvancedEditorConfiguration)configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
+ } else if(configuration instanceof IDirectEditorConfiguration) {
+ dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), ((IDirectEditorConfiguration)configuration).getTextToEdit(resolveSemanticElement()), (IDirectEditorConfiguration)configuration);
+ } else {
+ return;
+ }
+ final Dialog finalDialog = dialog;
+
+ if(Window.OK == dialog.open()) {
+ TransactionalEditingDomain domain = getEditingDomain();
+ RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
+
+ @Override
+ protected void doExecute() {
+ configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog)finalDialog).getValue());
+
+ }
+ };
+ domain.getCommandStack().execute(command);
+ }
+ }
+ break;
+ case IDirectEdition.DEFAULT_DIRECT_EDITOR:
+
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ break;
+ default:
+ break;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshLabel();
+ refreshFont();
+ refreshFontColor();
+ refreshUnderline();
+ refreshStrikeThrough();
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshLabel() {
+ EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
+ if(maskLabelPolicy == null) {
+ setLabelTextHelper(getFigure(), getLabelText());
+ setLabelIconHelper(getFigure(), getLabelIcon());
+ }
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshUnderline() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextUnderline(style.isUnderline());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshStrikeThrough() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextStrikeThrough(style.isStrikeThrough());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshFont() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null) {
+ FontData fontData = new FontData(style.getFontName(), style.getFontHeight(), (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
+ setFont(fontData);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setFontColor(Color color) {
+ getFigure().setForegroundColor(color);
+ }
+
+ /**
+ * @generated
+ */
+ protected void addSemanticListeners() {
+ if(getParser() instanceof ISemanticParser) {
+ EObject element = resolveSemanticElement();
+ parserElements = ((ISemanticParser)getParser()).getSemanticElementsBeingParsed(element);
+ for(int i = 0; i < parserElements.size(); i++) {
+ addListenerFilter("SemanticModel" + i, this, (EObject)parserElements.get(i)); //$NON-NLS-1$
+ }
+ } else {
+ super.addSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeSemanticListeners() {
+ if(parserElements != null) {
+ for(int i = 0; i < parserElements.size(); i++) {
+ removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
+ }
+ } else {
+ super.removeSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected AccessibleEditPart getAccessibleEditPart() {
+ if(accessibleEP == null) {
+ accessibleEP = new AccessibleGraphicalEditPart() {
+
+ public void getName(AccessibleEvent e) {
+ e.result = getLabelTextHelper(getFigure());
+ }
+ };
+ }
+ return accessibleEP;
+ }
+
+ /**
+ * @generated
+ */
+ private View getFontStyleOwnerView() {
+ return getPrimaryView();
+ }
+
+ /**
+ * Returns the kind of associated editor for direct edition.
+ *
+ * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition
+ * @generated
+ */
+ public int getDirectEditionType() {
+ // The label is read-only (defined in GMFGen model)
+ return IDirectEdition.NO_DIRECT_EDITION;
+ }
+
+ /**
+ * Checks if an extended editor is present.
+ *
+ * @return <code>true</code> if an extended editor is present.
+ * @generated
+ */
+ protected boolean checkExtendedEditor() {
+ if(resolveSemanticElement() != null) {
+ return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ return false;
+ }
+
+ /**
+ * Checks if a default direct edition is available
+ *
+ * @return <code>true</code> if a default direct edition is available
+ * @generated
+ */
+ protected boolean checkDefaultEdition() {
+ return (getParser() != null);
+ }
+
+ /**
+ * Initializes the extended editor configuration
+ *
+ * @generated
+ */
+ protected void initExtendedEditorConfiguration() {
+ if(configuration == null) {
+ final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("")) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else {
+ configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ }
+ }
+
+ /**
+ * Updates the preference configuration
+ *
+ * @generated
+ */
+ protected void updateExtendedEditorConfiguration() {
+ String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("") && languagePreferred != configuration.getLanguage()) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else if(IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
+ configuration = null;
+ }
+ }
+
+ /**
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
+ protected void performDefaultDirectEditorEdit(final Request theRequest) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void handleNotificationEvent(Notification event) {
+ Object feature = event.getFeature();
+ if(NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
+ Integer c = (Integer)event.getNewValue();
+ setFontColor(DiagramColorRegistry.getInstance().getColor(c));
+ } else if(NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
+ refreshUnderline();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
+ refreshStrikeThrough();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
+ refreshFont();
+ } else {
+ if(getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
+ refreshLabel();
+ }
+ if(getParser() instanceof ISemanticParser) {
+ ISemanticParser modelParser = (ISemanticParser)getParser();
+ if(modelParser.areSemanticElementsAffected(null, event)) {
+ removeSemanticListeners();
+ if(resolveSemanticElement() != null) {
+ addSemanticListeners();
+ }
+ refreshLabel();
+ }
+ }
+ }
+ super.handleNotificationEvent(event);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createFigure() {
+ IFigure label = createFigurePrim();
+ defaultText = getLabelTextHelper(label);
+ return label;
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createFigurePrim() {
+ return new AppliedStereotypeWrappingLabelFigure();
+ }
+
+ /**
+ * @generated
+ */
+ public String getLabelRole() {
+ return "Stereotype";//$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ public String getIconPathRole() {
+ return "";//$NON-NLS-1$
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/PortEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/PortEditPart.java
new file mode 100644
index 00000000000..d9a604c5040
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/PortEditPart.java
@@ -0,0 +1,5110 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.ArrayList;
+import java.util.Collections;
+import java.util.LinkedList;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Shape;
+import org.eclipse.draw2d.StackLayout;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EStructuralFeature;
+import org.eclipse.gef.EditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.GraphicalEditPart;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.editpolicies.LayoutEditPolicy;
+import org.eclipse.gef.editpolicies.NonResizableEditPolicy;
+import org.eclipse.gef.handles.MoveHandle;
+import org.eclipse.gef.requests.CreateRequest;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IBorderItemEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.BorderItemSelectionEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.diagram.ui.figures.IBorderItemLocator;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.FigureUtilities;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.gef.ui.figures.DefaultSizeNodeFigure;
+import org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure;
+import org.eclipse.gmf.runtime.notation.Edge;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.jface.preference.PreferenceConverter;
+import org.eclipse.papyrus.diagram.common.editparts.AbstractBorderEditPart;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeIconlDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.HyperLinkPopupBarEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.ShowHideLabelEditPolicy;
+import org.eclipse.papyrus.diagram.common.helper.PreferenceInitializerForElementHelper;
+import org.eclipse.papyrus.diagram.common.locator.ExternalLabelPositionLocator;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.CustomDiagramDragDropEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.GraphicalNodeEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.PortLayoutEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.figures.PortFigure;
+import org.eclipse.papyrus.diagram.composite.edit.policies.PortItemSemanticEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorPlugin;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter;
+import org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper;
+import org.eclipse.swt.graphics.Color;
+
+/**
+ * @generated
+ */
+public class PortEditPart extends
+
+AbstractBorderEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 3069;
+
+ /**
+ * @generated
+ */
+ protected IFigure contentPane;
+
+ /**
+ * @generated
+ */
+ protected IFigure primaryShape;
+
+ /**
+ * @generated
+ */
+ public PortEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, getPrimaryDragEditPolicy());
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new PortItemSemanticEditPolicy());
+ installEditPolicy(EditPolicy.LAYOUT_ROLE, createLayoutEditPolicy());
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new org.eclipse.papyrus.diagram.composite.custom.edit.policies.PortItemSemanticEditPolicy());
+ installEditPolicy(EditPolicy.GRAPHICAL_NODE_ROLE, new GraphicalNodeEditPolicy());
+ installEditPolicy(EditPolicyRoles.POPUPBAR_ROLE, new HyperLinkPopupBarEditPolicy());
+ installEditPolicy(AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeIconlDisplayEditPolicy());
+ installEditPolicy(EditPolicy.LAYOUT_ROLE, new PortLayoutEditPolicy());
+ installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new CustomDiagramDragDropEditPolicy());
+ installEditPolicy(ShowHideLabelEditPolicy.SHOW_HIDE_LABEL_ROLE, new ShowHideLabelEditPolicy());
+ // XXX need an SCR to runtime to have another abstract superclass that would let children add reasonable editpolicies
+ // removeEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CONNECTION_HANDLES_ROLE);
+ }
+
+ /**
+ * Papyrus codeGen
+ *
+ * @generated
+ **/
+ protected void handleNotificationEvent(Notification event) {
+ /*
+ * when a node have external node labels, the methods refreshChildren() remove the EditPart corresponding to the Label from the EditPart
+ * Registry. After that, we can't reset the visibility to true (using the Show/Hide Label Action)!
+ */
+ if(NotationPackage.eINSTANCE.getView_Visible().equals(event.getFeature())) {
+ Object notifier = event.getNotifier();
+ List<?> modelChildren = ((View)getModel()).getChildren();
+ if(!(notifier instanceof Edge)) {
+ if(modelChildren.contains(event.getNotifier())) {
+ return;
+ }
+ }
+ }
+ super.handleNotificationEvent(event);
+
+ }
+
+ /**
+ * @generated
+ */
+ protected LayoutEditPolicy createLayoutEditPolicy() {
+ org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy lep = new org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy() {
+
+ protected EditPolicy createChildEditPolicy(EditPart child) {
+ View childView = (View)child.getModel();
+ switch(UMLVisualIDRegistry.getVisualID(childView)) {
+ case PortNameEditPart.VISUAL_ID:
+ case PortAppliedStereotypeEditPart.VISUAL_ID:
+ return new BorderItemSelectionEditPolicy() {
+
+ protected List createSelectionHandles() {
+ MoveHandle mh = new MoveHandle((GraphicalEditPart)getHost());
+ mh.setBorder(null);
+ return Collections.singletonList(mh);
+ }
+ };
+ }
+ EditPolicy result = child.getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(result == null) {
+ result = new NonResizableEditPolicy();
+ }
+ return result;
+ }
+
+ protected Command getMoveChildrenCommand(Request request) {
+ return null;
+ }
+
+ protected Command getCreateCommand(CreateRequest request) {
+ return null;
+ }
+ };
+ return lep;
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createNodeShape() {
+ return primaryShape = new PortFigure();
+ }
+
+ /**
+ * @generated
+ */
+ public PortFigure getPrimaryShape() {
+ return (PortFigure)primaryShape;
+ }
+
+ /**
+ * @generated
+ */
+ protected void addBorderItem(IFigure borderItemContainer, IBorderItemEditPart borderItemEditPart) {
+ if(borderItemEditPart instanceof PortNameEditPart) {
+ IBorderItemLocator locator = new ExternalLabelPositionLocator(getMainFigure());
+ borderItemContainer.add(borderItemEditPart.getFigure(), locator);
+ } else if(borderItemEditPart instanceof PortAppliedStereotypeEditPart) {
+ IBorderItemLocator locator = new ExternalLabelPositionLocator(getMainFigure());
+ borderItemContainer.add(borderItemEditPart.getFigure(), locator);
+ } else {
+ super.addBorderItem(borderItemContainer, borderItemEditPart);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected NodeFigure createNodePlate() {
+ String prefElementId = "Port";
+ IPreferenceStore store = UMLDiagramEditorPlugin.getInstance().getPreferenceStore();
+ String preferenceConstantWitdh = PreferenceInitializerForElementHelper.getpreferenceKey(getNotationView(), prefElementId, PreferenceConstantHelper.WIDTH);
+ String preferenceConstantHeight = PreferenceInitializerForElementHelper.getpreferenceKey(getNotationView(), prefElementId, PreferenceConstantHelper.HEIGHT);
+ DefaultSizeNodeFigure result = new DefaultSizeNodeFigure(store.getInt(preferenceConstantWitdh), store.getInt(preferenceConstantHeight));
+
+ //FIXME: workaround for #154536
+ result.getBounds().setSize(result.getPreferredSize());
+ return result;
+ }
+
+ /**
+ * Creates figure for this edit part.
+ *
+ * Body of this method does not depend on settings in generation model
+ * so you may safely remove <i>generated</i> tag and modify it.
+ *
+ * @generated
+ */
+ protected NodeFigure createMainFigure() {
+ NodeFigure figure = createNodePlate();
+ figure.setLayoutManager(new StackLayout());
+ IFigure shape = createNodeShape();
+ figure.add(shape);
+ contentPane = setupContentPane(shape);
+ return figure;
+ }
+
+ /**
+ * Default implementation treats passed figure as content pane.
+ * Respects layout one may have set for generated figure.
+ *
+ * @param nodeShape
+ * instance of generated figure class
+ * @generated
+ */
+ protected IFigure setupContentPane(IFigure nodeShape) {
+ return nodeShape; // use nodeShape itself as contentPane
+ }
+
+ /**
+ * @generated
+ */
+ public IFigure getContentPane() {
+ if(contentPane != null) {
+ return contentPane;
+ }
+ return super.getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ protected void setForegroundColor(Color color) {
+ if(primaryShape != null) {
+ primaryShape.setForegroundColor(color);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLineWidth(int width) {
+ if(primaryShape instanceof Shape) {
+ ((Shape)primaryShape).setLineWidth(width);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLineType(int style) {
+ if(primaryShape instanceof Shape) {
+ ((Shape)primaryShape).setLineStyle(style);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public EditPart getPrimaryChildEditPart() {
+ return getChildBySemanticHint(UMLVisualIDRegistry.getType(PortNameEditPart.VISUAL_ID));
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnSource() {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(11);
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ types.add(UMLElementTypes.Substitution_4011);
+ types.add(UMLElementTypes.Realization_4006);
+ types.add(UMLElementTypes.Manifestation_4012);
+ types.add(UMLElementTypes.Abstraction_4007);
+ types.add(UMLElementTypes.Usage_4008);
+ types.add(UMLElementTypes.Deployment_4009);
+ types.add(UMLElementTypes.Dependency_4017);
+ types.add(UMLElementTypes.Dependency_4010);
+ types.add(UMLElementTypes.InformationFlow_4021);
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnSourceAndTarget(IGraphicalEditPart targetEditPart) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.PortEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.PortEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.PortEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.PortEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.PortEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.PortEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.PortEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.PortEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.PortEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.PortEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.PortEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMATypesForTarget(IElementType relationshipType) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(relationshipType == UMLElementTypes.ComponentRealization_4004) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InterfaceRealization_4005) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Substitution_4011) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Realization_4006) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Manifestation_4012) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Abstraction_4007) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Usage_4008) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Deployment_4009) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4017) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4010) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InformationFlow_4021) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnTarget() {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(15);
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ types.add(UMLElementTypes.Substitution_4011);
+ types.add(UMLElementTypes.Realization_4006);
+ types.add(UMLElementTypes.Manifestation_4012);
+ types.add(UMLElementTypes.Abstraction_4007);
+ types.add(UMLElementTypes.Usage_4008);
+ types.add(UMLElementTypes.Deployment_4009);
+ types.add(UMLElementTypes.Dependency_4017);
+ types.add(UMLElementTypes.Dependency_4010);
+ types.add(UMLElementTypes.TimeObservationEvent_4018);
+ types.add(UMLElementTypes.DurationObservationEvent_4019);
+ types.add(UMLElementTypes.InformationFlow_4021);
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMATypesForSource(IElementType relationshipType) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(relationshipType == UMLElementTypes.CommentAnnotatedElement_4002) {
+ types.add(UMLElementTypes.Comment_2109);
+ types.add(UMLElementTypes.Comment_3097);
+ } else if(relationshipType == UMLElementTypes.ConstraintConstrainedElement_4003) {
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.ComponentRealization_4004) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InterfaceRealization_4005) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Substitution_4011) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Realization_4006) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Manifestation_4012) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Abstraction_4007) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Usage_4008) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Deployment_4009) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4017) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4010) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.TimeObservationEvent_4018) {
+ types.add(UMLElementTypes.TimeObservation_2094);
+ } else if(relationshipType == UMLElementTypes.DurationObservationEvent_4019) {
+ types.add(UMLElementTypes.DurationObservation_2093);
+ } else if(relationshipType == UMLElementTypes.InformationFlow_4021) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public Object getPreferredValue(EStructuralFeature feature) {
+ IPreferenceStore preferenceStore = (IPreferenceStore)getDiagramPreferencesHint().getPreferenceStore();
+ Object result = null;
+
+ if(feature == NotationPackage.eINSTANCE.getLineStyle_LineColor() || feature == NotationPackage.eINSTANCE.getFontStyle_FontColor() || feature == NotationPackage.eINSTANCE.getFillStyle_FillColor()) {
+ String prefColor = null;
+ if(feature == NotationPackage.eINSTANCE.getLineStyle_LineColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("Port", PreferenceConstantHelper.COLOR_LINE);
+ } else if(feature == NotationPackage.eINSTANCE.getFontStyle_FontColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("Port", PreferenceConstantHelper.COLOR_FONT);
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_FillColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("Port", PreferenceConstantHelper.COLOR_FILL);
+ }
+ result = FigureUtilities.RGBToInteger(PreferenceConverter.getColor((IPreferenceStore)preferenceStore, prefColor));
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_Transparency() || feature == NotationPackage.eINSTANCE.getFillStyle_Gradient()) {
+ String prefGradient = PreferenceConstantHelper.getElementConstant("Port", PreferenceConstantHelper.COLOR_GRADIENT);
+ GradientPreferenceConverter gradientPreferenceConverter = new GradientPreferenceConverter(preferenceStore.getString(prefGradient));
+ if(feature == NotationPackage.eINSTANCE.getFillStyle_Transparency()) {
+ result = new Integer(gradientPreferenceConverter.getTransparency());
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_Gradient()) {
+ result = gradientPreferenceConverter.getGradientData();
+ }
+ }
+
+ if(result == null) {
+ result = getStructuralFeatureValue(feature);
+ }
+ return result;
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/PortNameEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/PortNameEditPart.java
new file mode 100644
index 00000000000..19ff5a83af1
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/PortNameEditPart.java
@@ -0,0 +1,794 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.draw2d.geometry.Rectangle;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.emf.transaction.RunnableWithResult;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.AccessibleEditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.requests.DirectEditRequest;
+import org.eclipse.gef.tools.DirectEditManager;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IBorderItemEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.LabelEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.figures.IBorderItemLocator;
+import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
+import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
+import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
+import org.eclipse.gmf.runtime.notation.FontStyle;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
+import org.eclipse.jface.viewers.ICellEditorValidator;
+import org.eclipse.jface.window.Window;
+import org.eclipse.papyrus.diagram.common.directedit.MultilineLabelDirectEditManager;
+import org.eclipse.papyrus.diagram.common.editparts.ILabelRoleProvider;
+import org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition;
+import org.eclipse.papyrus.diagram.common.editpolicies.IMaskManagedLabelEditPolicy;
+import org.eclipse.papyrus.diagram.common.figure.node.ILabelFigure;
+import org.eclipse.papyrus.diagram.common.util.DiagramEditPartsUtil;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.PropertyLabelEditPolicy;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLTextSelectionEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.diagram.composite.providers.UMLParserProvider;
+import org.eclipse.papyrus.extensionpoints.editors.Activator;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
+import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
+import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
+import org.eclipse.papyrus.umlutils.ui.helper.NameLabelIconHelper;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.AccessibleEvent;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.FontData;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.ui.PlatformUI;
+
+/**
+ * @generated
+ */
+public class PortNameEditPart
+
+extends LabelEditPart
+
+implements ITextAwareEditPart, IBorderItemEditPart
+
+, ILabelRoleProvider
+
+{
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 5125;
+
+ /**
+ * @generated
+ */
+ private DirectEditManager manager;
+
+ /**
+ * @generated
+ */
+ private IParser parser;
+
+ /**
+ * @generated
+ */
+ private List<?> parserElements;
+
+ /**
+ * @generated
+ */
+ private String defaultText;
+
+ /**
+ * direct edition mode (default, undefined, registered editor, etc.)
+ *
+ * @generated
+ */
+ protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
+
+ /**
+ * configuration from a registered edit dialog
+ *
+ * @generated
+ */
+ protected IDirectEditorConfiguration configuration;
+
+ /**
+ * @generated
+ */
+ static {
+ registerSnapBackPosition(UMLVisualIDRegistry.getType(org.eclipse.papyrus.diagram.composite.edit.parts.PortNameEditPart.VISUAL_ID), new Point(0, 0));
+ }
+
+ /**
+ * @generated
+ */
+ public PortNameEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
+ installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
+ installEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY, new PropertyLabelEditPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ public IBorderItemLocator getBorderItemLocator() {
+ IFigure parentFigure = getFigure().getParent();
+ if(parentFigure != null && parentFigure.getLayoutManager() != null) {
+ Object constraint = parentFigure.getLayoutManager().getConstraint(getFigure());
+ return (IBorderItemLocator)constraint;
+ }
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ public void refreshBounds() {
+ int x = ((Integer)getStructuralFeatureValue(NotationPackage.eINSTANCE.getLocation_X())).intValue();
+ int y = ((Integer)getStructuralFeatureValue(NotationPackage.eINSTANCE.getLocation_Y())).intValue();
+ int width = ((Integer)getStructuralFeatureValue(NotationPackage.eINSTANCE.getSize_Width())).intValue();
+ int height = ((Integer)getStructuralFeatureValue(NotationPackage.eINSTANCE.getSize_Height())).intValue();
+ getBorderItemLocator().setConstraint(new Rectangle(x, y, width, height));
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelTextHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getText();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getText();
+ } else {
+ return ((Label)figure).getText();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelTextHelper(IFigure figure, String text) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setText(text);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setText(text);
+ } else {
+ ((Label)figure).setText(text);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIconHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getIcon();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getIcon();
+ } else {
+ return ((Label)figure).getIcon();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelIconHelper(IFigure figure, Image icon) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setIcon(icon);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setIcon(icon);
+ } else {
+ ((Label)figure).setIcon(icon);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabel(IFigure figure) {
+ unregisterVisuals();
+ setFigure(figure);
+ defaultText = getLabelTextHelper(figure);
+ registerVisuals();
+ refreshVisuals();
+ }
+
+ /**
+ * @generated
+ */
+ protected List getModelChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject getParserElement() {
+ return resolveSemanticElement();
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIcon() {
+ EObject parserElement = getParserElement();
+ if(parserElement == null) {
+ return null;
+ }
+
+ List<View> views = DiagramEditPartsUtil.findViews(parserElement, getViewer());
+ for(View view : views) {
+ if(NameLabelIconHelper.showLabelIcon(view)) {
+ return UMLElementTypes.getImage(parserElement.eClass());
+ }
+ }
+ return null;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelText() {
+ String text = null;
+ EObject parserElement = getParserElement();
+ if(parserElement != null && getParser() != null) {
+ text = getParser().getPrintString(new EObjectAdapter(parserElement), getParserOptions().intValue());
+ }
+ if(text == null || text.length() == 0) {
+ text = defaultText;
+ }
+ return text;
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabelText(String text) {
+ setLabelTextHelper(getFigure(), text);
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public String getEditText() {
+ if(getParserElement() == null || getParser() == null) {
+ return ""; //$NON-NLS-1$
+ }
+ return getParser().getEditString(new EObjectAdapter(getParserElement()), getParserOptions().intValue());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean isEditable() {
+ return getParser() != null;
+ }
+
+ /**
+ * @generated
+ */
+ public ICellEditorValidator getEditTextValidator() {
+ return new ICellEditorValidator() {
+
+ public String isValid(final Object value) {
+ if(value instanceof String) {
+ final EObject element = getParserElement();
+ final IParser parser = getParser();
+ try {
+ IParserEditStatus valid = (IParserEditStatus)getEditingDomain().runExclusive(new RunnableWithResult.Impl() {
+
+ public void run() {
+ setResult(parser.isValidEditString(new EObjectAdapter(element), (String)value));
+ }
+ });
+ return valid.getCode() == ParserEditStatus.EDITABLE ? null : valid.getMessage();
+ } catch (InterruptedException ie) {
+ ie.printStackTrace();
+ }
+ }
+
+ // shouldn't get here
+ return null;
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ public IContentAssistProcessor getCompletionProcessor() {
+ if(getParserElement() == null || getParser() == null) {
+ return null;
+ }
+ return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
+ }
+
+ /**
+ * @generated
+ */
+ public ParserOptions getParserOptions() {
+ return ParserOptions.NONE;
+ }
+
+ /**
+ * @generated
+ */
+ public IParser getParser() {
+ if(parser == null) {
+ parser = UMLParserProvider.getParser(UMLElementTypes.Port_3069, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.diagram.composite.edit.parts.PortNameEditPart.VISUAL_ID));
+ }
+ return parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected DirectEditManager getManager() {
+ if(manager == null) {
+ setManager(new MultilineLabelDirectEditManager(this, MultilineLabelDirectEditManager.getTextCellEditorClass(this), UMLEditPartFactory.getTextCellEditorLocator(this)));
+ }
+ return manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setManager(DirectEditManager manager) {
+ this.manager = manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit() {
+ getManager().show();
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit(Point eventLocation) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(eventLocation.getSWTPoint());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void performDirectEdit(char initialCharacter) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(initialCharacter);
+ } else {
+ performDirectEdit();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEditRequest(Request request) {
+
+ final Request theRequest = request;
+
+ if(IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
+ directEditionMode = getDirectEditionType();
+ }
+ switch(directEditionMode) {
+ case IDirectEdition.NO_DIRECT_EDITION:
+ // no direct edition mode => does nothing
+ return;
+ case IDirectEdition.EXTENDED_DIRECT_EDITOR:
+ updateExtendedEditorConfiguration();
+ if(configuration == null || configuration.getLanguage() == null) {
+ performDefaultDirectEditorEdit(theRequest);
+ } else {
+ configuration.preEditAction(resolveSemanticElement());
+ Dialog dialog = null;
+ if(configuration instanceof IPopupEditorConfiguration) {
+ IPopupEditorHelper helper = ((IPopupEditorConfiguration)configuration).createPopupEditorHelper(this);
+ helper.showEditor();
+ return;
+ } else if(configuration instanceof IAdvancedEditorConfiguration) {
+ dialog = ((IAdvancedEditorConfiguration)configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
+ } else if(configuration instanceof IDirectEditorConfiguration) {
+ dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), ((IDirectEditorConfiguration)configuration).getTextToEdit(resolveSemanticElement()), (IDirectEditorConfiguration)configuration);
+ } else {
+ return;
+ }
+ final Dialog finalDialog = dialog;
+
+ if(Window.OK == dialog.open()) {
+ TransactionalEditingDomain domain = getEditingDomain();
+ RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
+
+ @Override
+ protected void doExecute() {
+ configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog)finalDialog).getValue());
+
+ }
+ };
+ domain.getCommandStack().execute(command);
+ }
+ }
+ break;
+ case IDirectEdition.DEFAULT_DIRECT_EDITOR:
+
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ break;
+ default:
+ break;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshLabel();
+ refreshFont();
+ refreshFontColor();
+ refreshUnderline();
+ refreshStrikeThrough();
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshLabel() {
+ EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
+ if(maskLabelPolicy == null) {
+ setLabelTextHelper(getFigure(), getLabelText());
+ setLabelIconHelper(getFigure(), getLabelIcon());
+ }
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshUnderline() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextUnderline(style.isUnderline());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshStrikeThrough() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextStrikeThrough(style.isStrikeThrough());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshFont() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null) {
+ FontData fontData = new FontData(style.getFontName(), style.getFontHeight(), (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
+ setFont(fontData);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setFontColor(Color color) {
+ getFigure().setForegroundColor(color);
+ }
+
+ /**
+ * @generated
+ */
+ protected void addSemanticListeners() {
+ if(getParser() instanceof ISemanticParser) {
+ EObject element = resolveSemanticElement();
+ parserElements = ((ISemanticParser)getParser()).getSemanticElementsBeingParsed(element);
+ for(int i = 0; i < parserElements.size(); i++) {
+ addListenerFilter("SemanticModel" + i, this, (EObject)parserElements.get(i)); //$NON-NLS-1$
+ }
+ } else {
+ super.addSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeSemanticListeners() {
+ if(parserElements != null) {
+ for(int i = 0; i < parserElements.size(); i++) {
+ removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
+ }
+ } else {
+ super.removeSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected AccessibleEditPart getAccessibleEditPart() {
+ if(accessibleEP == null) {
+ accessibleEP = new AccessibleGraphicalEditPart() {
+
+ public void getName(AccessibleEvent e) {
+ e.result = getLabelTextHelper(getFigure());
+ }
+ };
+ }
+ return accessibleEP;
+ }
+
+ /**
+ * @generated
+ */
+ private View getFontStyleOwnerView() {
+ return getPrimaryView();
+ }
+
+ /**
+ * Returns the kind of associated editor for direct edition.
+ *
+ * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition
+ * @generated
+ */
+ public int getDirectEditionType() {
+ if(checkExtendedEditor()) {
+ initExtendedEditorConfiguration();
+ return IDirectEdition.EXTENDED_DIRECT_EDITOR;
+ }
+ if(checkDefaultEdition()) {
+ return IDirectEdition.DEFAULT_DIRECT_EDITOR;
+ }
+
+ // not a named element. no specific editor => do nothing
+ return IDirectEdition.NO_DIRECT_EDITION;
+ }
+
+ /**
+ * Checks if an extended editor is present.
+ *
+ * @return <code>true</code> if an extended editor is present.
+ * @generated
+ */
+ protected boolean checkExtendedEditor() {
+ if(resolveSemanticElement() != null) {
+ return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ return false;
+ }
+
+ /**
+ * Checks if a default direct edition is available
+ *
+ * @return <code>true</code> if a default direct edition is available
+ * @generated
+ */
+ protected boolean checkDefaultEdition() {
+ return (getParser() != null);
+ }
+
+ /**
+ * Initializes the extended editor configuration
+ *
+ * @generated
+ */
+ protected void initExtendedEditorConfiguration() {
+ if(configuration == null) {
+ final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("")) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else {
+ configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ }
+ }
+
+ /**
+ * Updates the preference configuration
+ *
+ * @generated
+ */
+ protected void updateExtendedEditorConfiguration() {
+ String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("") && languagePreferred != configuration.getLanguage()) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else if(IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
+ configuration = null;
+ }
+ }
+
+ /**
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
+ protected void performDefaultDirectEditorEdit(final Request theRequest) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void handleNotificationEvent(Notification event) {
+ Object feature = event.getFeature();
+ if(NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
+ Integer c = (Integer)event.getNewValue();
+ setFontColor(DiagramColorRegistry.getInstance().getColor(c));
+ } else if(NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
+ refreshUnderline();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
+ refreshStrikeThrough();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
+ refreshFont();
+ } else {
+ if(getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
+ refreshLabel();
+ }
+ if(getParser() instanceof ISemanticParser) {
+ ISemanticParser modelParser = (ISemanticParser)getParser();
+ if(modelParser.areSemanticElementsAffected(null, event)) {
+ removeSemanticListeners();
+ if(resolveSemanticElement() != null) {
+ addSemanticListeners();
+ }
+ refreshLabel();
+ }
+ }
+ }
+ super.handleNotificationEvent(event);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createFigure() {
+ IFigure label = createFigurePrim();
+ defaultText = getLabelTextHelper(label);
+ return label;
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createFigurePrim() {
+ return new WrappingLabel();
+ }
+
+ /**
+ * @generated
+ */
+ public String getLabelRole() {
+ return "Name";//$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ public String getIconPathRole() {
+ return "";//$NON-NLS-1$
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/PrimitiveTypeEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/PrimitiveTypeEditPart.java
new file mode 100644
index 00000000000..237d02a576f
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/PrimitiveTypeEditPart.java
@@ -0,0 +1,5338 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.ArrayList;
+import java.util.LinkedList;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Shape;
+import org.eclipse.draw2d.StackLayout;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EStructuralFeature;
+import org.eclipse.gef.EditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.editpolicies.LayoutEditPolicy;
+import org.eclipse.gef.editpolicies.NonResizableEditPolicy;
+import org.eclipse.gef.requests.CreateRequest;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.FigureUtilities;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.gef.ui.figures.DefaultSizeNodeFigure;
+import org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.jface.preference.PreferenceConverter;
+import org.eclipse.papyrus.diagram.common.editparts.NamedElementEditPart;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.HyperLinkPopupBarEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.QualifiedNameDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.ShowHideClassifierContentsEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.ShowHideCompartmentEditPolicy;
+import org.eclipse.papyrus.diagram.common.figure.node.PrimitiveTypeFigure;
+import org.eclipse.papyrus.diagram.common.helper.PreferenceInitializerForElementHelper;
+import org.eclipse.papyrus.diagram.composite.edit.policies.PrimitiveTypeItemSemanticEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorPlugin;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter;
+import org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper;
+import org.eclipse.swt.graphics.Color;
+
+/**
+ * @generated
+ */
+public class PrimitiveTypeEditPart extends
+
+NamedElementEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 2066;
+
+ /**
+ * @generated
+ */
+ protected IFigure contentPane;
+
+ /**
+ * @generated
+ */
+ protected IFigure primaryShape;
+
+ /**
+ * @generated
+ */
+ public PrimitiveTypeEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new PrimitiveTypeItemSemanticEditPolicy());
+ installEditPolicy(EditPolicy.LAYOUT_ROLE, createLayoutEditPolicy());
+ installEditPolicy(QualifiedNameDisplayEditPolicy.QUALIFIED_NAME_POLICY, new QualifiedNameDisplayEditPolicy());
+ installEditPolicy(AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeNodeLabelDisplayEditPolicy());
+ installEditPolicy(EditPolicyRoles.POPUPBAR_ROLE, new HyperLinkPopupBarEditPolicy());
+ installEditPolicy(ShowHideClassifierContentsEditPolicy.SHOW_HIDE_CLASSIFIER_CONTENTS_POLICY, new ShowHideClassifierContentsEditPolicy());
+ installEditPolicy(ShowHideCompartmentEditPolicy.SHOW_HIDE_COMPARTMENT_POLICY, new ShowHideCompartmentEditPolicy());
+ // XXX need an SCR to runtime to have another abstract superclass that would let children add reasonable editpolicies
+ // removeEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CONNECTION_HANDLES_ROLE);
+ }
+
+ /**
+ * Papyrus codeGen
+ *
+ * @generated
+ **/
+ protected void handleNotificationEvent(Notification event) {
+ super.handleNotificationEvent(event);
+
+ }
+
+ /**
+ * @generated
+ */
+ protected LayoutEditPolicy createLayoutEditPolicy() {
+ org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy lep = new org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy() {
+
+ protected EditPolicy createChildEditPolicy(EditPart child) {
+ EditPolicy result = child.getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(result == null) {
+ result = new NonResizableEditPolicy();
+ }
+ return result;
+ }
+
+ protected Command getMoveChildrenCommand(Request request) {
+ return null;
+ }
+
+ protected Command getCreateCommand(CreateRequest request) {
+ return null;
+ }
+ };
+ return lep;
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createNodeShape() {
+ return primaryShape = new PrimitiveTypeFigure();
+ }
+
+ /**
+ * @generated
+ */
+ public PrimitiveTypeFigure getPrimaryShape() {
+ return (PrimitiveTypeFigure)primaryShape;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean addFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof PrimitiveTypeNameEditPart) {
+ ((PrimitiveTypeNameEditPart)childEditPart).setLabel(getPrimaryShape().getNameLabel());
+ return true;
+ }
+
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean removeFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof PrimitiveTypeNameEditPart) {
+ return true;
+ }
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected void addChildVisual(EditPart childEditPart, int index) {
+ if(addFixedChild(childEditPart)) {
+ return;
+ }
+ super.addChildVisual(childEditPart, -1);
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeChildVisual(EditPart childEditPart) {
+ if(removeFixedChild(childEditPart)) {
+ return;
+ }
+ super.removeChildVisual(childEditPart);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure getContentPaneFor(IGraphicalEditPart editPart) {
+ return getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ protected NodeFigure createNodePlate() {
+ String prefElementId = "PrimitiveType";
+ IPreferenceStore store = UMLDiagramEditorPlugin.getInstance().getPreferenceStore();
+ String preferenceConstantWitdh = PreferenceInitializerForElementHelper.getpreferenceKey(getNotationView(), prefElementId, PreferenceConstantHelper.WIDTH);
+ String preferenceConstantHeight = PreferenceInitializerForElementHelper.getpreferenceKey(getNotationView(), prefElementId, PreferenceConstantHelper.HEIGHT);
+ DefaultSizeNodeFigure result = new DefaultSizeNodeFigure(store.getInt(preferenceConstantWitdh), store.getInt(preferenceConstantHeight));
+
+ return result;
+ }
+
+ /**
+ * Creates figure for this edit part.
+ *
+ * Body of this method does not depend on settings in generation model
+ * so you may safely remove <i>generated</i> tag and modify it.
+ *
+ * @generated
+ */
+ protected NodeFigure createNodeFigure() {
+ NodeFigure figure = createNodePlate();
+ figure.setLayoutManager(new StackLayout());
+ IFigure shape = createNodeShape();
+ figure.add(shape);
+ contentPane = setupContentPane(shape);
+ return figure;
+ }
+
+ /**
+ * Default implementation treats passed figure as content pane.
+ * Respects layout one may have set for generated figure.
+ *
+ * @param nodeShape
+ * instance of generated figure class
+ * @generated
+ */
+ protected IFigure setupContentPane(IFigure nodeShape) {
+ if(nodeShape.getLayoutManager() == null) {
+ ConstrainedToolbarLayout layout = new ConstrainedToolbarLayout();
+ layout.setSpacing(5);
+ nodeShape.setLayoutManager(layout);
+ }
+ return nodeShape; // use nodeShape itself as contentPane
+ }
+
+ /**
+ * @generated
+ */
+ public IFigure getContentPane() {
+ if(contentPane != null) {
+ return contentPane;
+ }
+ return super.getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ protected void setForegroundColor(Color color) {
+ if(primaryShape != null) {
+ primaryShape.setForegroundColor(color);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLineWidth(int width) {
+ if(primaryShape instanceof Shape) {
+ ((Shape)primaryShape).setLineWidth(width);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLineType(int style) {
+ if(primaryShape instanceof Shape) {
+ ((Shape)primaryShape).setLineStyle(style);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public EditPart getPrimaryChildEditPart() {
+ return getChildBySemanticHint(UMLVisualIDRegistry.getType(PrimitiveTypeNameEditPart.VISUAL_ID));
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnSource() {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(12);
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ types.add(UMLElementTypes.Substitution_4011);
+ types.add(UMLElementTypes.Realization_4006);
+ types.add(UMLElementTypes.Manifestation_4012);
+ types.add(UMLElementTypes.Abstraction_4007);
+ types.add(UMLElementTypes.Usage_4008);
+ types.add(UMLElementTypes.Deployment_4009);
+ types.add(UMLElementTypes.Dependency_4017);
+ types.add(UMLElementTypes.Dependency_4010);
+ types.add(UMLElementTypes.Generalization_4015);
+ types.add(UMLElementTypes.InformationFlow_4021);
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnSourceAndTarget(IGraphicalEditPart targetEditPart) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMATypesForTarget(IElementType relationshipType) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(relationshipType == UMLElementTypes.ComponentRealization_4004) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InterfaceRealization_4005) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Substitution_4011) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Realization_4006) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Manifestation_4012) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Abstraction_4007) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Usage_4008) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Deployment_4009) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4017) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4010) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Generalization_4015) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ } else if(relationshipType == UMLElementTypes.InformationFlow_4021) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnTarget() {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(17);
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ types.add(UMLElementTypes.Substitution_4011);
+ types.add(UMLElementTypes.Realization_4006);
+ types.add(UMLElementTypes.Manifestation_4012);
+ types.add(UMLElementTypes.Abstraction_4007);
+ types.add(UMLElementTypes.Usage_4008);
+ types.add(UMLElementTypes.Deployment_4009);
+ types.add(UMLElementTypes.Dependency_4017);
+ types.add(UMLElementTypes.Dependency_4010);
+ types.add(UMLElementTypes.Generalization_4015);
+ types.add(UMLElementTypes.TimeObservationEvent_4018);
+ types.add(UMLElementTypes.DurationObservationEvent_4019);
+ types.add(UMLElementTypes.InformationItemRepresented_4020);
+ types.add(UMLElementTypes.InformationFlow_4021);
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMATypesForSource(IElementType relationshipType) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(relationshipType == UMLElementTypes.CommentAnnotatedElement_4002) {
+ types.add(UMLElementTypes.Comment_2109);
+ types.add(UMLElementTypes.Comment_3097);
+ } else if(relationshipType == UMLElementTypes.ConstraintConstrainedElement_4003) {
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.ComponentRealization_4004) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InterfaceRealization_4005) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Substitution_4011) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Realization_4006) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Manifestation_4012) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Abstraction_4007) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Usage_4008) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Deployment_4009) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4017) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4010) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Generalization_4015) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ } else if(relationshipType == UMLElementTypes.TimeObservationEvent_4018) {
+ types.add(UMLElementTypes.TimeObservation_2094);
+ } else if(relationshipType == UMLElementTypes.DurationObservationEvent_4019) {
+ types.add(UMLElementTypes.DurationObservation_2093);
+ } else if(relationshipType == UMLElementTypes.InformationItemRepresented_4020) {
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.InformationItem_3094);
+ } else if(relationshipType == UMLElementTypes.InformationFlow_4021) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public Object getPreferredValue(EStructuralFeature feature) {
+ IPreferenceStore preferenceStore = (IPreferenceStore)getDiagramPreferencesHint().getPreferenceStore();
+ Object result = null;
+
+ if(feature == NotationPackage.eINSTANCE.getLineStyle_LineColor() || feature == NotationPackage.eINSTANCE.getFontStyle_FontColor() || feature == NotationPackage.eINSTANCE.getFillStyle_FillColor()) {
+ String prefColor = null;
+ if(feature == NotationPackage.eINSTANCE.getLineStyle_LineColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("PrimitiveType", PreferenceConstantHelper.COLOR_LINE);
+ } else if(feature == NotationPackage.eINSTANCE.getFontStyle_FontColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("PrimitiveType", PreferenceConstantHelper.COLOR_FONT);
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_FillColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("PrimitiveType", PreferenceConstantHelper.COLOR_FILL);
+ }
+ result = FigureUtilities.RGBToInteger(PreferenceConverter.getColor((IPreferenceStore)preferenceStore, prefColor));
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_Transparency() || feature == NotationPackage.eINSTANCE.getFillStyle_Gradient()) {
+ String prefGradient = PreferenceConstantHelper.getElementConstant("PrimitiveType", PreferenceConstantHelper.COLOR_GRADIENT);
+ GradientPreferenceConverter gradientPreferenceConverter = new GradientPreferenceConverter(preferenceStore.getString(prefGradient));
+ if(feature == NotationPackage.eINSTANCE.getFillStyle_Transparency()) {
+ result = new Integer(gradientPreferenceConverter.getTransparency());
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_Gradient()) {
+ result = gradientPreferenceConverter.getGradientData();
+ }
+ }
+
+ if(result == null) {
+ result = getStructuralFeatureValue(feature);
+ }
+ return result;
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/PrimitiveTypeEditPartCLN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/PrimitiveTypeEditPartCLN.java
new file mode 100644
index 00000000000..01bb87e232a
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/PrimitiveTypeEditPartCLN.java
@@ -0,0 +1,781 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EAnnotation;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.emf.transaction.RunnableWithResult;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.AccessibleEditPart;
+import org.eclipse.gef.DragTracker;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.requests.DirectEditRequest;
+import org.eclipse.gef.requests.SelectionRequest;
+import org.eclipse.gef.tools.DirectEditManager;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.CompartmentEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IPrimaryEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.ListItemComponentEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
+import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
+import org.eclipse.gmf.runtime.diagram.ui.tools.DragEditPartsTrackerEx;
+import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
+import org.eclipse.gmf.runtime.notation.FontStyle;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
+import org.eclipse.jface.viewers.ICellEditorValidator;
+import org.eclipse.jface.window.Window;
+import org.eclipse.papyrus.diagram.common.directedit.MultilineLabelDirectEditManager;
+import org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition;
+import org.eclipse.papyrus.diagram.common.editpolicies.IMaskManagedLabelEditPolicy;
+import org.eclipse.papyrus.diagram.common.figure.node.ILabelFigure;
+import org.eclipse.papyrus.diagram.common.util.DiagramEditPartsUtil;
+import org.eclipse.papyrus.diagram.composite.edit.policies.PrimitiveTypeItemSemanticEditPolicyCLN;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLTextNonResizableEditPolicy;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLTextSelectionEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.diagram.composite.providers.UMLParserProvider;
+import org.eclipse.papyrus.extensionpoints.editors.Activator;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
+import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
+import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
+import org.eclipse.papyrus.umlutils.ui.VisualInformationPapyrusConstant;
+import org.eclipse.papyrus.umlutils.ui.helper.NameLabelIconHelper;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.AccessibleEvent;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.FontData;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.ui.PlatformUI;
+
+/**
+ * @generated
+ */
+public class PrimitiveTypeEditPartCLN
+
+extends CompartmentEditPart
+
+implements ITextAwareEditPart, IPrimaryEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 3112;
+
+ /**
+ * @generated
+ */
+ private DirectEditManager manager;
+
+ /**
+ * @generated
+ */
+ private IParser parser;
+
+ /**
+ * @generated
+ */
+ private List<?> parserElements;
+
+ /**
+ * @generated
+ */
+ private String defaultText;
+
+ /**
+ * direct edition mode (default, undefined, registered editor, etc.)
+ *
+ * @generated
+ */
+ protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
+
+ /**
+ * configuration from a registered edit dialog
+ *
+ * @generated
+ */
+ protected IDirectEditorConfiguration configuration;
+
+ /**
+ * @generated
+ */
+ public PrimitiveTypeEditPartCLN(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ public DragTracker getDragTracker(Request request) {
+ if(request instanceof SelectionRequest && ((SelectionRequest)request).getLastButtonPressed() == 3) {
+ return null;
+ }
+ return new DragEditPartsTrackerEx(this);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new PrimitiveTypeItemSemanticEditPolicyCLN());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new UMLTextNonResizableEditPolicy());
+ installEditPolicy(EditPolicy.COMPONENT_ROLE, new ListItemComponentEditPolicy());
+ installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelTextHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getText();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getText();
+ } else {
+ return ((Label)figure).getText();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelTextHelper(IFigure figure, String text) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setText(text);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setText(text);
+ } else {
+ ((Label)figure).setText(text);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIconHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getIcon();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getIcon();
+ } else {
+ return ((Label)figure).getIcon();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelIconHelper(IFigure figure, Image icon) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setIcon(icon);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setIcon(icon);
+ } else {
+ ((Label)figure).setIcon(icon);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabel(IFigure figure) {
+ unregisterVisuals();
+ setFigure(figure);
+ defaultText = getLabelTextHelper(figure);
+ registerVisuals();
+ refreshVisuals();
+ }
+
+ /**
+ * @generated
+ */
+ protected List getModelChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject getParserElement() {
+ return resolveSemanticElement();
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIcon() {
+ EObject parserElement = getParserElement();
+ if(parserElement == null) {
+ return null;
+ }
+
+ List<View> views = DiagramEditPartsUtil.findViews(parserElement, getViewer());
+ for(View view : views) {
+ if(NameLabelIconHelper.showLabelIcon(view)) {
+ return UMLElementTypes.getImage(parserElement.eClass());
+ }
+ }
+ return null;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelText() {
+ String text = null;
+ EObject parserElement = getParserElement();
+ if(parserElement != null && getParser() != null) {
+ text = getParser().getPrintString(new EObjectAdapter(parserElement), getParserOptions().intValue());
+ }
+ if(text == null || text.length() == 0) {
+ text = defaultText;
+ }
+ return text;
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabelText(String text) {
+ setLabelTextHelper(getFigure(), text);
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public String getEditText() {
+ if(getParserElement() == null || getParser() == null) {
+ return ""; //$NON-NLS-1$
+ }
+ return getParser().getEditString(new EObjectAdapter(getParserElement()), getParserOptions().intValue());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean isEditable() {
+ return getParser() != null;
+ }
+
+ /**
+ * @generated
+ */
+ public ICellEditorValidator getEditTextValidator() {
+ return new ICellEditorValidator() {
+
+ public String isValid(final Object value) {
+ if(value instanceof String) {
+ final EObject element = getParserElement();
+ final IParser parser = getParser();
+ try {
+ IParserEditStatus valid = (IParserEditStatus)getEditingDomain().runExclusive(new RunnableWithResult.Impl() {
+
+ public void run() {
+ setResult(parser.isValidEditString(new EObjectAdapter(element), (String)value));
+ }
+ });
+ return valid.getCode() == ParserEditStatus.EDITABLE ? null : valid.getMessage();
+ } catch (InterruptedException ie) {
+ ie.printStackTrace();
+ }
+ }
+
+ // shouldn't get here
+ return null;
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ public IContentAssistProcessor getCompletionProcessor() {
+ if(getParserElement() == null || getParser() == null) {
+ return null;
+ }
+ return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
+ }
+
+ /**
+ * @generated
+ */
+ public ParserOptions getParserOptions() {
+ return ParserOptions.NONE;
+ }
+
+ /**
+ * @generated
+ */
+ public IParser getParser() {
+ if(parser == null) {
+ parser = UMLParserProvider.getParser(UMLElementTypes.PrimitiveType_3112, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.diagram.composite.edit.parts.PrimitiveTypeEditPartCLN.VISUAL_ID));
+ }
+ return parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected DirectEditManager getManager() {
+ if(manager == null) {
+ setManager(new MultilineLabelDirectEditManager(this, MultilineLabelDirectEditManager.getTextCellEditorClass(this), UMLEditPartFactory.getTextCellEditorLocator(this)));
+ }
+ return manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setManager(DirectEditManager manager) {
+ this.manager = manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit() {
+ getManager().show();
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit(Point eventLocation) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(eventLocation.getSWTPoint());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void performDirectEdit(char initialCharacter) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(initialCharacter);
+ } else {
+ performDirectEdit();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEditRequest(Request request) {
+
+ final Request theRequest = request;
+
+ if(IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
+ directEditionMode = getDirectEditionType();
+ }
+ switch(directEditionMode) {
+ case IDirectEdition.NO_DIRECT_EDITION:
+ // no direct edition mode => does nothing
+ return;
+ case IDirectEdition.EXTENDED_DIRECT_EDITOR:
+ updateExtendedEditorConfiguration();
+ if(configuration == null || configuration.getLanguage() == null) {
+ performDefaultDirectEditorEdit(theRequest);
+ } else {
+ configuration.preEditAction(resolveSemanticElement());
+ Dialog dialog = null;
+ if(configuration instanceof IPopupEditorConfiguration) {
+ IPopupEditorHelper helper = ((IPopupEditorConfiguration)configuration).createPopupEditorHelper(this);
+ helper.showEditor();
+ return;
+ } else if(configuration instanceof IAdvancedEditorConfiguration) {
+ dialog = ((IAdvancedEditorConfiguration)configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
+ } else if(configuration instanceof IDirectEditorConfiguration) {
+ dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), ((IDirectEditorConfiguration)configuration).getTextToEdit(resolveSemanticElement()), (IDirectEditorConfiguration)configuration);
+ } else {
+ return;
+ }
+ final Dialog finalDialog = dialog;
+
+ if(Window.OK == dialog.open()) {
+ TransactionalEditingDomain domain = getEditingDomain();
+ RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
+
+ @Override
+ protected void doExecute() {
+ configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog)finalDialog).getValue());
+
+ }
+ };
+ domain.getCommandStack().execute(command);
+ }
+ }
+ break;
+ case IDirectEdition.DEFAULT_DIRECT_EDITOR:
+
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ break;
+ default:
+ break;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshLabel();
+ refreshFont();
+ refreshFontColor();
+ refreshUnderline();
+ refreshStrikeThrough();
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshLabel() {
+ EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
+ if(maskLabelPolicy == null) {
+ setLabelTextHelper(getFigure(), getLabelText());
+ setLabelIconHelper(getFigure(), getLabelIcon());
+ }
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshUnderline() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextUnderline(style.isUnderline());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshStrikeThrough() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextStrikeThrough(style.isStrikeThrough());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshFont() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null) {
+ FontData fontData = new FontData(style.getFontName(), style.getFontHeight(), (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
+ setFont(fontData);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setFontColor(Color color) {
+ getFigure().setForegroundColor(color);
+ }
+
+ /**
+ * @generated
+ */
+ protected void addSemanticListeners() {
+ if(getParser() instanceof ISemanticParser) {
+ EObject element = resolveSemanticElement();
+ parserElements = ((ISemanticParser)getParser()).getSemanticElementsBeingParsed(element);
+ for(int i = 0; i < parserElements.size(); i++) {
+ addListenerFilter("SemanticModel" + i, this, (EObject)parserElements.get(i)); //$NON-NLS-1$
+ }
+ } else {
+ super.addSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeSemanticListeners() {
+ if(parserElements != null) {
+ for(int i = 0; i < parserElements.size(); i++) {
+ removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
+ }
+ } else {
+ super.removeSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected AccessibleEditPart getAccessibleEditPart() {
+ if(accessibleEP == null) {
+ accessibleEP = new AccessibleGraphicalEditPart() {
+
+ public void getName(AccessibleEvent e) {
+ e.result = getLabelTextHelper(getFigure());
+ }
+ };
+ }
+ return accessibleEP;
+ }
+
+ /**
+ * @generated
+ */
+ private View getFontStyleOwnerView() {
+ return getPrimaryView();
+ }
+
+ /**
+ * Returns the kind of associated editor for direct edition.
+ *
+ * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition
+ * @generated
+ */
+ public int getDirectEditionType() {
+ if(checkExtendedEditor()) {
+ initExtendedEditorConfiguration();
+ return IDirectEdition.EXTENDED_DIRECT_EDITOR;
+ }
+ if(checkDefaultEdition()) {
+ return IDirectEdition.DEFAULT_DIRECT_EDITOR;
+ }
+
+ // not a named element. no specific editor => do nothing
+ return IDirectEdition.NO_DIRECT_EDITION;
+ }
+
+ /**
+ * Checks if an extended editor is present.
+ *
+ * @return <code>true</code> if an extended editor is present.
+ * @generated
+ */
+ protected boolean checkExtendedEditor() {
+ if(resolveSemanticElement() != null) {
+ return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ return false;
+ }
+
+ /**
+ * Checks if a default direct edition is available
+ *
+ * @return <code>true</code> if a default direct edition is available
+ * @generated
+ */
+ protected boolean checkDefaultEdition() {
+ return (getParser() != null);
+ }
+
+ /**
+ * Initializes the extended editor configuration
+ *
+ * @generated
+ */
+ protected void initExtendedEditorConfiguration() {
+ if(configuration == null) {
+ final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("")) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else {
+ configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ }
+ }
+
+ /**
+ * Updates the preference configuration
+ *
+ * @generated
+ */
+ protected void updateExtendedEditorConfiguration() {
+ String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("") && languagePreferred != configuration.getLanguage()) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else if(IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
+ configuration = null;
+ }
+ }
+
+ /**
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
+ protected void performDefaultDirectEditorEdit(final Request theRequest) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void addNotationalListeners() {
+ super.addNotationalListeners();
+ addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeNotationalListeners() {
+ super.removeNotationalListeners();
+ removeListenerFilter("PrimaryView"); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void handleNotificationEvent(Notification event) {
+ Object feature = event.getFeature();
+ if(NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
+ Integer c = (Integer)event.getNewValue();
+ setFontColor(DiagramColorRegistry.getInstance().getColor(c));
+ } else if(NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
+ refreshUnderline();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
+ refreshStrikeThrough();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
+ refreshFont();
+ } else {
+ if(getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
+ refreshLabel();
+ }
+ if(getParser() instanceof ISemanticParser) {
+ ISemanticParser modelParser = (ISemanticParser)getParser();
+ if(modelParser.areSemanticElementsAffected(null, event)) {
+ removeSemanticListeners();
+ if(resolveSemanticElement() != null) {
+ addSemanticListeners();
+ }
+ refreshLabel();
+ }
+ }
+ }
+ if(event.getNewValue() instanceof EAnnotation && VisualInformationPapyrusConstant.DISPLAY_NAMELABELICON.equals(((EAnnotation)event.getNewValue()).getSource())) {
+ refreshLabel();
+ }
+ super.handleNotificationEvent(event);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createFigure() {
+ IFigure label = createFigurePrim();
+ defaultText = getLabelTextHelper(label);
+ return label;
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createFigurePrim() {
+ return new WrappingLabel();
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/PrimitiveTypeEditPartCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/PrimitiveTypeEditPartCN.java
new file mode 100644
index 00000000000..6b42355adb2
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/PrimitiveTypeEditPartCN.java
@@ -0,0 +1,5341 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.ArrayList;
+import java.util.LinkedList;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Shape;
+import org.eclipse.draw2d.StackLayout;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EStructuralFeature;
+import org.eclipse.gef.EditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.editpolicies.LayoutEditPolicy;
+import org.eclipse.gef.editpolicies.NonResizableEditPolicy;
+import org.eclipse.gef.requests.CreateRequest;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.FigureUtilities;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.gef.ui.figures.DefaultSizeNodeFigure;
+import org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.jface.preference.PreferenceConverter;
+import org.eclipse.papyrus.diagram.common.editparts.NamedElementEditPart;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.HyperLinkPopupBarEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.QualifiedNameDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.ShowHideClassifierContentsEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.ShowHideCompartmentEditPolicy;
+import org.eclipse.papyrus.diagram.common.figure.node.PrimitiveTypeFigure;
+import org.eclipse.papyrus.diagram.common.helper.PreferenceInitializerForElementHelper;
+import org.eclipse.papyrus.diagram.composite.custom.edit.parts.ConstrainedNamedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.NoScrollClassifierResizableShapeEditPolicy;
+import org.eclipse.papyrus.diagram.composite.edit.policies.PrimitiveTypeItemSemanticEditPolicyCN;
+import org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorPlugin;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter;
+import org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper;
+import org.eclipse.swt.graphics.Color;
+
+/**
+ * @generated
+ */
+public class PrimitiveTypeEditPartCN extends
+
+ConstrainedNamedElementEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 3078;
+
+ /**
+ * @generated
+ */
+ protected IFigure contentPane;
+
+ /**
+ * @generated
+ */
+ protected IFigure primaryShape;
+
+ /**
+ * @generated
+ */
+ public PrimitiveTypeEditPartCN(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new PrimitiveTypeItemSemanticEditPolicyCN());
+ installEditPolicy(EditPolicy.LAYOUT_ROLE, createLayoutEditPolicy());
+ installEditPolicy(QualifiedNameDisplayEditPolicy.QUALIFIED_NAME_POLICY, new QualifiedNameDisplayEditPolicy());
+ installEditPolicy(AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeNodeLabelDisplayEditPolicy());
+ installEditPolicy(EditPolicyRoles.POPUPBAR_ROLE, new HyperLinkPopupBarEditPolicy());
+ installEditPolicy(ShowHideClassifierContentsEditPolicy.SHOW_HIDE_CLASSIFIER_CONTENTS_POLICY, new ShowHideClassifierContentsEditPolicy());
+ installEditPolicy(ShowHideCompartmentEditPolicy.SHOW_HIDE_COMPARTMENT_POLICY, new ShowHideCompartmentEditPolicy());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new NoScrollClassifierResizableShapeEditPolicy());
+ // XXX need an SCR to runtime to have another abstract superclass that would let children add reasonable editpolicies
+ // removeEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CONNECTION_HANDLES_ROLE);
+ }
+
+ /**
+ * Papyrus codeGen
+ *
+ * @generated
+ **/
+ protected void handleNotificationEvent(Notification event) {
+ super.handleNotificationEvent(event);
+
+ }
+
+ /**
+ * @generated
+ */
+ protected LayoutEditPolicy createLayoutEditPolicy() {
+ org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy lep = new org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy() {
+
+ protected EditPolicy createChildEditPolicy(EditPart child) {
+ EditPolicy result = child.getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(result == null) {
+ result = new NonResizableEditPolicy();
+ }
+ return result;
+ }
+
+ protected Command getMoveChildrenCommand(Request request) {
+ return null;
+ }
+
+ protected Command getCreateCommand(CreateRequest request) {
+ return null;
+ }
+ };
+ return lep;
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createNodeShape() {
+ return primaryShape = new PrimitiveTypeFigure();
+ }
+
+ /**
+ * @generated
+ */
+ public PrimitiveTypeFigure getPrimaryShape() {
+ return (PrimitiveTypeFigure)primaryShape;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean addFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof PrimitiveTypeNameEditPartCN) {
+ ((PrimitiveTypeNameEditPartCN)childEditPart).setLabel(getPrimaryShape().getNameLabel());
+ return true;
+ }
+
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean removeFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof PrimitiveTypeNameEditPartCN) {
+ return true;
+ }
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected void addChildVisual(EditPart childEditPart, int index) {
+ if(addFixedChild(childEditPart)) {
+ return;
+ }
+ super.addChildVisual(childEditPart, -1);
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeChildVisual(EditPart childEditPart) {
+ if(removeFixedChild(childEditPart)) {
+ return;
+ }
+ super.removeChildVisual(childEditPart);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure getContentPaneFor(IGraphicalEditPart editPart) {
+ return getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ protected NodeFigure createNodePlate() {
+ String prefElementId = "PrimitiveType";
+ IPreferenceStore store = UMLDiagramEditorPlugin.getInstance().getPreferenceStore();
+ String preferenceConstantWitdh = PreferenceInitializerForElementHelper.getpreferenceKey(getNotationView(), prefElementId, PreferenceConstantHelper.WIDTH);
+ String preferenceConstantHeight = PreferenceInitializerForElementHelper.getpreferenceKey(getNotationView(), prefElementId, PreferenceConstantHelper.HEIGHT);
+ DefaultSizeNodeFigure result = new DefaultSizeNodeFigure(store.getInt(preferenceConstantWitdh), store.getInt(preferenceConstantHeight));
+
+ return result;
+ }
+
+ /**
+ * Creates figure for this edit part.
+ *
+ * Body of this method does not depend on settings in generation model
+ * so you may safely remove <i>generated</i> tag and modify it.
+ *
+ * @generated
+ */
+ protected NodeFigure createNodeFigure() {
+ NodeFigure figure = createNodePlate();
+ figure.setLayoutManager(new StackLayout());
+ IFigure shape = createNodeShape();
+ figure.add(shape);
+ contentPane = setupContentPane(shape);
+ return figure;
+ }
+
+ /**
+ * Default implementation treats passed figure as content pane.
+ * Respects layout one may have set for generated figure.
+ *
+ * @param nodeShape
+ * instance of generated figure class
+ * @generated
+ */
+ protected IFigure setupContentPane(IFigure nodeShape) {
+ if(nodeShape.getLayoutManager() == null) {
+ ConstrainedToolbarLayout layout = new ConstrainedToolbarLayout();
+ layout.setSpacing(5);
+ nodeShape.setLayoutManager(layout);
+ }
+ return nodeShape; // use nodeShape itself as contentPane
+ }
+
+ /**
+ * @generated
+ */
+ public IFigure getContentPane() {
+ if(contentPane != null) {
+ return contentPane;
+ }
+ return super.getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ protected void setForegroundColor(Color color) {
+ if(primaryShape != null) {
+ primaryShape.setForegroundColor(color);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLineWidth(int width) {
+ if(primaryShape instanceof Shape) {
+ ((Shape)primaryShape).setLineWidth(width);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLineType(int style) {
+ if(primaryShape instanceof Shape) {
+ ((Shape)primaryShape).setLineStyle(style);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public EditPart getPrimaryChildEditPart() {
+ return getChildBySemanticHint(UMLVisualIDRegistry.getType(PrimitiveTypeNameEditPartCN.VISUAL_ID));
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnSource() {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(12);
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ types.add(UMLElementTypes.Substitution_4011);
+ types.add(UMLElementTypes.Realization_4006);
+ types.add(UMLElementTypes.Manifestation_4012);
+ types.add(UMLElementTypes.Abstraction_4007);
+ types.add(UMLElementTypes.Usage_4008);
+ types.add(UMLElementTypes.Deployment_4009);
+ types.add(UMLElementTypes.Dependency_4017);
+ types.add(UMLElementTypes.Dependency_4010);
+ types.add(UMLElementTypes.Generalization_4015);
+ types.add(UMLElementTypes.InformationFlow_4021);
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnSourceAndTarget(IGraphicalEditPart targetEditPart) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMATypesForTarget(IElementType relationshipType) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(relationshipType == UMLElementTypes.ComponentRealization_4004) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InterfaceRealization_4005) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Substitution_4011) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Realization_4006) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Manifestation_4012) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Abstraction_4007) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Usage_4008) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Deployment_4009) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4017) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4010) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Generalization_4015) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ } else if(relationshipType == UMLElementTypes.InformationFlow_4021) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnTarget() {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(17);
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ types.add(UMLElementTypes.Substitution_4011);
+ types.add(UMLElementTypes.Realization_4006);
+ types.add(UMLElementTypes.Manifestation_4012);
+ types.add(UMLElementTypes.Abstraction_4007);
+ types.add(UMLElementTypes.Usage_4008);
+ types.add(UMLElementTypes.Deployment_4009);
+ types.add(UMLElementTypes.Dependency_4017);
+ types.add(UMLElementTypes.Dependency_4010);
+ types.add(UMLElementTypes.Generalization_4015);
+ types.add(UMLElementTypes.TimeObservationEvent_4018);
+ types.add(UMLElementTypes.DurationObservationEvent_4019);
+ types.add(UMLElementTypes.InformationItemRepresented_4020);
+ types.add(UMLElementTypes.InformationFlow_4021);
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMATypesForSource(IElementType relationshipType) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(relationshipType == UMLElementTypes.CommentAnnotatedElement_4002) {
+ types.add(UMLElementTypes.Comment_2109);
+ types.add(UMLElementTypes.Comment_3097);
+ } else if(relationshipType == UMLElementTypes.ConstraintConstrainedElement_4003) {
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.ComponentRealization_4004) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InterfaceRealization_4005) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Substitution_4011) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Realization_4006) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Manifestation_4012) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Abstraction_4007) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Usage_4008) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Deployment_4009) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4017) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4010) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Generalization_4015) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ } else if(relationshipType == UMLElementTypes.TimeObservationEvent_4018) {
+ types.add(UMLElementTypes.TimeObservation_2094);
+ } else if(relationshipType == UMLElementTypes.DurationObservationEvent_4019) {
+ types.add(UMLElementTypes.DurationObservation_2093);
+ } else if(relationshipType == UMLElementTypes.InformationItemRepresented_4020) {
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.InformationItem_3094);
+ } else if(relationshipType == UMLElementTypes.InformationFlow_4021) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public Object getPreferredValue(EStructuralFeature feature) {
+ IPreferenceStore preferenceStore = (IPreferenceStore)getDiagramPreferencesHint().getPreferenceStore();
+ Object result = null;
+
+ if(feature == NotationPackage.eINSTANCE.getLineStyle_LineColor() || feature == NotationPackage.eINSTANCE.getFontStyle_FontColor() || feature == NotationPackage.eINSTANCE.getFillStyle_FillColor()) {
+ String prefColor = null;
+ if(feature == NotationPackage.eINSTANCE.getLineStyle_LineColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("PrimitiveType", PreferenceConstantHelper.COLOR_LINE);
+ } else if(feature == NotationPackage.eINSTANCE.getFontStyle_FontColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("PrimitiveType", PreferenceConstantHelper.COLOR_FONT);
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_FillColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("PrimitiveType", PreferenceConstantHelper.COLOR_FILL);
+ }
+ result = FigureUtilities.RGBToInteger(PreferenceConverter.getColor((IPreferenceStore)preferenceStore, prefColor));
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_Transparency() || feature == NotationPackage.eINSTANCE.getFillStyle_Gradient()) {
+ String prefGradient = PreferenceConstantHelper.getElementConstant("PrimitiveType", PreferenceConstantHelper.COLOR_GRADIENT);
+ GradientPreferenceConverter gradientPreferenceConverter = new GradientPreferenceConverter(preferenceStore.getString(prefGradient));
+ if(feature == NotationPackage.eINSTANCE.getFillStyle_Transparency()) {
+ result = new Integer(gradientPreferenceConverter.getTransparency());
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_Gradient()) {
+ result = gradientPreferenceConverter.getGradientData();
+ }
+ }
+
+ if(result == null) {
+ result = getStructuralFeatureValue(feature);
+ }
+ return result;
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/PrimitiveTypeNameEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/PrimitiveTypeNameEditPart.java
new file mode 100644
index 00000000000..5707377285a
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/PrimitiveTypeNameEditPart.java
@@ -0,0 +1,791 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EAnnotation;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.emf.transaction.RunnableWithResult;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.AccessibleEditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.requests.DirectEditRequest;
+import org.eclipse.gef.tools.DirectEditManager;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.CompartmentEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
+import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
+import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
+import org.eclipse.gmf.runtime.notation.FontStyle;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
+import org.eclipse.jface.viewers.ICellEditorValidator;
+import org.eclipse.jface.window.Window;
+import org.eclipse.papyrus.diagram.common.directedit.MultilineLabelDirectEditManager;
+import org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition;
+import org.eclipse.papyrus.diagram.common.editpolicies.IMaskManagedLabelEditPolicy;
+import org.eclipse.papyrus.diagram.common.figure.node.ILabelFigure;
+import org.eclipse.papyrus.diagram.common.util.DiagramEditPartsUtil;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLTextSelectionEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.diagram.composite.providers.UMLParserProvider;
+import org.eclipse.papyrus.extensionpoints.editors.Activator;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
+import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
+import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
+import org.eclipse.papyrus.umlutils.ui.VisualInformationPapyrusConstant;
+import org.eclipse.papyrus.umlutils.ui.helper.NameLabelIconHelper;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.AccessibleEvent;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.FontData;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.ui.PlatformUI;
+
+/**
+ * @generated
+ */
+public class PrimitiveTypeNameEditPart extends CompartmentEditPart implements ITextAwareEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 5118;
+
+ /**
+ * @generated
+ */
+ private DirectEditManager manager;
+
+ /**
+ * @generated
+ */
+ private IParser parser;
+
+ /**
+ * @generated
+ */
+ private List<?> parserElements;
+
+ /**
+ * @generated
+ */
+ private String defaultText;
+
+ /**
+ * direct edition mode (default, undefined, registered editor, etc.)
+ *
+ * @generated
+ */
+ protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
+
+ /**
+ * configuration from a registered edit dialog
+ *
+ * @generated
+ */
+ protected IDirectEditorConfiguration configuration;
+
+ /**
+ * @generated
+ */
+ public PrimitiveTypeNameEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
+ installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new CompositeStructureDiagramEditPart.NodeLabelDragPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelTextHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getText();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getText();
+ } else {
+ return ((Label)figure).getText();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelTextHelper(IFigure figure, String text) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setText(text);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setText(text);
+ } else {
+ ((Label)figure).setText(text);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIconHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getIcon();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getIcon();
+ } else {
+ return ((Label)figure).getIcon();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelIconHelper(IFigure figure, Image icon) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setIcon(icon);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setIcon(icon);
+ } else {
+ ((Label)figure).setIcon(icon);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabel(WrappingLabel figure) {
+ unregisterVisuals();
+ setFigure(figure);
+ defaultText = getLabelTextHelper(figure);
+ registerVisuals();
+ refreshVisuals();
+ }
+
+ /**
+ * @generated
+ */
+ protected List getModelChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject getParserElement() {
+ return resolveSemanticElement();
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIcon() {
+ EObject parserElement = getParserElement();
+ if(parserElement == null) {
+ return null;
+ }
+
+ List<View> views = DiagramEditPartsUtil.findViews(parserElement, getViewer());
+ for(View view : views) {
+ if(NameLabelIconHelper.showLabelIcon(view)) {
+ return UMLElementTypes.getImage(parserElement.eClass());
+ }
+ }
+ return null;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelText() {
+ String text = null;
+ EObject parserElement = getParserElement();
+ if(parserElement != null && getParser() != null) {
+ text = getParser().getPrintString(new EObjectAdapter(parserElement), getParserOptions().intValue());
+ }
+ if(text == null || text.length() == 0) {
+ text = defaultText;
+ }
+ return text;
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabelText(String text) {
+ setLabelTextHelper(getFigure(), text);
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public String getEditText() {
+ if(getParserElement() == null || getParser() == null) {
+ return ""; //$NON-NLS-1$
+ }
+ return getParser().getEditString(new EObjectAdapter(getParserElement()), getParserOptions().intValue());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean isEditable() {
+ return getParser() != null;
+ }
+
+ /**
+ * @generated
+ */
+ public ICellEditorValidator getEditTextValidator() {
+ return new ICellEditorValidator() {
+
+ public String isValid(final Object value) {
+ if(value instanceof String) {
+ final EObject element = getParserElement();
+ final IParser parser = getParser();
+ try {
+ IParserEditStatus valid = (IParserEditStatus)getEditingDomain().runExclusive(new RunnableWithResult.Impl() {
+
+ public void run() {
+ setResult(parser.isValidEditString(new EObjectAdapter(element), (String)value));
+ }
+ });
+ return valid.getCode() == ParserEditStatus.EDITABLE ? null : valid.getMessage();
+ } catch (InterruptedException ie) {
+ ie.printStackTrace();
+ }
+ }
+
+ // shouldn't get here
+ return null;
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ public IContentAssistProcessor getCompletionProcessor() {
+ if(getParserElement() == null || getParser() == null) {
+ return null;
+ }
+ return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
+ }
+
+ /**
+ * @generated
+ */
+ public ParserOptions getParserOptions() {
+ return ParserOptions.NONE;
+ }
+
+ /**
+ * @generated
+ */
+ public IParser getParser() {
+ if(parser == null) {
+ parser = UMLParserProvider.getParser(UMLElementTypes.PrimitiveType_2066, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.diagram.composite.edit.parts.PrimitiveTypeNameEditPart.VISUAL_ID));
+ }
+ return parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected DirectEditManager getManager() {
+ if(manager == null) {
+ setManager(new MultilineLabelDirectEditManager(this, MultilineLabelDirectEditManager.getTextCellEditorClass(this), UMLEditPartFactory.getTextCellEditorLocator(this)));
+ }
+ return manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setManager(DirectEditManager manager) {
+ this.manager = manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit() {
+ getManager().show();
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit(Point eventLocation) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(eventLocation.getSWTPoint());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void performDirectEdit(char initialCharacter) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(initialCharacter);
+ } else {
+ performDirectEdit();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEditRequest(Request request) {
+
+ final Request theRequest = request;
+
+ if(IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
+ directEditionMode = getDirectEditionType();
+ }
+ switch(directEditionMode) {
+ case IDirectEdition.NO_DIRECT_EDITION:
+ // no direct edition mode => does nothing
+ return;
+ case IDirectEdition.EXTENDED_DIRECT_EDITOR:
+ updateExtendedEditorConfiguration();
+ if(configuration == null || configuration.getLanguage() == null) {
+ performDefaultDirectEditorEdit(theRequest);
+ } else {
+ configuration.preEditAction(resolveSemanticElement());
+ Dialog dialog = null;
+ if(configuration instanceof IPopupEditorConfiguration) {
+ IPopupEditorHelper helper = ((IPopupEditorConfiguration)configuration).createPopupEditorHelper(this);
+ helper.showEditor();
+ return;
+ } else if(configuration instanceof IAdvancedEditorConfiguration) {
+ dialog = ((IAdvancedEditorConfiguration)configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
+ } else if(configuration instanceof IDirectEditorConfiguration) {
+ dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), ((IDirectEditorConfiguration)configuration).getTextToEdit(resolveSemanticElement()), (IDirectEditorConfiguration)configuration);
+ } else {
+ return;
+ }
+ final Dialog finalDialog = dialog;
+
+ if(Window.OK == dialog.open()) {
+ TransactionalEditingDomain domain = getEditingDomain();
+ RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
+
+ @Override
+ protected void doExecute() {
+ configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog)finalDialog).getValue());
+
+ }
+ };
+ domain.getCommandStack().execute(command);
+ }
+ }
+ break;
+ case IDirectEdition.DEFAULT_DIRECT_EDITOR:
+
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ break;
+ default:
+ break;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshLabel();
+ refreshFont();
+ refreshFontColor();
+ refreshUnderline();
+ refreshStrikeThrough();
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshLabel() {
+ EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
+ if(maskLabelPolicy == null) {
+ setLabelTextHelper(getFigure(), getLabelText());
+ setLabelIconHelper(getFigure(), getLabelIcon());
+ }
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshUnderline() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextUnderline(style.isUnderline());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshStrikeThrough() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextStrikeThrough(style.isStrikeThrough());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshFont() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null) {
+ FontData fontData = new FontData(style.getFontName(), style.getFontHeight(), (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
+ setFont(fontData);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setFontColor(Color color) {
+ getFigure().setForegroundColor(color);
+ }
+
+ /**
+ * @generated
+ */
+ protected void addSemanticListeners() {
+ if(getParser() instanceof ISemanticParser) {
+ EObject element = resolveSemanticElement();
+ parserElements = ((ISemanticParser)getParser()).getSemanticElementsBeingParsed(element);
+ for(int i = 0; i < parserElements.size(); i++) {
+ addListenerFilter("SemanticModel" + i, this, (EObject)parserElements.get(i)); //$NON-NLS-1$
+ }
+ } else {
+ super.addSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeSemanticListeners() {
+ if(parserElements != null) {
+ for(int i = 0; i < parserElements.size(); i++) {
+ removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
+ }
+ } else {
+ super.removeSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected AccessibleEditPart getAccessibleEditPart() {
+ if(accessibleEP == null) {
+ accessibleEP = new AccessibleGraphicalEditPart() {
+
+ public void getName(AccessibleEvent e) {
+ e.result = getLabelTextHelper(getFigure());
+ }
+ };
+ }
+ return accessibleEP;
+ }
+
+ /**
+ * @generated
+ */
+ private View getFontStyleOwnerView() {
+ return (View)getModel();
+ }
+
+ /**
+ * Returns the kind of associated editor for direct edition.
+ *
+ * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition
+ * @generated
+ */
+ public int getDirectEditionType() {
+ if(checkExtendedEditor()) {
+ initExtendedEditorConfiguration();
+ return IDirectEdition.EXTENDED_DIRECT_EDITOR;
+ }
+ if(checkDefaultEdition()) {
+ return IDirectEdition.DEFAULT_DIRECT_EDITOR;
+ }
+
+ // not a named element. no specific editor => do nothing
+ return IDirectEdition.NO_DIRECT_EDITION;
+ }
+
+ /**
+ * Checks if an extended editor is present.
+ *
+ * @return <code>true</code> if an extended editor is present.
+ * @generated
+ */
+ protected boolean checkExtendedEditor() {
+ if(resolveSemanticElement() != null) {
+ return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ return false;
+ }
+
+ /**
+ * Checks if a default direct edition is available
+ *
+ * @return <code>true</code> if a default direct edition is available
+ * @generated
+ */
+ protected boolean checkDefaultEdition() {
+ return (getParser() != null);
+ }
+
+ /**
+ * Initializes the extended editor configuration
+ *
+ * @generated
+ */
+ protected void initExtendedEditorConfiguration() {
+ if(configuration == null) {
+ final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("")) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else {
+ configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ }
+ }
+
+ /**
+ * Updates the preference configuration
+ *
+ * @generated
+ */
+ protected void updateExtendedEditorConfiguration() {
+ String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("") && languagePreferred != configuration.getLanguage()) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else if(IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
+ configuration = null;
+ }
+ }
+
+ /**
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
+ protected void performDefaultDirectEditorEdit(final Request theRequest) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void addNotationalListeners() {
+ super.addNotationalListeners();
+ addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeNotationalListeners() {
+ super.removeNotationalListeners();
+ removeListenerFilter("PrimaryView"); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void handleNotificationEvent(Notification event) {
+ refreshLabel();
+ Object feature = event.getFeature();
+ if(NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
+ Integer c = (Integer)event.getNewValue();
+ setFontColor(DiagramColorRegistry.getInstance().getColor(c));
+ } else if(NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
+ refreshUnderline();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
+ refreshStrikeThrough();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
+ refreshFont();
+ } else {
+ if(getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
+ refreshLabel();
+ }
+ if(getParser() instanceof ISemanticParser) {
+ ISemanticParser modelParser = (ISemanticParser)getParser();
+ if(modelParser.areSemanticElementsAffected(null, event)) {
+ removeSemanticListeners();
+ if(resolveSemanticElement() != null) {
+ addSemanticListeners();
+ }
+ refreshLabel();
+ }
+ }
+ }
+
+ if(event.getNewValue() instanceof EAnnotation && VisualInformationPapyrusConstant.DISPLAY_NAMELABELICON.equals(((EAnnotation)event.getNewValue()).getSource())) {
+ refreshLabel();
+ }
+
+ super.handleNotificationEvent(event);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createFigure() {
+ // Parent should assign one using setLabel() method
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ private static final String ADD_PARENT_MODEL = "AddParentModel";
+
+ /**
+ * @generated
+ */
+ public void activate() {
+ super.activate();
+ addOwnerElementListeners();
+ }
+
+ /**
+ * @generated
+ */
+ protected void addOwnerElementListeners() {
+ addListenerFilter(ADD_PARENT_MODEL, this, ((View)getParent().getModel())); //$NON-NLS-1$
+
+ }
+
+ /**
+ * @generated
+ */
+ public void deactivate() {
+ removeOwnerElementListeners();
+ super.deactivate();
+
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeOwnerElementListeners() {
+ removeListenerFilter(ADD_PARENT_MODEL);
+
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/PrimitiveTypeNameEditPartCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/PrimitiveTypeNameEditPartCN.java
new file mode 100644
index 00000000000..55e99a18459
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/PrimitiveTypeNameEditPartCN.java
@@ -0,0 +1,791 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EAnnotation;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.emf.transaction.RunnableWithResult;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.AccessibleEditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.requests.DirectEditRequest;
+import org.eclipse.gef.tools.DirectEditManager;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.CompartmentEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
+import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
+import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
+import org.eclipse.gmf.runtime.notation.FontStyle;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
+import org.eclipse.jface.viewers.ICellEditorValidator;
+import org.eclipse.jface.window.Window;
+import org.eclipse.papyrus.diagram.common.directedit.MultilineLabelDirectEditManager;
+import org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition;
+import org.eclipse.papyrus.diagram.common.editpolicies.IMaskManagedLabelEditPolicy;
+import org.eclipse.papyrus.diagram.common.figure.node.ILabelFigure;
+import org.eclipse.papyrus.diagram.common.util.DiagramEditPartsUtil;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLTextSelectionEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.diagram.composite.providers.UMLParserProvider;
+import org.eclipse.papyrus.extensionpoints.editors.Activator;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
+import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
+import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
+import org.eclipse.papyrus.umlutils.ui.VisualInformationPapyrusConstant;
+import org.eclipse.papyrus.umlutils.ui.helper.NameLabelIconHelper;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.AccessibleEvent;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.FontData;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.ui.PlatformUI;
+
+/**
+ * @generated
+ */
+public class PrimitiveTypeNameEditPartCN extends CompartmentEditPart implements ITextAwareEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 5134;
+
+ /**
+ * @generated
+ */
+ private DirectEditManager manager;
+
+ /**
+ * @generated
+ */
+ private IParser parser;
+
+ /**
+ * @generated
+ */
+ private List<?> parserElements;
+
+ /**
+ * @generated
+ */
+ private String defaultText;
+
+ /**
+ * direct edition mode (default, undefined, registered editor, etc.)
+ *
+ * @generated
+ */
+ protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
+
+ /**
+ * configuration from a registered edit dialog
+ *
+ * @generated
+ */
+ protected IDirectEditorConfiguration configuration;
+
+ /**
+ * @generated
+ */
+ public PrimitiveTypeNameEditPartCN(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
+ installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new CompositeStructureDiagramEditPart.NodeLabelDragPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelTextHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getText();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getText();
+ } else {
+ return ((Label)figure).getText();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelTextHelper(IFigure figure, String text) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setText(text);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setText(text);
+ } else {
+ ((Label)figure).setText(text);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIconHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getIcon();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getIcon();
+ } else {
+ return ((Label)figure).getIcon();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelIconHelper(IFigure figure, Image icon) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setIcon(icon);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setIcon(icon);
+ } else {
+ ((Label)figure).setIcon(icon);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabel(WrappingLabel figure) {
+ unregisterVisuals();
+ setFigure(figure);
+ defaultText = getLabelTextHelper(figure);
+ registerVisuals();
+ refreshVisuals();
+ }
+
+ /**
+ * @generated
+ */
+ protected List getModelChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject getParserElement() {
+ return resolveSemanticElement();
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIcon() {
+ EObject parserElement = getParserElement();
+ if(parserElement == null) {
+ return null;
+ }
+
+ List<View> views = DiagramEditPartsUtil.findViews(parserElement, getViewer());
+ for(View view : views) {
+ if(NameLabelIconHelper.showLabelIcon(view)) {
+ return UMLElementTypes.getImage(parserElement.eClass());
+ }
+ }
+ return null;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelText() {
+ String text = null;
+ EObject parserElement = getParserElement();
+ if(parserElement != null && getParser() != null) {
+ text = getParser().getPrintString(new EObjectAdapter(parserElement), getParserOptions().intValue());
+ }
+ if(text == null || text.length() == 0) {
+ text = defaultText;
+ }
+ return text;
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabelText(String text) {
+ setLabelTextHelper(getFigure(), text);
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public String getEditText() {
+ if(getParserElement() == null || getParser() == null) {
+ return ""; //$NON-NLS-1$
+ }
+ return getParser().getEditString(new EObjectAdapter(getParserElement()), getParserOptions().intValue());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean isEditable() {
+ return getParser() != null;
+ }
+
+ /**
+ * @generated
+ */
+ public ICellEditorValidator getEditTextValidator() {
+ return new ICellEditorValidator() {
+
+ public String isValid(final Object value) {
+ if(value instanceof String) {
+ final EObject element = getParserElement();
+ final IParser parser = getParser();
+ try {
+ IParserEditStatus valid = (IParserEditStatus)getEditingDomain().runExclusive(new RunnableWithResult.Impl() {
+
+ public void run() {
+ setResult(parser.isValidEditString(new EObjectAdapter(element), (String)value));
+ }
+ });
+ return valid.getCode() == ParserEditStatus.EDITABLE ? null : valid.getMessage();
+ } catch (InterruptedException ie) {
+ ie.printStackTrace();
+ }
+ }
+
+ // shouldn't get here
+ return null;
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ public IContentAssistProcessor getCompletionProcessor() {
+ if(getParserElement() == null || getParser() == null) {
+ return null;
+ }
+ return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
+ }
+
+ /**
+ * @generated
+ */
+ public ParserOptions getParserOptions() {
+ return ParserOptions.NONE;
+ }
+
+ /**
+ * @generated
+ */
+ public IParser getParser() {
+ if(parser == null) {
+ parser = UMLParserProvider.getParser(UMLElementTypes.PrimitiveType_3078, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.diagram.composite.edit.parts.PrimitiveTypeNameEditPartCN.VISUAL_ID));
+ }
+ return parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected DirectEditManager getManager() {
+ if(manager == null) {
+ setManager(new MultilineLabelDirectEditManager(this, MultilineLabelDirectEditManager.getTextCellEditorClass(this), UMLEditPartFactory.getTextCellEditorLocator(this)));
+ }
+ return manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setManager(DirectEditManager manager) {
+ this.manager = manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit() {
+ getManager().show();
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit(Point eventLocation) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(eventLocation.getSWTPoint());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void performDirectEdit(char initialCharacter) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(initialCharacter);
+ } else {
+ performDirectEdit();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEditRequest(Request request) {
+
+ final Request theRequest = request;
+
+ if(IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
+ directEditionMode = getDirectEditionType();
+ }
+ switch(directEditionMode) {
+ case IDirectEdition.NO_DIRECT_EDITION:
+ // no direct edition mode => does nothing
+ return;
+ case IDirectEdition.EXTENDED_DIRECT_EDITOR:
+ updateExtendedEditorConfiguration();
+ if(configuration == null || configuration.getLanguage() == null) {
+ performDefaultDirectEditorEdit(theRequest);
+ } else {
+ configuration.preEditAction(resolveSemanticElement());
+ Dialog dialog = null;
+ if(configuration instanceof IPopupEditorConfiguration) {
+ IPopupEditorHelper helper = ((IPopupEditorConfiguration)configuration).createPopupEditorHelper(this);
+ helper.showEditor();
+ return;
+ } else if(configuration instanceof IAdvancedEditorConfiguration) {
+ dialog = ((IAdvancedEditorConfiguration)configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
+ } else if(configuration instanceof IDirectEditorConfiguration) {
+ dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), ((IDirectEditorConfiguration)configuration).getTextToEdit(resolveSemanticElement()), (IDirectEditorConfiguration)configuration);
+ } else {
+ return;
+ }
+ final Dialog finalDialog = dialog;
+
+ if(Window.OK == dialog.open()) {
+ TransactionalEditingDomain domain = getEditingDomain();
+ RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
+
+ @Override
+ protected void doExecute() {
+ configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog)finalDialog).getValue());
+
+ }
+ };
+ domain.getCommandStack().execute(command);
+ }
+ }
+ break;
+ case IDirectEdition.DEFAULT_DIRECT_EDITOR:
+
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ break;
+ default:
+ break;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshLabel();
+ refreshFont();
+ refreshFontColor();
+ refreshUnderline();
+ refreshStrikeThrough();
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshLabel() {
+ EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
+ if(maskLabelPolicy == null) {
+ setLabelTextHelper(getFigure(), getLabelText());
+ setLabelIconHelper(getFigure(), getLabelIcon());
+ }
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshUnderline() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextUnderline(style.isUnderline());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshStrikeThrough() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextStrikeThrough(style.isStrikeThrough());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshFont() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null) {
+ FontData fontData = new FontData(style.getFontName(), style.getFontHeight(), (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
+ setFont(fontData);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setFontColor(Color color) {
+ getFigure().setForegroundColor(color);
+ }
+
+ /**
+ * @generated
+ */
+ protected void addSemanticListeners() {
+ if(getParser() instanceof ISemanticParser) {
+ EObject element = resolveSemanticElement();
+ parserElements = ((ISemanticParser)getParser()).getSemanticElementsBeingParsed(element);
+ for(int i = 0; i < parserElements.size(); i++) {
+ addListenerFilter("SemanticModel" + i, this, (EObject)parserElements.get(i)); //$NON-NLS-1$
+ }
+ } else {
+ super.addSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeSemanticListeners() {
+ if(parserElements != null) {
+ for(int i = 0; i < parserElements.size(); i++) {
+ removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
+ }
+ } else {
+ super.removeSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected AccessibleEditPart getAccessibleEditPart() {
+ if(accessibleEP == null) {
+ accessibleEP = new AccessibleGraphicalEditPart() {
+
+ public void getName(AccessibleEvent e) {
+ e.result = getLabelTextHelper(getFigure());
+ }
+ };
+ }
+ return accessibleEP;
+ }
+
+ /**
+ * @generated
+ */
+ private View getFontStyleOwnerView() {
+ return (View)getModel();
+ }
+
+ /**
+ * Returns the kind of associated editor for direct edition.
+ *
+ * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition
+ * @generated
+ */
+ public int getDirectEditionType() {
+ if(checkExtendedEditor()) {
+ initExtendedEditorConfiguration();
+ return IDirectEdition.EXTENDED_DIRECT_EDITOR;
+ }
+ if(checkDefaultEdition()) {
+ return IDirectEdition.DEFAULT_DIRECT_EDITOR;
+ }
+
+ // not a named element. no specific editor => do nothing
+ return IDirectEdition.NO_DIRECT_EDITION;
+ }
+
+ /**
+ * Checks if an extended editor is present.
+ *
+ * @return <code>true</code> if an extended editor is present.
+ * @generated
+ */
+ protected boolean checkExtendedEditor() {
+ if(resolveSemanticElement() != null) {
+ return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ return false;
+ }
+
+ /**
+ * Checks if a default direct edition is available
+ *
+ * @return <code>true</code> if a default direct edition is available
+ * @generated
+ */
+ protected boolean checkDefaultEdition() {
+ return (getParser() != null);
+ }
+
+ /**
+ * Initializes the extended editor configuration
+ *
+ * @generated
+ */
+ protected void initExtendedEditorConfiguration() {
+ if(configuration == null) {
+ final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("")) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else {
+ configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ }
+ }
+
+ /**
+ * Updates the preference configuration
+ *
+ * @generated
+ */
+ protected void updateExtendedEditorConfiguration() {
+ String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("") && languagePreferred != configuration.getLanguage()) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else if(IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
+ configuration = null;
+ }
+ }
+
+ /**
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
+ protected void performDefaultDirectEditorEdit(final Request theRequest) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void addNotationalListeners() {
+ super.addNotationalListeners();
+ addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeNotationalListeners() {
+ super.removeNotationalListeners();
+ removeListenerFilter("PrimaryView"); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void handleNotificationEvent(Notification event) {
+ refreshLabel();
+ Object feature = event.getFeature();
+ if(NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
+ Integer c = (Integer)event.getNewValue();
+ setFontColor(DiagramColorRegistry.getInstance().getColor(c));
+ } else if(NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
+ refreshUnderline();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
+ refreshStrikeThrough();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
+ refreshFont();
+ } else {
+ if(getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
+ refreshLabel();
+ }
+ if(getParser() instanceof ISemanticParser) {
+ ISemanticParser modelParser = (ISemanticParser)getParser();
+ if(modelParser.areSemanticElementsAffected(null, event)) {
+ removeSemanticListeners();
+ if(resolveSemanticElement() != null) {
+ addSemanticListeners();
+ }
+ refreshLabel();
+ }
+ }
+ }
+
+ if(event.getNewValue() instanceof EAnnotation && VisualInformationPapyrusConstant.DISPLAY_NAMELABELICON.equals(((EAnnotation)event.getNewValue()).getSource())) {
+ refreshLabel();
+ }
+
+ super.handleNotificationEvent(event);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createFigure() {
+ // Parent should assign one using setLabel() method
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ private static final String ADD_PARENT_MODEL = "AddParentModel";
+
+ /**
+ * @generated
+ */
+ public void activate() {
+ super.activate();
+ addOwnerElementListeners();
+ }
+
+ /**
+ * @generated
+ */
+ protected void addOwnerElementListeners() {
+ addListenerFilter(ADD_PARENT_MODEL, this, ((View)getParent().getModel())); //$NON-NLS-1$
+
+ }
+
+ /**
+ * @generated
+ */
+ public void deactivate() {
+ removeOwnerElementListeners();
+ super.deactivate();
+
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeOwnerElementListeners() {
+ removeListenerFilter(ADD_PARENT_MODEL);
+
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/PropertyEditPartCLN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/PropertyEditPartCLN.java
new file mode 100644
index 00000000000..1b263c3fd1a
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/PropertyEditPartCLN.java
@@ -0,0 +1,805 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EAnnotation;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.emf.transaction.RunnableWithResult;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.AccessibleEditPart;
+import org.eclipse.gef.DragTracker;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.requests.DirectEditRequest;
+import org.eclipse.gef.requests.SelectionRequest;
+import org.eclipse.gef.tools.DirectEditManager;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.CompartmentEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IPrimaryEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.ListItemComponentEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
+import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
+import org.eclipse.gmf.runtime.diagram.ui.tools.DragEditPartsTrackerEx;
+import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
+import org.eclipse.gmf.runtime.notation.FontStyle;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
+import org.eclipse.jface.viewers.ICellEditorValidator;
+import org.eclipse.jface.window.Window;
+import org.eclipse.papyrus.diagram.common.directedit.MultilineLabelDirectEditManager;
+import org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition;
+import org.eclipse.papyrus.diagram.common.editpolicies.IMaskManagedLabelEditPolicy;
+import org.eclipse.papyrus.diagram.common.figure.node.ILabelFigure;
+import org.eclipse.papyrus.diagram.common.util.DiagramEditPartsUtil;
+import org.eclipse.papyrus.diagram.composite.edit.policies.PropertyItemSemanticEditPolicyCLN;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLTextNonResizableEditPolicy;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLTextSelectionEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.diagram.composite.providers.UMLParserProvider;
+import org.eclipse.papyrus.extensionpoints.editors.Activator;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
+import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
+import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
+import org.eclipse.papyrus.umlutils.ui.VisualInformationPapyrusConstant;
+import org.eclipse.papyrus.umlutils.ui.helper.NameLabelIconHelper;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.AccessibleEvent;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.Font;
+import org.eclipse.swt.graphics.FontData;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.swt.widgets.Display;
+import org.eclipse.ui.PlatformUI;
+
+/**
+ * @generated
+ */
+public class PropertyEditPartCLN
+
+extends CompartmentEditPart
+
+implements ITextAwareEditPart, IPrimaryEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 3101;
+
+ /**
+ * @generated
+ */
+ private DirectEditManager manager;
+
+ /**
+ * @generated
+ */
+ private IParser parser;
+
+ /**
+ * @generated
+ */
+ private List<?> parserElements;
+
+ /**
+ * @generated
+ */
+ private String defaultText;
+
+ /**
+ * direct edition mode (default, undefined, registered editor, etc.)
+ *
+ * @generated
+ */
+ protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
+
+ /**
+ * configuration from a registered edit dialog
+ *
+ * @generated
+ */
+ protected IDirectEditorConfiguration configuration;
+
+ /**
+ * @generated
+ */
+ public PropertyEditPartCLN(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ public DragTracker getDragTracker(Request request) {
+ if(request instanceof SelectionRequest && ((SelectionRequest)request).getLastButtonPressed() == 3) {
+ return null;
+ }
+ return new DragEditPartsTrackerEx(this);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new PropertyItemSemanticEditPolicyCLN());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new UMLTextNonResizableEditPolicy());
+ installEditPolicy(EditPolicy.COMPONENT_ROLE, new ListItemComponentEditPolicy());
+ installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelTextHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getText();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getText();
+ } else {
+ return ((Label)figure).getText();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelTextHelper(IFigure figure, String text) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setText(text);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setText(text);
+ } else {
+ ((Label)figure).setText(text);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIconHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getIcon();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getIcon();
+ } else {
+ return ((Label)figure).getIcon();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelIconHelper(IFigure figure, Image icon) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setIcon(icon);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setIcon(icon);
+ } else {
+ ((Label)figure).setIcon(icon);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabel(IFigure figure) {
+ unregisterVisuals();
+ setFigure(figure);
+ defaultText = getLabelTextHelper(figure);
+ registerVisuals();
+ refreshVisuals();
+ }
+
+ /**
+ * @generated
+ */
+ protected List getModelChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject getParserElement() {
+ return resolveSemanticElement();
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIcon() {
+ EObject parserElement = getParserElement();
+ if(parserElement == null) {
+ return null;
+ }
+
+ List<View> views = DiagramEditPartsUtil.findViews(parserElement, getViewer());
+ for(View view : views) {
+ if(NameLabelIconHelper.showLabelIcon(view)) {
+ return UMLElementTypes.getImage(parserElement.eClass());
+ }
+ }
+ return null;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelText() {
+ String text = null;
+ EObject parserElement = getParserElement();
+ if(parserElement != null && getParser() != null) {
+ text = getParser().getPrintString(new EObjectAdapter(parserElement), getParserOptions().intValue());
+ }
+ if(text == null || text.length() == 0) {
+ text = defaultText;
+ }
+ return text;
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabelText(String text) {
+ setLabelTextHelper(getFigure(), text);
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public String getEditText() {
+ if(getParserElement() == null || getParser() == null) {
+ return ""; //$NON-NLS-1$
+ }
+ return getParser().getEditString(new EObjectAdapter(getParserElement()), getParserOptions().intValue());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean isEditable() {
+ return getParser() != null;
+ }
+
+ /**
+ * @generated
+ */
+ public ICellEditorValidator getEditTextValidator() {
+ return new ICellEditorValidator() {
+
+ public String isValid(final Object value) {
+ if(value instanceof String) {
+ final EObject element = getParserElement();
+ final IParser parser = getParser();
+ try {
+ IParserEditStatus valid = (IParserEditStatus)getEditingDomain().runExclusive(new RunnableWithResult.Impl() {
+
+ public void run() {
+ setResult(parser.isValidEditString(new EObjectAdapter(element), (String)value));
+ }
+ });
+ return valid.getCode() == ParserEditStatus.EDITABLE ? null : valid.getMessage();
+ } catch (InterruptedException ie) {
+ ie.printStackTrace();
+ }
+ }
+
+ // shouldn't get here
+ return null;
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ public IContentAssistProcessor getCompletionProcessor() {
+ if(getParserElement() == null || getParser() == null) {
+ return null;
+ }
+ return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
+ }
+
+ /**
+ * @generated
+ */
+ public ParserOptions getParserOptions() {
+ return ParserOptions.NONE;
+ }
+
+ /**
+ * @generated
+ */
+ public IParser getParser() {
+ if(parser == null) {
+ parser = UMLParserProvider.getParser(UMLElementTypes.Property_3101, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.diagram.composite.edit.parts.PropertyEditPartCLN.VISUAL_ID));
+ }
+ return parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected DirectEditManager getManager() {
+ if(manager == null) {
+ setManager(new MultilineLabelDirectEditManager(this, MultilineLabelDirectEditManager.getTextCellEditorClass(this), UMLEditPartFactory.getTextCellEditorLocator(this)));
+ }
+ return manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setManager(DirectEditManager manager) {
+ this.manager = manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit() {
+ getManager().show();
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit(Point eventLocation) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(eventLocation.getSWTPoint());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void performDirectEdit(char initialCharacter) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(initialCharacter);
+ } else {
+ performDirectEdit();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEditRequest(Request request) {
+
+ final Request theRequest = request;
+
+ if(IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
+ directEditionMode = getDirectEditionType();
+ }
+ switch(directEditionMode) {
+ case IDirectEdition.NO_DIRECT_EDITION:
+ // no direct edition mode => does nothing
+ return;
+ case IDirectEdition.EXTENDED_DIRECT_EDITOR:
+ updateExtendedEditorConfiguration();
+ if(configuration == null || configuration.getLanguage() == null) {
+ performDefaultDirectEditorEdit(theRequest);
+ } else {
+ configuration.preEditAction(resolveSemanticElement());
+ Dialog dialog = null;
+ if(configuration instanceof IPopupEditorConfiguration) {
+ IPopupEditorHelper helper = ((IPopupEditorConfiguration)configuration).createPopupEditorHelper(this);
+ helper.showEditor();
+ return;
+ } else if(configuration instanceof IAdvancedEditorConfiguration) {
+ dialog = ((IAdvancedEditorConfiguration)configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
+ } else if(configuration instanceof IDirectEditorConfiguration) {
+ dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), ((IDirectEditorConfiguration)configuration).getTextToEdit(resolveSemanticElement()), (IDirectEditorConfiguration)configuration);
+ } else {
+ return;
+ }
+ final Dialog finalDialog = dialog;
+
+ if(Window.OK == dialog.open()) {
+ TransactionalEditingDomain domain = getEditingDomain();
+ RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
+
+ @Override
+ protected void doExecute() {
+ configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog)finalDialog).getValue());
+
+ }
+ };
+ domain.getCommandStack().execute(command);
+ }
+ }
+ break;
+ case IDirectEdition.DEFAULT_DIRECT_EDITOR:
+
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ break;
+ default:
+ break;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshLabel();
+ refreshFont();
+ refreshFontColor();
+ refreshUnderline();
+ refreshStrikeThrough();
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshLabel() {
+ EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
+ if(maskLabelPolicy == null) {
+ setLabelTextHelper(getFigure(), getLabelText());
+ setLabelIconHelper(getFigure(), getLabelIcon());
+ }
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshUnderline() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextUnderline(style.isUnderline());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshStrikeThrough() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextStrikeThrough(style.isStrikeThrough());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshFont() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null) {
+ FontData fontData = new FontData(style.getFontName(), style.getFontHeight(), (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
+ setFont(fontData);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setFontColor(Color color) {
+ getFigure().setForegroundColor(color);
+ }
+
+ /**
+ * @generated
+ */
+ protected void addSemanticListeners() {
+ if(getParser() instanceof ISemanticParser) {
+ EObject element = resolveSemanticElement();
+ parserElements = ((ISemanticParser)getParser()).getSemanticElementsBeingParsed(element);
+ for(int i = 0; i < parserElements.size(); i++) {
+ addListenerFilter("SemanticModel" + i, this, (EObject)parserElements.get(i)); //$NON-NLS-1$
+ }
+ } else {
+ super.addSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeSemanticListeners() {
+ if(parserElements != null) {
+ for(int i = 0; i < parserElements.size(); i++) {
+ removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
+ }
+ } else {
+ super.removeSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected AccessibleEditPart getAccessibleEditPart() {
+ if(accessibleEP == null) {
+ accessibleEP = new AccessibleGraphicalEditPart() {
+
+ public void getName(AccessibleEvent e) {
+ e.result = getLabelTextHelper(getFigure());
+ }
+ };
+ }
+ return accessibleEP;
+ }
+
+ /**
+ * @generated
+ */
+ private View getFontStyleOwnerView() {
+ return (View)getModel();
+ }
+
+ /**
+ * Returns the kind of associated editor for direct edition.
+ *
+ * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition
+ * @generated
+ */
+ public int getDirectEditionType() {
+ if(checkExtendedEditor()) {
+ initExtendedEditorConfiguration();
+ return IDirectEdition.EXTENDED_DIRECT_EDITOR;
+ }
+ if(checkDefaultEdition()) {
+ return IDirectEdition.DEFAULT_DIRECT_EDITOR;
+ }
+
+ // not a named element. no specific editor => do nothing
+ return IDirectEdition.NO_DIRECT_EDITION;
+ }
+
+ /**
+ * Checks if an extended editor is present.
+ *
+ * @return <code>true</code> if an extended editor is present.
+ * @generated
+ */
+ protected boolean checkExtendedEditor() {
+ if(resolveSemanticElement() != null) {
+ return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ return false;
+ }
+
+ /**
+ * Checks if a default direct edition is available
+ *
+ * @return <code>true</code> if a default direct edition is available
+ * @generated
+ */
+ protected boolean checkDefaultEdition() {
+ return (getParser() != null);
+ }
+
+ /**
+ * Initializes the extended editor configuration
+ *
+ * @generated
+ */
+ protected void initExtendedEditorConfiguration() {
+ if(configuration == null) {
+ final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("")) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else {
+ configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ }
+ }
+
+ /**
+ * Updates the preference configuration
+ *
+ * @generated
+ */
+ protected void updateExtendedEditorConfiguration() {
+ String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("") && languagePreferred != configuration.getLanguage()) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else if(IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
+ configuration = null;
+ }
+ }
+
+ /**
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
+ protected void performDefaultDirectEditorEdit(final Request theRequest) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void addNotationalListeners() {
+ super.addNotationalListeners();
+ addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeNotationalListeners() {
+ super.removeNotationalListeners();
+ removeListenerFilter("PrimaryView"); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void handleNotificationEvent(Notification event) {
+ Object feature = event.getFeature();
+ if(NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
+ Integer c = (Integer)event.getNewValue();
+ setFontColor(DiagramColorRegistry.getInstance().getColor(c));
+ } else if(NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
+ refreshUnderline();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
+ refreshStrikeThrough();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
+ refreshFont();
+ } else {
+ if(getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
+ refreshLabel();
+ }
+ if(getParser() instanceof ISemanticParser) {
+ ISemanticParser modelParser = (ISemanticParser)getParser();
+ if(modelParser.areSemanticElementsAffected(null, event)) {
+ removeSemanticListeners();
+ if(resolveSemanticElement() != null) {
+ addSemanticListeners();
+ }
+ refreshLabel();
+ }
+ }
+ }
+ if(event.getNewValue() instanceof EAnnotation && VisualInformationPapyrusConstant.DISPLAY_NAMELABELICON.equals(((EAnnotation)event.getNewValue()).getSource())) {
+ refreshLabel();
+ }
+ super.handleNotificationEvent(event);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createFigure() {
+ IFigure label = createFigurePrim();
+ defaultText = getLabelTextHelper(label);
+ return label;
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createFigurePrim() {
+ return new PropertyFigureDescriptor();
+ }
+
+ /**
+ * @generated
+ */
+ public class PropertyFigureDescriptor extends WrappingLabel {
+
+ /**
+ * @generated
+ */
+ public PropertyFigureDescriptor() {
+ this.setText("");
+
+ this.setFont(THIS_FONT);
+
+ }
+
+ }
+
+ /**
+ * @generated
+ */
+ static final Font THIS_FONT = new Font(Display.getCurrent(), "Arial", 10, SWT.NORMAL);
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/PropertyPartCompartmentEditPartCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/PropertyPartCompartmentEditPartCN.java
new file mode 100644
index 00000000000..7f679101ca3
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/PropertyPartCompartmentEditPartCN.java
@@ -0,0 +1,124 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import org.eclipse.draw2d.geometry.Dimension;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.draw2d.geometry.Rectangle;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.GraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ShapeCompartmentEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.CreationEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.DragDropEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.ResizableCompartmentEditPolicy;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.diagram.common.editparts.NoScrollBarShapeCompartmentEditPart;
+import org.eclipse.papyrus.diagram.common.editpolicies.CustomContainerEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.DuplicatePasteEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.CustomDiagramDragDropEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.PortInCompartmentCreationEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.RemoveOrphanViewPolicy;
+import org.eclipse.papyrus.diagram.composite.edit.policies.PropertyPartCompartmentItemSemanticEditPolicyCN;
+import org.eclipse.papyrus.diagram.composite.part.Messages;
+
+/**
+ * @generated
+ */
+public class PropertyPartCompartmentEditPartCN
+
+extends NoScrollBarShapeCompartmentEditPart
+
+{
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 7077;
+
+ /**
+ * @generated
+ */
+ public PropertyPartCompartmentEditPartCN(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ public String getCompartmentName() {
+ return Messages.PropertyPartCompartmentEditPartCN_title;
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new ResizableCompartmentEditPolicy());
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new PropertyPartCompartmentItemSemanticEditPolicyCN());
+ installEditPolicy(EditPolicyRoles.CREATION_ROLE, new CreationEditPolicy());
+ installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new DragDropEditPolicy());
+ installEditPolicy(DuplicatePasteEditPolicy.PASTE_ROLE, new DuplicatePasteEditPolicy());
+ installEditPolicy("REMOVE_ORPHAN_VIEW", new RemoveOrphanViewPolicy()); //$NON-NLS-1$
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new org.eclipse.papyrus.diagram.composite.custom.edit.policies.PropertyPartCompartmentItemSemanticEditPolicyCN());
+ installEditPolicy(EditPolicy.GRAPHICAL_NODE_ROLE, new CustomContainerEditPolicy());
+ installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new CustomDiagramDragDropEditPolicy());
+ installEditPolicy(EditPolicyRoles.CREATION_ROLE, new PortInCompartmentCreationEditPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ protected void setRatio(Double ratio) {
+ if(getFigure().getParent().getLayoutManager() instanceof ConstrainedToolbarLayout) {
+ super.setRatio(ratio);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void handleNotificationEvent(Notification notification) {
+ Object feature = notification.getFeature();
+ if(NotationPackage.eINSTANCE.getSize_Width().equals(feature) || NotationPackage.eINSTANCE.getSize_Height().equals(feature) || NotationPackage.eINSTANCE.getLocation_X().equals(feature) || NotationPackage.eINSTANCE.getLocation_Y().equals(feature)) {
+ refreshBounds();
+ }
+ super.handleNotificationEvent(notification);
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshBounds() {
+ int width = ((Integer)getStructuralFeatureValue(NotationPackage.eINSTANCE.getSize_Width())).intValue();
+ int height = ((Integer)getStructuralFeatureValue(NotationPackage.eINSTANCE.getSize_Height())).intValue();
+ Dimension size = new Dimension(width, height);
+ int x = ((Integer)getStructuralFeatureValue(NotationPackage.eINSTANCE.getLocation_X())).intValue();
+ int y = ((Integer)getStructuralFeatureValue(NotationPackage.eINSTANCE.getLocation_Y())).intValue();
+ Point loc = new Point(x, y);
+ ((GraphicalEditPart)getParent()).setLayoutConstraint(this, getFigure(), new Rectangle(loc, size));
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshBounds();
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/PropertyPartEditPartCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/PropertyPartEditPartCN.java
new file mode 100644
index 00000000000..17d4f2e1785
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/PropertyPartEditPartCN.java
@@ -0,0 +1,5170 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.ArrayList;
+import java.util.LinkedList;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.PositionConstants;
+import org.eclipse.draw2d.Shape;
+import org.eclipse.draw2d.StackLayout;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EStructuralFeature;
+import org.eclipse.gef.EditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.editpolicies.LayoutEditPolicy;
+import org.eclipse.gef.editpolicies.NonResizableEditPolicy;
+import org.eclipse.gef.requests.CreateRequest;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IBorderItemEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.CreationEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.DragDropEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.diagram.ui.figures.IBorderItemLocator;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.FigureUtilities;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.gef.ui.figures.DefaultSizeNodeFigure;
+import org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.jface.preference.PreferenceConverter;
+import org.eclipse.papyrus.diagram.common.editpolicies.AffixedNodeAlignmentEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.BorderItemResizableEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.HyperLinkPopupBarEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.QualifiedNameDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.ShowHideCompartmentEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.ShowHideRelatedContentsEditPolicy;
+import org.eclipse.papyrus.diagram.common.helper.PreferenceInitializerForElementHelper;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.CustomDiagramDragDropEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.EncapsulatedClassifierResizableShapeEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.GraphicalNodeEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.NoScrollClassifierResizableShapeEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.PropertyLayoutEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.RemoveOrphanViewPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.figures.PropertyPartFigure;
+import org.eclipse.papyrus.diagram.composite.custom.locators.PortPositionLocator;
+import org.eclipse.papyrus.diagram.composite.edit.policies.PropertyPartItemSemanticEditPolicyCN;
+import org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorPlugin;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter;
+import org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper;
+import org.eclipse.swt.graphics.Color;
+
+/**
+ * @generated
+ */
+public class PropertyPartEditPartCN extends
+
+org.eclipse.papyrus.diagram.composite.custom.edit.parts.PropertyPartEditPartCN {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 3070;
+
+ /**
+ * @generated
+ */
+ protected IFigure contentPane;
+
+ /**
+ * @generated
+ */
+ protected IFigure primaryShape;
+
+ /**
+ * @generated
+ */
+ public PropertyPartEditPartCN(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ installEditPolicy(EditPolicyRoles.CREATION_ROLE, new CreationEditPolicy());
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new PropertyPartItemSemanticEditPolicyCN());
+ installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new DragDropEditPolicy());
+ installEditPolicy(EditPolicy.LAYOUT_ROLE, createLayoutEditPolicy());
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new org.eclipse.papyrus.diagram.composite.custom.edit.policies.PropertyPartItemSemanticEditPolicyCN());
+ installEditPolicy(EditPolicy.GRAPHICAL_NODE_ROLE, new GraphicalNodeEditPolicy());
+ installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new CustomDiagramDragDropEditPolicy());
+ installEditPolicy(QualifiedNameDisplayEditPolicy.QUALIFIED_NAME_POLICY, new QualifiedNameDisplayEditPolicy());
+ installEditPolicy(AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeNodeLabelDisplayEditPolicy());
+ installEditPolicy(EditPolicyRoles.POPUPBAR_ROLE, new HyperLinkPopupBarEditPolicy());
+ installEditPolicy(EditPolicy.LAYOUT_ROLE, new PropertyLayoutEditPolicy());
+ installEditPolicy(ShowHideCompartmentEditPolicy.SHOW_HIDE_COMPARTMENT_POLICY, new ShowHideCompartmentEditPolicy());
+ installEditPolicy(AffixedNodeAlignmentEditPolicy.AFFIXED_CHILD_ALIGNMENT_ROLE, new AffixedNodeAlignmentEditPolicy());
+ installEditPolicy("REMOVE_ORPHAN_VIEW", new RemoveOrphanViewPolicy()); //$NON-NLS-1$
+ installEditPolicy(ShowHideRelatedContentsEditPolicy.SHOW_HIDE_RELATED_CONTENTS_POLICY, new ShowHideRelatedContentsEditPolicy());
+ installEditPolicy(ShowHideRelatedContentsEditPolicy.SHOW_HIDE_RELATED_CONTENTS_POLICY, new ShowHideRelatedContentsEditPolicy());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new NoScrollClassifierResizableShapeEditPolicy());
+ // XXX need an SCR to runtime to have another abstract superclass that would let children add reasonable editpolicies
+ // removeEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CONNECTION_HANDLES_ROLE);
+ }
+
+ /**
+ * Papyrus codeGen
+ *
+ * @generated
+ **/
+ protected void handleNotificationEvent(Notification event) {
+ super.handleNotificationEvent(event);
+
+ }
+
+ /**
+ * @generated
+ */
+ protected LayoutEditPolicy createLayoutEditPolicy() {
+ org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy lep = new org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy() {
+
+ protected EditPolicy createChildEditPolicy(EditPart child) {
+ View childView = (View)child.getModel();
+ switch(UMLVisualIDRegistry.getVisualID(childView)) {
+ case PortEditPart.VISUAL_ID:
+
+ return new BorderItemResizableEditPolicy();
+
+ }
+ EditPolicy result = child.getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(result == null) {
+ result = new NonResizableEditPolicy();
+ }
+ return result;
+ }
+
+ protected Command getMoveChildrenCommand(Request request) {
+ return null;
+ }
+
+ protected Command getCreateCommand(CreateRequest request) {
+ return null;
+ }
+ };
+ return lep;
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createNodeShape() {
+ return primaryShape = new PropertyPartFigure();
+ }
+
+ /**
+ * @generated
+ */
+ public PropertyPartFigure getPrimaryShape() {
+ return (PropertyPartFigure)primaryShape;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean addFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof PropertyPartNameEditPartCN) {
+ ((PropertyPartNameEditPartCN)childEditPart).setLabel(getPrimaryShape().getNameLabel());
+ return true;
+ }
+
+ if(childEditPart instanceof PropertyPartCompartmentEditPartCN) {
+ IFigure pane = getPrimaryShape().getCompositeCompartmentFigure();
+ setupContentPane(pane); // FIXME each comparment should handle his content pane in his own way
+ pane.add(((PropertyPartCompartmentEditPartCN)childEditPart).getFigure());
+ return true;
+ }
+
+ //Papyrus Gencode :Affixed Port locator
+ if(childEditPart instanceof PortEditPart) {
+ IBorderItemLocator locator = new PortPositionLocator(getMainFigure(), PositionConstants.NONE);
+ getBorderedFigure().getBorderItemContainer().add(((PortEditPart)childEditPart).getFigure(), locator);
+ return true;
+ }
+
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean removeFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof PropertyPartNameEditPartCN) {
+ return true;
+ }
+ if(childEditPart instanceof PropertyPartCompartmentEditPartCN) {
+ IFigure pane = getPrimaryShape().getCompositeCompartmentFigure();
+ setupContentPane(pane); // FIXME each comparment should handle his content pane in his own way
+ pane.remove(((PropertyPartCompartmentEditPartCN)childEditPart).getFigure());
+ return true;
+ }
+ if(childEditPart instanceof PortEditPart) {
+ getBorderedFigure().getBorderItemContainer().remove(((PortEditPart)childEditPart).getFigure());
+ return true;
+ }
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected void addChildVisual(EditPart childEditPart, int index) {
+ if(addFixedChild(childEditPart)) {
+ return;
+ }
+ super.addChildVisual(childEditPart, -1);
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeChildVisual(EditPart childEditPart) {
+ if(removeFixedChild(childEditPart)) {
+ return;
+ }
+ super.removeChildVisual(childEditPart);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure getContentPaneFor(IGraphicalEditPart editPart) {
+ if(editPart instanceof PropertyPartCompartmentEditPartCN) {
+ return getPrimaryShape().getCompositeCompartmentFigure();
+ }
+ if(editPart instanceof IBorderItemEditPart) {
+ return getBorderedFigure().getBorderItemContainer();
+ }
+ return getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ protected NodeFigure createNodePlate() {
+ String prefElementId = "Property";
+ IPreferenceStore store = UMLDiagramEditorPlugin.getInstance().getPreferenceStore();
+ String preferenceConstantWitdh = PreferenceInitializerForElementHelper.getpreferenceKey(getNotationView(), prefElementId, PreferenceConstantHelper.WIDTH);
+ String preferenceConstantHeight = PreferenceInitializerForElementHelper.getpreferenceKey(getNotationView(), prefElementId, PreferenceConstantHelper.HEIGHT);
+ DefaultSizeNodeFigure result = new DefaultSizeNodeFigure(store.getInt(preferenceConstantWitdh), store.getInt(preferenceConstantHeight));
+
+ return result;
+ }
+
+ /**
+ * Creates figure for this edit part.
+ *
+ * Body of this method does not depend on settings in generation model
+ * so you may safely remove <i>generated</i> tag and modify it.
+ *
+ * @generated
+ */
+ protected NodeFigure createMainFigure() {
+ NodeFigure figure = createNodePlate();
+ figure.setLayoutManager(new StackLayout());
+ IFigure shape = createNodeShape();
+ figure.add(shape);
+ contentPane = setupContentPane(shape);
+ return figure;
+ }
+
+ /**
+ * Default implementation treats passed figure as content pane.
+ * Respects layout one may have set for generated figure.
+ *
+ * @param nodeShape
+ * instance of generated figure class
+ * @generated
+ */
+ protected IFigure setupContentPane(IFigure nodeShape) {
+ if(nodeShape.getLayoutManager() == null) {
+ ConstrainedToolbarLayout layout = new ConstrainedToolbarLayout();
+ layout.setSpacing(5);
+ nodeShape.setLayoutManager(layout);
+ }
+ return nodeShape; // use nodeShape itself as contentPane
+ }
+
+ /**
+ * @generated
+ */
+ public IFigure getContentPane() {
+ if(contentPane != null) {
+ return contentPane;
+ }
+ return super.getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ protected void setForegroundColor(Color color) {
+ if(primaryShape != null) {
+ primaryShape.setForegroundColor(color);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLineWidth(int width) {
+ if(primaryShape instanceof Shape) {
+ ((Shape)primaryShape).setLineWidth(width);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLineType(int style) {
+ if(primaryShape instanceof Shape) {
+ ((Shape)primaryShape).setLineStyle(style);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public EditPart getPrimaryChildEditPart() {
+ return getChildBySemanticHint(UMLVisualIDRegistry.getType(PropertyPartNameEditPartCN.VISUAL_ID));
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnSource() {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(11);
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ types.add(UMLElementTypes.Substitution_4011);
+ types.add(UMLElementTypes.Realization_4006);
+ types.add(UMLElementTypes.Manifestation_4012);
+ types.add(UMLElementTypes.Abstraction_4007);
+ types.add(UMLElementTypes.Usage_4008);
+ types.add(UMLElementTypes.Deployment_4009);
+ types.add(UMLElementTypes.Dependency_4017);
+ types.add(UMLElementTypes.Dependency_4010);
+ types.add(UMLElementTypes.InformationFlow_4021);
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnSourceAndTarget(IGraphicalEditPart targetEditPart) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMATypesForTarget(IElementType relationshipType) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(relationshipType == UMLElementTypes.ComponentRealization_4004) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InterfaceRealization_4005) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Substitution_4011) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Realization_4006) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Manifestation_4012) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Abstraction_4007) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Usage_4008) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Deployment_4009) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4017) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4010) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InformationFlow_4021) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnTarget() {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(15);
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ types.add(UMLElementTypes.Substitution_4011);
+ types.add(UMLElementTypes.Realization_4006);
+ types.add(UMLElementTypes.Manifestation_4012);
+ types.add(UMLElementTypes.Abstraction_4007);
+ types.add(UMLElementTypes.Usage_4008);
+ types.add(UMLElementTypes.Deployment_4009);
+ types.add(UMLElementTypes.Dependency_4017);
+ types.add(UMLElementTypes.Dependency_4010);
+ types.add(UMLElementTypes.TimeObservationEvent_4018);
+ types.add(UMLElementTypes.DurationObservationEvent_4019);
+ types.add(UMLElementTypes.InformationFlow_4021);
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMATypesForSource(IElementType relationshipType) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(relationshipType == UMLElementTypes.CommentAnnotatedElement_4002) {
+ types.add(UMLElementTypes.Comment_2109);
+ types.add(UMLElementTypes.Comment_3097);
+ } else if(relationshipType == UMLElementTypes.ConstraintConstrainedElement_4003) {
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.ComponentRealization_4004) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InterfaceRealization_4005) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Substitution_4011) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Realization_4006) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Manifestation_4012) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Abstraction_4007) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Usage_4008) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Deployment_4009) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4017) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4010) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.TimeObservationEvent_4018) {
+ types.add(UMLElementTypes.TimeObservation_2094);
+ } else if(relationshipType == UMLElementTypes.DurationObservationEvent_4019) {
+ types.add(UMLElementTypes.DurationObservation_2093);
+ } else if(relationshipType == UMLElementTypes.InformationFlow_4021) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public Object getPreferredValue(EStructuralFeature feature) {
+ IPreferenceStore preferenceStore = (IPreferenceStore)getDiagramPreferencesHint().getPreferenceStore();
+ Object result = null;
+
+ if(feature == NotationPackage.eINSTANCE.getLineStyle_LineColor() || feature == NotationPackage.eINSTANCE.getFontStyle_FontColor() || feature == NotationPackage.eINSTANCE.getFillStyle_FillColor()) {
+ String prefColor = null;
+ if(feature == NotationPackage.eINSTANCE.getLineStyle_LineColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("Property", PreferenceConstantHelper.COLOR_LINE);
+ } else if(feature == NotationPackage.eINSTANCE.getFontStyle_FontColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("Property", PreferenceConstantHelper.COLOR_FONT);
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_FillColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("Property", PreferenceConstantHelper.COLOR_FILL);
+ }
+ result = FigureUtilities.RGBToInteger(PreferenceConverter.getColor((IPreferenceStore)preferenceStore, prefColor));
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_Transparency() || feature == NotationPackage.eINSTANCE.getFillStyle_Gradient()) {
+ String prefGradient = PreferenceConstantHelper.getElementConstant("Property", PreferenceConstantHelper.COLOR_GRADIENT);
+ GradientPreferenceConverter gradientPreferenceConverter = new GradientPreferenceConverter(preferenceStore.getString(prefGradient));
+ if(feature == NotationPackage.eINSTANCE.getFillStyle_Transparency()) {
+ result = new Integer(gradientPreferenceConverter.getTransparency());
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_Gradient()) {
+ result = gradientPreferenceConverter.getGradientData();
+ }
+ }
+
+ if(result == null) {
+ result = getStructuralFeatureValue(feature);
+ }
+ return result;
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/PropertyPartNameEditPartCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/PropertyPartNameEditPartCN.java
new file mode 100644
index 00000000000..f1eb173fcd2
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/PropertyPartNameEditPartCN.java
@@ -0,0 +1,793 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EAnnotation;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.emf.transaction.RunnableWithResult;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.AccessibleEditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.requests.DirectEditRequest;
+import org.eclipse.gef.tools.DirectEditManager;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.CompartmentEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
+import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
+import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
+import org.eclipse.gmf.runtime.notation.FontStyle;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
+import org.eclipse.jface.viewers.ICellEditorValidator;
+import org.eclipse.jface.window.Window;
+import org.eclipse.papyrus.diagram.common.directedit.MultilineLabelDirectEditManager;
+import org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition;
+import org.eclipse.papyrus.diagram.common.editpolicies.IMaskManagedLabelEditPolicy;
+import org.eclipse.papyrus.diagram.common.figure.node.ILabelFigure;
+import org.eclipse.papyrus.diagram.common.util.DiagramEditPartsUtil;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.PropertyLabelEditPolicy;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLTextSelectionEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.diagram.composite.providers.UMLParserProvider;
+import org.eclipse.papyrus.extensionpoints.editors.Activator;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
+import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
+import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
+import org.eclipse.papyrus.umlutils.ui.VisualInformationPapyrusConstant;
+import org.eclipse.papyrus.umlutils.ui.helper.NameLabelIconHelper;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.AccessibleEvent;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.FontData;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.ui.PlatformUI;
+
+/**
+ * @generated
+ */
+public class PropertyPartNameEditPartCN extends CompartmentEditPart implements ITextAwareEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 5126;
+
+ /**
+ * @generated
+ */
+ private DirectEditManager manager;
+
+ /**
+ * @generated
+ */
+ private IParser parser;
+
+ /**
+ * @generated
+ */
+ private List<?> parserElements;
+
+ /**
+ * @generated
+ */
+ private String defaultText;
+
+ /**
+ * direct edition mode (default, undefined, registered editor, etc.)
+ *
+ * @generated
+ */
+ protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
+
+ /**
+ * configuration from a registered edit dialog
+ *
+ * @generated
+ */
+ protected IDirectEditorConfiguration configuration;
+
+ /**
+ * @generated
+ */
+ public PropertyPartNameEditPartCN(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
+ installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new CompositeStructureDiagramEditPart.NodeLabelDragPolicy());
+ installEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY, new PropertyLabelEditPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelTextHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getText();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getText();
+ } else {
+ return ((Label)figure).getText();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelTextHelper(IFigure figure, String text) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setText(text);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setText(text);
+ } else {
+ ((Label)figure).setText(text);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIconHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getIcon();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getIcon();
+ } else {
+ return ((Label)figure).getIcon();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelIconHelper(IFigure figure, Image icon) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setIcon(icon);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setIcon(icon);
+ } else {
+ ((Label)figure).setIcon(icon);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabel(WrappingLabel figure) {
+ unregisterVisuals();
+ setFigure(figure);
+ defaultText = getLabelTextHelper(figure);
+ registerVisuals();
+ refreshVisuals();
+ }
+
+ /**
+ * @generated
+ */
+ protected List getModelChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject getParserElement() {
+ return resolveSemanticElement();
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIcon() {
+ EObject parserElement = getParserElement();
+ if(parserElement == null) {
+ return null;
+ }
+
+ List<View> views = DiagramEditPartsUtil.findViews(parserElement, getViewer());
+ for(View view : views) {
+ if(NameLabelIconHelper.showLabelIcon(view)) {
+ return UMLElementTypes.getImage(parserElement.eClass());
+ }
+ }
+ return null;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelText() {
+ String text = null;
+ EObject parserElement = getParserElement();
+ if(parserElement != null && getParser() != null) {
+ text = getParser().getPrintString(new EObjectAdapter(parserElement), getParserOptions().intValue());
+ }
+ if(text == null || text.length() == 0) {
+ text = defaultText;
+ }
+ return text;
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabelText(String text) {
+ setLabelTextHelper(getFigure(), text);
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public String getEditText() {
+ if(getParserElement() == null || getParser() == null) {
+ return ""; //$NON-NLS-1$
+ }
+ return getParser().getEditString(new EObjectAdapter(getParserElement()), getParserOptions().intValue());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean isEditable() {
+ return getParser() != null;
+ }
+
+ /**
+ * @generated
+ */
+ public ICellEditorValidator getEditTextValidator() {
+ return new ICellEditorValidator() {
+
+ public String isValid(final Object value) {
+ if(value instanceof String) {
+ final EObject element = getParserElement();
+ final IParser parser = getParser();
+ try {
+ IParserEditStatus valid = (IParserEditStatus)getEditingDomain().runExclusive(new RunnableWithResult.Impl() {
+
+ public void run() {
+ setResult(parser.isValidEditString(new EObjectAdapter(element), (String)value));
+ }
+ });
+ return valid.getCode() == ParserEditStatus.EDITABLE ? null : valid.getMessage();
+ } catch (InterruptedException ie) {
+ ie.printStackTrace();
+ }
+ }
+
+ // shouldn't get here
+ return null;
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ public IContentAssistProcessor getCompletionProcessor() {
+ if(getParserElement() == null || getParser() == null) {
+ return null;
+ }
+ return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
+ }
+
+ /**
+ * @generated
+ */
+ public ParserOptions getParserOptions() {
+ return ParserOptions.NONE;
+ }
+
+ /**
+ * @generated
+ */
+ public IParser getParser() {
+ if(parser == null) {
+ parser = UMLParserProvider.getParser(UMLElementTypes.Property_3070, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.diagram.composite.edit.parts.PropertyPartNameEditPartCN.VISUAL_ID));
+ }
+ return parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected DirectEditManager getManager() {
+ if(manager == null) {
+ setManager(new MultilineLabelDirectEditManager(this, MultilineLabelDirectEditManager.getTextCellEditorClass(this), UMLEditPartFactory.getTextCellEditorLocator(this)));
+ }
+ return manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setManager(DirectEditManager manager) {
+ this.manager = manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit() {
+ getManager().show();
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit(Point eventLocation) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(eventLocation.getSWTPoint());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void performDirectEdit(char initialCharacter) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(initialCharacter);
+ } else {
+ performDirectEdit();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEditRequest(Request request) {
+
+ final Request theRequest = request;
+
+ if(IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
+ directEditionMode = getDirectEditionType();
+ }
+ switch(directEditionMode) {
+ case IDirectEdition.NO_DIRECT_EDITION:
+ // no direct edition mode => does nothing
+ return;
+ case IDirectEdition.EXTENDED_DIRECT_EDITOR:
+ updateExtendedEditorConfiguration();
+ if(configuration == null || configuration.getLanguage() == null) {
+ performDefaultDirectEditorEdit(theRequest);
+ } else {
+ configuration.preEditAction(resolveSemanticElement());
+ Dialog dialog = null;
+ if(configuration instanceof IPopupEditorConfiguration) {
+ IPopupEditorHelper helper = ((IPopupEditorConfiguration)configuration).createPopupEditorHelper(this);
+ helper.showEditor();
+ return;
+ } else if(configuration instanceof IAdvancedEditorConfiguration) {
+ dialog = ((IAdvancedEditorConfiguration)configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
+ } else if(configuration instanceof IDirectEditorConfiguration) {
+ dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), ((IDirectEditorConfiguration)configuration).getTextToEdit(resolveSemanticElement()), (IDirectEditorConfiguration)configuration);
+ } else {
+ return;
+ }
+ final Dialog finalDialog = dialog;
+
+ if(Window.OK == dialog.open()) {
+ TransactionalEditingDomain domain = getEditingDomain();
+ RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
+
+ @Override
+ protected void doExecute() {
+ configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog)finalDialog).getValue());
+
+ }
+ };
+ domain.getCommandStack().execute(command);
+ }
+ }
+ break;
+ case IDirectEdition.DEFAULT_DIRECT_EDITOR:
+
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ break;
+ default:
+ break;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshLabel();
+ refreshFont();
+ refreshFontColor();
+ refreshUnderline();
+ refreshStrikeThrough();
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshLabel() {
+ EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
+ if(maskLabelPolicy == null) {
+ setLabelTextHelper(getFigure(), getLabelText());
+ setLabelIconHelper(getFigure(), getLabelIcon());
+ }
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshUnderline() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextUnderline(style.isUnderline());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshStrikeThrough() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextStrikeThrough(style.isStrikeThrough());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshFont() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null) {
+ FontData fontData = new FontData(style.getFontName(), style.getFontHeight(), (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
+ setFont(fontData);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setFontColor(Color color) {
+ getFigure().setForegroundColor(color);
+ }
+
+ /**
+ * @generated
+ */
+ protected void addSemanticListeners() {
+ if(getParser() instanceof ISemanticParser) {
+ EObject element = resolveSemanticElement();
+ parserElements = ((ISemanticParser)getParser()).getSemanticElementsBeingParsed(element);
+ for(int i = 0; i < parserElements.size(); i++) {
+ addListenerFilter("SemanticModel" + i, this, (EObject)parserElements.get(i)); //$NON-NLS-1$
+ }
+ } else {
+ super.addSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeSemanticListeners() {
+ if(parserElements != null) {
+ for(int i = 0; i < parserElements.size(); i++) {
+ removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
+ }
+ } else {
+ super.removeSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected AccessibleEditPart getAccessibleEditPart() {
+ if(accessibleEP == null) {
+ accessibleEP = new AccessibleGraphicalEditPart() {
+
+ public void getName(AccessibleEvent e) {
+ e.result = getLabelTextHelper(getFigure());
+ }
+ };
+ }
+ return accessibleEP;
+ }
+
+ /**
+ * @generated
+ */
+ private View getFontStyleOwnerView() {
+ return (View)getModel();
+ }
+
+ /**
+ * Returns the kind of associated editor for direct edition.
+ *
+ * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition
+ * @generated
+ */
+ public int getDirectEditionType() {
+ if(checkExtendedEditor()) {
+ initExtendedEditorConfiguration();
+ return IDirectEdition.EXTENDED_DIRECT_EDITOR;
+ }
+ if(checkDefaultEdition()) {
+ return IDirectEdition.DEFAULT_DIRECT_EDITOR;
+ }
+
+ // not a named element. no specific editor => do nothing
+ return IDirectEdition.NO_DIRECT_EDITION;
+ }
+
+ /**
+ * Checks if an extended editor is present.
+ *
+ * @return <code>true</code> if an extended editor is present.
+ * @generated
+ */
+ protected boolean checkExtendedEditor() {
+ if(resolveSemanticElement() != null) {
+ return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ return false;
+ }
+
+ /**
+ * Checks if a default direct edition is available
+ *
+ * @return <code>true</code> if a default direct edition is available
+ * @generated
+ */
+ protected boolean checkDefaultEdition() {
+ return (getParser() != null);
+ }
+
+ /**
+ * Initializes the extended editor configuration
+ *
+ * @generated
+ */
+ protected void initExtendedEditorConfiguration() {
+ if(configuration == null) {
+ final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("")) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else {
+ configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ }
+ }
+
+ /**
+ * Updates the preference configuration
+ *
+ * @generated
+ */
+ protected void updateExtendedEditorConfiguration() {
+ String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("") && languagePreferred != configuration.getLanguage()) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else if(IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
+ configuration = null;
+ }
+ }
+
+ /**
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
+ protected void performDefaultDirectEditorEdit(final Request theRequest) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void addNotationalListeners() {
+ super.addNotationalListeners();
+ addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeNotationalListeners() {
+ super.removeNotationalListeners();
+ removeListenerFilter("PrimaryView"); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void handleNotificationEvent(Notification event) {
+ refreshLabel();
+ Object feature = event.getFeature();
+ if(NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
+ Integer c = (Integer)event.getNewValue();
+ setFontColor(DiagramColorRegistry.getInstance().getColor(c));
+ } else if(NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
+ refreshUnderline();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
+ refreshStrikeThrough();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
+ refreshFont();
+ } else {
+ if(getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
+ refreshLabel();
+ }
+ if(getParser() instanceof ISemanticParser) {
+ ISemanticParser modelParser = (ISemanticParser)getParser();
+ if(modelParser.areSemanticElementsAffected(null, event)) {
+ removeSemanticListeners();
+ if(resolveSemanticElement() != null) {
+ addSemanticListeners();
+ }
+ refreshLabel();
+ }
+ }
+ }
+
+ if(event.getNewValue() instanceof EAnnotation && VisualInformationPapyrusConstant.DISPLAY_NAMELABELICON.equals(((EAnnotation)event.getNewValue()).getSource())) {
+ refreshLabel();
+ }
+
+ super.handleNotificationEvent(event);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createFigure() {
+ // Parent should assign one using setLabel() method
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ private static final String ADD_PARENT_MODEL = "AddParentModel";
+
+ /**
+ * @generated
+ */
+ public void activate() {
+ super.activate();
+ addOwnerElementListeners();
+ }
+
+ /**
+ * @generated
+ */
+ protected void addOwnerElementListeners() {
+ addListenerFilter(ADD_PARENT_MODEL, this, ((View)getParent().getModel())); //$NON-NLS-1$
+
+ }
+
+ /**
+ * @generated
+ */
+ public void deactivate() {
+ removeOwnerElementListeners();
+ super.deactivate();
+
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeOwnerElementListeners() {
+ removeListenerFilter(ADD_PARENT_MODEL);
+
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ProtocolStateMachineCompositeCompartmentEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ProtocolStateMachineCompositeCompartmentEditPart.java
new file mode 100644
index 00000000000..93471c01f6f
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ProtocolStateMachineCompositeCompartmentEditPart.java
@@ -0,0 +1,123 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import org.eclipse.draw2d.geometry.Dimension;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.draw2d.geometry.Rectangle;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.GraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ShapeCompartmentEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.CreationEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.DragDropEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.ResizableCompartmentEditPolicy;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.diagram.common.editparts.NoScrollBarShapeCompartmentEditPart;
+import org.eclipse.papyrus.diagram.common.editpolicies.CustomContainerEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.DuplicatePasteEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.CustomDiagramDragDropEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.PortInCompartmentCreationEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.RemoveOrphanViewPolicy;
+import org.eclipse.papyrus.diagram.composite.edit.policies.ProtocolStateMachineCompositeCompartmentItemSemanticEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.Messages;
+
+/**
+ * @generated
+ */
+public class ProtocolStateMachineCompositeCompartmentEditPart
+
+extends NoScrollBarShapeCompartmentEditPart
+
+{
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 7065;
+
+ /**
+ * @generated
+ */
+ public ProtocolStateMachineCompositeCompartmentEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ public String getCompartmentName() {
+ return Messages.ProtocolStateMachineCompositeCompartmentEditPart_title;
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new ResizableCompartmentEditPolicy());
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new ProtocolStateMachineCompositeCompartmentItemSemanticEditPolicy());
+ installEditPolicy(EditPolicyRoles.CREATION_ROLE, new CreationEditPolicy());
+ installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new DragDropEditPolicy());
+ installEditPolicy(DuplicatePasteEditPolicy.PASTE_ROLE, new DuplicatePasteEditPolicy());
+ installEditPolicy("REMOVE_ORPHAN_VIEW", new RemoveOrphanViewPolicy()); //$NON-NLS-1$
+ installEditPolicy(EditPolicy.GRAPHICAL_NODE_ROLE, new CustomContainerEditPolicy());
+ installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new CustomDiagramDragDropEditPolicy());
+ installEditPolicy(EditPolicyRoles.CREATION_ROLE, new PortInCompartmentCreationEditPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ protected void setRatio(Double ratio) {
+ if(getFigure().getParent().getLayoutManager() instanceof ConstrainedToolbarLayout) {
+ super.setRatio(ratio);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void handleNotificationEvent(Notification notification) {
+ Object feature = notification.getFeature();
+ if(NotationPackage.eINSTANCE.getSize_Width().equals(feature) || NotationPackage.eINSTANCE.getSize_Height().equals(feature) || NotationPackage.eINSTANCE.getLocation_X().equals(feature) || NotationPackage.eINSTANCE.getLocation_Y().equals(feature)) {
+ refreshBounds();
+ }
+ super.handleNotificationEvent(notification);
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshBounds() {
+ int width = ((Integer)getStructuralFeatureValue(NotationPackage.eINSTANCE.getSize_Width())).intValue();
+ int height = ((Integer)getStructuralFeatureValue(NotationPackage.eINSTANCE.getSize_Height())).intValue();
+ Dimension size = new Dimension(width, height);
+ int x = ((Integer)getStructuralFeatureValue(NotationPackage.eINSTANCE.getLocation_X())).intValue();
+ int y = ((Integer)getStructuralFeatureValue(NotationPackage.eINSTANCE.getLocation_Y())).intValue();
+ Point loc = new Point(x, y);
+ ((GraphicalEditPart)getParent()).setLayoutConstraint(this, getFigure(), new Rectangle(loc, size));
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshBounds();
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ProtocolStateMachineCompositeCompartmentEditPartCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ProtocolStateMachineCompositeCompartmentEditPartCN.java
new file mode 100644
index 00000000000..306ec09903e
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ProtocolStateMachineCompositeCompartmentEditPartCN.java
@@ -0,0 +1,123 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import org.eclipse.draw2d.geometry.Dimension;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.draw2d.geometry.Rectangle;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.GraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ShapeCompartmentEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.CreationEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.DragDropEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.ResizableCompartmentEditPolicy;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.diagram.common.editparts.NoScrollBarShapeCompartmentEditPart;
+import org.eclipse.papyrus.diagram.common.editpolicies.CustomContainerEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.DuplicatePasteEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.CustomDiagramDragDropEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.PortInCompartmentCreationEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.RemoveOrphanViewPolicy;
+import org.eclipse.papyrus.diagram.composite.edit.policies.ProtocolStateMachineCompositeCompartmentItemSemanticEditPolicyCN;
+import org.eclipse.papyrus.diagram.composite.part.Messages;
+
+/**
+ * @generated
+ */
+public class ProtocolStateMachineCompositeCompartmentEditPartCN
+
+extends NoScrollBarShapeCompartmentEditPart
+
+{
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 7052;
+
+ /**
+ * @generated
+ */
+ public ProtocolStateMachineCompositeCompartmentEditPartCN(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ public String getCompartmentName() {
+ return Messages.ProtocolStateMachineCompositeCompartmentEditPartCN_title;
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new ResizableCompartmentEditPolicy());
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new ProtocolStateMachineCompositeCompartmentItemSemanticEditPolicyCN());
+ installEditPolicy(EditPolicyRoles.CREATION_ROLE, new CreationEditPolicy());
+ installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new DragDropEditPolicy());
+ installEditPolicy(DuplicatePasteEditPolicy.PASTE_ROLE, new DuplicatePasteEditPolicy());
+ installEditPolicy("REMOVE_ORPHAN_VIEW", new RemoveOrphanViewPolicy()); //$NON-NLS-1$
+ installEditPolicy(EditPolicy.GRAPHICAL_NODE_ROLE, new CustomContainerEditPolicy());
+ installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new CustomDiagramDragDropEditPolicy());
+ installEditPolicy(EditPolicyRoles.CREATION_ROLE, new PortInCompartmentCreationEditPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ protected void setRatio(Double ratio) {
+ if(getFigure().getParent().getLayoutManager() instanceof ConstrainedToolbarLayout) {
+ super.setRatio(ratio);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void handleNotificationEvent(Notification notification) {
+ Object feature = notification.getFeature();
+ if(NotationPackage.eINSTANCE.getSize_Width().equals(feature) || NotationPackage.eINSTANCE.getSize_Height().equals(feature) || NotationPackage.eINSTANCE.getLocation_X().equals(feature) || NotationPackage.eINSTANCE.getLocation_Y().equals(feature)) {
+ refreshBounds();
+ }
+ super.handleNotificationEvent(notification);
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshBounds() {
+ int width = ((Integer)getStructuralFeatureValue(NotationPackage.eINSTANCE.getSize_Width())).intValue();
+ int height = ((Integer)getStructuralFeatureValue(NotationPackage.eINSTANCE.getSize_Height())).intValue();
+ Dimension size = new Dimension(width, height);
+ int x = ((Integer)getStructuralFeatureValue(NotationPackage.eINSTANCE.getLocation_X())).intValue();
+ int y = ((Integer)getStructuralFeatureValue(NotationPackage.eINSTANCE.getLocation_Y())).intValue();
+ Point loc = new Point(x, y);
+ ((GraphicalEditPart)getParent()).setLayoutConstraint(this, getFigure(), new Rectangle(loc, size));
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshBounds();
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ProtocolStateMachineCompositeEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ProtocolStateMachineCompositeEditPart.java
new file mode 100644
index 00000000000..46fdf8a749a
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ProtocolStateMachineCompositeEditPart.java
@@ -0,0 +1,5406 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.ArrayList;
+import java.util.LinkedList;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.PositionConstants;
+import org.eclipse.draw2d.Shape;
+import org.eclipse.draw2d.StackLayout;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EStructuralFeature;
+import org.eclipse.gef.EditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.editpolicies.LayoutEditPolicy;
+import org.eclipse.gef.editpolicies.NonResizableEditPolicy;
+import org.eclipse.gef.requests.CreateRequest;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IBorderItemEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.CreationEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.DragDropEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.diagram.ui.figures.IBorderItemLocator;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.FigureUtilities;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.gef.ui.figures.DefaultSizeNodeFigure;
+import org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.jface.preference.PreferenceConverter;
+import org.eclipse.papyrus.diagram.common.editparts.NamedElementEditPart;
+import org.eclipse.papyrus.diagram.common.editpolicies.AffixedNodeAlignmentEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.BorderItemResizableEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.HyperLinkPopupBarEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.QualifiedNameDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.ShowHideClassifierContentsEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.ShowHideCompartmentEditPolicy;
+import org.eclipse.papyrus.diagram.common.helper.PreferenceInitializerForElementHelper;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.BehaviorLayoutEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.BehaviorResizableShapeEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.CustomDiagramDragDropEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.RemoveOrphanViewPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.figures.ProtocolStateMachineCompositeFigure;
+import org.eclipse.papyrus.diagram.composite.custom.locators.PortPositionLocator;
+import org.eclipse.papyrus.diagram.composite.edit.policies.ProtocolStateMachineCompositeItemSemanticEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorPlugin;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter;
+import org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper;
+import org.eclipse.swt.graphics.Color;
+
+/**
+ * @generated
+ */
+public class ProtocolStateMachineCompositeEditPart extends
+
+NamedElementEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 2062;
+
+ /**
+ * @generated
+ */
+ protected IFigure contentPane;
+
+ /**
+ * @generated
+ */
+ protected IFigure primaryShape;
+
+ /**
+ * @generated
+ */
+ public ProtocolStateMachineCompositeEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ installEditPolicy(EditPolicyRoles.CREATION_ROLE, new CreationEditPolicy());
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new ProtocolStateMachineCompositeItemSemanticEditPolicy());
+ installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new DragDropEditPolicy());
+ installEditPolicy(EditPolicy.LAYOUT_ROLE, createLayoutEditPolicy());
+ installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new CustomDiagramDragDropEditPolicy());
+ installEditPolicy(QualifiedNameDisplayEditPolicy.QUALIFIED_NAME_POLICY, new QualifiedNameDisplayEditPolicy());
+ installEditPolicy(AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeNodeLabelDisplayEditPolicy());
+ installEditPolicy(EditPolicyRoles.POPUPBAR_ROLE, new HyperLinkPopupBarEditPolicy());
+ installEditPolicy(EditPolicy.LAYOUT_ROLE, new BehaviorLayoutEditPolicy());
+ installEditPolicy(ShowHideClassifierContentsEditPolicy.SHOW_HIDE_CLASSIFIER_CONTENTS_POLICY, new ShowHideClassifierContentsEditPolicy());
+ installEditPolicy(ShowHideCompartmentEditPolicy.SHOW_HIDE_COMPARTMENT_POLICY, new ShowHideCompartmentEditPolicy());
+ installEditPolicy(AffixedNodeAlignmentEditPolicy.AFFIXED_CHILD_ALIGNMENT_ROLE, new AffixedNodeAlignmentEditPolicy());
+ installEditPolicy("REMOVE_ORPHAN_VIEW", new RemoveOrphanViewPolicy()); //$NON-NLS-1$
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new BehaviorResizableShapeEditPolicy());
+ // XXX need an SCR to runtime to have another abstract superclass that would let children add reasonable editpolicies
+ // removeEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CONNECTION_HANDLES_ROLE);
+ }
+
+ /**
+ * Papyrus codeGen
+ *
+ * @generated
+ **/
+ protected void handleNotificationEvent(Notification event) {
+ super.handleNotificationEvent(event);
+
+ }
+
+ /**
+ * @generated
+ */
+ protected LayoutEditPolicy createLayoutEditPolicy() {
+ org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy lep = new org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy() {
+
+ protected EditPolicy createChildEditPolicy(EditPart child) {
+ View childView = (View)child.getModel();
+ switch(UMLVisualIDRegistry.getVisualID(childView)) {
+ case PortEditPart.VISUAL_ID:
+ case ParameterEditPart.VISUAL_ID:
+
+ return new BorderItemResizableEditPolicy();
+
+ }
+ EditPolicy result = child.getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(result == null) {
+ result = new NonResizableEditPolicy();
+ }
+ return result;
+ }
+
+ protected Command getMoveChildrenCommand(Request request) {
+ return null;
+ }
+
+ protected Command getCreateCommand(CreateRequest request) {
+ return null;
+ }
+ };
+ return lep;
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createNodeShape() {
+ return primaryShape = new ProtocolStateMachineCompositeFigure();
+ }
+
+ /**
+ * @generated
+ */
+ public ProtocolStateMachineCompositeFigure getPrimaryShape() {
+ return (ProtocolStateMachineCompositeFigure)primaryShape;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean addFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof ProtocolStateMachineCompositeNameEditPart) {
+ ((ProtocolStateMachineCompositeNameEditPart)childEditPart).setLabel(getPrimaryShape().getNameLabel());
+ return true;
+ }
+
+ if(childEditPart instanceof ProtocolStateMachineCompositeCompartmentEditPart) {
+ IFigure pane = getPrimaryShape().getCompositeCompartmentFigure();
+ setupContentPane(pane); // FIXME each comparment should handle his content pane in his own way
+ pane.add(((ProtocolStateMachineCompositeCompartmentEditPart)childEditPart).getFigure());
+ return true;
+ }
+
+ //Papyrus Gencode :Affixed Port locator
+ if(childEditPart instanceof PortEditPart) {
+ IBorderItemLocator locator = new PortPositionLocator(getMainFigure(), PositionConstants.NONE);
+ getBorderedFigure().getBorderItemContainer().add(((PortEditPart)childEditPart).getFigure(), locator);
+ return true;
+ }
+
+ //Papyrus Gencode :Affixed Port locator
+ if(childEditPart instanceof ParameterEditPart) {
+ IBorderItemLocator locator = new PortPositionLocator(getMainFigure(), PositionConstants.NONE);
+ getBorderedFigure().getBorderItemContainer().add(((ParameterEditPart)childEditPart).getFigure(), locator);
+ return true;
+ }
+
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean removeFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof ProtocolStateMachineCompositeNameEditPart) {
+ return true;
+ }
+ if(childEditPart instanceof ProtocolStateMachineCompositeCompartmentEditPart) {
+ IFigure pane = getPrimaryShape().getCompositeCompartmentFigure();
+ setupContentPane(pane); // FIXME each comparment should handle his content pane in his own way
+ pane.remove(((ProtocolStateMachineCompositeCompartmentEditPart)childEditPart).getFigure());
+ return true;
+ }
+ if(childEditPart instanceof PortEditPart) {
+ getBorderedFigure().getBorderItemContainer().remove(((PortEditPart)childEditPart).getFigure());
+ return true;
+ }
+ if(childEditPart instanceof ParameterEditPart) {
+ getBorderedFigure().getBorderItemContainer().remove(((ParameterEditPart)childEditPart).getFigure());
+ return true;
+ }
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected void addChildVisual(EditPart childEditPart, int index) {
+ if(addFixedChild(childEditPart)) {
+ return;
+ }
+ super.addChildVisual(childEditPart, -1);
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeChildVisual(EditPart childEditPart) {
+ if(removeFixedChild(childEditPart)) {
+ return;
+ }
+ super.removeChildVisual(childEditPart);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure getContentPaneFor(IGraphicalEditPart editPart) {
+ if(editPart instanceof ProtocolStateMachineCompositeCompartmentEditPart) {
+ return getPrimaryShape().getCompositeCompartmentFigure();
+ }
+ if(editPart instanceof IBorderItemEditPart) {
+ return getBorderedFigure().getBorderItemContainer();
+ }
+ return getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ protected NodeFigure createNodePlate() {
+ String prefElementId = "ProtocolStateMachine";
+ IPreferenceStore store = UMLDiagramEditorPlugin.getInstance().getPreferenceStore();
+ String preferenceConstantWitdh = PreferenceInitializerForElementHelper.getpreferenceKey(getNotationView(), prefElementId, PreferenceConstantHelper.WIDTH);
+ String preferenceConstantHeight = PreferenceInitializerForElementHelper.getpreferenceKey(getNotationView(), prefElementId, PreferenceConstantHelper.HEIGHT);
+ DefaultSizeNodeFigure result = new DefaultSizeNodeFigure(store.getInt(preferenceConstantWitdh), store.getInt(preferenceConstantHeight));
+
+ return result;
+ }
+
+ /**
+ * Creates figure for this edit part.
+ *
+ * Body of this method does not depend on settings in generation model
+ * so you may safely remove <i>generated</i> tag and modify it.
+ *
+ * @generated
+ */
+ protected NodeFigure createMainFigure() {
+ NodeFigure figure = createNodePlate();
+ figure.setLayoutManager(new StackLayout());
+ IFigure shape = createNodeShape();
+ figure.add(shape);
+ contentPane = setupContentPane(shape);
+ return figure;
+ }
+
+ /**
+ * Default implementation treats passed figure as content pane.
+ * Respects layout one may have set for generated figure.
+ *
+ * @param nodeShape
+ * instance of generated figure class
+ * @generated
+ */
+ protected IFigure setupContentPane(IFigure nodeShape) {
+ if(nodeShape.getLayoutManager() == null) {
+ ConstrainedToolbarLayout layout = new ConstrainedToolbarLayout();
+ layout.setSpacing(5);
+ nodeShape.setLayoutManager(layout);
+ }
+ return nodeShape; // use nodeShape itself as contentPane
+ }
+
+ /**
+ * @generated
+ */
+ public IFigure getContentPane() {
+ if(contentPane != null) {
+ return contentPane;
+ }
+ return super.getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ protected void setForegroundColor(Color color) {
+ if(primaryShape != null) {
+ primaryShape.setForegroundColor(color);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLineWidth(int width) {
+ if(primaryShape instanceof Shape) {
+ ((Shape)primaryShape).setLineWidth(width);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLineType(int style) {
+ if(primaryShape instanceof Shape) {
+ ((Shape)primaryShape).setLineStyle(style);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public EditPart getPrimaryChildEditPart() {
+ return getChildBySemanticHint(UMLVisualIDRegistry.getType(ProtocolStateMachineCompositeNameEditPart.VISUAL_ID));
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnSource() {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(12);
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ types.add(UMLElementTypes.Substitution_4011);
+ types.add(UMLElementTypes.Realization_4006);
+ types.add(UMLElementTypes.Manifestation_4012);
+ types.add(UMLElementTypes.Abstraction_4007);
+ types.add(UMLElementTypes.Usage_4008);
+ types.add(UMLElementTypes.Deployment_4009);
+ types.add(UMLElementTypes.Dependency_4017);
+ types.add(UMLElementTypes.Dependency_4010);
+ types.add(UMLElementTypes.Generalization_4015);
+ types.add(UMLElementTypes.InformationFlow_4021);
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnSourceAndTarget(IGraphicalEditPart targetEditPart) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMATypesForTarget(IElementType relationshipType) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(relationshipType == UMLElementTypes.ComponentRealization_4004) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InterfaceRealization_4005) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Substitution_4011) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Realization_4006) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Manifestation_4012) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Abstraction_4007) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Usage_4008) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Deployment_4009) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4017) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4010) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Generalization_4015) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ } else if(relationshipType == UMLElementTypes.InformationFlow_4021) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnTarget() {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(17);
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ types.add(UMLElementTypes.Substitution_4011);
+ types.add(UMLElementTypes.Realization_4006);
+ types.add(UMLElementTypes.Manifestation_4012);
+ types.add(UMLElementTypes.Abstraction_4007);
+ types.add(UMLElementTypes.Usage_4008);
+ types.add(UMLElementTypes.Deployment_4009);
+ types.add(UMLElementTypes.Dependency_4017);
+ types.add(UMLElementTypes.Dependency_4010);
+ types.add(UMLElementTypes.Generalization_4015);
+ types.add(UMLElementTypes.TimeObservationEvent_4018);
+ types.add(UMLElementTypes.DurationObservationEvent_4019);
+ types.add(UMLElementTypes.InformationItemRepresented_4020);
+ types.add(UMLElementTypes.InformationFlow_4021);
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMATypesForSource(IElementType relationshipType) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(relationshipType == UMLElementTypes.CommentAnnotatedElement_4002) {
+ types.add(UMLElementTypes.Comment_2109);
+ types.add(UMLElementTypes.Comment_3097);
+ } else if(relationshipType == UMLElementTypes.ConstraintConstrainedElement_4003) {
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.ComponentRealization_4004) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InterfaceRealization_4005) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Substitution_4011) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Realization_4006) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Manifestation_4012) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Abstraction_4007) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Usage_4008) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Deployment_4009) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4017) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4010) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Generalization_4015) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ } else if(relationshipType == UMLElementTypes.TimeObservationEvent_4018) {
+ types.add(UMLElementTypes.TimeObservation_2094);
+ } else if(relationshipType == UMLElementTypes.DurationObservationEvent_4019) {
+ types.add(UMLElementTypes.DurationObservation_2093);
+ } else if(relationshipType == UMLElementTypes.InformationItemRepresented_4020) {
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.InformationItem_3094);
+ } else if(relationshipType == UMLElementTypes.InformationFlow_4021) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public Object getPreferredValue(EStructuralFeature feature) {
+ IPreferenceStore preferenceStore = (IPreferenceStore)getDiagramPreferencesHint().getPreferenceStore();
+ Object result = null;
+
+ if(feature == NotationPackage.eINSTANCE.getLineStyle_LineColor() || feature == NotationPackage.eINSTANCE.getFontStyle_FontColor() || feature == NotationPackage.eINSTANCE.getFillStyle_FillColor()) {
+ String prefColor = null;
+ if(feature == NotationPackage.eINSTANCE.getLineStyle_LineColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("ProtocolStateMachine", PreferenceConstantHelper.COLOR_LINE);
+ } else if(feature == NotationPackage.eINSTANCE.getFontStyle_FontColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("ProtocolStateMachine", PreferenceConstantHelper.COLOR_FONT);
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_FillColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("ProtocolStateMachine", PreferenceConstantHelper.COLOR_FILL);
+ }
+ result = FigureUtilities.RGBToInteger(PreferenceConverter.getColor((IPreferenceStore)preferenceStore, prefColor));
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_Transparency() || feature == NotationPackage.eINSTANCE.getFillStyle_Gradient()) {
+ String prefGradient = PreferenceConstantHelper.getElementConstant("ProtocolStateMachine", PreferenceConstantHelper.COLOR_GRADIENT);
+ GradientPreferenceConverter gradientPreferenceConverter = new GradientPreferenceConverter(preferenceStore.getString(prefGradient));
+ if(feature == NotationPackage.eINSTANCE.getFillStyle_Transparency()) {
+ result = new Integer(gradientPreferenceConverter.getTransparency());
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_Gradient()) {
+ result = gradientPreferenceConverter.getGradientData();
+ }
+ }
+
+ if(result == null) {
+ result = getStructuralFeatureValue(feature);
+ }
+ return result;
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ProtocolStateMachineCompositeEditPartCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ProtocolStateMachineCompositeEditPartCN.java
new file mode 100644
index 00000000000..068428ab176
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ProtocolStateMachineCompositeEditPartCN.java
@@ -0,0 +1,5408 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.ArrayList;
+import java.util.LinkedList;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.PositionConstants;
+import org.eclipse.draw2d.Shape;
+import org.eclipse.draw2d.StackLayout;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EStructuralFeature;
+import org.eclipse.gef.EditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.editpolicies.LayoutEditPolicy;
+import org.eclipse.gef.editpolicies.NonResizableEditPolicy;
+import org.eclipse.gef.requests.CreateRequest;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IBorderItemEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.CreationEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.DragDropEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.diagram.ui.figures.IBorderItemLocator;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.FigureUtilities;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.gef.ui.figures.DefaultSizeNodeFigure;
+import org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.jface.preference.PreferenceConverter;
+import org.eclipse.papyrus.diagram.common.editparts.NamedElementEditPart;
+import org.eclipse.papyrus.diagram.common.editpolicies.AffixedNodeAlignmentEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.BorderItemResizableEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.HyperLinkPopupBarEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.QualifiedNameDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.ShowHideClassifierContentsEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.ShowHideCompartmentEditPolicy;
+import org.eclipse.papyrus.diagram.common.helper.PreferenceInitializerForElementHelper;
+import org.eclipse.papyrus.diagram.composite.custom.edit.parts.ConstrainedNamedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.BehaviorLayoutEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.BehaviorResizableShapeEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.CustomDiagramDragDropEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.NoScrollBehaviorResizableShapeEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.RemoveOrphanViewPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.figures.ProtocolStateMachineCompositeFigure;
+import org.eclipse.papyrus.diagram.composite.custom.locators.PortPositionLocator;
+import org.eclipse.papyrus.diagram.composite.edit.policies.ProtocolStateMachineCompositeItemSemanticEditPolicyCN;
+import org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorPlugin;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter;
+import org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper;
+import org.eclipse.swt.graphics.Color;
+
+/**
+ * @generated
+ */
+public class ProtocolStateMachineCompositeEditPartCN extends
+
+ConstrainedNamedElementEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 3074;
+
+ /**
+ * @generated
+ */
+ protected IFigure contentPane;
+
+ /**
+ * @generated
+ */
+ protected IFigure primaryShape;
+
+ /**
+ * @generated
+ */
+ public ProtocolStateMachineCompositeEditPartCN(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ installEditPolicy(EditPolicyRoles.CREATION_ROLE, new CreationEditPolicy());
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new ProtocolStateMachineCompositeItemSemanticEditPolicyCN());
+ installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new DragDropEditPolicy());
+ installEditPolicy(EditPolicy.LAYOUT_ROLE, createLayoutEditPolicy());
+ installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new CustomDiagramDragDropEditPolicy());
+ installEditPolicy(QualifiedNameDisplayEditPolicy.QUALIFIED_NAME_POLICY, new QualifiedNameDisplayEditPolicy());
+ installEditPolicy(AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeNodeLabelDisplayEditPolicy());
+ installEditPolicy(EditPolicyRoles.POPUPBAR_ROLE, new HyperLinkPopupBarEditPolicy());
+ installEditPolicy(EditPolicy.LAYOUT_ROLE, new BehaviorLayoutEditPolicy());
+ installEditPolicy(ShowHideClassifierContentsEditPolicy.SHOW_HIDE_CLASSIFIER_CONTENTS_POLICY, new ShowHideClassifierContentsEditPolicy());
+ installEditPolicy(ShowHideCompartmentEditPolicy.SHOW_HIDE_COMPARTMENT_POLICY, new ShowHideCompartmentEditPolicy());
+ installEditPolicy(AffixedNodeAlignmentEditPolicy.AFFIXED_CHILD_ALIGNMENT_ROLE, new AffixedNodeAlignmentEditPolicy());
+ installEditPolicy("REMOVE_ORPHAN_VIEW", new RemoveOrphanViewPolicy()); //$NON-NLS-1$
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new NoScrollBehaviorResizableShapeEditPolicy());
+ // XXX need an SCR to runtime to have another abstract superclass that would let children add reasonable editpolicies
+ // removeEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CONNECTION_HANDLES_ROLE);
+ }
+
+ /**
+ * Papyrus codeGen
+ *
+ * @generated
+ **/
+ protected void handleNotificationEvent(Notification event) {
+ super.handleNotificationEvent(event);
+
+ }
+
+ /**
+ * @generated
+ */
+ protected LayoutEditPolicy createLayoutEditPolicy() {
+ org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy lep = new org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy() {
+
+ protected EditPolicy createChildEditPolicy(EditPart child) {
+ View childView = (View)child.getModel();
+ switch(UMLVisualIDRegistry.getVisualID(childView)) {
+ case PortEditPart.VISUAL_ID:
+ case ParameterEditPart.VISUAL_ID:
+
+ return new BorderItemResizableEditPolicy();
+
+ }
+ EditPolicy result = child.getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(result == null) {
+ result = new NonResizableEditPolicy();
+ }
+ return result;
+ }
+
+ protected Command getMoveChildrenCommand(Request request) {
+ return null;
+ }
+
+ protected Command getCreateCommand(CreateRequest request) {
+ return null;
+ }
+ };
+ return lep;
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createNodeShape() {
+ return primaryShape = new ProtocolStateMachineCompositeFigure();
+ }
+
+ /**
+ * @generated
+ */
+ public ProtocolStateMachineCompositeFigure getPrimaryShape() {
+ return (ProtocolStateMachineCompositeFigure)primaryShape;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean addFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof ProtocolStateMachineCompositeNameEditPartCN) {
+ ((ProtocolStateMachineCompositeNameEditPartCN)childEditPart).setLabel(getPrimaryShape().getNameLabel());
+ return true;
+ }
+
+ if(childEditPart instanceof ProtocolStateMachineCompositeCompartmentEditPartCN) {
+ IFigure pane = getPrimaryShape().getCompositeCompartmentFigure();
+ setupContentPane(pane); // FIXME each comparment should handle his content pane in his own way
+ pane.add(((ProtocolStateMachineCompositeCompartmentEditPartCN)childEditPart).getFigure());
+ return true;
+ }
+
+ //Papyrus Gencode :Affixed Port locator
+ if(childEditPart instanceof PortEditPart) {
+ IBorderItemLocator locator = new PortPositionLocator(getMainFigure(), PositionConstants.NONE);
+ getBorderedFigure().getBorderItemContainer().add(((PortEditPart)childEditPart).getFigure(), locator);
+ return true;
+ }
+
+ //Papyrus Gencode :Affixed Port locator
+ if(childEditPart instanceof ParameterEditPart) {
+ IBorderItemLocator locator = new PortPositionLocator(getMainFigure(), PositionConstants.NONE);
+ getBorderedFigure().getBorderItemContainer().add(((ParameterEditPart)childEditPart).getFigure(), locator);
+ return true;
+ }
+
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean removeFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof ProtocolStateMachineCompositeNameEditPartCN) {
+ return true;
+ }
+ if(childEditPart instanceof ProtocolStateMachineCompositeCompartmentEditPartCN) {
+ IFigure pane = getPrimaryShape().getCompositeCompartmentFigure();
+ setupContentPane(pane); // FIXME each comparment should handle his content pane in his own way
+ pane.remove(((ProtocolStateMachineCompositeCompartmentEditPartCN)childEditPart).getFigure());
+ return true;
+ }
+ if(childEditPart instanceof PortEditPart) {
+ getBorderedFigure().getBorderItemContainer().remove(((PortEditPart)childEditPart).getFigure());
+ return true;
+ }
+ if(childEditPart instanceof ParameterEditPart) {
+ getBorderedFigure().getBorderItemContainer().remove(((ParameterEditPart)childEditPart).getFigure());
+ return true;
+ }
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected void addChildVisual(EditPart childEditPart, int index) {
+ if(addFixedChild(childEditPart)) {
+ return;
+ }
+ super.addChildVisual(childEditPart, -1);
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeChildVisual(EditPart childEditPart) {
+ if(removeFixedChild(childEditPart)) {
+ return;
+ }
+ super.removeChildVisual(childEditPart);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure getContentPaneFor(IGraphicalEditPart editPart) {
+ if(editPart instanceof ProtocolStateMachineCompositeCompartmentEditPartCN) {
+ return getPrimaryShape().getCompositeCompartmentFigure();
+ }
+ if(editPart instanceof IBorderItemEditPart) {
+ return getBorderedFigure().getBorderItemContainer();
+ }
+ return getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ protected NodeFigure createNodePlate() {
+ String prefElementId = "ProtocolStateMachine";
+ IPreferenceStore store = UMLDiagramEditorPlugin.getInstance().getPreferenceStore();
+ String preferenceConstantWitdh = PreferenceInitializerForElementHelper.getpreferenceKey(getNotationView(), prefElementId, PreferenceConstantHelper.WIDTH);
+ String preferenceConstantHeight = PreferenceInitializerForElementHelper.getpreferenceKey(getNotationView(), prefElementId, PreferenceConstantHelper.HEIGHT);
+ DefaultSizeNodeFigure result = new DefaultSizeNodeFigure(store.getInt(preferenceConstantWitdh), store.getInt(preferenceConstantHeight));
+
+ return result;
+ }
+
+ /**
+ * Creates figure for this edit part.
+ *
+ * Body of this method does not depend on settings in generation model
+ * so you may safely remove <i>generated</i> tag and modify it.
+ *
+ * @generated
+ */
+ protected NodeFigure createMainFigure() {
+ NodeFigure figure = createNodePlate();
+ figure.setLayoutManager(new StackLayout());
+ IFigure shape = createNodeShape();
+ figure.add(shape);
+ contentPane = setupContentPane(shape);
+ return figure;
+ }
+
+ /**
+ * Default implementation treats passed figure as content pane.
+ * Respects layout one may have set for generated figure.
+ *
+ * @param nodeShape
+ * instance of generated figure class
+ * @generated
+ */
+ protected IFigure setupContentPane(IFigure nodeShape) {
+ if(nodeShape.getLayoutManager() == null) {
+ ConstrainedToolbarLayout layout = new ConstrainedToolbarLayout();
+ layout.setSpacing(5);
+ nodeShape.setLayoutManager(layout);
+ }
+ return nodeShape; // use nodeShape itself as contentPane
+ }
+
+ /**
+ * @generated
+ */
+ public IFigure getContentPane() {
+ if(contentPane != null) {
+ return contentPane;
+ }
+ return super.getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ protected void setForegroundColor(Color color) {
+ if(primaryShape != null) {
+ primaryShape.setForegroundColor(color);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLineWidth(int width) {
+ if(primaryShape instanceof Shape) {
+ ((Shape)primaryShape).setLineWidth(width);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLineType(int style) {
+ if(primaryShape instanceof Shape) {
+ ((Shape)primaryShape).setLineStyle(style);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public EditPart getPrimaryChildEditPart() {
+ return getChildBySemanticHint(UMLVisualIDRegistry.getType(ProtocolStateMachineCompositeNameEditPartCN.VISUAL_ID));
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnSource() {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(12);
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ types.add(UMLElementTypes.Substitution_4011);
+ types.add(UMLElementTypes.Realization_4006);
+ types.add(UMLElementTypes.Manifestation_4012);
+ types.add(UMLElementTypes.Abstraction_4007);
+ types.add(UMLElementTypes.Usage_4008);
+ types.add(UMLElementTypes.Deployment_4009);
+ types.add(UMLElementTypes.Dependency_4017);
+ types.add(UMLElementTypes.Dependency_4010);
+ types.add(UMLElementTypes.Generalization_4015);
+ types.add(UMLElementTypes.InformationFlow_4021);
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnSourceAndTarget(IGraphicalEditPart targetEditPart) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMATypesForTarget(IElementType relationshipType) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(relationshipType == UMLElementTypes.ComponentRealization_4004) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InterfaceRealization_4005) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Substitution_4011) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Realization_4006) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Manifestation_4012) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Abstraction_4007) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Usage_4008) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Deployment_4009) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4017) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4010) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Generalization_4015) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ } else if(relationshipType == UMLElementTypes.InformationFlow_4021) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnTarget() {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(17);
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ types.add(UMLElementTypes.Substitution_4011);
+ types.add(UMLElementTypes.Realization_4006);
+ types.add(UMLElementTypes.Manifestation_4012);
+ types.add(UMLElementTypes.Abstraction_4007);
+ types.add(UMLElementTypes.Usage_4008);
+ types.add(UMLElementTypes.Deployment_4009);
+ types.add(UMLElementTypes.Dependency_4017);
+ types.add(UMLElementTypes.Dependency_4010);
+ types.add(UMLElementTypes.Generalization_4015);
+ types.add(UMLElementTypes.TimeObservationEvent_4018);
+ types.add(UMLElementTypes.DurationObservationEvent_4019);
+ types.add(UMLElementTypes.InformationItemRepresented_4020);
+ types.add(UMLElementTypes.InformationFlow_4021);
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMATypesForSource(IElementType relationshipType) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(relationshipType == UMLElementTypes.CommentAnnotatedElement_4002) {
+ types.add(UMLElementTypes.Comment_2109);
+ types.add(UMLElementTypes.Comment_3097);
+ } else if(relationshipType == UMLElementTypes.ConstraintConstrainedElement_4003) {
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.ComponentRealization_4004) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InterfaceRealization_4005) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Substitution_4011) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Realization_4006) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Manifestation_4012) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Abstraction_4007) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Usage_4008) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Deployment_4009) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4017) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4010) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Generalization_4015) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ } else if(relationshipType == UMLElementTypes.TimeObservationEvent_4018) {
+ types.add(UMLElementTypes.TimeObservation_2094);
+ } else if(relationshipType == UMLElementTypes.DurationObservationEvent_4019) {
+ types.add(UMLElementTypes.DurationObservation_2093);
+ } else if(relationshipType == UMLElementTypes.InformationItemRepresented_4020) {
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.InformationItem_3094);
+ } else if(relationshipType == UMLElementTypes.InformationFlow_4021) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public Object getPreferredValue(EStructuralFeature feature) {
+ IPreferenceStore preferenceStore = (IPreferenceStore)getDiagramPreferencesHint().getPreferenceStore();
+ Object result = null;
+
+ if(feature == NotationPackage.eINSTANCE.getLineStyle_LineColor() || feature == NotationPackage.eINSTANCE.getFontStyle_FontColor() || feature == NotationPackage.eINSTANCE.getFillStyle_FillColor()) {
+ String prefColor = null;
+ if(feature == NotationPackage.eINSTANCE.getLineStyle_LineColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("ProtocolStateMachine", PreferenceConstantHelper.COLOR_LINE);
+ } else if(feature == NotationPackage.eINSTANCE.getFontStyle_FontColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("ProtocolStateMachine", PreferenceConstantHelper.COLOR_FONT);
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_FillColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("ProtocolStateMachine", PreferenceConstantHelper.COLOR_FILL);
+ }
+ result = FigureUtilities.RGBToInteger(PreferenceConverter.getColor((IPreferenceStore)preferenceStore, prefColor));
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_Transparency() || feature == NotationPackage.eINSTANCE.getFillStyle_Gradient()) {
+ String prefGradient = PreferenceConstantHelper.getElementConstant("ProtocolStateMachine", PreferenceConstantHelper.COLOR_GRADIENT);
+ GradientPreferenceConverter gradientPreferenceConverter = new GradientPreferenceConverter(preferenceStore.getString(prefGradient));
+ if(feature == NotationPackage.eINSTANCE.getFillStyle_Transparency()) {
+ result = new Integer(gradientPreferenceConverter.getTransparency());
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_Gradient()) {
+ result = gradientPreferenceConverter.getGradientData();
+ }
+ }
+
+ if(result == null) {
+ result = getStructuralFeatureValue(feature);
+ }
+ return result;
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ProtocolStateMachineCompositeNameEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ProtocolStateMachineCompositeNameEditPart.java
new file mode 100644
index 00000000000..4112bedcb76
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ProtocolStateMachineCompositeNameEditPart.java
@@ -0,0 +1,791 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EAnnotation;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.emf.transaction.RunnableWithResult;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.AccessibleEditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.requests.DirectEditRequest;
+import org.eclipse.gef.tools.DirectEditManager;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.CompartmentEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
+import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
+import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
+import org.eclipse.gmf.runtime.notation.FontStyle;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
+import org.eclipse.jface.viewers.ICellEditorValidator;
+import org.eclipse.jface.window.Window;
+import org.eclipse.papyrus.diagram.common.directedit.MultilineLabelDirectEditManager;
+import org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition;
+import org.eclipse.papyrus.diagram.common.editpolicies.IMaskManagedLabelEditPolicy;
+import org.eclipse.papyrus.diagram.common.figure.node.ILabelFigure;
+import org.eclipse.papyrus.diagram.common.util.DiagramEditPartsUtil;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLTextSelectionEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.diagram.composite.providers.UMLParserProvider;
+import org.eclipse.papyrus.extensionpoints.editors.Activator;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
+import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
+import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
+import org.eclipse.papyrus.umlutils.ui.VisualInformationPapyrusConstant;
+import org.eclipse.papyrus.umlutils.ui.helper.NameLabelIconHelper;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.AccessibleEvent;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.FontData;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.ui.PlatformUI;
+
+/**
+ * @generated
+ */
+public class ProtocolStateMachineCompositeNameEditPart extends CompartmentEditPart implements ITextAwareEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 5114;
+
+ /**
+ * @generated
+ */
+ private DirectEditManager manager;
+
+ /**
+ * @generated
+ */
+ private IParser parser;
+
+ /**
+ * @generated
+ */
+ private List<?> parserElements;
+
+ /**
+ * @generated
+ */
+ private String defaultText;
+
+ /**
+ * direct edition mode (default, undefined, registered editor, etc.)
+ *
+ * @generated
+ */
+ protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
+
+ /**
+ * configuration from a registered edit dialog
+ *
+ * @generated
+ */
+ protected IDirectEditorConfiguration configuration;
+
+ /**
+ * @generated
+ */
+ public ProtocolStateMachineCompositeNameEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
+ installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new CompositeStructureDiagramEditPart.NodeLabelDragPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelTextHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getText();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getText();
+ } else {
+ return ((Label)figure).getText();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelTextHelper(IFigure figure, String text) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setText(text);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setText(text);
+ } else {
+ ((Label)figure).setText(text);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIconHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getIcon();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getIcon();
+ } else {
+ return ((Label)figure).getIcon();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelIconHelper(IFigure figure, Image icon) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setIcon(icon);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setIcon(icon);
+ } else {
+ ((Label)figure).setIcon(icon);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabel(WrappingLabel figure) {
+ unregisterVisuals();
+ setFigure(figure);
+ defaultText = getLabelTextHelper(figure);
+ registerVisuals();
+ refreshVisuals();
+ }
+
+ /**
+ * @generated
+ */
+ protected List getModelChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject getParserElement() {
+ return resolveSemanticElement();
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIcon() {
+ EObject parserElement = getParserElement();
+ if(parserElement == null) {
+ return null;
+ }
+
+ List<View> views = DiagramEditPartsUtil.findViews(parserElement, getViewer());
+ for(View view : views) {
+ if(NameLabelIconHelper.showLabelIcon(view)) {
+ return UMLElementTypes.getImage(parserElement.eClass());
+ }
+ }
+ return null;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelText() {
+ String text = null;
+ EObject parserElement = getParserElement();
+ if(parserElement != null && getParser() != null) {
+ text = getParser().getPrintString(new EObjectAdapter(parserElement), getParserOptions().intValue());
+ }
+ if(text == null || text.length() == 0) {
+ text = defaultText;
+ }
+ return text;
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabelText(String text) {
+ setLabelTextHelper(getFigure(), text);
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public String getEditText() {
+ if(getParserElement() == null || getParser() == null) {
+ return ""; //$NON-NLS-1$
+ }
+ return getParser().getEditString(new EObjectAdapter(getParserElement()), getParserOptions().intValue());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean isEditable() {
+ return getParser() != null;
+ }
+
+ /**
+ * @generated
+ */
+ public ICellEditorValidator getEditTextValidator() {
+ return new ICellEditorValidator() {
+
+ public String isValid(final Object value) {
+ if(value instanceof String) {
+ final EObject element = getParserElement();
+ final IParser parser = getParser();
+ try {
+ IParserEditStatus valid = (IParserEditStatus)getEditingDomain().runExclusive(new RunnableWithResult.Impl() {
+
+ public void run() {
+ setResult(parser.isValidEditString(new EObjectAdapter(element), (String)value));
+ }
+ });
+ return valid.getCode() == ParserEditStatus.EDITABLE ? null : valid.getMessage();
+ } catch (InterruptedException ie) {
+ ie.printStackTrace();
+ }
+ }
+
+ // shouldn't get here
+ return null;
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ public IContentAssistProcessor getCompletionProcessor() {
+ if(getParserElement() == null || getParser() == null) {
+ return null;
+ }
+ return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
+ }
+
+ /**
+ * @generated
+ */
+ public ParserOptions getParserOptions() {
+ return ParserOptions.NONE;
+ }
+
+ /**
+ * @generated
+ */
+ public IParser getParser() {
+ if(parser == null) {
+ parser = UMLParserProvider.getParser(UMLElementTypes.ProtocolStateMachine_2062, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.diagram.composite.edit.parts.ProtocolStateMachineCompositeNameEditPart.VISUAL_ID));
+ }
+ return parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected DirectEditManager getManager() {
+ if(manager == null) {
+ setManager(new MultilineLabelDirectEditManager(this, MultilineLabelDirectEditManager.getTextCellEditorClass(this), UMLEditPartFactory.getTextCellEditorLocator(this)));
+ }
+ return manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setManager(DirectEditManager manager) {
+ this.manager = manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit() {
+ getManager().show();
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit(Point eventLocation) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(eventLocation.getSWTPoint());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void performDirectEdit(char initialCharacter) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(initialCharacter);
+ } else {
+ performDirectEdit();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEditRequest(Request request) {
+
+ final Request theRequest = request;
+
+ if(IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
+ directEditionMode = getDirectEditionType();
+ }
+ switch(directEditionMode) {
+ case IDirectEdition.NO_DIRECT_EDITION:
+ // no direct edition mode => does nothing
+ return;
+ case IDirectEdition.EXTENDED_DIRECT_EDITOR:
+ updateExtendedEditorConfiguration();
+ if(configuration == null || configuration.getLanguage() == null) {
+ performDefaultDirectEditorEdit(theRequest);
+ } else {
+ configuration.preEditAction(resolveSemanticElement());
+ Dialog dialog = null;
+ if(configuration instanceof IPopupEditorConfiguration) {
+ IPopupEditorHelper helper = ((IPopupEditorConfiguration)configuration).createPopupEditorHelper(this);
+ helper.showEditor();
+ return;
+ } else if(configuration instanceof IAdvancedEditorConfiguration) {
+ dialog = ((IAdvancedEditorConfiguration)configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
+ } else if(configuration instanceof IDirectEditorConfiguration) {
+ dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), ((IDirectEditorConfiguration)configuration).getTextToEdit(resolveSemanticElement()), (IDirectEditorConfiguration)configuration);
+ } else {
+ return;
+ }
+ final Dialog finalDialog = dialog;
+
+ if(Window.OK == dialog.open()) {
+ TransactionalEditingDomain domain = getEditingDomain();
+ RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
+
+ @Override
+ protected void doExecute() {
+ configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog)finalDialog).getValue());
+
+ }
+ };
+ domain.getCommandStack().execute(command);
+ }
+ }
+ break;
+ case IDirectEdition.DEFAULT_DIRECT_EDITOR:
+
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ break;
+ default:
+ break;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshLabel();
+ refreshFont();
+ refreshFontColor();
+ refreshUnderline();
+ refreshStrikeThrough();
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshLabel() {
+ EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
+ if(maskLabelPolicy == null) {
+ setLabelTextHelper(getFigure(), getLabelText());
+ setLabelIconHelper(getFigure(), getLabelIcon());
+ }
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshUnderline() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextUnderline(style.isUnderline());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshStrikeThrough() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextStrikeThrough(style.isStrikeThrough());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshFont() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null) {
+ FontData fontData = new FontData(style.getFontName(), style.getFontHeight(), (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
+ setFont(fontData);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setFontColor(Color color) {
+ getFigure().setForegroundColor(color);
+ }
+
+ /**
+ * @generated
+ */
+ protected void addSemanticListeners() {
+ if(getParser() instanceof ISemanticParser) {
+ EObject element = resolveSemanticElement();
+ parserElements = ((ISemanticParser)getParser()).getSemanticElementsBeingParsed(element);
+ for(int i = 0; i < parserElements.size(); i++) {
+ addListenerFilter("SemanticModel" + i, this, (EObject)parserElements.get(i)); //$NON-NLS-1$
+ }
+ } else {
+ super.addSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeSemanticListeners() {
+ if(parserElements != null) {
+ for(int i = 0; i < parserElements.size(); i++) {
+ removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
+ }
+ } else {
+ super.removeSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected AccessibleEditPart getAccessibleEditPart() {
+ if(accessibleEP == null) {
+ accessibleEP = new AccessibleGraphicalEditPart() {
+
+ public void getName(AccessibleEvent e) {
+ e.result = getLabelTextHelper(getFigure());
+ }
+ };
+ }
+ return accessibleEP;
+ }
+
+ /**
+ * @generated
+ */
+ private View getFontStyleOwnerView() {
+ return (View)getModel();
+ }
+
+ /**
+ * Returns the kind of associated editor for direct edition.
+ *
+ * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition
+ * @generated
+ */
+ public int getDirectEditionType() {
+ if(checkExtendedEditor()) {
+ initExtendedEditorConfiguration();
+ return IDirectEdition.EXTENDED_DIRECT_EDITOR;
+ }
+ if(checkDefaultEdition()) {
+ return IDirectEdition.DEFAULT_DIRECT_EDITOR;
+ }
+
+ // not a named element. no specific editor => do nothing
+ return IDirectEdition.NO_DIRECT_EDITION;
+ }
+
+ /**
+ * Checks if an extended editor is present.
+ *
+ * @return <code>true</code> if an extended editor is present.
+ * @generated
+ */
+ protected boolean checkExtendedEditor() {
+ if(resolveSemanticElement() != null) {
+ return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ return false;
+ }
+
+ /**
+ * Checks if a default direct edition is available
+ *
+ * @return <code>true</code> if a default direct edition is available
+ * @generated
+ */
+ protected boolean checkDefaultEdition() {
+ return (getParser() != null);
+ }
+
+ /**
+ * Initializes the extended editor configuration
+ *
+ * @generated
+ */
+ protected void initExtendedEditorConfiguration() {
+ if(configuration == null) {
+ final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("")) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else {
+ configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ }
+ }
+
+ /**
+ * Updates the preference configuration
+ *
+ * @generated
+ */
+ protected void updateExtendedEditorConfiguration() {
+ String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("") && languagePreferred != configuration.getLanguage()) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else if(IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
+ configuration = null;
+ }
+ }
+
+ /**
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
+ protected void performDefaultDirectEditorEdit(final Request theRequest) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void addNotationalListeners() {
+ super.addNotationalListeners();
+ addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeNotationalListeners() {
+ super.removeNotationalListeners();
+ removeListenerFilter("PrimaryView"); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void handleNotificationEvent(Notification event) {
+ refreshLabel();
+ Object feature = event.getFeature();
+ if(NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
+ Integer c = (Integer)event.getNewValue();
+ setFontColor(DiagramColorRegistry.getInstance().getColor(c));
+ } else if(NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
+ refreshUnderline();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
+ refreshStrikeThrough();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
+ refreshFont();
+ } else {
+ if(getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
+ refreshLabel();
+ }
+ if(getParser() instanceof ISemanticParser) {
+ ISemanticParser modelParser = (ISemanticParser)getParser();
+ if(modelParser.areSemanticElementsAffected(null, event)) {
+ removeSemanticListeners();
+ if(resolveSemanticElement() != null) {
+ addSemanticListeners();
+ }
+ refreshLabel();
+ }
+ }
+ }
+
+ if(event.getNewValue() instanceof EAnnotation && VisualInformationPapyrusConstant.DISPLAY_NAMELABELICON.equals(((EAnnotation)event.getNewValue()).getSource())) {
+ refreshLabel();
+ }
+
+ super.handleNotificationEvent(event);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createFigure() {
+ // Parent should assign one using setLabel() method
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ private static final String ADD_PARENT_MODEL = "AddParentModel";
+
+ /**
+ * @generated
+ */
+ public void activate() {
+ super.activate();
+ addOwnerElementListeners();
+ }
+
+ /**
+ * @generated
+ */
+ protected void addOwnerElementListeners() {
+ addListenerFilter(ADD_PARENT_MODEL, this, ((View)getParent().getModel())); //$NON-NLS-1$
+
+ }
+
+ /**
+ * @generated
+ */
+ public void deactivate() {
+ removeOwnerElementListeners();
+ super.deactivate();
+
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeOwnerElementListeners() {
+ removeListenerFilter(ADD_PARENT_MODEL);
+
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ProtocolStateMachineCompositeNameEditPartCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ProtocolStateMachineCompositeNameEditPartCN.java
new file mode 100644
index 00000000000..839116add8d
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ProtocolStateMachineCompositeNameEditPartCN.java
@@ -0,0 +1,791 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EAnnotation;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.emf.transaction.RunnableWithResult;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.AccessibleEditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.requests.DirectEditRequest;
+import org.eclipse.gef.tools.DirectEditManager;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.CompartmentEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
+import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
+import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
+import org.eclipse.gmf.runtime.notation.FontStyle;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
+import org.eclipse.jface.viewers.ICellEditorValidator;
+import org.eclipse.jface.window.Window;
+import org.eclipse.papyrus.diagram.common.directedit.MultilineLabelDirectEditManager;
+import org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition;
+import org.eclipse.papyrus.diagram.common.editpolicies.IMaskManagedLabelEditPolicy;
+import org.eclipse.papyrus.diagram.common.figure.node.ILabelFigure;
+import org.eclipse.papyrus.diagram.common.util.DiagramEditPartsUtil;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLTextSelectionEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.diagram.composite.providers.UMLParserProvider;
+import org.eclipse.papyrus.extensionpoints.editors.Activator;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
+import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
+import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
+import org.eclipse.papyrus.umlutils.ui.VisualInformationPapyrusConstant;
+import org.eclipse.papyrus.umlutils.ui.helper.NameLabelIconHelper;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.AccessibleEvent;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.FontData;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.ui.PlatformUI;
+
+/**
+ * @generated
+ */
+public class ProtocolStateMachineCompositeNameEditPartCN extends CompartmentEditPart implements ITextAwareEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 5130;
+
+ /**
+ * @generated
+ */
+ private DirectEditManager manager;
+
+ /**
+ * @generated
+ */
+ private IParser parser;
+
+ /**
+ * @generated
+ */
+ private List<?> parserElements;
+
+ /**
+ * @generated
+ */
+ private String defaultText;
+
+ /**
+ * direct edition mode (default, undefined, registered editor, etc.)
+ *
+ * @generated
+ */
+ protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
+
+ /**
+ * configuration from a registered edit dialog
+ *
+ * @generated
+ */
+ protected IDirectEditorConfiguration configuration;
+
+ /**
+ * @generated
+ */
+ public ProtocolStateMachineCompositeNameEditPartCN(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
+ installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new CompositeStructureDiagramEditPart.NodeLabelDragPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelTextHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getText();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getText();
+ } else {
+ return ((Label)figure).getText();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelTextHelper(IFigure figure, String text) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setText(text);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setText(text);
+ } else {
+ ((Label)figure).setText(text);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIconHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getIcon();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getIcon();
+ } else {
+ return ((Label)figure).getIcon();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelIconHelper(IFigure figure, Image icon) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setIcon(icon);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setIcon(icon);
+ } else {
+ ((Label)figure).setIcon(icon);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabel(WrappingLabel figure) {
+ unregisterVisuals();
+ setFigure(figure);
+ defaultText = getLabelTextHelper(figure);
+ registerVisuals();
+ refreshVisuals();
+ }
+
+ /**
+ * @generated
+ */
+ protected List getModelChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject getParserElement() {
+ return resolveSemanticElement();
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIcon() {
+ EObject parserElement = getParserElement();
+ if(parserElement == null) {
+ return null;
+ }
+
+ List<View> views = DiagramEditPartsUtil.findViews(parserElement, getViewer());
+ for(View view : views) {
+ if(NameLabelIconHelper.showLabelIcon(view)) {
+ return UMLElementTypes.getImage(parserElement.eClass());
+ }
+ }
+ return null;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelText() {
+ String text = null;
+ EObject parserElement = getParserElement();
+ if(parserElement != null && getParser() != null) {
+ text = getParser().getPrintString(new EObjectAdapter(parserElement), getParserOptions().intValue());
+ }
+ if(text == null || text.length() == 0) {
+ text = defaultText;
+ }
+ return text;
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabelText(String text) {
+ setLabelTextHelper(getFigure(), text);
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public String getEditText() {
+ if(getParserElement() == null || getParser() == null) {
+ return ""; //$NON-NLS-1$
+ }
+ return getParser().getEditString(new EObjectAdapter(getParserElement()), getParserOptions().intValue());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean isEditable() {
+ return getParser() != null;
+ }
+
+ /**
+ * @generated
+ */
+ public ICellEditorValidator getEditTextValidator() {
+ return new ICellEditorValidator() {
+
+ public String isValid(final Object value) {
+ if(value instanceof String) {
+ final EObject element = getParserElement();
+ final IParser parser = getParser();
+ try {
+ IParserEditStatus valid = (IParserEditStatus)getEditingDomain().runExclusive(new RunnableWithResult.Impl() {
+
+ public void run() {
+ setResult(parser.isValidEditString(new EObjectAdapter(element), (String)value));
+ }
+ });
+ return valid.getCode() == ParserEditStatus.EDITABLE ? null : valid.getMessage();
+ } catch (InterruptedException ie) {
+ ie.printStackTrace();
+ }
+ }
+
+ // shouldn't get here
+ return null;
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ public IContentAssistProcessor getCompletionProcessor() {
+ if(getParserElement() == null || getParser() == null) {
+ return null;
+ }
+ return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
+ }
+
+ /**
+ * @generated
+ */
+ public ParserOptions getParserOptions() {
+ return ParserOptions.NONE;
+ }
+
+ /**
+ * @generated
+ */
+ public IParser getParser() {
+ if(parser == null) {
+ parser = UMLParserProvider.getParser(UMLElementTypes.ProtocolStateMachine_3074, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.diagram.composite.edit.parts.ProtocolStateMachineCompositeNameEditPartCN.VISUAL_ID));
+ }
+ return parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected DirectEditManager getManager() {
+ if(manager == null) {
+ setManager(new MultilineLabelDirectEditManager(this, MultilineLabelDirectEditManager.getTextCellEditorClass(this), UMLEditPartFactory.getTextCellEditorLocator(this)));
+ }
+ return manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setManager(DirectEditManager manager) {
+ this.manager = manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit() {
+ getManager().show();
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit(Point eventLocation) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(eventLocation.getSWTPoint());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void performDirectEdit(char initialCharacter) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(initialCharacter);
+ } else {
+ performDirectEdit();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEditRequest(Request request) {
+
+ final Request theRequest = request;
+
+ if(IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
+ directEditionMode = getDirectEditionType();
+ }
+ switch(directEditionMode) {
+ case IDirectEdition.NO_DIRECT_EDITION:
+ // no direct edition mode => does nothing
+ return;
+ case IDirectEdition.EXTENDED_DIRECT_EDITOR:
+ updateExtendedEditorConfiguration();
+ if(configuration == null || configuration.getLanguage() == null) {
+ performDefaultDirectEditorEdit(theRequest);
+ } else {
+ configuration.preEditAction(resolveSemanticElement());
+ Dialog dialog = null;
+ if(configuration instanceof IPopupEditorConfiguration) {
+ IPopupEditorHelper helper = ((IPopupEditorConfiguration)configuration).createPopupEditorHelper(this);
+ helper.showEditor();
+ return;
+ } else if(configuration instanceof IAdvancedEditorConfiguration) {
+ dialog = ((IAdvancedEditorConfiguration)configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
+ } else if(configuration instanceof IDirectEditorConfiguration) {
+ dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), ((IDirectEditorConfiguration)configuration).getTextToEdit(resolveSemanticElement()), (IDirectEditorConfiguration)configuration);
+ } else {
+ return;
+ }
+ final Dialog finalDialog = dialog;
+
+ if(Window.OK == dialog.open()) {
+ TransactionalEditingDomain domain = getEditingDomain();
+ RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
+
+ @Override
+ protected void doExecute() {
+ configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog)finalDialog).getValue());
+
+ }
+ };
+ domain.getCommandStack().execute(command);
+ }
+ }
+ break;
+ case IDirectEdition.DEFAULT_DIRECT_EDITOR:
+
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ break;
+ default:
+ break;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshLabel();
+ refreshFont();
+ refreshFontColor();
+ refreshUnderline();
+ refreshStrikeThrough();
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshLabel() {
+ EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
+ if(maskLabelPolicy == null) {
+ setLabelTextHelper(getFigure(), getLabelText());
+ setLabelIconHelper(getFigure(), getLabelIcon());
+ }
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshUnderline() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextUnderline(style.isUnderline());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshStrikeThrough() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextStrikeThrough(style.isStrikeThrough());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshFont() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null) {
+ FontData fontData = new FontData(style.getFontName(), style.getFontHeight(), (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
+ setFont(fontData);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setFontColor(Color color) {
+ getFigure().setForegroundColor(color);
+ }
+
+ /**
+ * @generated
+ */
+ protected void addSemanticListeners() {
+ if(getParser() instanceof ISemanticParser) {
+ EObject element = resolveSemanticElement();
+ parserElements = ((ISemanticParser)getParser()).getSemanticElementsBeingParsed(element);
+ for(int i = 0; i < parserElements.size(); i++) {
+ addListenerFilter("SemanticModel" + i, this, (EObject)parserElements.get(i)); //$NON-NLS-1$
+ }
+ } else {
+ super.addSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeSemanticListeners() {
+ if(parserElements != null) {
+ for(int i = 0; i < parserElements.size(); i++) {
+ removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
+ }
+ } else {
+ super.removeSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected AccessibleEditPart getAccessibleEditPart() {
+ if(accessibleEP == null) {
+ accessibleEP = new AccessibleGraphicalEditPart() {
+
+ public void getName(AccessibleEvent e) {
+ e.result = getLabelTextHelper(getFigure());
+ }
+ };
+ }
+ return accessibleEP;
+ }
+
+ /**
+ * @generated
+ */
+ private View getFontStyleOwnerView() {
+ return (View)getModel();
+ }
+
+ /**
+ * Returns the kind of associated editor for direct edition.
+ *
+ * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition
+ * @generated
+ */
+ public int getDirectEditionType() {
+ if(checkExtendedEditor()) {
+ initExtendedEditorConfiguration();
+ return IDirectEdition.EXTENDED_DIRECT_EDITOR;
+ }
+ if(checkDefaultEdition()) {
+ return IDirectEdition.DEFAULT_DIRECT_EDITOR;
+ }
+
+ // not a named element. no specific editor => do nothing
+ return IDirectEdition.NO_DIRECT_EDITION;
+ }
+
+ /**
+ * Checks if an extended editor is present.
+ *
+ * @return <code>true</code> if an extended editor is present.
+ * @generated
+ */
+ protected boolean checkExtendedEditor() {
+ if(resolveSemanticElement() != null) {
+ return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ return false;
+ }
+
+ /**
+ * Checks if a default direct edition is available
+ *
+ * @return <code>true</code> if a default direct edition is available
+ * @generated
+ */
+ protected boolean checkDefaultEdition() {
+ return (getParser() != null);
+ }
+
+ /**
+ * Initializes the extended editor configuration
+ *
+ * @generated
+ */
+ protected void initExtendedEditorConfiguration() {
+ if(configuration == null) {
+ final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("")) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else {
+ configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ }
+ }
+
+ /**
+ * Updates the preference configuration
+ *
+ * @generated
+ */
+ protected void updateExtendedEditorConfiguration() {
+ String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("") && languagePreferred != configuration.getLanguage()) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else if(IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
+ configuration = null;
+ }
+ }
+
+ /**
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
+ protected void performDefaultDirectEditorEdit(final Request theRequest) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void addNotationalListeners() {
+ super.addNotationalListeners();
+ addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeNotationalListeners() {
+ super.removeNotationalListeners();
+ removeListenerFilter("PrimaryView"); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void handleNotificationEvent(Notification event) {
+ refreshLabel();
+ Object feature = event.getFeature();
+ if(NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
+ Integer c = (Integer)event.getNewValue();
+ setFontColor(DiagramColorRegistry.getInstance().getColor(c));
+ } else if(NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
+ refreshUnderline();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
+ refreshStrikeThrough();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
+ refreshFont();
+ } else {
+ if(getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
+ refreshLabel();
+ }
+ if(getParser() instanceof ISemanticParser) {
+ ISemanticParser modelParser = (ISemanticParser)getParser();
+ if(modelParser.areSemanticElementsAffected(null, event)) {
+ removeSemanticListeners();
+ if(resolveSemanticElement() != null) {
+ addSemanticListeners();
+ }
+ refreshLabel();
+ }
+ }
+ }
+
+ if(event.getNewValue() instanceof EAnnotation && VisualInformationPapyrusConstant.DISPLAY_NAMELABELICON.equals(((EAnnotation)event.getNewValue()).getSource())) {
+ refreshLabel();
+ }
+
+ super.handleNotificationEvent(event);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createFigure() {
+ // Parent should assign one using setLabel() method
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ private static final String ADD_PARENT_MODEL = "AddParentModel";
+
+ /**
+ * @generated
+ */
+ public void activate() {
+ super.activate();
+ addOwnerElementListeners();
+ }
+
+ /**
+ * @generated
+ */
+ protected void addOwnerElementListeners() {
+ addListenerFilter(ADD_PARENT_MODEL, this, ((View)getParent().getModel())); //$NON-NLS-1$
+
+ }
+
+ /**
+ * @generated
+ */
+ public void deactivate() {
+ removeOwnerElementListeners();
+ super.deactivate();
+
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeOwnerElementListeners() {
+ removeListenerFilter(ADD_PARENT_MODEL);
+
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ProtocolStateMachineEditPartCLN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ProtocolStateMachineEditPartCLN.java
new file mode 100644
index 00000000000..5dd169c9f8a
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ProtocolStateMachineEditPartCLN.java
@@ -0,0 +1,781 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EAnnotation;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.emf.transaction.RunnableWithResult;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.AccessibleEditPart;
+import org.eclipse.gef.DragTracker;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.requests.DirectEditRequest;
+import org.eclipse.gef.requests.SelectionRequest;
+import org.eclipse.gef.tools.DirectEditManager;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.CompartmentEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IPrimaryEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.ListItemComponentEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
+import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
+import org.eclipse.gmf.runtime.diagram.ui.tools.DragEditPartsTrackerEx;
+import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
+import org.eclipse.gmf.runtime.notation.FontStyle;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
+import org.eclipse.jface.viewers.ICellEditorValidator;
+import org.eclipse.jface.window.Window;
+import org.eclipse.papyrus.diagram.common.directedit.MultilineLabelDirectEditManager;
+import org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition;
+import org.eclipse.papyrus.diagram.common.editpolicies.IMaskManagedLabelEditPolicy;
+import org.eclipse.papyrus.diagram.common.figure.node.ILabelFigure;
+import org.eclipse.papyrus.diagram.common.util.DiagramEditPartsUtil;
+import org.eclipse.papyrus.diagram.composite.edit.policies.ProtocolStateMachineItemSemanticEditPolicyCLN;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLTextNonResizableEditPolicy;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLTextSelectionEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.diagram.composite.providers.UMLParserProvider;
+import org.eclipse.papyrus.extensionpoints.editors.Activator;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
+import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
+import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
+import org.eclipse.papyrus.umlutils.ui.VisualInformationPapyrusConstant;
+import org.eclipse.papyrus.umlutils.ui.helper.NameLabelIconHelper;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.AccessibleEvent;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.FontData;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.ui.PlatformUI;
+
+/**
+ * @generated
+ */
+public class ProtocolStateMachineEditPartCLN
+
+extends CompartmentEditPart
+
+implements ITextAwareEditPart, IPrimaryEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 3105;
+
+ /**
+ * @generated
+ */
+ private DirectEditManager manager;
+
+ /**
+ * @generated
+ */
+ private IParser parser;
+
+ /**
+ * @generated
+ */
+ private List<?> parserElements;
+
+ /**
+ * @generated
+ */
+ private String defaultText;
+
+ /**
+ * direct edition mode (default, undefined, registered editor, etc.)
+ *
+ * @generated
+ */
+ protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
+
+ /**
+ * configuration from a registered edit dialog
+ *
+ * @generated
+ */
+ protected IDirectEditorConfiguration configuration;
+
+ /**
+ * @generated
+ */
+ public ProtocolStateMachineEditPartCLN(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ public DragTracker getDragTracker(Request request) {
+ if(request instanceof SelectionRequest && ((SelectionRequest)request).getLastButtonPressed() == 3) {
+ return null;
+ }
+ return new DragEditPartsTrackerEx(this);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new ProtocolStateMachineItemSemanticEditPolicyCLN());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new UMLTextNonResizableEditPolicy());
+ installEditPolicy(EditPolicy.COMPONENT_ROLE, new ListItemComponentEditPolicy());
+ installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelTextHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getText();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getText();
+ } else {
+ return ((Label)figure).getText();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelTextHelper(IFigure figure, String text) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setText(text);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setText(text);
+ } else {
+ ((Label)figure).setText(text);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIconHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getIcon();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getIcon();
+ } else {
+ return ((Label)figure).getIcon();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelIconHelper(IFigure figure, Image icon) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setIcon(icon);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setIcon(icon);
+ } else {
+ ((Label)figure).setIcon(icon);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabel(IFigure figure) {
+ unregisterVisuals();
+ setFigure(figure);
+ defaultText = getLabelTextHelper(figure);
+ registerVisuals();
+ refreshVisuals();
+ }
+
+ /**
+ * @generated
+ */
+ protected List getModelChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject getParserElement() {
+ return resolveSemanticElement();
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIcon() {
+ EObject parserElement = getParserElement();
+ if(parserElement == null) {
+ return null;
+ }
+
+ List<View> views = DiagramEditPartsUtil.findViews(parserElement, getViewer());
+ for(View view : views) {
+ if(NameLabelIconHelper.showLabelIcon(view)) {
+ return UMLElementTypes.getImage(parserElement.eClass());
+ }
+ }
+ return null;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelText() {
+ String text = null;
+ EObject parserElement = getParserElement();
+ if(parserElement != null && getParser() != null) {
+ text = getParser().getPrintString(new EObjectAdapter(parserElement), getParserOptions().intValue());
+ }
+ if(text == null || text.length() == 0) {
+ text = defaultText;
+ }
+ return text;
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabelText(String text) {
+ setLabelTextHelper(getFigure(), text);
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public String getEditText() {
+ if(getParserElement() == null || getParser() == null) {
+ return ""; //$NON-NLS-1$
+ }
+ return getParser().getEditString(new EObjectAdapter(getParserElement()), getParserOptions().intValue());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean isEditable() {
+ return getParser() != null;
+ }
+
+ /**
+ * @generated
+ */
+ public ICellEditorValidator getEditTextValidator() {
+ return new ICellEditorValidator() {
+
+ public String isValid(final Object value) {
+ if(value instanceof String) {
+ final EObject element = getParserElement();
+ final IParser parser = getParser();
+ try {
+ IParserEditStatus valid = (IParserEditStatus)getEditingDomain().runExclusive(new RunnableWithResult.Impl() {
+
+ public void run() {
+ setResult(parser.isValidEditString(new EObjectAdapter(element), (String)value));
+ }
+ });
+ return valid.getCode() == ParserEditStatus.EDITABLE ? null : valid.getMessage();
+ } catch (InterruptedException ie) {
+ ie.printStackTrace();
+ }
+ }
+
+ // shouldn't get here
+ return null;
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ public IContentAssistProcessor getCompletionProcessor() {
+ if(getParserElement() == null || getParser() == null) {
+ return null;
+ }
+ return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
+ }
+
+ /**
+ * @generated
+ */
+ public ParserOptions getParserOptions() {
+ return ParserOptions.NONE;
+ }
+
+ /**
+ * @generated
+ */
+ public IParser getParser() {
+ if(parser == null) {
+ parser = UMLParserProvider.getParser(UMLElementTypes.ProtocolStateMachine_3105, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.diagram.composite.edit.parts.ProtocolStateMachineEditPartCLN.VISUAL_ID));
+ }
+ return parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected DirectEditManager getManager() {
+ if(manager == null) {
+ setManager(new MultilineLabelDirectEditManager(this, MultilineLabelDirectEditManager.getTextCellEditorClass(this), UMLEditPartFactory.getTextCellEditorLocator(this)));
+ }
+ return manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setManager(DirectEditManager manager) {
+ this.manager = manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit() {
+ getManager().show();
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit(Point eventLocation) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(eventLocation.getSWTPoint());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void performDirectEdit(char initialCharacter) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(initialCharacter);
+ } else {
+ performDirectEdit();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEditRequest(Request request) {
+
+ final Request theRequest = request;
+
+ if(IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
+ directEditionMode = getDirectEditionType();
+ }
+ switch(directEditionMode) {
+ case IDirectEdition.NO_DIRECT_EDITION:
+ // no direct edition mode => does nothing
+ return;
+ case IDirectEdition.EXTENDED_DIRECT_EDITOR:
+ updateExtendedEditorConfiguration();
+ if(configuration == null || configuration.getLanguage() == null) {
+ performDefaultDirectEditorEdit(theRequest);
+ } else {
+ configuration.preEditAction(resolveSemanticElement());
+ Dialog dialog = null;
+ if(configuration instanceof IPopupEditorConfiguration) {
+ IPopupEditorHelper helper = ((IPopupEditorConfiguration)configuration).createPopupEditorHelper(this);
+ helper.showEditor();
+ return;
+ } else if(configuration instanceof IAdvancedEditorConfiguration) {
+ dialog = ((IAdvancedEditorConfiguration)configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
+ } else if(configuration instanceof IDirectEditorConfiguration) {
+ dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), ((IDirectEditorConfiguration)configuration).getTextToEdit(resolveSemanticElement()), (IDirectEditorConfiguration)configuration);
+ } else {
+ return;
+ }
+ final Dialog finalDialog = dialog;
+
+ if(Window.OK == dialog.open()) {
+ TransactionalEditingDomain domain = getEditingDomain();
+ RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
+
+ @Override
+ protected void doExecute() {
+ configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog)finalDialog).getValue());
+
+ }
+ };
+ domain.getCommandStack().execute(command);
+ }
+ }
+ break;
+ case IDirectEdition.DEFAULT_DIRECT_EDITOR:
+
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ break;
+ default:
+ break;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshLabel();
+ refreshFont();
+ refreshFontColor();
+ refreshUnderline();
+ refreshStrikeThrough();
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshLabel() {
+ EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
+ if(maskLabelPolicy == null) {
+ setLabelTextHelper(getFigure(), getLabelText());
+ setLabelIconHelper(getFigure(), getLabelIcon());
+ }
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshUnderline() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextUnderline(style.isUnderline());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshStrikeThrough() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextStrikeThrough(style.isStrikeThrough());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshFont() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null) {
+ FontData fontData = new FontData(style.getFontName(), style.getFontHeight(), (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
+ setFont(fontData);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setFontColor(Color color) {
+ getFigure().setForegroundColor(color);
+ }
+
+ /**
+ * @generated
+ */
+ protected void addSemanticListeners() {
+ if(getParser() instanceof ISemanticParser) {
+ EObject element = resolveSemanticElement();
+ parserElements = ((ISemanticParser)getParser()).getSemanticElementsBeingParsed(element);
+ for(int i = 0; i < parserElements.size(); i++) {
+ addListenerFilter("SemanticModel" + i, this, (EObject)parserElements.get(i)); //$NON-NLS-1$
+ }
+ } else {
+ super.addSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeSemanticListeners() {
+ if(parserElements != null) {
+ for(int i = 0; i < parserElements.size(); i++) {
+ removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
+ }
+ } else {
+ super.removeSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected AccessibleEditPart getAccessibleEditPart() {
+ if(accessibleEP == null) {
+ accessibleEP = new AccessibleGraphicalEditPart() {
+
+ public void getName(AccessibleEvent e) {
+ e.result = getLabelTextHelper(getFigure());
+ }
+ };
+ }
+ return accessibleEP;
+ }
+
+ /**
+ * @generated
+ */
+ private View getFontStyleOwnerView() {
+ return getPrimaryView();
+ }
+
+ /**
+ * Returns the kind of associated editor for direct edition.
+ *
+ * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition
+ * @generated
+ */
+ public int getDirectEditionType() {
+ if(checkExtendedEditor()) {
+ initExtendedEditorConfiguration();
+ return IDirectEdition.EXTENDED_DIRECT_EDITOR;
+ }
+ if(checkDefaultEdition()) {
+ return IDirectEdition.DEFAULT_DIRECT_EDITOR;
+ }
+
+ // not a named element. no specific editor => do nothing
+ return IDirectEdition.NO_DIRECT_EDITION;
+ }
+
+ /**
+ * Checks if an extended editor is present.
+ *
+ * @return <code>true</code> if an extended editor is present.
+ * @generated
+ */
+ protected boolean checkExtendedEditor() {
+ if(resolveSemanticElement() != null) {
+ return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ return false;
+ }
+
+ /**
+ * Checks if a default direct edition is available
+ *
+ * @return <code>true</code> if a default direct edition is available
+ * @generated
+ */
+ protected boolean checkDefaultEdition() {
+ return (getParser() != null);
+ }
+
+ /**
+ * Initializes the extended editor configuration
+ *
+ * @generated
+ */
+ protected void initExtendedEditorConfiguration() {
+ if(configuration == null) {
+ final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("")) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else {
+ configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ }
+ }
+
+ /**
+ * Updates the preference configuration
+ *
+ * @generated
+ */
+ protected void updateExtendedEditorConfiguration() {
+ String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("") && languagePreferred != configuration.getLanguage()) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else if(IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
+ configuration = null;
+ }
+ }
+
+ /**
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
+ protected void performDefaultDirectEditorEdit(final Request theRequest) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void addNotationalListeners() {
+ super.addNotationalListeners();
+ addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeNotationalListeners() {
+ super.removeNotationalListeners();
+ removeListenerFilter("PrimaryView"); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void handleNotificationEvent(Notification event) {
+ Object feature = event.getFeature();
+ if(NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
+ Integer c = (Integer)event.getNewValue();
+ setFontColor(DiagramColorRegistry.getInstance().getColor(c));
+ } else if(NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
+ refreshUnderline();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
+ refreshStrikeThrough();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
+ refreshFont();
+ } else {
+ if(getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
+ refreshLabel();
+ }
+ if(getParser() instanceof ISemanticParser) {
+ ISemanticParser modelParser = (ISemanticParser)getParser();
+ if(modelParser.areSemanticElementsAffected(null, event)) {
+ removeSemanticListeners();
+ if(resolveSemanticElement() != null) {
+ addSemanticListeners();
+ }
+ refreshLabel();
+ }
+ }
+ }
+ if(event.getNewValue() instanceof EAnnotation && VisualInformationPapyrusConstant.DISPLAY_NAMELABELICON.equals(((EAnnotation)event.getNewValue()).getSource())) {
+ refreshLabel();
+ }
+ super.handleNotificationEvent(event);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createFigure() {
+ IFigure label = createFigurePrim();
+ defaultText = getLabelTextHelper(label);
+ return label;
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createFigurePrim() {
+ return new WrappingLabel();
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/RealizationAppliedStereotypeEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/RealizationAppliedStereotypeEditPart.java
new file mode 100644
index 00000000000..e9c4c84d7fc
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/RealizationAppliedStereotypeEditPart.java
@@ -0,0 +1,742 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.ConnectionLocator;
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.emf.transaction.RunnableWithResult;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.AccessibleEditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.requests.DirectEditRequest;
+import org.eclipse.gef.tools.DirectEditManager;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.LabelEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
+import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
+import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
+import org.eclipse.gmf.runtime.notation.FontStyle;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
+import org.eclipse.jface.viewers.ICellEditorValidator;
+import org.eclipse.jface.window.Window;
+import org.eclipse.papyrus.diagram.common.directedit.MultilineLabelDirectEditManager;
+import org.eclipse.papyrus.diagram.common.editparts.ILabelRoleProvider;
+import org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition;
+import org.eclipse.papyrus.diagram.common.editpolicies.IMaskManagedLabelEditPolicy;
+import org.eclipse.papyrus.diagram.common.figure.node.ILabelFigure;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLTextSelectionEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.diagram.composite.providers.UMLParserProvider;
+import org.eclipse.papyrus.extensionpoints.editors.Activator;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
+import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
+import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.AccessibleEvent;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.FontData;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.ui.PlatformUI;
+
+/**
+ * @generated
+ */
+public class RealizationAppliedStereotypeEditPart extends LabelEditPart implements ITextAwareEditPart
+
+, ILabelRoleProvider
+
+{
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 6018;
+
+ /**
+ * @generated
+ */
+ private DirectEditManager manager;
+
+ /**
+ * @generated
+ */
+ private IParser parser;
+
+ /**
+ * @generated
+ */
+ private List<?> parserElements;
+
+ /**
+ * @generated
+ */
+ private String defaultText;
+
+ /**
+ * direct edition mode (default, undefined, registered editor, etc.)
+ *
+ * @generated
+ */
+ protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
+
+ /**
+ * configuration from a registered edit dialog
+ *
+ * @generated
+ */
+ protected IDirectEditorConfiguration configuration;
+
+ /**
+ * @generated
+ */
+ static {
+ registerSnapBackPosition(UMLVisualIDRegistry.getType(org.eclipse.papyrus.diagram.composite.edit.parts.RealizationAppliedStereotypeEditPart.VISUAL_ID), new Point(0, 30));
+ }
+
+ /**
+ * @generated
+ */
+ public RealizationAppliedStereotypeEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
+ installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new CompositeStructureDiagramEditPart.LinkLabelDragPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ public int getKeyPoint() {
+ return ConnectionLocator.MIDDLE;
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelTextHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getText();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getText();
+ } else {
+ return ((Label)figure).getText();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelTextHelper(IFigure figure, String text) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setText(text);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setText(text);
+ } else {
+ ((Label)figure).setText(text);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIconHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getIcon();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getIcon();
+ } else {
+ return ((Label)figure).getIcon();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelIconHelper(IFigure figure, Image icon) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setIcon(icon);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setIcon(icon);
+ } else {
+ ((Label)figure).setIcon(icon);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabel(WrappingLabel figure) {
+ unregisterVisuals();
+ setFigure(figure);
+ defaultText = getLabelTextHelper(figure);
+ registerVisuals();
+ refreshVisuals();
+ }
+
+ /**
+ * @generated
+ */
+ protected List getModelChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject getParserElement() {
+ return resolveSemanticElement();
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIcon() {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelText() {
+ String text = null;
+ EObject parserElement = getParserElement();
+ if(parserElement != null && getParser() != null) {
+ text = getParser().getPrintString(new EObjectAdapter(parserElement), getParserOptions().intValue());
+ }
+ if(text == null || text.length() == 0) {
+ text = defaultText;
+ }
+ return text;
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabelText(String text) {
+ setLabelTextHelper(getFigure(), text);
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public String getEditText() {
+ if(getParserElement() == null || getParser() == null) {
+ return ""; //$NON-NLS-1$
+ }
+ return getParser().getEditString(new EObjectAdapter(getParserElement()), getParserOptions().intValue());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean isEditable() {
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ public ICellEditorValidator getEditTextValidator() {
+ return new ICellEditorValidator() {
+
+ public String isValid(final Object value) {
+ if(value instanceof String) {
+ final EObject element = getParserElement();
+ final IParser parser = getParser();
+ try {
+ IParserEditStatus valid = (IParserEditStatus)getEditingDomain().runExclusive(new RunnableWithResult.Impl() {
+
+ public void run() {
+ setResult(parser.isValidEditString(new EObjectAdapter(element), (String)value));
+ }
+ });
+ return valid.getCode() == ParserEditStatus.EDITABLE ? null : valid.getMessage();
+ } catch (InterruptedException ie) {
+ ie.printStackTrace();
+ }
+ }
+
+ // shouldn't get here
+ return null;
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ public IContentAssistProcessor getCompletionProcessor() {
+ if(getParserElement() == null || getParser() == null) {
+ return null;
+ }
+ return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
+ }
+
+ /**
+ * @generated
+ */
+ public ParserOptions getParserOptions() {
+ return ParserOptions.NONE;
+ }
+
+ /**
+ * @generated
+ */
+ public IParser getParser() {
+ if(parser == null) {
+ parser = UMLParserProvider.getParser(UMLElementTypes.Realization_4006, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.diagram.composite.edit.parts.RealizationAppliedStereotypeEditPart.VISUAL_ID));
+ }
+ return parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected DirectEditManager getManager() {
+ if(manager == null) {
+ setManager(new MultilineLabelDirectEditManager(this, MultilineLabelDirectEditManager.getTextCellEditorClass(this), UMLEditPartFactory.getTextCellEditorLocator(this)));
+ }
+ return manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setManager(DirectEditManager manager) {
+ this.manager = manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit() {
+ getManager().show();
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit(Point eventLocation) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(eventLocation.getSWTPoint());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void performDirectEdit(char initialCharacter) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(initialCharacter);
+ } else {
+ performDirectEdit();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEditRequest(Request request) {
+
+ final Request theRequest = request;
+
+ if(IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
+ directEditionMode = getDirectEditionType();
+ }
+ switch(directEditionMode) {
+ case IDirectEdition.NO_DIRECT_EDITION:
+ // no direct edition mode => does nothing
+ return;
+ case IDirectEdition.EXTENDED_DIRECT_EDITOR:
+ updateExtendedEditorConfiguration();
+ if(configuration == null || configuration.getLanguage() == null) {
+ performDefaultDirectEditorEdit(theRequest);
+ } else {
+ configuration.preEditAction(resolveSemanticElement());
+ Dialog dialog = null;
+ if(configuration instanceof IPopupEditorConfiguration) {
+ IPopupEditorHelper helper = ((IPopupEditorConfiguration)configuration).createPopupEditorHelper(this);
+ helper.showEditor();
+ return;
+ } else if(configuration instanceof IAdvancedEditorConfiguration) {
+ dialog = ((IAdvancedEditorConfiguration)configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
+ } else if(configuration instanceof IDirectEditorConfiguration) {
+ dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), ((IDirectEditorConfiguration)configuration).getTextToEdit(resolveSemanticElement()), (IDirectEditorConfiguration)configuration);
+ } else {
+ return;
+ }
+ final Dialog finalDialog = dialog;
+
+ if(Window.OK == dialog.open()) {
+ TransactionalEditingDomain domain = getEditingDomain();
+ RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
+
+ @Override
+ protected void doExecute() {
+ configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog)finalDialog).getValue());
+
+ }
+ };
+ domain.getCommandStack().execute(command);
+ }
+ }
+ break;
+ case IDirectEdition.DEFAULT_DIRECT_EDITOR:
+
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ break;
+ default:
+ break;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshLabel();
+ refreshFont();
+ refreshFontColor();
+ refreshUnderline();
+ refreshStrikeThrough();
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshLabel() {
+ EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
+ if(maskLabelPolicy == null) {
+ setLabelTextHelper(getFigure(), getLabelText());
+ setLabelIconHelper(getFigure(), getLabelIcon());
+ }
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshUnderline() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextUnderline(style.isUnderline());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshStrikeThrough() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextStrikeThrough(style.isStrikeThrough());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshFont() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null) {
+ FontData fontData = new FontData(style.getFontName(), style.getFontHeight(), (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
+ setFont(fontData);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setFontColor(Color color) {
+ getFigure().setForegroundColor(color);
+ }
+
+ /**
+ * @generated
+ */
+ protected void addSemanticListeners() {
+ if(getParser() instanceof ISemanticParser) {
+ EObject element = resolveSemanticElement();
+ parserElements = ((ISemanticParser)getParser()).getSemanticElementsBeingParsed(element);
+ for(int i = 0; i < parserElements.size(); i++) {
+ addListenerFilter("SemanticModel" + i, this, (EObject)parserElements.get(i)); //$NON-NLS-1$
+ }
+ } else {
+ super.addSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeSemanticListeners() {
+ if(parserElements != null) {
+ for(int i = 0; i < parserElements.size(); i++) {
+ removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
+ }
+ } else {
+ super.removeSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected AccessibleEditPart getAccessibleEditPart() {
+ if(accessibleEP == null) {
+ accessibleEP = new AccessibleGraphicalEditPart() {
+
+ public void getName(AccessibleEvent e) {
+ e.result = getLabelTextHelper(getFigure());
+ }
+ };
+ }
+ return accessibleEP;
+ }
+
+ /**
+ * @generated
+ */
+ private View getFontStyleOwnerView() {
+ return getPrimaryView();
+ }
+
+ /**
+ * Returns the kind of associated editor for direct edition.
+ *
+ * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition
+ * @generated
+ */
+ public int getDirectEditionType() {
+ // The label is read-only (defined in GMFGen model)
+ return IDirectEdition.NO_DIRECT_EDITION;
+ }
+
+ /**
+ * Checks if an extended editor is present.
+ *
+ * @return <code>true</code> if an extended editor is present.
+ * @generated
+ */
+ protected boolean checkExtendedEditor() {
+ if(resolveSemanticElement() != null) {
+ return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ return false;
+ }
+
+ /**
+ * Checks if a default direct edition is available
+ *
+ * @return <code>true</code> if a default direct edition is available
+ * @generated
+ */
+ protected boolean checkDefaultEdition() {
+ return (getParser() != null);
+ }
+
+ /**
+ * Initializes the extended editor configuration
+ *
+ * @generated
+ */
+ protected void initExtendedEditorConfiguration() {
+ if(configuration == null) {
+ final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("")) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else {
+ configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ }
+ }
+
+ /**
+ * Updates the preference configuration
+ *
+ * @generated
+ */
+ protected void updateExtendedEditorConfiguration() {
+ String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("") && languagePreferred != configuration.getLanguage()) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else if(IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
+ configuration = null;
+ }
+ }
+
+ /**
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
+ protected void performDefaultDirectEditorEdit(final Request theRequest) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void handleNotificationEvent(Notification event) {
+ Object feature = event.getFeature();
+ if(NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
+ Integer c = (Integer)event.getNewValue();
+ setFontColor(DiagramColorRegistry.getInstance().getColor(c));
+ } else if(NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
+ refreshUnderline();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
+ refreshStrikeThrough();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
+ refreshFont();
+ } else {
+ if(getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
+ refreshLabel();
+ }
+ if(getParser() instanceof ISemanticParser) {
+ ISemanticParser modelParser = (ISemanticParser)getParser();
+ if(modelParser.areSemanticElementsAffected(null, event)) {
+ removeSemanticListeners();
+ if(resolveSemanticElement() != null) {
+ addSemanticListeners();
+ }
+ refreshLabel();
+ }
+ }
+ }
+
+ super.handleNotificationEvent(event);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createFigure() {
+ // Parent should assign one using setLabel() method
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ public String getLabelRole() {
+ return "Stereotype";//$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ public String getIconPathRole() {
+ return "";//$NON-NLS-1$
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/RealizationEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/RealizationEditPart.java
new file mode 100644
index 00000000000..93b9be7a678
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/RealizationEditPart.java
@@ -0,0 +1,121 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import org.eclipse.draw2d.Connection;
+import org.eclipse.gef.EditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITreeBranchEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.diagram.common.editparts.UMLConnectionNodeEditPart;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeLinkLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.figure.edge.InterfaceRealizationFigure;
+import org.eclipse.papyrus.diagram.composite.edit.policies.RealizationItemSemanticEditPolicy;
+
+/**
+ * @generated
+ */
+public class RealizationEditPart extends
+
+UMLConnectionNodeEditPart implements ITreeBranchEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 4006;
+
+ /**
+ * @generated
+ */
+ public RealizationEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new RealizationItemSemanticEditPolicy());
+ installEditPolicy(AppliedStereotypeLinkLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeLinkLabelDisplayEditPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean addFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof RealizationNameEditPart) {
+ ((RealizationNameEditPart)childEditPart).setLabel(getPrimaryShape().getNameLabel());
+ return true;
+ }
+ if(childEditPart instanceof RealizationAppliedStereotypeEditPart) {
+ ((RealizationAppliedStereotypeEditPart)childEditPart).setLabel(getPrimaryShape().getAppliedStereotypeLabel());
+ return true;
+ }
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected void addChildVisual(EditPart childEditPart, int index) {
+ if(addFixedChild(childEditPart)) {
+ return;
+ }
+ super.addChildVisual(childEditPart, -1);
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean removeFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof RealizationNameEditPart) {
+ return true;
+ }
+ if(childEditPart instanceof RealizationAppliedStereotypeEditPart) {
+ return true;
+ }
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeChildVisual(EditPart childEditPart) {
+ if(removeFixedChild(childEditPart)) {
+ return;
+ }
+ super.removeChildVisual(childEditPart);
+ }
+
+ /**
+ * Creates figure for this edit part.
+ *
+ * Body of this method does not depend on settings in generation model
+ * so you may safely remove <i>generated</i> tag and modify it.
+ *
+ * @generated
+ */
+ protected Connection createConnectionFigure() {
+ return new InterfaceRealizationFigure();
+ }
+
+ /**
+ * @generated
+ */
+ public InterfaceRealizationFigure getPrimaryShape() {
+ return (InterfaceRealizationFigure)getFigure();
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/RealizationNameEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/RealizationNameEditPart.java
new file mode 100644
index 00000000000..3d4d8e1309e
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/RealizationNameEditPart.java
@@ -0,0 +1,750 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.ConnectionLocator;
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.emf.transaction.RunnableWithResult;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.AccessibleEditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.requests.DirectEditRequest;
+import org.eclipse.gef.tools.DirectEditManager;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.LabelEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
+import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
+import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
+import org.eclipse.gmf.runtime.notation.FontStyle;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
+import org.eclipse.jface.viewers.ICellEditorValidator;
+import org.eclipse.jface.window.Window;
+import org.eclipse.papyrus.diagram.common.directedit.MultilineLabelDirectEditManager;
+import org.eclipse.papyrus.diagram.common.editparts.ILabelRoleProvider;
+import org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition;
+import org.eclipse.papyrus.diagram.common.editpolicies.IMaskManagedLabelEditPolicy;
+import org.eclipse.papyrus.diagram.common.figure.node.ILabelFigure;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLTextSelectionEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.diagram.composite.providers.UMLParserProvider;
+import org.eclipse.papyrus.extensionpoints.editors.Activator;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
+import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
+import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.AccessibleEvent;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.FontData;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.ui.PlatformUI;
+
+/**
+ * @generated
+ */
+public class RealizationNameEditPart extends LabelEditPart implements ITextAwareEditPart
+
+, ILabelRoleProvider
+
+{
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 6004;
+
+ /**
+ * @generated
+ */
+ private DirectEditManager manager;
+
+ /**
+ * @generated
+ */
+ private IParser parser;
+
+ /**
+ * @generated
+ */
+ private List<?> parserElements;
+
+ /**
+ * @generated
+ */
+ private String defaultText;
+
+ /**
+ * direct edition mode (default, undefined, registered editor, etc.)
+ *
+ * @generated
+ */
+ protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
+
+ /**
+ * configuration from a registered edit dialog
+ *
+ * @generated
+ */
+ protected IDirectEditorConfiguration configuration;
+
+ /**
+ * @generated
+ */
+ static {
+ registerSnapBackPosition(UMLVisualIDRegistry.getType(org.eclipse.papyrus.diagram.composite.edit.parts.RealizationNameEditPart.VISUAL_ID), new Point(0, 60));
+ }
+
+ /**
+ * @generated
+ */
+ public RealizationNameEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
+ installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new CompositeStructureDiagramEditPart.LinkLabelDragPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ public int getKeyPoint() {
+ return ConnectionLocator.MIDDLE;
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelTextHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getText();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getText();
+ } else {
+ return ((Label)figure).getText();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelTextHelper(IFigure figure, String text) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setText(text);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setText(text);
+ } else {
+ ((Label)figure).setText(text);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIconHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getIcon();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getIcon();
+ } else {
+ return ((Label)figure).getIcon();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelIconHelper(IFigure figure, Image icon) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setIcon(icon);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setIcon(icon);
+ } else {
+ ((Label)figure).setIcon(icon);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabel(WrappingLabel figure) {
+ unregisterVisuals();
+ setFigure(figure);
+ defaultText = getLabelTextHelper(figure);
+ registerVisuals();
+ refreshVisuals();
+ }
+
+ /**
+ * @generated
+ */
+ protected List getModelChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject getParserElement() {
+ return resolveSemanticElement();
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIcon() {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelText() {
+ String text = null;
+ EObject parserElement = getParserElement();
+ if(parserElement != null && getParser() != null) {
+ text = getParser().getPrintString(new EObjectAdapter(parserElement), getParserOptions().intValue());
+ }
+ if(text == null || text.length() == 0) {
+ text = defaultText;
+ }
+ return text;
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabelText(String text) {
+ setLabelTextHelper(getFigure(), text);
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public String getEditText() {
+ if(getParserElement() == null || getParser() == null) {
+ return ""; //$NON-NLS-1$
+ }
+ return getParser().getEditString(new EObjectAdapter(getParserElement()), getParserOptions().intValue());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean isEditable() {
+ return getParser() != null;
+ }
+
+ /**
+ * @generated
+ */
+ public ICellEditorValidator getEditTextValidator() {
+ return new ICellEditorValidator() {
+
+ public String isValid(final Object value) {
+ if(value instanceof String) {
+ final EObject element = getParserElement();
+ final IParser parser = getParser();
+ try {
+ IParserEditStatus valid = (IParserEditStatus)getEditingDomain().runExclusive(new RunnableWithResult.Impl() {
+
+ public void run() {
+ setResult(parser.isValidEditString(new EObjectAdapter(element), (String)value));
+ }
+ });
+ return valid.getCode() == ParserEditStatus.EDITABLE ? null : valid.getMessage();
+ } catch (InterruptedException ie) {
+ ie.printStackTrace();
+ }
+ }
+
+ // shouldn't get here
+ return null;
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ public IContentAssistProcessor getCompletionProcessor() {
+ if(getParserElement() == null || getParser() == null) {
+ return null;
+ }
+ return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
+ }
+
+ /**
+ * @generated
+ */
+ public ParserOptions getParserOptions() {
+ return ParserOptions.NONE;
+ }
+
+ /**
+ * @generated
+ */
+ public IParser getParser() {
+ if(parser == null) {
+ parser = UMLParserProvider.getParser(UMLElementTypes.Realization_4006, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.diagram.composite.edit.parts.RealizationNameEditPart.VISUAL_ID));
+ }
+ return parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected DirectEditManager getManager() {
+ if(manager == null) {
+ setManager(new MultilineLabelDirectEditManager(this, MultilineLabelDirectEditManager.getTextCellEditorClass(this), UMLEditPartFactory.getTextCellEditorLocator(this)));
+ }
+ return manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setManager(DirectEditManager manager) {
+ this.manager = manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit() {
+ getManager().show();
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit(Point eventLocation) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(eventLocation.getSWTPoint());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void performDirectEdit(char initialCharacter) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(initialCharacter);
+ } else {
+ performDirectEdit();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEditRequest(Request request) {
+
+ final Request theRequest = request;
+
+ if(IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
+ directEditionMode = getDirectEditionType();
+ }
+ switch(directEditionMode) {
+ case IDirectEdition.NO_DIRECT_EDITION:
+ // no direct edition mode => does nothing
+ return;
+ case IDirectEdition.EXTENDED_DIRECT_EDITOR:
+ updateExtendedEditorConfiguration();
+ if(configuration == null || configuration.getLanguage() == null) {
+ performDefaultDirectEditorEdit(theRequest);
+ } else {
+ configuration.preEditAction(resolveSemanticElement());
+ Dialog dialog = null;
+ if(configuration instanceof IPopupEditorConfiguration) {
+ IPopupEditorHelper helper = ((IPopupEditorConfiguration)configuration).createPopupEditorHelper(this);
+ helper.showEditor();
+ return;
+ } else if(configuration instanceof IAdvancedEditorConfiguration) {
+ dialog = ((IAdvancedEditorConfiguration)configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
+ } else if(configuration instanceof IDirectEditorConfiguration) {
+ dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), ((IDirectEditorConfiguration)configuration).getTextToEdit(resolveSemanticElement()), (IDirectEditorConfiguration)configuration);
+ } else {
+ return;
+ }
+ final Dialog finalDialog = dialog;
+
+ if(Window.OK == dialog.open()) {
+ TransactionalEditingDomain domain = getEditingDomain();
+ RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
+
+ @Override
+ protected void doExecute() {
+ configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog)finalDialog).getValue());
+
+ }
+ };
+ domain.getCommandStack().execute(command);
+ }
+ }
+ break;
+ case IDirectEdition.DEFAULT_DIRECT_EDITOR:
+
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ break;
+ default:
+ break;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshLabel();
+ refreshFont();
+ refreshFontColor();
+ refreshUnderline();
+ refreshStrikeThrough();
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshLabel() {
+ EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
+ if(maskLabelPolicy == null) {
+ setLabelTextHelper(getFigure(), getLabelText());
+ setLabelIconHelper(getFigure(), getLabelIcon());
+ }
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshUnderline() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextUnderline(style.isUnderline());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshStrikeThrough() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextStrikeThrough(style.isStrikeThrough());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshFont() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null) {
+ FontData fontData = new FontData(style.getFontName(), style.getFontHeight(), (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
+ setFont(fontData);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setFontColor(Color color) {
+ getFigure().setForegroundColor(color);
+ }
+
+ /**
+ * @generated
+ */
+ protected void addSemanticListeners() {
+ if(getParser() instanceof ISemanticParser) {
+ EObject element = resolveSemanticElement();
+ parserElements = ((ISemanticParser)getParser()).getSemanticElementsBeingParsed(element);
+ for(int i = 0; i < parserElements.size(); i++) {
+ addListenerFilter("SemanticModel" + i, this, (EObject)parserElements.get(i)); //$NON-NLS-1$
+ }
+ } else {
+ super.addSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeSemanticListeners() {
+ if(parserElements != null) {
+ for(int i = 0; i < parserElements.size(); i++) {
+ removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
+ }
+ } else {
+ super.removeSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected AccessibleEditPart getAccessibleEditPart() {
+ if(accessibleEP == null) {
+ accessibleEP = new AccessibleGraphicalEditPart() {
+
+ public void getName(AccessibleEvent e) {
+ e.result = getLabelTextHelper(getFigure());
+ }
+ };
+ }
+ return accessibleEP;
+ }
+
+ /**
+ * @generated
+ */
+ private View getFontStyleOwnerView() {
+ return getPrimaryView();
+ }
+
+ /**
+ * Returns the kind of associated editor for direct edition.
+ *
+ * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition
+ * @generated
+ */
+ public int getDirectEditionType() {
+ if(checkExtendedEditor()) {
+ initExtendedEditorConfiguration();
+ return IDirectEdition.EXTENDED_DIRECT_EDITOR;
+ }
+ if(checkDefaultEdition()) {
+ return IDirectEdition.DEFAULT_DIRECT_EDITOR;
+ }
+
+ // not a named element. no specific editor => do nothing
+ return IDirectEdition.NO_DIRECT_EDITION;
+ }
+
+ /**
+ * Checks if an extended editor is present.
+ *
+ * @return <code>true</code> if an extended editor is present.
+ * @generated
+ */
+ protected boolean checkExtendedEditor() {
+ if(resolveSemanticElement() != null) {
+ return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ return false;
+ }
+
+ /**
+ * Checks if a default direct edition is available
+ *
+ * @return <code>true</code> if a default direct edition is available
+ * @generated
+ */
+ protected boolean checkDefaultEdition() {
+ return (getParser() != null);
+ }
+
+ /**
+ * Initializes the extended editor configuration
+ *
+ * @generated
+ */
+ protected void initExtendedEditorConfiguration() {
+ if(configuration == null) {
+ final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("")) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else {
+ configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ }
+ }
+
+ /**
+ * Updates the preference configuration
+ *
+ * @generated
+ */
+ protected void updateExtendedEditorConfiguration() {
+ String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("") && languagePreferred != configuration.getLanguage()) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else if(IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
+ configuration = null;
+ }
+ }
+
+ /**
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
+ protected void performDefaultDirectEditorEdit(final Request theRequest) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void handleNotificationEvent(Notification event) {
+ Object feature = event.getFeature();
+ if(NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
+ Integer c = (Integer)event.getNewValue();
+ setFontColor(DiagramColorRegistry.getInstance().getColor(c));
+ } else if(NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
+ refreshUnderline();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
+ refreshStrikeThrough();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
+ refreshFont();
+ } else {
+ if(getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
+ refreshLabel();
+ }
+ if(getParser() instanceof ISemanticParser) {
+ ISemanticParser modelParser = (ISemanticParser)getParser();
+ if(modelParser.areSemanticElementsAffected(null, event)) {
+ removeSemanticListeners();
+ if(resolveSemanticElement() != null) {
+ addSemanticListeners();
+ }
+ refreshLabel();
+ }
+ }
+ }
+
+ super.handleNotificationEvent(event);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createFigure() {
+ // Parent should assign one using setLabel() method
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ public String getLabelRole() {
+ return "Name";//$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ public String getIconPathRole() {
+ return "";//$NON-NLS-1$
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ReceptionEditPartCLN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ReceptionEditPartCLN.java
new file mode 100644
index 00000000000..1f717d81e5b
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/ReceptionEditPartCLN.java
@@ -0,0 +1,795 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EAnnotation;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.emf.transaction.RunnableWithResult;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.AccessibleEditPart;
+import org.eclipse.gef.DragTracker;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.requests.DirectEditRequest;
+import org.eclipse.gef.requests.SelectionRequest;
+import org.eclipse.gef.tools.DirectEditManager;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.CompartmentEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IPrimaryEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.ListItemComponentEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
+import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
+import org.eclipse.gmf.runtime.diagram.ui.tools.DragEditPartsTrackerEx;
+import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
+import org.eclipse.gmf.runtime.notation.FontStyle;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
+import org.eclipse.jface.viewers.ICellEditorValidator;
+import org.eclipse.jface.window.Window;
+import org.eclipse.papyrus.diagram.common.directedit.MultilineLabelDirectEditManager;
+import org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition;
+import org.eclipse.papyrus.diagram.common.editpolicies.IMaskManagedLabelEditPolicy;
+import org.eclipse.papyrus.diagram.common.figure.node.ILabelFigure;
+import org.eclipse.papyrus.diagram.common.util.DiagramEditPartsUtil;
+import org.eclipse.papyrus.diagram.composite.edit.policies.ReceptionItemSemanticEditPolicyCLN;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLTextNonResizableEditPolicy;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLTextSelectionEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.diagram.composite.providers.UMLParserProvider;
+import org.eclipse.papyrus.extensionpoints.editors.Activator;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
+import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
+import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
+import org.eclipse.papyrus.umlutils.ui.VisualInformationPapyrusConstant;
+import org.eclipse.papyrus.umlutils.ui.helper.NameLabelIconHelper;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.AccessibleEvent;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.FontData;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.ui.PlatformUI;
+
+/**
+ * @generated
+ */
+public class ReceptionEditPartCLN
+
+extends CompartmentEditPart
+
+implements ITextAwareEditPart, IPrimaryEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 3100;
+
+ /**
+ * @generated
+ */
+ private DirectEditManager manager;
+
+ /**
+ * @generated
+ */
+ private IParser parser;
+
+ /**
+ * @generated
+ */
+ private List<?> parserElements;
+
+ /**
+ * @generated
+ */
+ private String defaultText;
+
+ /**
+ * direct edition mode (default, undefined, registered editor, etc.)
+ *
+ * @generated
+ */
+ protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
+
+ /**
+ * configuration from a registered edit dialog
+ *
+ * @generated
+ */
+ protected IDirectEditorConfiguration configuration;
+
+ /**
+ * @generated
+ */
+ public ReceptionEditPartCLN(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ public DragTracker getDragTracker(Request request) {
+ if(request instanceof SelectionRequest && ((SelectionRequest)request).getLastButtonPressed() == 3) {
+ return null;
+ }
+ return new DragEditPartsTrackerEx(this);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new ReceptionItemSemanticEditPolicyCLN());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new UMLTextNonResizableEditPolicy());
+ installEditPolicy(EditPolicy.COMPONENT_ROLE, new ListItemComponentEditPolicy());
+ installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelTextHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getText();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getText();
+ } else {
+ return ((Label)figure).getText();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelTextHelper(IFigure figure, String text) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setText(text);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setText(text);
+ } else {
+ ((Label)figure).setText(text);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIconHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getIcon();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getIcon();
+ } else {
+ return ((Label)figure).getIcon();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelIconHelper(IFigure figure, Image icon) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setIcon(icon);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setIcon(icon);
+ } else {
+ ((Label)figure).setIcon(icon);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabel(IFigure figure) {
+ unregisterVisuals();
+ setFigure(figure);
+ defaultText = getLabelTextHelper(figure);
+ registerVisuals();
+ refreshVisuals();
+ }
+
+ /**
+ * @generated
+ */
+ protected List getModelChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject getParserElement() {
+ return resolveSemanticElement();
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIcon() {
+ EObject parserElement = getParserElement();
+ if(parserElement == null) {
+ return null;
+ }
+
+ List<View> views = DiagramEditPartsUtil.findViews(parserElement, getViewer());
+ for(View view : views) {
+ if(NameLabelIconHelper.showLabelIcon(view)) {
+ return UMLElementTypes.getImage(parserElement.eClass());
+ }
+ }
+ return null;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelText() {
+ String text = null;
+ EObject parserElement = getParserElement();
+ if(parserElement != null && getParser() != null) {
+ text = getParser().getPrintString(new EObjectAdapter(parserElement), getParserOptions().intValue());
+ }
+ if(text == null || text.length() == 0) {
+ text = defaultText;
+ }
+ return text;
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabelText(String text) {
+ setLabelTextHelper(getFigure(), text);
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public String getEditText() {
+ if(getParserElement() == null || getParser() == null) {
+ return ""; //$NON-NLS-1$
+ }
+ return getParser().getEditString(new EObjectAdapter(getParserElement()), getParserOptions().intValue());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean isEditable() {
+ return getParser() != null;
+ }
+
+ /**
+ * @generated
+ */
+ public ICellEditorValidator getEditTextValidator() {
+ return new ICellEditorValidator() {
+
+ public String isValid(final Object value) {
+ if(value instanceof String) {
+ final EObject element = getParserElement();
+ final IParser parser = getParser();
+ try {
+ IParserEditStatus valid = (IParserEditStatus)getEditingDomain().runExclusive(new RunnableWithResult.Impl() {
+
+ public void run() {
+ setResult(parser.isValidEditString(new EObjectAdapter(element), (String)value));
+ }
+ });
+ return valid.getCode() == ParserEditStatus.EDITABLE ? null : valid.getMessage();
+ } catch (InterruptedException ie) {
+ ie.printStackTrace();
+ }
+ }
+
+ // shouldn't get here
+ return null;
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ public IContentAssistProcessor getCompletionProcessor() {
+ if(getParserElement() == null || getParser() == null) {
+ return null;
+ }
+ return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
+ }
+
+ /**
+ * @generated
+ */
+ public ParserOptions getParserOptions() {
+ return ParserOptions.NONE;
+ }
+
+ /**
+ * @generated
+ */
+ public IParser getParser() {
+ if(parser == null) {
+ parser = UMLParserProvider.getParser(UMLElementTypes.Reception_3100, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.diagram.composite.edit.parts.ReceptionEditPartCLN.VISUAL_ID));
+ }
+ return parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected DirectEditManager getManager() {
+ if(manager == null) {
+ setManager(new MultilineLabelDirectEditManager(this, MultilineLabelDirectEditManager.getTextCellEditorClass(this), UMLEditPartFactory.getTextCellEditorLocator(this)));
+ }
+ return manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setManager(DirectEditManager manager) {
+ this.manager = manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit() {
+ getManager().show();
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit(Point eventLocation) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(eventLocation.getSWTPoint());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void performDirectEdit(char initialCharacter) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(initialCharacter);
+ } else {
+ performDirectEdit();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEditRequest(Request request) {
+
+ final Request theRequest = request;
+
+ if(IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
+ directEditionMode = getDirectEditionType();
+ }
+ switch(directEditionMode) {
+ case IDirectEdition.NO_DIRECT_EDITION:
+ // no direct edition mode => does nothing
+ return;
+ case IDirectEdition.EXTENDED_DIRECT_EDITOR:
+ updateExtendedEditorConfiguration();
+ if(configuration == null || configuration.getLanguage() == null) {
+ performDefaultDirectEditorEdit(theRequest);
+ } else {
+ configuration.preEditAction(resolveSemanticElement());
+ Dialog dialog = null;
+ if(configuration instanceof IPopupEditorConfiguration) {
+ IPopupEditorHelper helper = ((IPopupEditorConfiguration)configuration).createPopupEditorHelper(this);
+ helper.showEditor();
+ return;
+ } else if(configuration instanceof IAdvancedEditorConfiguration) {
+ dialog = ((IAdvancedEditorConfiguration)configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
+ } else if(configuration instanceof IDirectEditorConfiguration) {
+ dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), ((IDirectEditorConfiguration)configuration).getTextToEdit(resolveSemanticElement()), (IDirectEditorConfiguration)configuration);
+ } else {
+ return;
+ }
+ final Dialog finalDialog = dialog;
+
+ if(Window.OK == dialog.open()) {
+ TransactionalEditingDomain domain = getEditingDomain();
+ RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
+
+ @Override
+ protected void doExecute() {
+ configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog)finalDialog).getValue());
+
+ }
+ };
+ domain.getCommandStack().execute(command);
+ }
+ }
+ break;
+ case IDirectEdition.DEFAULT_DIRECT_EDITOR:
+
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ break;
+ default:
+ break;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshLabel();
+ refreshFont();
+ refreshFontColor();
+ refreshUnderline();
+ refreshStrikeThrough();
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshLabel() {
+ EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
+ if(maskLabelPolicy == null) {
+ setLabelTextHelper(getFigure(), getLabelText());
+ setLabelIconHelper(getFigure(), getLabelIcon());
+ }
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshUnderline() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextUnderline(style.isUnderline());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshStrikeThrough() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextStrikeThrough(style.isStrikeThrough());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshFont() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null) {
+ FontData fontData = new FontData(style.getFontName(), style.getFontHeight(), (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
+ setFont(fontData);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setFontColor(Color color) {
+ getFigure().setForegroundColor(color);
+ }
+
+ /**
+ * @generated
+ */
+ protected void addSemanticListeners() {
+ if(getParser() instanceof ISemanticParser) {
+ EObject element = resolveSemanticElement();
+ parserElements = ((ISemanticParser)getParser()).getSemanticElementsBeingParsed(element);
+ for(int i = 0; i < parserElements.size(); i++) {
+ addListenerFilter("SemanticModel" + i, this, (EObject)parserElements.get(i)); //$NON-NLS-1$
+ }
+ } else {
+ super.addSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeSemanticListeners() {
+ if(parserElements != null) {
+ for(int i = 0; i < parserElements.size(); i++) {
+ removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
+ }
+ } else {
+ super.removeSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected AccessibleEditPart getAccessibleEditPart() {
+ if(accessibleEP == null) {
+ accessibleEP = new AccessibleGraphicalEditPart() {
+
+ public void getName(AccessibleEvent e) {
+ e.result = getLabelTextHelper(getFigure());
+ }
+ };
+ }
+ return accessibleEP;
+ }
+
+ /**
+ * @generated
+ */
+ private View getFontStyleOwnerView() {
+ return getPrimaryView();
+ }
+
+ /**
+ * Returns the kind of associated editor for direct edition.
+ *
+ * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition
+ * @generated
+ */
+ public int getDirectEditionType() {
+ if(checkExtendedEditor()) {
+ initExtendedEditorConfiguration();
+ return IDirectEdition.EXTENDED_DIRECT_EDITOR;
+ }
+ if(checkDefaultEdition()) {
+ return IDirectEdition.DEFAULT_DIRECT_EDITOR;
+ }
+
+ // not a named element. no specific editor => do nothing
+ return IDirectEdition.NO_DIRECT_EDITION;
+ }
+
+ /**
+ * Checks if an extended editor is present.
+ *
+ * @return <code>true</code> if an extended editor is present.
+ * @generated
+ */
+ protected boolean checkExtendedEditor() {
+ if(resolveSemanticElement() != null) {
+ return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ return false;
+ }
+
+ /**
+ * Checks if a default direct edition is available
+ *
+ * @return <code>true</code> if a default direct edition is available
+ * @generated
+ */
+ protected boolean checkDefaultEdition() {
+ return (getParser() != null);
+ }
+
+ /**
+ * Initializes the extended editor configuration
+ *
+ * @generated
+ */
+ protected void initExtendedEditorConfiguration() {
+ if(configuration == null) {
+ final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("")) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else {
+ configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ }
+ }
+
+ /**
+ * Updates the preference configuration
+ *
+ * @generated
+ */
+ protected void updateExtendedEditorConfiguration() {
+ String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("") && languagePreferred != configuration.getLanguage()) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else if(IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
+ configuration = null;
+ }
+ }
+
+ /**
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
+ protected void performDefaultDirectEditorEdit(final Request theRequest) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void addNotationalListeners() {
+ super.addNotationalListeners();
+ addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeNotationalListeners() {
+ super.removeNotationalListeners();
+ removeListenerFilter("PrimaryView"); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void handleNotificationEvent(Notification event) {
+ Object feature = event.getFeature();
+ if(NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
+ Integer c = (Integer)event.getNewValue();
+ setFontColor(DiagramColorRegistry.getInstance().getColor(c));
+ } else if(NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
+ refreshUnderline();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
+ refreshStrikeThrough();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
+ refreshFont();
+ } else {
+ if(getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
+ refreshLabel();
+ }
+ if(getParser() instanceof ISemanticParser) {
+ ISemanticParser modelParser = (ISemanticParser)getParser();
+ if(modelParser.areSemanticElementsAffected(null, event)) {
+ removeSemanticListeners();
+ if(resolveSemanticElement() != null) {
+ addSemanticListeners();
+ }
+ refreshLabel();
+ }
+ }
+ }
+ if(event.getNewValue() instanceof EAnnotation && VisualInformationPapyrusConstant.DISPLAY_NAMELABELICON.equals(((EAnnotation)event.getNewValue()).getSource())) {
+ refreshLabel();
+ }
+ super.handleNotificationEvent(event);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createFigure() {
+ IFigure label = createFigurePrim();
+ defaultText = getLabelTextHelper(label);
+ return label;
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createFigurePrim() {
+ return new ReceptionDescriptor();
+ }
+
+ /**
+ * @generated
+ */
+ public class ReceptionDescriptor extends WrappingLabel {
+
+ /**
+ * @generated
+ */
+ public ReceptionDescriptor() {
+ this.setText("");
+ }
+
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/RepresentationEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/RepresentationEditPart.java
new file mode 100644
index 00000000000..fdd9049caff
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/RepresentationEditPart.java
@@ -0,0 +1,112 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import org.eclipse.draw2d.Connection;
+import org.eclipse.gef.EditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITreeBranchEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.diagram.common.editparts.UMLConnectionNodeEditPart;
+import org.eclipse.papyrus.diagram.composite.custom.figures.RepresentationFigure;
+import org.eclipse.papyrus.diagram.composite.edit.policies.RepresentationItemSemanticEditPolicy;
+
+/**
+ * @generated
+ */
+public class RepresentationEditPart extends
+
+UMLConnectionNodeEditPart implements ITreeBranchEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 4020;
+
+ /**
+ * @generated
+ */
+ public RepresentationEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new RepresentationItemSemanticEditPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean addFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof RepresentationTagLabelEditPart) {
+ ((RepresentationTagLabelEditPart)childEditPart).setLabel(getPrimaryShape().getTagLabel());
+ return true;
+ }
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected void addChildVisual(EditPart childEditPart, int index) {
+ if(addFixedChild(childEditPart)) {
+ return;
+ }
+ super.addChildVisual(childEditPart, -1);
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean removeFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof RepresentationTagLabelEditPart) {
+ return true;
+ }
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeChildVisual(EditPart childEditPart) {
+ if(removeFixedChild(childEditPart)) {
+ return;
+ }
+ super.removeChildVisual(childEditPart);
+ }
+
+ /**
+ * Creates figure for this edit part.
+ *
+ * Body of this method does not depend on settings in generation model
+ * so you may safely remove <i>generated</i> tag and modify it.
+ *
+ * @generated
+ */
+ protected Connection createConnectionFigure() {
+ return new RepresentationFigure();
+ }
+
+ /**
+ * @generated
+ */
+ public RepresentationFigure getPrimaryShape() {
+ return (RepresentationFigure)getFigure();
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/RepresentationTagLabelEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/RepresentationTagLabelEditPart.java
new file mode 100644
index 00000000000..e3576dc9d64
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/RepresentationTagLabelEditPart.java
@@ -0,0 +1,752 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.ConnectionLocator;
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.emf.transaction.RunnableWithResult;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.AccessibleEditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.requests.DirectEditRequest;
+import org.eclipse.gef.tools.DirectEditManager;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.LabelEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
+import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
+import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
+import org.eclipse.gmf.runtime.notation.FontStyle;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
+import org.eclipse.jface.viewers.ICellEditorValidator;
+import org.eclipse.jface.window.Window;
+import org.eclipse.papyrus.diagram.common.directedit.MultilineLabelDirectEditManager;
+import org.eclipse.papyrus.diagram.common.editparts.ILabelRoleProvider;
+import org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition;
+import org.eclipse.papyrus.diagram.common.editpolicies.IMaskManagedLabelEditPolicy;
+import org.eclipse.papyrus.diagram.common.figure.node.ILabelFigure;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLTextSelectionEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.diagram.composite.providers.UMLParserProvider;
+import org.eclipse.papyrus.extensionpoints.editors.Activator;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
+import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
+import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.AccessibleEvent;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.FontData;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.ui.PlatformUI;
+
+/**
+ * @generated
+ */
+public class RepresentationTagLabelEditPart extends LabelEditPart implements ITextAwareEditPart
+
+, ILabelRoleProvider
+
+{
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 6030;
+
+ /**
+ * @generated
+ */
+ private DirectEditManager manager;
+
+ /**
+ * @generated
+ */
+ private IParser parser;
+
+ /**
+ * @generated
+ */
+ private List<?> parserElements;
+
+ /**
+ * @generated
+ */
+ private String defaultText;
+
+ /**
+ * direct edition mode (default, undefined, registered editor, etc.)
+ *
+ * @generated
+ */
+ protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
+
+ /**
+ * configuration from a registered edit dialog
+ *
+ * @generated
+ */
+ protected IDirectEditorConfiguration configuration;
+
+ /**
+ * @generated
+ */
+ static {
+ registerSnapBackPosition(UMLVisualIDRegistry.getType(org.eclipse.papyrus.diagram.composite.edit.parts.RepresentationTagLabelEditPart.VISUAL_ID), new Point(0, 15));
+ }
+
+ /**
+ * @generated
+ */
+ public RepresentationTagLabelEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
+ installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new CompositeStructureDiagramEditPart.LinkLabelDragPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ public int getKeyPoint() {
+ return ConnectionLocator.MIDDLE;
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelTextHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getText();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getText();
+ } else {
+ return ((Label)figure).getText();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelTextHelper(IFigure figure, String text) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setText(text);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setText(text);
+ } else {
+ ((Label)figure).setText(text);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIconHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getIcon();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getIcon();
+ } else {
+ return ((Label)figure).getIcon();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelIconHelper(IFigure figure, Image icon) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setIcon(icon);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setIcon(icon);
+ } else {
+ ((Label)figure).setIcon(icon);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabel(WrappingLabel figure) {
+ unregisterVisuals();
+ setFigure(figure);
+ defaultText = getLabelTextHelper(figure);
+ registerVisuals();
+ refreshVisuals();
+ }
+
+ /**
+ * @generated
+ */
+ protected List getModelChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject getParserElement() {
+
+ EObject element = resolveSemanticElement();
+ return element != null ? element : (View)getModel();
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIcon() {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelText() {
+ String text = null;
+ EObject parserElement = getParserElement();
+ if(parserElement != null && getParser() != null) {
+ text = getParser().getPrintString(new EObjectAdapter(parserElement), getParserOptions().intValue());
+ }
+ if(text == null || text.length() == 0) {
+ text = defaultText;
+ }
+ return text;
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabelText(String text) {
+ setLabelTextHelper(getFigure(), text);
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public String getEditText() {
+ if(getParserElement() == null || getParser() == null) {
+ return ""; //$NON-NLS-1$
+ }
+ return getParser().getEditString(new EObjectAdapter(getParserElement()), getParserOptions().intValue());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean isEditable() {
+ return getParser() != null;
+ }
+
+ /**
+ * @generated
+ */
+ public ICellEditorValidator getEditTextValidator() {
+ return new ICellEditorValidator() {
+
+ public String isValid(final Object value) {
+ if(value instanceof String) {
+ final EObject element = getParserElement();
+ final IParser parser = getParser();
+ try {
+ IParserEditStatus valid = (IParserEditStatus)getEditingDomain().runExclusive(new RunnableWithResult.Impl() {
+
+ public void run() {
+ setResult(parser.isValidEditString(new EObjectAdapter(element), (String)value));
+ }
+ });
+ return valid.getCode() == ParserEditStatus.EDITABLE ? null : valid.getMessage();
+ } catch (InterruptedException ie) {
+ ie.printStackTrace();
+ }
+ }
+
+ // shouldn't get here
+ return null;
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ public IContentAssistProcessor getCompletionProcessor() {
+ if(getParserElement() == null || getParser() == null) {
+ return null;
+ }
+ return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
+ }
+
+ /**
+ * @generated
+ */
+ public ParserOptions getParserOptions() {
+ return ParserOptions.NONE;
+ }
+
+ /**
+ * @generated
+ */
+ public IParser getParser() {
+ if(parser == null) {
+ parser = UMLParserProvider.getParser(UMLElementTypes.InformationItemRepresented_4020, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.diagram.composite.edit.parts.RepresentationTagLabelEditPart.VISUAL_ID));
+ }
+ return parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected DirectEditManager getManager() {
+ if(manager == null) {
+ setManager(new MultilineLabelDirectEditManager(this, MultilineLabelDirectEditManager.getTextCellEditorClass(this), UMLEditPartFactory.getTextCellEditorLocator(this)));
+ }
+ return manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setManager(DirectEditManager manager) {
+ this.manager = manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit() {
+ getManager().show();
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit(Point eventLocation) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(eventLocation.getSWTPoint());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void performDirectEdit(char initialCharacter) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(initialCharacter);
+ } else {
+ performDirectEdit();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEditRequest(Request request) {
+
+ final Request theRequest = request;
+
+ if(IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
+ directEditionMode = getDirectEditionType();
+ }
+ switch(directEditionMode) {
+ case IDirectEdition.NO_DIRECT_EDITION:
+ // no direct edition mode => does nothing
+ return;
+ case IDirectEdition.EXTENDED_DIRECT_EDITOR:
+ updateExtendedEditorConfiguration();
+ if(configuration == null || configuration.getLanguage() == null) {
+ performDefaultDirectEditorEdit(theRequest);
+ } else {
+ configuration.preEditAction(resolveSemanticElement());
+ Dialog dialog = null;
+ if(configuration instanceof IPopupEditorConfiguration) {
+ IPopupEditorHelper helper = ((IPopupEditorConfiguration)configuration).createPopupEditorHelper(this);
+ helper.showEditor();
+ return;
+ } else if(configuration instanceof IAdvancedEditorConfiguration) {
+ dialog = ((IAdvancedEditorConfiguration)configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
+ } else if(configuration instanceof IDirectEditorConfiguration) {
+ dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), ((IDirectEditorConfiguration)configuration).getTextToEdit(resolveSemanticElement()), (IDirectEditorConfiguration)configuration);
+ } else {
+ return;
+ }
+ final Dialog finalDialog = dialog;
+
+ if(Window.OK == dialog.open()) {
+ TransactionalEditingDomain domain = getEditingDomain();
+ RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
+
+ @Override
+ protected void doExecute() {
+ configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog)finalDialog).getValue());
+
+ }
+ };
+ domain.getCommandStack().execute(command);
+ }
+ }
+ break;
+ case IDirectEdition.DEFAULT_DIRECT_EDITOR:
+
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ break;
+ default:
+ break;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshLabel();
+ refreshFont();
+ refreshFontColor();
+ refreshUnderline();
+ refreshStrikeThrough();
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshLabel() {
+ EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
+ if(maskLabelPolicy == null) {
+ setLabelTextHelper(getFigure(), getLabelText());
+ setLabelIconHelper(getFigure(), getLabelIcon());
+ }
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshUnderline() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextUnderline(style.isUnderline());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshStrikeThrough() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextStrikeThrough(style.isStrikeThrough());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshFont() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null) {
+ FontData fontData = new FontData(style.getFontName(), style.getFontHeight(), (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
+ setFont(fontData);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setFontColor(Color color) {
+ getFigure().setForegroundColor(color);
+ }
+
+ /**
+ * @generated
+ */
+ protected void addSemanticListeners() {
+ if(getParser() instanceof ISemanticParser) {
+ EObject element = resolveSemanticElement();
+ parserElements = ((ISemanticParser)getParser()).getSemanticElementsBeingParsed(element);
+ for(int i = 0; i < parserElements.size(); i++) {
+ addListenerFilter("SemanticModel" + i, this, (EObject)parserElements.get(i)); //$NON-NLS-1$
+ }
+ } else {
+ super.addSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeSemanticListeners() {
+ if(parserElements != null) {
+ for(int i = 0; i < parserElements.size(); i++) {
+ removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
+ }
+ } else {
+ super.removeSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected AccessibleEditPart getAccessibleEditPart() {
+ if(accessibleEP == null) {
+ accessibleEP = new AccessibleGraphicalEditPart() {
+
+ public void getName(AccessibleEvent e) {
+ e.result = getLabelTextHelper(getFigure());
+ }
+ };
+ }
+ return accessibleEP;
+ }
+
+ /**
+ * @generated
+ */
+ private View getFontStyleOwnerView() {
+ return getPrimaryView();
+ }
+
+ /**
+ * Returns the kind of associated editor for direct edition.
+ *
+ * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition
+ * @generated
+ */
+ public int getDirectEditionType() {
+ if(checkExtendedEditor()) {
+ initExtendedEditorConfiguration();
+ return IDirectEdition.EXTENDED_DIRECT_EDITOR;
+ }
+ if(checkDefaultEdition()) {
+ return IDirectEdition.DEFAULT_DIRECT_EDITOR;
+ }
+
+ // not a named element. no specific editor => do nothing
+ return IDirectEdition.NO_DIRECT_EDITION;
+ }
+
+ /**
+ * Checks if an extended editor is present.
+ *
+ * @return <code>true</code> if an extended editor is present.
+ * @generated
+ */
+ protected boolean checkExtendedEditor() {
+ if(resolveSemanticElement() != null) {
+ return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ return false;
+ }
+
+ /**
+ * Checks if a default direct edition is available
+ *
+ * @return <code>true</code> if a default direct edition is available
+ * @generated
+ */
+ protected boolean checkDefaultEdition() {
+ return (getParser() != null);
+ }
+
+ /**
+ * Initializes the extended editor configuration
+ *
+ * @generated
+ */
+ protected void initExtendedEditorConfiguration() {
+ if(configuration == null) {
+ final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("")) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else {
+ configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ }
+ }
+
+ /**
+ * Updates the preference configuration
+ *
+ * @generated
+ */
+ protected void updateExtendedEditorConfiguration() {
+ String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("") && languagePreferred != configuration.getLanguage()) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else if(IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
+ configuration = null;
+ }
+ }
+
+ /**
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
+ protected void performDefaultDirectEditorEdit(final Request theRequest) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void handleNotificationEvent(Notification event) {
+ Object feature = event.getFeature();
+ if(NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
+ Integer c = (Integer)event.getNewValue();
+ setFontColor(DiagramColorRegistry.getInstance().getColor(c));
+ } else if(NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
+ refreshUnderline();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
+ refreshStrikeThrough();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
+ refreshFont();
+ } else {
+ if(getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
+ refreshLabel();
+ }
+ if(getParser() instanceof ISemanticParser) {
+ ISemanticParser modelParser = (ISemanticParser)getParser();
+ if(modelParser.areSemanticElementsAffected(null, event)) {
+ removeSemanticListeners();
+ if(resolveSemanticElement() != null) {
+ addSemanticListeners();
+ }
+ refreshLabel();
+ }
+ }
+ }
+
+ super.handleNotificationEvent(event);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createFigure() {
+ // Parent should assign one using setLabel() method
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ public String getLabelRole() {
+ return "Tag";//$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ public String getIconPathRole() {
+ return "";//$NON-NLS-1$
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/RoleBindingAppliedStereotypeEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/RoleBindingAppliedStereotypeEditPart.java
new file mode 100644
index 00000000000..1a774081a56
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/RoleBindingAppliedStereotypeEditPart.java
@@ -0,0 +1,742 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.ConnectionLocator;
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.emf.transaction.RunnableWithResult;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.AccessibleEditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.requests.DirectEditRequest;
+import org.eclipse.gef.tools.DirectEditManager;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.LabelEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
+import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
+import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
+import org.eclipse.gmf.runtime.notation.FontStyle;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
+import org.eclipse.jface.viewers.ICellEditorValidator;
+import org.eclipse.jface.window.Window;
+import org.eclipse.papyrus.diagram.common.directedit.MultilineLabelDirectEditManager;
+import org.eclipse.papyrus.diagram.common.editparts.ILabelRoleProvider;
+import org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition;
+import org.eclipse.papyrus.diagram.common.editpolicies.IMaskManagedLabelEditPolicy;
+import org.eclipse.papyrus.diagram.common.figure.node.ILabelFigure;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLTextSelectionEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.diagram.composite.providers.UMLParserProvider;
+import org.eclipse.papyrus.extensionpoints.editors.Activator;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
+import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
+import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.AccessibleEvent;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.FontData;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.ui.PlatformUI;
+
+/**
+ * @generated
+ */
+public class RoleBindingAppliedStereotypeEditPart extends LabelEditPart implements ITextAwareEditPart
+
+, ILabelRoleProvider
+
+{
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 6028;
+
+ /**
+ * @generated
+ */
+ private DirectEditManager manager;
+
+ /**
+ * @generated
+ */
+ private IParser parser;
+
+ /**
+ * @generated
+ */
+ private List<?> parserElements;
+
+ /**
+ * @generated
+ */
+ private String defaultText;
+
+ /**
+ * direct edition mode (default, undefined, registered editor, etc.)
+ *
+ * @generated
+ */
+ protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
+
+ /**
+ * configuration from a registered edit dialog
+ *
+ * @generated
+ */
+ protected IDirectEditorConfiguration configuration;
+
+ /**
+ * @generated
+ */
+ static {
+ registerSnapBackPosition(UMLVisualIDRegistry.getType(org.eclipse.papyrus.diagram.composite.edit.parts.RoleBindingAppliedStereotypeEditPart.VISUAL_ID), new Point(0, 60));
+ }
+
+ /**
+ * @generated
+ */
+ public RoleBindingAppliedStereotypeEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
+ installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new CompositeStructureDiagramEditPart.LinkLabelDragPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ public int getKeyPoint() {
+ return ConnectionLocator.MIDDLE;
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelTextHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getText();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getText();
+ } else {
+ return ((Label)figure).getText();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelTextHelper(IFigure figure, String text) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setText(text);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setText(text);
+ } else {
+ ((Label)figure).setText(text);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIconHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getIcon();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getIcon();
+ } else {
+ return ((Label)figure).getIcon();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelIconHelper(IFigure figure, Image icon) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setIcon(icon);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setIcon(icon);
+ } else {
+ ((Label)figure).setIcon(icon);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabel(WrappingLabel figure) {
+ unregisterVisuals();
+ setFigure(figure);
+ defaultText = getLabelTextHelper(figure);
+ registerVisuals();
+ refreshVisuals();
+ }
+
+ /**
+ * @generated
+ */
+ protected List getModelChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject getParserElement() {
+ return resolveSemanticElement();
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIcon() {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelText() {
+ String text = null;
+ EObject parserElement = getParserElement();
+ if(parserElement != null && getParser() != null) {
+ text = getParser().getPrintString(new EObjectAdapter(parserElement), getParserOptions().intValue());
+ }
+ if(text == null || text.length() == 0) {
+ text = defaultText;
+ }
+ return text;
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabelText(String text) {
+ setLabelTextHelper(getFigure(), text);
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public String getEditText() {
+ if(getParserElement() == null || getParser() == null) {
+ return ""; //$NON-NLS-1$
+ }
+ return getParser().getEditString(new EObjectAdapter(getParserElement()), getParserOptions().intValue());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean isEditable() {
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ public ICellEditorValidator getEditTextValidator() {
+ return new ICellEditorValidator() {
+
+ public String isValid(final Object value) {
+ if(value instanceof String) {
+ final EObject element = getParserElement();
+ final IParser parser = getParser();
+ try {
+ IParserEditStatus valid = (IParserEditStatus)getEditingDomain().runExclusive(new RunnableWithResult.Impl() {
+
+ public void run() {
+ setResult(parser.isValidEditString(new EObjectAdapter(element), (String)value));
+ }
+ });
+ return valid.getCode() == ParserEditStatus.EDITABLE ? null : valid.getMessage();
+ } catch (InterruptedException ie) {
+ ie.printStackTrace();
+ }
+ }
+
+ // shouldn't get here
+ return null;
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ public IContentAssistProcessor getCompletionProcessor() {
+ if(getParserElement() == null || getParser() == null) {
+ return null;
+ }
+ return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
+ }
+
+ /**
+ * @generated
+ */
+ public ParserOptions getParserOptions() {
+ return ParserOptions.NONE;
+ }
+
+ /**
+ * @generated
+ */
+ public IParser getParser() {
+ if(parser == null) {
+ parser = UMLParserProvider.getParser(UMLElementTypes.Dependency_4017, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.diagram.composite.edit.parts.RoleBindingAppliedStereotypeEditPart.VISUAL_ID));
+ }
+ return parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected DirectEditManager getManager() {
+ if(manager == null) {
+ setManager(new MultilineLabelDirectEditManager(this, MultilineLabelDirectEditManager.getTextCellEditorClass(this), UMLEditPartFactory.getTextCellEditorLocator(this)));
+ }
+ return manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setManager(DirectEditManager manager) {
+ this.manager = manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit() {
+ getManager().show();
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit(Point eventLocation) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(eventLocation.getSWTPoint());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void performDirectEdit(char initialCharacter) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(initialCharacter);
+ } else {
+ performDirectEdit();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEditRequest(Request request) {
+
+ final Request theRequest = request;
+
+ if(IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
+ directEditionMode = getDirectEditionType();
+ }
+ switch(directEditionMode) {
+ case IDirectEdition.NO_DIRECT_EDITION:
+ // no direct edition mode => does nothing
+ return;
+ case IDirectEdition.EXTENDED_DIRECT_EDITOR:
+ updateExtendedEditorConfiguration();
+ if(configuration == null || configuration.getLanguage() == null) {
+ performDefaultDirectEditorEdit(theRequest);
+ } else {
+ configuration.preEditAction(resolveSemanticElement());
+ Dialog dialog = null;
+ if(configuration instanceof IPopupEditorConfiguration) {
+ IPopupEditorHelper helper = ((IPopupEditorConfiguration)configuration).createPopupEditorHelper(this);
+ helper.showEditor();
+ return;
+ } else if(configuration instanceof IAdvancedEditorConfiguration) {
+ dialog = ((IAdvancedEditorConfiguration)configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
+ } else if(configuration instanceof IDirectEditorConfiguration) {
+ dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), ((IDirectEditorConfiguration)configuration).getTextToEdit(resolveSemanticElement()), (IDirectEditorConfiguration)configuration);
+ } else {
+ return;
+ }
+ final Dialog finalDialog = dialog;
+
+ if(Window.OK == dialog.open()) {
+ TransactionalEditingDomain domain = getEditingDomain();
+ RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
+
+ @Override
+ protected void doExecute() {
+ configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog)finalDialog).getValue());
+
+ }
+ };
+ domain.getCommandStack().execute(command);
+ }
+ }
+ break;
+ case IDirectEdition.DEFAULT_DIRECT_EDITOR:
+
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ break;
+ default:
+ break;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshLabel();
+ refreshFont();
+ refreshFontColor();
+ refreshUnderline();
+ refreshStrikeThrough();
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshLabel() {
+ EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
+ if(maskLabelPolicy == null) {
+ setLabelTextHelper(getFigure(), getLabelText());
+ setLabelIconHelper(getFigure(), getLabelIcon());
+ }
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshUnderline() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextUnderline(style.isUnderline());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshStrikeThrough() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextStrikeThrough(style.isStrikeThrough());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshFont() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null) {
+ FontData fontData = new FontData(style.getFontName(), style.getFontHeight(), (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
+ setFont(fontData);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setFontColor(Color color) {
+ getFigure().setForegroundColor(color);
+ }
+
+ /**
+ * @generated
+ */
+ protected void addSemanticListeners() {
+ if(getParser() instanceof ISemanticParser) {
+ EObject element = resolveSemanticElement();
+ parserElements = ((ISemanticParser)getParser()).getSemanticElementsBeingParsed(element);
+ for(int i = 0; i < parserElements.size(); i++) {
+ addListenerFilter("SemanticModel" + i, this, (EObject)parserElements.get(i)); //$NON-NLS-1$
+ }
+ } else {
+ super.addSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeSemanticListeners() {
+ if(parserElements != null) {
+ for(int i = 0; i < parserElements.size(); i++) {
+ removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
+ }
+ } else {
+ super.removeSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected AccessibleEditPart getAccessibleEditPart() {
+ if(accessibleEP == null) {
+ accessibleEP = new AccessibleGraphicalEditPart() {
+
+ public void getName(AccessibleEvent e) {
+ e.result = getLabelTextHelper(getFigure());
+ }
+ };
+ }
+ return accessibleEP;
+ }
+
+ /**
+ * @generated
+ */
+ private View getFontStyleOwnerView() {
+ return getPrimaryView();
+ }
+
+ /**
+ * Returns the kind of associated editor for direct edition.
+ *
+ * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition
+ * @generated
+ */
+ public int getDirectEditionType() {
+ // The label is read-only (defined in GMFGen model)
+ return IDirectEdition.NO_DIRECT_EDITION;
+ }
+
+ /**
+ * Checks if an extended editor is present.
+ *
+ * @return <code>true</code> if an extended editor is present.
+ * @generated
+ */
+ protected boolean checkExtendedEditor() {
+ if(resolveSemanticElement() != null) {
+ return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ return false;
+ }
+
+ /**
+ * Checks if a default direct edition is available
+ *
+ * @return <code>true</code> if a default direct edition is available
+ * @generated
+ */
+ protected boolean checkDefaultEdition() {
+ return (getParser() != null);
+ }
+
+ /**
+ * Initializes the extended editor configuration
+ *
+ * @generated
+ */
+ protected void initExtendedEditorConfiguration() {
+ if(configuration == null) {
+ final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("")) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else {
+ configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ }
+ }
+
+ /**
+ * Updates the preference configuration
+ *
+ * @generated
+ */
+ protected void updateExtendedEditorConfiguration() {
+ String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("") && languagePreferred != configuration.getLanguage()) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else if(IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
+ configuration = null;
+ }
+ }
+
+ /**
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
+ protected void performDefaultDirectEditorEdit(final Request theRequest) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void handleNotificationEvent(Notification event) {
+ Object feature = event.getFeature();
+ if(NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
+ Integer c = (Integer)event.getNewValue();
+ setFontColor(DiagramColorRegistry.getInstance().getColor(c));
+ } else if(NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
+ refreshUnderline();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
+ refreshStrikeThrough();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
+ refreshFont();
+ } else {
+ if(getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
+ refreshLabel();
+ }
+ if(getParser() instanceof ISemanticParser) {
+ ISemanticParser modelParser = (ISemanticParser)getParser();
+ if(modelParser.areSemanticElementsAffected(null, event)) {
+ removeSemanticListeners();
+ if(resolveSemanticElement() != null) {
+ addSemanticListeners();
+ }
+ refreshLabel();
+ }
+ }
+ }
+
+ super.handleNotificationEvent(event);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createFigure() {
+ // Parent should assign one using setLabel() method
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ public String getLabelRole() {
+ return "Stereotype";//$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ public String getIconPathRole() {
+ return "";//$NON-NLS-1$
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/RoleBindingEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/RoleBindingEditPart.java
new file mode 100644
index 00000000000..2b7c29c59e4
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/RoleBindingEditPart.java
@@ -0,0 +1,121 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import org.eclipse.draw2d.Connection;
+import org.eclipse.gef.EditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITreeBranchEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.diagram.common.editparts.UMLConnectionNodeEditPart;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeLinkLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.figures.RoleBindingFigure;
+import org.eclipse.papyrus.diagram.composite.edit.policies.RoleBindingItemSemanticEditPolicy;
+
+/**
+ * @generated
+ */
+public class RoleBindingEditPart extends
+
+UMLConnectionNodeEditPart implements ITreeBranchEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 4017;
+
+ /**
+ * @generated
+ */
+ public RoleBindingEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new RoleBindingItemSemanticEditPolicy());
+ installEditPolicy(AppliedStereotypeLinkLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeLinkLabelDisplayEditPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean addFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof RoleBindingRoleNameEditPart) {
+ ((RoleBindingRoleNameEditPart)childEditPart).setLabel(getPrimaryShape().getRoleLabel());
+ return true;
+ }
+ if(childEditPart instanceof RoleBindingAppliedStereotypeEditPart) {
+ ((RoleBindingAppliedStereotypeEditPart)childEditPart).setLabel(getPrimaryShape().getAppliedStereotypeLabel());
+ return true;
+ }
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected void addChildVisual(EditPart childEditPart, int index) {
+ if(addFixedChild(childEditPart)) {
+ return;
+ }
+ super.addChildVisual(childEditPart, -1);
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean removeFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof RoleBindingRoleNameEditPart) {
+ return true;
+ }
+ if(childEditPart instanceof RoleBindingAppliedStereotypeEditPart) {
+ return true;
+ }
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeChildVisual(EditPart childEditPart) {
+ if(removeFixedChild(childEditPart)) {
+ return;
+ }
+ super.removeChildVisual(childEditPart);
+ }
+
+ /**
+ * Creates figure for this edit part.
+ *
+ * Body of this method does not depend on settings in generation model
+ * so you may safely remove <i>generated</i> tag and modify it.
+ *
+ * @generated
+ */
+ protected Connection createConnectionFigure() {
+ return new RoleBindingFigure();
+ }
+
+ /**
+ * @generated
+ */
+ public RoleBindingFigure getPrimaryShape() {
+ return (RoleBindingFigure)getFigure();
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/RoleBindingRoleNameEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/RoleBindingRoleNameEditPart.java
new file mode 100644
index 00000000000..7008bca236a
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/RoleBindingRoleNameEditPart.java
@@ -0,0 +1,742 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.ConnectionLocator;
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.emf.transaction.RunnableWithResult;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.AccessibleEditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.requests.DirectEditRequest;
+import org.eclipse.gef.tools.DirectEditManager;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.LabelEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
+import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
+import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
+import org.eclipse.gmf.runtime.notation.FontStyle;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
+import org.eclipse.jface.viewers.ICellEditorValidator;
+import org.eclipse.jface.window.Window;
+import org.eclipse.papyrus.diagram.common.directedit.MultilineLabelDirectEditManager;
+import org.eclipse.papyrus.diagram.common.editparts.ILabelRoleProvider;
+import org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition;
+import org.eclipse.papyrus.diagram.common.editpolicies.IMaskManagedLabelEditPolicy;
+import org.eclipse.papyrus.diagram.common.figure.node.ILabelFigure;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLTextSelectionEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.diagram.composite.providers.UMLParserProvider;
+import org.eclipse.papyrus.extensionpoints.editors.Activator;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
+import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
+import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.AccessibleEvent;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.FontData;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.ui.PlatformUI;
+
+/**
+ * @generated
+ */
+public class RoleBindingRoleNameEditPart extends LabelEditPart implements ITextAwareEditPart
+
+, ILabelRoleProvider
+
+{
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 6027;
+
+ /**
+ * @generated
+ */
+ private DirectEditManager manager;
+
+ /**
+ * @generated
+ */
+ private IParser parser;
+
+ /**
+ * @generated
+ */
+ private List<?> parserElements;
+
+ /**
+ * @generated
+ */
+ private String defaultText;
+
+ /**
+ * direct edition mode (default, undefined, registered editor, etc.)
+ *
+ * @generated
+ */
+ protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
+
+ /**
+ * configuration from a registered edit dialog
+ *
+ * @generated
+ */
+ protected IDirectEditorConfiguration configuration;
+
+ /**
+ * @generated
+ */
+ static {
+ registerSnapBackPosition(UMLVisualIDRegistry.getType(org.eclipse.papyrus.diagram.composite.edit.parts.RoleBindingRoleNameEditPart.VISUAL_ID), new Point(0, 20));
+ }
+
+ /**
+ * @generated
+ */
+ public RoleBindingRoleNameEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
+ installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new CompositeStructureDiagramEditPart.LinkLabelDragPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ public int getKeyPoint() {
+ return ConnectionLocator.SOURCE;
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelTextHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getText();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getText();
+ } else {
+ return ((Label)figure).getText();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelTextHelper(IFigure figure, String text) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setText(text);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setText(text);
+ } else {
+ ((Label)figure).setText(text);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIconHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getIcon();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getIcon();
+ } else {
+ return ((Label)figure).getIcon();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelIconHelper(IFigure figure, Image icon) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setIcon(icon);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setIcon(icon);
+ } else {
+ ((Label)figure).setIcon(icon);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabel(WrappingLabel figure) {
+ unregisterVisuals();
+ setFigure(figure);
+ defaultText = getLabelTextHelper(figure);
+ registerVisuals();
+ refreshVisuals();
+ }
+
+ /**
+ * @generated
+ */
+ protected List getModelChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject getParserElement() {
+ return resolveSemanticElement();
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIcon() {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelText() {
+ String text = null;
+ EObject parserElement = getParserElement();
+ if(parserElement != null && getParser() != null) {
+ text = getParser().getPrintString(new EObjectAdapter(parserElement), getParserOptions().intValue());
+ }
+ if(text == null || text.length() == 0) {
+ text = defaultText;
+ }
+ return text;
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabelText(String text) {
+ setLabelTextHelper(getFigure(), text);
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public String getEditText() {
+ if(getParserElement() == null || getParser() == null) {
+ return ""; //$NON-NLS-1$
+ }
+ return getParser().getEditString(new EObjectAdapter(getParserElement()), getParserOptions().intValue());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean isEditable() {
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ public ICellEditorValidator getEditTextValidator() {
+ return new ICellEditorValidator() {
+
+ public String isValid(final Object value) {
+ if(value instanceof String) {
+ final EObject element = getParserElement();
+ final IParser parser = getParser();
+ try {
+ IParserEditStatus valid = (IParserEditStatus)getEditingDomain().runExclusive(new RunnableWithResult.Impl() {
+
+ public void run() {
+ setResult(parser.isValidEditString(new EObjectAdapter(element), (String)value));
+ }
+ });
+ return valid.getCode() == ParserEditStatus.EDITABLE ? null : valid.getMessage();
+ } catch (InterruptedException ie) {
+ ie.printStackTrace();
+ }
+ }
+
+ // shouldn't get here
+ return null;
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ public IContentAssistProcessor getCompletionProcessor() {
+ if(getParserElement() == null || getParser() == null) {
+ return null;
+ }
+ return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
+ }
+
+ /**
+ * @generated
+ */
+ public ParserOptions getParserOptions() {
+ return ParserOptions.NONE;
+ }
+
+ /**
+ * @generated
+ */
+ public IParser getParser() {
+ if(parser == null) {
+ parser = UMLParserProvider.getParser(UMLElementTypes.Dependency_4017, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.diagram.composite.edit.parts.RoleBindingRoleNameEditPart.VISUAL_ID));
+ }
+ return parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected DirectEditManager getManager() {
+ if(manager == null) {
+ setManager(new MultilineLabelDirectEditManager(this, MultilineLabelDirectEditManager.getTextCellEditorClass(this), UMLEditPartFactory.getTextCellEditorLocator(this)));
+ }
+ return manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setManager(DirectEditManager manager) {
+ this.manager = manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit() {
+ getManager().show();
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit(Point eventLocation) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(eventLocation.getSWTPoint());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void performDirectEdit(char initialCharacter) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(initialCharacter);
+ } else {
+ performDirectEdit();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEditRequest(Request request) {
+
+ final Request theRequest = request;
+
+ if(IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
+ directEditionMode = getDirectEditionType();
+ }
+ switch(directEditionMode) {
+ case IDirectEdition.NO_DIRECT_EDITION:
+ // no direct edition mode => does nothing
+ return;
+ case IDirectEdition.EXTENDED_DIRECT_EDITOR:
+ updateExtendedEditorConfiguration();
+ if(configuration == null || configuration.getLanguage() == null) {
+ performDefaultDirectEditorEdit(theRequest);
+ } else {
+ configuration.preEditAction(resolveSemanticElement());
+ Dialog dialog = null;
+ if(configuration instanceof IPopupEditorConfiguration) {
+ IPopupEditorHelper helper = ((IPopupEditorConfiguration)configuration).createPopupEditorHelper(this);
+ helper.showEditor();
+ return;
+ } else if(configuration instanceof IAdvancedEditorConfiguration) {
+ dialog = ((IAdvancedEditorConfiguration)configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
+ } else if(configuration instanceof IDirectEditorConfiguration) {
+ dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), ((IDirectEditorConfiguration)configuration).getTextToEdit(resolveSemanticElement()), (IDirectEditorConfiguration)configuration);
+ } else {
+ return;
+ }
+ final Dialog finalDialog = dialog;
+
+ if(Window.OK == dialog.open()) {
+ TransactionalEditingDomain domain = getEditingDomain();
+ RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
+
+ @Override
+ protected void doExecute() {
+ configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog)finalDialog).getValue());
+
+ }
+ };
+ domain.getCommandStack().execute(command);
+ }
+ }
+ break;
+ case IDirectEdition.DEFAULT_DIRECT_EDITOR:
+
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ break;
+ default:
+ break;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshLabel();
+ refreshFont();
+ refreshFontColor();
+ refreshUnderline();
+ refreshStrikeThrough();
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshLabel() {
+ EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
+ if(maskLabelPolicy == null) {
+ setLabelTextHelper(getFigure(), getLabelText());
+ setLabelIconHelper(getFigure(), getLabelIcon());
+ }
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshUnderline() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextUnderline(style.isUnderline());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshStrikeThrough() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextStrikeThrough(style.isStrikeThrough());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshFont() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null) {
+ FontData fontData = new FontData(style.getFontName(), style.getFontHeight(), (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
+ setFont(fontData);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setFontColor(Color color) {
+ getFigure().setForegroundColor(color);
+ }
+
+ /**
+ * @generated
+ */
+ protected void addSemanticListeners() {
+ if(getParser() instanceof ISemanticParser) {
+ EObject element = resolveSemanticElement();
+ parserElements = ((ISemanticParser)getParser()).getSemanticElementsBeingParsed(element);
+ for(int i = 0; i < parserElements.size(); i++) {
+ addListenerFilter("SemanticModel" + i, this, (EObject)parserElements.get(i)); //$NON-NLS-1$
+ }
+ } else {
+ super.addSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeSemanticListeners() {
+ if(parserElements != null) {
+ for(int i = 0; i < parserElements.size(); i++) {
+ removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
+ }
+ } else {
+ super.removeSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected AccessibleEditPart getAccessibleEditPart() {
+ if(accessibleEP == null) {
+ accessibleEP = new AccessibleGraphicalEditPart() {
+
+ public void getName(AccessibleEvent e) {
+ e.result = getLabelTextHelper(getFigure());
+ }
+ };
+ }
+ return accessibleEP;
+ }
+
+ /**
+ * @generated
+ */
+ private View getFontStyleOwnerView() {
+ return getPrimaryView();
+ }
+
+ /**
+ * Returns the kind of associated editor for direct edition.
+ *
+ * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition
+ * @generated
+ */
+ public int getDirectEditionType() {
+ // The label is read-only (defined in GMFGen model)
+ return IDirectEdition.NO_DIRECT_EDITION;
+ }
+
+ /**
+ * Checks if an extended editor is present.
+ *
+ * @return <code>true</code> if an extended editor is present.
+ * @generated
+ */
+ protected boolean checkExtendedEditor() {
+ if(resolveSemanticElement() != null) {
+ return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ return false;
+ }
+
+ /**
+ * Checks if a default direct edition is available
+ *
+ * @return <code>true</code> if a default direct edition is available
+ * @generated
+ */
+ protected boolean checkDefaultEdition() {
+ return (getParser() != null);
+ }
+
+ /**
+ * Initializes the extended editor configuration
+ *
+ * @generated
+ */
+ protected void initExtendedEditorConfiguration() {
+ if(configuration == null) {
+ final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("")) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else {
+ configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ }
+ }
+
+ /**
+ * Updates the preference configuration
+ *
+ * @generated
+ */
+ protected void updateExtendedEditorConfiguration() {
+ String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("") && languagePreferred != configuration.getLanguage()) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else if(IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
+ configuration = null;
+ }
+ }
+
+ /**
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
+ protected void performDefaultDirectEditorEdit(final Request theRequest) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void handleNotificationEvent(Notification event) {
+ Object feature = event.getFeature();
+ if(NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
+ Integer c = (Integer)event.getNewValue();
+ setFontColor(DiagramColorRegistry.getInstance().getColor(c));
+ } else if(NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
+ refreshUnderline();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
+ refreshStrikeThrough();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
+ refreshFont();
+ } else {
+ if(getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
+ refreshLabel();
+ }
+ if(getParser() instanceof ISemanticParser) {
+ ISemanticParser modelParser = (ISemanticParser)getParser();
+ if(modelParser.areSemanticElementsAffected(null, event)) {
+ removeSemanticListeners();
+ if(resolveSemanticElement() != null) {
+ addSemanticListeners();
+ }
+ refreshLabel();
+ }
+ }
+ }
+
+ super.handleNotificationEvent(event);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createFigure() {
+ // Parent should assign one using setLabel() method
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ public String getLabelRole() {
+ return "Name";//$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ public String getIconPathRole() {
+ return "";//$NON-NLS-1$
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/SendOperationEventEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/SendOperationEventEditPart.java
new file mode 100644
index 00000000000..6bb12197096
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/SendOperationEventEditPart.java
@@ -0,0 +1,5167 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.ArrayList;
+import java.util.LinkedList;
+import java.util.List;
+
+import org.eclipse.draw2d.ColorConstants;
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.RectangleFigure;
+import org.eclipse.draw2d.Shape;
+import org.eclipse.draw2d.StackLayout;
+import org.eclipse.emf.ecore.EStructuralFeature;
+import org.eclipse.gef.EditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.editpolicies.LayoutEditPolicy;
+import org.eclipse.gef.editpolicies.NonResizableEditPolicy;
+import org.eclipse.gef.requests.CreateRequest;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ShapeNodeEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.FigureUtilities;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.gef.ui.figures.DefaultSizeNodeFigure;
+import org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.jface.preference.PreferenceConverter;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.HyperLinkPopupBarEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.QualifiedNameDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.helper.PreferenceInitializerForElementHelper;
+import org.eclipse.papyrus.diagram.composite.edit.policies.SendOperationEventItemSemanticEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorPlugin;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter;
+import org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.Font;
+import org.eclipse.swt.widgets.Display;
+
+/**
+ * @generated
+ */
+public class SendOperationEventEditPart extends
+
+ShapeNodeEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 2087;
+
+ /**
+ * @generated
+ */
+ protected IFigure contentPane;
+
+ /**
+ * @generated
+ */
+ protected IFigure primaryShape;
+
+ /**
+ * @generated
+ */
+ public SendOperationEventEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new SendOperationEventItemSemanticEditPolicy());
+ installEditPolicy(EditPolicy.LAYOUT_ROLE, createLayoutEditPolicy());
+ installEditPolicy(QualifiedNameDisplayEditPolicy.QUALIFIED_NAME_POLICY, new QualifiedNameDisplayEditPolicy());
+ installEditPolicy(AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeNodeLabelDisplayEditPolicy());
+ installEditPolicy(EditPolicyRoles.POPUPBAR_ROLE, new HyperLinkPopupBarEditPolicy());
+ // XXX need an SCR to runtime to have another abstract superclass that would let children add reasonable editpolicies
+ // removeEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CONNECTION_HANDLES_ROLE);
+ }
+
+ /**
+ * @generated
+ */
+ protected LayoutEditPolicy createLayoutEditPolicy() {
+ org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy lep = new org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy() {
+
+ protected EditPolicy createChildEditPolicy(EditPart child) {
+ EditPolicy result = child.getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(result == null) {
+ result = new NonResizableEditPolicy();
+ }
+ return result;
+ }
+
+ protected Command getMoveChildrenCommand(Request request) {
+ return null;
+ }
+
+ protected Command getCreateCommand(CreateRequest request) {
+ return null;
+ }
+ };
+ return lep;
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createNodeShape() {
+ return primaryShape = new NamedElementDescriptor();
+ }
+
+ /**
+ * @generated
+ */
+ public NamedElementDescriptor getPrimaryShape() {
+ return (NamedElementDescriptor)primaryShape;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean addFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof SendOperationEventNameEditPart) {
+ ((SendOperationEventNameEditPart)childEditPart).setLabel(getPrimaryShape().getNamedElementNameLabel());
+ return true;
+ }
+
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean removeFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof SendOperationEventNameEditPart) {
+ return true;
+ }
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected void addChildVisual(EditPart childEditPart, int index) {
+ if(addFixedChild(childEditPart)) {
+ return;
+ }
+ super.addChildVisual(childEditPart, -1);
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeChildVisual(EditPart childEditPart) {
+ if(removeFixedChild(childEditPart)) {
+ return;
+ }
+ super.removeChildVisual(childEditPart);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure getContentPaneFor(IGraphicalEditPart editPart) {
+ return getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ protected NodeFigure createNodePlate() {
+ String prefElementId = "SendOperationEvent";
+ IPreferenceStore store = UMLDiagramEditorPlugin.getInstance().getPreferenceStore();
+ String preferenceConstantWitdh = PreferenceInitializerForElementHelper.getpreferenceKey(getNotationView(), prefElementId, PreferenceConstantHelper.WIDTH);
+ String preferenceConstantHeight = PreferenceInitializerForElementHelper.getpreferenceKey(getNotationView(), prefElementId, PreferenceConstantHelper.HEIGHT);
+ DefaultSizeNodeFigure result = new DefaultSizeNodeFigure(store.getInt(preferenceConstantWitdh), store.getInt(preferenceConstantHeight));
+
+ return result;
+ }
+
+ /**
+ * Creates figure for this edit part.
+ *
+ * Body of this method does not depend on settings in generation model
+ * so you may safely remove <i>generated</i> tag and modify it.
+ *
+ * @generated
+ */
+ protected NodeFigure createNodeFigure() {
+ NodeFigure figure = createNodePlate();
+ figure.setLayoutManager(new StackLayout());
+ IFigure shape = createNodeShape();
+ figure.add(shape);
+ contentPane = setupContentPane(shape);
+ return figure;
+ }
+
+ /**
+ * Default implementation treats passed figure as content pane.
+ * Respects layout one may have set for generated figure.
+ *
+ * @param nodeShape
+ * instance of generated figure class
+ * @generated
+ */
+ protected IFigure setupContentPane(IFigure nodeShape) {
+ if(nodeShape.getLayoutManager() == null) {
+ ConstrainedToolbarLayout layout = new ConstrainedToolbarLayout();
+ layout.setSpacing(5);
+ nodeShape.setLayoutManager(layout);
+ }
+ return nodeShape; // use nodeShape itself as contentPane
+ }
+
+ /**
+ * @generated
+ */
+ public IFigure getContentPane() {
+ if(contentPane != null) {
+ return contentPane;
+ }
+ return super.getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ protected void setForegroundColor(Color color) {
+ if(primaryShape != null) {
+ primaryShape.setForegroundColor(color);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLineWidth(int width) {
+ if(primaryShape instanceof Shape) {
+ ((Shape)primaryShape).setLineWidth(width);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLineType(int style) {
+ if(primaryShape instanceof Shape) {
+ ((Shape)primaryShape).setLineStyle(style);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public EditPart getPrimaryChildEditPart() {
+ return getChildBySemanticHint(UMLVisualIDRegistry.getType(SendOperationEventNameEditPart.VISUAL_ID));
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnSource() {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(11);
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ types.add(UMLElementTypes.Substitution_4011);
+ types.add(UMLElementTypes.Realization_4006);
+ types.add(UMLElementTypes.Manifestation_4012);
+ types.add(UMLElementTypes.Abstraction_4007);
+ types.add(UMLElementTypes.Usage_4008);
+ types.add(UMLElementTypes.Deployment_4009);
+ types.add(UMLElementTypes.Dependency_4017);
+ types.add(UMLElementTypes.Dependency_4010);
+ types.add(UMLElementTypes.InformationFlow_4021);
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnSourceAndTarget(IGraphicalEditPart targetEditPart) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.SendOperationEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.SendOperationEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.SendOperationEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMATypesForTarget(IElementType relationshipType) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(relationshipType == UMLElementTypes.ComponentRealization_4004) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InterfaceRealization_4005) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Substitution_4011) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Realization_4006) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Manifestation_4012) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Abstraction_4007) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Usage_4008) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Deployment_4009) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4017) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4010) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InformationFlow_4021) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnTarget() {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(15);
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ types.add(UMLElementTypes.Substitution_4011);
+ types.add(UMLElementTypes.Realization_4006);
+ types.add(UMLElementTypes.Manifestation_4012);
+ types.add(UMLElementTypes.Abstraction_4007);
+ types.add(UMLElementTypes.Usage_4008);
+ types.add(UMLElementTypes.Deployment_4009);
+ types.add(UMLElementTypes.Dependency_4017);
+ types.add(UMLElementTypes.Dependency_4010);
+ types.add(UMLElementTypes.TimeObservationEvent_4018);
+ types.add(UMLElementTypes.DurationObservationEvent_4019);
+ types.add(UMLElementTypes.InformationFlow_4021);
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMATypesForSource(IElementType relationshipType) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(relationshipType == UMLElementTypes.CommentAnnotatedElement_4002) {
+ types.add(UMLElementTypes.Comment_2109);
+ types.add(UMLElementTypes.Comment_3097);
+ } else if(relationshipType == UMLElementTypes.ConstraintConstrainedElement_4003) {
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.ComponentRealization_4004) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InterfaceRealization_4005) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Substitution_4011) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Realization_4006) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Manifestation_4012) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Abstraction_4007) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Usage_4008) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Deployment_4009) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4017) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4010) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.TimeObservationEvent_4018) {
+ types.add(UMLElementTypes.TimeObservation_2094);
+ } else if(relationshipType == UMLElementTypes.DurationObservationEvent_4019) {
+ types.add(UMLElementTypes.DurationObservation_2093);
+ } else if(relationshipType == UMLElementTypes.InformationFlow_4021) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public class NamedElementDescriptor extends RectangleFigure {
+
+ /**
+ * @generated
+ */
+ private WrappingLabel fNamedElementNameLabel;
+
+ /**
+ * @generated
+ */
+ public NamedElementDescriptor() {
+ this.setLineWidth(1);
+ this.setForegroundColor(ColorConstants.black);
+ createContents();
+ }
+
+ /**
+ * @generated
+ */
+ private void createContents() {
+
+ fNamedElementNameLabel = new WrappingLabel();
+ fNamedElementNameLabel.setText("");
+ fNamedElementNameLabel.setForegroundColor(ColorConstants.black);
+
+ fNamedElementNameLabel.setFont(FNAMEDELEMENTNAMELABEL_FONT);
+
+ this.add(fNamedElementNameLabel);
+
+ }
+
+ /**
+ * @generated
+ */
+ private boolean myUseLocalCoordinates = false;
+
+ /**
+ * @generated
+ */
+ protected boolean useLocalCoordinates() {
+ return myUseLocalCoordinates;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setUseLocalCoordinates(boolean useLocalCoordinates) {
+ myUseLocalCoordinates = useLocalCoordinates;
+ }
+
+ /**
+ * @generated
+ */
+ public WrappingLabel getNamedElementNameLabel() {
+ return fNamedElementNameLabel;
+ }
+
+ }
+
+ /**
+ * @generated
+ */
+ static final Font FNAMEDELEMENTNAMELABEL_FONT = new Font(Display.getCurrent(), "Arial", 10, SWT.BOLD);
+
+ /**
+ * @generated
+ */
+ @Override
+ public Object getPreferredValue(EStructuralFeature feature) {
+ IPreferenceStore preferenceStore = (IPreferenceStore)getDiagramPreferencesHint().getPreferenceStore();
+ Object result = null;
+
+ if(feature == NotationPackage.eINSTANCE.getLineStyle_LineColor() || feature == NotationPackage.eINSTANCE.getFontStyle_FontColor() || feature == NotationPackage.eINSTANCE.getFillStyle_FillColor()) {
+ String prefColor = null;
+ if(feature == NotationPackage.eINSTANCE.getLineStyle_LineColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("SendOperationEvent", PreferenceConstantHelper.COLOR_LINE);
+ } else if(feature == NotationPackage.eINSTANCE.getFontStyle_FontColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("SendOperationEvent", PreferenceConstantHelper.COLOR_FONT);
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_FillColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("SendOperationEvent", PreferenceConstantHelper.COLOR_FILL);
+ }
+ result = FigureUtilities.RGBToInteger(PreferenceConverter.getColor((IPreferenceStore)preferenceStore, prefColor));
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_Transparency() || feature == NotationPackage.eINSTANCE.getFillStyle_Gradient()) {
+ String prefGradient = PreferenceConstantHelper.getElementConstant("SendOperationEvent", PreferenceConstantHelper.COLOR_GRADIENT);
+ GradientPreferenceConverter gradientPreferenceConverter = new GradientPreferenceConverter(preferenceStore.getString(prefGradient));
+ if(feature == NotationPackage.eINSTANCE.getFillStyle_Transparency()) {
+ result = new Integer(gradientPreferenceConverter.getTransparency());
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_Gradient()) {
+ result = gradientPreferenceConverter.getGradientData();
+ }
+ }
+
+ if(result == null) {
+ result = getStructuralFeatureValue(feature);
+ }
+ return result;
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/SendOperationEventNameEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/SendOperationEventNameEditPart.java
new file mode 100644
index 00000000000..0fb3bbc0149
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/SendOperationEventNameEditPart.java
@@ -0,0 +1,791 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EAnnotation;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.emf.transaction.RunnableWithResult;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.AccessibleEditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.requests.DirectEditRequest;
+import org.eclipse.gef.tools.DirectEditManager;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.CompartmentEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
+import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
+import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
+import org.eclipse.gmf.runtime.notation.FontStyle;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
+import org.eclipse.jface.viewers.ICellEditorValidator;
+import org.eclipse.jface.window.Window;
+import org.eclipse.papyrus.diagram.common.directedit.MultilineLabelDirectEditManager;
+import org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition;
+import org.eclipse.papyrus.diagram.common.editpolicies.IMaskManagedLabelEditPolicy;
+import org.eclipse.papyrus.diagram.common.figure.node.ILabelFigure;
+import org.eclipse.papyrus.diagram.common.util.DiagramEditPartsUtil;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLTextSelectionEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.diagram.composite.providers.UMLParserProvider;
+import org.eclipse.papyrus.extensionpoints.editors.Activator;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
+import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
+import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
+import org.eclipse.papyrus.umlutils.ui.VisualInformationPapyrusConstant;
+import org.eclipse.papyrus.umlutils.ui.helper.NameLabelIconHelper;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.AccessibleEvent;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.FontData;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.ui.PlatformUI;
+
+/**
+ * @generated
+ */
+public class SendOperationEventNameEditPart extends CompartmentEditPart implements ITextAwareEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 5170;
+
+ /**
+ * @generated
+ */
+ private DirectEditManager manager;
+
+ /**
+ * @generated
+ */
+ private IParser parser;
+
+ /**
+ * @generated
+ */
+ private List<?> parserElements;
+
+ /**
+ * @generated
+ */
+ private String defaultText;
+
+ /**
+ * direct edition mode (default, undefined, registered editor, etc.)
+ *
+ * @generated
+ */
+ protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
+
+ /**
+ * configuration from a registered edit dialog
+ *
+ * @generated
+ */
+ protected IDirectEditorConfiguration configuration;
+
+ /**
+ * @generated
+ */
+ public SendOperationEventNameEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
+ installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new CompositeStructureDiagramEditPart.NodeLabelDragPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelTextHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getText();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getText();
+ } else {
+ return ((Label)figure).getText();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelTextHelper(IFigure figure, String text) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setText(text);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setText(text);
+ } else {
+ ((Label)figure).setText(text);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIconHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getIcon();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getIcon();
+ } else {
+ return ((Label)figure).getIcon();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelIconHelper(IFigure figure, Image icon) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setIcon(icon);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setIcon(icon);
+ } else {
+ ((Label)figure).setIcon(icon);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabel(WrappingLabel figure) {
+ unregisterVisuals();
+ setFigure(figure);
+ defaultText = getLabelTextHelper(figure);
+ registerVisuals();
+ refreshVisuals();
+ }
+
+ /**
+ * @generated
+ */
+ protected List getModelChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject getParserElement() {
+ return resolveSemanticElement();
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIcon() {
+ EObject parserElement = getParserElement();
+ if(parserElement == null) {
+ return null;
+ }
+
+ List<View> views = DiagramEditPartsUtil.findViews(parserElement, getViewer());
+ for(View view : views) {
+ if(NameLabelIconHelper.showLabelIcon(view)) {
+ return UMLElementTypes.getImage(parserElement.eClass());
+ }
+ }
+ return null;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelText() {
+ String text = null;
+ EObject parserElement = getParserElement();
+ if(parserElement != null && getParser() != null) {
+ text = getParser().getPrintString(new EObjectAdapter(parserElement), getParserOptions().intValue());
+ }
+ if(text == null || text.length() == 0) {
+ text = defaultText;
+ }
+ return text;
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabelText(String text) {
+ setLabelTextHelper(getFigure(), text);
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public String getEditText() {
+ if(getParserElement() == null || getParser() == null) {
+ return ""; //$NON-NLS-1$
+ }
+ return getParser().getEditString(new EObjectAdapter(getParserElement()), getParserOptions().intValue());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean isEditable() {
+ return getParser() != null;
+ }
+
+ /**
+ * @generated
+ */
+ public ICellEditorValidator getEditTextValidator() {
+ return new ICellEditorValidator() {
+
+ public String isValid(final Object value) {
+ if(value instanceof String) {
+ final EObject element = getParserElement();
+ final IParser parser = getParser();
+ try {
+ IParserEditStatus valid = (IParserEditStatus)getEditingDomain().runExclusive(new RunnableWithResult.Impl() {
+
+ public void run() {
+ setResult(parser.isValidEditString(new EObjectAdapter(element), (String)value));
+ }
+ });
+ return valid.getCode() == ParserEditStatus.EDITABLE ? null : valid.getMessage();
+ } catch (InterruptedException ie) {
+ ie.printStackTrace();
+ }
+ }
+
+ // shouldn't get here
+ return null;
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ public IContentAssistProcessor getCompletionProcessor() {
+ if(getParserElement() == null || getParser() == null) {
+ return null;
+ }
+ return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
+ }
+
+ /**
+ * @generated
+ */
+ public ParserOptions getParserOptions() {
+ return ParserOptions.NONE;
+ }
+
+ /**
+ * @generated
+ */
+ public IParser getParser() {
+ if(parser == null) {
+ parser = UMLParserProvider.getParser(UMLElementTypes.SendOperationEvent_2087, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.diagram.composite.edit.parts.SendOperationEventNameEditPart.VISUAL_ID));
+ }
+ return parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected DirectEditManager getManager() {
+ if(manager == null) {
+ setManager(new MultilineLabelDirectEditManager(this, MultilineLabelDirectEditManager.getTextCellEditorClass(this), UMLEditPartFactory.getTextCellEditorLocator(this)));
+ }
+ return manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setManager(DirectEditManager manager) {
+ this.manager = manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit() {
+ getManager().show();
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit(Point eventLocation) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(eventLocation.getSWTPoint());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void performDirectEdit(char initialCharacter) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(initialCharacter);
+ } else {
+ performDirectEdit();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEditRequest(Request request) {
+
+ final Request theRequest = request;
+
+ if(IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
+ directEditionMode = getDirectEditionType();
+ }
+ switch(directEditionMode) {
+ case IDirectEdition.NO_DIRECT_EDITION:
+ // no direct edition mode => does nothing
+ return;
+ case IDirectEdition.EXTENDED_DIRECT_EDITOR:
+ updateExtendedEditorConfiguration();
+ if(configuration == null || configuration.getLanguage() == null) {
+ performDefaultDirectEditorEdit(theRequest);
+ } else {
+ configuration.preEditAction(resolveSemanticElement());
+ Dialog dialog = null;
+ if(configuration instanceof IPopupEditorConfiguration) {
+ IPopupEditorHelper helper = ((IPopupEditorConfiguration)configuration).createPopupEditorHelper(this);
+ helper.showEditor();
+ return;
+ } else if(configuration instanceof IAdvancedEditorConfiguration) {
+ dialog = ((IAdvancedEditorConfiguration)configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
+ } else if(configuration instanceof IDirectEditorConfiguration) {
+ dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), ((IDirectEditorConfiguration)configuration).getTextToEdit(resolveSemanticElement()), (IDirectEditorConfiguration)configuration);
+ } else {
+ return;
+ }
+ final Dialog finalDialog = dialog;
+
+ if(Window.OK == dialog.open()) {
+ TransactionalEditingDomain domain = getEditingDomain();
+ RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
+
+ @Override
+ protected void doExecute() {
+ configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog)finalDialog).getValue());
+
+ }
+ };
+ domain.getCommandStack().execute(command);
+ }
+ }
+ break;
+ case IDirectEdition.DEFAULT_DIRECT_EDITOR:
+
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ break;
+ default:
+ break;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshLabel();
+ refreshFont();
+ refreshFontColor();
+ refreshUnderline();
+ refreshStrikeThrough();
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshLabel() {
+ EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
+ if(maskLabelPolicy == null) {
+ setLabelTextHelper(getFigure(), getLabelText());
+ setLabelIconHelper(getFigure(), getLabelIcon());
+ }
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshUnderline() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextUnderline(style.isUnderline());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshStrikeThrough() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextStrikeThrough(style.isStrikeThrough());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshFont() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null) {
+ FontData fontData = new FontData(style.getFontName(), style.getFontHeight(), (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
+ setFont(fontData);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setFontColor(Color color) {
+ getFigure().setForegroundColor(color);
+ }
+
+ /**
+ * @generated
+ */
+ protected void addSemanticListeners() {
+ if(getParser() instanceof ISemanticParser) {
+ EObject element = resolveSemanticElement();
+ parserElements = ((ISemanticParser)getParser()).getSemanticElementsBeingParsed(element);
+ for(int i = 0; i < parserElements.size(); i++) {
+ addListenerFilter("SemanticModel" + i, this, (EObject)parserElements.get(i)); //$NON-NLS-1$
+ }
+ } else {
+ super.addSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeSemanticListeners() {
+ if(parserElements != null) {
+ for(int i = 0; i < parserElements.size(); i++) {
+ removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
+ }
+ } else {
+ super.removeSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected AccessibleEditPart getAccessibleEditPart() {
+ if(accessibleEP == null) {
+ accessibleEP = new AccessibleGraphicalEditPart() {
+
+ public void getName(AccessibleEvent e) {
+ e.result = getLabelTextHelper(getFigure());
+ }
+ };
+ }
+ return accessibleEP;
+ }
+
+ /**
+ * @generated
+ */
+ private View getFontStyleOwnerView() {
+ return (View)getModel();
+ }
+
+ /**
+ * Returns the kind of associated editor for direct edition.
+ *
+ * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition
+ * @generated
+ */
+ public int getDirectEditionType() {
+ if(checkExtendedEditor()) {
+ initExtendedEditorConfiguration();
+ return IDirectEdition.EXTENDED_DIRECT_EDITOR;
+ }
+ if(checkDefaultEdition()) {
+ return IDirectEdition.DEFAULT_DIRECT_EDITOR;
+ }
+
+ // not a named element. no specific editor => do nothing
+ return IDirectEdition.NO_DIRECT_EDITION;
+ }
+
+ /**
+ * Checks if an extended editor is present.
+ *
+ * @return <code>true</code> if an extended editor is present.
+ * @generated
+ */
+ protected boolean checkExtendedEditor() {
+ if(resolveSemanticElement() != null) {
+ return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ return false;
+ }
+
+ /**
+ * Checks if a default direct edition is available
+ *
+ * @return <code>true</code> if a default direct edition is available
+ * @generated
+ */
+ protected boolean checkDefaultEdition() {
+ return (getParser() != null);
+ }
+
+ /**
+ * Initializes the extended editor configuration
+ *
+ * @generated
+ */
+ protected void initExtendedEditorConfiguration() {
+ if(configuration == null) {
+ final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("")) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else {
+ configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ }
+ }
+
+ /**
+ * Updates the preference configuration
+ *
+ * @generated
+ */
+ protected void updateExtendedEditorConfiguration() {
+ String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("") && languagePreferred != configuration.getLanguage()) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else if(IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
+ configuration = null;
+ }
+ }
+
+ /**
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
+ protected void performDefaultDirectEditorEdit(final Request theRequest) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void addNotationalListeners() {
+ super.addNotationalListeners();
+ addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeNotationalListeners() {
+ super.removeNotationalListeners();
+ removeListenerFilter("PrimaryView"); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void handleNotificationEvent(Notification event) {
+ refreshLabel();
+ Object feature = event.getFeature();
+ if(NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
+ Integer c = (Integer)event.getNewValue();
+ setFontColor(DiagramColorRegistry.getInstance().getColor(c));
+ } else if(NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
+ refreshUnderline();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
+ refreshStrikeThrough();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
+ refreshFont();
+ } else {
+ if(getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
+ refreshLabel();
+ }
+ if(getParser() instanceof ISemanticParser) {
+ ISemanticParser modelParser = (ISemanticParser)getParser();
+ if(modelParser.areSemanticElementsAffected(null, event)) {
+ removeSemanticListeners();
+ if(resolveSemanticElement() != null) {
+ addSemanticListeners();
+ }
+ refreshLabel();
+ }
+ }
+ }
+
+ if(event.getNewValue() instanceof EAnnotation && VisualInformationPapyrusConstant.DISPLAY_NAMELABELICON.equals(((EAnnotation)event.getNewValue()).getSource())) {
+ refreshLabel();
+ }
+
+ super.handleNotificationEvent(event);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createFigure() {
+ // Parent should assign one using setLabel() method
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ private static final String ADD_PARENT_MODEL = "AddParentModel";
+
+ /**
+ * @generated
+ */
+ public void activate() {
+ super.activate();
+ addOwnerElementListeners();
+ }
+
+ /**
+ * @generated
+ */
+ protected void addOwnerElementListeners() {
+ addListenerFilter(ADD_PARENT_MODEL, this, ((View)getParent().getModel())); //$NON-NLS-1$
+
+ }
+
+ /**
+ * @generated
+ */
+ public void deactivate() {
+ removeOwnerElementListeners();
+ super.deactivate();
+
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeOwnerElementListeners() {
+ removeListenerFilter(ADD_PARENT_MODEL);
+
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/SendSignalEventEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/SendSignalEventEditPart.java
new file mode 100644
index 00000000000..b35b7ccf8a3
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/SendSignalEventEditPart.java
@@ -0,0 +1,5167 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.ArrayList;
+import java.util.LinkedList;
+import java.util.List;
+
+import org.eclipse.draw2d.ColorConstants;
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.RectangleFigure;
+import org.eclipse.draw2d.Shape;
+import org.eclipse.draw2d.StackLayout;
+import org.eclipse.emf.ecore.EStructuralFeature;
+import org.eclipse.gef.EditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.editpolicies.LayoutEditPolicy;
+import org.eclipse.gef.editpolicies.NonResizableEditPolicy;
+import org.eclipse.gef.requests.CreateRequest;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ShapeNodeEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.FigureUtilities;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.gef.ui.figures.DefaultSizeNodeFigure;
+import org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.jface.preference.PreferenceConverter;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.HyperLinkPopupBarEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.QualifiedNameDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.helper.PreferenceInitializerForElementHelper;
+import org.eclipse.papyrus.diagram.composite.edit.policies.SendSignalEventItemSemanticEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorPlugin;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter;
+import org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.Font;
+import org.eclipse.swt.widgets.Display;
+
+/**
+ * @generated
+ */
+public class SendSignalEventEditPart extends
+
+ShapeNodeEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 2086;
+
+ /**
+ * @generated
+ */
+ protected IFigure contentPane;
+
+ /**
+ * @generated
+ */
+ protected IFigure primaryShape;
+
+ /**
+ * @generated
+ */
+ public SendSignalEventEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new SendSignalEventItemSemanticEditPolicy());
+ installEditPolicy(EditPolicy.LAYOUT_ROLE, createLayoutEditPolicy());
+ installEditPolicy(QualifiedNameDisplayEditPolicy.QUALIFIED_NAME_POLICY, new QualifiedNameDisplayEditPolicy());
+ installEditPolicy(AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeNodeLabelDisplayEditPolicy());
+ installEditPolicy(EditPolicyRoles.POPUPBAR_ROLE, new HyperLinkPopupBarEditPolicy());
+ // XXX need an SCR to runtime to have another abstract superclass that would let children add reasonable editpolicies
+ // removeEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CONNECTION_HANDLES_ROLE);
+ }
+
+ /**
+ * @generated
+ */
+ protected LayoutEditPolicy createLayoutEditPolicy() {
+ org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy lep = new org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy() {
+
+ protected EditPolicy createChildEditPolicy(EditPart child) {
+ EditPolicy result = child.getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(result == null) {
+ result = new NonResizableEditPolicy();
+ }
+ return result;
+ }
+
+ protected Command getMoveChildrenCommand(Request request) {
+ return null;
+ }
+
+ protected Command getCreateCommand(CreateRequest request) {
+ return null;
+ }
+ };
+ return lep;
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createNodeShape() {
+ return primaryShape = new NamedElementDescriptor();
+ }
+
+ /**
+ * @generated
+ */
+ public NamedElementDescriptor getPrimaryShape() {
+ return (NamedElementDescriptor)primaryShape;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean addFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof SendSignalEventNameEditPart) {
+ ((SendSignalEventNameEditPart)childEditPart).setLabel(getPrimaryShape().getNamedElementNameLabel());
+ return true;
+ }
+
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean removeFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof SendSignalEventNameEditPart) {
+ return true;
+ }
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected void addChildVisual(EditPart childEditPart, int index) {
+ if(addFixedChild(childEditPart)) {
+ return;
+ }
+ super.addChildVisual(childEditPart, -1);
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeChildVisual(EditPart childEditPart) {
+ if(removeFixedChild(childEditPart)) {
+ return;
+ }
+ super.removeChildVisual(childEditPart);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure getContentPaneFor(IGraphicalEditPart editPart) {
+ return getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ protected NodeFigure createNodePlate() {
+ String prefElementId = "SendSignalEvent";
+ IPreferenceStore store = UMLDiagramEditorPlugin.getInstance().getPreferenceStore();
+ String preferenceConstantWitdh = PreferenceInitializerForElementHelper.getpreferenceKey(getNotationView(), prefElementId, PreferenceConstantHelper.WIDTH);
+ String preferenceConstantHeight = PreferenceInitializerForElementHelper.getpreferenceKey(getNotationView(), prefElementId, PreferenceConstantHelper.HEIGHT);
+ DefaultSizeNodeFigure result = new DefaultSizeNodeFigure(store.getInt(preferenceConstantWitdh), store.getInt(preferenceConstantHeight));
+
+ return result;
+ }
+
+ /**
+ * Creates figure for this edit part.
+ *
+ * Body of this method does not depend on settings in generation model
+ * so you may safely remove <i>generated</i> tag and modify it.
+ *
+ * @generated
+ */
+ protected NodeFigure createNodeFigure() {
+ NodeFigure figure = createNodePlate();
+ figure.setLayoutManager(new StackLayout());
+ IFigure shape = createNodeShape();
+ figure.add(shape);
+ contentPane = setupContentPane(shape);
+ return figure;
+ }
+
+ /**
+ * Default implementation treats passed figure as content pane.
+ * Respects layout one may have set for generated figure.
+ *
+ * @param nodeShape
+ * instance of generated figure class
+ * @generated
+ */
+ protected IFigure setupContentPane(IFigure nodeShape) {
+ if(nodeShape.getLayoutManager() == null) {
+ ConstrainedToolbarLayout layout = new ConstrainedToolbarLayout();
+ layout.setSpacing(5);
+ nodeShape.setLayoutManager(layout);
+ }
+ return nodeShape; // use nodeShape itself as contentPane
+ }
+
+ /**
+ * @generated
+ */
+ public IFigure getContentPane() {
+ if(contentPane != null) {
+ return contentPane;
+ }
+ return super.getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ protected void setForegroundColor(Color color) {
+ if(primaryShape != null) {
+ primaryShape.setForegroundColor(color);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLineWidth(int width) {
+ if(primaryShape instanceof Shape) {
+ ((Shape)primaryShape).setLineWidth(width);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLineType(int style) {
+ if(primaryShape instanceof Shape) {
+ ((Shape)primaryShape).setLineStyle(style);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public EditPart getPrimaryChildEditPart() {
+ return getChildBySemanticHint(UMLVisualIDRegistry.getType(SendSignalEventNameEditPart.VISUAL_ID));
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnSource() {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(11);
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ types.add(UMLElementTypes.Substitution_4011);
+ types.add(UMLElementTypes.Realization_4006);
+ types.add(UMLElementTypes.Manifestation_4012);
+ types.add(UMLElementTypes.Abstraction_4007);
+ types.add(UMLElementTypes.Usage_4008);
+ types.add(UMLElementTypes.Deployment_4009);
+ types.add(UMLElementTypes.Dependency_4017);
+ types.add(UMLElementTypes.Dependency_4010);
+ types.add(UMLElementTypes.InformationFlow_4021);
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnSourceAndTarget(IGraphicalEditPart targetEditPart) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.SendSignalEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.SendSignalEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.SendSignalEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMATypesForTarget(IElementType relationshipType) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(relationshipType == UMLElementTypes.ComponentRealization_4004) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InterfaceRealization_4005) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Substitution_4011) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Realization_4006) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Manifestation_4012) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Abstraction_4007) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Usage_4008) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Deployment_4009) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4017) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4010) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InformationFlow_4021) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnTarget() {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(15);
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ types.add(UMLElementTypes.Substitution_4011);
+ types.add(UMLElementTypes.Realization_4006);
+ types.add(UMLElementTypes.Manifestation_4012);
+ types.add(UMLElementTypes.Abstraction_4007);
+ types.add(UMLElementTypes.Usage_4008);
+ types.add(UMLElementTypes.Deployment_4009);
+ types.add(UMLElementTypes.Dependency_4017);
+ types.add(UMLElementTypes.Dependency_4010);
+ types.add(UMLElementTypes.TimeObservationEvent_4018);
+ types.add(UMLElementTypes.DurationObservationEvent_4019);
+ types.add(UMLElementTypes.InformationFlow_4021);
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMATypesForSource(IElementType relationshipType) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(relationshipType == UMLElementTypes.CommentAnnotatedElement_4002) {
+ types.add(UMLElementTypes.Comment_2109);
+ types.add(UMLElementTypes.Comment_3097);
+ } else if(relationshipType == UMLElementTypes.ConstraintConstrainedElement_4003) {
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.ComponentRealization_4004) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InterfaceRealization_4005) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Substitution_4011) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Realization_4006) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Manifestation_4012) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Abstraction_4007) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Usage_4008) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Deployment_4009) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4017) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4010) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.TimeObservationEvent_4018) {
+ types.add(UMLElementTypes.TimeObservation_2094);
+ } else if(relationshipType == UMLElementTypes.DurationObservationEvent_4019) {
+ types.add(UMLElementTypes.DurationObservation_2093);
+ } else if(relationshipType == UMLElementTypes.InformationFlow_4021) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public class NamedElementDescriptor extends RectangleFigure {
+
+ /**
+ * @generated
+ */
+ private WrappingLabel fNamedElementNameLabel;
+
+ /**
+ * @generated
+ */
+ public NamedElementDescriptor() {
+ this.setLineWidth(1);
+ this.setForegroundColor(ColorConstants.black);
+ createContents();
+ }
+
+ /**
+ * @generated
+ */
+ private void createContents() {
+
+ fNamedElementNameLabel = new WrappingLabel();
+ fNamedElementNameLabel.setText("");
+ fNamedElementNameLabel.setForegroundColor(ColorConstants.black);
+
+ fNamedElementNameLabel.setFont(FNAMEDELEMENTNAMELABEL_FONT);
+
+ this.add(fNamedElementNameLabel);
+
+ }
+
+ /**
+ * @generated
+ */
+ private boolean myUseLocalCoordinates = false;
+
+ /**
+ * @generated
+ */
+ protected boolean useLocalCoordinates() {
+ return myUseLocalCoordinates;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setUseLocalCoordinates(boolean useLocalCoordinates) {
+ myUseLocalCoordinates = useLocalCoordinates;
+ }
+
+ /**
+ * @generated
+ */
+ public WrappingLabel getNamedElementNameLabel() {
+ return fNamedElementNameLabel;
+ }
+
+ }
+
+ /**
+ * @generated
+ */
+ static final Font FNAMEDELEMENTNAMELABEL_FONT = new Font(Display.getCurrent(), "Arial", 10, SWT.BOLD);
+
+ /**
+ * @generated
+ */
+ @Override
+ public Object getPreferredValue(EStructuralFeature feature) {
+ IPreferenceStore preferenceStore = (IPreferenceStore)getDiagramPreferencesHint().getPreferenceStore();
+ Object result = null;
+
+ if(feature == NotationPackage.eINSTANCE.getLineStyle_LineColor() || feature == NotationPackage.eINSTANCE.getFontStyle_FontColor() || feature == NotationPackage.eINSTANCE.getFillStyle_FillColor()) {
+ String prefColor = null;
+ if(feature == NotationPackage.eINSTANCE.getLineStyle_LineColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("SendSignalEvent", PreferenceConstantHelper.COLOR_LINE);
+ } else if(feature == NotationPackage.eINSTANCE.getFontStyle_FontColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("SendSignalEvent", PreferenceConstantHelper.COLOR_FONT);
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_FillColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("SendSignalEvent", PreferenceConstantHelper.COLOR_FILL);
+ }
+ result = FigureUtilities.RGBToInteger(PreferenceConverter.getColor((IPreferenceStore)preferenceStore, prefColor));
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_Transparency() || feature == NotationPackage.eINSTANCE.getFillStyle_Gradient()) {
+ String prefGradient = PreferenceConstantHelper.getElementConstant("SendSignalEvent", PreferenceConstantHelper.COLOR_GRADIENT);
+ GradientPreferenceConverter gradientPreferenceConverter = new GradientPreferenceConverter(preferenceStore.getString(prefGradient));
+ if(feature == NotationPackage.eINSTANCE.getFillStyle_Transparency()) {
+ result = new Integer(gradientPreferenceConverter.getTransparency());
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_Gradient()) {
+ result = gradientPreferenceConverter.getGradientData();
+ }
+ }
+
+ if(result == null) {
+ result = getStructuralFeatureValue(feature);
+ }
+ return result;
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/SendSignalEventNameEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/SendSignalEventNameEditPart.java
new file mode 100644
index 00000000000..50654e23f82
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/SendSignalEventNameEditPart.java
@@ -0,0 +1,791 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EAnnotation;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.emf.transaction.RunnableWithResult;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.AccessibleEditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.requests.DirectEditRequest;
+import org.eclipse.gef.tools.DirectEditManager;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.CompartmentEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
+import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
+import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
+import org.eclipse.gmf.runtime.notation.FontStyle;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
+import org.eclipse.jface.viewers.ICellEditorValidator;
+import org.eclipse.jface.window.Window;
+import org.eclipse.papyrus.diagram.common.directedit.MultilineLabelDirectEditManager;
+import org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition;
+import org.eclipse.papyrus.diagram.common.editpolicies.IMaskManagedLabelEditPolicy;
+import org.eclipse.papyrus.diagram.common.figure.node.ILabelFigure;
+import org.eclipse.papyrus.diagram.common.util.DiagramEditPartsUtil;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLTextSelectionEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.diagram.composite.providers.UMLParserProvider;
+import org.eclipse.papyrus.extensionpoints.editors.Activator;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
+import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
+import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
+import org.eclipse.papyrus.umlutils.ui.VisualInformationPapyrusConstant;
+import org.eclipse.papyrus.umlutils.ui.helper.NameLabelIconHelper;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.AccessibleEvent;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.FontData;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.ui.PlatformUI;
+
+/**
+ * @generated
+ */
+public class SendSignalEventNameEditPart extends CompartmentEditPart implements ITextAwareEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 5169;
+
+ /**
+ * @generated
+ */
+ private DirectEditManager manager;
+
+ /**
+ * @generated
+ */
+ private IParser parser;
+
+ /**
+ * @generated
+ */
+ private List<?> parserElements;
+
+ /**
+ * @generated
+ */
+ private String defaultText;
+
+ /**
+ * direct edition mode (default, undefined, registered editor, etc.)
+ *
+ * @generated
+ */
+ protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
+
+ /**
+ * configuration from a registered edit dialog
+ *
+ * @generated
+ */
+ protected IDirectEditorConfiguration configuration;
+
+ /**
+ * @generated
+ */
+ public SendSignalEventNameEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
+ installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new CompositeStructureDiagramEditPart.NodeLabelDragPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelTextHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getText();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getText();
+ } else {
+ return ((Label)figure).getText();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelTextHelper(IFigure figure, String text) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setText(text);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setText(text);
+ } else {
+ ((Label)figure).setText(text);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIconHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getIcon();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getIcon();
+ } else {
+ return ((Label)figure).getIcon();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelIconHelper(IFigure figure, Image icon) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setIcon(icon);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setIcon(icon);
+ } else {
+ ((Label)figure).setIcon(icon);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabel(WrappingLabel figure) {
+ unregisterVisuals();
+ setFigure(figure);
+ defaultText = getLabelTextHelper(figure);
+ registerVisuals();
+ refreshVisuals();
+ }
+
+ /**
+ * @generated
+ */
+ protected List getModelChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject getParserElement() {
+ return resolveSemanticElement();
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIcon() {
+ EObject parserElement = getParserElement();
+ if(parserElement == null) {
+ return null;
+ }
+
+ List<View> views = DiagramEditPartsUtil.findViews(parserElement, getViewer());
+ for(View view : views) {
+ if(NameLabelIconHelper.showLabelIcon(view)) {
+ return UMLElementTypes.getImage(parserElement.eClass());
+ }
+ }
+ return null;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelText() {
+ String text = null;
+ EObject parserElement = getParserElement();
+ if(parserElement != null && getParser() != null) {
+ text = getParser().getPrintString(new EObjectAdapter(parserElement), getParserOptions().intValue());
+ }
+ if(text == null || text.length() == 0) {
+ text = defaultText;
+ }
+ return text;
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabelText(String text) {
+ setLabelTextHelper(getFigure(), text);
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public String getEditText() {
+ if(getParserElement() == null || getParser() == null) {
+ return ""; //$NON-NLS-1$
+ }
+ return getParser().getEditString(new EObjectAdapter(getParserElement()), getParserOptions().intValue());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean isEditable() {
+ return getParser() != null;
+ }
+
+ /**
+ * @generated
+ */
+ public ICellEditorValidator getEditTextValidator() {
+ return new ICellEditorValidator() {
+
+ public String isValid(final Object value) {
+ if(value instanceof String) {
+ final EObject element = getParserElement();
+ final IParser parser = getParser();
+ try {
+ IParserEditStatus valid = (IParserEditStatus)getEditingDomain().runExclusive(new RunnableWithResult.Impl() {
+
+ public void run() {
+ setResult(parser.isValidEditString(new EObjectAdapter(element), (String)value));
+ }
+ });
+ return valid.getCode() == ParserEditStatus.EDITABLE ? null : valid.getMessage();
+ } catch (InterruptedException ie) {
+ ie.printStackTrace();
+ }
+ }
+
+ // shouldn't get here
+ return null;
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ public IContentAssistProcessor getCompletionProcessor() {
+ if(getParserElement() == null || getParser() == null) {
+ return null;
+ }
+ return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
+ }
+
+ /**
+ * @generated
+ */
+ public ParserOptions getParserOptions() {
+ return ParserOptions.NONE;
+ }
+
+ /**
+ * @generated
+ */
+ public IParser getParser() {
+ if(parser == null) {
+ parser = UMLParserProvider.getParser(UMLElementTypes.SendSignalEvent_2086, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.diagram.composite.edit.parts.SendSignalEventNameEditPart.VISUAL_ID));
+ }
+ return parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected DirectEditManager getManager() {
+ if(manager == null) {
+ setManager(new MultilineLabelDirectEditManager(this, MultilineLabelDirectEditManager.getTextCellEditorClass(this), UMLEditPartFactory.getTextCellEditorLocator(this)));
+ }
+ return manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setManager(DirectEditManager manager) {
+ this.manager = manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit() {
+ getManager().show();
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit(Point eventLocation) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(eventLocation.getSWTPoint());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void performDirectEdit(char initialCharacter) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(initialCharacter);
+ } else {
+ performDirectEdit();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEditRequest(Request request) {
+
+ final Request theRequest = request;
+
+ if(IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
+ directEditionMode = getDirectEditionType();
+ }
+ switch(directEditionMode) {
+ case IDirectEdition.NO_DIRECT_EDITION:
+ // no direct edition mode => does nothing
+ return;
+ case IDirectEdition.EXTENDED_DIRECT_EDITOR:
+ updateExtendedEditorConfiguration();
+ if(configuration == null || configuration.getLanguage() == null) {
+ performDefaultDirectEditorEdit(theRequest);
+ } else {
+ configuration.preEditAction(resolveSemanticElement());
+ Dialog dialog = null;
+ if(configuration instanceof IPopupEditorConfiguration) {
+ IPopupEditorHelper helper = ((IPopupEditorConfiguration)configuration).createPopupEditorHelper(this);
+ helper.showEditor();
+ return;
+ } else if(configuration instanceof IAdvancedEditorConfiguration) {
+ dialog = ((IAdvancedEditorConfiguration)configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
+ } else if(configuration instanceof IDirectEditorConfiguration) {
+ dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), ((IDirectEditorConfiguration)configuration).getTextToEdit(resolveSemanticElement()), (IDirectEditorConfiguration)configuration);
+ } else {
+ return;
+ }
+ final Dialog finalDialog = dialog;
+
+ if(Window.OK == dialog.open()) {
+ TransactionalEditingDomain domain = getEditingDomain();
+ RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
+
+ @Override
+ protected void doExecute() {
+ configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog)finalDialog).getValue());
+
+ }
+ };
+ domain.getCommandStack().execute(command);
+ }
+ }
+ break;
+ case IDirectEdition.DEFAULT_DIRECT_EDITOR:
+
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ break;
+ default:
+ break;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshLabel();
+ refreshFont();
+ refreshFontColor();
+ refreshUnderline();
+ refreshStrikeThrough();
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshLabel() {
+ EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
+ if(maskLabelPolicy == null) {
+ setLabelTextHelper(getFigure(), getLabelText());
+ setLabelIconHelper(getFigure(), getLabelIcon());
+ }
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshUnderline() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextUnderline(style.isUnderline());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshStrikeThrough() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextStrikeThrough(style.isStrikeThrough());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshFont() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null) {
+ FontData fontData = new FontData(style.getFontName(), style.getFontHeight(), (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
+ setFont(fontData);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setFontColor(Color color) {
+ getFigure().setForegroundColor(color);
+ }
+
+ /**
+ * @generated
+ */
+ protected void addSemanticListeners() {
+ if(getParser() instanceof ISemanticParser) {
+ EObject element = resolveSemanticElement();
+ parserElements = ((ISemanticParser)getParser()).getSemanticElementsBeingParsed(element);
+ for(int i = 0; i < parserElements.size(); i++) {
+ addListenerFilter("SemanticModel" + i, this, (EObject)parserElements.get(i)); //$NON-NLS-1$
+ }
+ } else {
+ super.addSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeSemanticListeners() {
+ if(parserElements != null) {
+ for(int i = 0; i < parserElements.size(); i++) {
+ removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
+ }
+ } else {
+ super.removeSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected AccessibleEditPart getAccessibleEditPart() {
+ if(accessibleEP == null) {
+ accessibleEP = new AccessibleGraphicalEditPart() {
+
+ public void getName(AccessibleEvent e) {
+ e.result = getLabelTextHelper(getFigure());
+ }
+ };
+ }
+ return accessibleEP;
+ }
+
+ /**
+ * @generated
+ */
+ private View getFontStyleOwnerView() {
+ return (View)getModel();
+ }
+
+ /**
+ * Returns the kind of associated editor for direct edition.
+ *
+ * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition
+ * @generated
+ */
+ public int getDirectEditionType() {
+ if(checkExtendedEditor()) {
+ initExtendedEditorConfiguration();
+ return IDirectEdition.EXTENDED_DIRECT_EDITOR;
+ }
+ if(checkDefaultEdition()) {
+ return IDirectEdition.DEFAULT_DIRECT_EDITOR;
+ }
+
+ // not a named element. no specific editor => do nothing
+ return IDirectEdition.NO_DIRECT_EDITION;
+ }
+
+ /**
+ * Checks if an extended editor is present.
+ *
+ * @return <code>true</code> if an extended editor is present.
+ * @generated
+ */
+ protected boolean checkExtendedEditor() {
+ if(resolveSemanticElement() != null) {
+ return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ return false;
+ }
+
+ /**
+ * Checks if a default direct edition is available
+ *
+ * @return <code>true</code> if a default direct edition is available
+ * @generated
+ */
+ protected boolean checkDefaultEdition() {
+ return (getParser() != null);
+ }
+
+ /**
+ * Initializes the extended editor configuration
+ *
+ * @generated
+ */
+ protected void initExtendedEditorConfiguration() {
+ if(configuration == null) {
+ final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("")) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else {
+ configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ }
+ }
+
+ /**
+ * Updates the preference configuration
+ *
+ * @generated
+ */
+ protected void updateExtendedEditorConfiguration() {
+ String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("") && languagePreferred != configuration.getLanguage()) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else if(IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
+ configuration = null;
+ }
+ }
+
+ /**
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
+ protected void performDefaultDirectEditorEdit(final Request theRequest) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void addNotationalListeners() {
+ super.addNotationalListeners();
+ addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeNotationalListeners() {
+ super.removeNotationalListeners();
+ removeListenerFilter("PrimaryView"); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void handleNotificationEvent(Notification event) {
+ refreshLabel();
+ Object feature = event.getFeature();
+ if(NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
+ Integer c = (Integer)event.getNewValue();
+ setFontColor(DiagramColorRegistry.getInstance().getColor(c));
+ } else if(NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
+ refreshUnderline();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
+ refreshStrikeThrough();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
+ refreshFont();
+ } else {
+ if(getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
+ refreshLabel();
+ }
+ if(getParser() instanceof ISemanticParser) {
+ ISemanticParser modelParser = (ISemanticParser)getParser();
+ if(modelParser.areSemanticElementsAffected(null, event)) {
+ removeSemanticListeners();
+ if(resolveSemanticElement() != null) {
+ addSemanticListeners();
+ }
+ refreshLabel();
+ }
+ }
+ }
+
+ if(event.getNewValue() instanceof EAnnotation && VisualInformationPapyrusConstant.DISPLAY_NAMELABELICON.equals(((EAnnotation)event.getNewValue()).getSource())) {
+ refreshLabel();
+ }
+
+ super.handleNotificationEvent(event);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createFigure() {
+ // Parent should assign one using setLabel() method
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ private static final String ADD_PARENT_MODEL = "AddParentModel";
+
+ /**
+ * @generated
+ */
+ public void activate() {
+ super.activate();
+ addOwnerElementListeners();
+ }
+
+ /**
+ * @generated
+ */
+ protected void addOwnerElementListeners() {
+ addListenerFilter(ADD_PARENT_MODEL, this, ((View)getParent().getModel())); //$NON-NLS-1$
+
+ }
+
+ /**
+ * @generated
+ */
+ public void deactivate() {
+ removeOwnerElementListeners();
+ super.deactivate();
+
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeOwnerElementListeners() {
+ removeListenerFilter(ADD_PARENT_MODEL);
+
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/SignalEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/SignalEditPart.java
new file mode 100644
index 00000000000..4fc659f1110
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/SignalEditPart.java
@@ -0,0 +1,5334 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.ArrayList;
+import java.util.LinkedList;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Shape;
+import org.eclipse.draw2d.StackLayout;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EStructuralFeature;
+import org.eclipse.gef.EditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.editpolicies.LayoutEditPolicy;
+import org.eclipse.gef.editpolicies.NonResizableEditPolicy;
+import org.eclipse.gef.requests.CreateRequest;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.FigureUtilities;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.gef.ui.figures.DefaultSizeNodeFigure;
+import org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.jface.preference.PreferenceConverter;
+import org.eclipse.papyrus.diagram.common.editparts.NamedElementEditPart;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.HyperLinkPopupBarEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.QualifiedNameDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.figure.node.SignalFigure;
+import org.eclipse.papyrus.diagram.common.helper.PreferenceInitializerForElementHelper;
+import org.eclipse.papyrus.diagram.composite.edit.policies.SignalItemSemanticEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorPlugin;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter;
+import org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper;
+import org.eclipse.swt.graphics.Color;
+
+/**
+ * @generated
+ */
+public class SignalEditPart extends
+
+NamedElementEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 2081;
+
+ /**
+ * @generated
+ */
+ protected IFigure contentPane;
+
+ /**
+ * @generated
+ */
+ protected IFigure primaryShape;
+
+ /**
+ * @generated
+ */
+ public SignalEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new SignalItemSemanticEditPolicy());
+ installEditPolicy(EditPolicy.LAYOUT_ROLE, createLayoutEditPolicy());
+ installEditPolicy(QualifiedNameDisplayEditPolicy.QUALIFIED_NAME_POLICY, new QualifiedNameDisplayEditPolicy());
+ installEditPolicy(AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeNodeLabelDisplayEditPolicy());
+ installEditPolicy(EditPolicyRoles.POPUPBAR_ROLE, new HyperLinkPopupBarEditPolicy());
+ // XXX need an SCR to runtime to have another abstract superclass that would let children add reasonable editpolicies
+ // removeEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CONNECTION_HANDLES_ROLE);
+ }
+
+ /**
+ * Papyrus codeGen
+ *
+ * @generated
+ **/
+ protected void handleNotificationEvent(Notification event) {
+ super.handleNotificationEvent(event);
+
+ }
+
+ /**
+ * @generated
+ */
+ protected LayoutEditPolicy createLayoutEditPolicy() {
+ org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy lep = new org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy() {
+
+ protected EditPolicy createChildEditPolicy(EditPart child) {
+ EditPolicy result = child.getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(result == null) {
+ result = new NonResizableEditPolicy();
+ }
+ return result;
+ }
+
+ protected Command getMoveChildrenCommand(Request request) {
+ return null;
+ }
+
+ protected Command getCreateCommand(CreateRequest request) {
+ return null;
+ }
+ };
+ return lep;
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createNodeShape() {
+ return primaryShape = new SignalFigure();
+ }
+
+ /**
+ * @generated
+ */
+ public SignalFigure getPrimaryShape() {
+ return (SignalFigure)primaryShape;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean addFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof SignalNameEditPart) {
+ ((SignalNameEditPart)childEditPart).setLabel(getPrimaryShape().getNameLabel());
+ return true;
+ }
+
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean removeFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof SignalNameEditPart) {
+ return true;
+ }
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected void addChildVisual(EditPart childEditPart, int index) {
+ if(addFixedChild(childEditPart)) {
+ return;
+ }
+ super.addChildVisual(childEditPart, -1);
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeChildVisual(EditPart childEditPart) {
+ if(removeFixedChild(childEditPart)) {
+ return;
+ }
+ super.removeChildVisual(childEditPart);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure getContentPaneFor(IGraphicalEditPart editPart) {
+ return getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ protected NodeFigure createNodePlate() {
+ String prefElementId = "Signal";
+ IPreferenceStore store = UMLDiagramEditorPlugin.getInstance().getPreferenceStore();
+ String preferenceConstantWitdh = PreferenceInitializerForElementHelper.getpreferenceKey(getNotationView(), prefElementId, PreferenceConstantHelper.WIDTH);
+ String preferenceConstantHeight = PreferenceInitializerForElementHelper.getpreferenceKey(getNotationView(), prefElementId, PreferenceConstantHelper.HEIGHT);
+ DefaultSizeNodeFigure result = new DefaultSizeNodeFigure(store.getInt(preferenceConstantWitdh), store.getInt(preferenceConstantHeight));
+
+ return result;
+ }
+
+ /**
+ * Creates figure for this edit part.
+ *
+ * Body of this method does not depend on settings in generation model
+ * so you may safely remove <i>generated</i> tag and modify it.
+ *
+ * @generated
+ */
+ protected NodeFigure createNodeFigure() {
+ NodeFigure figure = createNodePlate();
+ figure.setLayoutManager(new StackLayout());
+ IFigure shape = createNodeShape();
+ figure.add(shape);
+ contentPane = setupContentPane(shape);
+ return figure;
+ }
+
+ /**
+ * Default implementation treats passed figure as content pane.
+ * Respects layout one may have set for generated figure.
+ *
+ * @param nodeShape
+ * instance of generated figure class
+ * @generated
+ */
+ protected IFigure setupContentPane(IFigure nodeShape) {
+ if(nodeShape.getLayoutManager() == null) {
+ ConstrainedToolbarLayout layout = new ConstrainedToolbarLayout();
+ layout.setSpacing(5);
+ nodeShape.setLayoutManager(layout);
+ }
+ return nodeShape; // use nodeShape itself as contentPane
+ }
+
+ /**
+ * @generated
+ */
+ public IFigure getContentPane() {
+ if(contentPane != null) {
+ return contentPane;
+ }
+ return super.getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ protected void setForegroundColor(Color color) {
+ if(primaryShape != null) {
+ primaryShape.setForegroundColor(color);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLineWidth(int width) {
+ if(primaryShape instanceof Shape) {
+ ((Shape)primaryShape).setLineWidth(width);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLineType(int style) {
+ if(primaryShape instanceof Shape) {
+ ((Shape)primaryShape).setLineStyle(style);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public EditPart getPrimaryChildEditPart() {
+ return getChildBySemanticHint(UMLVisualIDRegistry.getType(SignalNameEditPart.VISUAL_ID));
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnSource() {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(12);
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ types.add(UMLElementTypes.Substitution_4011);
+ types.add(UMLElementTypes.Realization_4006);
+ types.add(UMLElementTypes.Manifestation_4012);
+ types.add(UMLElementTypes.Abstraction_4007);
+ types.add(UMLElementTypes.Usage_4008);
+ types.add(UMLElementTypes.Deployment_4009);
+ types.add(UMLElementTypes.Dependency_4017);
+ types.add(UMLElementTypes.Dependency_4010);
+ types.add(UMLElementTypes.Generalization_4015);
+ types.add(UMLElementTypes.InformationFlow_4021);
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnSourceAndTarget(IGraphicalEditPart targetEditPart) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.SignalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.SignalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.SignalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.SignalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.SignalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.SignalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.SignalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.SignalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.SignalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.SignalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.SignalEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.SignalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMATypesForTarget(IElementType relationshipType) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(relationshipType == UMLElementTypes.ComponentRealization_4004) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InterfaceRealization_4005) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Substitution_4011) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Realization_4006) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Manifestation_4012) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Abstraction_4007) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Usage_4008) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Deployment_4009) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4017) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4010) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Generalization_4015) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ } else if(relationshipType == UMLElementTypes.InformationFlow_4021) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnTarget() {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(17);
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ types.add(UMLElementTypes.Substitution_4011);
+ types.add(UMLElementTypes.Realization_4006);
+ types.add(UMLElementTypes.Manifestation_4012);
+ types.add(UMLElementTypes.Abstraction_4007);
+ types.add(UMLElementTypes.Usage_4008);
+ types.add(UMLElementTypes.Deployment_4009);
+ types.add(UMLElementTypes.Dependency_4017);
+ types.add(UMLElementTypes.Dependency_4010);
+ types.add(UMLElementTypes.Generalization_4015);
+ types.add(UMLElementTypes.TimeObservationEvent_4018);
+ types.add(UMLElementTypes.DurationObservationEvent_4019);
+ types.add(UMLElementTypes.InformationItemRepresented_4020);
+ types.add(UMLElementTypes.InformationFlow_4021);
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMATypesForSource(IElementType relationshipType) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(relationshipType == UMLElementTypes.CommentAnnotatedElement_4002) {
+ types.add(UMLElementTypes.Comment_2109);
+ types.add(UMLElementTypes.Comment_3097);
+ } else if(relationshipType == UMLElementTypes.ConstraintConstrainedElement_4003) {
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.ComponentRealization_4004) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InterfaceRealization_4005) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Substitution_4011) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Realization_4006) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Manifestation_4012) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Abstraction_4007) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Usage_4008) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Deployment_4009) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4017) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4010) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Generalization_4015) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ } else if(relationshipType == UMLElementTypes.TimeObservationEvent_4018) {
+ types.add(UMLElementTypes.TimeObservation_2094);
+ } else if(relationshipType == UMLElementTypes.DurationObservationEvent_4019) {
+ types.add(UMLElementTypes.DurationObservation_2093);
+ } else if(relationshipType == UMLElementTypes.InformationItemRepresented_4020) {
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.InformationItem_3094);
+ } else if(relationshipType == UMLElementTypes.InformationFlow_4021) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public Object getPreferredValue(EStructuralFeature feature) {
+ IPreferenceStore preferenceStore = (IPreferenceStore)getDiagramPreferencesHint().getPreferenceStore();
+ Object result = null;
+
+ if(feature == NotationPackage.eINSTANCE.getLineStyle_LineColor() || feature == NotationPackage.eINSTANCE.getFontStyle_FontColor() || feature == NotationPackage.eINSTANCE.getFillStyle_FillColor()) {
+ String prefColor = null;
+ if(feature == NotationPackage.eINSTANCE.getLineStyle_LineColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("Signal", PreferenceConstantHelper.COLOR_LINE);
+ } else if(feature == NotationPackage.eINSTANCE.getFontStyle_FontColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("Signal", PreferenceConstantHelper.COLOR_FONT);
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_FillColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("Signal", PreferenceConstantHelper.COLOR_FILL);
+ }
+ result = FigureUtilities.RGBToInteger(PreferenceConverter.getColor((IPreferenceStore)preferenceStore, prefColor));
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_Transparency() || feature == NotationPackage.eINSTANCE.getFillStyle_Gradient()) {
+ String prefGradient = PreferenceConstantHelper.getElementConstant("Signal", PreferenceConstantHelper.COLOR_GRADIENT);
+ GradientPreferenceConverter gradientPreferenceConverter = new GradientPreferenceConverter(preferenceStore.getString(prefGradient));
+ if(feature == NotationPackage.eINSTANCE.getFillStyle_Transparency()) {
+ result = new Integer(gradientPreferenceConverter.getTransparency());
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_Gradient()) {
+ result = gradientPreferenceConverter.getGradientData();
+ }
+ }
+
+ if(result == null) {
+ result = getStructuralFeatureValue(feature);
+ }
+ return result;
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/SignalEditPartCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/SignalEditPartCN.java
new file mode 100644
index 00000000000..1bd5904536f
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/SignalEditPartCN.java
@@ -0,0 +1,5337 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.ArrayList;
+import java.util.LinkedList;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Shape;
+import org.eclipse.draw2d.StackLayout;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EStructuralFeature;
+import org.eclipse.gef.EditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.editpolicies.LayoutEditPolicy;
+import org.eclipse.gef.editpolicies.NonResizableEditPolicy;
+import org.eclipse.gef.requests.CreateRequest;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.FigureUtilities;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.gef.ui.figures.DefaultSizeNodeFigure;
+import org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.jface.preference.PreferenceConverter;
+import org.eclipse.papyrus.diagram.common.editparts.NamedElementEditPart;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.HyperLinkPopupBarEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.QualifiedNameDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.figure.node.SignalFigure;
+import org.eclipse.papyrus.diagram.common.helper.PreferenceInitializerForElementHelper;
+import org.eclipse.papyrus.diagram.composite.custom.edit.parts.ConstrainedNamedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.NoScrollClassifierResizableShapeEditPolicy;
+import org.eclipse.papyrus.diagram.composite.edit.policies.SignalItemSemanticEditPolicyCN;
+import org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorPlugin;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter;
+import org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper;
+import org.eclipse.swt.graphics.Color;
+
+/**
+ * @generated
+ */
+public class SignalEditPartCN extends
+
+ConstrainedNamedElementEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 3095;
+
+ /**
+ * @generated
+ */
+ protected IFigure contentPane;
+
+ /**
+ * @generated
+ */
+ protected IFigure primaryShape;
+
+ /**
+ * @generated
+ */
+ public SignalEditPartCN(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new SignalItemSemanticEditPolicyCN());
+ installEditPolicy(EditPolicy.LAYOUT_ROLE, createLayoutEditPolicy());
+ installEditPolicy(QualifiedNameDisplayEditPolicy.QUALIFIED_NAME_POLICY, new QualifiedNameDisplayEditPolicy());
+ installEditPolicy(AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeNodeLabelDisplayEditPolicy());
+ installEditPolicy(EditPolicyRoles.POPUPBAR_ROLE, new HyperLinkPopupBarEditPolicy());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new NoScrollClassifierResizableShapeEditPolicy());
+ // XXX need an SCR to runtime to have another abstract superclass that would let children add reasonable editpolicies
+ // removeEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CONNECTION_HANDLES_ROLE);
+ }
+
+ /**
+ * Papyrus codeGen
+ *
+ * @generated
+ **/
+ protected void handleNotificationEvent(Notification event) {
+ super.handleNotificationEvent(event);
+
+ }
+
+ /**
+ * @generated
+ */
+ protected LayoutEditPolicy createLayoutEditPolicy() {
+ org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy lep = new org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy() {
+
+ protected EditPolicy createChildEditPolicy(EditPart child) {
+ EditPolicy result = child.getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(result == null) {
+ result = new NonResizableEditPolicy();
+ }
+ return result;
+ }
+
+ protected Command getMoveChildrenCommand(Request request) {
+ return null;
+ }
+
+ protected Command getCreateCommand(CreateRequest request) {
+ return null;
+ }
+ };
+ return lep;
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createNodeShape() {
+ return primaryShape = new SignalFigure();
+ }
+
+ /**
+ * @generated
+ */
+ public SignalFigure getPrimaryShape() {
+ return (SignalFigure)primaryShape;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean addFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof SignalNameEditPartCN) {
+ ((SignalNameEditPartCN)childEditPart).setLabel(getPrimaryShape().getNameLabel());
+ return true;
+ }
+
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean removeFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof SignalNameEditPartCN) {
+ return true;
+ }
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected void addChildVisual(EditPart childEditPart, int index) {
+ if(addFixedChild(childEditPart)) {
+ return;
+ }
+ super.addChildVisual(childEditPart, -1);
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeChildVisual(EditPart childEditPart) {
+ if(removeFixedChild(childEditPart)) {
+ return;
+ }
+ super.removeChildVisual(childEditPart);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure getContentPaneFor(IGraphicalEditPart editPart) {
+ return getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ protected NodeFigure createNodePlate() {
+ String prefElementId = "Signal";
+ IPreferenceStore store = UMLDiagramEditorPlugin.getInstance().getPreferenceStore();
+ String preferenceConstantWitdh = PreferenceInitializerForElementHelper.getpreferenceKey(getNotationView(), prefElementId, PreferenceConstantHelper.WIDTH);
+ String preferenceConstantHeight = PreferenceInitializerForElementHelper.getpreferenceKey(getNotationView(), prefElementId, PreferenceConstantHelper.HEIGHT);
+ DefaultSizeNodeFigure result = new DefaultSizeNodeFigure(store.getInt(preferenceConstantWitdh), store.getInt(preferenceConstantHeight));
+
+ return result;
+ }
+
+ /**
+ * Creates figure for this edit part.
+ *
+ * Body of this method does not depend on settings in generation model
+ * so you may safely remove <i>generated</i> tag and modify it.
+ *
+ * @generated
+ */
+ protected NodeFigure createNodeFigure() {
+ NodeFigure figure = createNodePlate();
+ figure.setLayoutManager(new StackLayout());
+ IFigure shape = createNodeShape();
+ figure.add(shape);
+ contentPane = setupContentPane(shape);
+ return figure;
+ }
+
+ /**
+ * Default implementation treats passed figure as content pane.
+ * Respects layout one may have set for generated figure.
+ *
+ * @param nodeShape
+ * instance of generated figure class
+ * @generated
+ */
+ protected IFigure setupContentPane(IFigure nodeShape) {
+ if(nodeShape.getLayoutManager() == null) {
+ ConstrainedToolbarLayout layout = new ConstrainedToolbarLayout();
+ layout.setSpacing(5);
+ nodeShape.setLayoutManager(layout);
+ }
+ return nodeShape; // use nodeShape itself as contentPane
+ }
+
+ /**
+ * @generated
+ */
+ public IFigure getContentPane() {
+ if(contentPane != null) {
+ return contentPane;
+ }
+ return super.getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ protected void setForegroundColor(Color color) {
+ if(primaryShape != null) {
+ primaryShape.setForegroundColor(color);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLineWidth(int width) {
+ if(primaryShape instanceof Shape) {
+ ((Shape)primaryShape).setLineWidth(width);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLineType(int style) {
+ if(primaryShape instanceof Shape) {
+ ((Shape)primaryShape).setLineStyle(style);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public EditPart getPrimaryChildEditPart() {
+ return getChildBySemanticHint(UMLVisualIDRegistry.getType(SignalNameEditPartCN.VISUAL_ID));
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnSource() {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(12);
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ types.add(UMLElementTypes.Substitution_4011);
+ types.add(UMLElementTypes.Realization_4006);
+ types.add(UMLElementTypes.Manifestation_4012);
+ types.add(UMLElementTypes.Abstraction_4007);
+ types.add(UMLElementTypes.Usage_4008);
+ types.add(UMLElementTypes.Deployment_4009);
+ types.add(UMLElementTypes.Dependency_4017);
+ types.add(UMLElementTypes.Dependency_4010);
+ types.add(UMLElementTypes.Generalization_4015);
+ types.add(UMLElementTypes.InformationFlow_4021);
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnSourceAndTarget(IGraphicalEditPart targetEditPart) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.SignalEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.SignalEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.SignalEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.SignalEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.SignalEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.SignalEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.SignalEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.SignalEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.SignalEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.SignalEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.SignalEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.SignalEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMATypesForTarget(IElementType relationshipType) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(relationshipType == UMLElementTypes.ComponentRealization_4004) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InterfaceRealization_4005) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Substitution_4011) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Realization_4006) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Manifestation_4012) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Abstraction_4007) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Usage_4008) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Deployment_4009) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4017) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4010) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Generalization_4015) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ } else if(relationshipType == UMLElementTypes.InformationFlow_4021) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnTarget() {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(17);
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ types.add(UMLElementTypes.Substitution_4011);
+ types.add(UMLElementTypes.Realization_4006);
+ types.add(UMLElementTypes.Manifestation_4012);
+ types.add(UMLElementTypes.Abstraction_4007);
+ types.add(UMLElementTypes.Usage_4008);
+ types.add(UMLElementTypes.Deployment_4009);
+ types.add(UMLElementTypes.Dependency_4017);
+ types.add(UMLElementTypes.Dependency_4010);
+ types.add(UMLElementTypes.Generalization_4015);
+ types.add(UMLElementTypes.TimeObservationEvent_4018);
+ types.add(UMLElementTypes.DurationObservationEvent_4019);
+ types.add(UMLElementTypes.InformationItemRepresented_4020);
+ types.add(UMLElementTypes.InformationFlow_4021);
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMATypesForSource(IElementType relationshipType) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(relationshipType == UMLElementTypes.CommentAnnotatedElement_4002) {
+ types.add(UMLElementTypes.Comment_2109);
+ types.add(UMLElementTypes.Comment_3097);
+ } else if(relationshipType == UMLElementTypes.ConstraintConstrainedElement_4003) {
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.ComponentRealization_4004) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InterfaceRealization_4005) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Substitution_4011) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Realization_4006) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Manifestation_4012) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Abstraction_4007) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Usage_4008) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Deployment_4009) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4017) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4010) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Generalization_4015) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ } else if(relationshipType == UMLElementTypes.TimeObservationEvent_4018) {
+ types.add(UMLElementTypes.TimeObservation_2094);
+ } else if(relationshipType == UMLElementTypes.DurationObservationEvent_4019) {
+ types.add(UMLElementTypes.DurationObservation_2093);
+ } else if(relationshipType == UMLElementTypes.InformationItemRepresented_4020) {
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.InformationItem_3094);
+ } else if(relationshipType == UMLElementTypes.InformationFlow_4021) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public Object getPreferredValue(EStructuralFeature feature) {
+ IPreferenceStore preferenceStore = (IPreferenceStore)getDiagramPreferencesHint().getPreferenceStore();
+ Object result = null;
+
+ if(feature == NotationPackage.eINSTANCE.getLineStyle_LineColor() || feature == NotationPackage.eINSTANCE.getFontStyle_FontColor() || feature == NotationPackage.eINSTANCE.getFillStyle_FillColor()) {
+ String prefColor = null;
+ if(feature == NotationPackage.eINSTANCE.getLineStyle_LineColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("Signal", PreferenceConstantHelper.COLOR_LINE);
+ } else if(feature == NotationPackage.eINSTANCE.getFontStyle_FontColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("Signal", PreferenceConstantHelper.COLOR_FONT);
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_FillColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("Signal", PreferenceConstantHelper.COLOR_FILL);
+ }
+ result = FigureUtilities.RGBToInteger(PreferenceConverter.getColor((IPreferenceStore)preferenceStore, prefColor));
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_Transparency() || feature == NotationPackage.eINSTANCE.getFillStyle_Gradient()) {
+ String prefGradient = PreferenceConstantHelper.getElementConstant("Signal", PreferenceConstantHelper.COLOR_GRADIENT);
+ GradientPreferenceConverter gradientPreferenceConverter = new GradientPreferenceConverter(preferenceStore.getString(prefGradient));
+ if(feature == NotationPackage.eINSTANCE.getFillStyle_Transparency()) {
+ result = new Integer(gradientPreferenceConverter.getTransparency());
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_Gradient()) {
+ result = gradientPreferenceConverter.getGradientData();
+ }
+ }
+
+ if(result == null) {
+ result = getStructuralFeatureValue(feature);
+ }
+ return result;
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/SignalEventEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/SignalEventEditPart.java
new file mode 100644
index 00000000000..8cf8256cc59
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/SignalEventEditPart.java
@@ -0,0 +1,5167 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.ArrayList;
+import java.util.LinkedList;
+import java.util.List;
+
+import org.eclipse.draw2d.ColorConstants;
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.RectangleFigure;
+import org.eclipse.draw2d.Shape;
+import org.eclipse.draw2d.StackLayout;
+import org.eclipse.emf.ecore.EStructuralFeature;
+import org.eclipse.gef.EditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.editpolicies.LayoutEditPolicy;
+import org.eclipse.gef.editpolicies.NonResizableEditPolicy;
+import org.eclipse.gef.requests.CreateRequest;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ShapeNodeEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.FigureUtilities;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.gef.ui.figures.DefaultSizeNodeFigure;
+import org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.jface.preference.PreferenceConverter;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.HyperLinkPopupBarEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.QualifiedNameDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.helper.PreferenceInitializerForElementHelper;
+import org.eclipse.papyrus.diagram.composite.edit.policies.SignalEventItemSemanticEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorPlugin;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter;
+import org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.Font;
+import org.eclipse.swt.widgets.Display;
+
+/**
+ * @generated
+ */
+public class SignalEventEditPart extends
+
+ShapeNodeEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 2083;
+
+ /**
+ * @generated
+ */
+ protected IFigure contentPane;
+
+ /**
+ * @generated
+ */
+ protected IFigure primaryShape;
+
+ /**
+ * @generated
+ */
+ public SignalEventEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new SignalEventItemSemanticEditPolicy());
+ installEditPolicy(EditPolicy.LAYOUT_ROLE, createLayoutEditPolicy());
+ installEditPolicy(QualifiedNameDisplayEditPolicy.QUALIFIED_NAME_POLICY, new QualifiedNameDisplayEditPolicy());
+ installEditPolicy(AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeNodeLabelDisplayEditPolicy());
+ installEditPolicy(EditPolicyRoles.POPUPBAR_ROLE, new HyperLinkPopupBarEditPolicy());
+ // XXX need an SCR to runtime to have another abstract superclass that would let children add reasonable editpolicies
+ // removeEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CONNECTION_HANDLES_ROLE);
+ }
+
+ /**
+ * @generated
+ */
+ protected LayoutEditPolicy createLayoutEditPolicy() {
+ org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy lep = new org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy() {
+
+ protected EditPolicy createChildEditPolicy(EditPart child) {
+ EditPolicy result = child.getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(result == null) {
+ result = new NonResizableEditPolicy();
+ }
+ return result;
+ }
+
+ protected Command getMoveChildrenCommand(Request request) {
+ return null;
+ }
+
+ protected Command getCreateCommand(CreateRequest request) {
+ return null;
+ }
+ };
+ return lep;
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createNodeShape() {
+ return primaryShape = new NamedElementDescriptor();
+ }
+
+ /**
+ * @generated
+ */
+ public NamedElementDescriptor getPrimaryShape() {
+ return (NamedElementDescriptor)primaryShape;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean addFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof SignalEventNameEditPart) {
+ ((SignalEventNameEditPart)childEditPart).setLabel(getPrimaryShape().getNamedElementNameLabel());
+ return true;
+ }
+
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean removeFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof SignalEventNameEditPart) {
+ return true;
+ }
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected void addChildVisual(EditPart childEditPart, int index) {
+ if(addFixedChild(childEditPart)) {
+ return;
+ }
+ super.addChildVisual(childEditPart, -1);
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeChildVisual(EditPart childEditPart) {
+ if(removeFixedChild(childEditPart)) {
+ return;
+ }
+ super.removeChildVisual(childEditPart);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure getContentPaneFor(IGraphicalEditPart editPart) {
+ return getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ protected NodeFigure createNodePlate() {
+ String prefElementId = "SignalEvent";
+ IPreferenceStore store = UMLDiagramEditorPlugin.getInstance().getPreferenceStore();
+ String preferenceConstantWitdh = PreferenceInitializerForElementHelper.getpreferenceKey(getNotationView(), prefElementId, PreferenceConstantHelper.WIDTH);
+ String preferenceConstantHeight = PreferenceInitializerForElementHelper.getpreferenceKey(getNotationView(), prefElementId, PreferenceConstantHelper.HEIGHT);
+ DefaultSizeNodeFigure result = new DefaultSizeNodeFigure(store.getInt(preferenceConstantWitdh), store.getInt(preferenceConstantHeight));
+
+ return result;
+ }
+
+ /**
+ * Creates figure for this edit part.
+ *
+ * Body of this method does not depend on settings in generation model
+ * so you may safely remove <i>generated</i> tag and modify it.
+ *
+ * @generated
+ */
+ protected NodeFigure createNodeFigure() {
+ NodeFigure figure = createNodePlate();
+ figure.setLayoutManager(new StackLayout());
+ IFigure shape = createNodeShape();
+ figure.add(shape);
+ contentPane = setupContentPane(shape);
+ return figure;
+ }
+
+ /**
+ * Default implementation treats passed figure as content pane.
+ * Respects layout one may have set for generated figure.
+ *
+ * @param nodeShape
+ * instance of generated figure class
+ * @generated
+ */
+ protected IFigure setupContentPane(IFigure nodeShape) {
+ if(nodeShape.getLayoutManager() == null) {
+ ConstrainedToolbarLayout layout = new ConstrainedToolbarLayout();
+ layout.setSpacing(5);
+ nodeShape.setLayoutManager(layout);
+ }
+ return nodeShape; // use nodeShape itself as contentPane
+ }
+
+ /**
+ * @generated
+ */
+ public IFigure getContentPane() {
+ if(contentPane != null) {
+ return contentPane;
+ }
+ return super.getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ protected void setForegroundColor(Color color) {
+ if(primaryShape != null) {
+ primaryShape.setForegroundColor(color);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLineWidth(int width) {
+ if(primaryShape instanceof Shape) {
+ ((Shape)primaryShape).setLineWidth(width);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLineType(int style) {
+ if(primaryShape instanceof Shape) {
+ ((Shape)primaryShape).setLineStyle(style);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public EditPart getPrimaryChildEditPart() {
+ return getChildBySemanticHint(UMLVisualIDRegistry.getType(SignalEventNameEditPart.VISUAL_ID));
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnSource() {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(11);
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ types.add(UMLElementTypes.Substitution_4011);
+ types.add(UMLElementTypes.Realization_4006);
+ types.add(UMLElementTypes.Manifestation_4012);
+ types.add(UMLElementTypes.Abstraction_4007);
+ types.add(UMLElementTypes.Usage_4008);
+ types.add(UMLElementTypes.Deployment_4009);
+ types.add(UMLElementTypes.Dependency_4017);
+ types.add(UMLElementTypes.Dependency_4010);
+ types.add(UMLElementTypes.InformationFlow_4021);
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnSourceAndTarget(IGraphicalEditPart targetEditPart) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.SignalEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.SignalEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.SignalEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.SignalEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.SignalEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.SignalEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.SignalEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.SignalEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.SignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.SignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.SignalEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMATypesForTarget(IElementType relationshipType) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(relationshipType == UMLElementTypes.ComponentRealization_4004) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InterfaceRealization_4005) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Substitution_4011) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Realization_4006) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Manifestation_4012) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Abstraction_4007) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Usage_4008) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Deployment_4009) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4017) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4010) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InformationFlow_4021) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnTarget() {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(15);
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ types.add(UMLElementTypes.Substitution_4011);
+ types.add(UMLElementTypes.Realization_4006);
+ types.add(UMLElementTypes.Manifestation_4012);
+ types.add(UMLElementTypes.Abstraction_4007);
+ types.add(UMLElementTypes.Usage_4008);
+ types.add(UMLElementTypes.Deployment_4009);
+ types.add(UMLElementTypes.Dependency_4017);
+ types.add(UMLElementTypes.Dependency_4010);
+ types.add(UMLElementTypes.TimeObservationEvent_4018);
+ types.add(UMLElementTypes.DurationObservationEvent_4019);
+ types.add(UMLElementTypes.InformationFlow_4021);
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMATypesForSource(IElementType relationshipType) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(relationshipType == UMLElementTypes.CommentAnnotatedElement_4002) {
+ types.add(UMLElementTypes.Comment_2109);
+ types.add(UMLElementTypes.Comment_3097);
+ } else if(relationshipType == UMLElementTypes.ConstraintConstrainedElement_4003) {
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.ComponentRealization_4004) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InterfaceRealization_4005) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Substitution_4011) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Realization_4006) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Manifestation_4012) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Abstraction_4007) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Usage_4008) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Deployment_4009) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4017) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4010) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.TimeObservationEvent_4018) {
+ types.add(UMLElementTypes.TimeObservation_2094);
+ } else if(relationshipType == UMLElementTypes.DurationObservationEvent_4019) {
+ types.add(UMLElementTypes.DurationObservation_2093);
+ } else if(relationshipType == UMLElementTypes.InformationFlow_4021) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public class NamedElementDescriptor extends RectangleFigure {
+
+ /**
+ * @generated
+ */
+ private WrappingLabel fNamedElementNameLabel;
+
+ /**
+ * @generated
+ */
+ public NamedElementDescriptor() {
+ this.setLineWidth(1);
+ this.setForegroundColor(ColorConstants.black);
+ createContents();
+ }
+
+ /**
+ * @generated
+ */
+ private void createContents() {
+
+ fNamedElementNameLabel = new WrappingLabel();
+ fNamedElementNameLabel.setText("");
+ fNamedElementNameLabel.setForegroundColor(ColorConstants.black);
+
+ fNamedElementNameLabel.setFont(FNAMEDELEMENTNAMELABEL_FONT);
+
+ this.add(fNamedElementNameLabel);
+
+ }
+
+ /**
+ * @generated
+ */
+ private boolean myUseLocalCoordinates = false;
+
+ /**
+ * @generated
+ */
+ protected boolean useLocalCoordinates() {
+ return myUseLocalCoordinates;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setUseLocalCoordinates(boolean useLocalCoordinates) {
+ myUseLocalCoordinates = useLocalCoordinates;
+ }
+
+ /**
+ * @generated
+ */
+ public WrappingLabel getNamedElementNameLabel() {
+ return fNamedElementNameLabel;
+ }
+
+ }
+
+ /**
+ * @generated
+ */
+ static final Font FNAMEDELEMENTNAMELABEL_FONT = new Font(Display.getCurrent(), "Arial", 10, SWT.BOLD);
+
+ /**
+ * @generated
+ */
+ @Override
+ public Object getPreferredValue(EStructuralFeature feature) {
+ IPreferenceStore preferenceStore = (IPreferenceStore)getDiagramPreferencesHint().getPreferenceStore();
+ Object result = null;
+
+ if(feature == NotationPackage.eINSTANCE.getLineStyle_LineColor() || feature == NotationPackage.eINSTANCE.getFontStyle_FontColor() || feature == NotationPackage.eINSTANCE.getFillStyle_FillColor()) {
+ String prefColor = null;
+ if(feature == NotationPackage.eINSTANCE.getLineStyle_LineColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("SignalEvent", PreferenceConstantHelper.COLOR_LINE);
+ } else if(feature == NotationPackage.eINSTANCE.getFontStyle_FontColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("SignalEvent", PreferenceConstantHelper.COLOR_FONT);
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_FillColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("SignalEvent", PreferenceConstantHelper.COLOR_FILL);
+ }
+ result = FigureUtilities.RGBToInteger(PreferenceConverter.getColor((IPreferenceStore)preferenceStore, prefColor));
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_Transparency() || feature == NotationPackage.eINSTANCE.getFillStyle_Gradient()) {
+ String prefGradient = PreferenceConstantHelper.getElementConstant("SignalEvent", PreferenceConstantHelper.COLOR_GRADIENT);
+ GradientPreferenceConverter gradientPreferenceConverter = new GradientPreferenceConverter(preferenceStore.getString(prefGradient));
+ if(feature == NotationPackage.eINSTANCE.getFillStyle_Transparency()) {
+ result = new Integer(gradientPreferenceConverter.getTransparency());
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_Gradient()) {
+ result = gradientPreferenceConverter.getGradientData();
+ }
+ }
+
+ if(result == null) {
+ result = getStructuralFeatureValue(feature);
+ }
+ return result;
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/SignalEventNameEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/SignalEventNameEditPart.java
new file mode 100644
index 00000000000..53b52aa34fb
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/SignalEventNameEditPart.java
@@ -0,0 +1,791 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EAnnotation;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.emf.transaction.RunnableWithResult;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.AccessibleEditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.requests.DirectEditRequest;
+import org.eclipse.gef.tools.DirectEditManager;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.CompartmentEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
+import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
+import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
+import org.eclipse.gmf.runtime.notation.FontStyle;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
+import org.eclipse.jface.viewers.ICellEditorValidator;
+import org.eclipse.jface.window.Window;
+import org.eclipse.papyrus.diagram.common.directedit.MultilineLabelDirectEditManager;
+import org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition;
+import org.eclipse.papyrus.diagram.common.editpolicies.IMaskManagedLabelEditPolicy;
+import org.eclipse.papyrus.diagram.common.figure.node.ILabelFigure;
+import org.eclipse.papyrus.diagram.common.util.DiagramEditPartsUtil;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLTextSelectionEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.diagram.composite.providers.UMLParserProvider;
+import org.eclipse.papyrus.extensionpoints.editors.Activator;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
+import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
+import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
+import org.eclipse.papyrus.umlutils.ui.VisualInformationPapyrusConstant;
+import org.eclipse.papyrus.umlutils.ui.helper.NameLabelIconHelper;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.AccessibleEvent;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.FontData;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.ui.PlatformUI;
+
+/**
+ * @generated
+ */
+public class SignalEventNameEditPart extends CompartmentEditPart implements ITextAwareEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 5166;
+
+ /**
+ * @generated
+ */
+ private DirectEditManager manager;
+
+ /**
+ * @generated
+ */
+ private IParser parser;
+
+ /**
+ * @generated
+ */
+ private List<?> parserElements;
+
+ /**
+ * @generated
+ */
+ private String defaultText;
+
+ /**
+ * direct edition mode (default, undefined, registered editor, etc.)
+ *
+ * @generated
+ */
+ protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
+
+ /**
+ * configuration from a registered edit dialog
+ *
+ * @generated
+ */
+ protected IDirectEditorConfiguration configuration;
+
+ /**
+ * @generated
+ */
+ public SignalEventNameEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
+ installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new CompositeStructureDiagramEditPart.NodeLabelDragPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelTextHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getText();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getText();
+ } else {
+ return ((Label)figure).getText();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelTextHelper(IFigure figure, String text) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setText(text);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setText(text);
+ } else {
+ ((Label)figure).setText(text);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIconHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getIcon();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getIcon();
+ } else {
+ return ((Label)figure).getIcon();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelIconHelper(IFigure figure, Image icon) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setIcon(icon);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setIcon(icon);
+ } else {
+ ((Label)figure).setIcon(icon);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabel(WrappingLabel figure) {
+ unregisterVisuals();
+ setFigure(figure);
+ defaultText = getLabelTextHelper(figure);
+ registerVisuals();
+ refreshVisuals();
+ }
+
+ /**
+ * @generated
+ */
+ protected List getModelChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject getParserElement() {
+ return resolveSemanticElement();
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIcon() {
+ EObject parserElement = getParserElement();
+ if(parserElement == null) {
+ return null;
+ }
+
+ List<View> views = DiagramEditPartsUtil.findViews(parserElement, getViewer());
+ for(View view : views) {
+ if(NameLabelIconHelper.showLabelIcon(view)) {
+ return UMLElementTypes.getImage(parserElement.eClass());
+ }
+ }
+ return null;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelText() {
+ String text = null;
+ EObject parserElement = getParserElement();
+ if(parserElement != null && getParser() != null) {
+ text = getParser().getPrintString(new EObjectAdapter(parserElement), getParserOptions().intValue());
+ }
+ if(text == null || text.length() == 0) {
+ text = defaultText;
+ }
+ return text;
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabelText(String text) {
+ setLabelTextHelper(getFigure(), text);
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public String getEditText() {
+ if(getParserElement() == null || getParser() == null) {
+ return ""; //$NON-NLS-1$
+ }
+ return getParser().getEditString(new EObjectAdapter(getParserElement()), getParserOptions().intValue());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean isEditable() {
+ return getParser() != null;
+ }
+
+ /**
+ * @generated
+ */
+ public ICellEditorValidator getEditTextValidator() {
+ return new ICellEditorValidator() {
+
+ public String isValid(final Object value) {
+ if(value instanceof String) {
+ final EObject element = getParserElement();
+ final IParser parser = getParser();
+ try {
+ IParserEditStatus valid = (IParserEditStatus)getEditingDomain().runExclusive(new RunnableWithResult.Impl() {
+
+ public void run() {
+ setResult(parser.isValidEditString(new EObjectAdapter(element), (String)value));
+ }
+ });
+ return valid.getCode() == ParserEditStatus.EDITABLE ? null : valid.getMessage();
+ } catch (InterruptedException ie) {
+ ie.printStackTrace();
+ }
+ }
+
+ // shouldn't get here
+ return null;
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ public IContentAssistProcessor getCompletionProcessor() {
+ if(getParserElement() == null || getParser() == null) {
+ return null;
+ }
+ return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
+ }
+
+ /**
+ * @generated
+ */
+ public ParserOptions getParserOptions() {
+ return ParserOptions.NONE;
+ }
+
+ /**
+ * @generated
+ */
+ public IParser getParser() {
+ if(parser == null) {
+ parser = UMLParserProvider.getParser(UMLElementTypes.SignalEvent_2083, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.diagram.composite.edit.parts.SignalEventNameEditPart.VISUAL_ID));
+ }
+ return parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected DirectEditManager getManager() {
+ if(manager == null) {
+ setManager(new MultilineLabelDirectEditManager(this, MultilineLabelDirectEditManager.getTextCellEditorClass(this), UMLEditPartFactory.getTextCellEditorLocator(this)));
+ }
+ return manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setManager(DirectEditManager manager) {
+ this.manager = manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit() {
+ getManager().show();
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit(Point eventLocation) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(eventLocation.getSWTPoint());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void performDirectEdit(char initialCharacter) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(initialCharacter);
+ } else {
+ performDirectEdit();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEditRequest(Request request) {
+
+ final Request theRequest = request;
+
+ if(IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
+ directEditionMode = getDirectEditionType();
+ }
+ switch(directEditionMode) {
+ case IDirectEdition.NO_DIRECT_EDITION:
+ // no direct edition mode => does nothing
+ return;
+ case IDirectEdition.EXTENDED_DIRECT_EDITOR:
+ updateExtendedEditorConfiguration();
+ if(configuration == null || configuration.getLanguage() == null) {
+ performDefaultDirectEditorEdit(theRequest);
+ } else {
+ configuration.preEditAction(resolveSemanticElement());
+ Dialog dialog = null;
+ if(configuration instanceof IPopupEditorConfiguration) {
+ IPopupEditorHelper helper = ((IPopupEditorConfiguration)configuration).createPopupEditorHelper(this);
+ helper.showEditor();
+ return;
+ } else if(configuration instanceof IAdvancedEditorConfiguration) {
+ dialog = ((IAdvancedEditorConfiguration)configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
+ } else if(configuration instanceof IDirectEditorConfiguration) {
+ dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), ((IDirectEditorConfiguration)configuration).getTextToEdit(resolveSemanticElement()), (IDirectEditorConfiguration)configuration);
+ } else {
+ return;
+ }
+ final Dialog finalDialog = dialog;
+
+ if(Window.OK == dialog.open()) {
+ TransactionalEditingDomain domain = getEditingDomain();
+ RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
+
+ @Override
+ protected void doExecute() {
+ configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog)finalDialog).getValue());
+
+ }
+ };
+ domain.getCommandStack().execute(command);
+ }
+ }
+ break;
+ case IDirectEdition.DEFAULT_DIRECT_EDITOR:
+
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ break;
+ default:
+ break;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshLabel();
+ refreshFont();
+ refreshFontColor();
+ refreshUnderline();
+ refreshStrikeThrough();
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshLabel() {
+ EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
+ if(maskLabelPolicy == null) {
+ setLabelTextHelper(getFigure(), getLabelText());
+ setLabelIconHelper(getFigure(), getLabelIcon());
+ }
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshUnderline() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextUnderline(style.isUnderline());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshStrikeThrough() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextStrikeThrough(style.isStrikeThrough());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshFont() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null) {
+ FontData fontData = new FontData(style.getFontName(), style.getFontHeight(), (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
+ setFont(fontData);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setFontColor(Color color) {
+ getFigure().setForegroundColor(color);
+ }
+
+ /**
+ * @generated
+ */
+ protected void addSemanticListeners() {
+ if(getParser() instanceof ISemanticParser) {
+ EObject element = resolveSemanticElement();
+ parserElements = ((ISemanticParser)getParser()).getSemanticElementsBeingParsed(element);
+ for(int i = 0; i < parserElements.size(); i++) {
+ addListenerFilter("SemanticModel" + i, this, (EObject)parserElements.get(i)); //$NON-NLS-1$
+ }
+ } else {
+ super.addSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeSemanticListeners() {
+ if(parserElements != null) {
+ for(int i = 0; i < parserElements.size(); i++) {
+ removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
+ }
+ } else {
+ super.removeSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected AccessibleEditPart getAccessibleEditPart() {
+ if(accessibleEP == null) {
+ accessibleEP = new AccessibleGraphicalEditPart() {
+
+ public void getName(AccessibleEvent e) {
+ e.result = getLabelTextHelper(getFigure());
+ }
+ };
+ }
+ return accessibleEP;
+ }
+
+ /**
+ * @generated
+ */
+ private View getFontStyleOwnerView() {
+ return (View)getModel();
+ }
+
+ /**
+ * Returns the kind of associated editor for direct edition.
+ *
+ * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition
+ * @generated
+ */
+ public int getDirectEditionType() {
+ if(checkExtendedEditor()) {
+ initExtendedEditorConfiguration();
+ return IDirectEdition.EXTENDED_DIRECT_EDITOR;
+ }
+ if(checkDefaultEdition()) {
+ return IDirectEdition.DEFAULT_DIRECT_EDITOR;
+ }
+
+ // not a named element. no specific editor => do nothing
+ return IDirectEdition.NO_DIRECT_EDITION;
+ }
+
+ /**
+ * Checks if an extended editor is present.
+ *
+ * @return <code>true</code> if an extended editor is present.
+ * @generated
+ */
+ protected boolean checkExtendedEditor() {
+ if(resolveSemanticElement() != null) {
+ return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ return false;
+ }
+
+ /**
+ * Checks if a default direct edition is available
+ *
+ * @return <code>true</code> if a default direct edition is available
+ * @generated
+ */
+ protected boolean checkDefaultEdition() {
+ return (getParser() != null);
+ }
+
+ /**
+ * Initializes the extended editor configuration
+ *
+ * @generated
+ */
+ protected void initExtendedEditorConfiguration() {
+ if(configuration == null) {
+ final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("")) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else {
+ configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ }
+ }
+
+ /**
+ * Updates the preference configuration
+ *
+ * @generated
+ */
+ protected void updateExtendedEditorConfiguration() {
+ String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("") && languagePreferred != configuration.getLanguage()) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else if(IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
+ configuration = null;
+ }
+ }
+
+ /**
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
+ protected void performDefaultDirectEditorEdit(final Request theRequest) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void addNotationalListeners() {
+ super.addNotationalListeners();
+ addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeNotationalListeners() {
+ super.removeNotationalListeners();
+ removeListenerFilter("PrimaryView"); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void handleNotificationEvent(Notification event) {
+ refreshLabel();
+ Object feature = event.getFeature();
+ if(NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
+ Integer c = (Integer)event.getNewValue();
+ setFontColor(DiagramColorRegistry.getInstance().getColor(c));
+ } else if(NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
+ refreshUnderline();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
+ refreshStrikeThrough();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
+ refreshFont();
+ } else {
+ if(getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
+ refreshLabel();
+ }
+ if(getParser() instanceof ISemanticParser) {
+ ISemanticParser modelParser = (ISemanticParser)getParser();
+ if(modelParser.areSemanticElementsAffected(null, event)) {
+ removeSemanticListeners();
+ if(resolveSemanticElement() != null) {
+ addSemanticListeners();
+ }
+ refreshLabel();
+ }
+ }
+ }
+
+ if(event.getNewValue() instanceof EAnnotation && VisualInformationPapyrusConstant.DISPLAY_NAMELABELICON.equals(((EAnnotation)event.getNewValue()).getSource())) {
+ refreshLabel();
+ }
+
+ super.handleNotificationEvent(event);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createFigure() {
+ // Parent should assign one using setLabel() method
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ private static final String ADD_PARENT_MODEL = "AddParentModel";
+
+ /**
+ * @generated
+ */
+ public void activate() {
+ super.activate();
+ addOwnerElementListeners();
+ }
+
+ /**
+ * @generated
+ */
+ protected void addOwnerElementListeners() {
+ addListenerFilter(ADD_PARENT_MODEL, this, ((View)getParent().getModel())); //$NON-NLS-1$
+
+ }
+
+ /**
+ * @generated
+ */
+ public void deactivate() {
+ removeOwnerElementListeners();
+ super.deactivate();
+
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeOwnerElementListeners() {
+ removeListenerFilter(ADD_PARENT_MODEL);
+
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/SignalNameEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/SignalNameEditPart.java
new file mode 100644
index 00000000000..2ba131fd046
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/SignalNameEditPart.java
@@ -0,0 +1,791 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EAnnotation;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.emf.transaction.RunnableWithResult;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.AccessibleEditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.requests.DirectEditRequest;
+import org.eclipse.gef.tools.DirectEditManager;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.CompartmentEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
+import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
+import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
+import org.eclipse.gmf.runtime.notation.FontStyle;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
+import org.eclipse.jface.viewers.ICellEditorValidator;
+import org.eclipse.jface.window.Window;
+import org.eclipse.papyrus.diagram.common.directedit.MultilineLabelDirectEditManager;
+import org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition;
+import org.eclipse.papyrus.diagram.common.editpolicies.IMaskManagedLabelEditPolicy;
+import org.eclipse.papyrus.diagram.common.figure.node.ILabelFigure;
+import org.eclipse.papyrus.diagram.common.util.DiagramEditPartsUtil;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLTextSelectionEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.diagram.composite.providers.UMLParserProvider;
+import org.eclipse.papyrus.extensionpoints.editors.Activator;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
+import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
+import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
+import org.eclipse.papyrus.umlutils.ui.VisualInformationPapyrusConstant;
+import org.eclipse.papyrus.umlutils.ui.helper.NameLabelIconHelper;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.AccessibleEvent;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.FontData;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.ui.PlatformUI;
+
+/**
+ * @generated
+ */
+public class SignalNameEditPart extends CompartmentEditPart implements ITextAwareEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 5164;
+
+ /**
+ * @generated
+ */
+ private DirectEditManager manager;
+
+ /**
+ * @generated
+ */
+ private IParser parser;
+
+ /**
+ * @generated
+ */
+ private List<?> parserElements;
+
+ /**
+ * @generated
+ */
+ private String defaultText;
+
+ /**
+ * direct edition mode (default, undefined, registered editor, etc.)
+ *
+ * @generated
+ */
+ protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
+
+ /**
+ * configuration from a registered edit dialog
+ *
+ * @generated
+ */
+ protected IDirectEditorConfiguration configuration;
+
+ /**
+ * @generated
+ */
+ public SignalNameEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
+ installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new CompositeStructureDiagramEditPart.NodeLabelDragPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelTextHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getText();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getText();
+ } else {
+ return ((Label)figure).getText();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelTextHelper(IFigure figure, String text) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setText(text);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setText(text);
+ } else {
+ ((Label)figure).setText(text);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIconHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getIcon();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getIcon();
+ } else {
+ return ((Label)figure).getIcon();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelIconHelper(IFigure figure, Image icon) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setIcon(icon);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setIcon(icon);
+ } else {
+ ((Label)figure).setIcon(icon);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabel(WrappingLabel figure) {
+ unregisterVisuals();
+ setFigure(figure);
+ defaultText = getLabelTextHelper(figure);
+ registerVisuals();
+ refreshVisuals();
+ }
+
+ /**
+ * @generated
+ */
+ protected List getModelChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject getParserElement() {
+ return resolveSemanticElement();
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIcon() {
+ EObject parserElement = getParserElement();
+ if(parserElement == null) {
+ return null;
+ }
+
+ List<View> views = DiagramEditPartsUtil.findViews(parserElement, getViewer());
+ for(View view : views) {
+ if(NameLabelIconHelper.showLabelIcon(view)) {
+ return UMLElementTypes.getImage(parserElement.eClass());
+ }
+ }
+ return null;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelText() {
+ String text = null;
+ EObject parserElement = getParserElement();
+ if(parserElement != null && getParser() != null) {
+ text = getParser().getPrintString(new EObjectAdapter(parserElement), getParserOptions().intValue());
+ }
+ if(text == null || text.length() == 0) {
+ text = defaultText;
+ }
+ return text;
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabelText(String text) {
+ setLabelTextHelper(getFigure(), text);
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public String getEditText() {
+ if(getParserElement() == null || getParser() == null) {
+ return ""; //$NON-NLS-1$
+ }
+ return getParser().getEditString(new EObjectAdapter(getParserElement()), getParserOptions().intValue());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean isEditable() {
+ return getParser() != null;
+ }
+
+ /**
+ * @generated
+ */
+ public ICellEditorValidator getEditTextValidator() {
+ return new ICellEditorValidator() {
+
+ public String isValid(final Object value) {
+ if(value instanceof String) {
+ final EObject element = getParserElement();
+ final IParser parser = getParser();
+ try {
+ IParserEditStatus valid = (IParserEditStatus)getEditingDomain().runExclusive(new RunnableWithResult.Impl() {
+
+ public void run() {
+ setResult(parser.isValidEditString(new EObjectAdapter(element), (String)value));
+ }
+ });
+ return valid.getCode() == ParserEditStatus.EDITABLE ? null : valid.getMessage();
+ } catch (InterruptedException ie) {
+ ie.printStackTrace();
+ }
+ }
+
+ // shouldn't get here
+ return null;
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ public IContentAssistProcessor getCompletionProcessor() {
+ if(getParserElement() == null || getParser() == null) {
+ return null;
+ }
+ return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
+ }
+
+ /**
+ * @generated
+ */
+ public ParserOptions getParserOptions() {
+ return ParserOptions.NONE;
+ }
+
+ /**
+ * @generated
+ */
+ public IParser getParser() {
+ if(parser == null) {
+ parser = UMLParserProvider.getParser(UMLElementTypes.Signal_2081, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.diagram.composite.edit.parts.SignalNameEditPart.VISUAL_ID));
+ }
+ return parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected DirectEditManager getManager() {
+ if(manager == null) {
+ setManager(new MultilineLabelDirectEditManager(this, MultilineLabelDirectEditManager.getTextCellEditorClass(this), UMLEditPartFactory.getTextCellEditorLocator(this)));
+ }
+ return manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setManager(DirectEditManager manager) {
+ this.manager = manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit() {
+ getManager().show();
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit(Point eventLocation) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(eventLocation.getSWTPoint());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void performDirectEdit(char initialCharacter) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(initialCharacter);
+ } else {
+ performDirectEdit();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEditRequest(Request request) {
+
+ final Request theRequest = request;
+
+ if(IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
+ directEditionMode = getDirectEditionType();
+ }
+ switch(directEditionMode) {
+ case IDirectEdition.NO_DIRECT_EDITION:
+ // no direct edition mode => does nothing
+ return;
+ case IDirectEdition.EXTENDED_DIRECT_EDITOR:
+ updateExtendedEditorConfiguration();
+ if(configuration == null || configuration.getLanguage() == null) {
+ performDefaultDirectEditorEdit(theRequest);
+ } else {
+ configuration.preEditAction(resolveSemanticElement());
+ Dialog dialog = null;
+ if(configuration instanceof IPopupEditorConfiguration) {
+ IPopupEditorHelper helper = ((IPopupEditorConfiguration)configuration).createPopupEditorHelper(this);
+ helper.showEditor();
+ return;
+ } else if(configuration instanceof IAdvancedEditorConfiguration) {
+ dialog = ((IAdvancedEditorConfiguration)configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
+ } else if(configuration instanceof IDirectEditorConfiguration) {
+ dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), ((IDirectEditorConfiguration)configuration).getTextToEdit(resolveSemanticElement()), (IDirectEditorConfiguration)configuration);
+ } else {
+ return;
+ }
+ final Dialog finalDialog = dialog;
+
+ if(Window.OK == dialog.open()) {
+ TransactionalEditingDomain domain = getEditingDomain();
+ RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
+
+ @Override
+ protected void doExecute() {
+ configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog)finalDialog).getValue());
+
+ }
+ };
+ domain.getCommandStack().execute(command);
+ }
+ }
+ break;
+ case IDirectEdition.DEFAULT_DIRECT_EDITOR:
+
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ break;
+ default:
+ break;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshLabel();
+ refreshFont();
+ refreshFontColor();
+ refreshUnderline();
+ refreshStrikeThrough();
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshLabel() {
+ EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
+ if(maskLabelPolicy == null) {
+ setLabelTextHelper(getFigure(), getLabelText());
+ setLabelIconHelper(getFigure(), getLabelIcon());
+ }
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshUnderline() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextUnderline(style.isUnderline());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshStrikeThrough() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextStrikeThrough(style.isStrikeThrough());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshFont() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null) {
+ FontData fontData = new FontData(style.getFontName(), style.getFontHeight(), (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
+ setFont(fontData);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setFontColor(Color color) {
+ getFigure().setForegroundColor(color);
+ }
+
+ /**
+ * @generated
+ */
+ protected void addSemanticListeners() {
+ if(getParser() instanceof ISemanticParser) {
+ EObject element = resolveSemanticElement();
+ parserElements = ((ISemanticParser)getParser()).getSemanticElementsBeingParsed(element);
+ for(int i = 0; i < parserElements.size(); i++) {
+ addListenerFilter("SemanticModel" + i, this, (EObject)parserElements.get(i)); //$NON-NLS-1$
+ }
+ } else {
+ super.addSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeSemanticListeners() {
+ if(parserElements != null) {
+ for(int i = 0; i < parserElements.size(); i++) {
+ removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
+ }
+ } else {
+ super.removeSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected AccessibleEditPart getAccessibleEditPart() {
+ if(accessibleEP == null) {
+ accessibleEP = new AccessibleGraphicalEditPart() {
+
+ public void getName(AccessibleEvent e) {
+ e.result = getLabelTextHelper(getFigure());
+ }
+ };
+ }
+ return accessibleEP;
+ }
+
+ /**
+ * @generated
+ */
+ private View getFontStyleOwnerView() {
+ return (View)getModel();
+ }
+
+ /**
+ * Returns the kind of associated editor for direct edition.
+ *
+ * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition
+ * @generated
+ */
+ public int getDirectEditionType() {
+ if(checkExtendedEditor()) {
+ initExtendedEditorConfiguration();
+ return IDirectEdition.EXTENDED_DIRECT_EDITOR;
+ }
+ if(checkDefaultEdition()) {
+ return IDirectEdition.DEFAULT_DIRECT_EDITOR;
+ }
+
+ // not a named element. no specific editor => do nothing
+ return IDirectEdition.NO_DIRECT_EDITION;
+ }
+
+ /**
+ * Checks if an extended editor is present.
+ *
+ * @return <code>true</code> if an extended editor is present.
+ * @generated
+ */
+ protected boolean checkExtendedEditor() {
+ if(resolveSemanticElement() != null) {
+ return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ return false;
+ }
+
+ /**
+ * Checks if a default direct edition is available
+ *
+ * @return <code>true</code> if a default direct edition is available
+ * @generated
+ */
+ protected boolean checkDefaultEdition() {
+ return (getParser() != null);
+ }
+
+ /**
+ * Initializes the extended editor configuration
+ *
+ * @generated
+ */
+ protected void initExtendedEditorConfiguration() {
+ if(configuration == null) {
+ final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("")) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else {
+ configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ }
+ }
+
+ /**
+ * Updates the preference configuration
+ *
+ * @generated
+ */
+ protected void updateExtendedEditorConfiguration() {
+ String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("") && languagePreferred != configuration.getLanguage()) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else if(IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
+ configuration = null;
+ }
+ }
+
+ /**
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
+ protected void performDefaultDirectEditorEdit(final Request theRequest) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void addNotationalListeners() {
+ super.addNotationalListeners();
+ addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeNotationalListeners() {
+ super.removeNotationalListeners();
+ removeListenerFilter("PrimaryView"); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void handleNotificationEvent(Notification event) {
+ refreshLabel();
+ Object feature = event.getFeature();
+ if(NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
+ Integer c = (Integer)event.getNewValue();
+ setFontColor(DiagramColorRegistry.getInstance().getColor(c));
+ } else if(NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
+ refreshUnderline();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
+ refreshStrikeThrough();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
+ refreshFont();
+ } else {
+ if(getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
+ refreshLabel();
+ }
+ if(getParser() instanceof ISemanticParser) {
+ ISemanticParser modelParser = (ISemanticParser)getParser();
+ if(modelParser.areSemanticElementsAffected(null, event)) {
+ removeSemanticListeners();
+ if(resolveSemanticElement() != null) {
+ addSemanticListeners();
+ }
+ refreshLabel();
+ }
+ }
+ }
+
+ if(event.getNewValue() instanceof EAnnotation && VisualInformationPapyrusConstant.DISPLAY_NAMELABELICON.equals(((EAnnotation)event.getNewValue()).getSource())) {
+ refreshLabel();
+ }
+
+ super.handleNotificationEvent(event);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createFigure() {
+ // Parent should assign one using setLabel() method
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ private static final String ADD_PARENT_MODEL = "AddParentModel";
+
+ /**
+ * @generated
+ */
+ public void activate() {
+ super.activate();
+ addOwnerElementListeners();
+ }
+
+ /**
+ * @generated
+ */
+ protected void addOwnerElementListeners() {
+ addListenerFilter(ADD_PARENT_MODEL, this, ((View)getParent().getModel())); //$NON-NLS-1$
+
+ }
+
+ /**
+ * @generated
+ */
+ public void deactivate() {
+ removeOwnerElementListeners();
+ super.deactivate();
+
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeOwnerElementListeners() {
+ removeListenerFilter(ADD_PARENT_MODEL);
+
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/SignalNameEditPartCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/SignalNameEditPartCN.java
new file mode 100644
index 00000000000..8b8964e598a
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/SignalNameEditPartCN.java
@@ -0,0 +1,791 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EAnnotation;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.emf.transaction.RunnableWithResult;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.AccessibleEditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.requests.DirectEditRequest;
+import org.eclipse.gef.tools.DirectEditManager;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.CompartmentEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
+import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
+import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
+import org.eclipse.gmf.runtime.notation.FontStyle;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
+import org.eclipse.jface.viewers.ICellEditorValidator;
+import org.eclipse.jface.window.Window;
+import org.eclipse.papyrus.diagram.common.directedit.MultilineLabelDirectEditManager;
+import org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition;
+import org.eclipse.papyrus.diagram.common.editpolicies.IMaskManagedLabelEditPolicy;
+import org.eclipse.papyrus.diagram.common.figure.node.ILabelFigure;
+import org.eclipse.papyrus.diagram.common.util.DiagramEditPartsUtil;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLTextSelectionEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.diagram.composite.providers.UMLParserProvider;
+import org.eclipse.papyrus.extensionpoints.editors.Activator;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
+import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
+import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
+import org.eclipse.papyrus.umlutils.ui.VisualInformationPapyrusConstant;
+import org.eclipse.papyrus.umlutils.ui.helper.NameLabelIconHelper;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.AccessibleEvent;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.FontData;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.ui.PlatformUI;
+
+/**
+ * @generated
+ */
+public class SignalNameEditPartCN extends CompartmentEditPart implements ITextAwareEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 5148;
+
+ /**
+ * @generated
+ */
+ private DirectEditManager manager;
+
+ /**
+ * @generated
+ */
+ private IParser parser;
+
+ /**
+ * @generated
+ */
+ private List<?> parserElements;
+
+ /**
+ * @generated
+ */
+ private String defaultText;
+
+ /**
+ * direct edition mode (default, undefined, registered editor, etc.)
+ *
+ * @generated
+ */
+ protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
+
+ /**
+ * configuration from a registered edit dialog
+ *
+ * @generated
+ */
+ protected IDirectEditorConfiguration configuration;
+
+ /**
+ * @generated
+ */
+ public SignalNameEditPartCN(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
+ installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new CompositeStructureDiagramEditPart.NodeLabelDragPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelTextHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getText();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getText();
+ } else {
+ return ((Label)figure).getText();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelTextHelper(IFigure figure, String text) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setText(text);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setText(text);
+ } else {
+ ((Label)figure).setText(text);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIconHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getIcon();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getIcon();
+ } else {
+ return ((Label)figure).getIcon();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelIconHelper(IFigure figure, Image icon) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setIcon(icon);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setIcon(icon);
+ } else {
+ ((Label)figure).setIcon(icon);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabel(WrappingLabel figure) {
+ unregisterVisuals();
+ setFigure(figure);
+ defaultText = getLabelTextHelper(figure);
+ registerVisuals();
+ refreshVisuals();
+ }
+
+ /**
+ * @generated
+ */
+ protected List getModelChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject getParserElement() {
+ return resolveSemanticElement();
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIcon() {
+ EObject parserElement = getParserElement();
+ if(parserElement == null) {
+ return null;
+ }
+
+ List<View> views = DiagramEditPartsUtil.findViews(parserElement, getViewer());
+ for(View view : views) {
+ if(NameLabelIconHelper.showLabelIcon(view)) {
+ return UMLElementTypes.getImage(parserElement.eClass());
+ }
+ }
+ return null;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelText() {
+ String text = null;
+ EObject parserElement = getParserElement();
+ if(parserElement != null && getParser() != null) {
+ text = getParser().getPrintString(new EObjectAdapter(parserElement), getParserOptions().intValue());
+ }
+ if(text == null || text.length() == 0) {
+ text = defaultText;
+ }
+ return text;
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabelText(String text) {
+ setLabelTextHelper(getFigure(), text);
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public String getEditText() {
+ if(getParserElement() == null || getParser() == null) {
+ return ""; //$NON-NLS-1$
+ }
+ return getParser().getEditString(new EObjectAdapter(getParserElement()), getParserOptions().intValue());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean isEditable() {
+ return getParser() != null;
+ }
+
+ /**
+ * @generated
+ */
+ public ICellEditorValidator getEditTextValidator() {
+ return new ICellEditorValidator() {
+
+ public String isValid(final Object value) {
+ if(value instanceof String) {
+ final EObject element = getParserElement();
+ final IParser parser = getParser();
+ try {
+ IParserEditStatus valid = (IParserEditStatus)getEditingDomain().runExclusive(new RunnableWithResult.Impl() {
+
+ public void run() {
+ setResult(parser.isValidEditString(new EObjectAdapter(element), (String)value));
+ }
+ });
+ return valid.getCode() == ParserEditStatus.EDITABLE ? null : valid.getMessage();
+ } catch (InterruptedException ie) {
+ ie.printStackTrace();
+ }
+ }
+
+ // shouldn't get here
+ return null;
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ public IContentAssistProcessor getCompletionProcessor() {
+ if(getParserElement() == null || getParser() == null) {
+ return null;
+ }
+ return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
+ }
+
+ /**
+ * @generated
+ */
+ public ParserOptions getParserOptions() {
+ return ParserOptions.NONE;
+ }
+
+ /**
+ * @generated
+ */
+ public IParser getParser() {
+ if(parser == null) {
+ parser = UMLParserProvider.getParser(UMLElementTypes.Signal_3095, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.diagram.composite.edit.parts.SignalNameEditPartCN.VISUAL_ID));
+ }
+ return parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected DirectEditManager getManager() {
+ if(manager == null) {
+ setManager(new MultilineLabelDirectEditManager(this, MultilineLabelDirectEditManager.getTextCellEditorClass(this), UMLEditPartFactory.getTextCellEditorLocator(this)));
+ }
+ return manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setManager(DirectEditManager manager) {
+ this.manager = manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit() {
+ getManager().show();
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit(Point eventLocation) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(eventLocation.getSWTPoint());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void performDirectEdit(char initialCharacter) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(initialCharacter);
+ } else {
+ performDirectEdit();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEditRequest(Request request) {
+
+ final Request theRequest = request;
+
+ if(IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
+ directEditionMode = getDirectEditionType();
+ }
+ switch(directEditionMode) {
+ case IDirectEdition.NO_DIRECT_EDITION:
+ // no direct edition mode => does nothing
+ return;
+ case IDirectEdition.EXTENDED_DIRECT_EDITOR:
+ updateExtendedEditorConfiguration();
+ if(configuration == null || configuration.getLanguage() == null) {
+ performDefaultDirectEditorEdit(theRequest);
+ } else {
+ configuration.preEditAction(resolveSemanticElement());
+ Dialog dialog = null;
+ if(configuration instanceof IPopupEditorConfiguration) {
+ IPopupEditorHelper helper = ((IPopupEditorConfiguration)configuration).createPopupEditorHelper(this);
+ helper.showEditor();
+ return;
+ } else if(configuration instanceof IAdvancedEditorConfiguration) {
+ dialog = ((IAdvancedEditorConfiguration)configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
+ } else if(configuration instanceof IDirectEditorConfiguration) {
+ dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), ((IDirectEditorConfiguration)configuration).getTextToEdit(resolveSemanticElement()), (IDirectEditorConfiguration)configuration);
+ } else {
+ return;
+ }
+ final Dialog finalDialog = dialog;
+
+ if(Window.OK == dialog.open()) {
+ TransactionalEditingDomain domain = getEditingDomain();
+ RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
+
+ @Override
+ protected void doExecute() {
+ configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog)finalDialog).getValue());
+
+ }
+ };
+ domain.getCommandStack().execute(command);
+ }
+ }
+ break;
+ case IDirectEdition.DEFAULT_DIRECT_EDITOR:
+
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ break;
+ default:
+ break;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshLabel();
+ refreshFont();
+ refreshFontColor();
+ refreshUnderline();
+ refreshStrikeThrough();
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshLabel() {
+ EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
+ if(maskLabelPolicy == null) {
+ setLabelTextHelper(getFigure(), getLabelText());
+ setLabelIconHelper(getFigure(), getLabelIcon());
+ }
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshUnderline() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextUnderline(style.isUnderline());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshStrikeThrough() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextStrikeThrough(style.isStrikeThrough());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshFont() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null) {
+ FontData fontData = new FontData(style.getFontName(), style.getFontHeight(), (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
+ setFont(fontData);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setFontColor(Color color) {
+ getFigure().setForegroundColor(color);
+ }
+
+ /**
+ * @generated
+ */
+ protected void addSemanticListeners() {
+ if(getParser() instanceof ISemanticParser) {
+ EObject element = resolveSemanticElement();
+ parserElements = ((ISemanticParser)getParser()).getSemanticElementsBeingParsed(element);
+ for(int i = 0; i < parserElements.size(); i++) {
+ addListenerFilter("SemanticModel" + i, this, (EObject)parserElements.get(i)); //$NON-NLS-1$
+ }
+ } else {
+ super.addSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeSemanticListeners() {
+ if(parserElements != null) {
+ for(int i = 0; i < parserElements.size(); i++) {
+ removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
+ }
+ } else {
+ super.removeSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected AccessibleEditPart getAccessibleEditPart() {
+ if(accessibleEP == null) {
+ accessibleEP = new AccessibleGraphicalEditPart() {
+
+ public void getName(AccessibleEvent e) {
+ e.result = getLabelTextHelper(getFigure());
+ }
+ };
+ }
+ return accessibleEP;
+ }
+
+ /**
+ * @generated
+ */
+ private View getFontStyleOwnerView() {
+ return (View)getModel();
+ }
+
+ /**
+ * Returns the kind of associated editor for direct edition.
+ *
+ * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition
+ * @generated
+ */
+ public int getDirectEditionType() {
+ if(checkExtendedEditor()) {
+ initExtendedEditorConfiguration();
+ return IDirectEdition.EXTENDED_DIRECT_EDITOR;
+ }
+ if(checkDefaultEdition()) {
+ return IDirectEdition.DEFAULT_DIRECT_EDITOR;
+ }
+
+ // not a named element. no specific editor => do nothing
+ return IDirectEdition.NO_DIRECT_EDITION;
+ }
+
+ /**
+ * Checks if an extended editor is present.
+ *
+ * @return <code>true</code> if an extended editor is present.
+ * @generated
+ */
+ protected boolean checkExtendedEditor() {
+ if(resolveSemanticElement() != null) {
+ return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ return false;
+ }
+
+ /**
+ * Checks if a default direct edition is available
+ *
+ * @return <code>true</code> if a default direct edition is available
+ * @generated
+ */
+ protected boolean checkDefaultEdition() {
+ return (getParser() != null);
+ }
+
+ /**
+ * Initializes the extended editor configuration
+ *
+ * @generated
+ */
+ protected void initExtendedEditorConfiguration() {
+ if(configuration == null) {
+ final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("")) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else {
+ configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ }
+ }
+
+ /**
+ * Updates the preference configuration
+ *
+ * @generated
+ */
+ protected void updateExtendedEditorConfiguration() {
+ String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("") && languagePreferred != configuration.getLanguage()) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else if(IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
+ configuration = null;
+ }
+ }
+
+ /**
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
+ protected void performDefaultDirectEditorEdit(final Request theRequest) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void addNotationalListeners() {
+ super.addNotationalListeners();
+ addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeNotationalListeners() {
+ super.removeNotationalListeners();
+ removeListenerFilter("PrimaryView"); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void handleNotificationEvent(Notification event) {
+ refreshLabel();
+ Object feature = event.getFeature();
+ if(NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
+ Integer c = (Integer)event.getNewValue();
+ setFontColor(DiagramColorRegistry.getInstance().getColor(c));
+ } else if(NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
+ refreshUnderline();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
+ refreshStrikeThrough();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
+ refreshFont();
+ } else {
+ if(getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
+ refreshLabel();
+ }
+ if(getParser() instanceof ISemanticParser) {
+ ISemanticParser modelParser = (ISemanticParser)getParser();
+ if(modelParser.areSemanticElementsAffected(null, event)) {
+ removeSemanticListeners();
+ if(resolveSemanticElement() != null) {
+ addSemanticListeners();
+ }
+ refreshLabel();
+ }
+ }
+ }
+
+ if(event.getNewValue() instanceof EAnnotation && VisualInformationPapyrusConstant.DISPLAY_NAMELABELICON.equals(((EAnnotation)event.getNewValue()).getSource())) {
+ refreshLabel();
+ }
+
+ super.handleNotificationEvent(event);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createFigure() {
+ // Parent should assign one using setLabel() method
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ private static final String ADD_PARENT_MODEL = "AddParentModel";
+
+ /**
+ * @generated
+ */
+ public void activate() {
+ super.activate();
+ addOwnerElementListeners();
+ }
+
+ /**
+ * @generated
+ */
+ protected void addOwnerElementListeners() {
+ addListenerFilter(ADD_PARENT_MODEL, this, ((View)getParent().getModel())); //$NON-NLS-1$
+
+ }
+
+ /**
+ * @generated
+ */
+ public void deactivate() {
+ removeOwnerElementListeners();
+ super.deactivate();
+
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeOwnerElementListeners() {
+ removeListenerFilter(ADD_PARENT_MODEL);
+
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/StateMachineCompositeCompartmentEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/StateMachineCompositeCompartmentEditPart.java
new file mode 100644
index 00000000000..79190f027d9
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/StateMachineCompositeCompartmentEditPart.java
@@ -0,0 +1,123 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import org.eclipse.draw2d.geometry.Dimension;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.draw2d.geometry.Rectangle;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.GraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ShapeCompartmentEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.CreationEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.DragDropEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.ResizableCompartmentEditPolicy;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.diagram.common.editparts.NoScrollBarShapeCompartmentEditPart;
+import org.eclipse.papyrus.diagram.common.editpolicies.CustomContainerEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.DuplicatePasteEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.CustomDiagramDragDropEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.PortInCompartmentCreationEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.RemoveOrphanViewPolicy;
+import org.eclipse.papyrus.diagram.composite.edit.policies.StateMachineCompositeCompartmentItemSemanticEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.Messages;
+
+/**
+ * @generated
+ */
+public class StateMachineCompositeCompartmentEditPart
+
+extends NoScrollBarShapeCompartmentEditPart
+
+{
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 7066;
+
+ /**
+ * @generated
+ */
+ public StateMachineCompositeCompartmentEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ public String getCompartmentName() {
+ return Messages.StateMachineCompositeCompartmentEditPart_title;
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new ResizableCompartmentEditPolicy());
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new StateMachineCompositeCompartmentItemSemanticEditPolicy());
+ installEditPolicy(EditPolicyRoles.CREATION_ROLE, new CreationEditPolicy());
+ installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new DragDropEditPolicy());
+ installEditPolicy(DuplicatePasteEditPolicy.PASTE_ROLE, new DuplicatePasteEditPolicy());
+ installEditPolicy("REMOVE_ORPHAN_VIEW", new RemoveOrphanViewPolicy()); //$NON-NLS-1$
+ installEditPolicy(EditPolicy.GRAPHICAL_NODE_ROLE, new CustomContainerEditPolicy());
+ installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new CustomDiagramDragDropEditPolicy());
+ installEditPolicy(EditPolicyRoles.CREATION_ROLE, new PortInCompartmentCreationEditPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ protected void setRatio(Double ratio) {
+ if(getFigure().getParent().getLayoutManager() instanceof ConstrainedToolbarLayout) {
+ super.setRatio(ratio);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void handleNotificationEvent(Notification notification) {
+ Object feature = notification.getFeature();
+ if(NotationPackage.eINSTANCE.getSize_Width().equals(feature) || NotationPackage.eINSTANCE.getSize_Height().equals(feature) || NotationPackage.eINSTANCE.getLocation_X().equals(feature) || NotationPackage.eINSTANCE.getLocation_Y().equals(feature)) {
+ refreshBounds();
+ }
+ super.handleNotificationEvent(notification);
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshBounds() {
+ int width = ((Integer)getStructuralFeatureValue(NotationPackage.eINSTANCE.getSize_Width())).intValue();
+ int height = ((Integer)getStructuralFeatureValue(NotationPackage.eINSTANCE.getSize_Height())).intValue();
+ Dimension size = new Dimension(width, height);
+ int x = ((Integer)getStructuralFeatureValue(NotationPackage.eINSTANCE.getLocation_X())).intValue();
+ int y = ((Integer)getStructuralFeatureValue(NotationPackage.eINSTANCE.getLocation_Y())).intValue();
+ Point loc = new Point(x, y);
+ ((GraphicalEditPart)getParent()).setLayoutConstraint(this, getFigure(), new Rectangle(loc, size));
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshBounds();
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/StateMachineCompositeCompartmentEditPartCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/StateMachineCompositeCompartmentEditPartCN.java
new file mode 100644
index 00000000000..366a2357971
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/StateMachineCompositeCompartmentEditPartCN.java
@@ -0,0 +1,123 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import org.eclipse.draw2d.geometry.Dimension;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.draw2d.geometry.Rectangle;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.GraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ShapeCompartmentEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.CreationEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.DragDropEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.ResizableCompartmentEditPolicy;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.diagram.common.editparts.NoScrollBarShapeCompartmentEditPart;
+import org.eclipse.papyrus.diagram.common.editpolicies.CustomContainerEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.DuplicatePasteEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.CustomDiagramDragDropEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.PortInCompartmentCreationEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.RemoveOrphanViewPolicy;
+import org.eclipse.papyrus.diagram.composite.edit.policies.StateMachineCompositeCompartmentItemSemanticEditPolicyCN;
+import org.eclipse.papyrus.diagram.composite.part.Messages;
+
+/**
+ * @generated
+ */
+public class StateMachineCompositeCompartmentEditPartCN
+
+extends NoScrollBarShapeCompartmentEditPart
+
+{
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 7053;
+
+ /**
+ * @generated
+ */
+ public StateMachineCompositeCompartmentEditPartCN(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ public String getCompartmentName() {
+ return Messages.StateMachineCompositeCompartmentEditPartCN_title;
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new ResizableCompartmentEditPolicy());
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new StateMachineCompositeCompartmentItemSemanticEditPolicyCN());
+ installEditPolicy(EditPolicyRoles.CREATION_ROLE, new CreationEditPolicy());
+ installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new DragDropEditPolicy());
+ installEditPolicy(DuplicatePasteEditPolicy.PASTE_ROLE, new DuplicatePasteEditPolicy());
+ installEditPolicy("REMOVE_ORPHAN_VIEW", new RemoveOrphanViewPolicy()); //$NON-NLS-1$
+ installEditPolicy(EditPolicy.GRAPHICAL_NODE_ROLE, new CustomContainerEditPolicy());
+ installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new CustomDiagramDragDropEditPolicy());
+ installEditPolicy(EditPolicyRoles.CREATION_ROLE, new PortInCompartmentCreationEditPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ protected void setRatio(Double ratio) {
+ if(getFigure().getParent().getLayoutManager() instanceof ConstrainedToolbarLayout) {
+ super.setRatio(ratio);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void handleNotificationEvent(Notification notification) {
+ Object feature = notification.getFeature();
+ if(NotationPackage.eINSTANCE.getSize_Width().equals(feature) || NotationPackage.eINSTANCE.getSize_Height().equals(feature) || NotationPackage.eINSTANCE.getLocation_X().equals(feature) || NotationPackage.eINSTANCE.getLocation_Y().equals(feature)) {
+ refreshBounds();
+ }
+ super.handleNotificationEvent(notification);
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshBounds() {
+ int width = ((Integer)getStructuralFeatureValue(NotationPackage.eINSTANCE.getSize_Width())).intValue();
+ int height = ((Integer)getStructuralFeatureValue(NotationPackage.eINSTANCE.getSize_Height())).intValue();
+ Dimension size = new Dimension(width, height);
+ int x = ((Integer)getStructuralFeatureValue(NotationPackage.eINSTANCE.getLocation_X())).intValue();
+ int y = ((Integer)getStructuralFeatureValue(NotationPackage.eINSTANCE.getLocation_Y())).intValue();
+ Point loc = new Point(x, y);
+ ((GraphicalEditPart)getParent()).setLayoutConstraint(this, getFigure(), new Rectangle(loc, size));
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshBounds();
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/StateMachineCompositeEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/StateMachineCompositeEditPart.java
new file mode 100644
index 00000000000..a223a24f832
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/StateMachineCompositeEditPart.java
@@ -0,0 +1,5406 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.ArrayList;
+import java.util.LinkedList;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.PositionConstants;
+import org.eclipse.draw2d.Shape;
+import org.eclipse.draw2d.StackLayout;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EStructuralFeature;
+import org.eclipse.gef.EditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.editpolicies.LayoutEditPolicy;
+import org.eclipse.gef.editpolicies.NonResizableEditPolicy;
+import org.eclipse.gef.requests.CreateRequest;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IBorderItemEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.CreationEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.DragDropEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.diagram.ui.figures.IBorderItemLocator;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.FigureUtilities;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.gef.ui.figures.DefaultSizeNodeFigure;
+import org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.jface.preference.PreferenceConverter;
+import org.eclipse.papyrus.diagram.common.editparts.NamedElementEditPart;
+import org.eclipse.papyrus.diagram.common.editpolicies.AffixedNodeAlignmentEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.BorderItemResizableEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.HyperLinkPopupBarEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.QualifiedNameDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.ShowHideClassifierContentsEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.ShowHideCompartmentEditPolicy;
+import org.eclipse.papyrus.diagram.common.helper.PreferenceInitializerForElementHelper;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.BehaviorLayoutEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.BehaviorResizableShapeEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.CustomDiagramDragDropEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.RemoveOrphanViewPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.figures.StateMachineCompositeFigure;
+import org.eclipse.papyrus.diagram.composite.custom.locators.PortPositionLocator;
+import org.eclipse.papyrus.diagram.composite.edit.policies.StateMachineCompositeItemSemanticEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorPlugin;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter;
+import org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper;
+import org.eclipse.swt.graphics.Color;
+
+/**
+ * @generated
+ */
+public class StateMachineCompositeEditPart extends
+
+NamedElementEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 2063;
+
+ /**
+ * @generated
+ */
+ protected IFigure contentPane;
+
+ /**
+ * @generated
+ */
+ protected IFigure primaryShape;
+
+ /**
+ * @generated
+ */
+ public StateMachineCompositeEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ installEditPolicy(EditPolicyRoles.CREATION_ROLE, new CreationEditPolicy());
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new StateMachineCompositeItemSemanticEditPolicy());
+ installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new DragDropEditPolicy());
+ installEditPolicy(EditPolicy.LAYOUT_ROLE, createLayoutEditPolicy());
+ installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new CustomDiagramDragDropEditPolicy());
+ installEditPolicy(QualifiedNameDisplayEditPolicy.QUALIFIED_NAME_POLICY, new QualifiedNameDisplayEditPolicy());
+ installEditPolicy(AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeNodeLabelDisplayEditPolicy());
+ installEditPolicy(EditPolicyRoles.POPUPBAR_ROLE, new HyperLinkPopupBarEditPolicy());
+ installEditPolicy(EditPolicy.LAYOUT_ROLE, new BehaviorLayoutEditPolicy());
+ installEditPolicy(ShowHideClassifierContentsEditPolicy.SHOW_HIDE_CLASSIFIER_CONTENTS_POLICY, new ShowHideClassifierContentsEditPolicy());
+ installEditPolicy(ShowHideCompartmentEditPolicy.SHOW_HIDE_COMPARTMENT_POLICY, new ShowHideCompartmentEditPolicy());
+ installEditPolicy(AffixedNodeAlignmentEditPolicy.AFFIXED_CHILD_ALIGNMENT_ROLE, new AffixedNodeAlignmentEditPolicy());
+ installEditPolicy("REMOVE_ORPHAN_VIEW", new RemoveOrphanViewPolicy()); //$NON-NLS-1$
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new BehaviorResizableShapeEditPolicy());
+ // XXX need an SCR to runtime to have another abstract superclass that would let children add reasonable editpolicies
+ // removeEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CONNECTION_HANDLES_ROLE);
+ }
+
+ /**
+ * Papyrus codeGen
+ *
+ * @generated
+ **/
+ protected void handleNotificationEvent(Notification event) {
+ super.handleNotificationEvent(event);
+
+ }
+
+ /**
+ * @generated
+ */
+ protected LayoutEditPolicy createLayoutEditPolicy() {
+ org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy lep = new org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy() {
+
+ protected EditPolicy createChildEditPolicy(EditPart child) {
+ View childView = (View)child.getModel();
+ switch(UMLVisualIDRegistry.getVisualID(childView)) {
+ case PortEditPart.VISUAL_ID:
+ case ParameterEditPart.VISUAL_ID:
+
+ return new BorderItemResizableEditPolicy();
+
+ }
+ EditPolicy result = child.getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(result == null) {
+ result = new NonResizableEditPolicy();
+ }
+ return result;
+ }
+
+ protected Command getMoveChildrenCommand(Request request) {
+ return null;
+ }
+
+ protected Command getCreateCommand(CreateRequest request) {
+ return null;
+ }
+ };
+ return lep;
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createNodeShape() {
+ return primaryShape = new StateMachineCompositeFigure();
+ }
+
+ /**
+ * @generated
+ */
+ public StateMachineCompositeFigure getPrimaryShape() {
+ return (StateMachineCompositeFigure)primaryShape;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean addFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof StateMachineCompositeNameEditPart) {
+ ((StateMachineCompositeNameEditPart)childEditPart).setLabel(getPrimaryShape().getNameLabel());
+ return true;
+ }
+
+ if(childEditPart instanceof StateMachineCompositeCompartmentEditPart) {
+ IFigure pane = getPrimaryShape().getCompositeCompartmentFigure();
+ setupContentPane(pane); // FIXME each comparment should handle his content pane in his own way
+ pane.add(((StateMachineCompositeCompartmentEditPart)childEditPart).getFigure());
+ return true;
+ }
+
+ //Papyrus Gencode :Affixed Port locator
+ if(childEditPart instanceof PortEditPart) {
+ IBorderItemLocator locator = new PortPositionLocator(getMainFigure(), PositionConstants.NONE);
+ getBorderedFigure().getBorderItemContainer().add(((PortEditPart)childEditPart).getFigure(), locator);
+ return true;
+ }
+
+ //Papyrus Gencode :Affixed Port locator
+ if(childEditPart instanceof ParameterEditPart) {
+ IBorderItemLocator locator = new PortPositionLocator(getMainFigure(), PositionConstants.NONE);
+ getBorderedFigure().getBorderItemContainer().add(((ParameterEditPart)childEditPart).getFigure(), locator);
+ return true;
+ }
+
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean removeFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof StateMachineCompositeNameEditPart) {
+ return true;
+ }
+ if(childEditPart instanceof StateMachineCompositeCompartmentEditPart) {
+ IFigure pane = getPrimaryShape().getCompositeCompartmentFigure();
+ setupContentPane(pane); // FIXME each comparment should handle his content pane in his own way
+ pane.remove(((StateMachineCompositeCompartmentEditPart)childEditPart).getFigure());
+ return true;
+ }
+ if(childEditPart instanceof PortEditPart) {
+ getBorderedFigure().getBorderItemContainer().remove(((PortEditPart)childEditPart).getFigure());
+ return true;
+ }
+ if(childEditPart instanceof ParameterEditPart) {
+ getBorderedFigure().getBorderItemContainer().remove(((ParameterEditPart)childEditPart).getFigure());
+ return true;
+ }
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected void addChildVisual(EditPart childEditPart, int index) {
+ if(addFixedChild(childEditPart)) {
+ return;
+ }
+ super.addChildVisual(childEditPart, -1);
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeChildVisual(EditPart childEditPart) {
+ if(removeFixedChild(childEditPart)) {
+ return;
+ }
+ super.removeChildVisual(childEditPart);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure getContentPaneFor(IGraphicalEditPart editPart) {
+ if(editPart instanceof StateMachineCompositeCompartmentEditPart) {
+ return getPrimaryShape().getCompositeCompartmentFigure();
+ }
+ if(editPart instanceof IBorderItemEditPart) {
+ return getBorderedFigure().getBorderItemContainer();
+ }
+ return getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ protected NodeFigure createNodePlate() {
+ String prefElementId = "StateMachine";
+ IPreferenceStore store = UMLDiagramEditorPlugin.getInstance().getPreferenceStore();
+ String preferenceConstantWitdh = PreferenceInitializerForElementHelper.getpreferenceKey(getNotationView(), prefElementId, PreferenceConstantHelper.WIDTH);
+ String preferenceConstantHeight = PreferenceInitializerForElementHelper.getpreferenceKey(getNotationView(), prefElementId, PreferenceConstantHelper.HEIGHT);
+ DefaultSizeNodeFigure result = new DefaultSizeNodeFigure(store.getInt(preferenceConstantWitdh), store.getInt(preferenceConstantHeight));
+
+ return result;
+ }
+
+ /**
+ * Creates figure for this edit part.
+ *
+ * Body of this method does not depend on settings in generation model
+ * so you may safely remove <i>generated</i> tag and modify it.
+ *
+ * @generated
+ */
+ protected NodeFigure createMainFigure() {
+ NodeFigure figure = createNodePlate();
+ figure.setLayoutManager(new StackLayout());
+ IFigure shape = createNodeShape();
+ figure.add(shape);
+ contentPane = setupContentPane(shape);
+ return figure;
+ }
+
+ /**
+ * Default implementation treats passed figure as content pane.
+ * Respects layout one may have set for generated figure.
+ *
+ * @param nodeShape
+ * instance of generated figure class
+ * @generated
+ */
+ protected IFigure setupContentPane(IFigure nodeShape) {
+ if(nodeShape.getLayoutManager() == null) {
+ ConstrainedToolbarLayout layout = new ConstrainedToolbarLayout();
+ layout.setSpacing(5);
+ nodeShape.setLayoutManager(layout);
+ }
+ return nodeShape; // use nodeShape itself as contentPane
+ }
+
+ /**
+ * @generated
+ */
+ public IFigure getContentPane() {
+ if(contentPane != null) {
+ return contentPane;
+ }
+ return super.getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ protected void setForegroundColor(Color color) {
+ if(primaryShape != null) {
+ primaryShape.setForegroundColor(color);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLineWidth(int width) {
+ if(primaryShape instanceof Shape) {
+ ((Shape)primaryShape).setLineWidth(width);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLineType(int style) {
+ if(primaryShape instanceof Shape) {
+ ((Shape)primaryShape).setLineStyle(style);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public EditPart getPrimaryChildEditPart() {
+ return getChildBySemanticHint(UMLVisualIDRegistry.getType(StateMachineCompositeNameEditPart.VISUAL_ID));
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnSource() {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(12);
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ types.add(UMLElementTypes.Substitution_4011);
+ types.add(UMLElementTypes.Realization_4006);
+ types.add(UMLElementTypes.Manifestation_4012);
+ types.add(UMLElementTypes.Abstraction_4007);
+ types.add(UMLElementTypes.Usage_4008);
+ types.add(UMLElementTypes.Deployment_4009);
+ types.add(UMLElementTypes.Dependency_4017);
+ types.add(UMLElementTypes.Dependency_4010);
+ types.add(UMLElementTypes.Generalization_4015);
+ types.add(UMLElementTypes.InformationFlow_4021);
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnSourceAndTarget(IGraphicalEditPart targetEditPart) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMATypesForTarget(IElementType relationshipType) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(relationshipType == UMLElementTypes.ComponentRealization_4004) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InterfaceRealization_4005) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Substitution_4011) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Realization_4006) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Manifestation_4012) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Abstraction_4007) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Usage_4008) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Deployment_4009) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4017) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4010) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Generalization_4015) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ } else if(relationshipType == UMLElementTypes.InformationFlow_4021) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnTarget() {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(17);
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ types.add(UMLElementTypes.Substitution_4011);
+ types.add(UMLElementTypes.Realization_4006);
+ types.add(UMLElementTypes.Manifestation_4012);
+ types.add(UMLElementTypes.Abstraction_4007);
+ types.add(UMLElementTypes.Usage_4008);
+ types.add(UMLElementTypes.Deployment_4009);
+ types.add(UMLElementTypes.Dependency_4017);
+ types.add(UMLElementTypes.Dependency_4010);
+ types.add(UMLElementTypes.Generalization_4015);
+ types.add(UMLElementTypes.TimeObservationEvent_4018);
+ types.add(UMLElementTypes.DurationObservationEvent_4019);
+ types.add(UMLElementTypes.InformationItemRepresented_4020);
+ types.add(UMLElementTypes.InformationFlow_4021);
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMATypesForSource(IElementType relationshipType) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(relationshipType == UMLElementTypes.CommentAnnotatedElement_4002) {
+ types.add(UMLElementTypes.Comment_2109);
+ types.add(UMLElementTypes.Comment_3097);
+ } else if(relationshipType == UMLElementTypes.ConstraintConstrainedElement_4003) {
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.ComponentRealization_4004) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InterfaceRealization_4005) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Substitution_4011) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Realization_4006) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Manifestation_4012) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Abstraction_4007) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Usage_4008) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Deployment_4009) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4017) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4010) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Generalization_4015) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ } else if(relationshipType == UMLElementTypes.TimeObservationEvent_4018) {
+ types.add(UMLElementTypes.TimeObservation_2094);
+ } else if(relationshipType == UMLElementTypes.DurationObservationEvent_4019) {
+ types.add(UMLElementTypes.DurationObservation_2093);
+ } else if(relationshipType == UMLElementTypes.InformationItemRepresented_4020) {
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.InformationItem_3094);
+ } else if(relationshipType == UMLElementTypes.InformationFlow_4021) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public Object getPreferredValue(EStructuralFeature feature) {
+ IPreferenceStore preferenceStore = (IPreferenceStore)getDiagramPreferencesHint().getPreferenceStore();
+ Object result = null;
+
+ if(feature == NotationPackage.eINSTANCE.getLineStyle_LineColor() || feature == NotationPackage.eINSTANCE.getFontStyle_FontColor() || feature == NotationPackage.eINSTANCE.getFillStyle_FillColor()) {
+ String prefColor = null;
+ if(feature == NotationPackage.eINSTANCE.getLineStyle_LineColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("StateMachine", PreferenceConstantHelper.COLOR_LINE);
+ } else if(feature == NotationPackage.eINSTANCE.getFontStyle_FontColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("StateMachine", PreferenceConstantHelper.COLOR_FONT);
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_FillColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("StateMachine", PreferenceConstantHelper.COLOR_FILL);
+ }
+ result = FigureUtilities.RGBToInteger(PreferenceConverter.getColor((IPreferenceStore)preferenceStore, prefColor));
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_Transparency() || feature == NotationPackage.eINSTANCE.getFillStyle_Gradient()) {
+ String prefGradient = PreferenceConstantHelper.getElementConstant("StateMachine", PreferenceConstantHelper.COLOR_GRADIENT);
+ GradientPreferenceConverter gradientPreferenceConverter = new GradientPreferenceConverter(preferenceStore.getString(prefGradient));
+ if(feature == NotationPackage.eINSTANCE.getFillStyle_Transparency()) {
+ result = new Integer(gradientPreferenceConverter.getTransparency());
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_Gradient()) {
+ result = gradientPreferenceConverter.getGradientData();
+ }
+ }
+
+ if(result == null) {
+ result = getStructuralFeatureValue(feature);
+ }
+ return result;
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/StateMachineCompositeEditPartCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/StateMachineCompositeEditPartCN.java
new file mode 100644
index 00000000000..5c7d6b1d9ec
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/StateMachineCompositeEditPartCN.java
@@ -0,0 +1,5408 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.ArrayList;
+import java.util.LinkedList;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.PositionConstants;
+import org.eclipse.draw2d.Shape;
+import org.eclipse.draw2d.StackLayout;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EStructuralFeature;
+import org.eclipse.gef.EditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.editpolicies.LayoutEditPolicy;
+import org.eclipse.gef.editpolicies.NonResizableEditPolicy;
+import org.eclipse.gef.requests.CreateRequest;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IBorderItemEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.CreationEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.DragDropEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.diagram.ui.figures.IBorderItemLocator;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.FigureUtilities;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.gef.ui.figures.DefaultSizeNodeFigure;
+import org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.jface.preference.PreferenceConverter;
+import org.eclipse.papyrus.diagram.common.editparts.NamedElementEditPart;
+import org.eclipse.papyrus.diagram.common.editpolicies.AffixedNodeAlignmentEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.BorderItemResizableEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.HyperLinkPopupBarEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.QualifiedNameDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.ShowHideClassifierContentsEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.ShowHideCompartmentEditPolicy;
+import org.eclipse.papyrus.diagram.common.helper.PreferenceInitializerForElementHelper;
+import org.eclipse.papyrus.diagram.composite.custom.edit.parts.ConstrainedNamedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.BehaviorLayoutEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.BehaviorResizableShapeEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.CustomDiagramDragDropEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.NoScrollBehaviorResizableShapeEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.RemoveOrphanViewPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.figures.StateMachineCompositeFigure;
+import org.eclipse.papyrus.diagram.composite.custom.locators.PortPositionLocator;
+import org.eclipse.papyrus.diagram.composite.edit.policies.StateMachineCompositeItemSemanticEditPolicyCN;
+import org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorPlugin;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter;
+import org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper;
+import org.eclipse.swt.graphics.Color;
+
+/**
+ * @generated
+ */
+public class StateMachineCompositeEditPartCN extends
+
+ConstrainedNamedElementEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 3075;
+
+ /**
+ * @generated
+ */
+ protected IFigure contentPane;
+
+ /**
+ * @generated
+ */
+ protected IFigure primaryShape;
+
+ /**
+ * @generated
+ */
+ public StateMachineCompositeEditPartCN(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ installEditPolicy(EditPolicyRoles.CREATION_ROLE, new CreationEditPolicy());
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new StateMachineCompositeItemSemanticEditPolicyCN());
+ installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new DragDropEditPolicy());
+ installEditPolicy(EditPolicy.LAYOUT_ROLE, createLayoutEditPolicy());
+ installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new CustomDiagramDragDropEditPolicy());
+ installEditPolicy(QualifiedNameDisplayEditPolicy.QUALIFIED_NAME_POLICY, new QualifiedNameDisplayEditPolicy());
+ installEditPolicy(AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeNodeLabelDisplayEditPolicy());
+ installEditPolicy(EditPolicyRoles.POPUPBAR_ROLE, new HyperLinkPopupBarEditPolicy());
+ installEditPolicy(EditPolicy.LAYOUT_ROLE, new BehaviorLayoutEditPolicy());
+ installEditPolicy(ShowHideClassifierContentsEditPolicy.SHOW_HIDE_CLASSIFIER_CONTENTS_POLICY, new ShowHideClassifierContentsEditPolicy());
+ installEditPolicy(ShowHideCompartmentEditPolicy.SHOW_HIDE_COMPARTMENT_POLICY, new ShowHideCompartmentEditPolicy());
+ installEditPolicy(AffixedNodeAlignmentEditPolicy.AFFIXED_CHILD_ALIGNMENT_ROLE, new AffixedNodeAlignmentEditPolicy());
+ installEditPolicy("REMOVE_ORPHAN_VIEW", new RemoveOrphanViewPolicy()); //$NON-NLS-1$
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new NoScrollBehaviorResizableShapeEditPolicy());
+ // XXX need an SCR to runtime to have another abstract superclass that would let children add reasonable editpolicies
+ // removeEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CONNECTION_HANDLES_ROLE);
+ }
+
+ /**
+ * Papyrus codeGen
+ *
+ * @generated
+ **/
+ protected void handleNotificationEvent(Notification event) {
+ super.handleNotificationEvent(event);
+
+ }
+
+ /**
+ * @generated
+ */
+ protected LayoutEditPolicy createLayoutEditPolicy() {
+ org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy lep = new org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy() {
+
+ protected EditPolicy createChildEditPolicy(EditPart child) {
+ View childView = (View)child.getModel();
+ switch(UMLVisualIDRegistry.getVisualID(childView)) {
+ case PortEditPart.VISUAL_ID:
+ case ParameterEditPart.VISUAL_ID:
+
+ return new BorderItemResizableEditPolicy();
+
+ }
+ EditPolicy result = child.getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(result == null) {
+ result = new NonResizableEditPolicy();
+ }
+ return result;
+ }
+
+ protected Command getMoveChildrenCommand(Request request) {
+ return null;
+ }
+
+ protected Command getCreateCommand(CreateRequest request) {
+ return null;
+ }
+ };
+ return lep;
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createNodeShape() {
+ return primaryShape = new StateMachineCompositeFigure();
+ }
+
+ /**
+ * @generated
+ */
+ public StateMachineCompositeFigure getPrimaryShape() {
+ return (StateMachineCompositeFigure)primaryShape;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean addFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof StateMachineCompositeNameEditPartCN) {
+ ((StateMachineCompositeNameEditPartCN)childEditPart).setLabel(getPrimaryShape().getNameLabel());
+ return true;
+ }
+
+ if(childEditPart instanceof StateMachineCompositeCompartmentEditPartCN) {
+ IFigure pane = getPrimaryShape().getCompositeCompartmentFigure();
+ setupContentPane(pane); // FIXME each comparment should handle his content pane in his own way
+ pane.add(((StateMachineCompositeCompartmentEditPartCN)childEditPart).getFigure());
+ return true;
+ }
+
+ //Papyrus Gencode :Affixed Port locator
+ if(childEditPart instanceof PortEditPart) {
+ IBorderItemLocator locator = new PortPositionLocator(getMainFigure(), PositionConstants.NONE);
+ getBorderedFigure().getBorderItemContainer().add(((PortEditPart)childEditPart).getFigure(), locator);
+ return true;
+ }
+
+ //Papyrus Gencode :Affixed Port locator
+ if(childEditPart instanceof ParameterEditPart) {
+ IBorderItemLocator locator = new PortPositionLocator(getMainFigure(), PositionConstants.NONE);
+ getBorderedFigure().getBorderItemContainer().add(((ParameterEditPart)childEditPart).getFigure(), locator);
+ return true;
+ }
+
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean removeFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof StateMachineCompositeNameEditPartCN) {
+ return true;
+ }
+ if(childEditPart instanceof StateMachineCompositeCompartmentEditPartCN) {
+ IFigure pane = getPrimaryShape().getCompositeCompartmentFigure();
+ setupContentPane(pane); // FIXME each comparment should handle his content pane in his own way
+ pane.remove(((StateMachineCompositeCompartmentEditPartCN)childEditPart).getFigure());
+ return true;
+ }
+ if(childEditPart instanceof PortEditPart) {
+ getBorderedFigure().getBorderItemContainer().remove(((PortEditPart)childEditPart).getFigure());
+ return true;
+ }
+ if(childEditPart instanceof ParameterEditPart) {
+ getBorderedFigure().getBorderItemContainer().remove(((ParameterEditPart)childEditPart).getFigure());
+ return true;
+ }
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected void addChildVisual(EditPart childEditPart, int index) {
+ if(addFixedChild(childEditPart)) {
+ return;
+ }
+ super.addChildVisual(childEditPart, -1);
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeChildVisual(EditPart childEditPart) {
+ if(removeFixedChild(childEditPart)) {
+ return;
+ }
+ super.removeChildVisual(childEditPart);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure getContentPaneFor(IGraphicalEditPart editPart) {
+ if(editPart instanceof StateMachineCompositeCompartmentEditPartCN) {
+ return getPrimaryShape().getCompositeCompartmentFigure();
+ }
+ if(editPart instanceof IBorderItemEditPart) {
+ return getBorderedFigure().getBorderItemContainer();
+ }
+ return getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ protected NodeFigure createNodePlate() {
+ String prefElementId = "StateMachine";
+ IPreferenceStore store = UMLDiagramEditorPlugin.getInstance().getPreferenceStore();
+ String preferenceConstantWitdh = PreferenceInitializerForElementHelper.getpreferenceKey(getNotationView(), prefElementId, PreferenceConstantHelper.WIDTH);
+ String preferenceConstantHeight = PreferenceInitializerForElementHelper.getpreferenceKey(getNotationView(), prefElementId, PreferenceConstantHelper.HEIGHT);
+ DefaultSizeNodeFigure result = new DefaultSizeNodeFigure(store.getInt(preferenceConstantWitdh), store.getInt(preferenceConstantHeight));
+
+ return result;
+ }
+
+ /**
+ * Creates figure for this edit part.
+ *
+ * Body of this method does not depend on settings in generation model
+ * so you may safely remove <i>generated</i> tag and modify it.
+ *
+ * @generated
+ */
+ protected NodeFigure createMainFigure() {
+ NodeFigure figure = createNodePlate();
+ figure.setLayoutManager(new StackLayout());
+ IFigure shape = createNodeShape();
+ figure.add(shape);
+ contentPane = setupContentPane(shape);
+ return figure;
+ }
+
+ /**
+ * Default implementation treats passed figure as content pane.
+ * Respects layout one may have set for generated figure.
+ *
+ * @param nodeShape
+ * instance of generated figure class
+ * @generated
+ */
+ protected IFigure setupContentPane(IFigure nodeShape) {
+ if(nodeShape.getLayoutManager() == null) {
+ ConstrainedToolbarLayout layout = new ConstrainedToolbarLayout();
+ layout.setSpacing(5);
+ nodeShape.setLayoutManager(layout);
+ }
+ return nodeShape; // use nodeShape itself as contentPane
+ }
+
+ /**
+ * @generated
+ */
+ public IFigure getContentPane() {
+ if(contentPane != null) {
+ return contentPane;
+ }
+ return super.getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ protected void setForegroundColor(Color color) {
+ if(primaryShape != null) {
+ primaryShape.setForegroundColor(color);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLineWidth(int width) {
+ if(primaryShape instanceof Shape) {
+ ((Shape)primaryShape).setLineWidth(width);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLineType(int style) {
+ if(primaryShape instanceof Shape) {
+ ((Shape)primaryShape).setLineStyle(style);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public EditPart getPrimaryChildEditPart() {
+ return getChildBySemanticHint(UMLVisualIDRegistry.getType(StateMachineCompositeNameEditPartCN.VISUAL_ID));
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnSource() {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(12);
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ types.add(UMLElementTypes.Substitution_4011);
+ types.add(UMLElementTypes.Realization_4006);
+ types.add(UMLElementTypes.Manifestation_4012);
+ types.add(UMLElementTypes.Abstraction_4007);
+ types.add(UMLElementTypes.Usage_4008);
+ types.add(UMLElementTypes.Deployment_4009);
+ types.add(UMLElementTypes.Dependency_4017);
+ types.add(UMLElementTypes.Dependency_4010);
+ types.add(UMLElementTypes.Generalization_4015);
+ types.add(UMLElementTypes.InformationFlow_4021);
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnSourceAndTarget(IGraphicalEditPart targetEditPart) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMATypesForTarget(IElementType relationshipType) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(relationshipType == UMLElementTypes.ComponentRealization_4004) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InterfaceRealization_4005) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Substitution_4011) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Realization_4006) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Manifestation_4012) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Abstraction_4007) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Usage_4008) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Deployment_4009) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4017) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4010) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Generalization_4015) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ } else if(relationshipType == UMLElementTypes.InformationFlow_4021) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnTarget() {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(17);
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ types.add(UMLElementTypes.Substitution_4011);
+ types.add(UMLElementTypes.Realization_4006);
+ types.add(UMLElementTypes.Manifestation_4012);
+ types.add(UMLElementTypes.Abstraction_4007);
+ types.add(UMLElementTypes.Usage_4008);
+ types.add(UMLElementTypes.Deployment_4009);
+ types.add(UMLElementTypes.Dependency_4017);
+ types.add(UMLElementTypes.Dependency_4010);
+ types.add(UMLElementTypes.Generalization_4015);
+ types.add(UMLElementTypes.TimeObservationEvent_4018);
+ types.add(UMLElementTypes.DurationObservationEvent_4019);
+ types.add(UMLElementTypes.InformationItemRepresented_4020);
+ types.add(UMLElementTypes.InformationFlow_4021);
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMATypesForSource(IElementType relationshipType) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(relationshipType == UMLElementTypes.CommentAnnotatedElement_4002) {
+ types.add(UMLElementTypes.Comment_2109);
+ types.add(UMLElementTypes.Comment_3097);
+ } else if(relationshipType == UMLElementTypes.ConstraintConstrainedElement_4003) {
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.ComponentRealization_4004) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InterfaceRealization_4005) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Substitution_4011) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Realization_4006) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Manifestation_4012) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Abstraction_4007) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Usage_4008) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Deployment_4009) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4017) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4010) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Generalization_4015) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ } else if(relationshipType == UMLElementTypes.TimeObservationEvent_4018) {
+ types.add(UMLElementTypes.TimeObservation_2094);
+ } else if(relationshipType == UMLElementTypes.DurationObservationEvent_4019) {
+ types.add(UMLElementTypes.DurationObservation_2093);
+ } else if(relationshipType == UMLElementTypes.InformationItemRepresented_4020) {
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.InformationItem_3094);
+ } else if(relationshipType == UMLElementTypes.InformationFlow_4021) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public Object getPreferredValue(EStructuralFeature feature) {
+ IPreferenceStore preferenceStore = (IPreferenceStore)getDiagramPreferencesHint().getPreferenceStore();
+ Object result = null;
+
+ if(feature == NotationPackage.eINSTANCE.getLineStyle_LineColor() || feature == NotationPackage.eINSTANCE.getFontStyle_FontColor() || feature == NotationPackage.eINSTANCE.getFillStyle_FillColor()) {
+ String prefColor = null;
+ if(feature == NotationPackage.eINSTANCE.getLineStyle_LineColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("StateMachine", PreferenceConstantHelper.COLOR_LINE);
+ } else if(feature == NotationPackage.eINSTANCE.getFontStyle_FontColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("StateMachine", PreferenceConstantHelper.COLOR_FONT);
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_FillColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("StateMachine", PreferenceConstantHelper.COLOR_FILL);
+ }
+ result = FigureUtilities.RGBToInteger(PreferenceConverter.getColor((IPreferenceStore)preferenceStore, prefColor));
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_Transparency() || feature == NotationPackage.eINSTANCE.getFillStyle_Gradient()) {
+ String prefGradient = PreferenceConstantHelper.getElementConstant("StateMachine", PreferenceConstantHelper.COLOR_GRADIENT);
+ GradientPreferenceConverter gradientPreferenceConverter = new GradientPreferenceConverter(preferenceStore.getString(prefGradient));
+ if(feature == NotationPackage.eINSTANCE.getFillStyle_Transparency()) {
+ result = new Integer(gradientPreferenceConverter.getTransparency());
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_Gradient()) {
+ result = gradientPreferenceConverter.getGradientData();
+ }
+ }
+
+ if(result == null) {
+ result = getStructuralFeatureValue(feature);
+ }
+ return result;
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/StateMachineCompositeNameEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/StateMachineCompositeNameEditPart.java
new file mode 100644
index 00000000000..c9cdbb93d84
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/StateMachineCompositeNameEditPart.java
@@ -0,0 +1,791 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EAnnotation;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.emf.transaction.RunnableWithResult;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.AccessibleEditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.requests.DirectEditRequest;
+import org.eclipse.gef.tools.DirectEditManager;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.CompartmentEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
+import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
+import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
+import org.eclipse.gmf.runtime.notation.FontStyle;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
+import org.eclipse.jface.viewers.ICellEditorValidator;
+import org.eclipse.jface.window.Window;
+import org.eclipse.papyrus.diagram.common.directedit.MultilineLabelDirectEditManager;
+import org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition;
+import org.eclipse.papyrus.diagram.common.editpolicies.IMaskManagedLabelEditPolicy;
+import org.eclipse.papyrus.diagram.common.figure.node.ILabelFigure;
+import org.eclipse.papyrus.diagram.common.util.DiagramEditPartsUtil;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLTextSelectionEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.diagram.composite.providers.UMLParserProvider;
+import org.eclipse.papyrus.extensionpoints.editors.Activator;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
+import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
+import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
+import org.eclipse.papyrus.umlutils.ui.VisualInformationPapyrusConstant;
+import org.eclipse.papyrus.umlutils.ui.helper.NameLabelIconHelper;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.AccessibleEvent;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.FontData;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.ui.PlatformUI;
+
+/**
+ * @generated
+ */
+public class StateMachineCompositeNameEditPart extends CompartmentEditPart implements ITextAwareEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 5115;
+
+ /**
+ * @generated
+ */
+ private DirectEditManager manager;
+
+ /**
+ * @generated
+ */
+ private IParser parser;
+
+ /**
+ * @generated
+ */
+ private List<?> parserElements;
+
+ /**
+ * @generated
+ */
+ private String defaultText;
+
+ /**
+ * direct edition mode (default, undefined, registered editor, etc.)
+ *
+ * @generated
+ */
+ protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
+
+ /**
+ * configuration from a registered edit dialog
+ *
+ * @generated
+ */
+ protected IDirectEditorConfiguration configuration;
+
+ /**
+ * @generated
+ */
+ public StateMachineCompositeNameEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
+ installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new CompositeStructureDiagramEditPart.NodeLabelDragPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelTextHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getText();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getText();
+ } else {
+ return ((Label)figure).getText();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelTextHelper(IFigure figure, String text) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setText(text);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setText(text);
+ } else {
+ ((Label)figure).setText(text);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIconHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getIcon();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getIcon();
+ } else {
+ return ((Label)figure).getIcon();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelIconHelper(IFigure figure, Image icon) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setIcon(icon);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setIcon(icon);
+ } else {
+ ((Label)figure).setIcon(icon);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabel(WrappingLabel figure) {
+ unregisterVisuals();
+ setFigure(figure);
+ defaultText = getLabelTextHelper(figure);
+ registerVisuals();
+ refreshVisuals();
+ }
+
+ /**
+ * @generated
+ */
+ protected List getModelChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject getParserElement() {
+ return resolveSemanticElement();
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIcon() {
+ EObject parserElement = getParserElement();
+ if(parserElement == null) {
+ return null;
+ }
+
+ List<View> views = DiagramEditPartsUtil.findViews(parserElement, getViewer());
+ for(View view : views) {
+ if(NameLabelIconHelper.showLabelIcon(view)) {
+ return UMLElementTypes.getImage(parserElement.eClass());
+ }
+ }
+ return null;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelText() {
+ String text = null;
+ EObject parserElement = getParserElement();
+ if(parserElement != null && getParser() != null) {
+ text = getParser().getPrintString(new EObjectAdapter(parserElement), getParserOptions().intValue());
+ }
+ if(text == null || text.length() == 0) {
+ text = defaultText;
+ }
+ return text;
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabelText(String text) {
+ setLabelTextHelper(getFigure(), text);
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public String getEditText() {
+ if(getParserElement() == null || getParser() == null) {
+ return ""; //$NON-NLS-1$
+ }
+ return getParser().getEditString(new EObjectAdapter(getParserElement()), getParserOptions().intValue());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean isEditable() {
+ return getParser() != null;
+ }
+
+ /**
+ * @generated
+ */
+ public ICellEditorValidator getEditTextValidator() {
+ return new ICellEditorValidator() {
+
+ public String isValid(final Object value) {
+ if(value instanceof String) {
+ final EObject element = getParserElement();
+ final IParser parser = getParser();
+ try {
+ IParserEditStatus valid = (IParserEditStatus)getEditingDomain().runExclusive(new RunnableWithResult.Impl() {
+
+ public void run() {
+ setResult(parser.isValidEditString(new EObjectAdapter(element), (String)value));
+ }
+ });
+ return valid.getCode() == ParserEditStatus.EDITABLE ? null : valid.getMessage();
+ } catch (InterruptedException ie) {
+ ie.printStackTrace();
+ }
+ }
+
+ // shouldn't get here
+ return null;
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ public IContentAssistProcessor getCompletionProcessor() {
+ if(getParserElement() == null || getParser() == null) {
+ return null;
+ }
+ return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
+ }
+
+ /**
+ * @generated
+ */
+ public ParserOptions getParserOptions() {
+ return ParserOptions.NONE;
+ }
+
+ /**
+ * @generated
+ */
+ public IParser getParser() {
+ if(parser == null) {
+ parser = UMLParserProvider.getParser(UMLElementTypes.StateMachine_2063, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.diagram.composite.edit.parts.StateMachineCompositeNameEditPart.VISUAL_ID));
+ }
+ return parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected DirectEditManager getManager() {
+ if(manager == null) {
+ setManager(new MultilineLabelDirectEditManager(this, MultilineLabelDirectEditManager.getTextCellEditorClass(this), UMLEditPartFactory.getTextCellEditorLocator(this)));
+ }
+ return manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setManager(DirectEditManager manager) {
+ this.manager = manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit() {
+ getManager().show();
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit(Point eventLocation) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(eventLocation.getSWTPoint());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void performDirectEdit(char initialCharacter) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(initialCharacter);
+ } else {
+ performDirectEdit();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEditRequest(Request request) {
+
+ final Request theRequest = request;
+
+ if(IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
+ directEditionMode = getDirectEditionType();
+ }
+ switch(directEditionMode) {
+ case IDirectEdition.NO_DIRECT_EDITION:
+ // no direct edition mode => does nothing
+ return;
+ case IDirectEdition.EXTENDED_DIRECT_EDITOR:
+ updateExtendedEditorConfiguration();
+ if(configuration == null || configuration.getLanguage() == null) {
+ performDefaultDirectEditorEdit(theRequest);
+ } else {
+ configuration.preEditAction(resolveSemanticElement());
+ Dialog dialog = null;
+ if(configuration instanceof IPopupEditorConfiguration) {
+ IPopupEditorHelper helper = ((IPopupEditorConfiguration)configuration).createPopupEditorHelper(this);
+ helper.showEditor();
+ return;
+ } else if(configuration instanceof IAdvancedEditorConfiguration) {
+ dialog = ((IAdvancedEditorConfiguration)configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
+ } else if(configuration instanceof IDirectEditorConfiguration) {
+ dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), ((IDirectEditorConfiguration)configuration).getTextToEdit(resolveSemanticElement()), (IDirectEditorConfiguration)configuration);
+ } else {
+ return;
+ }
+ final Dialog finalDialog = dialog;
+
+ if(Window.OK == dialog.open()) {
+ TransactionalEditingDomain domain = getEditingDomain();
+ RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
+
+ @Override
+ protected void doExecute() {
+ configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog)finalDialog).getValue());
+
+ }
+ };
+ domain.getCommandStack().execute(command);
+ }
+ }
+ break;
+ case IDirectEdition.DEFAULT_DIRECT_EDITOR:
+
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ break;
+ default:
+ break;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshLabel();
+ refreshFont();
+ refreshFontColor();
+ refreshUnderline();
+ refreshStrikeThrough();
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshLabel() {
+ EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
+ if(maskLabelPolicy == null) {
+ setLabelTextHelper(getFigure(), getLabelText());
+ setLabelIconHelper(getFigure(), getLabelIcon());
+ }
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshUnderline() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextUnderline(style.isUnderline());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshStrikeThrough() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextStrikeThrough(style.isStrikeThrough());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshFont() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null) {
+ FontData fontData = new FontData(style.getFontName(), style.getFontHeight(), (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
+ setFont(fontData);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setFontColor(Color color) {
+ getFigure().setForegroundColor(color);
+ }
+
+ /**
+ * @generated
+ */
+ protected void addSemanticListeners() {
+ if(getParser() instanceof ISemanticParser) {
+ EObject element = resolveSemanticElement();
+ parserElements = ((ISemanticParser)getParser()).getSemanticElementsBeingParsed(element);
+ for(int i = 0; i < parserElements.size(); i++) {
+ addListenerFilter("SemanticModel" + i, this, (EObject)parserElements.get(i)); //$NON-NLS-1$
+ }
+ } else {
+ super.addSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeSemanticListeners() {
+ if(parserElements != null) {
+ for(int i = 0; i < parserElements.size(); i++) {
+ removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
+ }
+ } else {
+ super.removeSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected AccessibleEditPart getAccessibleEditPart() {
+ if(accessibleEP == null) {
+ accessibleEP = new AccessibleGraphicalEditPart() {
+
+ public void getName(AccessibleEvent e) {
+ e.result = getLabelTextHelper(getFigure());
+ }
+ };
+ }
+ return accessibleEP;
+ }
+
+ /**
+ * @generated
+ */
+ private View getFontStyleOwnerView() {
+ return (View)getModel();
+ }
+
+ /**
+ * Returns the kind of associated editor for direct edition.
+ *
+ * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition
+ * @generated
+ */
+ public int getDirectEditionType() {
+ if(checkExtendedEditor()) {
+ initExtendedEditorConfiguration();
+ return IDirectEdition.EXTENDED_DIRECT_EDITOR;
+ }
+ if(checkDefaultEdition()) {
+ return IDirectEdition.DEFAULT_DIRECT_EDITOR;
+ }
+
+ // not a named element. no specific editor => do nothing
+ return IDirectEdition.NO_DIRECT_EDITION;
+ }
+
+ /**
+ * Checks if an extended editor is present.
+ *
+ * @return <code>true</code> if an extended editor is present.
+ * @generated
+ */
+ protected boolean checkExtendedEditor() {
+ if(resolveSemanticElement() != null) {
+ return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ return false;
+ }
+
+ /**
+ * Checks if a default direct edition is available
+ *
+ * @return <code>true</code> if a default direct edition is available
+ * @generated
+ */
+ protected boolean checkDefaultEdition() {
+ return (getParser() != null);
+ }
+
+ /**
+ * Initializes the extended editor configuration
+ *
+ * @generated
+ */
+ protected void initExtendedEditorConfiguration() {
+ if(configuration == null) {
+ final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("")) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else {
+ configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ }
+ }
+
+ /**
+ * Updates the preference configuration
+ *
+ * @generated
+ */
+ protected void updateExtendedEditorConfiguration() {
+ String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("") && languagePreferred != configuration.getLanguage()) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else if(IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
+ configuration = null;
+ }
+ }
+
+ /**
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
+ protected void performDefaultDirectEditorEdit(final Request theRequest) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void addNotationalListeners() {
+ super.addNotationalListeners();
+ addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeNotationalListeners() {
+ super.removeNotationalListeners();
+ removeListenerFilter("PrimaryView"); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void handleNotificationEvent(Notification event) {
+ refreshLabel();
+ Object feature = event.getFeature();
+ if(NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
+ Integer c = (Integer)event.getNewValue();
+ setFontColor(DiagramColorRegistry.getInstance().getColor(c));
+ } else if(NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
+ refreshUnderline();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
+ refreshStrikeThrough();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
+ refreshFont();
+ } else {
+ if(getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
+ refreshLabel();
+ }
+ if(getParser() instanceof ISemanticParser) {
+ ISemanticParser modelParser = (ISemanticParser)getParser();
+ if(modelParser.areSemanticElementsAffected(null, event)) {
+ removeSemanticListeners();
+ if(resolveSemanticElement() != null) {
+ addSemanticListeners();
+ }
+ refreshLabel();
+ }
+ }
+ }
+
+ if(event.getNewValue() instanceof EAnnotation && VisualInformationPapyrusConstant.DISPLAY_NAMELABELICON.equals(((EAnnotation)event.getNewValue()).getSource())) {
+ refreshLabel();
+ }
+
+ super.handleNotificationEvent(event);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createFigure() {
+ // Parent should assign one using setLabel() method
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ private static final String ADD_PARENT_MODEL = "AddParentModel";
+
+ /**
+ * @generated
+ */
+ public void activate() {
+ super.activate();
+ addOwnerElementListeners();
+ }
+
+ /**
+ * @generated
+ */
+ protected void addOwnerElementListeners() {
+ addListenerFilter(ADD_PARENT_MODEL, this, ((View)getParent().getModel())); //$NON-NLS-1$
+
+ }
+
+ /**
+ * @generated
+ */
+ public void deactivate() {
+ removeOwnerElementListeners();
+ super.deactivate();
+
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeOwnerElementListeners() {
+ removeListenerFilter(ADD_PARENT_MODEL);
+
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/StateMachineCompositeNameEditPartCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/StateMachineCompositeNameEditPartCN.java
new file mode 100644
index 00000000000..70eac75e267
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/StateMachineCompositeNameEditPartCN.java
@@ -0,0 +1,791 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EAnnotation;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.emf.transaction.RunnableWithResult;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.AccessibleEditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.requests.DirectEditRequest;
+import org.eclipse.gef.tools.DirectEditManager;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.CompartmentEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
+import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
+import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
+import org.eclipse.gmf.runtime.notation.FontStyle;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
+import org.eclipse.jface.viewers.ICellEditorValidator;
+import org.eclipse.jface.window.Window;
+import org.eclipse.papyrus.diagram.common.directedit.MultilineLabelDirectEditManager;
+import org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition;
+import org.eclipse.papyrus.diagram.common.editpolicies.IMaskManagedLabelEditPolicy;
+import org.eclipse.papyrus.diagram.common.figure.node.ILabelFigure;
+import org.eclipse.papyrus.diagram.common.util.DiagramEditPartsUtil;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLTextSelectionEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.diagram.composite.providers.UMLParserProvider;
+import org.eclipse.papyrus.extensionpoints.editors.Activator;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
+import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
+import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
+import org.eclipse.papyrus.umlutils.ui.VisualInformationPapyrusConstant;
+import org.eclipse.papyrus.umlutils.ui.helper.NameLabelIconHelper;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.AccessibleEvent;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.FontData;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.ui.PlatformUI;
+
+/**
+ * @generated
+ */
+public class StateMachineCompositeNameEditPartCN extends CompartmentEditPart implements ITextAwareEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 5131;
+
+ /**
+ * @generated
+ */
+ private DirectEditManager manager;
+
+ /**
+ * @generated
+ */
+ private IParser parser;
+
+ /**
+ * @generated
+ */
+ private List<?> parserElements;
+
+ /**
+ * @generated
+ */
+ private String defaultText;
+
+ /**
+ * direct edition mode (default, undefined, registered editor, etc.)
+ *
+ * @generated
+ */
+ protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
+
+ /**
+ * configuration from a registered edit dialog
+ *
+ * @generated
+ */
+ protected IDirectEditorConfiguration configuration;
+
+ /**
+ * @generated
+ */
+ public StateMachineCompositeNameEditPartCN(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
+ installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new CompositeStructureDiagramEditPart.NodeLabelDragPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelTextHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getText();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getText();
+ } else {
+ return ((Label)figure).getText();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelTextHelper(IFigure figure, String text) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setText(text);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setText(text);
+ } else {
+ ((Label)figure).setText(text);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIconHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getIcon();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getIcon();
+ } else {
+ return ((Label)figure).getIcon();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelIconHelper(IFigure figure, Image icon) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setIcon(icon);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setIcon(icon);
+ } else {
+ ((Label)figure).setIcon(icon);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabel(WrappingLabel figure) {
+ unregisterVisuals();
+ setFigure(figure);
+ defaultText = getLabelTextHelper(figure);
+ registerVisuals();
+ refreshVisuals();
+ }
+
+ /**
+ * @generated
+ */
+ protected List getModelChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject getParserElement() {
+ return resolveSemanticElement();
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIcon() {
+ EObject parserElement = getParserElement();
+ if(parserElement == null) {
+ return null;
+ }
+
+ List<View> views = DiagramEditPartsUtil.findViews(parserElement, getViewer());
+ for(View view : views) {
+ if(NameLabelIconHelper.showLabelIcon(view)) {
+ return UMLElementTypes.getImage(parserElement.eClass());
+ }
+ }
+ return null;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelText() {
+ String text = null;
+ EObject parserElement = getParserElement();
+ if(parserElement != null && getParser() != null) {
+ text = getParser().getPrintString(new EObjectAdapter(parserElement), getParserOptions().intValue());
+ }
+ if(text == null || text.length() == 0) {
+ text = defaultText;
+ }
+ return text;
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabelText(String text) {
+ setLabelTextHelper(getFigure(), text);
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public String getEditText() {
+ if(getParserElement() == null || getParser() == null) {
+ return ""; //$NON-NLS-1$
+ }
+ return getParser().getEditString(new EObjectAdapter(getParserElement()), getParserOptions().intValue());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean isEditable() {
+ return getParser() != null;
+ }
+
+ /**
+ * @generated
+ */
+ public ICellEditorValidator getEditTextValidator() {
+ return new ICellEditorValidator() {
+
+ public String isValid(final Object value) {
+ if(value instanceof String) {
+ final EObject element = getParserElement();
+ final IParser parser = getParser();
+ try {
+ IParserEditStatus valid = (IParserEditStatus)getEditingDomain().runExclusive(new RunnableWithResult.Impl() {
+
+ public void run() {
+ setResult(parser.isValidEditString(new EObjectAdapter(element), (String)value));
+ }
+ });
+ return valid.getCode() == ParserEditStatus.EDITABLE ? null : valid.getMessage();
+ } catch (InterruptedException ie) {
+ ie.printStackTrace();
+ }
+ }
+
+ // shouldn't get here
+ return null;
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ public IContentAssistProcessor getCompletionProcessor() {
+ if(getParserElement() == null || getParser() == null) {
+ return null;
+ }
+ return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
+ }
+
+ /**
+ * @generated
+ */
+ public ParserOptions getParserOptions() {
+ return ParserOptions.NONE;
+ }
+
+ /**
+ * @generated
+ */
+ public IParser getParser() {
+ if(parser == null) {
+ parser = UMLParserProvider.getParser(UMLElementTypes.StateMachine_3075, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.diagram.composite.edit.parts.StateMachineCompositeNameEditPartCN.VISUAL_ID));
+ }
+ return parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected DirectEditManager getManager() {
+ if(manager == null) {
+ setManager(new MultilineLabelDirectEditManager(this, MultilineLabelDirectEditManager.getTextCellEditorClass(this), UMLEditPartFactory.getTextCellEditorLocator(this)));
+ }
+ return manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setManager(DirectEditManager manager) {
+ this.manager = manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit() {
+ getManager().show();
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit(Point eventLocation) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(eventLocation.getSWTPoint());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void performDirectEdit(char initialCharacter) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(initialCharacter);
+ } else {
+ performDirectEdit();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEditRequest(Request request) {
+
+ final Request theRequest = request;
+
+ if(IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
+ directEditionMode = getDirectEditionType();
+ }
+ switch(directEditionMode) {
+ case IDirectEdition.NO_DIRECT_EDITION:
+ // no direct edition mode => does nothing
+ return;
+ case IDirectEdition.EXTENDED_DIRECT_EDITOR:
+ updateExtendedEditorConfiguration();
+ if(configuration == null || configuration.getLanguage() == null) {
+ performDefaultDirectEditorEdit(theRequest);
+ } else {
+ configuration.preEditAction(resolveSemanticElement());
+ Dialog dialog = null;
+ if(configuration instanceof IPopupEditorConfiguration) {
+ IPopupEditorHelper helper = ((IPopupEditorConfiguration)configuration).createPopupEditorHelper(this);
+ helper.showEditor();
+ return;
+ } else if(configuration instanceof IAdvancedEditorConfiguration) {
+ dialog = ((IAdvancedEditorConfiguration)configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
+ } else if(configuration instanceof IDirectEditorConfiguration) {
+ dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), ((IDirectEditorConfiguration)configuration).getTextToEdit(resolveSemanticElement()), (IDirectEditorConfiguration)configuration);
+ } else {
+ return;
+ }
+ final Dialog finalDialog = dialog;
+
+ if(Window.OK == dialog.open()) {
+ TransactionalEditingDomain domain = getEditingDomain();
+ RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
+
+ @Override
+ protected void doExecute() {
+ configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog)finalDialog).getValue());
+
+ }
+ };
+ domain.getCommandStack().execute(command);
+ }
+ }
+ break;
+ case IDirectEdition.DEFAULT_DIRECT_EDITOR:
+
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ break;
+ default:
+ break;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshLabel();
+ refreshFont();
+ refreshFontColor();
+ refreshUnderline();
+ refreshStrikeThrough();
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshLabel() {
+ EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
+ if(maskLabelPolicy == null) {
+ setLabelTextHelper(getFigure(), getLabelText());
+ setLabelIconHelper(getFigure(), getLabelIcon());
+ }
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshUnderline() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextUnderline(style.isUnderline());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshStrikeThrough() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextStrikeThrough(style.isStrikeThrough());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshFont() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null) {
+ FontData fontData = new FontData(style.getFontName(), style.getFontHeight(), (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
+ setFont(fontData);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setFontColor(Color color) {
+ getFigure().setForegroundColor(color);
+ }
+
+ /**
+ * @generated
+ */
+ protected void addSemanticListeners() {
+ if(getParser() instanceof ISemanticParser) {
+ EObject element = resolveSemanticElement();
+ parserElements = ((ISemanticParser)getParser()).getSemanticElementsBeingParsed(element);
+ for(int i = 0; i < parserElements.size(); i++) {
+ addListenerFilter("SemanticModel" + i, this, (EObject)parserElements.get(i)); //$NON-NLS-1$
+ }
+ } else {
+ super.addSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeSemanticListeners() {
+ if(parserElements != null) {
+ for(int i = 0; i < parserElements.size(); i++) {
+ removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
+ }
+ } else {
+ super.removeSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected AccessibleEditPart getAccessibleEditPart() {
+ if(accessibleEP == null) {
+ accessibleEP = new AccessibleGraphicalEditPart() {
+
+ public void getName(AccessibleEvent e) {
+ e.result = getLabelTextHelper(getFigure());
+ }
+ };
+ }
+ return accessibleEP;
+ }
+
+ /**
+ * @generated
+ */
+ private View getFontStyleOwnerView() {
+ return (View)getModel();
+ }
+
+ /**
+ * Returns the kind of associated editor for direct edition.
+ *
+ * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition
+ * @generated
+ */
+ public int getDirectEditionType() {
+ if(checkExtendedEditor()) {
+ initExtendedEditorConfiguration();
+ return IDirectEdition.EXTENDED_DIRECT_EDITOR;
+ }
+ if(checkDefaultEdition()) {
+ return IDirectEdition.DEFAULT_DIRECT_EDITOR;
+ }
+
+ // not a named element. no specific editor => do nothing
+ return IDirectEdition.NO_DIRECT_EDITION;
+ }
+
+ /**
+ * Checks if an extended editor is present.
+ *
+ * @return <code>true</code> if an extended editor is present.
+ * @generated
+ */
+ protected boolean checkExtendedEditor() {
+ if(resolveSemanticElement() != null) {
+ return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ return false;
+ }
+
+ /**
+ * Checks if a default direct edition is available
+ *
+ * @return <code>true</code> if a default direct edition is available
+ * @generated
+ */
+ protected boolean checkDefaultEdition() {
+ return (getParser() != null);
+ }
+
+ /**
+ * Initializes the extended editor configuration
+ *
+ * @generated
+ */
+ protected void initExtendedEditorConfiguration() {
+ if(configuration == null) {
+ final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("")) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else {
+ configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ }
+ }
+
+ /**
+ * Updates the preference configuration
+ *
+ * @generated
+ */
+ protected void updateExtendedEditorConfiguration() {
+ String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("") && languagePreferred != configuration.getLanguage()) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else if(IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
+ configuration = null;
+ }
+ }
+
+ /**
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
+ protected void performDefaultDirectEditorEdit(final Request theRequest) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void addNotationalListeners() {
+ super.addNotationalListeners();
+ addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeNotationalListeners() {
+ super.removeNotationalListeners();
+ removeListenerFilter("PrimaryView"); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void handleNotificationEvent(Notification event) {
+ refreshLabel();
+ Object feature = event.getFeature();
+ if(NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
+ Integer c = (Integer)event.getNewValue();
+ setFontColor(DiagramColorRegistry.getInstance().getColor(c));
+ } else if(NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
+ refreshUnderline();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
+ refreshStrikeThrough();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
+ refreshFont();
+ } else {
+ if(getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
+ refreshLabel();
+ }
+ if(getParser() instanceof ISemanticParser) {
+ ISemanticParser modelParser = (ISemanticParser)getParser();
+ if(modelParser.areSemanticElementsAffected(null, event)) {
+ removeSemanticListeners();
+ if(resolveSemanticElement() != null) {
+ addSemanticListeners();
+ }
+ refreshLabel();
+ }
+ }
+ }
+
+ if(event.getNewValue() instanceof EAnnotation && VisualInformationPapyrusConstant.DISPLAY_NAMELABELICON.equals(((EAnnotation)event.getNewValue()).getSource())) {
+ refreshLabel();
+ }
+
+ super.handleNotificationEvent(event);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createFigure() {
+ // Parent should assign one using setLabel() method
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ private static final String ADD_PARENT_MODEL = "AddParentModel";
+
+ /**
+ * @generated
+ */
+ public void activate() {
+ super.activate();
+ addOwnerElementListeners();
+ }
+
+ /**
+ * @generated
+ */
+ protected void addOwnerElementListeners() {
+ addListenerFilter(ADD_PARENT_MODEL, this, ((View)getParent().getModel())); //$NON-NLS-1$
+
+ }
+
+ /**
+ * @generated
+ */
+ public void deactivate() {
+ removeOwnerElementListeners();
+ super.deactivate();
+
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeOwnerElementListeners() {
+ removeListenerFilter(ADD_PARENT_MODEL);
+
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/StateMachineEditPartCLN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/StateMachineEditPartCLN.java
new file mode 100644
index 00000000000..c6899d7e9d0
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/StateMachineEditPartCLN.java
@@ -0,0 +1,781 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EAnnotation;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.emf.transaction.RunnableWithResult;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.AccessibleEditPart;
+import org.eclipse.gef.DragTracker;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.requests.DirectEditRequest;
+import org.eclipse.gef.requests.SelectionRequest;
+import org.eclipse.gef.tools.DirectEditManager;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.CompartmentEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IPrimaryEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.ListItemComponentEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
+import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
+import org.eclipse.gmf.runtime.diagram.ui.tools.DragEditPartsTrackerEx;
+import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
+import org.eclipse.gmf.runtime.notation.FontStyle;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
+import org.eclipse.jface.viewers.ICellEditorValidator;
+import org.eclipse.jface.window.Window;
+import org.eclipse.papyrus.diagram.common.directedit.MultilineLabelDirectEditManager;
+import org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition;
+import org.eclipse.papyrus.diagram.common.editpolicies.IMaskManagedLabelEditPolicy;
+import org.eclipse.papyrus.diagram.common.figure.node.ILabelFigure;
+import org.eclipse.papyrus.diagram.common.util.DiagramEditPartsUtil;
+import org.eclipse.papyrus.diagram.composite.edit.policies.StateMachineItemSemanticEditPolicyCLN;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLTextNonResizableEditPolicy;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLTextSelectionEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.diagram.composite.providers.UMLParserProvider;
+import org.eclipse.papyrus.extensionpoints.editors.Activator;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
+import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
+import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
+import org.eclipse.papyrus.umlutils.ui.VisualInformationPapyrusConstant;
+import org.eclipse.papyrus.umlutils.ui.helper.NameLabelIconHelper;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.AccessibleEvent;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.FontData;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.ui.PlatformUI;
+
+/**
+ * @generated
+ */
+public class StateMachineEditPartCLN
+
+extends CompartmentEditPart
+
+implements ITextAwareEditPart, IPrimaryEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 3106;
+
+ /**
+ * @generated
+ */
+ private DirectEditManager manager;
+
+ /**
+ * @generated
+ */
+ private IParser parser;
+
+ /**
+ * @generated
+ */
+ private List<?> parserElements;
+
+ /**
+ * @generated
+ */
+ private String defaultText;
+
+ /**
+ * direct edition mode (default, undefined, registered editor, etc.)
+ *
+ * @generated
+ */
+ protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
+
+ /**
+ * configuration from a registered edit dialog
+ *
+ * @generated
+ */
+ protected IDirectEditorConfiguration configuration;
+
+ /**
+ * @generated
+ */
+ public StateMachineEditPartCLN(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ public DragTracker getDragTracker(Request request) {
+ if(request instanceof SelectionRequest && ((SelectionRequest)request).getLastButtonPressed() == 3) {
+ return null;
+ }
+ return new DragEditPartsTrackerEx(this);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new StateMachineItemSemanticEditPolicyCLN());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new UMLTextNonResizableEditPolicy());
+ installEditPolicy(EditPolicy.COMPONENT_ROLE, new ListItemComponentEditPolicy());
+ installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelTextHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getText();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getText();
+ } else {
+ return ((Label)figure).getText();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelTextHelper(IFigure figure, String text) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setText(text);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setText(text);
+ } else {
+ ((Label)figure).setText(text);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIconHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getIcon();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getIcon();
+ } else {
+ return ((Label)figure).getIcon();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelIconHelper(IFigure figure, Image icon) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setIcon(icon);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setIcon(icon);
+ } else {
+ ((Label)figure).setIcon(icon);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabel(IFigure figure) {
+ unregisterVisuals();
+ setFigure(figure);
+ defaultText = getLabelTextHelper(figure);
+ registerVisuals();
+ refreshVisuals();
+ }
+
+ /**
+ * @generated
+ */
+ protected List getModelChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject getParserElement() {
+ return resolveSemanticElement();
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIcon() {
+ EObject parserElement = getParserElement();
+ if(parserElement == null) {
+ return null;
+ }
+
+ List<View> views = DiagramEditPartsUtil.findViews(parserElement, getViewer());
+ for(View view : views) {
+ if(NameLabelIconHelper.showLabelIcon(view)) {
+ return UMLElementTypes.getImage(parserElement.eClass());
+ }
+ }
+ return null;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelText() {
+ String text = null;
+ EObject parserElement = getParserElement();
+ if(parserElement != null && getParser() != null) {
+ text = getParser().getPrintString(new EObjectAdapter(parserElement), getParserOptions().intValue());
+ }
+ if(text == null || text.length() == 0) {
+ text = defaultText;
+ }
+ return text;
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabelText(String text) {
+ setLabelTextHelper(getFigure(), text);
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public String getEditText() {
+ if(getParserElement() == null || getParser() == null) {
+ return ""; //$NON-NLS-1$
+ }
+ return getParser().getEditString(new EObjectAdapter(getParserElement()), getParserOptions().intValue());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean isEditable() {
+ return getParser() != null;
+ }
+
+ /**
+ * @generated
+ */
+ public ICellEditorValidator getEditTextValidator() {
+ return new ICellEditorValidator() {
+
+ public String isValid(final Object value) {
+ if(value instanceof String) {
+ final EObject element = getParserElement();
+ final IParser parser = getParser();
+ try {
+ IParserEditStatus valid = (IParserEditStatus)getEditingDomain().runExclusive(new RunnableWithResult.Impl() {
+
+ public void run() {
+ setResult(parser.isValidEditString(new EObjectAdapter(element), (String)value));
+ }
+ });
+ return valid.getCode() == ParserEditStatus.EDITABLE ? null : valid.getMessage();
+ } catch (InterruptedException ie) {
+ ie.printStackTrace();
+ }
+ }
+
+ // shouldn't get here
+ return null;
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ public IContentAssistProcessor getCompletionProcessor() {
+ if(getParserElement() == null || getParser() == null) {
+ return null;
+ }
+ return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
+ }
+
+ /**
+ * @generated
+ */
+ public ParserOptions getParserOptions() {
+ return ParserOptions.NONE;
+ }
+
+ /**
+ * @generated
+ */
+ public IParser getParser() {
+ if(parser == null) {
+ parser = UMLParserProvider.getParser(UMLElementTypes.StateMachine_3106, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.diagram.composite.edit.parts.StateMachineEditPartCLN.VISUAL_ID));
+ }
+ return parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected DirectEditManager getManager() {
+ if(manager == null) {
+ setManager(new MultilineLabelDirectEditManager(this, MultilineLabelDirectEditManager.getTextCellEditorClass(this), UMLEditPartFactory.getTextCellEditorLocator(this)));
+ }
+ return manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setManager(DirectEditManager manager) {
+ this.manager = manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit() {
+ getManager().show();
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit(Point eventLocation) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(eventLocation.getSWTPoint());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void performDirectEdit(char initialCharacter) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(initialCharacter);
+ } else {
+ performDirectEdit();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEditRequest(Request request) {
+
+ final Request theRequest = request;
+
+ if(IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
+ directEditionMode = getDirectEditionType();
+ }
+ switch(directEditionMode) {
+ case IDirectEdition.NO_DIRECT_EDITION:
+ // no direct edition mode => does nothing
+ return;
+ case IDirectEdition.EXTENDED_DIRECT_EDITOR:
+ updateExtendedEditorConfiguration();
+ if(configuration == null || configuration.getLanguage() == null) {
+ performDefaultDirectEditorEdit(theRequest);
+ } else {
+ configuration.preEditAction(resolveSemanticElement());
+ Dialog dialog = null;
+ if(configuration instanceof IPopupEditorConfiguration) {
+ IPopupEditorHelper helper = ((IPopupEditorConfiguration)configuration).createPopupEditorHelper(this);
+ helper.showEditor();
+ return;
+ } else if(configuration instanceof IAdvancedEditorConfiguration) {
+ dialog = ((IAdvancedEditorConfiguration)configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
+ } else if(configuration instanceof IDirectEditorConfiguration) {
+ dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), ((IDirectEditorConfiguration)configuration).getTextToEdit(resolveSemanticElement()), (IDirectEditorConfiguration)configuration);
+ } else {
+ return;
+ }
+ final Dialog finalDialog = dialog;
+
+ if(Window.OK == dialog.open()) {
+ TransactionalEditingDomain domain = getEditingDomain();
+ RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
+
+ @Override
+ protected void doExecute() {
+ configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog)finalDialog).getValue());
+
+ }
+ };
+ domain.getCommandStack().execute(command);
+ }
+ }
+ break;
+ case IDirectEdition.DEFAULT_DIRECT_EDITOR:
+
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ break;
+ default:
+ break;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshLabel();
+ refreshFont();
+ refreshFontColor();
+ refreshUnderline();
+ refreshStrikeThrough();
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshLabel() {
+ EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
+ if(maskLabelPolicy == null) {
+ setLabelTextHelper(getFigure(), getLabelText());
+ setLabelIconHelper(getFigure(), getLabelIcon());
+ }
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshUnderline() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextUnderline(style.isUnderline());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshStrikeThrough() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextStrikeThrough(style.isStrikeThrough());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshFont() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null) {
+ FontData fontData = new FontData(style.getFontName(), style.getFontHeight(), (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
+ setFont(fontData);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setFontColor(Color color) {
+ getFigure().setForegroundColor(color);
+ }
+
+ /**
+ * @generated
+ */
+ protected void addSemanticListeners() {
+ if(getParser() instanceof ISemanticParser) {
+ EObject element = resolveSemanticElement();
+ parserElements = ((ISemanticParser)getParser()).getSemanticElementsBeingParsed(element);
+ for(int i = 0; i < parserElements.size(); i++) {
+ addListenerFilter("SemanticModel" + i, this, (EObject)parserElements.get(i)); //$NON-NLS-1$
+ }
+ } else {
+ super.addSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeSemanticListeners() {
+ if(parserElements != null) {
+ for(int i = 0; i < parserElements.size(); i++) {
+ removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
+ }
+ } else {
+ super.removeSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected AccessibleEditPart getAccessibleEditPart() {
+ if(accessibleEP == null) {
+ accessibleEP = new AccessibleGraphicalEditPart() {
+
+ public void getName(AccessibleEvent e) {
+ e.result = getLabelTextHelper(getFigure());
+ }
+ };
+ }
+ return accessibleEP;
+ }
+
+ /**
+ * @generated
+ */
+ private View getFontStyleOwnerView() {
+ return getPrimaryView();
+ }
+
+ /**
+ * Returns the kind of associated editor for direct edition.
+ *
+ * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition
+ * @generated
+ */
+ public int getDirectEditionType() {
+ if(checkExtendedEditor()) {
+ initExtendedEditorConfiguration();
+ return IDirectEdition.EXTENDED_DIRECT_EDITOR;
+ }
+ if(checkDefaultEdition()) {
+ return IDirectEdition.DEFAULT_DIRECT_EDITOR;
+ }
+
+ // not a named element. no specific editor => do nothing
+ return IDirectEdition.NO_DIRECT_EDITION;
+ }
+
+ /**
+ * Checks if an extended editor is present.
+ *
+ * @return <code>true</code> if an extended editor is present.
+ * @generated
+ */
+ protected boolean checkExtendedEditor() {
+ if(resolveSemanticElement() != null) {
+ return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ return false;
+ }
+
+ /**
+ * Checks if a default direct edition is available
+ *
+ * @return <code>true</code> if a default direct edition is available
+ * @generated
+ */
+ protected boolean checkDefaultEdition() {
+ return (getParser() != null);
+ }
+
+ /**
+ * Initializes the extended editor configuration
+ *
+ * @generated
+ */
+ protected void initExtendedEditorConfiguration() {
+ if(configuration == null) {
+ final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("")) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else {
+ configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ }
+ }
+
+ /**
+ * Updates the preference configuration
+ *
+ * @generated
+ */
+ protected void updateExtendedEditorConfiguration() {
+ String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("") && languagePreferred != configuration.getLanguage()) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else if(IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
+ configuration = null;
+ }
+ }
+
+ /**
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
+ protected void performDefaultDirectEditorEdit(final Request theRequest) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void addNotationalListeners() {
+ super.addNotationalListeners();
+ addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeNotationalListeners() {
+ super.removeNotationalListeners();
+ removeListenerFilter("PrimaryView"); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void handleNotificationEvent(Notification event) {
+ Object feature = event.getFeature();
+ if(NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
+ Integer c = (Integer)event.getNewValue();
+ setFontColor(DiagramColorRegistry.getInstance().getColor(c));
+ } else if(NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
+ refreshUnderline();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
+ refreshStrikeThrough();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
+ refreshFont();
+ } else {
+ if(getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
+ refreshLabel();
+ }
+ if(getParser() instanceof ISemanticParser) {
+ ISemanticParser modelParser = (ISemanticParser)getParser();
+ if(modelParser.areSemanticElementsAffected(null, event)) {
+ removeSemanticListeners();
+ if(resolveSemanticElement() != null) {
+ addSemanticListeners();
+ }
+ refreshLabel();
+ }
+ }
+ }
+ if(event.getNewValue() instanceof EAnnotation && VisualInformationPapyrusConstant.DISPLAY_NAMELABELICON.equals(((EAnnotation)event.getNewValue()).getSource())) {
+ refreshLabel();
+ }
+ super.handleNotificationEvent(event);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createFigure() {
+ IFigure label = createFigurePrim();
+ defaultText = getLabelTextHelper(label);
+ return label;
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createFigurePrim() {
+ return new WrappingLabel();
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/StringExpressionEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/StringExpressionEditPart.java
new file mode 100644
index 00000000000..e762cd90436
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/StringExpressionEditPart.java
@@ -0,0 +1,5167 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.ArrayList;
+import java.util.LinkedList;
+import java.util.List;
+
+import org.eclipse.draw2d.ColorConstants;
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.RectangleFigure;
+import org.eclipse.draw2d.Shape;
+import org.eclipse.draw2d.StackLayout;
+import org.eclipse.emf.ecore.EStructuralFeature;
+import org.eclipse.gef.EditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.editpolicies.LayoutEditPolicy;
+import org.eclipse.gef.editpolicies.NonResizableEditPolicy;
+import org.eclipse.gef.requests.CreateRequest;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ShapeNodeEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.FigureUtilities;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.gef.ui.figures.DefaultSizeNodeFigure;
+import org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.jface.preference.PreferenceConverter;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.HyperLinkPopupBarEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.QualifiedNameDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.helper.PreferenceInitializerForElementHelper;
+import org.eclipse.papyrus.diagram.composite.edit.policies.StringExpressionItemSemanticEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorPlugin;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter;
+import org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.Font;
+import org.eclipse.swt.widgets.Display;
+
+/**
+ * @generated
+ */
+public class StringExpressionEditPart extends
+
+ShapeNodeEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 2100;
+
+ /**
+ * @generated
+ */
+ protected IFigure contentPane;
+
+ /**
+ * @generated
+ */
+ protected IFigure primaryShape;
+
+ /**
+ * @generated
+ */
+ public StringExpressionEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new StringExpressionItemSemanticEditPolicy());
+ installEditPolicy(EditPolicy.LAYOUT_ROLE, createLayoutEditPolicy());
+ installEditPolicy(QualifiedNameDisplayEditPolicy.QUALIFIED_NAME_POLICY, new QualifiedNameDisplayEditPolicy());
+ installEditPolicy(AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeNodeLabelDisplayEditPolicy());
+ installEditPolicy(EditPolicyRoles.POPUPBAR_ROLE, new HyperLinkPopupBarEditPolicy());
+ // XXX need an SCR to runtime to have another abstract superclass that would let children add reasonable editpolicies
+ // removeEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CONNECTION_HANDLES_ROLE);
+ }
+
+ /**
+ * @generated
+ */
+ protected LayoutEditPolicy createLayoutEditPolicy() {
+ org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy lep = new org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy() {
+
+ protected EditPolicy createChildEditPolicy(EditPart child) {
+ EditPolicy result = child.getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(result == null) {
+ result = new NonResizableEditPolicy();
+ }
+ return result;
+ }
+
+ protected Command getMoveChildrenCommand(Request request) {
+ return null;
+ }
+
+ protected Command getCreateCommand(CreateRequest request) {
+ return null;
+ }
+ };
+ return lep;
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createNodeShape() {
+ return primaryShape = new NamedElementDescriptor();
+ }
+
+ /**
+ * @generated
+ */
+ public NamedElementDescriptor getPrimaryShape() {
+ return (NamedElementDescriptor)primaryShape;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean addFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof StringExpressionNameEditPart) {
+ ((StringExpressionNameEditPart)childEditPart).setLabel(getPrimaryShape().getNamedElementNameLabel());
+ return true;
+ }
+
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean removeFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof StringExpressionNameEditPart) {
+ return true;
+ }
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected void addChildVisual(EditPart childEditPart, int index) {
+ if(addFixedChild(childEditPart)) {
+ return;
+ }
+ super.addChildVisual(childEditPart, -1);
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeChildVisual(EditPart childEditPart) {
+ if(removeFixedChild(childEditPart)) {
+ return;
+ }
+ super.removeChildVisual(childEditPart);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure getContentPaneFor(IGraphicalEditPart editPart) {
+ return getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ protected NodeFigure createNodePlate() {
+ String prefElementId = "StringExpression";
+ IPreferenceStore store = UMLDiagramEditorPlugin.getInstance().getPreferenceStore();
+ String preferenceConstantWitdh = PreferenceInitializerForElementHelper.getpreferenceKey(getNotationView(), prefElementId, PreferenceConstantHelper.WIDTH);
+ String preferenceConstantHeight = PreferenceInitializerForElementHelper.getpreferenceKey(getNotationView(), prefElementId, PreferenceConstantHelper.HEIGHT);
+ DefaultSizeNodeFigure result = new DefaultSizeNodeFigure(store.getInt(preferenceConstantWitdh), store.getInt(preferenceConstantHeight));
+
+ return result;
+ }
+
+ /**
+ * Creates figure for this edit part.
+ *
+ * Body of this method does not depend on settings in generation model
+ * so you may safely remove <i>generated</i> tag and modify it.
+ *
+ * @generated
+ */
+ protected NodeFigure createNodeFigure() {
+ NodeFigure figure = createNodePlate();
+ figure.setLayoutManager(new StackLayout());
+ IFigure shape = createNodeShape();
+ figure.add(shape);
+ contentPane = setupContentPane(shape);
+ return figure;
+ }
+
+ /**
+ * Default implementation treats passed figure as content pane.
+ * Respects layout one may have set for generated figure.
+ *
+ * @param nodeShape
+ * instance of generated figure class
+ * @generated
+ */
+ protected IFigure setupContentPane(IFigure nodeShape) {
+ if(nodeShape.getLayoutManager() == null) {
+ ConstrainedToolbarLayout layout = new ConstrainedToolbarLayout();
+ layout.setSpacing(5);
+ nodeShape.setLayoutManager(layout);
+ }
+ return nodeShape; // use nodeShape itself as contentPane
+ }
+
+ /**
+ * @generated
+ */
+ public IFigure getContentPane() {
+ if(contentPane != null) {
+ return contentPane;
+ }
+ return super.getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ protected void setForegroundColor(Color color) {
+ if(primaryShape != null) {
+ primaryShape.setForegroundColor(color);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLineWidth(int width) {
+ if(primaryShape instanceof Shape) {
+ ((Shape)primaryShape).setLineWidth(width);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLineType(int style) {
+ if(primaryShape instanceof Shape) {
+ ((Shape)primaryShape).setLineStyle(style);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public EditPart getPrimaryChildEditPart() {
+ return getChildBySemanticHint(UMLVisualIDRegistry.getType(StringExpressionNameEditPart.VISUAL_ID));
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnSource() {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(11);
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ types.add(UMLElementTypes.Substitution_4011);
+ types.add(UMLElementTypes.Realization_4006);
+ types.add(UMLElementTypes.Manifestation_4012);
+ types.add(UMLElementTypes.Abstraction_4007);
+ types.add(UMLElementTypes.Usage_4008);
+ types.add(UMLElementTypes.Deployment_4009);
+ types.add(UMLElementTypes.Dependency_4017);
+ types.add(UMLElementTypes.Dependency_4010);
+ types.add(UMLElementTypes.InformationFlow_4021);
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnSourceAndTarget(IGraphicalEditPart targetEditPart) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.StringExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.StringExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.StringExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.StringExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.StringExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.StringExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.StringExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.StringExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.StringExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.StringExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.StringExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMATypesForTarget(IElementType relationshipType) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(relationshipType == UMLElementTypes.ComponentRealization_4004) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InterfaceRealization_4005) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Substitution_4011) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Realization_4006) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Manifestation_4012) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Abstraction_4007) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Usage_4008) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Deployment_4009) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4017) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4010) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InformationFlow_4021) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnTarget() {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(15);
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ types.add(UMLElementTypes.Substitution_4011);
+ types.add(UMLElementTypes.Realization_4006);
+ types.add(UMLElementTypes.Manifestation_4012);
+ types.add(UMLElementTypes.Abstraction_4007);
+ types.add(UMLElementTypes.Usage_4008);
+ types.add(UMLElementTypes.Deployment_4009);
+ types.add(UMLElementTypes.Dependency_4017);
+ types.add(UMLElementTypes.Dependency_4010);
+ types.add(UMLElementTypes.TimeObservationEvent_4018);
+ types.add(UMLElementTypes.DurationObservationEvent_4019);
+ types.add(UMLElementTypes.InformationFlow_4021);
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMATypesForSource(IElementType relationshipType) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(relationshipType == UMLElementTypes.CommentAnnotatedElement_4002) {
+ types.add(UMLElementTypes.Comment_2109);
+ types.add(UMLElementTypes.Comment_3097);
+ } else if(relationshipType == UMLElementTypes.ConstraintConstrainedElement_4003) {
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.ComponentRealization_4004) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InterfaceRealization_4005) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Substitution_4011) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Realization_4006) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Manifestation_4012) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Abstraction_4007) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Usage_4008) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Deployment_4009) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4017) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4010) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.TimeObservationEvent_4018) {
+ types.add(UMLElementTypes.TimeObservation_2094);
+ } else if(relationshipType == UMLElementTypes.DurationObservationEvent_4019) {
+ types.add(UMLElementTypes.DurationObservation_2093);
+ } else if(relationshipType == UMLElementTypes.InformationFlow_4021) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public class NamedElementDescriptor extends RectangleFigure {
+
+ /**
+ * @generated
+ */
+ private WrappingLabel fNamedElementNameLabel;
+
+ /**
+ * @generated
+ */
+ public NamedElementDescriptor() {
+ this.setLineWidth(1);
+ this.setForegroundColor(ColorConstants.black);
+ createContents();
+ }
+
+ /**
+ * @generated
+ */
+ private void createContents() {
+
+ fNamedElementNameLabel = new WrappingLabel();
+ fNamedElementNameLabel.setText("");
+ fNamedElementNameLabel.setForegroundColor(ColorConstants.black);
+
+ fNamedElementNameLabel.setFont(FNAMEDELEMENTNAMELABEL_FONT);
+
+ this.add(fNamedElementNameLabel);
+
+ }
+
+ /**
+ * @generated
+ */
+ private boolean myUseLocalCoordinates = false;
+
+ /**
+ * @generated
+ */
+ protected boolean useLocalCoordinates() {
+ return myUseLocalCoordinates;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setUseLocalCoordinates(boolean useLocalCoordinates) {
+ myUseLocalCoordinates = useLocalCoordinates;
+ }
+
+ /**
+ * @generated
+ */
+ public WrappingLabel getNamedElementNameLabel() {
+ return fNamedElementNameLabel;
+ }
+
+ }
+
+ /**
+ * @generated
+ */
+ static final Font FNAMEDELEMENTNAMELABEL_FONT = new Font(Display.getCurrent(), "Arial", 10, SWT.BOLD);
+
+ /**
+ * @generated
+ */
+ @Override
+ public Object getPreferredValue(EStructuralFeature feature) {
+ IPreferenceStore preferenceStore = (IPreferenceStore)getDiagramPreferencesHint().getPreferenceStore();
+ Object result = null;
+
+ if(feature == NotationPackage.eINSTANCE.getLineStyle_LineColor() || feature == NotationPackage.eINSTANCE.getFontStyle_FontColor() || feature == NotationPackage.eINSTANCE.getFillStyle_FillColor()) {
+ String prefColor = null;
+ if(feature == NotationPackage.eINSTANCE.getLineStyle_LineColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("StringExpression", PreferenceConstantHelper.COLOR_LINE);
+ } else if(feature == NotationPackage.eINSTANCE.getFontStyle_FontColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("StringExpression", PreferenceConstantHelper.COLOR_FONT);
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_FillColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("StringExpression", PreferenceConstantHelper.COLOR_FILL);
+ }
+ result = FigureUtilities.RGBToInteger(PreferenceConverter.getColor((IPreferenceStore)preferenceStore, prefColor));
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_Transparency() || feature == NotationPackage.eINSTANCE.getFillStyle_Gradient()) {
+ String prefGradient = PreferenceConstantHelper.getElementConstant("StringExpression", PreferenceConstantHelper.COLOR_GRADIENT);
+ GradientPreferenceConverter gradientPreferenceConverter = new GradientPreferenceConverter(preferenceStore.getString(prefGradient));
+ if(feature == NotationPackage.eINSTANCE.getFillStyle_Transparency()) {
+ result = new Integer(gradientPreferenceConverter.getTransparency());
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_Gradient()) {
+ result = gradientPreferenceConverter.getGradientData();
+ }
+ }
+
+ if(result == null) {
+ result = getStructuralFeatureValue(feature);
+ }
+ return result;
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/StringExpressionNameEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/StringExpressionNameEditPart.java
new file mode 100644
index 00000000000..3cd0ebdde86
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/StringExpressionNameEditPart.java
@@ -0,0 +1,791 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EAnnotation;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.emf.transaction.RunnableWithResult;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.AccessibleEditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.requests.DirectEditRequest;
+import org.eclipse.gef.tools.DirectEditManager;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.CompartmentEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
+import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
+import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
+import org.eclipse.gmf.runtime.notation.FontStyle;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
+import org.eclipse.jface.viewers.ICellEditorValidator;
+import org.eclipse.jface.window.Window;
+import org.eclipse.papyrus.diagram.common.directedit.MultilineLabelDirectEditManager;
+import org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition;
+import org.eclipse.papyrus.diagram.common.editpolicies.IMaskManagedLabelEditPolicy;
+import org.eclipse.papyrus.diagram.common.figure.node.ILabelFigure;
+import org.eclipse.papyrus.diagram.common.util.DiagramEditPartsUtil;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLTextSelectionEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.diagram.composite.providers.UMLParserProvider;
+import org.eclipse.papyrus.extensionpoints.editors.Activator;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
+import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
+import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
+import org.eclipse.papyrus.umlutils.ui.VisualInformationPapyrusConstant;
+import org.eclipse.papyrus.umlutils.ui.helper.NameLabelIconHelper;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.AccessibleEvent;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.FontData;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.ui.PlatformUI;
+
+/**
+ * @generated
+ */
+public class StringExpressionNameEditPart extends CompartmentEditPart implements ITextAwareEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 5183;
+
+ /**
+ * @generated
+ */
+ private DirectEditManager manager;
+
+ /**
+ * @generated
+ */
+ private IParser parser;
+
+ /**
+ * @generated
+ */
+ private List<?> parserElements;
+
+ /**
+ * @generated
+ */
+ private String defaultText;
+
+ /**
+ * direct edition mode (default, undefined, registered editor, etc.)
+ *
+ * @generated
+ */
+ protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
+
+ /**
+ * configuration from a registered edit dialog
+ *
+ * @generated
+ */
+ protected IDirectEditorConfiguration configuration;
+
+ /**
+ * @generated
+ */
+ public StringExpressionNameEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
+ installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new CompositeStructureDiagramEditPart.NodeLabelDragPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelTextHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getText();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getText();
+ } else {
+ return ((Label)figure).getText();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelTextHelper(IFigure figure, String text) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setText(text);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setText(text);
+ } else {
+ ((Label)figure).setText(text);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIconHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getIcon();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getIcon();
+ } else {
+ return ((Label)figure).getIcon();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelIconHelper(IFigure figure, Image icon) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setIcon(icon);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setIcon(icon);
+ } else {
+ ((Label)figure).setIcon(icon);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabel(WrappingLabel figure) {
+ unregisterVisuals();
+ setFigure(figure);
+ defaultText = getLabelTextHelper(figure);
+ registerVisuals();
+ refreshVisuals();
+ }
+
+ /**
+ * @generated
+ */
+ protected List getModelChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject getParserElement() {
+ return resolveSemanticElement();
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIcon() {
+ EObject parserElement = getParserElement();
+ if(parserElement == null) {
+ return null;
+ }
+
+ List<View> views = DiagramEditPartsUtil.findViews(parserElement, getViewer());
+ for(View view : views) {
+ if(NameLabelIconHelper.showLabelIcon(view)) {
+ return UMLElementTypes.getImage(parserElement.eClass());
+ }
+ }
+ return null;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelText() {
+ String text = null;
+ EObject parserElement = getParserElement();
+ if(parserElement != null && getParser() != null) {
+ text = getParser().getPrintString(new EObjectAdapter(parserElement), getParserOptions().intValue());
+ }
+ if(text == null || text.length() == 0) {
+ text = defaultText;
+ }
+ return text;
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabelText(String text) {
+ setLabelTextHelper(getFigure(), text);
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public String getEditText() {
+ if(getParserElement() == null || getParser() == null) {
+ return ""; //$NON-NLS-1$
+ }
+ return getParser().getEditString(new EObjectAdapter(getParserElement()), getParserOptions().intValue());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean isEditable() {
+ return getParser() != null;
+ }
+
+ /**
+ * @generated
+ */
+ public ICellEditorValidator getEditTextValidator() {
+ return new ICellEditorValidator() {
+
+ public String isValid(final Object value) {
+ if(value instanceof String) {
+ final EObject element = getParserElement();
+ final IParser parser = getParser();
+ try {
+ IParserEditStatus valid = (IParserEditStatus)getEditingDomain().runExclusive(new RunnableWithResult.Impl() {
+
+ public void run() {
+ setResult(parser.isValidEditString(new EObjectAdapter(element), (String)value));
+ }
+ });
+ return valid.getCode() == ParserEditStatus.EDITABLE ? null : valid.getMessage();
+ } catch (InterruptedException ie) {
+ ie.printStackTrace();
+ }
+ }
+
+ // shouldn't get here
+ return null;
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ public IContentAssistProcessor getCompletionProcessor() {
+ if(getParserElement() == null || getParser() == null) {
+ return null;
+ }
+ return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
+ }
+
+ /**
+ * @generated
+ */
+ public ParserOptions getParserOptions() {
+ return ParserOptions.NONE;
+ }
+
+ /**
+ * @generated
+ */
+ public IParser getParser() {
+ if(parser == null) {
+ parser = UMLParserProvider.getParser(UMLElementTypes.StringExpression_2100, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.diagram.composite.edit.parts.StringExpressionNameEditPart.VISUAL_ID));
+ }
+ return parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected DirectEditManager getManager() {
+ if(manager == null) {
+ setManager(new MultilineLabelDirectEditManager(this, MultilineLabelDirectEditManager.getTextCellEditorClass(this), UMLEditPartFactory.getTextCellEditorLocator(this)));
+ }
+ return manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setManager(DirectEditManager manager) {
+ this.manager = manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit() {
+ getManager().show();
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit(Point eventLocation) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(eventLocation.getSWTPoint());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void performDirectEdit(char initialCharacter) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(initialCharacter);
+ } else {
+ performDirectEdit();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEditRequest(Request request) {
+
+ final Request theRequest = request;
+
+ if(IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
+ directEditionMode = getDirectEditionType();
+ }
+ switch(directEditionMode) {
+ case IDirectEdition.NO_DIRECT_EDITION:
+ // no direct edition mode => does nothing
+ return;
+ case IDirectEdition.EXTENDED_DIRECT_EDITOR:
+ updateExtendedEditorConfiguration();
+ if(configuration == null || configuration.getLanguage() == null) {
+ performDefaultDirectEditorEdit(theRequest);
+ } else {
+ configuration.preEditAction(resolveSemanticElement());
+ Dialog dialog = null;
+ if(configuration instanceof IPopupEditorConfiguration) {
+ IPopupEditorHelper helper = ((IPopupEditorConfiguration)configuration).createPopupEditorHelper(this);
+ helper.showEditor();
+ return;
+ } else if(configuration instanceof IAdvancedEditorConfiguration) {
+ dialog = ((IAdvancedEditorConfiguration)configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
+ } else if(configuration instanceof IDirectEditorConfiguration) {
+ dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), ((IDirectEditorConfiguration)configuration).getTextToEdit(resolveSemanticElement()), (IDirectEditorConfiguration)configuration);
+ } else {
+ return;
+ }
+ final Dialog finalDialog = dialog;
+
+ if(Window.OK == dialog.open()) {
+ TransactionalEditingDomain domain = getEditingDomain();
+ RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
+
+ @Override
+ protected void doExecute() {
+ configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog)finalDialog).getValue());
+
+ }
+ };
+ domain.getCommandStack().execute(command);
+ }
+ }
+ break;
+ case IDirectEdition.DEFAULT_DIRECT_EDITOR:
+
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ break;
+ default:
+ break;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshLabel();
+ refreshFont();
+ refreshFontColor();
+ refreshUnderline();
+ refreshStrikeThrough();
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshLabel() {
+ EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
+ if(maskLabelPolicy == null) {
+ setLabelTextHelper(getFigure(), getLabelText());
+ setLabelIconHelper(getFigure(), getLabelIcon());
+ }
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshUnderline() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextUnderline(style.isUnderline());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshStrikeThrough() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextStrikeThrough(style.isStrikeThrough());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshFont() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null) {
+ FontData fontData = new FontData(style.getFontName(), style.getFontHeight(), (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
+ setFont(fontData);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setFontColor(Color color) {
+ getFigure().setForegroundColor(color);
+ }
+
+ /**
+ * @generated
+ */
+ protected void addSemanticListeners() {
+ if(getParser() instanceof ISemanticParser) {
+ EObject element = resolveSemanticElement();
+ parserElements = ((ISemanticParser)getParser()).getSemanticElementsBeingParsed(element);
+ for(int i = 0; i < parserElements.size(); i++) {
+ addListenerFilter("SemanticModel" + i, this, (EObject)parserElements.get(i)); //$NON-NLS-1$
+ }
+ } else {
+ super.addSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeSemanticListeners() {
+ if(parserElements != null) {
+ for(int i = 0; i < parserElements.size(); i++) {
+ removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
+ }
+ } else {
+ super.removeSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected AccessibleEditPart getAccessibleEditPart() {
+ if(accessibleEP == null) {
+ accessibleEP = new AccessibleGraphicalEditPart() {
+
+ public void getName(AccessibleEvent e) {
+ e.result = getLabelTextHelper(getFigure());
+ }
+ };
+ }
+ return accessibleEP;
+ }
+
+ /**
+ * @generated
+ */
+ private View getFontStyleOwnerView() {
+ return (View)getModel();
+ }
+
+ /**
+ * Returns the kind of associated editor for direct edition.
+ *
+ * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition
+ * @generated
+ */
+ public int getDirectEditionType() {
+ if(checkExtendedEditor()) {
+ initExtendedEditorConfiguration();
+ return IDirectEdition.EXTENDED_DIRECT_EDITOR;
+ }
+ if(checkDefaultEdition()) {
+ return IDirectEdition.DEFAULT_DIRECT_EDITOR;
+ }
+
+ // not a named element. no specific editor => do nothing
+ return IDirectEdition.NO_DIRECT_EDITION;
+ }
+
+ /**
+ * Checks if an extended editor is present.
+ *
+ * @return <code>true</code> if an extended editor is present.
+ * @generated
+ */
+ protected boolean checkExtendedEditor() {
+ if(resolveSemanticElement() != null) {
+ return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ return false;
+ }
+
+ /**
+ * Checks if a default direct edition is available
+ *
+ * @return <code>true</code> if a default direct edition is available
+ * @generated
+ */
+ protected boolean checkDefaultEdition() {
+ return (getParser() != null);
+ }
+
+ /**
+ * Initializes the extended editor configuration
+ *
+ * @generated
+ */
+ protected void initExtendedEditorConfiguration() {
+ if(configuration == null) {
+ final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("")) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else {
+ configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ }
+ }
+
+ /**
+ * Updates the preference configuration
+ *
+ * @generated
+ */
+ protected void updateExtendedEditorConfiguration() {
+ String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("") && languagePreferred != configuration.getLanguage()) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else if(IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
+ configuration = null;
+ }
+ }
+
+ /**
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
+ protected void performDefaultDirectEditorEdit(final Request theRequest) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void addNotationalListeners() {
+ super.addNotationalListeners();
+ addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeNotationalListeners() {
+ super.removeNotationalListeners();
+ removeListenerFilter("PrimaryView"); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void handleNotificationEvent(Notification event) {
+ refreshLabel();
+ Object feature = event.getFeature();
+ if(NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
+ Integer c = (Integer)event.getNewValue();
+ setFontColor(DiagramColorRegistry.getInstance().getColor(c));
+ } else if(NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
+ refreshUnderline();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
+ refreshStrikeThrough();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
+ refreshFont();
+ } else {
+ if(getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
+ refreshLabel();
+ }
+ if(getParser() instanceof ISemanticParser) {
+ ISemanticParser modelParser = (ISemanticParser)getParser();
+ if(modelParser.areSemanticElementsAffected(null, event)) {
+ removeSemanticListeners();
+ if(resolveSemanticElement() != null) {
+ addSemanticListeners();
+ }
+ refreshLabel();
+ }
+ }
+ }
+
+ if(event.getNewValue() instanceof EAnnotation && VisualInformationPapyrusConstant.DISPLAY_NAMELABELICON.equals(((EAnnotation)event.getNewValue()).getSource())) {
+ refreshLabel();
+ }
+
+ super.handleNotificationEvent(event);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createFigure() {
+ // Parent should assign one using setLabel() method
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ private static final String ADD_PARENT_MODEL = "AddParentModel";
+
+ /**
+ * @generated
+ */
+ public void activate() {
+ super.activate();
+ addOwnerElementListeners();
+ }
+
+ /**
+ * @generated
+ */
+ protected void addOwnerElementListeners() {
+ addListenerFilter(ADD_PARENT_MODEL, this, ((View)getParent().getModel())); //$NON-NLS-1$
+
+ }
+
+ /**
+ * @generated
+ */
+ public void deactivate() {
+ removeOwnerElementListeners();
+ super.deactivate();
+
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeOwnerElementListeners() {
+ removeListenerFilter(ADD_PARENT_MODEL);
+
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/SubstitutionAppliedStereotypeEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/SubstitutionAppliedStereotypeEditPart.java
new file mode 100644
index 00000000000..47dae42a71a
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/SubstitutionAppliedStereotypeEditPart.java
@@ -0,0 +1,742 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.ConnectionLocator;
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.emf.transaction.RunnableWithResult;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.AccessibleEditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.requests.DirectEditRequest;
+import org.eclipse.gef.tools.DirectEditManager;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.LabelEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
+import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
+import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
+import org.eclipse.gmf.runtime.notation.FontStyle;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
+import org.eclipse.jface.viewers.ICellEditorValidator;
+import org.eclipse.jface.window.Window;
+import org.eclipse.papyrus.diagram.common.directedit.MultilineLabelDirectEditManager;
+import org.eclipse.papyrus.diagram.common.editparts.ILabelRoleProvider;
+import org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition;
+import org.eclipse.papyrus.diagram.common.editpolicies.IMaskManagedLabelEditPolicy;
+import org.eclipse.papyrus.diagram.common.figure.node.ILabelFigure;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLTextSelectionEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.diagram.composite.providers.UMLParserProvider;
+import org.eclipse.papyrus.extensionpoints.editors.Activator;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
+import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
+import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.AccessibleEvent;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.FontData;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.ui.PlatformUI;
+
+/**
+ * @generated
+ */
+public class SubstitutionAppliedStereotypeEditPart extends LabelEditPart implements ITextAwareEditPart
+
+, ILabelRoleProvider
+
+{
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 6017;
+
+ /**
+ * @generated
+ */
+ private DirectEditManager manager;
+
+ /**
+ * @generated
+ */
+ private IParser parser;
+
+ /**
+ * @generated
+ */
+ private List<?> parserElements;
+
+ /**
+ * @generated
+ */
+ private String defaultText;
+
+ /**
+ * direct edition mode (default, undefined, registered editor, etc.)
+ *
+ * @generated
+ */
+ protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
+
+ /**
+ * configuration from a registered edit dialog
+ *
+ * @generated
+ */
+ protected IDirectEditorConfiguration configuration;
+
+ /**
+ * @generated
+ */
+ static {
+ registerSnapBackPosition(UMLVisualIDRegistry.getType(org.eclipse.papyrus.diagram.composite.edit.parts.SubstitutionAppliedStereotypeEditPart.VISUAL_ID), new Point(0, 30));
+ }
+
+ /**
+ * @generated
+ */
+ public SubstitutionAppliedStereotypeEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
+ installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new CompositeStructureDiagramEditPart.LinkLabelDragPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ public int getKeyPoint() {
+ return ConnectionLocator.MIDDLE;
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelTextHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getText();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getText();
+ } else {
+ return ((Label)figure).getText();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelTextHelper(IFigure figure, String text) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setText(text);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setText(text);
+ } else {
+ ((Label)figure).setText(text);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIconHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getIcon();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getIcon();
+ } else {
+ return ((Label)figure).getIcon();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelIconHelper(IFigure figure, Image icon) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setIcon(icon);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setIcon(icon);
+ } else {
+ ((Label)figure).setIcon(icon);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabel(WrappingLabel figure) {
+ unregisterVisuals();
+ setFigure(figure);
+ defaultText = getLabelTextHelper(figure);
+ registerVisuals();
+ refreshVisuals();
+ }
+
+ /**
+ * @generated
+ */
+ protected List getModelChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject getParserElement() {
+ return resolveSemanticElement();
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIcon() {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelText() {
+ String text = null;
+ EObject parserElement = getParserElement();
+ if(parserElement != null && getParser() != null) {
+ text = getParser().getPrintString(new EObjectAdapter(parserElement), getParserOptions().intValue());
+ }
+ if(text == null || text.length() == 0) {
+ text = defaultText;
+ }
+ return text;
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabelText(String text) {
+ setLabelTextHelper(getFigure(), text);
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public String getEditText() {
+ if(getParserElement() == null || getParser() == null) {
+ return ""; //$NON-NLS-1$
+ }
+ return getParser().getEditString(new EObjectAdapter(getParserElement()), getParserOptions().intValue());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean isEditable() {
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ public ICellEditorValidator getEditTextValidator() {
+ return new ICellEditorValidator() {
+
+ public String isValid(final Object value) {
+ if(value instanceof String) {
+ final EObject element = getParserElement();
+ final IParser parser = getParser();
+ try {
+ IParserEditStatus valid = (IParserEditStatus)getEditingDomain().runExclusive(new RunnableWithResult.Impl() {
+
+ public void run() {
+ setResult(parser.isValidEditString(new EObjectAdapter(element), (String)value));
+ }
+ });
+ return valid.getCode() == ParserEditStatus.EDITABLE ? null : valid.getMessage();
+ } catch (InterruptedException ie) {
+ ie.printStackTrace();
+ }
+ }
+
+ // shouldn't get here
+ return null;
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ public IContentAssistProcessor getCompletionProcessor() {
+ if(getParserElement() == null || getParser() == null) {
+ return null;
+ }
+ return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
+ }
+
+ /**
+ * @generated
+ */
+ public ParserOptions getParserOptions() {
+ return ParserOptions.NONE;
+ }
+
+ /**
+ * @generated
+ */
+ public IParser getParser() {
+ if(parser == null) {
+ parser = UMLParserProvider.getParser(UMLElementTypes.Substitution_4011, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.diagram.composite.edit.parts.SubstitutionAppliedStereotypeEditPart.VISUAL_ID));
+ }
+ return parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected DirectEditManager getManager() {
+ if(manager == null) {
+ setManager(new MultilineLabelDirectEditManager(this, MultilineLabelDirectEditManager.getTextCellEditorClass(this), UMLEditPartFactory.getTextCellEditorLocator(this)));
+ }
+ return manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setManager(DirectEditManager manager) {
+ this.manager = manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit() {
+ getManager().show();
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit(Point eventLocation) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(eventLocation.getSWTPoint());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void performDirectEdit(char initialCharacter) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(initialCharacter);
+ } else {
+ performDirectEdit();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEditRequest(Request request) {
+
+ final Request theRequest = request;
+
+ if(IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
+ directEditionMode = getDirectEditionType();
+ }
+ switch(directEditionMode) {
+ case IDirectEdition.NO_DIRECT_EDITION:
+ // no direct edition mode => does nothing
+ return;
+ case IDirectEdition.EXTENDED_DIRECT_EDITOR:
+ updateExtendedEditorConfiguration();
+ if(configuration == null || configuration.getLanguage() == null) {
+ performDefaultDirectEditorEdit(theRequest);
+ } else {
+ configuration.preEditAction(resolveSemanticElement());
+ Dialog dialog = null;
+ if(configuration instanceof IPopupEditorConfiguration) {
+ IPopupEditorHelper helper = ((IPopupEditorConfiguration)configuration).createPopupEditorHelper(this);
+ helper.showEditor();
+ return;
+ } else if(configuration instanceof IAdvancedEditorConfiguration) {
+ dialog = ((IAdvancedEditorConfiguration)configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
+ } else if(configuration instanceof IDirectEditorConfiguration) {
+ dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), ((IDirectEditorConfiguration)configuration).getTextToEdit(resolveSemanticElement()), (IDirectEditorConfiguration)configuration);
+ } else {
+ return;
+ }
+ final Dialog finalDialog = dialog;
+
+ if(Window.OK == dialog.open()) {
+ TransactionalEditingDomain domain = getEditingDomain();
+ RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
+
+ @Override
+ protected void doExecute() {
+ configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog)finalDialog).getValue());
+
+ }
+ };
+ domain.getCommandStack().execute(command);
+ }
+ }
+ break;
+ case IDirectEdition.DEFAULT_DIRECT_EDITOR:
+
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ break;
+ default:
+ break;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshLabel();
+ refreshFont();
+ refreshFontColor();
+ refreshUnderline();
+ refreshStrikeThrough();
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshLabel() {
+ EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
+ if(maskLabelPolicy == null) {
+ setLabelTextHelper(getFigure(), getLabelText());
+ setLabelIconHelper(getFigure(), getLabelIcon());
+ }
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshUnderline() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextUnderline(style.isUnderline());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshStrikeThrough() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextStrikeThrough(style.isStrikeThrough());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshFont() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null) {
+ FontData fontData = new FontData(style.getFontName(), style.getFontHeight(), (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
+ setFont(fontData);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setFontColor(Color color) {
+ getFigure().setForegroundColor(color);
+ }
+
+ /**
+ * @generated
+ */
+ protected void addSemanticListeners() {
+ if(getParser() instanceof ISemanticParser) {
+ EObject element = resolveSemanticElement();
+ parserElements = ((ISemanticParser)getParser()).getSemanticElementsBeingParsed(element);
+ for(int i = 0; i < parserElements.size(); i++) {
+ addListenerFilter("SemanticModel" + i, this, (EObject)parserElements.get(i)); //$NON-NLS-1$
+ }
+ } else {
+ super.addSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeSemanticListeners() {
+ if(parserElements != null) {
+ for(int i = 0; i < parserElements.size(); i++) {
+ removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
+ }
+ } else {
+ super.removeSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected AccessibleEditPart getAccessibleEditPart() {
+ if(accessibleEP == null) {
+ accessibleEP = new AccessibleGraphicalEditPart() {
+
+ public void getName(AccessibleEvent e) {
+ e.result = getLabelTextHelper(getFigure());
+ }
+ };
+ }
+ return accessibleEP;
+ }
+
+ /**
+ * @generated
+ */
+ private View getFontStyleOwnerView() {
+ return getPrimaryView();
+ }
+
+ /**
+ * Returns the kind of associated editor for direct edition.
+ *
+ * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition
+ * @generated
+ */
+ public int getDirectEditionType() {
+ // The label is read-only (defined in GMFGen model)
+ return IDirectEdition.NO_DIRECT_EDITION;
+ }
+
+ /**
+ * Checks if an extended editor is present.
+ *
+ * @return <code>true</code> if an extended editor is present.
+ * @generated
+ */
+ protected boolean checkExtendedEditor() {
+ if(resolveSemanticElement() != null) {
+ return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ return false;
+ }
+
+ /**
+ * Checks if a default direct edition is available
+ *
+ * @return <code>true</code> if a default direct edition is available
+ * @generated
+ */
+ protected boolean checkDefaultEdition() {
+ return (getParser() != null);
+ }
+
+ /**
+ * Initializes the extended editor configuration
+ *
+ * @generated
+ */
+ protected void initExtendedEditorConfiguration() {
+ if(configuration == null) {
+ final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("")) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else {
+ configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ }
+ }
+
+ /**
+ * Updates the preference configuration
+ *
+ * @generated
+ */
+ protected void updateExtendedEditorConfiguration() {
+ String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("") && languagePreferred != configuration.getLanguage()) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else if(IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
+ configuration = null;
+ }
+ }
+
+ /**
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
+ protected void performDefaultDirectEditorEdit(final Request theRequest) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void handleNotificationEvent(Notification event) {
+ Object feature = event.getFeature();
+ if(NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
+ Integer c = (Integer)event.getNewValue();
+ setFontColor(DiagramColorRegistry.getInstance().getColor(c));
+ } else if(NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
+ refreshUnderline();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
+ refreshStrikeThrough();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
+ refreshFont();
+ } else {
+ if(getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
+ refreshLabel();
+ }
+ if(getParser() instanceof ISemanticParser) {
+ ISemanticParser modelParser = (ISemanticParser)getParser();
+ if(modelParser.areSemanticElementsAffected(null, event)) {
+ removeSemanticListeners();
+ if(resolveSemanticElement() != null) {
+ addSemanticListeners();
+ }
+ refreshLabel();
+ }
+ }
+ }
+
+ super.handleNotificationEvent(event);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createFigure() {
+ // Parent should assign one using setLabel() method
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ public String getLabelRole() {
+ return "Stereotype";//$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ public String getIconPathRole() {
+ return "";//$NON-NLS-1$
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/SubstitutionEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/SubstitutionEditPart.java
new file mode 100644
index 00000000000..95845b533ae
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/SubstitutionEditPart.java
@@ -0,0 +1,122 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import org.eclipse.draw2d.Connection;
+import org.eclipse.gef.EditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITreeBranchEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.diagram.common.editparts.UMLConnectionNodeEditPart;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeLinkLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeSubstitutionLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.figure.edge.InterfaceRealizationFigure;
+import org.eclipse.papyrus.diagram.composite.edit.policies.SubstitutionItemSemanticEditPolicy;
+
+/**
+ * @generated
+ */
+public class SubstitutionEditPart extends
+
+UMLConnectionNodeEditPart implements ITreeBranchEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 4011;
+
+ /**
+ * @generated
+ */
+ public SubstitutionEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new SubstitutionItemSemanticEditPolicy());
+ installEditPolicy(AppliedStereotypeLinkLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeSubstitutionLabelDisplayEditPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean addFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof SubstitutionNameEditPart) {
+ ((SubstitutionNameEditPart)childEditPart).setLabel(getPrimaryShape().getNameLabel());
+ return true;
+ }
+ if(childEditPart instanceof SubstitutionAppliedStereotypeEditPart) {
+ ((SubstitutionAppliedStereotypeEditPart)childEditPart).setLabel(getPrimaryShape().getAppliedStereotypeLabel());
+ return true;
+ }
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected void addChildVisual(EditPart childEditPart, int index) {
+ if(addFixedChild(childEditPart)) {
+ return;
+ }
+ super.addChildVisual(childEditPart, -1);
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean removeFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof SubstitutionNameEditPart) {
+ return true;
+ }
+ if(childEditPart instanceof SubstitutionAppliedStereotypeEditPart) {
+ return true;
+ }
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeChildVisual(EditPart childEditPart) {
+ if(removeFixedChild(childEditPart)) {
+ return;
+ }
+ super.removeChildVisual(childEditPart);
+ }
+
+ /**
+ * Creates figure for this edit part.
+ *
+ * Body of this method does not depend on settings in generation model
+ * so you may safely remove <i>generated</i> tag and modify it.
+ *
+ * @generated
+ */
+ protected Connection createConnectionFigure() {
+ return new InterfaceRealizationFigure();
+ }
+
+ /**
+ * @generated
+ */
+ public InterfaceRealizationFigure getPrimaryShape() {
+ return (InterfaceRealizationFigure)getFigure();
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/SubstitutionNameEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/SubstitutionNameEditPart.java
new file mode 100644
index 00000000000..ef83d4512c5
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/SubstitutionNameEditPart.java
@@ -0,0 +1,750 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.ConnectionLocator;
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.emf.transaction.RunnableWithResult;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.AccessibleEditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.requests.DirectEditRequest;
+import org.eclipse.gef.tools.DirectEditManager;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.LabelEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
+import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
+import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
+import org.eclipse.gmf.runtime.notation.FontStyle;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
+import org.eclipse.jface.viewers.ICellEditorValidator;
+import org.eclipse.jface.window.Window;
+import org.eclipse.papyrus.diagram.common.directedit.MultilineLabelDirectEditManager;
+import org.eclipse.papyrus.diagram.common.editparts.ILabelRoleProvider;
+import org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition;
+import org.eclipse.papyrus.diagram.common.editpolicies.IMaskManagedLabelEditPolicy;
+import org.eclipse.papyrus.diagram.common.figure.node.ILabelFigure;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLTextSelectionEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.diagram.composite.providers.UMLParserProvider;
+import org.eclipse.papyrus.extensionpoints.editors.Activator;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
+import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
+import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.AccessibleEvent;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.FontData;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.ui.PlatformUI;
+
+/**
+ * @generated
+ */
+public class SubstitutionNameEditPart extends LabelEditPart implements ITextAwareEditPart
+
+, ILabelRoleProvider
+
+{
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 6003;
+
+ /**
+ * @generated
+ */
+ private DirectEditManager manager;
+
+ /**
+ * @generated
+ */
+ private IParser parser;
+
+ /**
+ * @generated
+ */
+ private List<?> parserElements;
+
+ /**
+ * @generated
+ */
+ private String defaultText;
+
+ /**
+ * direct edition mode (default, undefined, registered editor, etc.)
+ *
+ * @generated
+ */
+ protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
+
+ /**
+ * configuration from a registered edit dialog
+ *
+ * @generated
+ */
+ protected IDirectEditorConfiguration configuration;
+
+ /**
+ * @generated
+ */
+ static {
+ registerSnapBackPosition(UMLVisualIDRegistry.getType(org.eclipse.papyrus.diagram.composite.edit.parts.SubstitutionNameEditPart.VISUAL_ID), new Point(0, 60));
+ }
+
+ /**
+ * @generated
+ */
+ public SubstitutionNameEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
+ installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new CompositeStructureDiagramEditPart.LinkLabelDragPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ public int getKeyPoint() {
+ return ConnectionLocator.MIDDLE;
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelTextHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getText();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getText();
+ } else {
+ return ((Label)figure).getText();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelTextHelper(IFigure figure, String text) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setText(text);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setText(text);
+ } else {
+ ((Label)figure).setText(text);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIconHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getIcon();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getIcon();
+ } else {
+ return ((Label)figure).getIcon();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelIconHelper(IFigure figure, Image icon) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setIcon(icon);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setIcon(icon);
+ } else {
+ ((Label)figure).setIcon(icon);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabel(WrappingLabel figure) {
+ unregisterVisuals();
+ setFigure(figure);
+ defaultText = getLabelTextHelper(figure);
+ registerVisuals();
+ refreshVisuals();
+ }
+
+ /**
+ * @generated
+ */
+ protected List getModelChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject getParserElement() {
+ return resolveSemanticElement();
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIcon() {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelText() {
+ String text = null;
+ EObject parserElement = getParserElement();
+ if(parserElement != null && getParser() != null) {
+ text = getParser().getPrintString(new EObjectAdapter(parserElement), getParserOptions().intValue());
+ }
+ if(text == null || text.length() == 0) {
+ text = defaultText;
+ }
+ return text;
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabelText(String text) {
+ setLabelTextHelper(getFigure(), text);
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public String getEditText() {
+ if(getParserElement() == null || getParser() == null) {
+ return ""; //$NON-NLS-1$
+ }
+ return getParser().getEditString(new EObjectAdapter(getParserElement()), getParserOptions().intValue());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean isEditable() {
+ return getParser() != null;
+ }
+
+ /**
+ * @generated
+ */
+ public ICellEditorValidator getEditTextValidator() {
+ return new ICellEditorValidator() {
+
+ public String isValid(final Object value) {
+ if(value instanceof String) {
+ final EObject element = getParserElement();
+ final IParser parser = getParser();
+ try {
+ IParserEditStatus valid = (IParserEditStatus)getEditingDomain().runExclusive(new RunnableWithResult.Impl() {
+
+ public void run() {
+ setResult(parser.isValidEditString(new EObjectAdapter(element), (String)value));
+ }
+ });
+ return valid.getCode() == ParserEditStatus.EDITABLE ? null : valid.getMessage();
+ } catch (InterruptedException ie) {
+ ie.printStackTrace();
+ }
+ }
+
+ // shouldn't get here
+ return null;
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ public IContentAssistProcessor getCompletionProcessor() {
+ if(getParserElement() == null || getParser() == null) {
+ return null;
+ }
+ return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
+ }
+
+ /**
+ * @generated
+ */
+ public ParserOptions getParserOptions() {
+ return ParserOptions.NONE;
+ }
+
+ /**
+ * @generated
+ */
+ public IParser getParser() {
+ if(parser == null) {
+ parser = UMLParserProvider.getParser(UMLElementTypes.Substitution_4011, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.diagram.composite.edit.parts.SubstitutionNameEditPart.VISUAL_ID));
+ }
+ return parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected DirectEditManager getManager() {
+ if(manager == null) {
+ setManager(new MultilineLabelDirectEditManager(this, MultilineLabelDirectEditManager.getTextCellEditorClass(this), UMLEditPartFactory.getTextCellEditorLocator(this)));
+ }
+ return manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setManager(DirectEditManager manager) {
+ this.manager = manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit() {
+ getManager().show();
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit(Point eventLocation) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(eventLocation.getSWTPoint());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void performDirectEdit(char initialCharacter) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(initialCharacter);
+ } else {
+ performDirectEdit();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEditRequest(Request request) {
+
+ final Request theRequest = request;
+
+ if(IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
+ directEditionMode = getDirectEditionType();
+ }
+ switch(directEditionMode) {
+ case IDirectEdition.NO_DIRECT_EDITION:
+ // no direct edition mode => does nothing
+ return;
+ case IDirectEdition.EXTENDED_DIRECT_EDITOR:
+ updateExtendedEditorConfiguration();
+ if(configuration == null || configuration.getLanguage() == null) {
+ performDefaultDirectEditorEdit(theRequest);
+ } else {
+ configuration.preEditAction(resolveSemanticElement());
+ Dialog dialog = null;
+ if(configuration instanceof IPopupEditorConfiguration) {
+ IPopupEditorHelper helper = ((IPopupEditorConfiguration)configuration).createPopupEditorHelper(this);
+ helper.showEditor();
+ return;
+ } else if(configuration instanceof IAdvancedEditorConfiguration) {
+ dialog = ((IAdvancedEditorConfiguration)configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
+ } else if(configuration instanceof IDirectEditorConfiguration) {
+ dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), ((IDirectEditorConfiguration)configuration).getTextToEdit(resolveSemanticElement()), (IDirectEditorConfiguration)configuration);
+ } else {
+ return;
+ }
+ final Dialog finalDialog = dialog;
+
+ if(Window.OK == dialog.open()) {
+ TransactionalEditingDomain domain = getEditingDomain();
+ RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
+
+ @Override
+ protected void doExecute() {
+ configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog)finalDialog).getValue());
+
+ }
+ };
+ domain.getCommandStack().execute(command);
+ }
+ }
+ break;
+ case IDirectEdition.DEFAULT_DIRECT_EDITOR:
+
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ break;
+ default:
+ break;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshLabel();
+ refreshFont();
+ refreshFontColor();
+ refreshUnderline();
+ refreshStrikeThrough();
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshLabel() {
+ EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
+ if(maskLabelPolicy == null) {
+ setLabelTextHelper(getFigure(), getLabelText());
+ setLabelIconHelper(getFigure(), getLabelIcon());
+ }
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshUnderline() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextUnderline(style.isUnderline());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshStrikeThrough() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextStrikeThrough(style.isStrikeThrough());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshFont() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null) {
+ FontData fontData = new FontData(style.getFontName(), style.getFontHeight(), (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
+ setFont(fontData);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setFontColor(Color color) {
+ getFigure().setForegroundColor(color);
+ }
+
+ /**
+ * @generated
+ */
+ protected void addSemanticListeners() {
+ if(getParser() instanceof ISemanticParser) {
+ EObject element = resolveSemanticElement();
+ parserElements = ((ISemanticParser)getParser()).getSemanticElementsBeingParsed(element);
+ for(int i = 0; i < parserElements.size(); i++) {
+ addListenerFilter("SemanticModel" + i, this, (EObject)parserElements.get(i)); //$NON-NLS-1$
+ }
+ } else {
+ super.addSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeSemanticListeners() {
+ if(parserElements != null) {
+ for(int i = 0; i < parserElements.size(); i++) {
+ removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
+ }
+ } else {
+ super.removeSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected AccessibleEditPart getAccessibleEditPart() {
+ if(accessibleEP == null) {
+ accessibleEP = new AccessibleGraphicalEditPart() {
+
+ public void getName(AccessibleEvent e) {
+ e.result = getLabelTextHelper(getFigure());
+ }
+ };
+ }
+ return accessibleEP;
+ }
+
+ /**
+ * @generated
+ */
+ private View getFontStyleOwnerView() {
+ return getPrimaryView();
+ }
+
+ /**
+ * Returns the kind of associated editor for direct edition.
+ *
+ * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition
+ * @generated
+ */
+ public int getDirectEditionType() {
+ if(checkExtendedEditor()) {
+ initExtendedEditorConfiguration();
+ return IDirectEdition.EXTENDED_DIRECT_EDITOR;
+ }
+ if(checkDefaultEdition()) {
+ return IDirectEdition.DEFAULT_DIRECT_EDITOR;
+ }
+
+ // not a named element. no specific editor => do nothing
+ return IDirectEdition.NO_DIRECT_EDITION;
+ }
+
+ /**
+ * Checks if an extended editor is present.
+ *
+ * @return <code>true</code> if an extended editor is present.
+ * @generated
+ */
+ protected boolean checkExtendedEditor() {
+ if(resolveSemanticElement() != null) {
+ return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ return false;
+ }
+
+ /**
+ * Checks if a default direct edition is available
+ *
+ * @return <code>true</code> if a default direct edition is available
+ * @generated
+ */
+ protected boolean checkDefaultEdition() {
+ return (getParser() != null);
+ }
+
+ /**
+ * Initializes the extended editor configuration
+ *
+ * @generated
+ */
+ protected void initExtendedEditorConfiguration() {
+ if(configuration == null) {
+ final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("")) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else {
+ configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ }
+ }
+
+ /**
+ * Updates the preference configuration
+ *
+ * @generated
+ */
+ protected void updateExtendedEditorConfiguration() {
+ String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("") && languagePreferred != configuration.getLanguage()) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else if(IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
+ configuration = null;
+ }
+ }
+
+ /**
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
+ protected void performDefaultDirectEditorEdit(final Request theRequest) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void handleNotificationEvent(Notification event) {
+ Object feature = event.getFeature();
+ if(NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
+ Integer c = (Integer)event.getNewValue();
+ setFontColor(DiagramColorRegistry.getInstance().getColor(c));
+ } else if(NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
+ refreshUnderline();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
+ refreshStrikeThrough();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
+ refreshFont();
+ } else {
+ if(getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
+ refreshLabel();
+ }
+ if(getParser() instanceof ISemanticParser) {
+ ISemanticParser modelParser = (ISemanticParser)getParser();
+ if(modelParser.areSemanticElementsAffected(null, event)) {
+ removeSemanticListeners();
+ if(resolveSemanticElement() != null) {
+ addSemanticListeners();
+ }
+ refreshLabel();
+ }
+ }
+ }
+
+ super.handleNotificationEvent(event);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createFigure() {
+ // Parent should assign one using setLabel() method
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ public String getLabelRole() {
+ return "Name";//$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ public String getIconPathRole() {
+ return "";//$NON-NLS-1$
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/TimeConstraintEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/TimeConstraintEditPart.java
new file mode 100644
index 00000000000..54c6da22261
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/TimeConstraintEditPart.java
@@ -0,0 +1,5459 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.ArrayList;
+import java.util.LinkedList;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Shape;
+import org.eclipse.draw2d.StackLayout;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EStructuralFeature;
+import org.eclipse.gef.EditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.editpolicies.LayoutEditPolicy;
+import org.eclipse.gef.editpolicies.NonResizableEditPolicy;
+import org.eclipse.gef.requests.CreateRequest;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.FigureUtilities;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.gef.ui.figures.DefaultSizeNodeFigure;
+import org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.jface.preference.PreferenceConverter;
+import org.eclipse.papyrus.diagram.common.editparts.AbstractConstraintEditPart;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.figure.node.ConstraintFigure;
+import org.eclipse.papyrus.diagram.common.helper.PreferenceInitializerForElementHelper;
+import org.eclipse.papyrus.diagram.composite.edit.policies.TimeConstraintItemSemanticEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorPlugin;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter;
+import org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper;
+import org.eclipse.swt.graphics.Color;
+
+/**
+ * @generated
+ */
+public class TimeConstraintEditPart extends
+
+AbstractConstraintEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 2111;
+
+ /**
+ * @generated
+ */
+ protected IFigure contentPane;
+
+ /**
+ * @generated
+ */
+ protected IFigure primaryShape;
+
+ /**
+ * @generated
+ */
+ public TimeConstraintEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new TimeConstraintItemSemanticEditPolicy());
+ installEditPolicy(EditPolicy.LAYOUT_ROLE, createLayoutEditPolicy());
+ installEditPolicy(AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeNodeLabelDisplayEditPolicy());
+ // XXX need an SCR to runtime to have another abstract superclass that would let children add reasonable editpolicies
+ // removeEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CONNECTION_HANDLES_ROLE);
+ }
+
+ /**
+ * Papyrus codeGen
+ *
+ * @generated
+ **/
+ protected void handleNotificationEvent(Notification event) {
+ super.handleNotificationEvent(event);
+
+ }
+
+ /**
+ * @generated
+ */
+ protected LayoutEditPolicy createLayoutEditPolicy() {
+ org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy lep = new org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy() {
+
+ protected EditPolicy createChildEditPolicy(EditPart child) {
+ EditPolicy result = child.getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(result == null) {
+ result = new NonResizableEditPolicy();
+ }
+ return result;
+ }
+
+ protected Command getMoveChildrenCommand(Request request) {
+ return null;
+ }
+
+ protected Command getCreateCommand(CreateRequest request) {
+ return null;
+ }
+ };
+ return lep;
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createNodeShape() {
+ return primaryShape = new ConstraintFigure();
+ }
+
+ /**
+ * @generated
+ */
+ public ConstraintFigure getPrimaryShape() {
+ return (ConstraintFigure)primaryShape;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean addFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof TimeConstraintNameEditPart) {
+ ((TimeConstraintNameEditPart)childEditPart).setLabel(getPrimaryShape().getNameLabel());
+ return true;
+ }
+ if(childEditPart instanceof TimeConstraintSpecificationEditPart) {
+ ((TimeConstraintSpecificationEditPart)childEditPart).setLabel(getPrimaryShape().getConstraintFigure());
+ return true;
+ }
+
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean removeFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof TimeConstraintNameEditPart) {
+ return true;
+ }
+ if(childEditPart instanceof TimeConstraintSpecificationEditPart) {
+ return true;
+ }
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected void addChildVisual(EditPart childEditPart, int index) {
+ if(addFixedChild(childEditPart)) {
+ return;
+ }
+ super.addChildVisual(childEditPart, -1);
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeChildVisual(EditPart childEditPart) {
+ if(removeFixedChild(childEditPart)) {
+ return;
+ }
+ super.removeChildVisual(childEditPart);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure getContentPaneFor(IGraphicalEditPart editPart) {
+ return getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ protected NodeFigure createNodePlate() {
+ String prefElementId = "TimeConstraint";
+ IPreferenceStore store = UMLDiagramEditorPlugin.getInstance().getPreferenceStore();
+ String preferenceConstantWitdh = PreferenceInitializerForElementHelper.getpreferenceKey(getNotationView(), prefElementId, PreferenceConstantHelper.WIDTH);
+ String preferenceConstantHeight = PreferenceInitializerForElementHelper.getpreferenceKey(getNotationView(), prefElementId, PreferenceConstantHelper.HEIGHT);
+ DefaultSizeNodeFigure result = new DefaultSizeNodeFigure(store.getInt(preferenceConstantWitdh), store.getInt(preferenceConstantHeight));
+
+ return result;
+ }
+
+ /**
+ * Creates figure for this edit part.
+ *
+ * Body of this method does not depend on settings in generation model
+ * so you may safely remove <i>generated</i> tag and modify it.
+ *
+ * @generated
+ */
+ protected NodeFigure createNodeFigure() {
+ NodeFigure figure = createNodePlate();
+ figure.setLayoutManager(new StackLayout());
+ IFigure shape = createNodeShape();
+ figure.add(shape);
+ contentPane = setupContentPane(shape);
+ return figure;
+ }
+
+ /**
+ * Default implementation treats passed figure as content pane.
+ * Respects layout one may have set for generated figure.
+ *
+ * @param nodeShape
+ * instance of generated figure class
+ * @generated
+ */
+ protected IFigure setupContentPane(IFigure nodeShape) {
+ if(nodeShape.getLayoutManager() == null) {
+ ConstrainedToolbarLayout layout = new ConstrainedToolbarLayout();
+ layout.setSpacing(5);
+ nodeShape.setLayoutManager(layout);
+ }
+ return nodeShape; // use nodeShape itself as contentPane
+ }
+
+ /**
+ * @generated
+ */
+ public IFigure getContentPane() {
+ if(contentPane != null) {
+ return contentPane;
+ }
+ return super.getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ protected void setForegroundColor(Color color) {
+ if(primaryShape != null) {
+ primaryShape.setForegroundColor(color);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLineWidth(int width) {
+ if(primaryShape instanceof Shape) {
+ ((Shape)primaryShape).setLineWidth(width);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLineType(int style) {
+ if(primaryShape instanceof Shape) {
+ ((Shape)primaryShape).setLineStyle(style);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public EditPart getPrimaryChildEditPart() {
+ return getChildBySemanticHint(UMLVisualIDRegistry.getType(TimeConstraintNameEditPart.VISUAL_ID));
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnSource() {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(12);
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ types.add(UMLElementTypes.Substitution_4011);
+ types.add(UMLElementTypes.Realization_4006);
+ types.add(UMLElementTypes.Manifestation_4012);
+ types.add(UMLElementTypes.Abstraction_4007);
+ types.add(UMLElementTypes.Usage_4008);
+ types.add(UMLElementTypes.Deployment_4009);
+ types.add(UMLElementTypes.Dependency_4017);
+ types.add(UMLElementTypes.Dependency_4010);
+ types.add(UMLElementTypes.InformationFlow_4021);
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnSourceAndTarget(IGraphicalEditPart targetEditPart) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof CommentEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.TimeConstraintEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof CommentEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.TimeConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.TimeConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.TimeConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMATypesForTarget(IElementType relationshipType) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(relationshipType == UMLElementTypes.ConstraintConstrainedElement_4003) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.Comment_2109);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.Comment_3097);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.ComponentRealization_4004) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InterfaceRealization_4005) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Substitution_4011) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Realization_4006) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Manifestation_4012) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Abstraction_4007) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Usage_4008) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Deployment_4009) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4017) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4010) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InformationFlow_4021) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnTarget() {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(15);
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ types.add(UMLElementTypes.Substitution_4011);
+ types.add(UMLElementTypes.Realization_4006);
+ types.add(UMLElementTypes.Manifestation_4012);
+ types.add(UMLElementTypes.Abstraction_4007);
+ types.add(UMLElementTypes.Usage_4008);
+ types.add(UMLElementTypes.Deployment_4009);
+ types.add(UMLElementTypes.Dependency_4017);
+ types.add(UMLElementTypes.Dependency_4010);
+ types.add(UMLElementTypes.TimeObservationEvent_4018);
+ types.add(UMLElementTypes.DurationObservationEvent_4019);
+ types.add(UMLElementTypes.InformationFlow_4021);
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMATypesForSource(IElementType relationshipType) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(relationshipType == UMLElementTypes.CommentAnnotatedElement_4002) {
+ types.add(UMLElementTypes.Comment_2109);
+ types.add(UMLElementTypes.Comment_3097);
+ } else if(relationshipType == UMLElementTypes.ConstraintConstrainedElement_4003) {
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.ComponentRealization_4004) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InterfaceRealization_4005) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Substitution_4011) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Realization_4006) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Manifestation_4012) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Abstraction_4007) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Usage_4008) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Deployment_4009) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4017) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4010) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.TimeObservationEvent_4018) {
+ types.add(UMLElementTypes.TimeObservation_2094);
+ } else if(relationshipType == UMLElementTypes.DurationObservationEvent_4019) {
+ types.add(UMLElementTypes.DurationObservation_2093);
+ } else if(relationshipType == UMLElementTypes.InformationFlow_4021) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public Object getPreferredValue(EStructuralFeature feature) {
+ IPreferenceStore preferenceStore = (IPreferenceStore)getDiagramPreferencesHint().getPreferenceStore();
+ Object result = null;
+
+ if(feature == NotationPackage.eINSTANCE.getLineStyle_LineColor() || feature == NotationPackage.eINSTANCE.getFontStyle_FontColor() || feature == NotationPackage.eINSTANCE.getFillStyle_FillColor()) {
+ String prefColor = null;
+ if(feature == NotationPackage.eINSTANCE.getLineStyle_LineColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("TimeConstraint", PreferenceConstantHelper.COLOR_LINE);
+ } else if(feature == NotationPackage.eINSTANCE.getFontStyle_FontColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("TimeConstraint", PreferenceConstantHelper.COLOR_FONT);
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_FillColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("TimeConstraint", PreferenceConstantHelper.COLOR_FILL);
+ }
+ result = FigureUtilities.RGBToInteger(PreferenceConverter.getColor((IPreferenceStore)preferenceStore, prefColor));
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_Transparency() || feature == NotationPackage.eINSTANCE.getFillStyle_Gradient()) {
+ String prefGradient = PreferenceConstantHelper.getElementConstant("TimeConstraint", PreferenceConstantHelper.COLOR_GRADIENT);
+ GradientPreferenceConverter gradientPreferenceConverter = new GradientPreferenceConverter(preferenceStore.getString(prefGradient));
+ if(feature == NotationPackage.eINSTANCE.getFillStyle_Transparency()) {
+ result = new Integer(gradientPreferenceConverter.getTransparency());
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_Gradient()) {
+ result = gradientPreferenceConverter.getGradientData();
+ }
+ }
+
+ if(result == null) {
+ result = getStructuralFeatureValue(feature);
+ }
+ return result;
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/TimeConstraintEditPartCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/TimeConstraintEditPartCN.java
new file mode 100644
index 00000000000..59652f27ed0
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/TimeConstraintEditPartCN.java
@@ -0,0 +1,5461 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.ArrayList;
+import java.util.LinkedList;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Shape;
+import org.eclipse.draw2d.StackLayout;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EStructuralFeature;
+import org.eclipse.gef.EditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.editpolicies.LayoutEditPolicy;
+import org.eclipse.gef.editpolicies.NonResizableEditPolicy;
+import org.eclipse.gef.requests.CreateRequest;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.FigureUtilities;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.gef.ui.figures.DefaultSizeNodeFigure;
+import org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.jface.preference.PreferenceConverter;
+import org.eclipse.papyrus.diagram.common.editparts.AbstractConstraintEditPart;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.figure.node.ConstraintFigure;
+import org.eclipse.papyrus.diagram.common.helper.PreferenceInitializerForElementHelper;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.NoScrollClassifierResizableShapeEditPolicy;
+import org.eclipse.papyrus.diagram.composite.edit.policies.TimeConstraintItemSemanticEditPolicyCN;
+import org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorPlugin;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter;
+import org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper;
+import org.eclipse.swt.graphics.Color;
+
+/**
+ * @generated
+ */
+public class TimeConstraintEditPartCN extends
+
+AbstractConstraintEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 3117;
+
+ /**
+ * @generated
+ */
+ protected IFigure contentPane;
+
+ /**
+ * @generated
+ */
+ protected IFigure primaryShape;
+
+ /**
+ * @generated
+ */
+ public TimeConstraintEditPartCN(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new TimeConstraintItemSemanticEditPolicyCN());
+ installEditPolicy(EditPolicy.LAYOUT_ROLE, createLayoutEditPolicy());
+ installEditPolicy(AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeNodeLabelDisplayEditPolicy());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new NoScrollClassifierResizableShapeEditPolicy());
+ // XXX need an SCR to runtime to have another abstract superclass that would let children add reasonable editpolicies
+ // removeEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CONNECTION_HANDLES_ROLE);
+ }
+
+ /**
+ * Papyrus codeGen
+ *
+ * @generated
+ **/
+ protected void handleNotificationEvent(Notification event) {
+ super.handleNotificationEvent(event);
+
+ }
+
+ /**
+ * @generated
+ */
+ protected LayoutEditPolicy createLayoutEditPolicy() {
+ org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy lep = new org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy() {
+
+ protected EditPolicy createChildEditPolicy(EditPart child) {
+ EditPolicy result = child.getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(result == null) {
+ result = new NonResizableEditPolicy();
+ }
+ return result;
+ }
+
+ protected Command getMoveChildrenCommand(Request request) {
+ return null;
+ }
+
+ protected Command getCreateCommand(CreateRequest request) {
+ return null;
+ }
+ };
+ return lep;
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createNodeShape() {
+ return primaryShape = new ConstraintFigure();
+ }
+
+ /**
+ * @generated
+ */
+ public ConstraintFigure getPrimaryShape() {
+ return (ConstraintFigure)primaryShape;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean addFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof TimeConstraintNameEditPartCN) {
+ ((TimeConstraintNameEditPartCN)childEditPart).setLabel(getPrimaryShape().getNameLabel());
+ return true;
+ }
+ if(childEditPart instanceof TimeConstraintSpecificationEditPartCN) {
+ ((TimeConstraintSpecificationEditPartCN)childEditPart).setLabel(getPrimaryShape().getConstraintFigure());
+ return true;
+ }
+
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean removeFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof TimeConstraintNameEditPartCN) {
+ return true;
+ }
+ if(childEditPart instanceof TimeConstraintSpecificationEditPartCN) {
+ return true;
+ }
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected void addChildVisual(EditPart childEditPart, int index) {
+ if(addFixedChild(childEditPart)) {
+ return;
+ }
+ super.addChildVisual(childEditPart, -1);
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeChildVisual(EditPart childEditPart) {
+ if(removeFixedChild(childEditPart)) {
+ return;
+ }
+ super.removeChildVisual(childEditPart);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure getContentPaneFor(IGraphicalEditPart editPart) {
+ return getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ protected NodeFigure createNodePlate() {
+ String prefElementId = "TimeConstraint";
+ IPreferenceStore store = UMLDiagramEditorPlugin.getInstance().getPreferenceStore();
+ String preferenceConstantWitdh = PreferenceInitializerForElementHelper.getpreferenceKey(getNotationView(), prefElementId, PreferenceConstantHelper.WIDTH);
+ String preferenceConstantHeight = PreferenceInitializerForElementHelper.getpreferenceKey(getNotationView(), prefElementId, PreferenceConstantHelper.HEIGHT);
+ DefaultSizeNodeFigure result = new DefaultSizeNodeFigure(store.getInt(preferenceConstantWitdh), store.getInt(preferenceConstantHeight));
+
+ return result;
+ }
+
+ /**
+ * Creates figure for this edit part.
+ *
+ * Body of this method does not depend on settings in generation model
+ * so you may safely remove <i>generated</i> tag and modify it.
+ *
+ * @generated
+ */
+ protected NodeFigure createNodeFigure() {
+ NodeFigure figure = createNodePlate();
+ figure.setLayoutManager(new StackLayout());
+ IFigure shape = createNodeShape();
+ figure.add(shape);
+ contentPane = setupContentPane(shape);
+ return figure;
+ }
+
+ /**
+ * Default implementation treats passed figure as content pane.
+ * Respects layout one may have set for generated figure.
+ *
+ * @param nodeShape
+ * instance of generated figure class
+ * @generated
+ */
+ protected IFigure setupContentPane(IFigure nodeShape) {
+ if(nodeShape.getLayoutManager() == null) {
+ ConstrainedToolbarLayout layout = new ConstrainedToolbarLayout();
+ layout.setSpacing(5);
+ nodeShape.setLayoutManager(layout);
+ }
+ return nodeShape; // use nodeShape itself as contentPane
+ }
+
+ /**
+ * @generated
+ */
+ public IFigure getContentPane() {
+ if(contentPane != null) {
+ return contentPane;
+ }
+ return super.getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ protected void setForegroundColor(Color color) {
+ if(primaryShape != null) {
+ primaryShape.setForegroundColor(color);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLineWidth(int width) {
+ if(primaryShape instanceof Shape) {
+ ((Shape)primaryShape).setLineWidth(width);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLineType(int style) {
+ if(primaryShape instanceof Shape) {
+ ((Shape)primaryShape).setLineStyle(style);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public EditPart getPrimaryChildEditPart() {
+ return getChildBySemanticHint(UMLVisualIDRegistry.getType(TimeConstraintNameEditPartCN.VISUAL_ID));
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnSource() {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(12);
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ types.add(UMLElementTypes.Substitution_4011);
+ types.add(UMLElementTypes.Realization_4006);
+ types.add(UMLElementTypes.Manifestation_4012);
+ types.add(UMLElementTypes.Abstraction_4007);
+ types.add(UMLElementTypes.Usage_4008);
+ types.add(UMLElementTypes.Deployment_4009);
+ types.add(UMLElementTypes.Dependency_4017);
+ types.add(UMLElementTypes.Dependency_4010);
+ types.add(UMLElementTypes.InformationFlow_4021);
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnSourceAndTarget(IGraphicalEditPart targetEditPart) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof CommentEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof CommentEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMATypesForTarget(IElementType relationshipType) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(relationshipType == UMLElementTypes.ConstraintConstrainedElement_4003) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.Comment_2109);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.Comment_3097);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.ComponentRealization_4004) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InterfaceRealization_4005) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Substitution_4011) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Realization_4006) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Manifestation_4012) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Abstraction_4007) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Usage_4008) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Deployment_4009) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4017) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4010) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InformationFlow_4021) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnTarget() {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(15);
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ types.add(UMLElementTypes.Substitution_4011);
+ types.add(UMLElementTypes.Realization_4006);
+ types.add(UMLElementTypes.Manifestation_4012);
+ types.add(UMLElementTypes.Abstraction_4007);
+ types.add(UMLElementTypes.Usage_4008);
+ types.add(UMLElementTypes.Deployment_4009);
+ types.add(UMLElementTypes.Dependency_4017);
+ types.add(UMLElementTypes.Dependency_4010);
+ types.add(UMLElementTypes.TimeObservationEvent_4018);
+ types.add(UMLElementTypes.DurationObservationEvent_4019);
+ types.add(UMLElementTypes.InformationFlow_4021);
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMATypesForSource(IElementType relationshipType) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(relationshipType == UMLElementTypes.CommentAnnotatedElement_4002) {
+ types.add(UMLElementTypes.Comment_2109);
+ types.add(UMLElementTypes.Comment_3097);
+ } else if(relationshipType == UMLElementTypes.ConstraintConstrainedElement_4003) {
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.ComponentRealization_4004) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InterfaceRealization_4005) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Substitution_4011) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Realization_4006) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Manifestation_4012) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Abstraction_4007) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Usage_4008) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Deployment_4009) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4017) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4010) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.TimeObservationEvent_4018) {
+ types.add(UMLElementTypes.TimeObservation_2094);
+ } else if(relationshipType == UMLElementTypes.DurationObservationEvent_4019) {
+ types.add(UMLElementTypes.DurationObservation_2093);
+ } else if(relationshipType == UMLElementTypes.InformationFlow_4021) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public Object getPreferredValue(EStructuralFeature feature) {
+ IPreferenceStore preferenceStore = (IPreferenceStore)getDiagramPreferencesHint().getPreferenceStore();
+ Object result = null;
+
+ if(feature == NotationPackage.eINSTANCE.getLineStyle_LineColor() || feature == NotationPackage.eINSTANCE.getFontStyle_FontColor() || feature == NotationPackage.eINSTANCE.getFillStyle_FillColor()) {
+ String prefColor = null;
+ if(feature == NotationPackage.eINSTANCE.getLineStyle_LineColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("TimeConstraint", PreferenceConstantHelper.COLOR_LINE);
+ } else if(feature == NotationPackage.eINSTANCE.getFontStyle_FontColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("TimeConstraint", PreferenceConstantHelper.COLOR_FONT);
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_FillColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("TimeConstraint", PreferenceConstantHelper.COLOR_FILL);
+ }
+ result = FigureUtilities.RGBToInteger(PreferenceConverter.getColor((IPreferenceStore)preferenceStore, prefColor));
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_Transparency() || feature == NotationPackage.eINSTANCE.getFillStyle_Gradient()) {
+ String prefGradient = PreferenceConstantHelper.getElementConstant("TimeConstraint", PreferenceConstantHelper.COLOR_GRADIENT);
+ GradientPreferenceConverter gradientPreferenceConverter = new GradientPreferenceConverter(preferenceStore.getString(prefGradient));
+ if(feature == NotationPackage.eINSTANCE.getFillStyle_Transparency()) {
+ result = new Integer(gradientPreferenceConverter.getTransparency());
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_Gradient()) {
+ result = gradientPreferenceConverter.getGradientData();
+ }
+ }
+
+ if(result == null) {
+ result = getStructuralFeatureValue(feature);
+ }
+ return result;
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/TimeConstraintNameEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/TimeConstraintNameEditPart.java
new file mode 100644
index 00000000000..9117f161ee1
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/TimeConstraintNameEditPart.java
@@ -0,0 +1,791 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EAnnotation;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.emf.transaction.RunnableWithResult;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.AccessibleEditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.requests.DirectEditRequest;
+import org.eclipse.gef.tools.DirectEditManager;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.CompartmentEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
+import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
+import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
+import org.eclipse.gmf.runtime.notation.FontStyle;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
+import org.eclipse.jface.viewers.ICellEditorValidator;
+import org.eclipse.jface.window.Window;
+import org.eclipse.papyrus.diagram.common.directedit.MultilineLabelDirectEditManager;
+import org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition;
+import org.eclipse.papyrus.diagram.common.editpolicies.IMaskManagedLabelEditPolicy;
+import org.eclipse.papyrus.diagram.common.figure.node.ILabelFigure;
+import org.eclipse.papyrus.diagram.common.util.DiagramEditPartsUtil;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLTextSelectionEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.diagram.composite.providers.UMLParserProvider;
+import org.eclipse.papyrus.extensionpoints.editors.Activator;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
+import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
+import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
+import org.eclipse.papyrus.umlutils.ui.VisualInformationPapyrusConstant;
+import org.eclipse.papyrus.umlutils.ui.helper.NameLabelIconHelper;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.AccessibleEvent;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.FontData;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.ui.PlatformUI;
+
+/**
+ * @generated
+ */
+public class TimeConstraintNameEditPart extends CompartmentEditPart implements ITextAwareEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 5194;
+
+ /**
+ * @generated
+ */
+ private DirectEditManager manager;
+
+ /**
+ * @generated
+ */
+ private IParser parser;
+
+ /**
+ * @generated
+ */
+ private List<?> parserElements;
+
+ /**
+ * @generated
+ */
+ private String defaultText;
+
+ /**
+ * direct edition mode (default, undefined, registered editor, etc.)
+ *
+ * @generated
+ */
+ protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
+
+ /**
+ * configuration from a registered edit dialog
+ *
+ * @generated
+ */
+ protected IDirectEditorConfiguration configuration;
+
+ /**
+ * @generated
+ */
+ public TimeConstraintNameEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
+ installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new CompositeStructureDiagramEditPart.NodeLabelDragPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelTextHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getText();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getText();
+ } else {
+ return ((Label)figure).getText();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelTextHelper(IFigure figure, String text) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setText(text);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setText(text);
+ } else {
+ ((Label)figure).setText(text);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIconHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getIcon();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getIcon();
+ } else {
+ return ((Label)figure).getIcon();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelIconHelper(IFigure figure, Image icon) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setIcon(icon);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setIcon(icon);
+ } else {
+ ((Label)figure).setIcon(icon);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabel(WrappingLabel figure) {
+ unregisterVisuals();
+ setFigure(figure);
+ defaultText = getLabelTextHelper(figure);
+ registerVisuals();
+ refreshVisuals();
+ }
+
+ /**
+ * @generated
+ */
+ protected List getModelChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject getParserElement() {
+ return resolveSemanticElement();
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIcon() {
+ EObject parserElement = getParserElement();
+ if(parserElement == null) {
+ return null;
+ }
+
+ List<View> views = DiagramEditPartsUtil.findViews(parserElement, getViewer());
+ for(View view : views) {
+ if(NameLabelIconHelper.showLabelIcon(view)) {
+ return UMLElementTypes.getImage(parserElement.eClass());
+ }
+ }
+ return null;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelText() {
+ String text = null;
+ EObject parserElement = getParserElement();
+ if(parserElement != null && getParser() != null) {
+ text = getParser().getPrintString(new EObjectAdapter(parserElement), getParserOptions().intValue());
+ }
+ if(text == null || text.length() == 0) {
+ text = defaultText;
+ }
+ return text;
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabelText(String text) {
+ setLabelTextHelper(getFigure(), text);
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public String getEditText() {
+ if(getParserElement() == null || getParser() == null) {
+ return ""; //$NON-NLS-1$
+ }
+ return getParser().getEditString(new EObjectAdapter(getParserElement()), getParserOptions().intValue());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean isEditable() {
+ return getParser() != null;
+ }
+
+ /**
+ * @generated
+ */
+ public ICellEditorValidator getEditTextValidator() {
+ return new ICellEditorValidator() {
+
+ public String isValid(final Object value) {
+ if(value instanceof String) {
+ final EObject element = getParserElement();
+ final IParser parser = getParser();
+ try {
+ IParserEditStatus valid = (IParserEditStatus)getEditingDomain().runExclusive(new RunnableWithResult.Impl() {
+
+ public void run() {
+ setResult(parser.isValidEditString(new EObjectAdapter(element), (String)value));
+ }
+ });
+ return valid.getCode() == ParserEditStatus.EDITABLE ? null : valid.getMessage();
+ } catch (InterruptedException ie) {
+ ie.printStackTrace();
+ }
+ }
+
+ // shouldn't get here
+ return null;
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ public IContentAssistProcessor getCompletionProcessor() {
+ if(getParserElement() == null || getParser() == null) {
+ return null;
+ }
+ return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
+ }
+
+ /**
+ * @generated
+ */
+ public ParserOptions getParserOptions() {
+ return ParserOptions.NONE;
+ }
+
+ /**
+ * @generated
+ */
+ public IParser getParser() {
+ if(parser == null) {
+ parser = UMLParserProvider.getParser(UMLElementTypes.TimeConstraint_2111, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.diagram.composite.edit.parts.TimeConstraintNameEditPart.VISUAL_ID));
+ }
+ return parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected DirectEditManager getManager() {
+ if(manager == null) {
+ setManager(new MultilineLabelDirectEditManager(this, MultilineLabelDirectEditManager.getTextCellEditorClass(this), UMLEditPartFactory.getTextCellEditorLocator(this)));
+ }
+ return manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setManager(DirectEditManager manager) {
+ this.manager = manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit() {
+ getManager().show();
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit(Point eventLocation) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(eventLocation.getSWTPoint());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void performDirectEdit(char initialCharacter) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(initialCharacter);
+ } else {
+ performDirectEdit();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEditRequest(Request request) {
+
+ final Request theRequest = request;
+
+ if(IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
+ directEditionMode = getDirectEditionType();
+ }
+ switch(directEditionMode) {
+ case IDirectEdition.NO_DIRECT_EDITION:
+ // no direct edition mode => does nothing
+ return;
+ case IDirectEdition.EXTENDED_DIRECT_EDITOR:
+ updateExtendedEditorConfiguration();
+ if(configuration == null || configuration.getLanguage() == null) {
+ performDefaultDirectEditorEdit(theRequest);
+ } else {
+ configuration.preEditAction(resolveSemanticElement());
+ Dialog dialog = null;
+ if(configuration instanceof IPopupEditorConfiguration) {
+ IPopupEditorHelper helper = ((IPopupEditorConfiguration)configuration).createPopupEditorHelper(this);
+ helper.showEditor();
+ return;
+ } else if(configuration instanceof IAdvancedEditorConfiguration) {
+ dialog = ((IAdvancedEditorConfiguration)configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
+ } else if(configuration instanceof IDirectEditorConfiguration) {
+ dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), ((IDirectEditorConfiguration)configuration).getTextToEdit(resolveSemanticElement()), (IDirectEditorConfiguration)configuration);
+ } else {
+ return;
+ }
+ final Dialog finalDialog = dialog;
+
+ if(Window.OK == dialog.open()) {
+ TransactionalEditingDomain domain = getEditingDomain();
+ RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
+
+ @Override
+ protected void doExecute() {
+ configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog)finalDialog).getValue());
+
+ }
+ };
+ domain.getCommandStack().execute(command);
+ }
+ }
+ break;
+ case IDirectEdition.DEFAULT_DIRECT_EDITOR:
+
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ break;
+ default:
+ break;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshLabel();
+ refreshFont();
+ refreshFontColor();
+ refreshUnderline();
+ refreshStrikeThrough();
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshLabel() {
+ EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
+ if(maskLabelPolicy == null) {
+ setLabelTextHelper(getFigure(), getLabelText());
+ setLabelIconHelper(getFigure(), getLabelIcon());
+ }
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshUnderline() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextUnderline(style.isUnderline());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshStrikeThrough() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextStrikeThrough(style.isStrikeThrough());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshFont() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null) {
+ FontData fontData = new FontData(style.getFontName(), style.getFontHeight(), (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
+ setFont(fontData);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setFontColor(Color color) {
+ getFigure().setForegroundColor(color);
+ }
+
+ /**
+ * @generated
+ */
+ protected void addSemanticListeners() {
+ if(getParser() instanceof ISemanticParser) {
+ EObject element = resolveSemanticElement();
+ parserElements = ((ISemanticParser)getParser()).getSemanticElementsBeingParsed(element);
+ for(int i = 0; i < parserElements.size(); i++) {
+ addListenerFilter("SemanticModel" + i, this, (EObject)parserElements.get(i)); //$NON-NLS-1$
+ }
+ } else {
+ super.addSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeSemanticListeners() {
+ if(parserElements != null) {
+ for(int i = 0; i < parserElements.size(); i++) {
+ removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
+ }
+ } else {
+ super.removeSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected AccessibleEditPart getAccessibleEditPart() {
+ if(accessibleEP == null) {
+ accessibleEP = new AccessibleGraphicalEditPart() {
+
+ public void getName(AccessibleEvent e) {
+ e.result = getLabelTextHelper(getFigure());
+ }
+ };
+ }
+ return accessibleEP;
+ }
+
+ /**
+ * @generated
+ */
+ private View getFontStyleOwnerView() {
+ return (View)getModel();
+ }
+
+ /**
+ * Returns the kind of associated editor for direct edition.
+ *
+ * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition
+ * @generated
+ */
+ public int getDirectEditionType() {
+ if(checkExtendedEditor()) {
+ initExtendedEditorConfiguration();
+ return IDirectEdition.EXTENDED_DIRECT_EDITOR;
+ }
+ if(checkDefaultEdition()) {
+ return IDirectEdition.DEFAULT_DIRECT_EDITOR;
+ }
+
+ // not a named element. no specific editor => do nothing
+ return IDirectEdition.NO_DIRECT_EDITION;
+ }
+
+ /**
+ * Checks if an extended editor is present.
+ *
+ * @return <code>true</code> if an extended editor is present.
+ * @generated
+ */
+ protected boolean checkExtendedEditor() {
+ if(resolveSemanticElement() != null) {
+ return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ return false;
+ }
+
+ /**
+ * Checks if a default direct edition is available
+ *
+ * @return <code>true</code> if a default direct edition is available
+ * @generated
+ */
+ protected boolean checkDefaultEdition() {
+ return (getParser() != null);
+ }
+
+ /**
+ * Initializes the extended editor configuration
+ *
+ * @generated
+ */
+ protected void initExtendedEditorConfiguration() {
+ if(configuration == null) {
+ final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("")) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else {
+ configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ }
+ }
+
+ /**
+ * Updates the preference configuration
+ *
+ * @generated
+ */
+ protected void updateExtendedEditorConfiguration() {
+ String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("") && languagePreferred != configuration.getLanguage()) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else if(IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
+ configuration = null;
+ }
+ }
+
+ /**
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
+ protected void performDefaultDirectEditorEdit(final Request theRequest) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void addNotationalListeners() {
+ super.addNotationalListeners();
+ addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeNotationalListeners() {
+ super.removeNotationalListeners();
+ removeListenerFilter("PrimaryView"); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void handleNotificationEvent(Notification event) {
+ refreshLabel();
+ Object feature = event.getFeature();
+ if(NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
+ Integer c = (Integer)event.getNewValue();
+ setFontColor(DiagramColorRegistry.getInstance().getColor(c));
+ } else if(NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
+ refreshUnderline();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
+ refreshStrikeThrough();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
+ refreshFont();
+ } else {
+ if(getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
+ refreshLabel();
+ }
+ if(getParser() instanceof ISemanticParser) {
+ ISemanticParser modelParser = (ISemanticParser)getParser();
+ if(modelParser.areSemanticElementsAffected(null, event)) {
+ removeSemanticListeners();
+ if(resolveSemanticElement() != null) {
+ addSemanticListeners();
+ }
+ refreshLabel();
+ }
+ }
+ }
+
+ if(event.getNewValue() instanceof EAnnotation && VisualInformationPapyrusConstant.DISPLAY_NAMELABELICON.equals(((EAnnotation)event.getNewValue()).getSource())) {
+ refreshLabel();
+ }
+
+ super.handleNotificationEvent(event);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createFigure() {
+ // Parent should assign one using setLabel() method
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ private static final String ADD_PARENT_MODEL = "AddParentModel";
+
+ /**
+ * @generated
+ */
+ public void activate() {
+ super.activate();
+ addOwnerElementListeners();
+ }
+
+ /**
+ * @generated
+ */
+ protected void addOwnerElementListeners() {
+ addListenerFilter(ADD_PARENT_MODEL, this, ((View)getParent().getModel())); //$NON-NLS-1$
+
+ }
+
+ /**
+ * @generated
+ */
+ public void deactivate() {
+ removeOwnerElementListeners();
+ super.deactivate();
+
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeOwnerElementListeners() {
+ removeListenerFilter(ADD_PARENT_MODEL);
+
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/TimeConstraintNameEditPartCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/TimeConstraintNameEditPartCN.java
new file mode 100644
index 00000000000..d5ce43b9856
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/TimeConstraintNameEditPartCN.java
@@ -0,0 +1,791 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EAnnotation;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.emf.transaction.RunnableWithResult;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.AccessibleEditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.requests.DirectEditRequest;
+import org.eclipse.gef.tools.DirectEditManager;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.CompartmentEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
+import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
+import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
+import org.eclipse.gmf.runtime.notation.FontStyle;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
+import org.eclipse.jface.viewers.ICellEditorValidator;
+import org.eclipse.jface.window.Window;
+import org.eclipse.papyrus.diagram.common.directedit.MultilineLabelDirectEditManager;
+import org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition;
+import org.eclipse.papyrus.diagram.common.editpolicies.IMaskManagedLabelEditPolicy;
+import org.eclipse.papyrus.diagram.common.figure.node.ILabelFigure;
+import org.eclipse.papyrus.diagram.common.util.DiagramEditPartsUtil;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLTextSelectionEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.diagram.composite.providers.UMLParserProvider;
+import org.eclipse.papyrus.extensionpoints.editors.Activator;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
+import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
+import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
+import org.eclipse.papyrus.umlutils.ui.VisualInformationPapyrusConstant;
+import org.eclipse.papyrus.umlutils.ui.helper.NameLabelIconHelper;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.AccessibleEvent;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.FontData;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.ui.PlatformUI;
+
+/**
+ * @generated
+ */
+public class TimeConstraintNameEditPartCN extends CompartmentEditPart implements ITextAwareEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 6042;
+
+ /**
+ * @generated
+ */
+ private DirectEditManager manager;
+
+ /**
+ * @generated
+ */
+ private IParser parser;
+
+ /**
+ * @generated
+ */
+ private List<?> parserElements;
+
+ /**
+ * @generated
+ */
+ private String defaultText;
+
+ /**
+ * direct edition mode (default, undefined, registered editor, etc.)
+ *
+ * @generated
+ */
+ protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
+
+ /**
+ * configuration from a registered edit dialog
+ *
+ * @generated
+ */
+ protected IDirectEditorConfiguration configuration;
+
+ /**
+ * @generated
+ */
+ public TimeConstraintNameEditPartCN(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
+ installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new CompositeStructureDiagramEditPart.NodeLabelDragPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelTextHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getText();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getText();
+ } else {
+ return ((Label)figure).getText();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelTextHelper(IFigure figure, String text) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setText(text);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setText(text);
+ } else {
+ ((Label)figure).setText(text);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIconHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getIcon();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getIcon();
+ } else {
+ return ((Label)figure).getIcon();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelIconHelper(IFigure figure, Image icon) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setIcon(icon);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setIcon(icon);
+ } else {
+ ((Label)figure).setIcon(icon);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabel(WrappingLabel figure) {
+ unregisterVisuals();
+ setFigure(figure);
+ defaultText = getLabelTextHelper(figure);
+ registerVisuals();
+ refreshVisuals();
+ }
+
+ /**
+ * @generated
+ */
+ protected List getModelChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject getParserElement() {
+ return resolveSemanticElement();
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIcon() {
+ EObject parserElement = getParserElement();
+ if(parserElement == null) {
+ return null;
+ }
+
+ List<View> views = DiagramEditPartsUtil.findViews(parserElement, getViewer());
+ for(View view : views) {
+ if(NameLabelIconHelper.showLabelIcon(view)) {
+ return UMLElementTypes.getImage(parserElement.eClass());
+ }
+ }
+ return null;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelText() {
+ String text = null;
+ EObject parserElement = getParserElement();
+ if(parserElement != null && getParser() != null) {
+ text = getParser().getPrintString(new EObjectAdapter(parserElement), getParserOptions().intValue());
+ }
+ if(text == null || text.length() == 0) {
+ text = defaultText;
+ }
+ return text;
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabelText(String text) {
+ setLabelTextHelper(getFigure(), text);
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public String getEditText() {
+ if(getParserElement() == null || getParser() == null) {
+ return ""; //$NON-NLS-1$
+ }
+ return getParser().getEditString(new EObjectAdapter(getParserElement()), getParserOptions().intValue());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean isEditable() {
+ return getParser() != null;
+ }
+
+ /**
+ * @generated
+ */
+ public ICellEditorValidator getEditTextValidator() {
+ return new ICellEditorValidator() {
+
+ public String isValid(final Object value) {
+ if(value instanceof String) {
+ final EObject element = getParserElement();
+ final IParser parser = getParser();
+ try {
+ IParserEditStatus valid = (IParserEditStatus)getEditingDomain().runExclusive(new RunnableWithResult.Impl() {
+
+ public void run() {
+ setResult(parser.isValidEditString(new EObjectAdapter(element), (String)value));
+ }
+ });
+ return valid.getCode() == ParserEditStatus.EDITABLE ? null : valid.getMessage();
+ } catch (InterruptedException ie) {
+ ie.printStackTrace();
+ }
+ }
+
+ // shouldn't get here
+ return null;
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ public IContentAssistProcessor getCompletionProcessor() {
+ if(getParserElement() == null || getParser() == null) {
+ return null;
+ }
+ return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
+ }
+
+ /**
+ * @generated
+ */
+ public ParserOptions getParserOptions() {
+ return ParserOptions.NONE;
+ }
+
+ /**
+ * @generated
+ */
+ public IParser getParser() {
+ if(parser == null) {
+ parser = UMLParserProvider.getParser(UMLElementTypes.TimeConstraint_3117, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.diagram.composite.edit.parts.TimeConstraintNameEditPartCN.VISUAL_ID));
+ }
+ return parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected DirectEditManager getManager() {
+ if(manager == null) {
+ setManager(new MultilineLabelDirectEditManager(this, MultilineLabelDirectEditManager.getTextCellEditorClass(this), UMLEditPartFactory.getTextCellEditorLocator(this)));
+ }
+ return manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setManager(DirectEditManager manager) {
+ this.manager = manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit() {
+ getManager().show();
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit(Point eventLocation) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(eventLocation.getSWTPoint());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void performDirectEdit(char initialCharacter) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(initialCharacter);
+ } else {
+ performDirectEdit();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEditRequest(Request request) {
+
+ final Request theRequest = request;
+
+ if(IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
+ directEditionMode = getDirectEditionType();
+ }
+ switch(directEditionMode) {
+ case IDirectEdition.NO_DIRECT_EDITION:
+ // no direct edition mode => does nothing
+ return;
+ case IDirectEdition.EXTENDED_DIRECT_EDITOR:
+ updateExtendedEditorConfiguration();
+ if(configuration == null || configuration.getLanguage() == null) {
+ performDefaultDirectEditorEdit(theRequest);
+ } else {
+ configuration.preEditAction(resolveSemanticElement());
+ Dialog dialog = null;
+ if(configuration instanceof IPopupEditorConfiguration) {
+ IPopupEditorHelper helper = ((IPopupEditorConfiguration)configuration).createPopupEditorHelper(this);
+ helper.showEditor();
+ return;
+ } else if(configuration instanceof IAdvancedEditorConfiguration) {
+ dialog = ((IAdvancedEditorConfiguration)configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
+ } else if(configuration instanceof IDirectEditorConfiguration) {
+ dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), ((IDirectEditorConfiguration)configuration).getTextToEdit(resolveSemanticElement()), (IDirectEditorConfiguration)configuration);
+ } else {
+ return;
+ }
+ final Dialog finalDialog = dialog;
+
+ if(Window.OK == dialog.open()) {
+ TransactionalEditingDomain domain = getEditingDomain();
+ RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
+
+ @Override
+ protected void doExecute() {
+ configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog)finalDialog).getValue());
+
+ }
+ };
+ domain.getCommandStack().execute(command);
+ }
+ }
+ break;
+ case IDirectEdition.DEFAULT_DIRECT_EDITOR:
+
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ break;
+ default:
+ break;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshLabel();
+ refreshFont();
+ refreshFontColor();
+ refreshUnderline();
+ refreshStrikeThrough();
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshLabel() {
+ EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
+ if(maskLabelPolicy == null) {
+ setLabelTextHelper(getFigure(), getLabelText());
+ setLabelIconHelper(getFigure(), getLabelIcon());
+ }
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshUnderline() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextUnderline(style.isUnderline());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshStrikeThrough() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextStrikeThrough(style.isStrikeThrough());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshFont() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null) {
+ FontData fontData = new FontData(style.getFontName(), style.getFontHeight(), (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
+ setFont(fontData);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setFontColor(Color color) {
+ getFigure().setForegroundColor(color);
+ }
+
+ /**
+ * @generated
+ */
+ protected void addSemanticListeners() {
+ if(getParser() instanceof ISemanticParser) {
+ EObject element = resolveSemanticElement();
+ parserElements = ((ISemanticParser)getParser()).getSemanticElementsBeingParsed(element);
+ for(int i = 0; i < parserElements.size(); i++) {
+ addListenerFilter("SemanticModel" + i, this, (EObject)parserElements.get(i)); //$NON-NLS-1$
+ }
+ } else {
+ super.addSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeSemanticListeners() {
+ if(parserElements != null) {
+ for(int i = 0; i < parserElements.size(); i++) {
+ removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
+ }
+ } else {
+ super.removeSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected AccessibleEditPart getAccessibleEditPart() {
+ if(accessibleEP == null) {
+ accessibleEP = new AccessibleGraphicalEditPart() {
+
+ public void getName(AccessibleEvent e) {
+ e.result = getLabelTextHelper(getFigure());
+ }
+ };
+ }
+ return accessibleEP;
+ }
+
+ /**
+ * @generated
+ */
+ private View getFontStyleOwnerView() {
+ return (View)getModel();
+ }
+
+ /**
+ * Returns the kind of associated editor for direct edition.
+ *
+ * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition
+ * @generated
+ */
+ public int getDirectEditionType() {
+ if(checkExtendedEditor()) {
+ initExtendedEditorConfiguration();
+ return IDirectEdition.EXTENDED_DIRECT_EDITOR;
+ }
+ if(checkDefaultEdition()) {
+ return IDirectEdition.DEFAULT_DIRECT_EDITOR;
+ }
+
+ // not a named element. no specific editor => do nothing
+ return IDirectEdition.NO_DIRECT_EDITION;
+ }
+
+ /**
+ * Checks if an extended editor is present.
+ *
+ * @return <code>true</code> if an extended editor is present.
+ * @generated
+ */
+ protected boolean checkExtendedEditor() {
+ if(resolveSemanticElement() != null) {
+ return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ return false;
+ }
+
+ /**
+ * Checks if a default direct edition is available
+ *
+ * @return <code>true</code> if a default direct edition is available
+ * @generated
+ */
+ protected boolean checkDefaultEdition() {
+ return (getParser() != null);
+ }
+
+ /**
+ * Initializes the extended editor configuration
+ *
+ * @generated
+ */
+ protected void initExtendedEditorConfiguration() {
+ if(configuration == null) {
+ final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("")) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else {
+ configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ }
+ }
+
+ /**
+ * Updates the preference configuration
+ *
+ * @generated
+ */
+ protected void updateExtendedEditorConfiguration() {
+ String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("") && languagePreferred != configuration.getLanguage()) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else if(IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
+ configuration = null;
+ }
+ }
+
+ /**
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
+ protected void performDefaultDirectEditorEdit(final Request theRequest) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void addNotationalListeners() {
+ super.addNotationalListeners();
+ addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeNotationalListeners() {
+ super.removeNotationalListeners();
+ removeListenerFilter("PrimaryView"); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void handleNotificationEvent(Notification event) {
+ refreshLabel();
+ Object feature = event.getFeature();
+ if(NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
+ Integer c = (Integer)event.getNewValue();
+ setFontColor(DiagramColorRegistry.getInstance().getColor(c));
+ } else if(NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
+ refreshUnderline();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
+ refreshStrikeThrough();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
+ refreshFont();
+ } else {
+ if(getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
+ refreshLabel();
+ }
+ if(getParser() instanceof ISemanticParser) {
+ ISemanticParser modelParser = (ISemanticParser)getParser();
+ if(modelParser.areSemanticElementsAffected(null, event)) {
+ removeSemanticListeners();
+ if(resolveSemanticElement() != null) {
+ addSemanticListeners();
+ }
+ refreshLabel();
+ }
+ }
+ }
+
+ if(event.getNewValue() instanceof EAnnotation && VisualInformationPapyrusConstant.DISPLAY_NAMELABELICON.equals(((EAnnotation)event.getNewValue()).getSource())) {
+ refreshLabel();
+ }
+
+ super.handleNotificationEvent(event);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createFigure() {
+ // Parent should assign one using setLabel() method
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ private static final String ADD_PARENT_MODEL = "AddParentModel";
+
+ /**
+ * @generated
+ */
+ public void activate() {
+ super.activate();
+ addOwnerElementListeners();
+ }
+
+ /**
+ * @generated
+ */
+ protected void addOwnerElementListeners() {
+ addListenerFilter(ADD_PARENT_MODEL, this, ((View)getParent().getModel())); //$NON-NLS-1$
+
+ }
+
+ /**
+ * @generated
+ */
+ public void deactivate() {
+ removeOwnerElementListeners();
+ super.deactivate();
+
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeOwnerElementListeners() {
+ removeListenerFilter(ADD_PARENT_MODEL);
+
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/TimeConstraintSpecificationEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/TimeConstraintSpecificationEditPart.java
new file mode 100644
index 00000000000..dc221394500
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/TimeConstraintSpecificationEditPart.java
@@ -0,0 +1,772 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.emf.transaction.RunnableWithResult;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.AccessibleEditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.requests.DirectEditRequest;
+import org.eclipse.gef.tools.DirectEditManager;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.CompartmentEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
+import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
+import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
+import org.eclipse.gmf.runtime.notation.FontStyle;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
+import org.eclipse.jface.viewers.ICellEditorValidator;
+import org.eclipse.jface.window.Window;
+import org.eclipse.papyrus.diagram.common.directedit.MultilineLabelDirectEditManager;
+import org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition;
+import org.eclipse.papyrus.diagram.common.editpolicies.IMaskManagedLabelEditPolicy;
+import org.eclipse.papyrus.diagram.common.figure.node.ConstraintFigure;
+import org.eclipse.papyrus.diagram.common.figure.node.ILabelFigure;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLTextSelectionEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.diagram.composite.providers.UMLParserProvider;
+import org.eclipse.papyrus.extensionpoints.editors.Activator;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
+import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
+import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.AccessibleEvent;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.FontData;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.ui.PlatformUI;
+
+/**
+ * @generated
+ */
+public class TimeConstraintSpecificationEditPart extends CompartmentEditPart implements ITextAwareEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 6036;
+
+ /**
+ * @generated
+ */
+ private DirectEditManager manager;
+
+ /**
+ * @generated
+ */
+ private IParser parser;
+
+ /**
+ * @generated
+ */
+ private List<?> parserElements;
+
+ /**
+ * @generated
+ */
+ private String defaultText;
+
+ /**
+ * direct edition mode (default, undefined, registered editor, etc.)
+ *
+ * @generated
+ */
+ protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
+
+ /**
+ * configuration from a registered edit dialog
+ *
+ * @generated
+ */
+ protected IDirectEditorConfiguration configuration;
+
+ /**
+ * @generated
+ */
+ public TimeConstraintSpecificationEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
+ installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new CompositeStructureDiagramEditPart.NodeLabelDragPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelTextHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getText();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getText();
+ } else {
+ return ((Label)figure).getText();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelTextHelper(IFigure figure, String text) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setText(text);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setText(text);
+ } else {
+ ((Label)figure).setText(text);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIconHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getIcon();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getIcon();
+ } else {
+ return ((Label)figure).getIcon();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelIconHelper(IFigure figure, Image icon) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setIcon(icon);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setIcon(icon);
+ } else {
+ ((Label)figure).setIcon(icon);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabel(ConstraintFigure figure) {
+ unregisterVisuals();
+ setFigure(figure);
+ defaultText = getLabelTextHelper(figure);
+ registerVisuals();
+ refreshVisuals();
+ }
+
+ /**
+ * @generated
+ */
+ protected List getModelChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject getParserElement() {
+ return resolveSemanticElement();
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIcon() {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelText() {
+ String text = null;
+ EObject parserElement = getParserElement();
+ if(parserElement != null && getParser() != null) {
+ text = getParser().getPrintString(new EObjectAdapter(parserElement), getParserOptions().intValue());
+ }
+ if(text == null || text.length() == 0) {
+ text = defaultText;
+ }
+ return text;
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabelText(String text) {
+ setLabelTextHelper(getFigure(), text);
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public String getEditText() {
+ if(getParserElement() == null || getParser() == null) {
+ return ""; //$NON-NLS-1$
+ }
+ return getParser().getEditString(new EObjectAdapter(getParserElement()), getParserOptions().intValue());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean isEditable() {
+ return getParser() != null;
+ }
+
+ /**
+ * @generated
+ */
+ public ICellEditorValidator getEditTextValidator() {
+ return new ICellEditorValidator() {
+
+ public String isValid(final Object value) {
+ if(value instanceof String) {
+ final EObject element = getParserElement();
+ final IParser parser = getParser();
+ try {
+ IParserEditStatus valid = (IParserEditStatus)getEditingDomain().runExclusive(new RunnableWithResult.Impl() {
+
+ public void run() {
+ setResult(parser.isValidEditString(new EObjectAdapter(element), (String)value));
+ }
+ });
+ return valid.getCode() == ParserEditStatus.EDITABLE ? null : valid.getMessage();
+ } catch (InterruptedException ie) {
+ ie.printStackTrace();
+ }
+ }
+
+ // shouldn't get here
+ return null;
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ public IContentAssistProcessor getCompletionProcessor() {
+ if(getParserElement() == null || getParser() == null) {
+ return null;
+ }
+ return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
+ }
+
+ /**
+ * @generated
+ */
+ public ParserOptions getParserOptions() {
+ return ParserOptions.NONE;
+ }
+
+ /**
+ * @generated
+ */
+ public IParser getParser() {
+ if(parser == null) {
+ parser = UMLParserProvider.getParser(UMLElementTypes.TimeConstraint_2111, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.diagram.composite.edit.parts.TimeConstraintSpecificationEditPart.VISUAL_ID));
+ }
+ return parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected DirectEditManager getManager() {
+ if(manager == null) {
+ setManager(new MultilineLabelDirectEditManager(this, MultilineLabelDirectEditManager.getTextCellEditorClass(this), UMLEditPartFactory.getTextCellEditorLocator(this)));
+ }
+ return manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setManager(DirectEditManager manager) {
+ this.manager = manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit() {
+ getManager().show();
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit(Point eventLocation) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(eventLocation.getSWTPoint());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void performDirectEdit(char initialCharacter) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(initialCharacter);
+ } else {
+ performDirectEdit();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEditRequest(Request request) {
+
+ final Request theRequest = request;
+
+ if(IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
+ directEditionMode = getDirectEditionType();
+ }
+ switch(directEditionMode) {
+ case IDirectEdition.NO_DIRECT_EDITION:
+ // no direct edition mode => does nothing
+ return;
+ case IDirectEdition.EXTENDED_DIRECT_EDITOR:
+ updateExtendedEditorConfiguration();
+ if(configuration == null || configuration.getLanguage() == null) {
+ performDefaultDirectEditorEdit(theRequest);
+ } else {
+ configuration.preEditAction(resolveSemanticElement());
+ Dialog dialog = null;
+ if(configuration instanceof IPopupEditorConfiguration) {
+ IPopupEditorHelper helper = ((IPopupEditorConfiguration)configuration).createPopupEditorHelper(this);
+ helper.showEditor();
+ return;
+ } else if(configuration instanceof IAdvancedEditorConfiguration) {
+ dialog = ((IAdvancedEditorConfiguration)configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
+ } else if(configuration instanceof IDirectEditorConfiguration) {
+ dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), ((IDirectEditorConfiguration)configuration).getTextToEdit(resolveSemanticElement()), (IDirectEditorConfiguration)configuration);
+ } else {
+ return;
+ }
+ final Dialog finalDialog = dialog;
+
+ if(Window.OK == dialog.open()) {
+ TransactionalEditingDomain domain = getEditingDomain();
+ RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
+
+ @Override
+ protected void doExecute() {
+ configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog)finalDialog).getValue());
+
+ }
+ };
+ domain.getCommandStack().execute(command);
+ }
+ }
+ break;
+ case IDirectEdition.DEFAULT_DIRECT_EDITOR:
+
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ break;
+ default:
+ break;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshLabel();
+ refreshFont();
+ refreshFontColor();
+ refreshUnderline();
+ refreshStrikeThrough();
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshLabel() {
+ EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
+ if(maskLabelPolicy == null) {
+ setLabelTextHelper(getFigure(), getLabelText());
+ setLabelIconHelper(getFigure(), getLabelIcon());
+ }
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshUnderline() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextUnderline(style.isUnderline());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshStrikeThrough() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextStrikeThrough(style.isStrikeThrough());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshFont() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null) {
+ FontData fontData = new FontData(style.getFontName(), style.getFontHeight(), (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
+ setFont(fontData);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setFontColor(Color color) {
+ getFigure().setForegroundColor(color);
+ }
+
+ /**
+ * @generated
+ */
+ protected void addSemanticListeners() {
+ if(getParser() instanceof ISemanticParser) {
+ EObject element = resolveSemanticElement();
+ parserElements = ((ISemanticParser)getParser()).getSemanticElementsBeingParsed(element);
+ for(int i = 0; i < parserElements.size(); i++) {
+ addListenerFilter("SemanticModel" + i, this, (EObject)parserElements.get(i)); //$NON-NLS-1$
+ }
+ } else {
+ super.addSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeSemanticListeners() {
+ if(parserElements != null) {
+ for(int i = 0; i < parserElements.size(); i++) {
+ removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
+ }
+ } else {
+ super.removeSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected AccessibleEditPart getAccessibleEditPart() {
+ if(accessibleEP == null) {
+ accessibleEP = new AccessibleGraphicalEditPart() {
+
+ public void getName(AccessibleEvent e) {
+ e.result = getLabelTextHelper(getFigure());
+ }
+ };
+ }
+ return accessibleEP;
+ }
+
+ /**
+ * @generated
+ */
+ private View getFontStyleOwnerView() {
+ return getPrimaryView();
+ }
+
+ /**
+ * Returns the kind of associated editor for direct edition.
+ *
+ * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition
+ * @generated
+ */
+ public int getDirectEditionType() {
+ if(checkExtendedEditor()) {
+ initExtendedEditorConfiguration();
+ return IDirectEdition.EXTENDED_DIRECT_EDITOR;
+ }
+ if(checkDefaultEdition()) {
+ return IDirectEdition.DEFAULT_DIRECT_EDITOR;
+ }
+
+ // not a named element. no specific editor => do nothing
+ return IDirectEdition.NO_DIRECT_EDITION;
+ }
+
+ /**
+ * Checks if an extended editor is present.
+ *
+ * @return <code>true</code> if an extended editor is present.
+ * @generated
+ */
+ protected boolean checkExtendedEditor() {
+ if(resolveSemanticElement() != null) {
+ return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ return false;
+ }
+
+ /**
+ * Checks if a default direct edition is available
+ *
+ * @return <code>true</code> if a default direct edition is available
+ * @generated
+ */
+ protected boolean checkDefaultEdition() {
+ return (getParser() != null);
+ }
+
+ /**
+ * Initializes the extended editor configuration
+ *
+ * @generated
+ */
+ protected void initExtendedEditorConfiguration() {
+ if(configuration == null) {
+ final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("")) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else {
+ configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ }
+ }
+
+ /**
+ * Updates the preference configuration
+ *
+ * @generated
+ */
+ protected void updateExtendedEditorConfiguration() {
+ String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("") && languagePreferred != configuration.getLanguage()) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else if(IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
+ configuration = null;
+ }
+ }
+
+ /**
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
+ protected void performDefaultDirectEditorEdit(final Request theRequest) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void addNotationalListeners() {
+ super.addNotationalListeners();
+ addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeNotationalListeners() {
+ super.removeNotationalListeners();
+ removeListenerFilter("PrimaryView"); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void handleNotificationEvent(Notification event) {
+ refreshLabel();
+ Object feature = event.getFeature();
+ if(NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
+ Integer c = (Integer)event.getNewValue();
+ setFontColor(DiagramColorRegistry.getInstance().getColor(c));
+ } else if(NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
+ refreshUnderline();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
+ refreshStrikeThrough();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
+ refreshFont();
+ } else {
+ if(getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
+ refreshLabel();
+ }
+ if(getParser() instanceof ISemanticParser) {
+ ISemanticParser modelParser = (ISemanticParser)getParser();
+ if(modelParser.areSemanticElementsAffected(null, event)) {
+ removeSemanticListeners();
+ if(resolveSemanticElement() != null) {
+ addSemanticListeners();
+ }
+ refreshLabel();
+ }
+ }
+ }
+
+ super.handleNotificationEvent(event);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createFigure() {
+ // Parent should assign one using setLabel() method
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ private static final String ADD_PARENT_MODEL = "AddParentModel";
+
+ /**
+ * @generated
+ */
+ public void activate() {
+ super.activate();
+ addOwnerElementListeners();
+ }
+
+ /**
+ * @generated
+ */
+ protected void addOwnerElementListeners() {
+ addListenerFilter(ADD_PARENT_MODEL, this, ((View)getParent().getModel())); //$NON-NLS-1$
+
+ }
+
+ /**
+ * @generated
+ */
+ public void deactivate() {
+ removeOwnerElementListeners();
+ super.deactivate();
+
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeOwnerElementListeners() {
+ removeListenerFilter(ADD_PARENT_MODEL);
+
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/TimeConstraintSpecificationEditPartCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/TimeConstraintSpecificationEditPartCN.java
new file mode 100644
index 00000000000..7cc367b6825
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/TimeConstraintSpecificationEditPartCN.java
@@ -0,0 +1,772 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.emf.transaction.RunnableWithResult;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.AccessibleEditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.requests.DirectEditRequest;
+import org.eclipse.gef.tools.DirectEditManager;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.CompartmentEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
+import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
+import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
+import org.eclipse.gmf.runtime.notation.FontStyle;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
+import org.eclipse.jface.viewers.ICellEditorValidator;
+import org.eclipse.jface.window.Window;
+import org.eclipse.papyrus.diagram.common.directedit.MultilineLabelDirectEditManager;
+import org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition;
+import org.eclipse.papyrus.diagram.common.editpolicies.IMaskManagedLabelEditPolicy;
+import org.eclipse.papyrus.diagram.common.figure.node.ConstraintFigure;
+import org.eclipse.papyrus.diagram.common.figure.node.ILabelFigure;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLTextSelectionEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.diagram.composite.providers.UMLParserProvider;
+import org.eclipse.papyrus.extensionpoints.editors.Activator;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
+import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
+import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.AccessibleEvent;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.FontData;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.ui.PlatformUI;
+
+/**
+ * @generated
+ */
+public class TimeConstraintSpecificationEditPartCN extends CompartmentEditPart implements ITextAwareEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 6043;
+
+ /**
+ * @generated
+ */
+ private DirectEditManager manager;
+
+ /**
+ * @generated
+ */
+ private IParser parser;
+
+ /**
+ * @generated
+ */
+ private List<?> parserElements;
+
+ /**
+ * @generated
+ */
+ private String defaultText;
+
+ /**
+ * direct edition mode (default, undefined, registered editor, etc.)
+ *
+ * @generated
+ */
+ protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
+
+ /**
+ * configuration from a registered edit dialog
+ *
+ * @generated
+ */
+ protected IDirectEditorConfiguration configuration;
+
+ /**
+ * @generated
+ */
+ public TimeConstraintSpecificationEditPartCN(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
+ installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new CompositeStructureDiagramEditPart.NodeLabelDragPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelTextHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getText();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getText();
+ } else {
+ return ((Label)figure).getText();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelTextHelper(IFigure figure, String text) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setText(text);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setText(text);
+ } else {
+ ((Label)figure).setText(text);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIconHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getIcon();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getIcon();
+ } else {
+ return ((Label)figure).getIcon();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelIconHelper(IFigure figure, Image icon) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setIcon(icon);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setIcon(icon);
+ } else {
+ ((Label)figure).setIcon(icon);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabel(ConstraintFigure figure) {
+ unregisterVisuals();
+ setFigure(figure);
+ defaultText = getLabelTextHelper(figure);
+ registerVisuals();
+ refreshVisuals();
+ }
+
+ /**
+ * @generated
+ */
+ protected List getModelChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject getParserElement() {
+ return resolveSemanticElement();
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIcon() {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelText() {
+ String text = null;
+ EObject parserElement = getParserElement();
+ if(parserElement != null && getParser() != null) {
+ text = getParser().getPrintString(new EObjectAdapter(parserElement), getParserOptions().intValue());
+ }
+ if(text == null || text.length() == 0) {
+ text = defaultText;
+ }
+ return text;
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabelText(String text) {
+ setLabelTextHelper(getFigure(), text);
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public String getEditText() {
+ if(getParserElement() == null || getParser() == null) {
+ return ""; //$NON-NLS-1$
+ }
+ return getParser().getEditString(new EObjectAdapter(getParserElement()), getParserOptions().intValue());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean isEditable() {
+ return getParser() != null;
+ }
+
+ /**
+ * @generated
+ */
+ public ICellEditorValidator getEditTextValidator() {
+ return new ICellEditorValidator() {
+
+ public String isValid(final Object value) {
+ if(value instanceof String) {
+ final EObject element = getParserElement();
+ final IParser parser = getParser();
+ try {
+ IParserEditStatus valid = (IParserEditStatus)getEditingDomain().runExclusive(new RunnableWithResult.Impl() {
+
+ public void run() {
+ setResult(parser.isValidEditString(new EObjectAdapter(element), (String)value));
+ }
+ });
+ return valid.getCode() == ParserEditStatus.EDITABLE ? null : valid.getMessage();
+ } catch (InterruptedException ie) {
+ ie.printStackTrace();
+ }
+ }
+
+ // shouldn't get here
+ return null;
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ public IContentAssistProcessor getCompletionProcessor() {
+ if(getParserElement() == null || getParser() == null) {
+ return null;
+ }
+ return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
+ }
+
+ /**
+ * @generated
+ */
+ public ParserOptions getParserOptions() {
+ return ParserOptions.NONE;
+ }
+
+ /**
+ * @generated
+ */
+ public IParser getParser() {
+ if(parser == null) {
+ parser = UMLParserProvider.getParser(UMLElementTypes.TimeConstraint_3117, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.diagram.composite.edit.parts.TimeConstraintSpecificationEditPartCN.VISUAL_ID));
+ }
+ return parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected DirectEditManager getManager() {
+ if(manager == null) {
+ setManager(new MultilineLabelDirectEditManager(this, MultilineLabelDirectEditManager.getTextCellEditorClass(this), UMLEditPartFactory.getTextCellEditorLocator(this)));
+ }
+ return manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setManager(DirectEditManager manager) {
+ this.manager = manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit() {
+ getManager().show();
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit(Point eventLocation) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(eventLocation.getSWTPoint());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void performDirectEdit(char initialCharacter) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(initialCharacter);
+ } else {
+ performDirectEdit();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEditRequest(Request request) {
+
+ final Request theRequest = request;
+
+ if(IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
+ directEditionMode = getDirectEditionType();
+ }
+ switch(directEditionMode) {
+ case IDirectEdition.NO_DIRECT_EDITION:
+ // no direct edition mode => does nothing
+ return;
+ case IDirectEdition.EXTENDED_DIRECT_EDITOR:
+ updateExtendedEditorConfiguration();
+ if(configuration == null || configuration.getLanguage() == null) {
+ performDefaultDirectEditorEdit(theRequest);
+ } else {
+ configuration.preEditAction(resolveSemanticElement());
+ Dialog dialog = null;
+ if(configuration instanceof IPopupEditorConfiguration) {
+ IPopupEditorHelper helper = ((IPopupEditorConfiguration)configuration).createPopupEditorHelper(this);
+ helper.showEditor();
+ return;
+ } else if(configuration instanceof IAdvancedEditorConfiguration) {
+ dialog = ((IAdvancedEditorConfiguration)configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
+ } else if(configuration instanceof IDirectEditorConfiguration) {
+ dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), ((IDirectEditorConfiguration)configuration).getTextToEdit(resolveSemanticElement()), (IDirectEditorConfiguration)configuration);
+ } else {
+ return;
+ }
+ final Dialog finalDialog = dialog;
+
+ if(Window.OK == dialog.open()) {
+ TransactionalEditingDomain domain = getEditingDomain();
+ RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
+
+ @Override
+ protected void doExecute() {
+ configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog)finalDialog).getValue());
+
+ }
+ };
+ domain.getCommandStack().execute(command);
+ }
+ }
+ break;
+ case IDirectEdition.DEFAULT_DIRECT_EDITOR:
+
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ break;
+ default:
+ break;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshLabel();
+ refreshFont();
+ refreshFontColor();
+ refreshUnderline();
+ refreshStrikeThrough();
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshLabel() {
+ EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
+ if(maskLabelPolicy == null) {
+ setLabelTextHelper(getFigure(), getLabelText());
+ setLabelIconHelper(getFigure(), getLabelIcon());
+ }
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshUnderline() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextUnderline(style.isUnderline());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshStrikeThrough() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextStrikeThrough(style.isStrikeThrough());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshFont() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null) {
+ FontData fontData = new FontData(style.getFontName(), style.getFontHeight(), (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
+ setFont(fontData);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setFontColor(Color color) {
+ getFigure().setForegroundColor(color);
+ }
+
+ /**
+ * @generated
+ */
+ protected void addSemanticListeners() {
+ if(getParser() instanceof ISemanticParser) {
+ EObject element = resolveSemanticElement();
+ parserElements = ((ISemanticParser)getParser()).getSemanticElementsBeingParsed(element);
+ for(int i = 0; i < parserElements.size(); i++) {
+ addListenerFilter("SemanticModel" + i, this, (EObject)parserElements.get(i)); //$NON-NLS-1$
+ }
+ } else {
+ super.addSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeSemanticListeners() {
+ if(parserElements != null) {
+ for(int i = 0; i < parserElements.size(); i++) {
+ removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
+ }
+ } else {
+ super.removeSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected AccessibleEditPart getAccessibleEditPart() {
+ if(accessibleEP == null) {
+ accessibleEP = new AccessibleGraphicalEditPart() {
+
+ public void getName(AccessibleEvent e) {
+ e.result = getLabelTextHelper(getFigure());
+ }
+ };
+ }
+ return accessibleEP;
+ }
+
+ /**
+ * @generated
+ */
+ private View getFontStyleOwnerView() {
+ return getPrimaryView();
+ }
+
+ /**
+ * Returns the kind of associated editor for direct edition.
+ *
+ * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition
+ * @generated
+ */
+ public int getDirectEditionType() {
+ if(checkExtendedEditor()) {
+ initExtendedEditorConfiguration();
+ return IDirectEdition.EXTENDED_DIRECT_EDITOR;
+ }
+ if(checkDefaultEdition()) {
+ return IDirectEdition.DEFAULT_DIRECT_EDITOR;
+ }
+
+ // not a named element. no specific editor => do nothing
+ return IDirectEdition.NO_DIRECT_EDITION;
+ }
+
+ /**
+ * Checks if an extended editor is present.
+ *
+ * @return <code>true</code> if an extended editor is present.
+ * @generated
+ */
+ protected boolean checkExtendedEditor() {
+ if(resolveSemanticElement() != null) {
+ return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ return false;
+ }
+
+ /**
+ * Checks if a default direct edition is available
+ *
+ * @return <code>true</code> if a default direct edition is available
+ * @generated
+ */
+ protected boolean checkDefaultEdition() {
+ return (getParser() != null);
+ }
+
+ /**
+ * Initializes the extended editor configuration
+ *
+ * @generated
+ */
+ protected void initExtendedEditorConfiguration() {
+ if(configuration == null) {
+ final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("")) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else {
+ configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ }
+ }
+
+ /**
+ * Updates the preference configuration
+ *
+ * @generated
+ */
+ protected void updateExtendedEditorConfiguration() {
+ String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("") && languagePreferred != configuration.getLanguage()) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else if(IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
+ configuration = null;
+ }
+ }
+
+ /**
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
+ protected void performDefaultDirectEditorEdit(final Request theRequest) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void addNotationalListeners() {
+ super.addNotationalListeners();
+ addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeNotationalListeners() {
+ super.removeNotationalListeners();
+ removeListenerFilter("PrimaryView"); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void handleNotificationEvent(Notification event) {
+ refreshLabel();
+ Object feature = event.getFeature();
+ if(NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
+ Integer c = (Integer)event.getNewValue();
+ setFontColor(DiagramColorRegistry.getInstance().getColor(c));
+ } else if(NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
+ refreshUnderline();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
+ refreshStrikeThrough();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
+ refreshFont();
+ } else {
+ if(getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
+ refreshLabel();
+ }
+ if(getParser() instanceof ISemanticParser) {
+ ISemanticParser modelParser = (ISemanticParser)getParser();
+ if(modelParser.areSemanticElementsAffected(null, event)) {
+ removeSemanticListeners();
+ if(resolveSemanticElement() != null) {
+ addSemanticListeners();
+ }
+ refreshLabel();
+ }
+ }
+ }
+
+ super.handleNotificationEvent(event);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createFigure() {
+ // Parent should assign one using setLabel() method
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ private static final String ADD_PARENT_MODEL = "AddParentModel";
+
+ /**
+ * @generated
+ */
+ public void activate() {
+ super.activate();
+ addOwnerElementListeners();
+ }
+
+ /**
+ * @generated
+ */
+ protected void addOwnerElementListeners() {
+ addListenerFilter(ADD_PARENT_MODEL, this, ((View)getParent().getModel())); //$NON-NLS-1$
+
+ }
+
+ /**
+ * @generated
+ */
+ public void deactivate() {
+ removeOwnerElementListeners();
+ super.deactivate();
+
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeOwnerElementListeners() {
+ removeListenerFilter(ADD_PARENT_MODEL);
+
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/TimeEventEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/TimeEventEditPart.java
new file mode 100644
index 00000000000..3a79d15fd13
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/TimeEventEditPart.java
@@ -0,0 +1,5167 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.ArrayList;
+import java.util.LinkedList;
+import java.util.List;
+
+import org.eclipse.draw2d.ColorConstants;
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.RectangleFigure;
+import org.eclipse.draw2d.Shape;
+import org.eclipse.draw2d.StackLayout;
+import org.eclipse.emf.ecore.EStructuralFeature;
+import org.eclipse.gef.EditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.editpolicies.LayoutEditPolicy;
+import org.eclipse.gef.editpolicies.NonResizableEditPolicy;
+import org.eclipse.gef.requests.CreateRequest;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ShapeNodeEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.FigureUtilities;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.gef.ui.figures.DefaultSizeNodeFigure;
+import org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.jface.preference.PreferenceConverter;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.HyperLinkPopupBarEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.QualifiedNameDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.helper.PreferenceInitializerForElementHelper;
+import org.eclipse.papyrus.diagram.composite.edit.policies.TimeEventItemSemanticEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorPlugin;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter;
+import org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.Font;
+import org.eclipse.swt.widgets.Display;
+
+/**
+ * @generated
+ */
+public class TimeEventEditPart extends
+
+ShapeNodeEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 2089;
+
+ /**
+ * @generated
+ */
+ protected IFigure contentPane;
+
+ /**
+ * @generated
+ */
+ protected IFigure primaryShape;
+
+ /**
+ * @generated
+ */
+ public TimeEventEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new TimeEventItemSemanticEditPolicy());
+ installEditPolicy(EditPolicy.LAYOUT_ROLE, createLayoutEditPolicy());
+ installEditPolicy(QualifiedNameDisplayEditPolicy.QUALIFIED_NAME_POLICY, new QualifiedNameDisplayEditPolicy());
+ installEditPolicy(AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeNodeLabelDisplayEditPolicy());
+ installEditPolicy(EditPolicyRoles.POPUPBAR_ROLE, new HyperLinkPopupBarEditPolicy());
+ // XXX need an SCR to runtime to have another abstract superclass that would let children add reasonable editpolicies
+ // removeEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CONNECTION_HANDLES_ROLE);
+ }
+
+ /**
+ * @generated
+ */
+ protected LayoutEditPolicy createLayoutEditPolicy() {
+ org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy lep = new org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy() {
+
+ protected EditPolicy createChildEditPolicy(EditPart child) {
+ EditPolicy result = child.getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(result == null) {
+ result = new NonResizableEditPolicy();
+ }
+ return result;
+ }
+
+ protected Command getMoveChildrenCommand(Request request) {
+ return null;
+ }
+
+ protected Command getCreateCommand(CreateRequest request) {
+ return null;
+ }
+ };
+ return lep;
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createNodeShape() {
+ return primaryShape = new NamedElementDescriptor();
+ }
+
+ /**
+ * @generated
+ */
+ public NamedElementDescriptor getPrimaryShape() {
+ return (NamedElementDescriptor)primaryShape;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean addFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof TimeEventNameEditPart) {
+ ((TimeEventNameEditPart)childEditPart).setLabel(getPrimaryShape().getNamedElementNameLabel());
+ return true;
+ }
+
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean removeFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof TimeEventNameEditPart) {
+ return true;
+ }
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected void addChildVisual(EditPart childEditPart, int index) {
+ if(addFixedChild(childEditPart)) {
+ return;
+ }
+ super.addChildVisual(childEditPart, -1);
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeChildVisual(EditPart childEditPart) {
+ if(removeFixedChild(childEditPart)) {
+ return;
+ }
+ super.removeChildVisual(childEditPart);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure getContentPaneFor(IGraphicalEditPart editPart) {
+ return getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ protected NodeFigure createNodePlate() {
+ String prefElementId = "TimeEvent";
+ IPreferenceStore store = UMLDiagramEditorPlugin.getInstance().getPreferenceStore();
+ String preferenceConstantWitdh = PreferenceInitializerForElementHelper.getpreferenceKey(getNotationView(), prefElementId, PreferenceConstantHelper.WIDTH);
+ String preferenceConstantHeight = PreferenceInitializerForElementHelper.getpreferenceKey(getNotationView(), prefElementId, PreferenceConstantHelper.HEIGHT);
+ DefaultSizeNodeFigure result = new DefaultSizeNodeFigure(store.getInt(preferenceConstantWitdh), store.getInt(preferenceConstantHeight));
+
+ return result;
+ }
+
+ /**
+ * Creates figure for this edit part.
+ *
+ * Body of this method does not depend on settings in generation model
+ * so you may safely remove <i>generated</i> tag and modify it.
+ *
+ * @generated
+ */
+ protected NodeFigure createNodeFigure() {
+ NodeFigure figure = createNodePlate();
+ figure.setLayoutManager(new StackLayout());
+ IFigure shape = createNodeShape();
+ figure.add(shape);
+ contentPane = setupContentPane(shape);
+ return figure;
+ }
+
+ /**
+ * Default implementation treats passed figure as content pane.
+ * Respects layout one may have set for generated figure.
+ *
+ * @param nodeShape
+ * instance of generated figure class
+ * @generated
+ */
+ protected IFigure setupContentPane(IFigure nodeShape) {
+ if(nodeShape.getLayoutManager() == null) {
+ ConstrainedToolbarLayout layout = new ConstrainedToolbarLayout();
+ layout.setSpacing(5);
+ nodeShape.setLayoutManager(layout);
+ }
+ return nodeShape; // use nodeShape itself as contentPane
+ }
+
+ /**
+ * @generated
+ */
+ public IFigure getContentPane() {
+ if(contentPane != null) {
+ return contentPane;
+ }
+ return super.getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ protected void setForegroundColor(Color color) {
+ if(primaryShape != null) {
+ primaryShape.setForegroundColor(color);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLineWidth(int width) {
+ if(primaryShape instanceof Shape) {
+ ((Shape)primaryShape).setLineWidth(width);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLineType(int style) {
+ if(primaryShape instanceof Shape) {
+ ((Shape)primaryShape).setLineStyle(style);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public EditPart getPrimaryChildEditPart() {
+ return getChildBySemanticHint(UMLVisualIDRegistry.getType(TimeEventNameEditPart.VISUAL_ID));
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnSource() {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(11);
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ types.add(UMLElementTypes.Substitution_4011);
+ types.add(UMLElementTypes.Realization_4006);
+ types.add(UMLElementTypes.Manifestation_4012);
+ types.add(UMLElementTypes.Abstraction_4007);
+ types.add(UMLElementTypes.Usage_4008);
+ types.add(UMLElementTypes.Deployment_4009);
+ types.add(UMLElementTypes.Dependency_4017);
+ types.add(UMLElementTypes.Dependency_4010);
+ types.add(UMLElementTypes.InformationFlow_4021);
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnSourceAndTarget(IGraphicalEditPart targetEditPart) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.TimeEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.TimeEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.TimeEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.TimeEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.TimeEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.TimeEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.TimeEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.TimeEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.TimeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.TimeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.TimeEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMATypesForTarget(IElementType relationshipType) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(relationshipType == UMLElementTypes.ComponentRealization_4004) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InterfaceRealization_4005) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Substitution_4011) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Realization_4006) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Manifestation_4012) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Abstraction_4007) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Usage_4008) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Deployment_4009) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4017) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4010) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InformationFlow_4021) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnTarget() {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(15);
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ types.add(UMLElementTypes.Substitution_4011);
+ types.add(UMLElementTypes.Realization_4006);
+ types.add(UMLElementTypes.Manifestation_4012);
+ types.add(UMLElementTypes.Abstraction_4007);
+ types.add(UMLElementTypes.Usage_4008);
+ types.add(UMLElementTypes.Deployment_4009);
+ types.add(UMLElementTypes.Dependency_4017);
+ types.add(UMLElementTypes.Dependency_4010);
+ types.add(UMLElementTypes.TimeObservationEvent_4018);
+ types.add(UMLElementTypes.DurationObservationEvent_4019);
+ types.add(UMLElementTypes.InformationFlow_4021);
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMATypesForSource(IElementType relationshipType) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(relationshipType == UMLElementTypes.CommentAnnotatedElement_4002) {
+ types.add(UMLElementTypes.Comment_2109);
+ types.add(UMLElementTypes.Comment_3097);
+ } else if(relationshipType == UMLElementTypes.ConstraintConstrainedElement_4003) {
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.ComponentRealization_4004) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InterfaceRealization_4005) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Substitution_4011) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Realization_4006) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Manifestation_4012) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Abstraction_4007) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Usage_4008) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Deployment_4009) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4017) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4010) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.TimeObservationEvent_4018) {
+ types.add(UMLElementTypes.TimeObservation_2094);
+ } else if(relationshipType == UMLElementTypes.DurationObservationEvent_4019) {
+ types.add(UMLElementTypes.DurationObservation_2093);
+ } else if(relationshipType == UMLElementTypes.InformationFlow_4021) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public class NamedElementDescriptor extends RectangleFigure {
+
+ /**
+ * @generated
+ */
+ private WrappingLabel fNamedElementNameLabel;
+
+ /**
+ * @generated
+ */
+ public NamedElementDescriptor() {
+ this.setLineWidth(1);
+ this.setForegroundColor(ColorConstants.black);
+ createContents();
+ }
+
+ /**
+ * @generated
+ */
+ private void createContents() {
+
+ fNamedElementNameLabel = new WrappingLabel();
+ fNamedElementNameLabel.setText("");
+ fNamedElementNameLabel.setForegroundColor(ColorConstants.black);
+
+ fNamedElementNameLabel.setFont(FNAMEDELEMENTNAMELABEL_FONT);
+
+ this.add(fNamedElementNameLabel);
+
+ }
+
+ /**
+ * @generated
+ */
+ private boolean myUseLocalCoordinates = false;
+
+ /**
+ * @generated
+ */
+ protected boolean useLocalCoordinates() {
+ return myUseLocalCoordinates;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setUseLocalCoordinates(boolean useLocalCoordinates) {
+ myUseLocalCoordinates = useLocalCoordinates;
+ }
+
+ /**
+ * @generated
+ */
+ public WrappingLabel getNamedElementNameLabel() {
+ return fNamedElementNameLabel;
+ }
+
+ }
+
+ /**
+ * @generated
+ */
+ static final Font FNAMEDELEMENTNAMELABEL_FONT = new Font(Display.getCurrent(), "Arial", 10, SWT.BOLD);
+
+ /**
+ * @generated
+ */
+ @Override
+ public Object getPreferredValue(EStructuralFeature feature) {
+ IPreferenceStore preferenceStore = (IPreferenceStore)getDiagramPreferencesHint().getPreferenceStore();
+ Object result = null;
+
+ if(feature == NotationPackage.eINSTANCE.getLineStyle_LineColor() || feature == NotationPackage.eINSTANCE.getFontStyle_FontColor() || feature == NotationPackage.eINSTANCE.getFillStyle_FillColor()) {
+ String prefColor = null;
+ if(feature == NotationPackage.eINSTANCE.getLineStyle_LineColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("TimeEvent", PreferenceConstantHelper.COLOR_LINE);
+ } else if(feature == NotationPackage.eINSTANCE.getFontStyle_FontColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("TimeEvent", PreferenceConstantHelper.COLOR_FONT);
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_FillColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("TimeEvent", PreferenceConstantHelper.COLOR_FILL);
+ }
+ result = FigureUtilities.RGBToInteger(PreferenceConverter.getColor((IPreferenceStore)preferenceStore, prefColor));
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_Transparency() || feature == NotationPackage.eINSTANCE.getFillStyle_Gradient()) {
+ String prefGradient = PreferenceConstantHelper.getElementConstant("TimeEvent", PreferenceConstantHelper.COLOR_GRADIENT);
+ GradientPreferenceConverter gradientPreferenceConverter = new GradientPreferenceConverter(preferenceStore.getString(prefGradient));
+ if(feature == NotationPackage.eINSTANCE.getFillStyle_Transparency()) {
+ result = new Integer(gradientPreferenceConverter.getTransparency());
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_Gradient()) {
+ result = gradientPreferenceConverter.getGradientData();
+ }
+ }
+
+ if(result == null) {
+ result = getStructuralFeatureValue(feature);
+ }
+ return result;
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/TimeEventNameEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/TimeEventNameEditPart.java
new file mode 100644
index 00000000000..1092773ae54
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/TimeEventNameEditPart.java
@@ -0,0 +1,791 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EAnnotation;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.emf.transaction.RunnableWithResult;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.AccessibleEditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.requests.DirectEditRequest;
+import org.eclipse.gef.tools.DirectEditManager;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.CompartmentEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
+import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
+import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
+import org.eclipse.gmf.runtime.notation.FontStyle;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
+import org.eclipse.jface.viewers.ICellEditorValidator;
+import org.eclipse.jface.window.Window;
+import org.eclipse.papyrus.diagram.common.directedit.MultilineLabelDirectEditManager;
+import org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition;
+import org.eclipse.papyrus.diagram.common.editpolicies.IMaskManagedLabelEditPolicy;
+import org.eclipse.papyrus.diagram.common.figure.node.ILabelFigure;
+import org.eclipse.papyrus.diagram.common.util.DiagramEditPartsUtil;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLTextSelectionEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.diagram.composite.providers.UMLParserProvider;
+import org.eclipse.papyrus.extensionpoints.editors.Activator;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
+import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
+import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
+import org.eclipse.papyrus.umlutils.ui.VisualInformationPapyrusConstant;
+import org.eclipse.papyrus.umlutils.ui.helper.NameLabelIconHelper;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.AccessibleEvent;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.FontData;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.ui.PlatformUI;
+
+/**
+ * @generated
+ */
+public class TimeEventNameEditPart extends CompartmentEditPart implements ITextAwareEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 5172;
+
+ /**
+ * @generated
+ */
+ private DirectEditManager manager;
+
+ /**
+ * @generated
+ */
+ private IParser parser;
+
+ /**
+ * @generated
+ */
+ private List<?> parserElements;
+
+ /**
+ * @generated
+ */
+ private String defaultText;
+
+ /**
+ * direct edition mode (default, undefined, registered editor, etc.)
+ *
+ * @generated
+ */
+ protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
+
+ /**
+ * configuration from a registered edit dialog
+ *
+ * @generated
+ */
+ protected IDirectEditorConfiguration configuration;
+
+ /**
+ * @generated
+ */
+ public TimeEventNameEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
+ installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new CompositeStructureDiagramEditPart.NodeLabelDragPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelTextHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getText();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getText();
+ } else {
+ return ((Label)figure).getText();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelTextHelper(IFigure figure, String text) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setText(text);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setText(text);
+ } else {
+ ((Label)figure).setText(text);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIconHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getIcon();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getIcon();
+ } else {
+ return ((Label)figure).getIcon();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelIconHelper(IFigure figure, Image icon) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setIcon(icon);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setIcon(icon);
+ } else {
+ ((Label)figure).setIcon(icon);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabel(WrappingLabel figure) {
+ unregisterVisuals();
+ setFigure(figure);
+ defaultText = getLabelTextHelper(figure);
+ registerVisuals();
+ refreshVisuals();
+ }
+
+ /**
+ * @generated
+ */
+ protected List getModelChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject getParserElement() {
+ return resolveSemanticElement();
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIcon() {
+ EObject parserElement = getParserElement();
+ if(parserElement == null) {
+ return null;
+ }
+
+ List<View> views = DiagramEditPartsUtil.findViews(parserElement, getViewer());
+ for(View view : views) {
+ if(NameLabelIconHelper.showLabelIcon(view)) {
+ return UMLElementTypes.getImage(parserElement.eClass());
+ }
+ }
+ return null;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelText() {
+ String text = null;
+ EObject parserElement = getParserElement();
+ if(parserElement != null && getParser() != null) {
+ text = getParser().getPrintString(new EObjectAdapter(parserElement), getParserOptions().intValue());
+ }
+ if(text == null || text.length() == 0) {
+ text = defaultText;
+ }
+ return text;
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabelText(String text) {
+ setLabelTextHelper(getFigure(), text);
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public String getEditText() {
+ if(getParserElement() == null || getParser() == null) {
+ return ""; //$NON-NLS-1$
+ }
+ return getParser().getEditString(new EObjectAdapter(getParserElement()), getParserOptions().intValue());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean isEditable() {
+ return getParser() != null;
+ }
+
+ /**
+ * @generated
+ */
+ public ICellEditorValidator getEditTextValidator() {
+ return new ICellEditorValidator() {
+
+ public String isValid(final Object value) {
+ if(value instanceof String) {
+ final EObject element = getParserElement();
+ final IParser parser = getParser();
+ try {
+ IParserEditStatus valid = (IParserEditStatus)getEditingDomain().runExclusive(new RunnableWithResult.Impl() {
+
+ public void run() {
+ setResult(parser.isValidEditString(new EObjectAdapter(element), (String)value));
+ }
+ });
+ return valid.getCode() == ParserEditStatus.EDITABLE ? null : valid.getMessage();
+ } catch (InterruptedException ie) {
+ ie.printStackTrace();
+ }
+ }
+
+ // shouldn't get here
+ return null;
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ public IContentAssistProcessor getCompletionProcessor() {
+ if(getParserElement() == null || getParser() == null) {
+ return null;
+ }
+ return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
+ }
+
+ /**
+ * @generated
+ */
+ public ParserOptions getParserOptions() {
+ return ParserOptions.NONE;
+ }
+
+ /**
+ * @generated
+ */
+ public IParser getParser() {
+ if(parser == null) {
+ parser = UMLParserProvider.getParser(UMLElementTypes.TimeEvent_2089, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.diagram.composite.edit.parts.TimeEventNameEditPart.VISUAL_ID));
+ }
+ return parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected DirectEditManager getManager() {
+ if(manager == null) {
+ setManager(new MultilineLabelDirectEditManager(this, MultilineLabelDirectEditManager.getTextCellEditorClass(this), UMLEditPartFactory.getTextCellEditorLocator(this)));
+ }
+ return manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setManager(DirectEditManager manager) {
+ this.manager = manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit() {
+ getManager().show();
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit(Point eventLocation) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(eventLocation.getSWTPoint());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void performDirectEdit(char initialCharacter) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(initialCharacter);
+ } else {
+ performDirectEdit();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEditRequest(Request request) {
+
+ final Request theRequest = request;
+
+ if(IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
+ directEditionMode = getDirectEditionType();
+ }
+ switch(directEditionMode) {
+ case IDirectEdition.NO_DIRECT_EDITION:
+ // no direct edition mode => does nothing
+ return;
+ case IDirectEdition.EXTENDED_DIRECT_EDITOR:
+ updateExtendedEditorConfiguration();
+ if(configuration == null || configuration.getLanguage() == null) {
+ performDefaultDirectEditorEdit(theRequest);
+ } else {
+ configuration.preEditAction(resolveSemanticElement());
+ Dialog dialog = null;
+ if(configuration instanceof IPopupEditorConfiguration) {
+ IPopupEditorHelper helper = ((IPopupEditorConfiguration)configuration).createPopupEditorHelper(this);
+ helper.showEditor();
+ return;
+ } else if(configuration instanceof IAdvancedEditorConfiguration) {
+ dialog = ((IAdvancedEditorConfiguration)configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
+ } else if(configuration instanceof IDirectEditorConfiguration) {
+ dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), ((IDirectEditorConfiguration)configuration).getTextToEdit(resolveSemanticElement()), (IDirectEditorConfiguration)configuration);
+ } else {
+ return;
+ }
+ final Dialog finalDialog = dialog;
+
+ if(Window.OK == dialog.open()) {
+ TransactionalEditingDomain domain = getEditingDomain();
+ RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
+
+ @Override
+ protected void doExecute() {
+ configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog)finalDialog).getValue());
+
+ }
+ };
+ domain.getCommandStack().execute(command);
+ }
+ }
+ break;
+ case IDirectEdition.DEFAULT_DIRECT_EDITOR:
+
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ break;
+ default:
+ break;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshLabel();
+ refreshFont();
+ refreshFontColor();
+ refreshUnderline();
+ refreshStrikeThrough();
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshLabel() {
+ EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
+ if(maskLabelPolicy == null) {
+ setLabelTextHelper(getFigure(), getLabelText());
+ setLabelIconHelper(getFigure(), getLabelIcon());
+ }
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshUnderline() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextUnderline(style.isUnderline());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshStrikeThrough() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextStrikeThrough(style.isStrikeThrough());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshFont() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null) {
+ FontData fontData = new FontData(style.getFontName(), style.getFontHeight(), (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
+ setFont(fontData);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setFontColor(Color color) {
+ getFigure().setForegroundColor(color);
+ }
+
+ /**
+ * @generated
+ */
+ protected void addSemanticListeners() {
+ if(getParser() instanceof ISemanticParser) {
+ EObject element = resolveSemanticElement();
+ parserElements = ((ISemanticParser)getParser()).getSemanticElementsBeingParsed(element);
+ for(int i = 0; i < parserElements.size(); i++) {
+ addListenerFilter("SemanticModel" + i, this, (EObject)parserElements.get(i)); //$NON-NLS-1$
+ }
+ } else {
+ super.addSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeSemanticListeners() {
+ if(parserElements != null) {
+ for(int i = 0; i < parserElements.size(); i++) {
+ removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
+ }
+ } else {
+ super.removeSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected AccessibleEditPart getAccessibleEditPart() {
+ if(accessibleEP == null) {
+ accessibleEP = new AccessibleGraphicalEditPart() {
+
+ public void getName(AccessibleEvent e) {
+ e.result = getLabelTextHelper(getFigure());
+ }
+ };
+ }
+ return accessibleEP;
+ }
+
+ /**
+ * @generated
+ */
+ private View getFontStyleOwnerView() {
+ return (View)getModel();
+ }
+
+ /**
+ * Returns the kind of associated editor for direct edition.
+ *
+ * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition
+ * @generated
+ */
+ public int getDirectEditionType() {
+ if(checkExtendedEditor()) {
+ initExtendedEditorConfiguration();
+ return IDirectEdition.EXTENDED_DIRECT_EDITOR;
+ }
+ if(checkDefaultEdition()) {
+ return IDirectEdition.DEFAULT_DIRECT_EDITOR;
+ }
+
+ // not a named element. no specific editor => do nothing
+ return IDirectEdition.NO_DIRECT_EDITION;
+ }
+
+ /**
+ * Checks if an extended editor is present.
+ *
+ * @return <code>true</code> if an extended editor is present.
+ * @generated
+ */
+ protected boolean checkExtendedEditor() {
+ if(resolveSemanticElement() != null) {
+ return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ return false;
+ }
+
+ /**
+ * Checks if a default direct edition is available
+ *
+ * @return <code>true</code> if a default direct edition is available
+ * @generated
+ */
+ protected boolean checkDefaultEdition() {
+ return (getParser() != null);
+ }
+
+ /**
+ * Initializes the extended editor configuration
+ *
+ * @generated
+ */
+ protected void initExtendedEditorConfiguration() {
+ if(configuration == null) {
+ final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("")) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else {
+ configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ }
+ }
+
+ /**
+ * Updates the preference configuration
+ *
+ * @generated
+ */
+ protected void updateExtendedEditorConfiguration() {
+ String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("") && languagePreferred != configuration.getLanguage()) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else if(IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
+ configuration = null;
+ }
+ }
+
+ /**
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
+ protected void performDefaultDirectEditorEdit(final Request theRequest) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void addNotationalListeners() {
+ super.addNotationalListeners();
+ addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeNotationalListeners() {
+ super.removeNotationalListeners();
+ removeListenerFilter("PrimaryView"); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void handleNotificationEvent(Notification event) {
+ refreshLabel();
+ Object feature = event.getFeature();
+ if(NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
+ Integer c = (Integer)event.getNewValue();
+ setFontColor(DiagramColorRegistry.getInstance().getColor(c));
+ } else if(NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
+ refreshUnderline();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
+ refreshStrikeThrough();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
+ refreshFont();
+ } else {
+ if(getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
+ refreshLabel();
+ }
+ if(getParser() instanceof ISemanticParser) {
+ ISemanticParser modelParser = (ISemanticParser)getParser();
+ if(modelParser.areSemanticElementsAffected(null, event)) {
+ removeSemanticListeners();
+ if(resolveSemanticElement() != null) {
+ addSemanticListeners();
+ }
+ refreshLabel();
+ }
+ }
+ }
+
+ if(event.getNewValue() instanceof EAnnotation && VisualInformationPapyrusConstant.DISPLAY_NAMELABELICON.equals(((EAnnotation)event.getNewValue()).getSource())) {
+ refreshLabel();
+ }
+
+ super.handleNotificationEvent(event);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createFigure() {
+ // Parent should assign one using setLabel() method
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ private static final String ADD_PARENT_MODEL = "AddParentModel";
+
+ /**
+ * @generated
+ */
+ public void activate() {
+ super.activate();
+ addOwnerElementListeners();
+ }
+
+ /**
+ * @generated
+ */
+ protected void addOwnerElementListeners() {
+ addListenerFilter(ADD_PARENT_MODEL, this, ((View)getParent().getModel())); //$NON-NLS-1$
+
+ }
+
+ /**
+ * @generated
+ */
+ public void deactivate() {
+ removeOwnerElementListeners();
+ super.deactivate();
+
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeOwnerElementListeners() {
+ removeListenerFilter(ADD_PARENT_MODEL);
+
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/TimeExpressionEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/TimeExpressionEditPart.java
new file mode 100644
index 00000000000..07ae2eb6ff7
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/TimeExpressionEditPart.java
@@ -0,0 +1,5167 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.ArrayList;
+import java.util.LinkedList;
+import java.util.List;
+
+import org.eclipse.draw2d.ColorConstants;
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.RectangleFigure;
+import org.eclipse.draw2d.Shape;
+import org.eclipse.draw2d.StackLayout;
+import org.eclipse.emf.ecore.EStructuralFeature;
+import org.eclipse.gef.EditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.editpolicies.LayoutEditPolicy;
+import org.eclipse.gef.editpolicies.NonResizableEditPolicy;
+import org.eclipse.gef.requests.CreateRequest;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ShapeNodeEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.FigureUtilities;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.gef.ui.figures.DefaultSizeNodeFigure;
+import org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.jface.preference.PreferenceConverter;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.HyperLinkPopupBarEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.QualifiedNameDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.helper.PreferenceInitializerForElementHelper;
+import org.eclipse.papyrus.diagram.composite.edit.policies.TimeExpressionItemSemanticEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorPlugin;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter;
+import org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.Font;
+import org.eclipse.swt.widgets.Display;
+
+/**
+ * @generated
+ */
+public class TimeExpressionEditPart extends
+
+ShapeNodeEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 2102;
+
+ /**
+ * @generated
+ */
+ protected IFigure contentPane;
+
+ /**
+ * @generated
+ */
+ protected IFigure primaryShape;
+
+ /**
+ * @generated
+ */
+ public TimeExpressionEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new TimeExpressionItemSemanticEditPolicy());
+ installEditPolicy(EditPolicy.LAYOUT_ROLE, createLayoutEditPolicy());
+ installEditPolicy(QualifiedNameDisplayEditPolicy.QUALIFIED_NAME_POLICY, new QualifiedNameDisplayEditPolicy());
+ installEditPolicy(AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeNodeLabelDisplayEditPolicy());
+ installEditPolicy(EditPolicyRoles.POPUPBAR_ROLE, new HyperLinkPopupBarEditPolicy());
+ // XXX need an SCR to runtime to have another abstract superclass that would let children add reasonable editpolicies
+ // removeEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CONNECTION_HANDLES_ROLE);
+ }
+
+ /**
+ * @generated
+ */
+ protected LayoutEditPolicy createLayoutEditPolicy() {
+ org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy lep = new org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy() {
+
+ protected EditPolicy createChildEditPolicy(EditPart child) {
+ EditPolicy result = child.getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(result == null) {
+ result = new NonResizableEditPolicy();
+ }
+ return result;
+ }
+
+ protected Command getMoveChildrenCommand(Request request) {
+ return null;
+ }
+
+ protected Command getCreateCommand(CreateRequest request) {
+ return null;
+ }
+ };
+ return lep;
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createNodeShape() {
+ return primaryShape = new NamedElementDescriptor();
+ }
+
+ /**
+ * @generated
+ */
+ public NamedElementDescriptor getPrimaryShape() {
+ return (NamedElementDescriptor)primaryShape;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean addFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof TimeExpressionNameEditPart) {
+ ((TimeExpressionNameEditPart)childEditPart).setLabel(getPrimaryShape().getNamedElementNameLabel());
+ return true;
+ }
+
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean removeFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof TimeExpressionNameEditPart) {
+ return true;
+ }
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected void addChildVisual(EditPart childEditPart, int index) {
+ if(addFixedChild(childEditPart)) {
+ return;
+ }
+ super.addChildVisual(childEditPart, -1);
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeChildVisual(EditPart childEditPart) {
+ if(removeFixedChild(childEditPart)) {
+ return;
+ }
+ super.removeChildVisual(childEditPart);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure getContentPaneFor(IGraphicalEditPart editPart) {
+ return getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ protected NodeFigure createNodePlate() {
+ String prefElementId = "TimeExpression";
+ IPreferenceStore store = UMLDiagramEditorPlugin.getInstance().getPreferenceStore();
+ String preferenceConstantWitdh = PreferenceInitializerForElementHelper.getpreferenceKey(getNotationView(), prefElementId, PreferenceConstantHelper.WIDTH);
+ String preferenceConstantHeight = PreferenceInitializerForElementHelper.getpreferenceKey(getNotationView(), prefElementId, PreferenceConstantHelper.HEIGHT);
+ DefaultSizeNodeFigure result = new DefaultSizeNodeFigure(store.getInt(preferenceConstantWitdh), store.getInt(preferenceConstantHeight));
+
+ return result;
+ }
+
+ /**
+ * Creates figure for this edit part.
+ *
+ * Body of this method does not depend on settings in generation model
+ * so you may safely remove <i>generated</i> tag and modify it.
+ *
+ * @generated
+ */
+ protected NodeFigure createNodeFigure() {
+ NodeFigure figure = createNodePlate();
+ figure.setLayoutManager(new StackLayout());
+ IFigure shape = createNodeShape();
+ figure.add(shape);
+ contentPane = setupContentPane(shape);
+ return figure;
+ }
+
+ /**
+ * Default implementation treats passed figure as content pane.
+ * Respects layout one may have set for generated figure.
+ *
+ * @param nodeShape
+ * instance of generated figure class
+ * @generated
+ */
+ protected IFigure setupContentPane(IFigure nodeShape) {
+ if(nodeShape.getLayoutManager() == null) {
+ ConstrainedToolbarLayout layout = new ConstrainedToolbarLayout();
+ layout.setSpacing(5);
+ nodeShape.setLayoutManager(layout);
+ }
+ return nodeShape; // use nodeShape itself as contentPane
+ }
+
+ /**
+ * @generated
+ */
+ public IFigure getContentPane() {
+ if(contentPane != null) {
+ return contentPane;
+ }
+ return super.getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ protected void setForegroundColor(Color color) {
+ if(primaryShape != null) {
+ primaryShape.setForegroundColor(color);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLineWidth(int width) {
+ if(primaryShape instanceof Shape) {
+ ((Shape)primaryShape).setLineWidth(width);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLineType(int style) {
+ if(primaryShape instanceof Shape) {
+ ((Shape)primaryShape).setLineStyle(style);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public EditPart getPrimaryChildEditPart() {
+ return getChildBySemanticHint(UMLVisualIDRegistry.getType(TimeExpressionNameEditPart.VISUAL_ID));
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnSource() {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(11);
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ types.add(UMLElementTypes.Substitution_4011);
+ types.add(UMLElementTypes.Realization_4006);
+ types.add(UMLElementTypes.Manifestation_4012);
+ types.add(UMLElementTypes.Abstraction_4007);
+ types.add(UMLElementTypes.Usage_4008);
+ types.add(UMLElementTypes.Deployment_4009);
+ types.add(UMLElementTypes.Dependency_4017);
+ types.add(UMLElementTypes.Dependency_4010);
+ types.add(UMLElementTypes.InformationFlow_4021);
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnSourceAndTarget(IGraphicalEditPart targetEditPart) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.TimeExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.TimeExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.TimeExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMATypesForTarget(IElementType relationshipType) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(relationshipType == UMLElementTypes.ComponentRealization_4004) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InterfaceRealization_4005) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Substitution_4011) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Realization_4006) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Manifestation_4012) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Abstraction_4007) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Usage_4008) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Deployment_4009) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4017) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4010) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InformationFlow_4021) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnTarget() {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(15);
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ types.add(UMLElementTypes.Substitution_4011);
+ types.add(UMLElementTypes.Realization_4006);
+ types.add(UMLElementTypes.Manifestation_4012);
+ types.add(UMLElementTypes.Abstraction_4007);
+ types.add(UMLElementTypes.Usage_4008);
+ types.add(UMLElementTypes.Deployment_4009);
+ types.add(UMLElementTypes.Dependency_4017);
+ types.add(UMLElementTypes.Dependency_4010);
+ types.add(UMLElementTypes.TimeObservationEvent_4018);
+ types.add(UMLElementTypes.DurationObservationEvent_4019);
+ types.add(UMLElementTypes.InformationFlow_4021);
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMATypesForSource(IElementType relationshipType) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(relationshipType == UMLElementTypes.CommentAnnotatedElement_4002) {
+ types.add(UMLElementTypes.Comment_2109);
+ types.add(UMLElementTypes.Comment_3097);
+ } else if(relationshipType == UMLElementTypes.ConstraintConstrainedElement_4003) {
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.ComponentRealization_4004) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InterfaceRealization_4005) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Substitution_4011) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Realization_4006) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Manifestation_4012) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Abstraction_4007) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Usage_4008) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Deployment_4009) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4017) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4010) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.TimeObservationEvent_4018) {
+ types.add(UMLElementTypes.TimeObservation_2094);
+ } else if(relationshipType == UMLElementTypes.DurationObservationEvent_4019) {
+ types.add(UMLElementTypes.DurationObservation_2093);
+ } else if(relationshipType == UMLElementTypes.InformationFlow_4021) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public class NamedElementDescriptor extends RectangleFigure {
+
+ /**
+ * @generated
+ */
+ private WrappingLabel fNamedElementNameLabel;
+
+ /**
+ * @generated
+ */
+ public NamedElementDescriptor() {
+ this.setLineWidth(1);
+ this.setForegroundColor(ColorConstants.black);
+ createContents();
+ }
+
+ /**
+ * @generated
+ */
+ private void createContents() {
+
+ fNamedElementNameLabel = new WrappingLabel();
+ fNamedElementNameLabel.setText("");
+ fNamedElementNameLabel.setForegroundColor(ColorConstants.black);
+
+ fNamedElementNameLabel.setFont(FNAMEDELEMENTNAMELABEL_FONT);
+
+ this.add(fNamedElementNameLabel);
+
+ }
+
+ /**
+ * @generated
+ */
+ private boolean myUseLocalCoordinates = false;
+
+ /**
+ * @generated
+ */
+ protected boolean useLocalCoordinates() {
+ return myUseLocalCoordinates;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setUseLocalCoordinates(boolean useLocalCoordinates) {
+ myUseLocalCoordinates = useLocalCoordinates;
+ }
+
+ /**
+ * @generated
+ */
+ public WrappingLabel getNamedElementNameLabel() {
+ return fNamedElementNameLabel;
+ }
+
+ }
+
+ /**
+ * @generated
+ */
+ static final Font FNAMEDELEMENTNAMELABEL_FONT = new Font(Display.getCurrent(), "Arial", 10, SWT.BOLD);
+
+ /**
+ * @generated
+ */
+ @Override
+ public Object getPreferredValue(EStructuralFeature feature) {
+ IPreferenceStore preferenceStore = (IPreferenceStore)getDiagramPreferencesHint().getPreferenceStore();
+ Object result = null;
+
+ if(feature == NotationPackage.eINSTANCE.getLineStyle_LineColor() || feature == NotationPackage.eINSTANCE.getFontStyle_FontColor() || feature == NotationPackage.eINSTANCE.getFillStyle_FillColor()) {
+ String prefColor = null;
+ if(feature == NotationPackage.eINSTANCE.getLineStyle_LineColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("TimeExpression", PreferenceConstantHelper.COLOR_LINE);
+ } else if(feature == NotationPackage.eINSTANCE.getFontStyle_FontColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("TimeExpression", PreferenceConstantHelper.COLOR_FONT);
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_FillColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("TimeExpression", PreferenceConstantHelper.COLOR_FILL);
+ }
+ result = FigureUtilities.RGBToInteger(PreferenceConverter.getColor((IPreferenceStore)preferenceStore, prefColor));
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_Transparency() || feature == NotationPackage.eINSTANCE.getFillStyle_Gradient()) {
+ String prefGradient = PreferenceConstantHelper.getElementConstant("TimeExpression", PreferenceConstantHelper.COLOR_GRADIENT);
+ GradientPreferenceConverter gradientPreferenceConverter = new GradientPreferenceConverter(preferenceStore.getString(prefGradient));
+ if(feature == NotationPackage.eINSTANCE.getFillStyle_Transparency()) {
+ result = new Integer(gradientPreferenceConverter.getTransparency());
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_Gradient()) {
+ result = gradientPreferenceConverter.getGradientData();
+ }
+ }
+
+ if(result == null) {
+ result = getStructuralFeatureValue(feature);
+ }
+ return result;
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/TimeExpressionNameEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/TimeExpressionNameEditPart.java
new file mode 100644
index 00000000000..16b0d96fcdd
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/TimeExpressionNameEditPart.java
@@ -0,0 +1,791 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EAnnotation;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.emf.transaction.RunnableWithResult;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.AccessibleEditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.requests.DirectEditRequest;
+import org.eclipse.gef.tools.DirectEditManager;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.CompartmentEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
+import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
+import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
+import org.eclipse.gmf.runtime.notation.FontStyle;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
+import org.eclipse.jface.viewers.ICellEditorValidator;
+import org.eclipse.jface.window.Window;
+import org.eclipse.papyrus.diagram.common.directedit.MultilineLabelDirectEditManager;
+import org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition;
+import org.eclipse.papyrus.diagram.common.editpolicies.IMaskManagedLabelEditPolicy;
+import org.eclipse.papyrus.diagram.common.figure.node.ILabelFigure;
+import org.eclipse.papyrus.diagram.common.util.DiagramEditPartsUtil;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLTextSelectionEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.diagram.composite.providers.UMLParserProvider;
+import org.eclipse.papyrus.extensionpoints.editors.Activator;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
+import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
+import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
+import org.eclipse.papyrus.umlutils.ui.VisualInformationPapyrusConstant;
+import org.eclipse.papyrus.umlutils.ui.helper.NameLabelIconHelper;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.AccessibleEvent;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.FontData;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.ui.PlatformUI;
+
+/**
+ * @generated
+ */
+public class TimeExpressionNameEditPart extends CompartmentEditPart implements ITextAwareEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 5185;
+
+ /**
+ * @generated
+ */
+ private DirectEditManager manager;
+
+ /**
+ * @generated
+ */
+ private IParser parser;
+
+ /**
+ * @generated
+ */
+ private List<?> parserElements;
+
+ /**
+ * @generated
+ */
+ private String defaultText;
+
+ /**
+ * direct edition mode (default, undefined, registered editor, etc.)
+ *
+ * @generated
+ */
+ protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
+
+ /**
+ * configuration from a registered edit dialog
+ *
+ * @generated
+ */
+ protected IDirectEditorConfiguration configuration;
+
+ /**
+ * @generated
+ */
+ public TimeExpressionNameEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
+ installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new CompositeStructureDiagramEditPart.NodeLabelDragPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelTextHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getText();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getText();
+ } else {
+ return ((Label)figure).getText();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelTextHelper(IFigure figure, String text) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setText(text);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setText(text);
+ } else {
+ ((Label)figure).setText(text);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIconHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getIcon();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getIcon();
+ } else {
+ return ((Label)figure).getIcon();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelIconHelper(IFigure figure, Image icon) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setIcon(icon);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setIcon(icon);
+ } else {
+ ((Label)figure).setIcon(icon);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabel(WrappingLabel figure) {
+ unregisterVisuals();
+ setFigure(figure);
+ defaultText = getLabelTextHelper(figure);
+ registerVisuals();
+ refreshVisuals();
+ }
+
+ /**
+ * @generated
+ */
+ protected List getModelChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject getParserElement() {
+ return resolveSemanticElement();
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIcon() {
+ EObject parserElement = getParserElement();
+ if(parserElement == null) {
+ return null;
+ }
+
+ List<View> views = DiagramEditPartsUtil.findViews(parserElement, getViewer());
+ for(View view : views) {
+ if(NameLabelIconHelper.showLabelIcon(view)) {
+ return UMLElementTypes.getImage(parserElement.eClass());
+ }
+ }
+ return null;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelText() {
+ String text = null;
+ EObject parserElement = getParserElement();
+ if(parserElement != null && getParser() != null) {
+ text = getParser().getPrintString(new EObjectAdapter(parserElement), getParserOptions().intValue());
+ }
+ if(text == null || text.length() == 0) {
+ text = defaultText;
+ }
+ return text;
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabelText(String text) {
+ setLabelTextHelper(getFigure(), text);
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public String getEditText() {
+ if(getParserElement() == null || getParser() == null) {
+ return ""; //$NON-NLS-1$
+ }
+ return getParser().getEditString(new EObjectAdapter(getParserElement()), getParserOptions().intValue());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean isEditable() {
+ return getParser() != null;
+ }
+
+ /**
+ * @generated
+ */
+ public ICellEditorValidator getEditTextValidator() {
+ return new ICellEditorValidator() {
+
+ public String isValid(final Object value) {
+ if(value instanceof String) {
+ final EObject element = getParserElement();
+ final IParser parser = getParser();
+ try {
+ IParserEditStatus valid = (IParserEditStatus)getEditingDomain().runExclusive(new RunnableWithResult.Impl() {
+
+ public void run() {
+ setResult(parser.isValidEditString(new EObjectAdapter(element), (String)value));
+ }
+ });
+ return valid.getCode() == ParserEditStatus.EDITABLE ? null : valid.getMessage();
+ } catch (InterruptedException ie) {
+ ie.printStackTrace();
+ }
+ }
+
+ // shouldn't get here
+ return null;
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ public IContentAssistProcessor getCompletionProcessor() {
+ if(getParserElement() == null || getParser() == null) {
+ return null;
+ }
+ return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
+ }
+
+ /**
+ * @generated
+ */
+ public ParserOptions getParserOptions() {
+ return ParserOptions.NONE;
+ }
+
+ /**
+ * @generated
+ */
+ public IParser getParser() {
+ if(parser == null) {
+ parser = UMLParserProvider.getParser(UMLElementTypes.TimeExpression_2102, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.diagram.composite.edit.parts.TimeExpressionNameEditPart.VISUAL_ID));
+ }
+ return parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected DirectEditManager getManager() {
+ if(manager == null) {
+ setManager(new MultilineLabelDirectEditManager(this, MultilineLabelDirectEditManager.getTextCellEditorClass(this), UMLEditPartFactory.getTextCellEditorLocator(this)));
+ }
+ return manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setManager(DirectEditManager manager) {
+ this.manager = manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit() {
+ getManager().show();
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit(Point eventLocation) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(eventLocation.getSWTPoint());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void performDirectEdit(char initialCharacter) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(initialCharacter);
+ } else {
+ performDirectEdit();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEditRequest(Request request) {
+
+ final Request theRequest = request;
+
+ if(IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
+ directEditionMode = getDirectEditionType();
+ }
+ switch(directEditionMode) {
+ case IDirectEdition.NO_DIRECT_EDITION:
+ // no direct edition mode => does nothing
+ return;
+ case IDirectEdition.EXTENDED_DIRECT_EDITOR:
+ updateExtendedEditorConfiguration();
+ if(configuration == null || configuration.getLanguage() == null) {
+ performDefaultDirectEditorEdit(theRequest);
+ } else {
+ configuration.preEditAction(resolveSemanticElement());
+ Dialog dialog = null;
+ if(configuration instanceof IPopupEditorConfiguration) {
+ IPopupEditorHelper helper = ((IPopupEditorConfiguration)configuration).createPopupEditorHelper(this);
+ helper.showEditor();
+ return;
+ } else if(configuration instanceof IAdvancedEditorConfiguration) {
+ dialog = ((IAdvancedEditorConfiguration)configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
+ } else if(configuration instanceof IDirectEditorConfiguration) {
+ dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), ((IDirectEditorConfiguration)configuration).getTextToEdit(resolveSemanticElement()), (IDirectEditorConfiguration)configuration);
+ } else {
+ return;
+ }
+ final Dialog finalDialog = dialog;
+
+ if(Window.OK == dialog.open()) {
+ TransactionalEditingDomain domain = getEditingDomain();
+ RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
+
+ @Override
+ protected void doExecute() {
+ configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog)finalDialog).getValue());
+
+ }
+ };
+ domain.getCommandStack().execute(command);
+ }
+ }
+ break;
+ case IDirectEdition.DEFAULT_DIRECT_EDITOR:
+
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ break;
+ default:
+ break;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshLabel();
+ refreshFont();
+ refreshFontColor();
+ refreshUnderline();
+ refreshStrikeThrough();
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshLabel() {
+ EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
+ if(maskLabelPolicy == null) {
+ setLabelTextHelper(getFigure(), getLabelText());
+ setLabelIconHelper(getFigure(), getLabelIcon());
+ }
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshUnderline() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextUnderline(style.isUnderline());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshStrikeThrough() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextStrikeThrough(style.isStrikeThrough());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshFont() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null) {
+ FontData fontData = new FontData(style.getFontName(), style.getFontHeight(), (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
+ setFont(fontData);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setFontColor(Color color) {
+ getFigure().setForegroundColor(color);
+ }
+
+ /**
+ * @generated
+ */
+ protected void addSemanticListeners() {
+ if(getParser() instanceof ISemanticParser) {
+ EObject element = resolveSemanticElement();
+ parserElements = ((ISemanticParser)getParser()).getSemanticElementsBeingParsed(element);
+ for(int i = 0; i < parserElements.size(); i++) {
+ addListenerFilter("SemanticModel" + i, this, (EObject)parserElements.get(i)); //$NON-NLS-1$
+ }
+ } else {
+ super.addSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeSemanticListeners() {
+ if(parserElements != null) {
+ for(int i = 0; i < parserElements.size(); i++) {
+ removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
+ }
+ } else {
+ super.removeSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected AccessibleEditPart getAccessibleEditPart() {
+ if(accessibleEP == null) {
+ accessibleEP = new AccessibleGraphicalEditPart() {
+
+ public void getName(AccessibleEvent e) {
+ e.result = getLabelTextHelper(getFigure());
+ }
+ };
+ }
+ return accessibleEP;
+ }
+
+ /**
+ * @generated
+ */
+ private View getFontStyleOwnerView() {
+ return (View)getModel();
+ }
+
+ /**
+ * Returns the kind of associated editor for direct edition.
+ *
+ * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition
+ * @generated
+ */
+ public int getDirectEditionType() {
+ if(checkExtendedEditor()) {
+ initExtendedEditorConfiguration();
+ return IDirectEdition.EXTENDED_DIRECT_EDITOR;
+ }
+ if(checkDefaultEdition()) {
+ return IDirectEdition.DEFAULT_DIRECT_EDITOR;
+ }
+
+ // not a named element. no specific editor => do nothing
+ return IDirectEdition.NO_DIRECT_EDITION;
+ }
+
+ /**
+ * Checks if an extended editor is present.
+ *
+ * @return <code>true</code> if an extended editor is present.
+ * @generated
+ */
+ protected boolean checkExtendedEditor() {
+ if(resolveSemanticElement() != null) {
+ return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ return false;
+ }
+
+ /**
+ * Checks if a default direct edition is available
+ *
+ * @return <code>true</code> if a default direct edition is available
+ * @generated
+ */
+ protected boolean checkDefaultEdition() {
+ return (getParser() != null);
+ }
+
+ /**
+ * Initializes the extended editor configuration
+ *
+ * @generated
+ */
+ protected void initExtendedEditorConfiguration() {
+ if(configuration == null) {
+ final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("")) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else {
+ configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ }
+ }
+
+ /**
+ * Updates the preference configuration
+ *
+ * @generated
+ */
+ protected void updateExtendedEditorConfiguration() {
+ String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("") && languagePreferred != configuration.getLanguage()) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else if(IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
+ configuration = null;
+ }
+ }
+
+ /**
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
+ protected void performDefaultDirectEditorEdit(final Request theRequest) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void addNotationalListeners() {
+ super.addNotationalListeners();
+ addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeNotationalListeners() {
+ super.removeNotationalListeners();
+ removeListenerFilter("PrimaryView"); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void handleNotificationEvent(Notification event) {
+ refreshLabel();
+ Object feature = event.getFeature();
+ if(NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
+ Integer c = (Integer)event.getNewValue();
+ setFontColor(DiagramColorRegistry.getInstance().getColor(c));
+ } else if(NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
+ refreshUnderline();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
+ refreshStrikeThrough();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
+ refreshFont();
+ } else {
+ if(getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
+ refreshLabel();
+ }
+ if(getParser() instanceof ISemanticParser) {
+ ISemanticParser modelParser = (ISemanticParser)getParser();
+ if(modelParser.areSemanticElementsAffected(null, event)) {
+ removeSemanticListeners();
+ if(resolveSemanticElement() != null) {
+ addSemanticListeners();
+ }
+ refreshLabel();
+ }
+ }
+ }
+
+ if(event.getNewValue() instanceof EAnnotation && VisualInformationPapyrusConstant.DISPLAY_NAMELABELICON.equals(((EAnnotation)event.getNewValue()).getSource())) {
+ refreshLabel();
+ }
+
+ super.handleNotificationEvent(event);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createFigure() {
+ // Parent should assign one using setLabel() method
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ private static final String ADD_PARENT_MODEL = "AddParentModel";
+
+ /**
+ * @generated
+ */
+ public void activate() {
+ super.activate();
+ addOwnerElementListeners();
+ }
+
+ /**
+ * @generated
+ */
+ protected void addOwnerElementListeners() {
+ addListenerFilter(ADD_PARENT_MODEL, this, ((View)getParent().getModel())); //$NON-NLS-1$
+
+ }
+
+ /**
+ * @generated
+ */
+ public void deactivate() {
+ removeOwnerElementListeners();
+ super.deactivate();
+
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeOwnerElementListeners() {
+ removeListenerFilter(ADD_PARENT_MODEL);
+
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/TimeIntervalEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/TimeIntervalEditPart.java
new file mode 100644
index 00000000000..6ebafa6f2d2
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/TimeIntervalEditPart.java
@@ -0,0 +1,5167 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.ArrayList;
+import java.util.LinkedList;
+import java.util.List;
+
+import org.eclipse.draw2d.ColorConstants;
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.RectangleFigure;
+import org.eclipse.draw2d.Shape;
+import org.eclipse.draw2d.StackLayout;
+import org.eclipse.emf.ecore.EStructuralFeature;
+import org.eclipse.gef.EditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.editpolicies.LayoutEditPolicy;
+import org.eclipse.gef.editpolicies.NonResizableEditPolicy;
+import org.eclipse.gef.requests.CreateRequest;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ShapeNodeEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.FigureUtilities;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.gef.ui.figures.DefaultSizeNodeFigure;
+import org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.jface.preference.PreferenceConverter;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.HyperLinkPopupBarEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.QualifiedNameDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.helper.PreferenceInitializerForElementHelper;
+import org.eclipse.papyrus.diagram.composite.edit.policies.TimeIntervalItemSemanticEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorPlugin;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter;
+import org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.Font;
+import org.eclipse.swt.widgets.Display;
+
+/**
+ * @generated
+ */
+public class TimeIntervalEditPart extends
+
+ShapeNodeEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 2105;
+
+ /**
+ * @generated
+ */
+ protected IFigure contentPane;
+
+ /**
+ * @generated
+ */
+ protected IFigure primaryShape;
+
+ /**
+ * @generated
+ */
+ public TimeIntervalEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new TimeIntervalItemSemanticEditPolicy());
+ installEditPolicy(EditPolicy.LAYOUT_ROLE, createLayoutEditPolicy());
+ installEditPolicy(QualifiedNameDisplayEditPolicy.QUALIFIED_NAME_POLICY, new QualifiedNameDisplayEditPolicy());
+ installEditPolicy(AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeNodeLabelDisplayEditPolicy());
+ installEditPolicy(EditPolicyRoles.POPUPBAR_ROLE, new HyperLinkPopupBarEditPolicy());
+ // XXX need an SCR to runtime to have another abstract superclass that would let children add reasonable editpolicies
+ // removeEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CONNECTION_HANDLES_ROLE);
+ }
+
+ /**
+ * @generated
+ */
+ protected LayoutEditPolicy createLayoutEditPolicy() {
+ org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy lep = new org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy() {
+
+ protected EditPolicy createChildEditPolicy(EditPart child) {
+ EditPolicy result = child.getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(result == null) {
+ result = new NonResizableEditPolicy();
+ }
+ return result;
+ }
+
+ protected Command getMoveChildrenCommand(Request request) {
+ return null;
+ }
+
+ protected Command getCreateCommand(CreateRequest request) {
+ return null;
+ }
+ };
+ return lep;
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createNodeShape() {
+ return primaryShape = new NamedElementDescriptor();
+ }
+
+ /**
+ * @generated
+ */
+ public NamedElementDescriptor getPrimaryShape() {
+ return (NamedElementDescriptor)primaryShape;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean addFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof TimeIntervalNameEditPart) {
+ ((TimeIntervalNameEditPart)childEditPart).setLabel(getPrimaryShape().getNamedElementNameLabel());
+ return true;
+ }
+
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean removeFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof TimeIntervalNameEditPart) {
+ return true;
+ }
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected void addChildVisual(EditPart childEditPart, int index) {
+ if(addFixedChild(childEditPart)) {
+ return;
+ }
+ super.addChildVisual(childEditPart, -1);
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeChildVisual(EditPart childEditPart) {
+ if(removeFixedChild(childEditPart)) {
+ return;
+ }
+ super.removeChildVisual(childEditPart);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure getContentPaneFor(IGraphicalEditPart editPart) {
+ return getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ protected NodeFigure createNodePlate() {
+ String prefElementId = "TimeInterval";
+ IPreferenceStore store = UMLDiagramEditorPlugin.getInstance().getPreferenceStore();
+ String preferenceConstantWitdh = PreferenceInitializerForElementHelper.getpreferenceKey(getNotationView(), prefElementId, PreferenceConstantHelper.WIDTH);
+ String preferenceConstantHeight = PreferenceInitializerForElementHelper.getpreferenceKey(getNotationView(), prefElementId, PreferenceConstantHelper.HEIGHT);
+ DefaultSizeNodeFigure result = new DefaultSizeNodeFigure(store.getInt(preferenceConstantWitdh), store.getInt(preferenceConstantHeight));
+
+ return result;
+ }
+
+ /**
+ * Creates figure for this edit part.
+ *
+ * Body of this method does not depend on settings in generation model
+ * so you may safely remove <i>generated</i> tag and modify it.
+ *
+ * @generated
+ */
+ protected NodeFigure createNodeFigure() {
+ NodeFigure figure = createNodePlate();
+ figure.setLayoutManager(new StackLayout());
+ IFigure shape = createNodeShape();
+ figure.add(shape);
+ contentPane = setupContentPane(shape);
+ return figure;
+ }
+
+ /**
+ * Default implementation treats passed figure as content pane.
+ * Respects layout one may have set for generated figure.
+ *
+ * @param nodeShape
+ * instance of generated figure class
+ * @generated
+ */
+ protected IFigure setupContentPane(IFigure nodeShape) {
+ if(nodeShape.getLayoutManager() == null) {
+ ConstrainedToolbarLayout layout = new ConstrainedToolbarLayout();
+ layout.setSpacing(5);
+ nodeShape.setLayoutManager(layout);
+ }
+ return nodeShape; // use nodeShape itself as contentPane
+ }
+
+ /**
+ * @generated
+ */
+ public IFigure getContentPane() {
+ if(contentPane != null) {
+ return contentPane;
+ }
+ return super.getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ protected void setForegroundColor(Color color) {
+ if(primaryShape != null) {
+ primaryShape.setForegroundColor(color);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLineWidth(int width) {
+ if(primaryShape instanceof Shape) {
+ ((Shape)primaryShape).setLineWidth(width);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLineType(int style) {
+ if(primaryShape instanceof Shape) {
+ ((Shape)primaryShape).setLineStyle(style);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public EditPart getPrimaryChildEditPart() {
+ return getChildBySemanticHint(UMLVisualIDRegistry.getType(TimeIntervalNameEditPart.VISUAL_ID));
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnSource() {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(11);
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ types.add(UMLElementTypes.Substitution_4011);
+ types.add(UMLElementTypes.Realization_4006);
+ types.add(UMLElementTypes.Manifestation_4012);
+ types.add(UMLElementTypes.Abstraction_4007);
+ types.add(UMLElementTypes.Usage_4008);
+ types.add(UMLElementTypes.Deployment_4009);
+ types.add(UMLElementTypes.Dependency_4017);
+ types.add(UMLElementTypes.Dependency_4010);
+ types.add(UMLElementTypes.InformationFlow_4021);
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnSourceAndTarget(IGraphicalEditPart targetEditPart) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.TimeIntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.TimeIntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.TimeIntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMATypesForTarget(IElementType relationshipType) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(relationshipType == UMLElementTypes.ComponentRealization_4004) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InterfaceRealization_4005) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Substitution_4011) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Realization_4006) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Manifestation_4012) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Abstraction_4007) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Usage_4008) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Deployment_4009) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4017) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4010) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InformationFlow_4021) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnTarget() {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(15);
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ types.add(UMLElementTypes.Substitution_4011);
+ types.add(UMLElementTypes.Realization_4006);
+ types.add(UMLElementTypes.Manifestation_4012);
+ types.add(UMLElementTypes.Abstraction_4007);
+ types.add(UMLElementTypes.Usage_4008);
+ types.add(UMLElementTypes.Deployment_4009);
+ types.add(UMLElementTypes.Dependency_4017);
+ types.add(UMLElementTypes.Dependency_4010);
+ types.add(UMLElementTypes.TimeObservationEvent_4018);
+ types.add(UMLElementTypes.DurationObservationEvent_4019);
+ types.add(UMLElementTypes.InformationFlow_4021);
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMATypesForSource(IElementType relationshipType) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(relationshipType == UMLElementTypes.CommentAnnotatedElement_4002) {
+ types.add(UMLElementTypes.Comment_2109);
+ types.add(UMLElementTypes.Comment_3097);
+ } else if(relationshipType == UMLElementTypes.ConstraintConstrainedElement_4003) {
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.ComponentRealization_4004) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InterfaceRealization_4005) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Substitution_4011) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Realization_4006) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Manifestation_4012) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Abstraction_4007) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Usage_4008) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Deployment_4009) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4017) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4010) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.TimeObservationEvent_4018) {
+ types.add(UMLElementTypes.TimeObservation_2094);
+ } else if(relationshipType == UMLElementTypes.DurationObservationEvent_4019) {
+ types.add(UMLElementTypes.DurationObservation_2093);
+ } else if(relationshipType == UMLElementTypes.InformationFlow_4021) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public class NamedElementDescriptor extends RectangleFigure {
+
+ /**
+ * @generated
+ */
+ private WrappingLabel fNamedElementNameLabel;
+
+ /**
+ * @generated
+ */
+ public NamedElementDescriptor() {
+ this.setLineWidth(1);
+ this.setForegroundColor(ColorConstants.black);
+ createContents();
+ }
+
+ /**
+ * @generated
+ */
+ private void createContents() {
+
+ fNamedElementNameLabel = new WrappingLabel();
+ fNamedElementNameLabel.setText("");
+ fNamedElementNameLabel.setForegroundColor(ColorConstants.black);
+
+ fNamedElementNameLabel.setFont(FNAMEDELEMENTNAMELABEL_FONT);
+
+ this.add(fNamedElementNameLabel);
+
+ }
+
+ /**
+ * @generated
+ */
+ private boolean myUseLocalCoordinates = false;
+
+ /**
+ * @generated
+ */
+ protected boolean useLocalCoordinates() {
+ return myUseLocalCoordinates;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setUseLocalCoordinates(boolean useLocalCoordinates) {
+ myUseLocalCoordinates = useLocalCoordinates;
+ }
+
+ /**
+ * @generated
+ */
+ public WrappingLabel getNamedElementNameLabel() {
+ return fNamedElementNameLabel;
+ }
+
+ }
+
+ /**
+ * @generated
+ */
+ static final Font FNAMEDELEMENTNAMELABEL_FONT = new Font(Display.getCurrent(), "Arial", 10, SWT.BOLD);
+
+ /**
+ * @generated
+ */
+ @Override
+ public Object getPreferredValue(EStructuralFeature feature) {
+ IPreferenceStore preferenceStore = (IPreferenceStore)getDiagramPreferencesHint().getPreferenceStore();
+ Object result = null;
+
+ if(feature == NotationPackage.eINSTANCE.getLineStyle_LineColor() || feature == NotationPackage.eINSTANCE.getFontStyle_FontColor() || feature == NotationPackage.eINSTANCE.getFillStyle_FillColor()) {
+ String prefColor = null;
+ if(feature == NotationPackage.eINSTANCE.getLineStyle_LineColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("TimeInterval", PreferenceConstantHelper.COLOR_LINE);
+ } else if(feature == NotationPackage.eINSTANCE.getFontStyle_FontColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("TimeInterval", PreferenceConstantHelper.COLOR_FONT);
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_FillColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("TimeInterval", PreferenceConstantHelper.COLOR_FILL);
+ }
+ result = FigureUtilities.RGBToInteger(PreferenceConverter.getColor((IPreferenceStore)preferenceStore, prefColor));
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_Transparency() || feature == NotationPackage.eINSTANCE.getFillStyle_Gradient()) {
+ String prefGradient = PreferenceConstantHelper.getElementConstant("TimeInterval", PreferenceConstantHelper.COLOR_GRADIENT);
+ GradientPreferenceConverter gradientPreferenceConverter = new GradientPreferenceConverter(preferenceStore.getString(prefGradient));
+ if(feature == NotationPackage.eINSTANCE.getFillStyle_Transparency()) {
+ result = new Integer(gradientPreferenceConverter.getTransparency());
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_Gradient()) {
+ result = gradientPreferenceConverter.getGradientData();
+ }
+ }
+
+ if(result == null) {
+ result = getStructuralFeatureValue(feature);
+ }
+ return result;
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/TimeIntervalNameEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/TimeIntervalNameEditPart.java
new file mode 100644
index 00000000000..1fb2eb58fb2
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/TimeIntervalNameEditPart.java
@@ -0,0 +1,791 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EAnnotation;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.emf.transaction.RunnableWithResult;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.AccessibleEditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.requests.DirectEditRequest;
+import org.eclipse.gef.tools.DirectEditManager;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.CompartmentEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
+import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
+import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
+import org.eclipse.gmf.runtime.notation.FontStyle;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
+import org.eclipse.jface.viewers.ICellEditorValidator;
+import org.eclipse.jface.window.Window;
+import org.eclipse.papyrus.diagram.common.directedit.MultilineLabelDirectEditManager;
+import org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition;
+import org.eclipse.papyrus.diagram.common.editpolicies.IMaskManagedLabelEditPolicy;
+import org.eclipse.papyrus.diagram.common.figure.node.ILabelFigure;
+import org.eclipse.papyrus.diagram.common.util.DiagramEditPartsUtil;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLTextSelectionEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.diagram.composite.providers.UMLParserProvider;
+import org.eclipse.papyrus.extensionpoints.editors.Activator;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
+import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
+import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
+import org.eclipse.papyrus.umlutils.ui.VisualInformationPapyrusConstant;
+import org.eclipse.papyrus.umlutils.ui.helper.NameLabelIconHelper;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.AccessibleEvent;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.FontData;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.ui.PlatformUI;
+
+/**
+ * @generated
+ */
+public class TimeIntervalNameEditPart extends CompartmentEditPart implements ITextAwareEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 5188;
+
+ /**
+ * @generated
+ */
+ private DirectEditManager manager;
+
+ /**
+ * @generated
+ */
+ private IParser parser;
+
+ /**
+ * @generated
+ */
+ private List<?> parserElements;
+
+ /**
+ * @generated
+ */
+ private String defaultText;
+
+ /**
+ * direct edition mode (default, undefined, registered editor, etc.)
+ *
+ * @generated
+ */
+ protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
+
+ /**
+ * configuration from a registered edit dialog
+ *
+ * @generated
+ */
+ protected IDirectEditorConfiguration configuration;
+
+ /**
+ * @generated
+ */
+ public TimeIntervalNameEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
+ installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new CompositeStructureDiagramEditPart.NodeLabelDragPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelTextHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getText();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getText();
+ } else {
+ return ((Label)figure).getText();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelTextHelper(IFigure figure, String text) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setText(text);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setText(text);
+ } else {
+ ((Label)figure).setText(text);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIconHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getIcon();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getIcon();
+ } else {
+ return ((Label)figure).getIcon();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelIconHelper(IFigure figure, Image icon) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setIcon(icon);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setIcon(icon);
+ } else {
+ ((Label)figure).setIcon(icon);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabel(WrappingLabel figure) {
+ unregisterVisuals();
+ setFigure(figure);
+ defaultText = getLabelTextHelper(figure);
+ registerVisuals();
+ refreshVisuals();
+ }
+
+ /**
+ * @generated
+ */
+ protected List getModelChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject getParserElement() {
+ return resolveSemanticElement();
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIcon() {
+ EObject parserElement = getParserElement();
+ if(parserElement == null) {
+ return null;
+ }
+
+ List<View> views = DiagramEditPartsUtil.findViews(parserElement, getViewer());
+ for(View view : views) {
+ if(NameLabelIconHelper.showLabelIcon(view)) {
+ return UMLElementTypes.getImage(parserElement.eClass());
+ }
+ }
+ return null;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelText() {
+ String text = null;
+ EObject parserElement = getParserElement();
+ if(parserElement != null && getParser() != null) {
+ text = getParser().getPrintString(new EObjectAdapter(parserElement), getParserOptions().intValue());
+ }
+ if(text == null || text.length() == 0) {
+ text = defaultText;
+ }
+ return text;
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabelText(String text) {
+ setLabelTextHelper(getFigure(), text);
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public String getEditText() {
+ if(getParserElement() == null || getParser() == null) {
+ return ""; //$NON-NLS-1$
+ }
+ return getParser().getEditString(new EObjectAdapter(getParserElement()), getParserOptions().intValue());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean isEditable() {
+ return getParser() != null;
+ }
+
+ /**
+ * @generated
+ */
+ public ICellEditorValidator getEditTextValidator() {
+ return new ICellEditorValidator() {
+
+ public String isValid(final Object value) {
+ if(value instanceof String) {
+ final EObject element = getParserElement();
+ final IParser parser = getParser();
+ try {
+ IParserEditStatus valid = (IParserEditStatus)getEditingDomain().runExclusive(new RunnableWithResult.Impl() {
+
+ public void run() {
+ setResult(parser.isValidEditString(new EObjectAdapter(element), (String)value));
+ }
+ });
+ return valid.getCode() == ParserEditStatus.EDITABLE ? null : valid.getMessage();
+ } catch (InterruptedException ie) {
+ ie.printStackTrace();
+ }
+ }
+
+ // shouldn't get here
+ return null;
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ public IContentAssistProcessor getCompletionProcessor() {
+ if(getParserElement() == null || getParser() == null) {
+ return null;
+ }
+ return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
+ }
+
+ /**
+ * @generated
+ */
+ public ParserOptions getParserOptions() {
+ return ParserOptions.NONE;
+ }
+
+ /**
+ * @generated
+ */
+ public IParser getParser() {
+ if(parser == null) {
+ parser = UMLParserProvider.getParser(UMLElementTypes.TimeInterval_2105, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.diagram.composite.edit.parts.TimeIntervalNameEditPart.VISUAL_ID));
+ }
+ return parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected DirectEditManager getManager() {
+ if(manager == null) {
+ setManager(new MultilineLabelDirectEditManager(this, MultilineLabelDirectEditManager.getTextCellEditorClass(this), UMLEditPartFactory.getTextCellEditorLocator(this)));
+ }
+ return manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setManager(DirectEditManager manager) {
+ this.manager = manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit() {
+ getManager().show();
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit(Point eventLocation) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(eventLocation.getSWTPoint());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void performDirectEdit(char initialCharacter) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(initialCharacter);
+ } else {
+ performDirectEdit();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEditRequest(Request request) {
+
+ final Request theRequest = request;
+
+ if(IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
+ directEditionMode = getDirectEditionType();
+ }
+ switch(directEditionMode) {
+ case IDirectEdition.NO_DIRECT_EDITION:
+ // no direct edition mode => does nothing
+ return;
+ case IDirectEdition.EXTENDED_DIRECT_EDITOR:
+ updateExtendedEditorConfiguration();
+ if(configuration == null || configuration.getLanguage() == null) {
+ performDefaultDirectEditorEdit(theRequest);
+ } else {
+ configuration.preEditAction(resolveSemanticElement());
+ Dialog dialog = null;
+ if(configuration instanceof IPopupEditorConfiguration) {
+ IPopupEditorHelper helper = ((IPopupEditorConfiguration)configuration).createPopupEditorHelper(this);
+ helper.showEditor();
+ return;
+ } else if(configuration instanceof IAdvancedEditorConfiguration) {
+ dialog = ((IAdvancedEditorConfiguration)configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
+ } else if(configuration instanceof IDirectEditorConfiguration) {
+ dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), ((IDirectEditorConfiguration)configuration).getTextToEdit(resolveSemanticElement()), (IDirectEditorConfiguration)configuration);
+ } else {
+ return;
+ }
+ final Dialog finalDialog = dialog;
+
+ if(Window.OK == dialog.open()) {
+ TransactionalEditingDomain domain = getEditingDomain();
+ RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
+
+ @Override
+ protected void doExecute() {
+ configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog)finalDialog).getValue());
+
+ }
+ };
+ domain.getCommandStack().execute(command);
+ }
+ }
+ break;
+ case IDirectEdition.DEFAULT_DIRECT_EDITOR:
+
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ break;
+ default:
+ break;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshLabel();
+ refreshFont();
+ refreshFontColor();
+ refreshUnderline();
+ refreshStrikeThrough();
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshLabel() {
+ EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
+ if(maskLabelPolicy == null) {
+ setLabelTextHelper(getFigure(), getLabelText());
+ setLabelIconHelper(getFigure(), getLabelIcon());
+ }
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshUnderline() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextUnderline(style.isUnderline());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshStrikeThrough() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextStrikeThrough(style.isStrikeThrough());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshFont() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null) {
+ FontData fontData = new FontData(style.getFontName(), style.getFontHeight(), (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
+ setFont(fontData);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setFontColor(Color color) {
+ getFigure().setForegroundColor(color);
+ }
+
+ /**
+ * @generated
+ */
+ protected void addSemanticListeners() {
+ if(getParser() instanceof ISemanticParser) {
+ EObject element = resolveSemanticElement();
+ parserElements = ((ISemanticParser)getParser()).getSemanticElementsBeingParsed(element);
+ for(int i = 0; i < parserElements.size(); i++) {
+ addListenerFilter("SemanticModel" + i, this, (EObject)parserElements.get(i)); //$NON-NLS-1$
+ }
+ } else {
+ super.addSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeSemanticListeners() {
+ if(parserElements != null) {
+ for(int i = 0; i < parserElements.size(); i++) {
+ removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
+ }
+ } else {
+ super.removeSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected AccessibleEditPart getAccessibleEditPart() {
+ if(accessibleEP == null) {
+ accessibleEP = new AccessibleGraphicalEditPart() {
+
+ public void getName(AccessibleEvent e) {
+ e.result = getLabelTextHelper(getFigure());
+ }
+ };
+ }
+ return accessibleEP;
+ }
+
+ /**
+ * @generated
+ */
+ private View getFontStyleOwnerView() {
+ return (View)getModel();
+ }
+
+ /**
+ * Returns the kind of associated editor for direct edition.
+ *
+ * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition
+ * @generated
+ */
+ public int getDirectEditionType() {
+ if(checkExtendedEditor()) {
+ initExtendedEditorConfiguration();
+ return IDirectEdition.EXTENDED_DIRECT_EDITOR;
+ }
+ if(checkDefaultEdition()) {
+ return IDirectEdition.DEFAULT_DIRECT_EDITOR;
+ }
+
+ // not a named element. no specific editor => do nothing
+ return IDirectEdition.NO_DIRECT_EDITION;
+ }
+
+ /**
+ * Checks if an extended editor is present.
+ *
+ * @return <code>true</code> if an extended editor is present.
+ * @generated
+ */
+ protected boolean checkExtendedEditor() {
+ if(resolveSemanticElement() != null) {
+ return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ return false;
+ }
+
+ /**
+ * Checks if a default direct edition is available
+ *
+ * @return <code>true</code> if a default direct edition is available
+ * @generated
+ */
+ protected boolean checkDefaultEdition() {
+ return (getParser() != null);
+ }
+
+ /**
+ * Initializes the extended editor configuration
+ *
+ * @generated
+ */
+ protected void initExtendedEditorConfiguration() {
+ if(configuration == null) {
+ final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("")) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else {
+ configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ }
+ }
+
+ /**
+ * Updates the preference configuration
+ *
+ * @generated
+ */
+ protected void updateExtendedEditorConfiguration() {
+ String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("") && languagePreferred != configuration.getLanguage()) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else if(IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
+ configuration = null;
+ }
+ }
+
+ /**
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
+ protected void performDefaultDirectEditorEdit(final Request theRequest) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void addNotationalListeners() {
+ super.addNotationalListeners();
+ addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeNotationalListeners() {
+ super.removeNotationalListeners();
+ removeListenerFilter("PrimaryView"); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void handleNotificationEvent(Notification event) {
+ refreshLabel();
+ Object feature = event.getFeature();
+ if(NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
+ Integer c = (Integer)event.getNewValue();
+ setFontColor(DiagramColorRegistry.getInstance().getColor(c));
+ } else if(NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
+ refreshUnderline();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
+ refreshStrikeThrough();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
+ refreshFont();
+ } else {
+ if(getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
+ refreshLabel();
+ }
+ if(getParser() instanceof ISemanticParser) {
+ ISemanticParser modelParser = (ISemanticParser)getParser();
+ if(modelParser.areSemanticElementsAffected(null, event)) {
+ removeSemanticListeners();
+ if(resolveSemanticElement() != null) {
+ addSemanticListeners();
+ }
+ refreshLabel();
+ }
+ }
+ }
+
+ if(event.getNewValue() instanceof EAnnotation && VisualInformationPapyrusConstant.DISPLAY_NAMELABELICON.equals(((EAnnotation)event.getNewValue()).getSource())) {
+ refreshLabel();
+ }
+
+ super.handleNotificationEvent(event);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createFigure() {
+ // Parent should assign one using setLabel() method
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ private static final String ADD_PARENT_MODEL = "AddParentModel";
+
+ /**
+ * @generated
+ */
+ public void activate() {
+ super.activate();
+ addOwnerElementListeners();
+ }
+
+ /**
+ * @generated
+ */
+ protected void addOwnerElementListeners() {
+ addListenerFilter(ADD_PARENT_MODEL, this, ((View)getParent().getModel())); //$NON-NLS-1$
+
+ }
+
+ /**
+ * @generated
+ */
+ public void deactivate() {
+ removeOwnerElementListeners();
+ super.deactivate();
+
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeOwnerElementListeners() {
+ removeListenerFilter(ADD_PARENT_MODEL);
+
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/TimeObservationEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/TimeObservationEditPart.java
new file mode 100644
index 00000000000..58ba23b22c6
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/TimeObservationEditPart.java
@@ -0,0 +1,5448 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.ArrayList;
+import java.util.Collections;
+import java.util.LinkedList;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Shape;
+import org.eclipse.draw2d.StackLayout;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EStructuralFeature;
+import org.eclipse.gef.EditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.GraphicalEditPart;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.editpolicies.LayoutEditPolicy;
+import org.eclipse.gef.editpolicies.NonResizableEditPolicy;
+import org.eclipse.gef.handles.MoveHandle;
+import org.eclipse.gef.requests.CreateRequest;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IBorderItemEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.BorderItemSelectionEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.diagram.ui.figures.IBorderItemLocator;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.FigureUtilities;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.gef.ui.figures.DefaultSizeNodeFigure;
+import org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure;
+import org.eclipse.gmf.runtime.notation.Edge;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.jface.preference.PreferenceConverter;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeIconlDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.HyperLinkPopupBarEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.QualifiedNameDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.ShowHideLabelEditPolicy;
+import org.eclipse.papyrus.diagram.common.helper.PreferenceInitializerForElementHelper;
+import org.eclipse.papyrus.diagram.common.locator.ExternalLabelPositionLocator;
+import org.eclipse.papyrus.diagram.composite.custom.edit.parts.AbstractObservationEditPart;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.CustomDiagramDragDropEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.ObservationLayoutEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.figures.TimeObservationNodeFigure;
+import org.eclipse.papyrus.diagram.composite.edit.policies.TimeObservationItemSemanticEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorPlugin;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter;
+import org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper;
+import org.eclipse.swt.graphics.Color;
+
+/**
+ * @generated
+ */
+public class TimeObservationEditPart extends
+
+AbstractObservationEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 2094;
+
+ /**
+ * @generated
+ */
+ protected IFigure contentPane;
+
+ /**
+ * @generated
+ */
+ protected IFigure primaryShape;
+
+ /**
+ * @generated
+ */
+ public TimeObservationEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new TimeObservationItemSemanticEditPolicy());
+ installEditPolicy(EditPolicy.LAYOUT_ROLE, createLayoutEditPolicy());
+ installEditPolicy(AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeIconlDisplayEditPolicy());
+ installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new CustomDiagramDragDropEditPolicy());
+ installEditPolicy(QualifiedNameDisplayEditPolicy.QUALIFIED_NAME_POLICY, new QualifiedNameDisplayEditPolicy());
+ installEditPolicy(EditPolicyRoles.POPUPBAR_ROLE, new HyperLinkPopupBarEditPolicy());
+ installEditPolicy(EditPolicy.LAYOUT_ROLE, new ObservationLayoutEditPolicy());
+ installEditPolicy(ShowHideLabelEditPolicy.SHOW_HIDE_LABEL_ROLE, new ShowHideLabelEditPolicy());
+ // XXX need an SCR to runtime to have another abstract superclass that would let children add reasonable editpolicies
+ // removeEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CONNECTION_HANDLES_ROLE);
+ }
+
+ /**
+ * Papyrus codeGen
+ *
+ * @generated
+ **/
+ protected void handleNotificationEvent(Notification event) {
+ /*
+ * when a node have external node labels, the methods refreshChildren() remove the EditPart corresponding to the Label from the EditPart
+ * Registry. After that, we can't reset the visibility to true (using the Show/Hide Label Action)!
+ */
+ if(NotationPackage.eINSTANCE.getView_Visible().equals(event.getFeature())) {
+ Object notifier = event.getNotifier();
+ List<?> modelChildren = ((View)getModel()).getChildren();
+ if(!(notifier instanceof Edge)) {
+ if(modelChildren.contains(event.getNotifier())) {
+ return;
+ }
+ }
+ }
+ super.handleNotificationEvent(event);
+
+ }
+
+ /**
+ * @generated
+ */
+ protected LayoutEditPolicy createLayoutEditPolicy() {
+ org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy lep = new org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy() {
+
+ protected EditPolicy createChildEditPolicy(EditPart child) {
+ View childView = (View)child.getModel();
+ switch(UMLVisualIDRegistry.getVisualID(childView)) {
+ case TimeObservationNameEditPart.VISUAL_ID:
+ case TimeObservationStereotypeLabelEditPart.VISUAL_ID:
+ return new BorderItemSelectionEditPolicy() {
+
+ protected List createSelectionHandles() {
+ MoveHandle mh = new MoveHandle((GraphicalEditPart)getHost());
+ mh.setBorder(null);
+ return Collections.singletonList(mh);
+ }
+ };
+ }
+ EditPolicy result = child.getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(result == null) {
+ result = new NonResizableEditPolicy();
+ }
+ return result;
+ }
+
+ protected Command getMoveChildrenCommand(Request request) {
+ return null;
+ }
+
+ protected Command getCreateCommand(CreateRequest request) {
+ return null;
+ }
+ };
+ return lep;
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createNodeShape() {
+ return primaryShape = new TimeObservationNodeFigure();
+ }
+
+ /**
+ * @generated
+ */
+ public TimeObservationNodeFigure getPrimaryShape() {
+ return (TimeObservationNodeFigure)primaryShape;
+ }
+
+ /**
+ * @generated
+ */
+ protected void addBorderItem(IFigure borderItemContainer, IBorderItemEditPart borderItemEditPart) {
+ if(borderItemEditPart instanceof TimeObservationNameEditPart) {
+ IBorderItemLocator locator = new ExternalLabelPositionLocator(getMainFigure());
+ borderItemContainer.add(borderItemEditPart.getFigure(), locator);
+ } else if(borderItemEditPart instanceof TimeObservationStereotypeLabelEditPart) {
+ IBorderItemLocator locator = new ExternalLabelPositionLocator(getMainFigure());
+ borderItemContainer.add(borderItemEditPart.getFigure(), locator);
+ } else {
+ super.addBorderItem(borderItemContainer, borderItemEditPart);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected NodeFigure createNodePlate() {
+ String prefElementId = "TimeObservation";
+ IPreferenceStore store = UMLDiagramEditorPlugin.getInstance().getPreferenceStore();
+ String preferenceConstantWitdh = PreferenceInitializerForElementHelper.getpreferenceKey(getNotationView(), prefElementId, PreferenceConstantHelper.WIDTH);
+ String preferenceConstantHeight = PreferenceInitializerForElementHelper.getpreferenceKey(getNotationView(), prefElementId, PreferenceConstantHelper.HEIGHT);
+ DefaultSizeNodeFigure result = new DefaultSizeNodeFigure(store.getInt(preferenceConstantWitdh), store.getInt(preferenceConstantHeight));
+
+ return result;
+ }
+
+ /**
+ * Creates figure for this edit part.
+ *
+ * Body of this method does not depend on settings in generation model
+ * so you may safely remove <i>generated</i> tag and modify it.
+ *
+ * @generated
+ */
+ protected NodeFigure createMainFigure() {
+ NodeFigure figure = createNodePlate();
+ figure.setLayoutManager(new StackLayout());
+ IFigure shape = createNodeShape();
+ figure.add(shape);
+ contentPane = setupContentPane(shape);
+ return figure;
+ }
+
+ /**
+ * Default implementation treats passed figure as content pane.
+ * Respects layout one may have set for generated figure.
+ *
+ * @param nodeShape
+ * instance of generated figure class
+ * @generated
+ */
+ protected IFigure setupContentPane(IFigure nodeShape) {
+ return nodeShape; // use nodeShape itself as contentPane
+ }
+
+ /**
+ * @generated
+ */
+ public IFigure getContentPane() {
+ if(contentPane != null) {
+ return contentPane;
+ }
+ return super.getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ protected void setForegroundColor(Color color) {
+ if(primaryShape != null) {
+ primaryShape.setForegroundColor(color);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLineWidth(int width) {
+ if(primaryShape instanceof Shape) {
+ ((Shape)primaryShape).setLineWidth(width);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLineType(int style) {
+ if(primaryShape instanceof Shape) {
+ ((Shape)primaryShape).setLineStyle(style);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public EditPart getPrimaryChildEditPart() {
+ return getChildBySemanticHint(UMLVisualIDRegistry.getType(TimeObservationNameEditPart.VISUAL_ID));
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnSource() {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(12);
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ types.add(UMLElementTypes.Substitution_4011);
+ types.add(UMLElementTypes.Realization_4006);
+ types.add(UMLElementTypes.Manifestation_4012);
+ types.add(UMLElementTypes.Abstraction_4007);
+ types.add(UMLElementTypes.Usage_4008);
+ types.add(UMLElementTypes.Deployment_4009);
+ types.add(UMLElementTypes.Dependency_4017);
+ types.add(UMLElementTypes.Dependency_4010);
+ types.add(UMLElementTypes.TimeObservationEvent_4018);
+ types.add(UMLElementTypes.InformationFlow_4021);
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnSourceAndTarget(IGraphicalEditPart targetEditPart) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.TimeObservationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.TimeObservationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.TimeObservationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.TimeObservationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.TimeObservationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.TimeObservationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.TimeObservationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.TimeObservationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.TimeObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.TimeObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.TimeObservationEvent_4018);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.TimeObservationEvent_4018);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.TimeObservationEvent_4018);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.TimeObservationEvent_4018);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.TimeObservationEvent_4018);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.TimeObservationEvent_4018);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.TimeObservationEvent_4018);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.TimeObservationEvent_4018);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.TimeObservationEvent_4018);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.TimeObservationEvent_4018);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.TimeObservationEvent_4018);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.TimeObservationEvent_4018);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.TimeObservationEvent_4018);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.TimeObservationEvent_4018);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.TimeObservationEvent_4018);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.TimeObservationEvent_4018);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.TimeObservationEvent_4018);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.TimeObservationEvent_4018);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.TimeObservationEvent_4018);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.TimeObservationEvent_4018);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.TimeObservationEvent_4018);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.TimeObservationEvent_4018);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.TimeObservationEvent_4018);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.TimeObservationEvent_4018);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.TimeObservationEvent_4018);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.TimeObservationEvent_4018);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.TimeObservationEvent_4018);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.TimeObservationEvent_4018);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.TimeObservationEvent_4018);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.TimeObservationEvent_4018);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.TimeObservationEvent_4018);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.TimeObservationEvent_4018);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.TimeObservationEvent_4018);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.TimeObservationEditPart) {
+ types.add(UMLElementTypes.TimeObservationEvent_4018);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.TimeObservationEvent_4018);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.TimeObservationEvent_4018);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.TimeObservationEvent_4018);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.TimeObservationEvent_4018);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.TimeObservationEvent_4018);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.TimeObservationEvent_4018);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.TimeObservationEvent_4018);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.TimeObservationEvent_4018);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.TimeObservationEvent_4018);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.TimeObservationEvent_4018);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.TimeObservationEvent_4018);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.TimeObservationEvent_4018);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.TimeObservationEvent_4018);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.TimeObservationEvent_4018);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.TimeObservationEvent_4018);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.TimeObservationEvent_4018);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.TimeObservationEvent_4018);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.TimeObservationEvent_4018);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.TimeObservationEvent_4018);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.TimeObservationEvent_4018);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.TimeObservationEvent_4018);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.TimeObservationEvent_4018);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.TimeObservationEvent_4018);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.TimeObservationEvent_4018);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.TimeObservationEvent_4018);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.TimeObservationEvent_4018);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.TimeObservationEvent_4018);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.TimeObservationEvent_4018);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.TimeObservationEvent_4018);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.TimeObservationEvent_4018);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.TimeObservationEvent_4018);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.TimeObservationEvent_4018);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.TimeObservationEvent_4018);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.TimeObservationEvent_4018);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.TimeObservationEvent_4018);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.TimeObservationEvent_4018);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.TimeObservationEvent_4018);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.TimeObservationEvent_4018);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.TimeObservationEvent_4018);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.TimeObservationEvent_4018);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.TimeObservationEvent_4018);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.TimeObservationEvent_4018);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.TimeObservationEvent_4018);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.TimeObservationEvent_4018);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.TimeObservationEvent_4018);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.TimeObservationEvent_4018);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.TimeObservationEvent_4018);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.TimeObservationEvent_4018);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.TimeObservationEvent_4018);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.TimeObservationEvent_4018);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.TimeObservationEvent_4018);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.TimeObservationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMATypesForTarget(IElementType relationshipType) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(relationshipType == UMLElementTypes.ComponentRealization_4004) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InterfaceRealization_4005) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Substitution_4011) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Realization_4006) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Manifestation_4012) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Abstraction_4007) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Usage_4008) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Deployment_4009) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4017) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4010) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.TimeObservationEvent_4018) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InformationFlow_4021) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnTarget() {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(15);
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ types.add(UMLElementTypes.Substitution_4011);
+ types.add(UMLElementTypes.Realization_4006);
+ types.add(UMLElementTypes.Manifestation_4012);
+ types.add(UMLElementTypes.Abstraction_4007);
+ types.add(UMLElementTypes.Usage_4008);
+ types.add(UMLElementTypes.Deployment_4009);
+ types.add(UMLElementTypes.Dependency_4017);
+ types.add(UMLElementTypes.Dependency_4010);
+ types.add(UMLElementTypes.TimeObservationEvent_4018);
+ types.add(UMLElementTypes.DurationObservationEvent_4019);
+ types.add(UMLElementTypes.InformationFlow_4021);
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMATypesForSource(IElementType relationshipType) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(relationshipType == UMLElementTypes.CommentAnnotatedElement_4002) {
+ types.add(UMLElementTypes.Comment_2109);
+ types.add(UMLElementTypes.Comment_3097);
+ } else if(relationshipType == UMLElementTypes.ConstraintConstrainedElement_4003) {
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.ComponentRealization_4004) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InterfaceRealization_4005) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Substitution_4011) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Realization_4006) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Manifestation_4012) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Abstraction_4007) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Usage_4008) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Deployment_4009) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4017) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4010) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.TimeObservationEvent_4018) {
+ types.add(UMLElementTypes.TimeObservation_2094);
+ } else if(relationshipType == UMLElementTypes.DurationObservationEvent_4019) {
+ types.add(UMLElementTypes.DurationObservation_2093);
+ } else if(relationshipType == UMLElementTypes.InformationFlow_4021) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public Object getPreferredValue(EStructuralFeature feature) {
+ IPreferenceStore preferenceStore = (IPreferenceStore)getDiagramPreferencesHint().getPreferenceStore();
+ Object result = null;
+
+ if(feature == NotationPackage.eINSTANCE.getLineStyle_LineColor() || feature == NotationPackage.eINSTANCE.getFontStyle_FontColor() || feature == NotationPackage.eINSTANCE.getFillStyle_FillColor()) {
+ String prefColor = null;
+ if(feature == NotationPackage.eINSTANCE.getLineStyle_LineColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("TimeObservation", PreferenceConstantHelper.COLOR_LINE);
+ } else if(feature == NotationPackage.eINSTANCE.getFontStyle_FontColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("TimeObservation", PreferenceConstantHelper.COLOR_FONT);
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_FillColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("TimeObservation", PreferenceConstantHelper.COLOR_FILL);
+ }
+ result = FigureUtilities.RGBToInteger(PreferenceConverter.getColor((IPreferenceStore)preferenceStore, prefColor));
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_Transparency() || feature == NotationPackage.eINSTANCE.getFillStyle_Gradient()) {
+ String prefGradient = PreferenceConstantHelper.getElementConstant("TimeObservation", PreferenceConstantHelper.COLOR_GRADIENT);
+ GradientPreferenceConverter gradientPreferenceConverter = new GradientPreferenceConverter(preferenceStore.getString(prefGradient));
+ if(feature == NotationPackage.eINSTANCE.getFillStyle_Transparency()) {
+ result = new Integer(gradientPreferenceConverter.getTransparency());
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_Gradient()) {
+ result = gradientPreferenceConverter.getGradientData();
+ }
+ }
+
+ if(result == null) {
+ result = getStructuralFeatureValue(feature);
+ }
+ return result;
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/TimeObservationEventEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/TimeObservationEventEditPart.java
new file mode 100644
index 00000000000..f3fabd1bddc
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/TimeObservationEventEditPart.java
@@ -0,0 +1,88 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import org.eclipse.draw2d.Connection;
+import org.eclipse.draw2d.Graphics;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ConnectionNodeEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITreeBranchEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.PolylineConnectionEx;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.diagram.composite.edit.policies.TimeObservationEventSemanticEditPolicy;
+
+/**
+ * @generated
+ */
+public class TimeObservationEventEditPart extends ConnectionNodeEditPart
+
+implements ITreeBranchEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 4018;
+
+ /**
+ * @generated
+ */
+ public TimeObservationEventEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new TimeObservationEventSemanticEditPolicy());
+ }
+
+ /**
+ * Creates figure for this edit part.
+ *
+ * Body of this method does not depend on settings in generation model
+ * so you may safely remove <i>generated</i> tag and modify it.
+ *
+ * @generated
+ */
+
+ protected Connection createConnectionFigure() {
+ return new LinkDescriptor();
+ }
+
+ /**
+ * @generated
+ */
+ public LinkDescriptor getPrimaryShape() {
+ return (LinkDescriptor)getFigure();
+ }
+
+ /**
+ * @generated
+ */
+ public class LinkDescriptor extends PolylineConnectionEx {
+
+ /**
+ * @generated
+ */
+ public LinkDescriptor() {
+ this.setLineWidth(1);
+ this.setLineStyle(Graphics.LINE_DASH);
+
+ }
+
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/TimeObservationNameEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/TimeObservationNameEditPart.java
new file mode 100644
index 00000000000..fc78f89a56d
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/TimeObservationNameEditPart.java
@@ -0,0 +1,778 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.draw2d.geometry.Rectangle;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.emf.transaction.RunnableWithResult;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.AccessibleEditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.requests.DirectEditRequest;
+import org.eclipse.gef.tools.DirectEditManager;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IBorderItemEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.LabelEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.figures.IBorderItemLocator;
+import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
+import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
+import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
+import org.eclipse.gmf.runtime.notation.FontStyle;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
+import org.eclipse.jface.viewers.ICellEditorValidator;
+import org.eclipse.jface.window.Window;
+import org.eclipse.papyrus.diagram.common.directedit.MultilineLabelDirectEditManager;
+import org.eclipse.papyrus.diagram.common.editparts.ILabelRoleProvider;
+import org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition;
+import org.eclipse.papyrus.diagram.common.editpolicies.IMaskManagedLabelEditPolicy;
+import org.eclipse.papyrus.diagram.common.figure.node.ILabelFigure;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLTextSelectionEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.diagram.composite.providers.UMLParserProvider;
+import org.eclipse.papyrus.extensionpoints.editors.Activator;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
+import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
+import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.AccessibleEvent;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.FontData;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.ui.PlatformUI;
+
+/**
+ * @generated
+ */
+public class TimeObservationNameEditPart
+
+extends LabelEditPart
+
+implements ITextAwareEditPart, IBorderItemEditPart
+
+, ILabelRoleProvider
+
+{
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 5142;
+
+ /**
+ * @generated
+ */
+ private DirectEditManager manager;
+
+ /**
+ * @generated
+ */
+ private IParser parser;
+
+ /**
+ * @generated
+ */
+ private List<?> parserElements;
+
+ /**
+ * @generated
+ */
+ private String defaultText;
+
+ /**
+ * direct edition mode (default, undefined, registered editor, etc.)
+ *
+ * @generated
+ */
+ protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
+
+ /**
+ * configuration from a registered edit dialog
+ *
+ * @generated
+ */
+ protected IDirectEditorConfiguration configuration;
+
+ /**
+ * @generated
+ */
+ static {
+ registerSnapBackPosition(UMLVisualIDRegistry.getType(org.eclipse.papyrus.diagram.composite.edit.parts.TimeObservationNameEditPart.VISUAL_ID), new Point(0, 0));
+ }
+
+ /**
+ * @generated
+ */
+ public TimeObservationNameEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
+ installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ public IBorderItemLocator getBorderItemLocator() {
+ IFigure parentFigure = getFigure().getParent();
+ if(parentFigure != null && parentFigure.getLayoutManager() != null) {
+ Object constraint = parentFigure.getLayoutManager().getConstraint(getFigure());
+ return (IBorderItemLocator)constraint;
+ }
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ public void refreshBounds() {
+ int x = ((Integer)getStructuralFeatureValue(NotationPackage.eINSTANCE.getLocation_X())).intValue();
+ int y = ((Integer)getStructuralFeatureValue(NotationPackage.eINSTANCE.getLocation_Y())).intValue();
+ int width = ((Integer)getStructuralFeatureValue(NotationPackage.eINSTANCE.getSize_Width())).intValue();
+ int height = ((Integer)getStructuralFeatureValue(NotationPackage.eINSTANCE.getSize_Height())).intValue();
+ getBorderItemLocator().setConstraint(new Rectangle(x, y, width, height));
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelTextHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getText();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getText();
+ } else {
+ return ((Label)figure).getText();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelTextHelper(IFigure figure, String text) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setText(text);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setText(text);
+ } else {
+ ((Label)figure).setText(text);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIconHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getIcon();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getIcon();
+ } else {
+ return ((Label)figure).getIcon();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelIconHelper(IFigure figure, Image icon) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setIcon(icon);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setIcon(icon);
+ } else {
+ ((Label)figure).setIcon(icon);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabel(IFigure figure) {
+ unregisterVisuals();
+ setFigure(figure);
+ defaultText = getLabelTextHelper(figure);
+ registerVisuals();
+ refreshVisuals();
+ }
+
+ /**
+ * @generated
+ */
+ protected List getModelChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject getParserElement() {
+ return resolveSemanticElement();
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIcon() {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelText() {
+ String text = null;
+ EObject parserElement = getParserElement();
+ if(parserElement != null && getParser() != null) {
+ text = getParser().getPrintString(new EObjectAdapter(parserElement), getParserOptions().intValue());
+ }
+ if(text == null || text.length() == 0) {
+ text = defaultText;
+ }
+ return text;
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabelText(String text) {
+ setLabelTextHelper(getFigure(), text);
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public String getEditText() {
+ if(getParserElement() == null || getParser() == null) {
+ return ""; //$NON-NLS-1$
+ }
+ return getParser().getEditString(new EObjectAdapter(getParserElement()), getParserOptions().intValue());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean isEditable() {
+ return getParser() != null;
+ }
+
+ /**
+ * @generated
+ */
+ public ICellEditorValidator getEditTextValidator() {
+ return new ICellEditorValidator() {
+
+ public String isValid(final Object value) {
+ if(value instanceof String) {
+ final EObject element = getParserElement();
+ final IParser parser = getParser();
+ try {
+ IParserEditStatus valid = (IParserEditStatus)getEditingDomain().runExclusive(new RunnableWithResult.Impl() {
+
+ public void run() {
+ setResult(parser.isValidEditString(new EObjectAdapter(element), (String)value));
+ }
+ });
+ return valid.getCode() == ParserEditStatus.EDITABLE ? null : valid.getMessage();
+ } catch (InterruptedException ie) {
+ ie.printStackTrace();
+ }
+ }
+
+ // shouldn't get here
+ return null;
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ public IContentAssistProcessor getCompletionProcessor() {
+ if(getParserElement() == null || getParser() == null) {
+ return null;
+ }
+ return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
+ }
+
+ /**
+ * @generated
+ */
+ public ParserOptions getParserOptions() {
+ return ParserOptions.NONE;
+ }
+
+ /**
+ * @generated
+ */
+ public IParser getParser() {
+ if(parser == null) {
+ parser = UMLParserProvider.getParser(UMLElementTypes.TimeObservation_2094, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.diagram.composite.edit.parts.TimeObservationNameEditPart.VISUAL_ID));
+ }
+ return parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected DirectEditManager getManager() {
+ if(manager == null) {
+ setManager(new MultilineLabelDirectEditManager(this, MultilineLabelDirectEditManager.getTextCellEditorClass(this), UMLEditPartFactory.getTextCellEditorLocator(this)));
+ }
+ return manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setManager(DirectEditManager manager) {
+ this.manager = manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit() {
+ getManager().show();
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit(Point eventLocation) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(eventLocation.getSWTPoint());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void performDirectEdit(char initialCharacter) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(initialCharacter);
+ } else {
+ performDirectEdit();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEditRequest(Request request) {
+
+ final Request theRequest = request;
+
+ if(IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
+ directEditionMode = getDirectEditionType();
+ }
+ switch(directEditionMode) {
+ case IDirectEdition.NO_DIRECT_EDITION:
+ // no direct edition mode => does nothing
+ return;
+ case IDirectEdition.EXTENDED_DIRECT_EDITOR:
+ updateExtendedEditorConfiguration();
+ if(configuration == null || configuration.getLanguage() == null) {
+ performDefaultDirectEditorEdit(theRequest);
+ } else {
+ configuration.preEditAction(resolveSemanticElement());
+ Dialog dialog = null;
+ if(configuration instanceof IPopupEditorConfiguration) {
+ IPopupEditorHelper helper = ((IPopupEditorConfiguration)configuration).createPopupEditorHelper(this);
+ helper.showEditor();
+ return;
+ } else if(configuration instanceof IAdvancedEditorConfiguration) {
+ dialog = ((IAdvancedEditorConfiguration)configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
+ } else if(configuration instanceof IDirectEditorConfiguration) {
+ dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), ((IDirectEditorConfiguration)configuration).getTextToEdit(resolveSemanticElement()), (IDirectEditorConfiguration)configuration);
+ } else {
+ return;
+ }
+ final Dialog finalDialog = dialog;
+
+ if(Window.OK == dialog.open()) {
+ TransactionalEditingDomain domain = getEditingDomain();
+ RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
+
+ @Override
+ protected void doExecute() {
+ configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog)finalDialog).getValue());
+
+ }
+ };
+ domain.getCommandStack().execute(command);
+ }
+ }
+ break;
+ case IDirectEdition.DEFAULT_DIRECT_EDITOR:
+
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ break;
+ default:
+ break;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshLabel();
+ refreshFont();
+ refreshFontColor();
+ refreshUnderline();
+ refreshStrikeThrough();
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshLabel() {
+ EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
+ if(maskLabelPolicy == null) {
+ setLabelTextHelper(getFigure(), getLabelText());
+ setLabelIconHelper(getFigure(), getLabelIcon());
+ }
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshUnderline() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextUnderline(style.isUnderline());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshStrikeThrough() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextStrikeThrough(style.isStrikeThrough());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshFont() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null) {
+ FontData fontData = new FontData(style.getFontName(), style.getFontHeight(), (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
+ setFont(fontData);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setFontColor(Color color) {
+ getFigure().setForegroundColor(color);
+ }
+
+ /**
+ * @generated
+ */
+ protected void addSemanticListeners() {
+ if(getParser() instanceof ISemanticParser) {
+ EObject element = resolveSemanticElement();
+ parserElements = ((ISemanticParser)getParser()).getSemanticElementsBeingParsed(element);
+ for(int i = 0; i < parserElements.size(); i++) {
+ addListenerFilter("SemanticModel" + i, this, (EObject)parserElements.get(i)); //$NON-NLS-1$
+ }
+ } else {
+ super.addSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeSemanticListeners() {
+ if(parserElements != null) {
+ for(int i = 0; i < parserElements.size(); i++) {
+ removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
+ }
+ } else {
+ super.removeSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected AccessibleEditPart getAccessibleEditPart() {
+ if(accessibleEP == null) {
+ accessibleEP = new AccessibleGraphicalEditPart() {
+
+ public void getName(AccessibleEvent e) {
+ e.result = getLabelTextHelper(getFigure());
+ }
+ };
+ }
+ return accessibleEP;
+ }
+
+ /**
+ * @generated
+ */
+ private View getFontStyleOwnerView() {
+ return getPrimaryView();
+ }
+
+ /**
+ * Returns the kind of associated editor for direct edition.
+ *
+ * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition
+ * @generated
+ */
+ public int getDirectEditionType() {
+ if(checkExtendedEditor()) {
+ initExtendedEditorConfiguration();
+ return IDirectEdition.EXTENDED_DIRECT_EDITOR;
+ }
+ if(checkDefaultEdition()) {
+ return IDirectEdition.DEFAULT_DIRECT_EDITOR;
+ }
+
+ // not a named element. no specific editor => do nothing
+ return IDirectEdition.NO_DIRECT_EDITION;
+ }
+
+ /**
+ * Checks if an extended editor is present.
+ *
+ * @return <code>true</code> if an extended editor is present.
+ * @generated
+ */
+ protected boolean checkExtendedEditor() {
+ if(resolveSemanticElement() != null) {
+ return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ return false;
+ }
+
+ /**
+ * Checks if a default direct edition is available
+ *
+ * @return <code>true</code> if a default direct edition is available
+ * @generated
+ */
+ protected boolean checkDefaultEdition() {
+ return (getParser() != null);
+ }
+
+ /**
+ * Initializes the extended editor configuration
+ *
+ * @generated
+ */
+ protected void initExtendedEditorConfiguration() {
+ if(configuration == null) {
+ final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("")) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else {
+ configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ }
+ }
+
+ /**
+ * Updates the preference configuration
+ *
+ * @generated
+ */
+ protected void updateExtendedEditorConfiguration() {
+ String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("") && languagePreferred != configuration.getLanguage()) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else if(IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
+ configuration = null;
+ }
+ }
+
+ /**
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
+ protected void performDefaultDirectEditorEdit(final Request theRequest) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void handleNotificationEvent(Notification event) {
+ Object feature = event.getFeature();
+ if(NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
+ Integer c = (Integer)event.getNewValue();
+ setFontColor(DiagramColorRegistry.getInstance().getColor(c));
+ } else if(NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
+ refreshUnderline();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
+ refreshStrikeThrough();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
+ refreshFont();
+ } else {
+ if(getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
+ refreshLabel();
+ }
+ if(getParser() instanceof ISemanticParser) {
+ ISemanticParser modelParser = (ISemanticParser)getParser();
+ if(modelParser.areSemanticElementsAffected(null, event)) {
+ removeSemanticListeners();
+ if(resolveSemanticElement() != null) {
+ addSemanticListeners();
+ }
+ refreshLabel();
+ }
+ }
+ }
+ super.handleNotificationEvent(event);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createFigure() {
+ IFigure label = createFigurePrim();
+ defaultText = getLabelTextHelper(label);
+ return label;
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createFigurePrim() {
+ return new WrappingLabel();
+ }
+
+ /**
+ * @generated
+ */
+ public String getLabelRole() {
+ return "Name";//$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ public String getIconPathRole() {
+ return "";//$NON-NLS-1$
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/TimeObservationStereotypeLabelEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/TimeObservationStereotypeLabelEditPart.java
new file mode 100644
index 00000000000..90a0814dbe2
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/TimeObservationStereotypeLabelEditPart.java
@@ -0,0 +1,782 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.draw2d.geometry.Rectangle;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.emf.transaction.RunnableWithResult;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.AccessibleEditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.requests.DirectEditRequest;
+import org.eclipse.gef.tools.DirectEditManager;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IBorderItemEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.figures.IBorderItemLocator;
+import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
+import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
+import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
+import org.eclipse.gmf.runtime.notation.FontStyle;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
+import org.eclipse.jface.viewers.ICellEditorValidator;
+import org.eclipse.jface.window.Window;
+import org.eclipse.papyrus.diagram.common.directedit.MultilineLabelDirectEditManager;
+import org.eclipse.papyrus.diagram.common.editparts.AbstractLabelEditPart;
+import org.eclipse.papyrus.diagram.common.editparts.ILabelRoleProvider;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeExternalNodeEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition;
+import org.eclipse.papyrus.diagram.common.editpolicies.IMaskManagedLabelEditPolicy;
+import org.eclipse.papyrus.diagram.common.figure.node.AppliedStereotypeWrappingLabelFigure;
+import org.eclipse.papyrus.diagram.common.figure.node.ILabelFigure;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLTextSelectionEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.diagram.composite.providers.UMLParserProvider;
+import org.eclipse.papyrus.extensionpoints.editors.Activator;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
+import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
+import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.AccessibleEvent;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.FontData;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.ui.PlatformUI;
+
+/**
+ * @generated
+ */
+public class TimeObservationStereotypeLabelEditPart
+
+extends AbstractLabelEditPart
+
+implements ITextAwareEditPart, IBorderItemEditPart
+
+, ILabelRoleProvider
+
+{
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 5143;
+
+ /**
+ * @generated
+ */
+ private DirectEditManager manager;
+
+ /**
+ * @generated
+ */
+ private IParser parser;
+
+ /**
+ * @generated
+ */
+ private List<?> parserElements;
+
+ /**
+ * @generated
+ */
+ private String defaultText;
+
+ /**
+ * direct edition mode (default, undefined, registered editor, etc.)
+ *
+ * @generated
+ */
+ protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
+
+ /**
+ * configuration from a registered edit dialog
+ *
+ * @generated
+ */
+ protected IDirectEditorConfiguration configuration;
+
+ /**
+ * @generated
+ */
+ static {
+ registerSnapBackPosition(UMLVisualIDRegistry.getType(org.eclipse.papyrus.diagram.composite.edit.parts.TimeObservationStereotypeLabelEditPart.VISUAL_ID), new Point(0, 0));
+ }
+
+ /**
+ * @generated
+ */
+ public TimeObservationStereotypeLabelEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
+ installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
+ installEditPolicy(AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeExternalNodeEditPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ public IBorderItemLocator getBorderItemLocator() {
+ IFigure parentFigure = getFigure().getParent();
+ if(parentFigure != null && parentFigure.getLayoutManager() != null) {
+ Object constraint = parentFigure.getLayoutManager().getConstraint(getFigure());
+ return (IBorderItemLocator)constraint;
+ }
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ public void refreshBounds() {
+ int x = ((Integer)getStructuralFeatureValue(NotationPackage.eINSTANCE.getLocation_X())).intValue();
+ int y = ((Integer)getStructuralFeatureValue(NotationPackage.eINSTANCE.getLocation_Y())).intValue();
+ int width = ((Integer)getStructuralFeatureValue(NotationPackage.eINSTANCE.getSize_Width())).intValue();
+ int height = ((Integer)getStructuralFeatureValue(NotationPackage.eINSTANCE.getSize_Height())).intValue();
+ getBorderItemLocator().setConstraint(new Rectangle(x, y, width, height));
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelTextHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getText();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getText();
+ } else {
+ return ((Label)figure).getText();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelTextHelper(IFigure figure, String text) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setText(text);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setText(text);
+ } else {
+ ((Label)figure).setText(text);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIconHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getIcon();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getIcon();
+ } else {
+ return ((Label)figure).getIcon();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelIconHelper(IFigure figure, Image icon) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setIcon(icon);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setIcon(icon);
+ } else {
+ ((Label)figure).setIcon(icon);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabel(IFigure figure) {
+ unregisterVisuals();
+ setFigure(figure);
+ defaultText = getLabelTextHelper(figure);
+ registerVisuals();
+ refreshVisuals();
+ }
+
+ /**
+ * @generated
+ */
+ protected List getModelChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject getParserElement() {
+ return resolveSemanticElement();
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIcon() {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelText() {
+ String text = null;
+ EObject parserElement = getParserElement();
+ if(parserElement != null && getParser() != null) {
+ text = getParser().getPrintString(new EObjectAdapter(parserElement), getParserOptions().intValue());
+ }
+ if(text == null || text.length() == 0) {
+ text = defaultText;
+ }
+ return text;
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabelText(String text) {
+ setLabelTextHelper(getFigure(), text);
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public String getEditText() {
+ if(getParserElement() == null || getParser() == null) {
+ return ""; //$NON-NLS-1$
+ }
+ return getParser().getEditString(new EObjectAdapter(getParserElement()), getParserOptions().intValue());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean isEditable() {
+ return getParser() != null;
+ }
+
+ /**
+ * @generated
+ */
+ public ICellEditorValidator getEditTextValidator() {
+ return new ICellEditorValidator() {
+
+ public String isValid(final Object value) {
+ if(value instanceof String) {
+ final EObject element = getParserElement();
+ final IParser parser = getParser();
+ try {
+ IParserEditStatus valid = (IParserEditStatus)getEditingDomain().runExclusive(new RunnableWithResult.Impl() {
+
+ public void run() {
+ setResult(parser.isValidEditString(new EObjectAdapter(element), (String)value));
+ }
+ });
+ return valid.getCode() == ParserEditStatus.EDITABLE ? null : valid.getMessage();
+ } catch (InterruptedException ie) {
+ ie.printStackTrace();
+ }
+ }
+
+ // shouldn't get here
+ return null;
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ public IContentAssistProcessor getCompletionProcessor() {
+ if(getParserElement() == null || getParser() == null) {
+ return null;
+ }
+ return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
+ }
+
+ /**
+ * @generated
+ */
+ public ParserOptions getParserOptions() {
+ return ParserOptions.NONE;
+ }
+
+ /**
+ * @generated
+ */
+ public IParser getParser() {
+ if(parser == null) {
+ parser = UMLParserProvider.getParser(UMLElementTypes.TimeObservation_2094, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.diagram.composite.edit.parts.TimeObservationStereotypeLabelEditPart.VISUAL_ID));
+ }
+ return parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected DirectEditManager getManager() {
+ if(manager == null) {
+ setManager(new MultilineLabelDirectEditManager(this, MultilineLabelDirectEditManager.getTextCellEditorClass(this), UMLEditPartFactory.getTextCellEditorLocator(this)));
+ }
+ return manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setManager(DirectEditManager manager) {
+ this.manager = manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit() {
+ getManager().show();
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit(Point eventLocation) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(eventLocation.getSWTPoint());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void performDirectEdit(char initialCharacter) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(initialCharacter);
+ } else {
+ performDirectEdit();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEditRequest(Request request) {
+
+ final Request theRequest = request;
+
+ if(IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
+ directEditionMode = getDirectEditionType();
+ }
+ switch(directEditionMode) {
+ case IDirectEdition.NO_DIRECT_EDITION:
+ // no direct edition mode => does nothing
+ return;
+ case IDirectEdition.EXTENDED_DIRECT_EDITOR:
+ updateExtendedEditorConfiguration();
+ if(configuration == null || configuration.getLanguage() == null) {
+ performDefaultDirectEditorEdit(theRequest);
+ } else {
+ configuration.preEditAction(resolveSemanticElement());
+ Dialog dialog = null;
+ if(configuration instanceof IPopupEditorConfiguration) {
+ IPopupEditorHelper helper = ((IPopupEditorConfiguration)configuration).createPopupEditorHelper(this);
+ helper.showEditor();
+ return;
+ } else if(configuration instanceof IAdvancedEditorConfiguration) {
+ dialog = ((IAdvancedEditorConfiguration)configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
+ } else if(configuration instanceof IDirectEditorConfiguration) {
+ dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), ((IDirectEditorConfiguration)configuration).getTextToEdit(resolveSemanticElement()), (IDirectEditorConfiguration)configuration);
+ } else {
+ return;
+ }
+ final Dialog finalDialog = dialog;
+
+ if(Window.OK == dialog.open()) {
+ TransactionalEditingDomain domain = getEditingDomain();
+ RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
+
+ @Override
+ protected void doExecute() {
+ configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog)finalDialog).getValue());
+
+ }
+ };
+ domain.getCommandStack().execute(command);
+ }
+ }
+ break;
+ case IDirectEdition.DEFAULT_DIRECT_EDITOR:
+
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ break;
+ default:
+ break;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshLabel();
+ refreshFont();
+ refreshFontColor();
+ refreshUnderline();
+ refreshStrikeThrough();
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshLabel() {
+ EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
+ if(maskLabelPolicy == null) {
+ setLabelTextHelper(getFigure(), getLabelText());
+ setLabelIconHelper(getFigure(), getLabelIcon());
+ }
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshUnderline() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextUnderline(style.isUnderline());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshStrikeThrough() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextStrikeThrough(style.isStrikeThrough());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshFont() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null) {
+ FontData fontData = new FontData(style.getFontName(), style.getFontHeight(), (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
+ setFont(fontData);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setFontColor(Color color) {
+ getFigure().setForegroundColor(color);
+ }
+
+ /**
+ * @generated
+ */
+ protected void addSemanticListeners() {
+ if(getParser() instanceof ISemanticParser) {
+ EObject element = resolveSemanticElement();
+ parserElements = ((ISemanticParser)getParser()).getSemanticElementsBeingParsed(element);
+ for(int i = 0; i < parserElements.size(); i++) {
+ addListenerFilter("SemanticModel" + i, this, (EObject)parserElements.get(i)); //$NON-NLS-1$
+ }
+ } else {
+ super.addSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeSemanticListeners() {
+ if(parserElements != null) {
+ for(int i = 0; i < parserElements.size(); i++) {
+ removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
+ }
+ } else {
+ super.removeSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected AccessibleEditPart getAccessibleEditPart() {
+ if(accessibleEP == null) {
+ accessibleEP = new AccessibleGraphicalEditPart() {
+
+ public void getName(AccessibleEvent e) {
+ e.result = getLabelTextHelper(getFigure());
+ }
+ };
+ }
+ return accessibleEP;
+ }
+
+ /**
+ * @generated
+ */
+ private View getFontStyleOwnerView() {
+ return getPrimaryView();
+ }
+
+ /**
+ * Returns the kind of associated editor for direct edition.
+ *
+ * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition
+ * @generated
+ */
+ public int getDirectEditionType() {
+ if(checkExtendedEditor()) {
+ initExtendedEditorConfiguration();
+ return IDirectEdition.EXTENDED_DIRECT_EDITOR;
+ }
+ if(checkDefaultEdition()) {
+ return IDirectEdition.DEFAULT_DIRECT_EDITOR;
+ }
+
+ // not a named element. no specific editor => do nothing
+ return IDirectEdition.NO_DIRECT_EDITION;
+ }
+
+ /**
+ * Checks if an extended editor is present.
+ *
+ * @return <code>true</code> if an extended editor is present.
+ * @generated
+ */
+ protected boolean checkExtendedEditor() {
+ if(resolveSemanticElement() != null) {
+ return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ return false;
+ }
+
+ /**
+ * Checks if a default direct edition is available
+ *
+ * @return <code>true</code> if a default direct edition is available
+ * @generated
+ */
+ protected boolean checkDefaultEdition() {
+ return (getParser() != null);
+ }
+
+ /**
+ * Initializes the extended editor configuration
+ *
+ * @generated
+ */
+ protected void initExtendedEditorConfiguration() {
+ if(configuration == null) {
+ final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("")) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else {
+ configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ }
+ }
+
+ /**
+ * Updates the preference configuration
+ *
+ * @generated
+ */
+ protected void updateExtendedEditorConfiguration() {
+ String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("") && languagePreferred != configuration.getLanguage()) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else if(IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
+ configuration = null;
+ }
+ }
+
+ /**
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
+ protected void performDefaultDirectEditorEdit(final Request theRequest) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void handleNotificationEvent(Notification event) {
+ Object feature = event.getFeature();
+ if(NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
+ Integer c = (Integer)event.getNewValue();
+ setFontColor(DiagramColorRegistry.getInstance().getColor(c));
+ } else if(NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
+ refreshUnderline();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
+ refreshStrikeThrough();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
+ refreshFont();
+ } else {
+ if(getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
+ refreshLabel();
+ }
+ if(getParser() instanceof ISemanticParser) {
+ ISemanticParser modelParser = (ISemanticParser)getParser();
+ if(modelParser.areSemanticElementsAffected(null, event)) {
+ removeSemanticListeners();
+ if(resolveSemanticElement() != null) {
+ addSemanticListeners();
+ }
+ refreshLabel();
+ }
+ }
+ }
+ super.handleNotificationEvent(event);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createFigure() {
+ IFigure label = createFigurePrim();
+ defaultText = getLabelTextHelper(label);
+ return label;
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createFigurePrim() {
+ return new AppliedStereotypeWrappingLabelFigure();
+ }
+
+ /**
+ * @generated
+ */
+ public String getLabelRole() {
+ return "Stereotype";//$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ public String getIconPathRole() {
+ return "";//$NON-NLS-1$
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/UMLEditPartFactory.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/UMLEditPartFactory.java
new file mode 100644
index 00000000000..ebc61c6b970
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/UMLEditPartFactory.java
@@ -0,0 +1,1047 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import org.eclipse.draw2d.FigureUtilities;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.geometry.Dimension;
+import org.eclipse.draw2d.geometry.Rectangle;
+import org.eclipse.gef.EditPart;
+import org.eclipse.gef.EditPartFactory;
+import org.eclipse.gef.tools.CellEditorLocator;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.viewers.CellEditor;
+import org.eclipse.papyrus.diagram.common.figure.node.IMultilineEditableFigure;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.widgets.Text;
+
+/**
+ * @generated
+ */
+public class UMLEditPartFactory implements EditPartFactory {
+
+ /**
+ * @generated
+ */
+ public EditPart createEditPart(EditPart context, Object model) {
+ if(model instanceof View) {
+ View view = (View)model;
+ switch(UMLVisualIDRegistry.getVisualID(view)) {
+
+ case CompositeStructureDiagramEditPart.VISUAL_ID:
+ return new CompositeStructureDiagramEditPart(view);
+
+ case ActivityCompositeEditPart.VISUAL_ID:
+ return new ActivityCompositeEditPart(view);
+
+ case ActivityCompositeNameEditPart.VISUAL_ID:
+ return new ActivityCompositeNameEditPart(view);
+
+ case InteractionCompositeEditPart.VISUAL_ID:
+ return new InteractionCompositeEditPart(view);
+
+ case InteractionCompositeNameEditPart.VISUAL_ID:
+ return new InteractionCompositeNameEditPart(view);
+
+ case ProtocolStateMachineCompositeEditPart.VISUAL_ID:
+ return new ProtocolStateMachineCompositeEditPart(view);
+
+ case ProtocolStateMachineCompositeNameEditPart.VISUAL_ID:
+ return new ProtocolStateMachineCompositeNameEditPart(view);
+
+ case StateMachineCompositeEditPart.VISUAL_ID:
+ return new StateMachineCompositeEditPart(view);
+
+ case StateMachineCompositeNameEditPart.VISUAL_ID:
+ return new StateMachineCompositeNameEditPart(view);
+
+ case FunctionBehaviorCompositeEditPart.VISUAL_ID:
+ return new FunctionBehaviorCompositeEditPart(view);
+
+ case FunctionBehaviorCompositeNameEditPart.VISUAL_ID:
+ return new FunctionBehaviorCompositeNameEditPart(view);
+
+ case OpaqueBehaviorCompositeEditPart.VISUAL_ID:
+ return new OpaqueBehaviorCompositeEditPart(view);
+
+ case OpaqueBehaviorCompositeNameEditPart.VISUAL_ID:
+ return new OpaqueBehaviorCompositeNameEditPart(view);
+
+ case ComponentCompositeEditPart.VISUAL_ID:
+ return new ComponentCompositeEditPart(view);
+
+ case ComponentCompositeNameEditPart.VISUAL_ID:
+ return new ComponentCompositeNameEditPart(view);
+
+ case DeviceCompositeEditPart.VISUAL_ID:
+ return new DeviceCompositeEditPart(view);
+
+ case DeviceCompositeNameEditPart.VISUAL_ID:
+ return new DeviceCompositeNameEditPart(view);
+
+ case ExecutionEnvironmentCompositeEditPart.VISUAL_ID:
+ return new ExecutionEnvironmentCompositeEditPart(view);
+
+ case ExecutionEnvironmentCompositeNameEditPart.VISUAL_ID:
+ return new ExecutionEnvironmentCompositeNameEditPart(view);
+
+ case NodeCompositeEditPart.VISUAL_ID:
+ return new NodeCompositeEditPart(view);
+
+ case NodeCompositeNameEditPart.VISUAL_ID:
+ return new NodeCompositeNameEditPart(view);
+
+ case ClassCompositeEditPart.VISUAL_ID:
+ return new ClassCompositeEditPart(view);
+
+ case ClassCompositeNameEditPart.VISUAL_ID:
+ return new ClassCompositeNameEditPart(view);
+
+ case CollaborationCompositeEditPart.VISUAL_ID:
+ return new CollaborationCompositeEditPart(view);
+
+ case CollaborationCompositeNameEditPart.VISUAL_ID:
+ return new CollaborationCompositeNameEditPart(view);
+
+ case InterfaceEditPart.VISUAL_ID:
+ return new InterfaceEditPart(view);
+
+ case InterfaceNameEditPart.VISUAL_ID:
+ return new InterfaceNameEditPart(view);
+
+ case PrimitiveTypeEditPart.VISUAL_ID:
+ return new PrimitiveTypeEditPart(view);
+
+ case PrimitiveTypeNameEditPart.VISUAL_ID:
+ return new PrimitiveTypeNameEditPart(view);
+
+ case EnumerationEditPart.VISUAL_ID:
+ return new EnumerationEditPart(view);
+
+ case EnumerationNameEditPart.VISUAL_ID:
+ return new EnumerationNameEditPart(view);
+
+ case DataTypeEditPart.VISUAL_ID:
+ return new DataTypeEditPart(view);
+
+ case DataTypeNameEditPart.VISUAL_ID:
+ return new DataTypeNameEditPart(view);
+
+ case ActorEditPart.VISUAL_ID:
+ return new ActorEditPart(view);
+
+ case ActorNameEditPart.VISUAL_ID:
+ return new ActorNameEditPart(view);
+
+ case DeploymentSpecificationEditPart.VISUAL_ID:
+ return new DeploymentSpecificationEditPart(view);
+
+ case DeploymentSpecificationNameEditPart.VISUAL_ID:
+ return new DeploymentSpecificationNameEditPart(view);
+
+ case ArtifactEditPart.VISUAL_ID:
+ return new ArtifactEditPart(view);
+
+ case ArtifactNameEditPart.VISUAL_ID:
+ return new ArtifactNameEditPart(view);
+
+ case InformationItemEditPart.VISUAL_ID:
+ return new InformationItemEditPart(view);
+
+ case InformationItemNameEditPart.VISUAL_ID:
+ return new InformationItemNameEditPart(view);
+
+ case SignalEditPart.VISUAL_ID:
+ return new SignalEditPart(view);
+
+ case SignalNameEditPart.VISUAL_ID:
+ return new SignalNameEditPart(view);
+
+ case UseCaseEditPart.VISUAL_ID:
+ return new UseCaseEditPart(view);
+
+ case UseCaseNameEditPart.VISUAL_ID:
+ return new UseCaseNameEditPart(view);
+
+ case SignalEventEditPart.VISUAL_ID:
+ return new SignalEventEditPart(view);
+
+ case SignalEventNameEditPart.VISUAL_ID:
+ return new SignalEventNameEditPart(view);
+
+ case CallEventEditPart.VISUAL_ID:
+ return new CallEventEditPart(view);
+
+ case CallEventNameEditPart.VISUAL_ID:
+ return new CallEventNameEditPart(view);
+
+ case AnyReceiveEventEditPart.VISUAL_ID:
+ return new AnyReceiveEventEditPart(view);
+
+ case AnyReceiveEventNameEditPart.VISUAL_ID:
+ return new AnyReceiveEventNameEditPart(view);
+
+ case SendSignalEventEditPart.VISUAL_ID:
+ return new SendSignalEventEditPart(view);
+
+ case SendSignalEventNameEditPart.VISUAL_ID:
+ return new SendSignalEventNameEditPart(view);
+
+ case SendOperationEventEditPart.VISUAL_ID:
+ return new SendOperationEventEditPart(view);
+
+ case SendOperationEventNameEditPart.VISUAL_ID:
+ return new SendOperationEventNameEditPart(view);
+
+ case ChangeEventEditPart.VISUAL_ID:
+ return new ChangeEventEditPart(view);
+
+ case ChangeEventNameEditPart.VISUAL_ID:
+ return new ChangeEventNameEditPart(view);
+
+ case TimeEventEditPart.VISUAL_ID:
+ return new TimeEventEditPart(view);
+
+ case TimeEventNameEditPart.VISUAL_ID:
+ return new TimeEventNameEditPart(view);
+
+ case CreationEventEditPart.VISUAL_ID:
+ return new CreationEventEditPart(view);
+
+ case CreationEventNameEditPart.VISUAL_ID:
+ return new CreationEventNameEditPart(view);
+
+ case DestructionEventEditPart.VISUAL_ID:
+ return new DestructionEventEditPart(view);
+
+ case DestructionEventNameEditPart.VISUAL_ID:
+ return new DestructionEventNameEditPart(view);
+
+ case ExecutionEventEditPart.VISUAL_ID:
+ return new ExecutionEventEditPart(view);
+
+ case ExecutionEventNameEditPart.VISUAL_ID:
+ return new ExecutionEventNameEditPart(view);
+
+ case DurationObservationEditPart.VISUAL_ID:
+ return new DurationObservationEditPart(view);
+
+ case DurationObservationNameEditPart.VISUAL_ID:
+ return new DurationObservationNameEditPart(view);
+
+ case DurationObservationStereotypeLabelEditPart.VISUAL_ID:
+ return new DurationObservationStereotypeLabelEditPart(view);
+
+ case TimeObservationEditPart.VISUAL_ID:
+ return new TimeObservationEditPart(view);
+
+ case TimeObservationNameEditPart.VISUAL_ID:
+ return new TimeObservationNameEditPart(view);
+
+ case TimeObservationStereotypeLabelEditPart.VISUAL_ID:
+ return new TimeObservationStereotypeLabelEditPart(view);
+
+ case LiteralBooleanEditPart.VISUAL_ID:
+ return new LiteralBooleanEditPart(view);
+
+ case LiteralBooleanNameEditPart.VISUAL_ID:
+ return new LiteralBooleanNameEditPart(view);
+
+ case LiteralIntegerEditPart.VISUAL_ID:
+ return new LiteralIntegerEditPart(view);
+
+ case LiteralIntegerNameEditPart.VISUAL_ID:
+ return new LiteralIntegerNameEditPart(view);
+
+ case LiteralNullEditPart.VISUAL_ID:
+ return new LiteralNullEditPart(view);
+
+ case LiteralNullNameEditPart.VISUAL_ID:
+ return new LiteralNullNameEditPart(view);
+
+ case LiteralStringEditPart.VISUAL_ID:
+ return new LiteralStringEditPart(view);
+
+ case LiteralStringNameEditPart.VISUAL_ID:
+ return new LiteralStringNameEditPart(view);
+
+ case LiteralUnlimitedNaturalEditPart.VISUAL_ID:
+ return new LiteralUnlimitedNaturalEditPart(view);
+
+ case LiteralUnlimitedNaturalNameEditPart.VISUAL_ID:
+ return new LiteralUnlimitedNaturalNameEditPart(view);
+
+ case StringExpressionEditPart.VISUAL_ID:
+ return new StringExpressionEditPart(view);
+
+ case StringExpressionNameEditPart.VISUAL_ID:
+ return new StringExpressionNameEditPart(view);
+
+ case OpaqueExpressionEditPart.VISUAL_ID:
+ return new OpaqueExpressionEditPart(view);
+
+ case OpaqueExpressionNameEditPart.VISUAL_ID:
+ return new OpaqueExpressionNameEditPart(view);
+
+ case TimeExpressionEditPart.VISUAL_ID:
+ return new TimeExpressionEditPart(view);
+
+ case TimeExpressionNameEditPart.VISUAL_ID:
+ return new TimeExpressionNameEditPart(view);
+
+ case ExpressionEditPart.VISUAL_ID:
+ return new ExpressionEditPart(view);
+
+ case ExpressionNameEditPart.VISUAL_ID:
+ return new ExpressionNameEditPart(view);
+
+ case DurationEditPart.VISUAL_ID:
+ return new DurationEditPart(view);
+
+ case DurationNameEditPart.VISUAL_ID:
+ return new DurationNameEditPart(view);
+
+ case TimeIntervalEditPart.VISUAL_ID:
+ return new TimeIntervalEditPart(view);
+
+ case TimeIntervalNameEditPart.VISUAL_ID:
+ return new TimeIntervalNameEditPart(view);
+
+ case DurationIntervalEditPart.VISUAL_ID:
+ return new DurationIntervalEditPart(view);
+
+ case DurationIntervalNameEditPart.VISUAL_ID:
+ return new DurationIntervalNameEditPart(view);
+
+ case IntervalEditPart.VISUAL_ID:
+ return new IntervalEditPart(view);
+
+ case IntervalNameEditPart.VISUAL_ID:
+ return new IntervalNameEditPart(view);
+
+ case InstanceValueEditPart.VISUAL_ID:
+ return new InstanceValueEditPart(view);
+
+ case InstanceValueNameEditPart.VISUAL_ID:
+ return new InstanceValueNameEditPart(view);
+
+ case CommentEditPart.VISUAL_ID:
+ return new CommentEditPart(view);
+
+ case CommentBodyEditPart.VISUAL_ID:
+ return new CommentBodyEditPart(view);
+
+ case DurationConstraintEditPart.VISUAL_ID:
+ return new DurationConstraintEditPart(view);
+
+ case DurationConstraintNameEditPart.VISUAL_ID:
+ return new DurationConstraintNameEditPart(view);
+
+ case DurationConstraintSpecificationEditPart.VISUAL_ID:
+ return new DurationConstraintSpecificationEditPart(view);
+
+ case TimeConstraintEditPart.VISUAL_ID:
+ return new TimeConstraintEditPart(view);
+
+ case TimeConstraintNameEditPart.VISUAL_ID:
+ return new TimeConstraintNameEditPart(view);
+
+ case TimeConstraintSpecificationEditPart.VISUAL_ID:
+ return new TimeConstraintSpecificationEditPart(view);
+
+ case IntervalConstraintEditPart.VISUAL_ID:
+ return new IntervalConstraintEditPart(view);
+
+ case IntervalConstraintNameEditPart.VISUAL_ID:
+ return new IntervalConstraintNameEditPart(view);
+
+ case IntervalConstraintSpecificationEditPart.VISUAL_ID:
+ return new IntervalConstraintSpecificationEditPart(view);
+
+ case InteractionConstraintEditPart.VISUAL_ID:
+ return new InteractionConstraintEditPart(view);
+
+ case InteractionConstraintNameEditPart.VISUAL_ID:
+ return new InteractionConstraintNameEditPart(view);
+
+ case InteractionConstraintSpecificationEditPart.VISUAL_ID:
+ return new InteractionConstraintSpecificationEditPart(view);
+
+ case ConstraintEditPart.VISUAL_ID:
+ return new ConstraintEditPart(view);
+
+ case ConstraintNameEditPart.VISUAL_ID:
+ return new ConstraintNameEditPart(view);
+
+ case ConstraintSpecificationEditPart.VISUAL_ID:
+ return new ConstraintSpecificationEditPart(view);
+
+ case PortEditPart.VISUAL_ID:
+ return new PortEditPart(view);
+
+ case PortNameEditPart.VISUAL_ID:
+ return new PortNameEditPart(view);
+
+ case PortAppliedStereotypeEditPart.VISUAL_ID:
+ return new PortAppliedStereotypeEditPart(view);
+
+ case ParameterEditPart.VISUAL_ID:
+ return new ParameterEditPart(view);
+
+ case ParameterNameEditPart.VISUAL_ID:
+ return new ParameterNameEditPart(view);
+
+ case ParameterAppliedStereotypeEditPart.VISUAL_ID:
+ return new ParameterAppliedStereotypeEditPart(view);
+
+ case PropertyPartEditPartCN.VISUAL_ID:
+ return new PropertyPartEditPartCN(view);
+
+ case PropertyPartNameEditPartCN.VISUAL_ID:
+ return new PropertyPartNameEditPartCN(view);
+
+ case CollaborationRoleEditPartCN.VISUAL_ID:
+ return new CollaborationRoleEditPartCN(view);
+
+ case CollaborationRoleNameEditPartCN.VISUAL_ID:
+ return new CollaborationRoleNameEditPartCN(view);
+
+ case CollaborationUseEditPartCN.VISUAL_ID:
+ return new CollaborationUseEditPartCN(view);
+
+ case CollaborationUseNameEditPart.VISUAL_ID:
+ return new CollaborationUseNameEditPart(view);
+
+ case ActivityCompositeEditPartCN.VISUAL_ID:
+ return new ActivityCompositeEditPartCN(view);
+
+ case ActivityCompositeNameEditPartCN.VISUAL_ID:
+ return new ActivityCompositeNameEditPartCN(view);
+
+ case InteractionCompositeEditPartCN.VISUAL_ID:
+ return new InteractionCompositeEditPartCN(view);
+
+ case InteractionCompositeNameEditPartCN.VISUAL_ID:
+ return new InteractionCompositeNameEditPartCN(view);
+
+ case ProtocolStateMachineCompositeEditPartCN.VISUAL_ID:
+ return new ProtocolStateMachineCompositeEditPartCN(view);
+
+ case ProtocolStateMachineCompositeNameEditPartCN.VISUAL_ID:
+ return new ProtocolStateMachineCompositeNameEditPartCN(view);
+
+ case StateMachineCompositeEditPartCN.VISUAL_ID:
+ return new StateMachineCompositeEditPartCN(view);
+
+ case StateMachineCompositeNameEditPartCN.VISUAL_ID:
+ return new StateMachineCompositeNameEditPartCN(view);
+
+ case FunctionBehaviorCompositeEditPartCN.VISUAL_ID:
+ return new FunctionBehaviorCompositeEditPartCN(view);
+
+ case FunctionBehaviorCompositeNameEditPartCN.VISUAL_ID:
+ return new FunctionBehaviorCompositeNameEditPartCN(view);
+
+ case OpaqueBehaviorCompositeEditPartCN.VISUAL_ID:
+ return new OpaqueBehaviorCompositeEditPartCN(view);
+
+ case OpaqueBehaviorCompositeNameEditPartCN.VISUAL_ID:
+ return new OpaqueBehaviorCompositeNameEditPartCN(view);
+
+ case ComponentCompositeEditPartCN.VISUAL_ID:
+ return new ComponentCompositeEditPartCN(view);
+
+ case ComponentCompositeNameEditPartCN.VISUAL_ID:
+ return new ComponentCompositeNameEditPartCN(view);
+
+ case DeviceCompositeEditPartCN.VISUAL_ID:
+ return new DeviceCompositeEditPartCN(view);
+
+ case DeviceCompositeNameEditPartCN.VISUAL_ID:
+ return new DeviceCompositeNameEditPartCN(view);
+
+ case ExecutionEnvironmentCompositeEditPartCN.VISUAL_ID:
+ return new ExecutionEnvironmentCompositeEditPartCN(view);
+
+ case ExecutionEnvironmentCompositeNameEditPartCN.VISUAL_ID:
+ return new ExecutionEnvironmentCompositeNameEditPartCN(view);
+
+ case NodeCompositeEditPartCN.VISUAL_ID:
+ return new NodeCompositeEditPartCN(view);
+
+ case NodeCompositeNameEditPartCN.VISUAL_ID:
+ return new NodeCompositeNameEditPartCN(view);
+
+ case ClassCompositeEditPartCN.VISUAL_ID:
+ return new ClassCompositeEditPartCN(view);
+
+ case ClassCompositeNameEditPartCN.VISUAL_ID:
+ return new ClassCompositeNameEditPartCN(view);
+
+ case CollaborationCompositeEditPartCN.VISUAL_ID:
+ return new CollaborationCompositeEditPartCN(view);
+
+ case CollaborationCompositeNameEditPartCN.VISUAL_ID:
+ return new CollaborationCompositeNameEditPartCN(view);
+
+ case InterfaceEditPartCN.VISUAL_ID:
+ return new InterfaceEditPartCN(view);
+
+ case InterfaceNameEditPartCN.VISUAL_ID:
+ return new InterfaceNameEditPartCN(view);
+
+ case PrimitiveTypeEditPartCN.VISUAL_ID:
+ return new PrimitiveTypeEditPartCN(view);
+
+ case PrimitiveTypeNameEditPartCN.VISUAL_ID:
+ return new PrimitiveTypeNameEditPartCN(view);
+
+ case EnumerationEditPartCN.VISUAL_ID:
+ return new EnumerationEditPartCN(view);
+
+ case EnumerationNameEditPartCN.VISUAL_ID:
+ return new EnumerationNameEditPartCN(view);
+
+ case DataTypeEditPartCN.VISUAL_ID:
+ return new DataTypeEditPartCN(view);
+
+ case DataTypeNameEditPartCN.VISUAL_ID:
+ return new DataTypeNameEditPartCN(view);
+
+ case ActorEditPartCN.VISUAL_ID:
+ return new ActorEditPartCN(view);
+
+ case ActorNameEditPartCN.VISUAL_ID:
+ return new ActorNameEditPartCN(view);
+
+ case DeploymentSpecificationEditPartCN.VISUAL_ID:
+ return new DeploymentSpecificationEditPartCN(view);
+
+ case DeploymentSpecificationNameEditPartCN.VISUAL_ID:
+ return new DeploymentSpecificationNameEditPartCN(view);
+
+ case ArtifactEditPartCN.VISUAL_ID:
+ return new ArtifactEditPartCN(view);
+
+ case ArtifactNameEditPartCN.VISUAL_ID:
+ return new ArtifactNameEditPartCN(view);
+
+ case InformationItemEditPartCN.VISUAL_ID:
+ return new InformationItemEditPartCN(view);
+
+ case InformationItemNameEditPartCN.VISUAL_ID:
+ return new InformationItemNameEditPartCN(view);
+
+ case SignalEditPartCN.VISUAL_ID:
+ return new SignalEditPartCN(view);
+
+ case SignalNameEditPartCN.VISUAL_ID:
+ return new SignalNameEditPartCN(view);
+
+ case UseCaseEditPartCN.VISUAL_ID:
+ return new UseCaseEditPartCN(view);
+
+ case UseCaseNameEditPartCN.VISUAL_ID:
+ return new UseCaseNameEditPartCN(view);
+
+ case CommentEditPartCN.VISUAL_ID:
+ return new CommentEditPartCN(view);
+
+ case CommentBodyEditPartCN.VISUAL_ID:
+ return new CommentBodyEditPartCN(view);
+
+ case DurationConstraintEditPartCN.VISUAL_ID:
+ return new DurationConstraintEditPartCN(view);
+
+ case DurationConstraintNameEditPartCN.VISUAL_ID:
+ return new DurationConstraintNameEditPartCN(view);
+
+ case DurationConstraintSpecificationEditPartCN.VISUAL_ID:
+ return new DurationConstraintSpecificationEditPartCN(view);
+
+ case TimeConstraintEditPartCN.VISUAL_ID:
+ return new TimeConstraintEditPartCN(view);
+
+ case TimeConstraintNameEditPartCN.VISUAL_ID:
+ return new TimeConstraintNameEditPartCN(view);
+
+ case TimeConstraintSpecificationEditPartCN.VISUAL_ID:
+ return new TimeConstraintSpecificationEditPartCN(view);
+
+ case IntervalConstraintEditPartCN.VISUAL_ID:
+ return new IntervalConstraintEditPartCN(view);
+
+ case IntervalConstraintNameEditPartCN.VISUAL_ID:
+ return new IntervalConstraintNameEditPartCN(view);
+
+ case IntervalConstraintSpecificationEditPartCN.VISUAL_ID:
+ return new IntervalConstraintSpecificationEditPartCN(view);
+
+ case InteractionConstraintEditPartCN.VISUAL_ID:
+ return new InteractionConstraintEditPartCN(view);
+
+ case InteractionConstraintNameEditPartCN.VISUAL_ID:
+ return new InteractionConstraintNameEditPartCN(view);
+
+ case InteractionConstraintSpecificationEditPartCN.VISUAL_ID:
+ return new InteractionConstraintSpecificationEditPartCN(view);
+
+ case ConstraintEditPartCN.VISUAL_ID:
+ return new ConstraintEditPartCN(view);
+
+ case ConstraintNameEditPartCN.VISUAL_ID:
+ return new ConstraintNameEditPartCN(view);
+
+ case ConstraintSpecificationEditPartCN.VISUAL_ID:
+ return new ConstraintSpecificationEditPartCN(view);
+
+ case PropertyEditPartCLN.VISUAL_ID:
+ return new PropertyEditPartCLN(view);
+
+ case OperationEditPartCLN.VISUAL_ID:
+ return new OperationEditPartCLN(view);
+
+ case ReceptionEditPartCLN.VISUAL_ID:
+ return new ReceptionEditPartCLN(view);
+
+ case EnumerationLiteralEditPartCLN.VISUAL_ID:
+ return new EnumerationLiteralEditPartCLN(view);
+
+ case ActivityEditPartCLN.VISUAL_ID:
+ return new ActivityEditPartCLN(view);
+
+ case InteractionEditPartCLN.VISUAL_ID:
+ return new InteractionEditPartCLN(view);
+
+ case ProtocolStateMachineEditPartCLN.VISUAL_ID:
+ return new ProtocolStateMachineEditPartCLN(view);
+
+ case StateMachineEditPartCLN.VISUAL_ID:
+ return new StateMachineEditPartCLN(view);
+
+ case FunctionBehaviorEditPartCLN.VISUAL_ID:
+ return new FunctionBehaviorEditPartCLN(view);
+
+ case OpaqueBehaviorEditPartCLN.VISUAL_ID:
+ return new OpaqueBehaviorEditPartCLN(view);
+
+ case CollaborationEditPartCLN.VISUAL_ID:
+ return new CollaborationEditPartCLN(view);
+
+ case InterfaceEditPartCLN.VISUAL_ID:
+ return new InterfaceEditPartCLN(view);
+
+ case EnumerationEditPartCLN.VISUAL_ID:
+ return new EnumerationEditPartCLN(view);
+
+ case PrimitiveTypeEditPartCLN.VISUAL_ID:
+ return new PrimitiveTypeEditPartCLN(view);
+
+ case DataTypeEditPartCLN.VISUAL_ID:
+ return new DataTypeEditPartCLN(view);
+
+ case ClassEditPartCLN.VISUAL_ID:
+ return new ClassEditPartCLN(view);
+
+ case DataTypeAttributeCompartmentEditPart.VISUAL_ID:
+ return new DataTypeAttributeCompartmentEditPart(view);
+
+ case DataTypeOperationCompartmentEditPart.VISUAL_ID:
+ return new DataTypeOperationCompartmentEditPart(view);
+
+ case DataTypeAttributeCompartmentEditPartCN.VISUAL_ID:
+ return new DataTypeAttributeCompartmentEditPartCN(view);
+
+ case DataTypeOperationCompartmentEditPartCN.VISUAL_ID:
+ return new DataTypeOperationCompartmentEditPartCN(view);
+
+ case EnumerationEnumerationLiteralCompartmentEditPart.VISUAL_ID:
+ return new EnumerationEnumerationLiteralCompartmentEditPart(view);
+
+ case EnumerationEnumerationLiteralCompartmentEditPartCN.VISUAL_ID:
+ return new EnumerationEnumerationLiteralCompartmentEditPartCN(view);
+
+ case ActivityCompositeCompartmentEditPartCN.VISUAL_ID:
+ return new ActivityCompositeCompartmentEditPartCN(view);
+
+ case InteractionCompositeCompartmentEditPartCN.VISUAL_ID:
+ return new InteractionCompositeCompartmentEditPartCN(view);
+
+ case ProtocolStateMachineCompositeCompartmentEditPartCN.VISUAL_ID:
+ return new ProtocolStateMachineCompositeCompartmentEditPartCN(view);
+
+ case StateMachineCompositeCompartmentEditPartCN.VISUAL_ID:
+ return new StateMachineCompositeCompartmentEditPartCN(view);
+
+ case FunctionBehaviorCompositeCompartmentEditPartCN.VISUAL_ID:
+ return new FunctionBehaviorCompositeCompartmentEditPartCN(view);
+
+ case OpaqueBehaviorCompositeCompartmentEditPartCN.VISUAL_ID:
+ return new OpaqueBehaviorCompositeCompartmentEditPartCN(view);
+
+ case ComponentCompositeCompartmentEditPartCN.VISUAL_ID:
+ return new ComponentCompositeCompartmentEditPartCN(view);
+
+ case DeviceCompositeCompartmentEditPartCN.VISUAL_ID:
+ return new DeviceCompositeCompartmentEditPartCN(view);
+
+ case ExecutionEnvironmentCompositeCompartmentEditPartCN.VISUAL_ID:
+ return new ExecutionEnvironmentCompositeCompartmentEditPartCN(view);
+
+ case NodeCompositeCompartmentEditPartCN.VISUAL_ID:
+ return new NodeCompositeCompartmentEditPartCN(view);
+
+ case ClassCompositeCompartmentEditPartCN.VISUAL_ID:
+ return new ClassCompositeCompartmentEditPartCN(view);
+
+ case CollaborationCompositeCompartmentEditPartCN.VISUAL_ID:
+ return new CollaborationCompositeCompartmentEditPartCN(view);
+
+ case ActivityCompositeCompartmentEditPart.VISUAL_ID:
+ return new ActivityCompositeCompartmentEditPart(view);
+
+ case InteractionCompositeCompartmentEditPart.VISUAL_ID:
+ return new InteractionCompositeCompartmentEditPart(view);
+
+ case ProtocolStateMachineCompositeCompartmentEditPart.VISUAL_ID:
+ return new ProtocolStateMachineCompositeCompartmentEditPart(view);
+
+ case StateMachineCompositeCompartmentEditPart.VISUAL_ID:
+ return new StateMachineCompositeCompartmentEditPart(view);
+
+ case FunctionBehaviorCompositeCompartmentEditPart.VISUAL_ID:
+ return new FunctionBehaviorCompositeCompartmentEditPart(view);
+
+ case OpaqueBehaviorCompositeCompartmentEditPart.VISUAL_ID:
+ return new OpaqueBehaviorCompositeCompartmentEditPart(view);
+
+ case ComponentCompositeCompartmentEditPart.VISUAL_ID:
+ return new ComponentCompositeCompartmentEditPart(view);
+
+ case DeviceCompositeCompartmentEditPart.VISUAL_ID:
+ return new DeviceCompositeCompartmentEditPart(view);
+
+ case ExecutionEnvironmentCompositeCompartmentEditPart.VISUAL_ID:
+ return new ExecutionEnvironmentCompositeCompartmentEditPart(view);
+
+ case NodeCompositeCompartmentEditPart.VISUAL_ID:
+ return new NodeCompositeCompartmentEditPart(view);
+
+ case ClassCompositeCompartmentEditPart.VISUAL_ID:
+ return new ClassCompositeCompartmentEditPart(view);
+
+ case CollaborationCompositeCompartmentEditPart.VISUAL_ID:
+ return new CollaborationCompositeCompartmentEditPart(view);
+
+ case PropertyPartCompartmentEditPartCN.VISUAL_ID:
+ return new PropertyPartCompartmentEditPartCN(view);
+
+ case LinkDescriptorEditPart.VISUAL_ID:
+ return new LinkDescriptorEditPart(view);
+
+ case CommentAnnotatedElementEditPart.VISUAL_ID:
+ return new CommentAnnotatedElementEditPart(view);
+
+ case ConstraintConstrainedElementEditPart.VISUAL_ID:
+ return new ConstraintConstrainedElementEditPart(view);
+
+ case ComponentRealizationEditPart.VISUAL_ID:
+ return new ComponentRealizationEditPart(view);
+
+ case ComponentRealizationNameEditPart.VISUAL_ID:
+ return new ComponentRealizationNameEditPart(view);
+
+ case ComponentRealizationAppliedStereotypeEditPart.VISUAL_ID:
+ return new ComponentRealizationAppliedStereotypeEditPart(view);
+
+ case InterfaceRealizationEditPart.VISUAL_ID:
+ return new InterfaceRealizationEditPart(view);
+
+ case InterfaceRealizationNameEditPart.VISUAL_ID:
+ return new InterfaceRealizationNameEditPart(view);
+
+ case InterfaceRealizationAppliedStereotypeEditPart.VISUAL_ID:
+ return new InterfaceRealizationAppliedStereotypeEditPart(view);
+
+ case SubstitutionEditPart.VISUAL_ID:
+ return new SubstitutionEditPart(view);
+
+ case SubstitutionNameEditPart.VISUAL_ID:
+ return new SubstitutionNameEditPart(view);
+
+ case SubstitutionAppliedStereotypeEditPart.VISUAL_ID:
+ return new SubstitutionAppliedStereotypeEditPart(view);
+
+ case RealizationEditPart.VISUAL_ID:
+ return new RealizationEditPart(view);
+
+ case RealizationNameEditPart.VISUAL_ID:
+ return new RealizationNameEditPart(view);
+
+ case RealizationAppliedStereotypeEditPart.VISUAL_ID:
+ return new RealizationAppliedStereotypeEditPart(view);
+
+ case ManifestationEditPart.VISUAL_ID:
+ return new ManifestationEditPart(view);
+
+ case ManifestationNameEditPart.VISUAL_ID:
+ return new ManifestationNameEditPart(view);
+
+ case ManifestationAppliedStereotypeEditPart.VISUAL_ID:
+ return new ManifestationAppliedStereotypeEditPart(view);
+
+ case AbstractionEditPart.VISUAL_ID:
+ return new AbstractionEditPart(view);
+
+ case AbstractionNameEditPart.VISUAL_ID:
+ return new AbstractionNameEditPart(view);
+
+ case AbstractionAppliedStereotypeEditPart.VISUAL_ID:
+ return new AbstractionAppliedStereotypeEditPart(view);
+
+ case UsageEditPart.VISUAL_ID:
+ return new UsageEditPart(view);
+
+ case UsageNameEditPart.VISUAL_ID:
+ return new UsageNameEditPart(view);
+
+ case UsageAppliedStereotypeEditPart.VISUAL_ID:
+ return new UsageAppliedStereotypeEditPart(view);
+
+ case DeploymentEditPart.VISUAL_ID:
+ return new DeploymentEditPart(view);
+
+ case DeploymentNameEditPart.VISUAL_ID:
+ return new DeploymentNameEditPart(view);
+
+ case DeploymentAppliedStereotypeEditPart.VISUAL_ID:
+ return new DeploymentAppliedStereotypeEditPart(view);
+
+ case RoleBindingEditPart.VISUAL_ID:
+ return new RoleBindingEditPart(view);
+
+ case RoleBindingRoleNameEditPart.VISUAL_ID:
+ return new RoleBindingRoleNameEditPart(view);
+
+ case RoleBindingAppliedStereotypeEditPart.VISUAL_ID:
+ return new RoleBindingAppliedStereotypeEditPart(view);
+
+ case DependencyEditPart.VISUAL_ID:
+ return new DependencyEditPart(view);
+
+ case DependencyNameEditPart.VISUAL_ID:
+ return new DependencyNameEditPart(view);
+
+ case DependencyAppliedStereotypeEditPart.VISUAL_ID:
+ return new DependencyAppliedStereotypeEditPart(view);
+
+ case ConnectorEditPart.VISUAL_ID:
+ return new ConnectorEditPart(view);
+
+ case ConnectorAppliedStereotypeEditPart.VISUAL_ID:
+ return new ConnectorAppliedStereotypeEditPart(view);
+
+ case ConnectorNameEditPart.VISUAL_ID:
+ return new ConnectorNameEditPart(view);
+
+ case ConnectorMultiplicitySourceEditPart.VISUAL_ID:
+ return new ConnectorMultiplicitySourceEditPart(view);
+
+ case ConnectorMultiplicityTargetEditPart.VISUAL_ID:
+ return new ConnectorMultiplicityTargetEditPart(view);
+
+ case GeneralizationEditPart.VISUAL_ID:
+ return new GeneralizationEditPart(view);
+
+ case GeneralizationAppliedStereotypeEditPart.VISUAL_ID:
+ return new GeneralizationAppliedStereotypeEditPart(view);
+
+ case TimeObservationEventEditPart.VISUAL_ID:
+ return new TimeObservationEventEditPart(view);
+
+ case DurationObservationEventEditPart.VISUAL_ID:
+ return new DurationObservationEventEditPart(view);
+
+ case RepresentationEditPart.VISUAL_ID:
+ return new RepresentationEditPart(view);
+
+ case RepresentationTagLabelEditPart.VISUAL_ID:
+ return new RepresentationTagLabelEditPart(view);
+
+ case InformationFlowEditPart.VISUAL_ID:
+ return new InformationFlowEditPart(view);
+
+ case InformationFlowConveyedLabelEditPart.VISUAL_ID:
+ return new InformationFlowConveyedLabelEditPart(view);
+
+ case InformationFlowAppliedStereotypeEditPart.VISUAL_ID:
+ return new InformationFlowAppliedStereotypeEditPart(view);
+
+ }
+ }
+ return createUnrecognizedEditPart(context, model);
+ }
+
+ /**
+ * @generated
+ */
+ private EditPart createUnrecognizedEditPart(EditPart context, Object model) {
+ // Handle creation of unrecognized child node EditParts here
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ public static CellEditorLocator getTextCellEditorLocator(ITextAwareEditPart source) {
+ if(source.getFigure() instanceof IMultilineEditableFigure)
+ return new MultilineCellEditorLocator((IMultilineEditableFigure)source.getFigure());
+ else if(source.getFigure() instanceof WrappingLabel)
+ return new TextCellEditorLocator((WrappingLabel)source.getFigure());
+ else {
+ return new LabelCellEditorLocator((Label)source.getFigure());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ static private class MultilineCellEditorLocator implements CellEditorLocator {
+
+ /**
+ * @generated
+ */
+ private IMultilineEditableFigure multilineEditableFigure;
+
+ /**
+ * @generated
+ */
+ public MultilineCellEditorLocator(IMultilineEditableFigure figure) {
+ this.multilineEditableFigure = figure;
+ }
+
+ /**
+ * @generated
+ */
+ public IMultilineEditableFigure getMultilineEditableFigure() {
+ return multilineEditableFigure;
+ }
+
+ /**
+ * @generated
+ */
+ public void relocate(CellEditor celleditor) {
+ Text text = (Text)celleditor.getControl();
+ Rectangle rect = getMultilineEditableFigure().getBounds().getCopy();
+ rect.x = getMultilineEditableFigure().getEditionLocation().x;
+ rect.y = getMultilineEditableFigure().getEditionLocation().y;
+ getMultilineEditableFigure().translateToAbsolute(rect);
+ if(getMultilineEditableFigure().getText().length() > 0) {
+ rect.setSize(new Dimension(text.computeSize(rect.width, SWT.DEFAULT)));
+ }
+ if(!rect.equals(new Rectangle(text.getBounds()))) {
+ text.setBounds(rect.x, rect.y, rect.width, rect.height);
+ }
+ }
+ }
+
+ /**
+ * @generated
+ */
+ static private class TextCellEditorLocator implements CellEditorLocator {
+
+ /**
+ * @generated
+ */
+ private WrappingLabel wrapLabel;
+
+ /**
+ * @generated
+ */
+ public TextCellEditorLocator(WrappingLabel wrapLabel) {
+ this.wrapLabel = wrapLabel;
+ }
+
+ /**
+ * @generated
+ */
+ public WrappingLabel getWrapLabel() {
+ return wrapLabel;
+ }
+
+ /**
+ * @generated
+ */
+ public void relocate(CellEditor celleditor) {
+ Text text = (Text)celleditor.getControl();
+ Rectangle rect = getWrapLabel().getTextBounds().getCopy();
+ getWrapLabel().translateToAbsolute(rect);
+ if(!text.getFont().isDisposed()) {
+ if(getWrapLabel().isTextWrapOn() && getWrapLabel().getText().length() > 0) {
+ rect.setSize(new Dimension(text.computeSize(rect.width, SWT.DEFAULT)));
+ } else {
+ int avr = FigureUtilities.getFontMetrics(text.getFont()).getAverageCharWidth();
+ rect.setSize(new Dimension(text.computeSize(SWT.DEFAULT, SWT.DEFAULT)).expand(avr * 2, 0));
+ }
+ }
+ if(!rect.equals(new Rectangle(text.getBounds()))) {
+ text.setBounds(rect.x, rect.y, rect.width, rect.height);
+ }
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private static class LabelCellEditorLocator implements CellEditorLocator {
+
+ /**
+ * @generated
+ */
+ private Label label;
+
+ /**
+ * @generated
+ */
+ public LabelCellEditorLocator(Label label) {
+ this.label = label;
+ }
+
+ /**
+ * @generated
+ */
+ public Label getLabel() {
+ return label;
+ }
+
+ /**
+ * @generated
+ */
+ public void relocate(CellEditor celleditor) {
+ Text text = (Text)celleditor.getControl();
+ Rectangle rect = getLabel().getTextBounds().getCopy();
+ getLabel().translateToAbsolute(rect);
+ if(!text.getFont().isDisposed()) {
+ int avr = FigureUtilities.getFontMetrics(text.getFont()).getAverageCharWidth();
+ rect.setSize(new Dimension(text.computeSize(SWT.DEFAULT, SWT.DEFAULT)).expand(avr * 2, 0));
+ }
+ if(!rect.equals(new Rectangle(text.getBounds()))) {
+ text.setBounds(rect.x, rect.y, rect.width, rect.height);
+ }
+ }
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/UsageAppliedStereotypeEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/UsageAppliedStereotypeEditPart.java
new file mode 100644
index 00000000000..a70ace1adbf
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/UsageAppliedStereotypeEditPart.java
@@ -0,0 +1,742 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.ConnectionLocator;
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.emf.transaction.RunnableWithResult;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.AccessibleEditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.requests.DirectEditRequest;
+import org.eclipse.gef.tools.DirectEditManager;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.LabelEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
+import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
+import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
+import org.eclipse.gmf.runtime.notation.FontStyle;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
+import org.eclipse.jface.viewers.ICellEditorValidator;
+import org.eclipse.jface.window.Window;
+import org.eclipse.papyrus.diagram.common.directedit.MultilineLabelDirectEditManager;
+import org.eclipse.papyrus.diagram.common.editparts.ILabelRoleProvider;
+import org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition;
+import org.eclipse.papyrus.diagram.common.editpolicies.IMaskManagedLabelEditPolicy;
+import org.eclipse.papyrus.diagram.common.figure.node.ILabelFigure;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLTextSelectionEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.diagram.composite.providers.UMLParserProvider;
+import org.eclipse.papyrus.extensionpoints.editors.Activator;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
+import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
+import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.AccessibleEvent;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.FontData;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.ui.PlatformUI;
+
+/**
+ * @generated
+ */
+public class UsageAppliedStereotypeEditPart extends LabelEditPart implements ITextAwareEditPart
+
+, ILabelRoleProvider
+
+{
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 6021;
+
+ /**
+ * @generated
+ */
+ private DirectEditManager manager;
+
+ /**
+ * @generated
+ */
+ private IParser parser;
+
+ /**
+ * @generated
+ */
+ private List<?> parserElements;
+
+ /**
+ * @generated
+ */
+ private String defaultText;
+
+ /**
+ * direct edition mode (default, undefined, registered editor, etc.)
+ *
+ * @generated
+ */
+ protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
+
+ /**
+ * configuration from a registered edit dialog
+ *
+ * @generated
+ */
+ protected IDirectEditorConfiguration configuration;
+
+ /**
+ * @generated
+ */
+ static {
+ registerSnapBackPosition(UMLVisualIDRegistry.getType(org.eclipse.papyrus.diagram.composite.edit.parts.UsageAppliedStereotypeEditPart.VISUAL_ID), new Point(0, 30));
+ }
+
+ /**
+ * @generated
+ */
+ public UsageAppliedStereotypeEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
+ installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new CompositeStructureDiagramEditPart.LinkLabelDragPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ public int getKeyPoint() {
+ return ConnectionLocator.MIDDLE;
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelTextHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getText();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getText();
+ } else {
+ return ((Label)figure).getText();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelTextHelper(IFigure figure, String text) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setText(text);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setText(text);
+ } else {
+ ((Label)figure).setText(text);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIconHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getIcon();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getIcon();
+ } else {
+ return ((Label)figure).getIcon();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelIconHelper(IFigure figure, Image icon) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setIcon(icon);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setIcon(icon);
+ } else {
+ ((Label)figure).setIcon(icon);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabel(WrappingLabel figure) {
+ unregisterVisuals();
+ setFigure(figure);
+ defaultText = getLabelTextHelper(figure);
+ registerVisuals();
+ refreshVisuals();
+ }
+
+ /**
+ * @generated
+ */
+ protected List getModelChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject getParserElement() {
+ return resolveSemanticElement();
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIcon() {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelText() {
+ String text = null;
+ EObject parserElement = getParserElement();
+ if(parserElement != null && getParser() != null) {
+ text = getParser().getPrintString(new EObjectAdapter(parserElement), getParserOptions().intValue());
+ }
+ if(text == null || text.length() == 0) {
+ text = defaultText;
+ }
+ return text;
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabelText(String text) {
+ setLabelTextHelper(getFigure(), text);
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public String getEditText() {
+ if(getParserElement() == null || getParser() == null) {
+ return ""; //$NON-NLS-1$
+ }
+ return getParser().getEditString(new EObjectAdapter(getParserElement()), getParserOptions().intValue());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean isEditable() {
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ public ICellEditorValidator getEditTextValidator() {
+ return new ICellEditorValidator() {
+
+ public String isValid(final Object value) {
+ if(value instanceof String) {
+ final EObject element = getParserElement();
+ final IParser parser = getParser();
+ try {
+ IParserEditStatus valid = (IParserEditStatus)getEditingDomain().runExclusive(new RunnableWithResult.Impl() {
+
+ public void run() {
+ setResult(parser.isValidEditString(new EObjectAdapter(element), (String)value));
+ }
+ });
+ return valid.getCode() == ParserEditStatus.EDITABLE ? null : valid.getMessage();
+ } catch (InterruptedException ie) {
+ ie.printStackTrace();
+ }
+ }
+
+ // shouldn't get here
+ return null;
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ public IContentAssistProcessor getCompletionProcessor() {
+ if(getParserElement() == null || getParser() == null) {
+ return null;
+ }
+ return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
+ }
+
+ /**
+ * @generated
+ */
+ public ParserOptions getParserOptions() {
+ return ParserOptions.NONE;
+ }
+
+ /**
+ * @generated
+ */
+ public IParser getParser() {
+ if(parser == null) {
+ parser = UMLParserProvider.getParser(UMLElementTypes.Usage_4008, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.diagram.composite.edit.parts.UsageAppliedStereotypeEditPart.VISUAL_ID));
+ }
+ return parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected DirectEditManager getManager() {
+ if(manager == null) {
+ setManager(new MultilineLabelDirectEditManager(this, MultilineLabelDirectEditManager.getTextCellEditorClass(this), UMLEditPartFactory.getTextCellEditorLocator(this)));
+ }
+ return manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setManager(DirectEditManager manager) {
+ this.manager = manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit() {
+ getManager().show();
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit(Point eventLocation) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(eventLocation.getSWTPoint());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void performDirectEdit(char initialCharacter) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(initialCharacter);
+ } else {
+ performDirectEdit();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEditRequest(Request request) {
+
+ final Request theRequest = request;
+
+ if(IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
+ directEditionMode = getDirectEditionType();
+ }
+ switch(directEditionMode) {
+ case IDirectEdition.NO_DIRECT_EDITION:
+ // no direct edition mode => does nothing
+ return;
+ case IDirectEdition.EXTENDED_DIRECT_EDITOR:
+ updateExtendedEditorConfiguration();
+ if(configuration == null || configuration.getLanguage() == null) {
+ performDefaultDirectEditorEdit(theRequest);
+ } else {
+ configuration.preEditAction(resolveSemanticElement());
+ Dialog dialog = null;
+ if(configuration instanceof IPopupEditorConfiguration) {
+ IPopupEditorHelper helper = ((IPopupEditorConfiguration)configuration).createPopupEditorHelper(this);
+ helper.showEditor();
+ return;
+ } else if(configuration instanceof IAdvancedEditorConfiguration) {
+ dialog = ((IAdvancedEditorConfiguration)configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
+ } else if(configuration instanceof IDirectEditorConfiguration) {
+ dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), ((IDirectEditorConfiguration)configuration).getTextToEdit(resolveSemanticElement()), (IDirectEditorConfiguration)configuration);
+ } else {
+ return;
+ }
+ final Dialog finalDialog = dialog;
+
+ if(Window.OK == dialog.open()) {
+ TransactionalEditingDomain domain = getEditingDomain();
+ RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
+
+ @Override
+ protected void doExecute() {
+ configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog)finalDialog).getValue());
+
+ }
+ };
+ domain.getCommandStack().execute(command);
+ }
+ }
+ break;
+ case IDirectEdition.DEFAULT_DIRECT_EDITOR:
+
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ break;
+ default:
+ break;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshLabel();
+ refreshFont();
+ refreshFontColor();
+ refreshUnderline();
+ refreshStrikeThrough();
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshLabel() {
+ EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
+ if(maskLabelPolicy == null) {
+ setLabelTextHelper(getFigure(), getLabelText());
+ setLabelIconHelper(getFigure(), getLabelIcon());
+ }
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshUnderline() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextUnderline(style.isUnderline());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshStrikeThrough() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextStrikeThrough(style.isStrikeThrough());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshFont() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null) {
+ FontData fontData = new FontData(style.getFontName(), style.getFontHeight(), (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
+ setFont(fontData);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setFontColor(Color color) {
+ getFigure().setForegroundColor(color);
+ }
+
+ /**
+ * @generated
+ */
+ protected void addSemanticListeners() {
+ if(getParser() instanceof ISemanticParser) {
+ EObject element = resolveSemanticElement();
+ parserElements = ((ISemanticParser)getParser()).getSemanticElementsBeingParsed(element);
+ for(int i = 0; i < parserElements.size(); i++) {
+ addListenerFilter("SemanticModel" + i, this, (EObject)parserElements.get(i)); //$NON-NLS-1$
+ }
+ } else {
+ super.addSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeSemanticListeners() {
+ if(parserElements != null) {
+ for(int i = 0; i < parserElements.size(); i++) {
+ removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
+ }
+ } else {
+ super.removeSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected AccessibleEditPart getAccessibleEditPart() {
+ if(accessibleEP == null) {
+ accessibleEP = new AccessibleGraphicalEditPart() {
+
+ public void getName(AccessibleEvent e) {
+ e.result = getLabelTextHelper(getFigure());
+ }
+ };
+ }
+ return accessibleEP;
+ }
+
+ /**
+ * @generated
+ */
+ private View getFontStyleOwnerView() {
+ return getPrimaryView();
+ }
+
+ /**
+ * Returns the kind of associated editor for direct edition.
+ *
+ * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition
+ * @generated
+ */
+ public int getDirectEditionType() {
+ // The label is read-only (defined in GMFGen model)
+ return IDirectEdition.NO_DIRECT_EDITION;
+ }
+
+ /**
+ * Checks if an extended editor is present.
+ *
+ * @return <code>true</code> if an extended editor is present.
+ * @generated
+ */
+ protected boolean checkExtendedEditor() {
+ if(resolveSemanticElement() != null) {
+ return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ return false;
+ }
+
+ /**
+ * Checks if a default direct edition is available
+ *
+ * @return <code>true</code> if a default direct edition is available
+ * @generated
+ */
+ protected boolean checkDefaultEdition() {
+ return (getParser() != null);
+ }
+
+ /**
+ * Initializes the extended editor configuration
+ *
+ * @generated
+ */
+ protected void initExtendedEditorConfiguration() {
+ if(configuration == null) {
+ final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("")) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else {
+ configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ }
+ }
+
+ /**
+ * Updates the preference configuration
+ *
+ * @generated
+ */
+ protected void updateExtendedEditorConfiguration() {
+ String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("") && languagePreferred != configuration.getLanguage()) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else if(IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
+ configuration = null;
+ }
+ }
+
+ /**
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
+ protected void performDefaultDirectEditorEdit(final Request theRequest) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void handleNotificationEvent(Notification event) {
+ Object feature = event.getFeature();
+ if(NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
+ Integer c = (Integer)event.getNewValue();
+ setFontColor(DiagramColorRegistry.getInstance().getColor(c));
+ } else if(NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
+ refreshUnderline();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
+ refreshStrikeThrough();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
+ refreshFont();
+ } else {
+ if(getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
+ refreshLabel();
+ }
+ if(getParser() instanceof ISemanticParser) {
+ ISemanticParser modelParser = (ISemanticParser)getParser();
+ if(modelParser.areSemanticElementsAffected(null, event)) {
+ removeSemanticListeners();
+ if(resolveSemanticElement() != null) {
+ addSemanticListeners();
+ }
+ refreshLabel();
+ }
+ }
+ }
+
+ super.handleNotificationEvent(event);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createFigure() {
+ // Parent should assign one using setLabel() method
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ public String getLabelRole() {
+ return "Stereotype";//$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ public String getIconPathRole() {
+ return "";//$NON-NLS-1$
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/UsageEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/UsageEditPart.java
new file mode 100644
index 00000000000..4df870ca037
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/UsageEditPart.java
@@ -0,0 +1,122 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import org.eclipse.draw2d.Connection;
+import org.eclipse.gef.EditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITreeBranchEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.diagram.common.editparts.UMLConnectionNodeEditPart;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeLinkLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeUsageLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.figure.edge.DashedEdgeFigure;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UsageItemSemanticEditPolicy;
+
+/**
+ * @generated
+ */
+public class UsageEditPart extends
+
+UMLConnectionNodeEditPart implements ITreeBranchEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 4008;
+
+ /**
+ * @generated
+ */
+ public UsageEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new UsageItemSemanticEditPolicy());
+ installEditPolicy(AppliedStereotypeLinkLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeUsageLabelDisplayEditPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean addFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof UsageNameEditPart) {
+ ((UsageNameEditPart)childEditPart).setLabel(getPrimaryShape().getNameLabel());
+ return true;
+ }
+ if(childEditPart instanceof UsageAppliedStereotypeEditPart) {
+ ((UsageAppliedStereotypeEditPart)childEditPart).setLabel(getPrimaryShape().getAppliedStereotypeLabel());
+ return true;
+ }
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected void addChildVisual(EditPart childEditPart, int index) {
+ if(addFixedChild(childEditPart)) {
+ return;
+ }
+ super.addChildVisual(childEditPart, -1);
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean removeFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof UsageNameEditPart) {
+ return true;
+ }
+ if(childEditPart instanceof UsageAppliedStereotypeEditPart) {
+ return true;
+ }
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeChildVisual(EditPart childEditPart) {
+ if(removeFixedChild(childEditPart)) {
+ return;
+ }
+ super.removeChildVisual(childEditPart);
+ }
+
+ /**
+ * Creates figure for this edit part.
+ *
+ * Body of this method does not depend on settings in generation model
+ * so you may safely remove <i>generated</i> tag and modify it.
+ *
+ * @generated
+ */
+ protected Connection createConnectionFigure() {
+ return new DashedEdgeFigure();
+ }
+
+ /**
+ * @generated
+ */
+ public DashedEdgeFigure getPrimaryShape() {
+ return (DashedEdgeFigure)getFigure();
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/UsageNameEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/UsageNameEditPart.java
new file mode 100644
index 00000000000..4cc89ee062d
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/UsageNameEditPart.java
@@ -0,0 +1,750 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.ConnectionLocator;
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.emf.transaction.RunnableWithResult;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.AccessibleEditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.requests.DirectEditRequest;
+import org.eclipse.gef.tools.DirectEditManager;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.LabelEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
+import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
+import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
+import org.eclipse.gmf.runtime.notation.FontStyle;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
+import org.eclipse.jface.viewers.ICellEditorValidator;
+import org.eclipse.jface.window.Window;
+import org.eclipse.papyrus.diagram.common.directedit.MultilineLabelDirectEditManager;
+import org.eclipse.papyrus.diagram.common.editparts.ILabelRoleProvider;
+import org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition;
+import org.eclipse.papyrus.diagram.common.editpolicies.IMaskManagedLabelEditPolicy;
+import org.eclipse.papyrus.diagram.common.figure.node.ILabelFigure;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLTextSelectionEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.diagram.composite.providers.UMLParserProvider;
+import org.eclipse.papyrus.extensionpoints.editors.Activator;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
+import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
+import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.AccessibleEvent;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.FontData;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.ui.PlatformUI;
+
+/**
+ * @generated
+ */
+public class UsageNameEditPart extends LabelEditPart implements ITextAwareEditPart
+
+, ILabelRoleProvider
+
+{
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 6007;
+
+ /**
+ * @generated
+ */
+ private DirectEditManager manager;
+
+ /**
+ * @generated
+ */
+ private IParser parser;
+
+ /**
+ * @generated
+ */
+ private List<?> parserElements;
+
+ /**
+ * @generated
+ */
+ private String defaultText;
+
+ /**
+ * direct edition mode (default, undefined, registered editor, etc.)
+ *
+ * @generated
+ */
+ protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
+
+ /**
+ * configuration from a registered edit dialog
+ *
+ * @generated
+ */
+ protected IDirectEditorConfiguration configuration;
+
+ /**
+ * @generated
+ */
+ static {
+ registerSnapBackPosition(UMLVisualIDRegistry.getType(org.eclipse.papyrus.diagram.composite.edit.parts.UsageNameEditPart.VISUAL_ID), new Point(0, 60));
+ }
+
+ /**
+ * @generated
+ */
+ public UsageNameEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
+ installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new CompositeStructureDiagramEditPart.LinkLabelDragPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ public int getKeyPoint() {
+ return ConnectionLocator.MIDDLE;
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelTextHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getText();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getText();
+ } else {
+ return ((Label)figure).getText();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelTextHelper(IFigure figure, String text) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setText(text);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setText(text);
+ } else {
+ ((Label)figure).setText(text);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIconHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getIcon();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getIcon();
+ } else {
+ return ((Label)figure).getIcon();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelIconHelper(IFigure figure, Image icon) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setIcon(icon);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setIcon(icon);
+ } else {
+ ((Label)figure).setIcon(icon);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabel(WrappingLabel figure) {
+ unregisterVisuals();
+ setFigure(figure);
+ defaultText = getLabelTextHelper(figure);
+ registerVisuals();
+ refreshVisuals();
+ }
+
+ /**
+ * @generated
+ */
+ protected List getModelChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject getParserElement() {
+ return resolveSemanticElement();
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIcon() {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelText() {
+ String text = null;
+ EObject parserElement = getParserElement();
+ if(parserElement != null && getParser() != null) {
+ text = getParser().getPrintString(new EObjectAdapter(parserElement), getParserOptions().intValue());
+ }
+ if(text == null || text.length() == 0) {
+ text = defaultText;
+ }
+ return text;
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabelText(String text) {
+ setLabelTextHelper(getFigure(), text);
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public String getEditText() {
+ if(getParserElement() == null || getParser() == null) {
+ return ""; //$NON-NLS-1$
+ }
+ return getParser().getEditString(new EObjectAdapter(getParserElement()), getParserOptions().intValue());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean isEditable() {
+ return getParser() != null;
+ }
+
+ /**
+ * @generated
+ */
+ public ICellEditorValidator getEditTextValidator() {
+ return new ICellEditorValidator() {
+
+ public String isValid(final Object value) {
+ if(value instanceof String) {
+ final EObject element = getParserElement();
+ final IParser parser = getParser();
+ try {
+ IParserEditStatus valid = (IParserEditStatus)getEditingDomain().runExclusive(new RunnableWithResult.Impl() {
+
+ public void run() {
+ setResult(parser.isValidEditString(new EObjectAdapter(element), (String)value));
+ }
+ });
+ return valid.getCode() == ParserEditStatus.EDITABLE ? null : valid.getMessage();
+ } catch (InterruptedException ie) {
+ ie.printStackTrace();
+ }
+ }
+
+ // shouldn't get here
+ return null;
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ public IContentAssistProcessor getCompletionProcessor() {
+ if(getParserElement() == null || getParser() == null) {
+ return null;
+ }
+ return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
+ }
+
+ /**
+ * @generated
+ */
+ public ParserOptions getParserOptions() {
+ return ParserOptions.NONE;
+ }
+
+ /**
+ * @generated
+ */
+ public IParser getParser() {
+ if(parser == null) {
+ parser = UMLParserProvider.getParser(UMLElementTypes.Usage_4008, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.diagram.composite.edit.parts.UsageNameEditPart.VISUAL_ID));
+ }
+ return parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected DirectEditManager getManager() {
+ if(manager == null) {
+ setManager(new MultilineLabelDirectEditManager(this, MultilineLabelDirectEditManager.getTextCellEditorClass(this), UMLEditPartFactory.getTextCellEditorLocator(this)));
+ }
+ return manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setManager(DirectEditManager manager) {
+ this.manager = manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit() {
+ getManager().show();
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit(Point eventLocation) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(eventLocation.getSWTPoint());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void performDirectEdit(char initialCharacter) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(initialCharacter);
+ } else {
+ performDirectEdit();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEditRequest(Request request) {
+
+ final Request theRequest = request;
+
+ if(IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
+ directEditionMode = getDirectEditionType();
+ }
+ switch(directEditionMode) {
+ case IDirectEdition.NO_DIRECT_EDITION:
+ // no direct edition mode => does nothing
+ return;
+ case IDirectEdition.EXTENDED_DIRECT_EDITOR:
+ updateExtendedEditorConfiguration();
+ if(configuration == null || configuration.getLanguage() == null) {
+ performDefaultDirectEditorEdit(theRequest);
+ } else {
+ configuration.preEditAction(resolveSemanticElement());
+ Dialog dialog = null;
+ if(configuration instanceof IPopupEditorConfiguration) {
+ IPopupEditorHelper helper = ((IPopupEditorConfiguration)configuration).createPopupEditorHelper(this);
+ helper.showEditor();
+ return;
+ } else if(configuration instanceof IAdvancedEditorConfiguration) {
+ dialog = ((IAdvancedEditorConfiguration)configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
+ } else if(configuration instanceof IDirectEditorConfiguration) {
+ dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), ((IDirectEditorConfiguration)configuration).getTextToEdit(resolveSemanticElement()), (IDirectEditorConfiguration)configuration);
+ } else {
+ return;
+ }
+ final Dialog finalDialog = dialog;
+
+ if(Window.OK == dialog.open()) {
+ TransactionalEditingDomain domain = getEditingDomain();
+ RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
+
+ @Override
+ protected void doExecute() {
+ configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog)finalDialog).getValue());
+
+ }
+ };
+ domain.getCommandStack().execute(command);
+ }
+ }
+ break;
+ case IDirectEdition.DEFAULT_DIRECT_EDITOR:
+
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ break;
+ default:
+ break;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshLabel();
+ refreshFont();
+ refreshFontColor();
+ refreshUnderline();
+ refreshStrikeThrough();
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshLabel() {
+ EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
+ if(maskLabelPolicy == null) {
+ setLabelTextHelper(getFigure(), getLabelText());
+ setLabelIconHelper(getFigure(), getLabelIcon());
+ }
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshUnderline() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextUnderline(style.isUnderline());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshStrikeThrough() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextStrikeThrough(style.isStrikeThrough());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshFont() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null) {
+ FontData fontData = new FontData(style.getFontName(), style.getFontHeight(), (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
+ setFont(fontData);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setFontColor(Color color) {
+ getFigure().setForegroundColor(color);
+ }
+
+ /**
+ * @generated
+ */
+ protected void addSemanticListeners() {
+ if(getParser() instanceof ISemanticParser) {
+ EObject element = resolveSemanticElement();
+ parserElements = ((ISemanticParser)getParser()).getSemanticElementsBeingParsed(element);
+ for(int i = 0; i < parserElements.size(); i++) {
+ addListenerFilter("SemanticModel" + i, this, (EObject)parserElements.get(i)); //$NON-NLS-1$
+ }
+ } else {
+ super.addSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeSemanticListeners() {
+ if(parserElements != null) {
+ for(int i = 0; i < parserElements.size(); i++) {
+ removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
+ }
+ } else {
+ super.removeSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected AccessibleEditPart getAccessibleEditPart() {
+ if(accessibleEP == null) {
+ accessibleEP = new AccessibleGraphicalEditPart() {
+
+ public void getName(AccessibleEvent e) {
+ e.result = getLabelTextHelper(getFigure());
+ }
+ };
+ }
+ return accessibleEP;
+ }
+
+ /**
+ * @generated
+ */
+ private View getFontStyleOwnerView() {
+ return getPrimaryView();
+ }
+
+ /**
+ * Returns the kind of associated editor for direct edition.
+ *
+ * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition
+ * @generated
+ */
+ public int getDirectEditionType() {
+ if(checkExtendedEditor()) {
+ initExtendedEditorConfiguration();
+ return IDirectEdition.EXTENDED_DIRECT_EDITOR;
+ }
+ if(checkDefaultEdition()) {
+ return IDirectEdition.DEFAULT_DIRECT_EDITOR;
+ }
+
+ // not a named element. no specific editor => do nothing
+ return IDirectEdition.NO_DIRECT_EDITION;
+ }
+
+ /**
+ * Checks if an extended editor is present.
+ *
+ * @return <code>true</code> if an extended editor is present.
+ * @generated
+ */
+ protected boolean checkExtendedEditor() {
+ if(resolveSemanticElement() != null) {
+ return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ return false;
+ }
+
+ /**
+ * Checks if a default direct edition is available
+ *
+ * @return <code>true</code> if a default direct edition is available
+ * @generated
+ */
+ protected boolean checkDefaultEdition() {
+ return (getParser() != null);
+ }
+
+ /**
+ * Initializes the extended editor configuration
+ *
+ * @generated
+ */
+ protected void initExtendedEditorConfiguration() {
+ if(configuration == null) {
+ final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("")) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else {
+ configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ }
+ }
+
+ /**
+ * Updates the preference configuration
+ *
+ * @generated
+ */
+ protected void updateExtendedEditorConfiguration() {
+ String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("") && languagePreferred != configuration.getLanguage()) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else if(IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
+ configuration = null;
+ }
+ }
+
+ /**
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
+ protected void performDefaultDirectEditorEdit(final Request theRequest) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void handleNotificationEvent(Notification event) {
+ Object feature = event.getFeature();
+ if(NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
+ Integer c = (Integer)event.getNewValue();
+ setFontColor(DiagramColorRegistry.getInstance().getColor(c));
+ } else if(NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
+ refreshUnderline();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
+ refreshStrikeThrough();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
+ refreshFont();
+ } else {
+ if(getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
+ refreshLabel();
+ }
+ if(getParser() instanceof ISemanticParser) {
+ ISemanticParser modelParser = (ISemanticParser)getParser();
+ if(modelParser.areSemanticElementsAffected(null, event)) {
+ removeSemanticListeners();
+ if(resolveSemanticElement() != null) {
+ addSemanticListeners();
+ }
+ refreshLabel();
+ }
+ }
+ }
+
+ super.handleNotificationEvent(event);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createFigure() {
+ // Parent should assign one using setLabel() method
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ public String getLabelRole() {
+ return "Name";//$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ public String getIconPathRole() {
+ return "";//$NON-NLS-1$
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/UseCaseEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/UseCaseEditPart.java
new file mode 100644
index 00000000000..0b2887aa5c1
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/UseCaseEditPart.java
@@ -0,0 +1,5397 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.ArrayList;
+import java.util.LinkedList;
+import java.util.List;
+
+import org.eclipse.draw2d.ColorConstants;
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.RectangleFigure;
+import org.eclipse.draw2d.Shape;
+import org.eclipse.draw2d.StackLayout;
+import org.eclipse.emf.ecore.EStructuralFeature;
+import org.eclipse.gef.EditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.editpolicies.LayoutEditPolicy;
+import org.eclipse.gef.editpolicies.NonResizableEditPolicy;
+import org.eclipse.gef.requests.CreateRequest;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ShapeNodeEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.FigureUtilities;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.gef.ui.figures.DefaultSizeNodeFigure;
+import org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.jface.preference.PreferenceConverter;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.HyperLinkPopupBarEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.QualifiedNameDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.helper.PreferenceInitializerForElementHelper;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.GraphicalNodeEditPolicy;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UseCaseItemSemanticEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorPlugin;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter;
+import org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.Font;
+import org.eclipse.swt.widgets.Display;
+
+/**
+ * @generated
+ */
+public class UseCaseEditPart extends
+
+ShapeNodeEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 2082;
+
+ /**
+ * @generated
+ */
+ protected IFigure contentPane;
+
+ /**
+ * @generated
+ */
+ protected IFigure primaryShape;
+
+ /**
+ * @generated
+ */
+ public UseCaseEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new UseCaseItemSemanticEditPolicy());
+ installEditPolicy(EditPolicy.LAYOUT_ROLE, createLayoutEditPolicy());
+ installEditPolicy(QualifiedNameDisplayEditPolicy.QUALIFIED_NAME_POLICY, new QualifiedNameDisplayEditPolicy());
+ installEditPolicy(AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeNodeLabelDisplayEditPolicy());
+ installEditPolicy(EditPolicyRoles.POPUPBAR_ROLE, new HyperLinkPopupBarEditPolicy());
+ installEditPolicy(EditPolicy.GRAPHICAL_NODE_ROLE, new GraphicalNodeEditPolicy());
+ // XXX need an SCR to runtime to have another abstract superclass that would let children add reasonable editpolicies
+ // removeEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CONNECTION_HANDLES_ROLE);
+ }
+
+ /**
+ * @generated
+ */
+ protected LayoutEditPolicy createLayoutEditPolicy() {
+ org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy lep = new org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy() {
+
+ protected EditPolicy createChildEditPolicy(EditPart child) {
+ EditPolicy result = child.getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(result == null) {
+ result = new NonResizableEditPolicy();
+ }
+ return result;
+ }
+
+ protected Command getMoveChildrenCommand(Request request) {
+ return null;
+ }
+
+ protected Command getCreateCommand(CreateRequest request) {
+ return null;
+ }
+ };
+ return lep;
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createNodeShape() {
+ return primaryShape = new NamedElementDescriptor();
+ }
+
+ /**
+ * @generated
+ */
+ public NamedElementDescriptor getPrimaryShape() {
+ return (NamedElementDescriptor)primaryShape;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean addFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof UseCaseNameEditPart) {
+ ((UseCaseNameEditPart)childEditPart).setLabel(getPrimaryShape().getNamedElementNameLabel());
+ return true;
+ }
+
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean removeFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof UseCaseNameEditPart) {
+ return true;
+ }
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected void addChildVisual(EditPart childEditPart, int index) {
+ if(addFixedChild(childEditPart)) {
+ return;
+ }
+ super.addChildVisual(childEditPart, -1);
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeChildVisual(EditPart childEditPart) {
+ if(removeFixedChild(childEditPart)) {
+ return;
+ }
+ super.removeChildVisual(childEditPart);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure getContentPaneFor(IGraphicalEditPart editPart) {
+ return getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ protected NodeFigure createNodePlate() {
+ String prefElementId = "UseCase";
+ IPreferenceStore store = UMLDiagramEditorPlugin.getInstance().getPreferenceStore();
+ String preferenceConstantWitdh = PreferenceInitializerForElementHelper.getpreferenceKey(getNotationView(), prefElementId, PreferenceConstantHelper.WIDTH);
+ String preferenceConstantHeight = PreferenceInitializerForElementHelper.getpreferenceKey(getNotationView(), prefElementId, PreferenceConstantHelper.HEIGHT);
+ DefaultSizeNodeFigure result = new DefaultSizeNodeFigure(store.getInt(preferenceConstantWitdh), store.getInt(preferenceConstantHeight));
+
+ return result;
+ }
+
+ /**
+ * Creates figure for this edit part.
+ *
+ * Body of this method does not depend on settings in generation model
+ * so you may safely remove <i>generated</i> tag and modify it.
+ *
+ * @generated
+ */
+ protected NodeFigure createNodeFigure() {
+ NodeFigure figure = createNodePlate();
+ figure.setLayoutManager(new StackLayout());
+ IFigure shape = createNodeShape();
+ figure.add(shape);
+ contentPane = setupContentPane(shape);
+ return figure;
+ }
+
+ /**
+ * Default implementation treats passed figure as content pane.
+ * Respects layout one may have set for generated figure.
+ *
+ * @param nodeShape
+ * instance of generated figure class
+ * @generated
+ */
+ protected IFigure setupContentPane(IFigure nodeShape) {
+ if(nodeShape.getLayoutManager() == null) {
+ ConstrainedToolbarLayout layout = new ConstrainedToolbarLayout();
+ layout.setSpacing(5);
+ nodeShape.setLayoutManager(layout);
+ }
+ return nodeShape; // use nodeShape itself as contentPane
+ }
+
+ /**
+ * @generated
+ */
+ public IFigure getContentPane() {
+ if(contentPane != null) {
+ return contentPane;
+ }
+ return super.getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ protected void setForegroundColor(Color color) {
+ if(primaryShape != null) {
+ primaryShape.setForegroundColor(color);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLineWidth(int width) {
+ if(primaryShape instanceof Shape) {
+ ((Shape)primaryShape).setLineWidth(width);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLineType(int style) {
+ if(primaryShape instanceof Shape) {
+ ((Shape)primaryShape).setLineStyle(style);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public EditPart getPrimaryChildEditPart() {
+ return getChildBySemanticHint(UMLVisualIDRegistry.getType(UseCaseNameEditPart.VISUAL_ID));
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnSource() {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(12);
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ types.add(UMLElementTypes.Substitution_4011);
+ types.add(UMLElementTypes.Realization_4006);
+ types.add(UMLElementTypes.Manifestation_4012);
+ types.add(UMLElementTypes.Abstraction_4007);
+ types.add(UMLElementTypes.Usage_4008);
+ types.add(UMLElementTypes.Deployment_4009);
+ types.add(UMLElementTypes.Dependency_4017);
+ types.add(UMLElementTypes.Dependency_4010);
+ types.add(UMLElementTypes.Generalization_4015);
+ types.add(UMLElementTypes.InformationFlow_4021);
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnSourceAndTarget(IGraphicalEditPart targetEditPart) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.UseCaseEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.UseCaseEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.UseCaseEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.UseCaseEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.UseCaseEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.UseCaseEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.UseCaseEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.UseCaseEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.UseCaseEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.UseCaseEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.UseCaseEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.UseCaseEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMATypesForTarget(IElementType relationshipType) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(relationshipType == UMLElementTypes.ComponentRealization_4004) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InterfaceRealization_4005) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Substitution_4011) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Realization_4006) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Manifestation_4012) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Abstraction_4007) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Usage_4008) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Deployment_4009) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4017) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4010) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Generalization_4015) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ } else if(relationshipType == UMLElementTypes.InformationFlow_4021) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnTarget() {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(17);
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ types.add(UMLElementTypes.Substitution_4011);
+ types.add(UMLElementTypes.Realization_4006);
+ types.add(UMLElementTypes.Manifestation_4012);
+ types.add(UMLElementTypes.Abstraction_4007);
+ types.add(UMLElementTypes.Usage_4008);
+ types.add(UMLElementTypes.Deployment_4009);
+ types.add(UMLElementTypes.Dependency_4017);
+ types.add(UMLElementTypes.Dependency_4010);
+ types.add(UMLElementTypes.Generalization_4015);
+ types.add(UMLElementTypes.TimeObservationEvent_4018);
+ types.add(UMLElementTypes.DurationObservationEvent_4019);
+ types.add(UMLElementTypes.InformationItemRepresented_4020);
+ types.add(UMLElementTypes.InformationFlow_4021);
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMATypesForSource(IElementType relationshipType) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(relationshipType == UMLElementTypes.CommentAnnotatedElement_4002) {
+ types.add(UMLElementTypes.Comment_2109);
+ types.add(UMLElementTypes.Comment_3097);
+ } else if(relationshipType == UMLElementTypes.ConstraintConstrainedElement_4003) {
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.ComponentRealization_4004) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InterfaceRealization_4005) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Substitution_4011) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Realization_4006) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Manifestation_4012) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Abstraction_4007) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Usage_4008) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Deployment_4009) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4017) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4010) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Generalization_4015) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ } else if(relationshipType == UMLElementTypes.TimeObservationEvent_4018) {
+ types.add(UMLElementTypes.TimeObservation_2094);
+ } else if(relationshipType == UMLElementTypes.DurationObservationEvent_4019) {
+ types.add(UMLElementTypes.DurationObservation_2093);
+ } else if(relationshipType == UMLElementTypes.InformationItemRepresented_4020) {
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.InformationItem_3094);
+ } else if(relationshipType == UMLElementTypes.InformationFlow_4021) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public class NamedElementDescriptor extends RectangleFigure {
+
+ /**
+ * @generated
+ */
+ private WrappingLabel fNamedElementNameLabel;
+
+ /**
+ * @generated
+ */
+ public NamedElementDescriptor() {
+ this.setLineWidth(1);
+ this.setForegroundColor(ColorConstants.black);
+ createContents();
+ }
+
+ /**
+ * @generated
+ */
+ private void createContents() {
+
+ fNamedElementNameLabel = new WrappingLabel();
+ fNamedElementNameLabel.setText("");
+ fNamedElementNameLabel.setForegroundColor(ColorConstants.black);
+
+ fNamedElementNameLabel.setFont(FNAMEDELEMENTNAMELABEL_FONT);
+
+ this.add(fNamedElementNameLabel);
+
+ }
+
+ /**
+ * @generated
+ */
+ private boolean myUseLocalCoordinates = false;
+
+ /**
+ * @generated
+ */
+ protected boolean useLocalCoordinates() {
+ return myUseLocalCoordinates;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setUseLocalCoordinates(boolean useLocalCoordinates) {
+ myUseLocalCoordinates = useLocalCoordinates;
+ }
+
+ /**
+ * @generated
+ */
+ public WrappingLabel getNamedElementNameLabel() {
+ return fNamedElementNameLabel;
+ }
+
+ }
+
+ /**
+ * @generated
+ */
+ static final Font FNAMEDELEMENTNAMELABEL_FONT = new Font(Display.getCurrent(), "Arial", 10, SWT.BOLD);
+
+ /**
+ * @generated
+ */
+ @Override
+ public Object getPreferredValue(EStructuralFeature feature) {
+ IPreferenceStore preferenceStore = (IPreferenceStore)getDiagramPreferencesHint().getPreferenceStore();
+ Object result = null;
+
+ if(feature == NotationPackage.eINSTANCE.getLineStyle_LineColor() || feature == NotationPackage.eINSTANCE.getFontStyle_FontColor() || feature == NotationPackage.eINSTANCE.getFillStyle_FillColor()) {
+ String prefColor = null;
+ if(feature == NotationPackage.eINSTANCE.getLineStyle_LineColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("UseCase", PreferenceConstantHelper.COLOR_LINE);
+ } else if(feature == NotationPackage.eINSTANCE.getFontStyle_FontColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("UseCase", PreferenceConstantHelper.COLOR_FONT);
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_FillColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("UseCase", PreferenceConstantHelper.COLOR_FILL);
+ }
+ result = FigureUtilities.RGBToInteger(PreferenceConverter.getColor((IPreferenceStore)preferenceStore, prefColor));
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_Transparency() || feature == NotationPackage.eINSTANCE.getFillStyle_Gradient()) {
+ String prefGradient = PreferenceConstantHelper.getElementConstant("UseCase", PreferenceConstantHelper.COLOR_GRADIENT);
+ GradientPreferenceConverter gradientPreferenceConverter = new GradientPreferenceConverter(preferenceStore.getString(prefGradient));
+ if(feature == NotationPackage.eINSTANCE.getFillStyle_Transparency()) {
+ result = new Integer(gradientPreferenceConverter.getTransparency());
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_Gradient()) {
+ result = gradientPreferenceConverter.getGradientData();
+ }
+ }
+
+ if(result == null) {
+ result = getStructuralFeatureValue(feature);
+ }
+ return result;
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/UseCaseEditPartCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/UseCaseEditPartCN.java
new file mode 100644
index 00000000000..8251174cd92
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/UseCaseEditPartCN.java
@@ -0,0 +1,5411 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.ArrayList;
+import java.util.LinkedList;
+import java.util.List;
+
+import org.eclipse.draw2d.ColorConstants;
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.RectangleFigure;
+import org.eclipse.draw2d.Shape;
+import org.eclipse.draw2d.StackLayout;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EStructuralFeature;
+import org.eclipse.gef.EditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.editpolicies.LayoutEditPolicy;
+import org.eclipse.gef.editpolicies.NonResizableEditPolicy;
+import org.eclipse.gef.requests.CreateRequest;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ShapeNodeEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.FigureUtilities;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.gef.ui.figures.DefaultSizeNodeFigure;
+import org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.jface.preference.PreferenceConverter;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.HyperLinkPopupBarEditPolicy;
+import org.eclipse.papyrus.diagram.common.editpolicies.QualifiedNameDisplayEditPolicy;
+import org.eclipse.papyrus.diagram.common.helper.PreferenceInitializerForElementHelper;
+import org.eclipse.papyrus.diagram.composite.custom.edit.parts.ConstrainedShapeNodeEditPart;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.GraphicalNodeEditPolicy;
+import org.eclipse.papyrus.diagram.composite.custom.edit.policies.NoScrollClassifierResizableShapeEditPolicy;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UseCaseItemSemanticEditPolicyCN;
+import org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorPlugin;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter;
+import org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.Font;
+import org.eclipse.swt.widgets.Display;
+
+/**
+ * @generated
+ */
+public class UseCaseEditPartCN extends
+
+ConstrainedShapeNodeEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 3096;
+
+ /**
+ * @generated
+ */
+ protected IFigure contentPane;
+
+ /**
+ * @generated
+ */
+ protected IFigure primaryShape;
+
+ /**
+ * @generated
+ */
+ public UseCaseEditPartCN(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new UseCaseItemSemanticEditPolicyCN());
+ installEditPolicy(EditPolicy.LAYOUT_ROLE, createLayoutEditPolicy());
+ installEditPolicy(QualifiedNameDisplayEditPolicy.QUALIFIED_NAME_POLICY, new QualifiedNameDisplayEditPolicy());
+ installEditPolicy(AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeNodeLabelDisplayEditPolicy());
+ installEditPolicy(EditPolicyRoles.POPUPBAR_ROLE, new HyperLinkPopupBarEditPolicy());
+ installEditPolicy(EditPolicy.GRAPHICAL_NODE_ROLE, new GraphicalNodeEditPolicy());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new NoScrollClassifierResizableShapeEditPolicy());
+ // XXX need an SCR to runtime to have another abstract superclass that would let children add reasonable editpolicies
+ // removeEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CONNECTION_HANDLES_ROLE);
+ }
+
+ /**
+ * Papyrus codeGen
+ *
+ * @generated
+ **/
+ protected void handleNotificationEvent(Notification event) {
+ super.handleNotificationEvent(event);
+
+ }
+
+ /**
+ * @generated
+ */
+ protected LayoutEditPolicy createLayoutEditPolicy() {
+ org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy lep = new org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy() {
+
+ protected EditPolicy createChildEditPolicy(EditPart child) {
+ EditPolicy result = child.getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(result == null) {
+ result = new NonResizableEditPolicy();
+ }
+ return result;
+ }
+
+ protected Command getMoveChildrenCommand(Request request) {
+ return null;
+ }
+
+ protected Command getCreateCommand(CreateRequest request) {
+ return null;
+ }
+ };
+ return lep;
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createNodeShape() {
+ return primaryShape = new NamedElementDescriptor();
+ }
+
+ /**
+ * @generated
+ */
+ public NamedElementDescriptor getPrimaryShape() {
+ return (NamedElementDescriptor)primaryShape;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean addFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof UseCaseNameEditPartCN) {
+ ((UseCaseNameEditPartCN)childEditPart).setLabel(getPrimaryShape().getNamedElementNameLabel());
+ return true;
+ }
+
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean removeFixedChild(EditPart childEditPart) {
+ if(childEditPart instanceof UseCaseNameEditPartCN) {
+ return true;
+ }
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected void addChildVisual(EditPart childEditPart, int index) {
+ if(addFixedChild(childEditPart)) {
+ return;
+ }
+ super.addChildVisual(childEditPart, -1);
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeChildVisual(EditPart childEditPart) {
+ if(removeFixedChild(childEditPart)) {
+ return;
+ }
+ super.removeChildVisual(childEditPart);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure getContentPaneFor(IGraphicalEditPart editPart) {
+ return getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ protected NodeFigure createNodePlate() {
+ String prefElementId = "UseCase";
+ IPreferenceStore store = UMLDiagramEditorPlugin.getInstance().getPreferenceStore();
+ String preferenceConstantWitdh = PreferenceInitializerForElementHelper.getpreferenceKey(getNotationView(), prefElementId, PreferenceConstantHelper.WIDTH);
+ String preferenceConstantHeight = PreferenceInitializerForElementHelper.getpreferenceKey(getNotationView(), prefElementId, PreferenceConstantHelper.HEIGHT);
+ DefaultSizeNodeFigure result = new DefaultSizeNodeFigure(store.getInt(preferenceConstantWitdh), store.getInt(preferenceConstantHeight));
+
+ return result;
+ }
+
+ /**
+ * Creates figure for this edit part.
+ *
+ * Body of this method does not depend on settings in generation model
+ * so you may safely remove <i>generated</i> tag and modify it.
+ *
+ * @generated
+ */
+ protected NodeFigure createNodeFigure() {
+ NodeFigure figure = createNodePlate();
+ figure.setLayoutManager(new StackLayout());
+ IFigure shape = createNodeShape();
+ figure.add(shape);
+ contentPane = setupContentPane(shape);
+ return figure;
+ }
+
+ /**
+ * Default implementation treats passed figure as content pane.
+ * Respects layout one may have set for generated figure.
+ *
+ * @param nodeShape
+ * instance of generated figure class
+ * @generated
+ */
+ protected IFigure setupContentPane(IFigure nodeShape) {
+ if(nodeShape.getLayoutManager() == null) {
+ ConstrainedToolbarLayout layout = new ConstrainedToolbarLayout();
+ layout.setSpacing(5);
+ nodeShape.setLayoutManager(layout);
+ }
+ return nodeShape; // use nodeShape itself as contentPane
+ }
+
+ /**
+ * @generated
+ */
+ public IFigure getContentPane() {
+ if(contentPane != null) {
+ return contentPane;
+ }
+ return super.getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ protected void setForegroundColor(Color color) {
+ if(primaryShape != null) {
+ primaryShape.setForegroundColor(color);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLineWidth(int width) {
+ if(primaryShape instanceof Shape) {
+ ((Shape)primaryShape).setLineWidth(width);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLineType(int style) {
+ if(primaryShape instanceof Shape) {
+ ((Shape)primaryShape).setLineStyle(style);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public EditPart getPrimaryChildEditPart() {
+ return getChildBySemanticHint(UMLVisualIDRegistry.getType(UseCaseNameEditPartCN.VISUAL_ID));
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnSource() {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(12);
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ types.add(UMLElementTypes.Substitution_4011);
+ types.add(UMLElementTypes.Realization_4006);
+ types.add(UMLElementTypes.Manifestation_4012);
+ types.add(UMLElementTypes.Abstraction_4007);
+ types.add(UMLElementTypes.Usage_4008);
+ types.add(UMLElementTypes.Deployment_4009);
+ types.add(UMLElementTypes.Dependency_4017);
+ types.add(UMLElementTypes.Dependency_4010);
+ types.add(UMLElementTypes.Generalization_4015);
+ types.add(UMLElementTypes.InformationFlow_4021);
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnSourceAndTarget(IGraphicalEditPart targetEditPart) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.UseCaseEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.UseCaseEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Substitution_4011);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Realization_4006);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Manifestation_4012);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Abstraction_4007);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Usage_4008);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Deployment_4009);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4017);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.Dependency_4010);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.UseCaseEditPartCN) {
+ types.add(UMLElementTypes.Generalization_4015);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof org.eclipse.papyrus.diagram.composite.edit.parts.UseCaseEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.InformationFlow_4021);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMATypesForTarget(IElementType relationshipType) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(relationshipType == UMLElementTypes.ComponentRealization_4004) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InterfaceRealization_4005) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Substitution_4011) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Realization_4006) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Manifestation_4012) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Abstraction_4007) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Usage_4008) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Deployment_4009) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4017) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4010) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Generalization_4015) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ } else if(relationshipType == UMLElementTypes.InformationFlow_4021) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnTarget() {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(17);
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ types.add(UMLElementTypes.ComponentRealization_4004);
+ types.add(UMLElementTypes.InterfaceRealization_4005);
+ types.add(UMLElementTypes.Substitution_4011);
+ types.add(UMLElementTypes.Realization_4006);
+ types.add(UMLElementTypes.Manifestation_4012);
+ types.add(UMLElementTypes.Abstraction_4007);
+ types.add(UMLElementTypes.Usage_4008);
+ types.add(UMLElementTypes.Deployment_4009);
+ types.add(UMLElementTypes.Dependency_4017);
+ types.add(UMLElementTypes.Dependency_4010);
+ types.add(UMLElementTypes.Generalization_4015);
+ types.add(UMLElementTypes.TimeObservationEvent_4018);
+ types.add(UMLElementTypes.DurationObservationEvent_4019);
+ types.add(UMLElementTypes.InformationItemRepresented_4020);
+ types.add(UMLElementTypes.InformationFlow_4021);
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMATypesForSource(IElementType relationshipType) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if(relationshipType == UMLElementTypes.CommentAnnotatedElement_4002) {
+ types.add(UMLElementTypes.Comment_2109);
+ types.add(UMLElementTypes.Comment_3097);
+ } else if(relationshipType == UMLElementTypes.ConstraintConstrainedElement_4003) {
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.ComponentRealization_4004) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.InterfaceRealization_4005) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Substitution_4011) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Realization_4006) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Manifestation_4012) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Abstraction_4007) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Usage_4008) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Deployment_4009) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4017) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Dependency_4010) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ } else if(relationshipType == UMLElementTypes.Generalization_4015) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ } else if(relationshipType == UMLElementTypes.TimeObservationEvent_4018) {
+ types.add(UMLElementTypes.TimeObservation_2094);
+ } else if(relationshipType == UMLElementTypes.DurationObservationEvent_4019) {
+ types.add(UMLElementTypes.DurationObservation_2093);
+ } else if(relationshipType == UMLElementTypes.InformationItemRepresented_4020) {
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.InformationItem_3094);
+ } else if(relationshipType == UMLElementTypes.InformationFlow_4021) {
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public class NamedElementDescriptor extends RectangleFigure {
+
+ /**
+ * @generated
+ */
+ private WrappingLabel fNamedElementNameLabel;
+
+ /**
+ * @generated
+ */
+ public NamedElementDescriptor() {
+ this.setLineWidth(1);
+ this.setForegroundColor(ColorConstants.black);
+ createContents();
+ }
+
+ /**
+ * @generated
+ */
+ private void createContents() {
+
+ fNamedElementNameLabel = new WrappingLabel();
+ fNamedElementNameLabel.setText("");
+ fNamedElementNameLabel.setForegroundColor(ColorConstants.black);
+
+ fNamedElementNameLabel.setFont(FNAMEDELEMENTNAMELABEL_FONT);
+
+ this.add(fNamedElementNameLabel);
+
+ }
+
+ /**
+ * @generated
+ */
+ private boolean myUseLocalCoordinates = false;
+
+ /**
+ * @generated
+ */
+ protected boolean useLocalCoordinates() {
+ return myUseLocalCoordinates;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setUseLocalCoordinates(boolean useLocalCoordinates) {
+ myUseLocalCoordinates = useLocalCoordinates;
+ }
+
+ /**
+ * @generated
+ */
+ public WrappingLabel getNamedElementNameLabel() {
+ return fNamedElementNameLabel;
+ }
+
+ }
+
+ /**
+ * @generated
+ */
+ static final Font FNAMEDELEMENTNAMELABEL_FONT = new Font(Display.getCurrent(), "Arial", 10, SWT.BOLD);
+
+ /**
+ * @generated
+ */
+ @Override
+ public Object getPreferredValue(EStructuralFeature feature) {
+ IPreferenceStore preferenceStore = (IPreferenceStore)getDiagramPreferencesHint().getPreferenceStore();
+ Object result = null;
+
+ if(feature == NotationPackage.eINSTANCE.getLineStyle_LineColor() || feature == NotationPackage.eINSTANCE.getFontStyle_FontColor() || feature == NotationPackage.eINSTANCE.getFillStyle_FillColor()) {
+ String prefColor = null;
+ if(feature == NotationPackage.eINSTANCE.getLineStyle_LineColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("UseCase", PreferenceConstantHelper.COLOR_LINE);
+ } else if(feature == NotationPackage.eINSTANCE.getFontStyle_FontColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("UseCase", PreferenceConstantHelper.COLOR_FONT);
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_FillColor()) {
+ prefColor = PreferenceConstantHelper.getElementConstant("UseCase", PreferenceConstantHelper.COLOR_FILL);
+ }
+ result = FigureUtilities.RGBToInteger(PreferenceConverter.getColor((IPreferenceStore)preferenceStore, prefColor));
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_Transparency() || feature == NotationPackage.eINSTANCE.getFillStyle_Gradient()) {
+ String prefGradient = PreferenceConstantHelper.getElementConstant("UseCase", PreferenceConstantHelper.COLOR_GRADIENT);
+ GradientPreferenceConverter gradientPreferenceConverter = new GradientPreferenceConverter(preferenceStore.getString(prefGradient));
+ if(feature == NotationPackage.eINSTANCE.getFillStyle_Transparency()) {
+ result = new Integer(gradientPreferenceConverter.getTransparency());
+ } else if(feature == NotationPackage.eINSTANCE.getFillStyle_Gradient()) {
+ result = gradientPreferenceConverter.getGradientData();
+ }
+ }
+
+ if(result == null) {
+ result = getStructuralFeatureValue(feature);
+ }
+ return result;
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/UseCaseNameEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/UseCaseNameEditPart.java
new file mode 100644
index 00000000000..17d79932aec
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/UseCaseNameEditPart.java
@@ -0,0 +1,791 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EAnnotation;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.emf.transaction.RunnableWithResult;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.AccessibleEditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.requests.DirectEditRequest;
+import org.eclipse.gef.tools.DirectEditManager;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.CompartmentEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
+import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
+import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
+import org.eclipse.gmf.runtime.notation.FontStyle;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
+import org.eclipse.jface.viewers.ICellEditorValidator;
+import org.eclipse.jface.window.Window;
+import org.eclipse.papyrus.diagram.common.directedit.MultilineLabelDirectEditManager;
+import org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition;
+import org.eclipse.papyrus.diagram.common.editpolicies.IMaskManagedLabelEditPolicy;
+import org.eclipse.papyrus.diagram.common.figure.node.ILabelFigure;
+import org.eclipse.papyrus.diagram.common.util.DiagramEditPartsUtil;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLTextSelectionEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.diagram.composite.providers.UMLParserProvider;
+import org.eclipse.papyrus.extensionpoints.editors.Activator;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
+import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
+import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
+import org.eclipse.papyrus.umlutils.ui.VisualInformationPapyrusConstant;
+import org.eclipse.papyrus.umlutils.ui.helper.NameLabelIconHelper;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.AccessibleEvent;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.FontData;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.ui.PlatformUI;
+
+/**
+ * @generated
+ */
+public class UseCaseNameEditPart extends CompartmentEditPart implements ITextAwareEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 5165;
+
+ /**
+ * @generated
+ */
+ private DirectEditManager manager;
+
+ /**
+ * @generated
+ */
+ private IParser parser;
+
+ /**
+ * @generated
+ */
+ private List<?> parserElements;
+
+ /**
+ * @generated
+ */
+ private String defaultText;
+
+ /**
+ * direct edition mode (default, undefined, registered editor, etc.)
+ *
+ * @generated
+ */
+ protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
+
+ /**
+ * configuration from a registered edit dialog
+ *
+ * @generated
+ */
+ protected IDirectEditorConfiguration configuration;
+
+ /**
+ * @generated
+ */
+ public UseCaseNameEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
+ installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new CompositeStructureDiagramEditPart.NodeLabelDragPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelTextHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getText();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getText();
+ } else {
+ return ((Label)figure).getText();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelTextHelper(IFigure figure, String text) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setText(text);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setText(text);
+ } else {
+ ((Label)figure).setText(text);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIconHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getIcon();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getIcon();
+ } else {
+ return ((Label)figure).getIcon();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelIconHelper(IFigure figure, Image icon) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setIcon(icon);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setIcon(icon);
+ } else {
+ ((Label)figure).setIcon(icon);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabel(WrappingLabel figure) {
+ unregisterVisuals();
+ setFigure(figure);
+ defaultText = getLabelTextHelper(figure);
+ registerVisuals();
+ refreshVisuals();
+ }
+
+ /**
+ * @generated
+ */
+ protected List getModelChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject getParserElement() {
+ return resolveSemanticElement();
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIcon() {
+ EObject parserElement = getParserElement();
+ if(parserElement == null) {
+ return null;
+ }
+
+ List<View> views = DiagramEditPartsUtil.findViews(parserElement, getViewer());
+ for(View view : views) {
+ if(NameLabelIconHelper.showLabelIcon(view)) {
+ return UMLElementTypes.getImage(parserElement.eClass());
+ }
+ }
+ return null;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelText() {
+ String text = null;
+ EObject parserElement = getParserElement();
+ if(parserElement != null && getParser() != null) {
+ text = getParser().getPrintString(new EObjectAdapter(parserElement), getParserOptions().intValue());
+ }
+ if(text == null || text.length() == 0) {
+ text = defaultText;
+ }
+ return text;
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabelText(String text) {
+ setLabelTextHelper(getFigure(), text);
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public String getEditText() {
+ if(getParserElement() == null || getParser() == null) {
+ return ""; //$NON-NLS-1$
+ }
+ return getParser().getEditString(new EObjectAdapter(getParserElement()), getParserOptions().intValue());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean isEditable() {
+ return getParser() != null;
+ }
+
+ /**
+ * @generated
+ */
+ public ICellEditorValidator getEditTextValidator() {
+ return new ICellEditorValidator() {
+
+ public String isValid(final Object value) {
+ if(value instanceof String) {
+ final EObject element = getParserElement();
+ final IParser parser = getParser();
+ try {
+ IParserEditStatus valid = (IParserEditStatus)getEditingDomain().runExclusive(new RunnableWithResult.Impl() {
+
+ public void run() {
+ setResult(parser.isValidEditString(new EObjectAdapter(element), (String)value));
+ }
+ });
+ return valid.getCode() == ParserEditStatus.EDITABLE ? null : valid.getMessage();
+ } catch (InterruptedException ie) {
+ ie.printStackTrace();
+ }
+ }
+
+ // shouldn't get here
+ return null;
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ public IContentAssistProcessor getCompletionProcessor() {
+ if(getParserElement() == null || getParser() == null) {
+ return null;
+ }
+ return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
+ }
+
+ /**
+ * @generated
+ */
+ public ParserOptions getParserOptions() {
+ return ParserOptions.NONE;
+ }
+
+ /**
+ * @generated
+ */
+ public IParser getParser() {
+ if(parser == null) {
+ parser = UMLParserProvider.getParser(UMLElementTypes.UseCase_2082, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.diagram.composite.edit.parts.UseCaseNameEditPart.VISUAL_ID));
+ }
+ return parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected DirectEditManager getManager() {
+ if(manager == null) {
+ setManager(new MultilineLabelDirectEditManager(this, MultilineLabelDirectEditManager.getTextCellEditorClass(this), UMLEditPartFactory.getTextCellEditorLocator(this)));
+ }
+ return manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setManager(DirectEditManager manager) {
+ this.manager = manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit() {
+ getManager().show();
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit(Point eventLocation) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(eventLocation.getSWTPoint());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void performDirectEdit(char initialCharacter) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(initialCharacter);
+ } else {
+ performDirectEdit();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEditRequest(Request request) {
+
+ final Request theRequest = request;
+
+ if(IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
+ directEditionMode = getDirectEditionType();
+ }
+ switch(directEditionMode) {
+ case IDirectEdition.NO_DIRECT_EDITION:
+ // no direct edition mode => does nothing
+ return;
+ case IDirectEdition.EXTENDED_DIRECT_EDITOR:
+ updateExtendedEditorConfiguration();
+ if(configuration == null || configuration.getLanguage() == null) {
+ performDefaultDirectEditorEdit(theRequest);
+ } else {
+ configuration.preEditAction(resolveSemanticElement());
+ Dialog dialog = null;
+ if(configuration instanceof IPopupEditorConfiguration) {
+ IPopupEditorHelper helper = ((IPopupEditorConfiguration)configuration).createPopupEditorHelper(this);
+ helper.showEditor();
+ return;
+ } else if(configuration instanceof IAdvancedEditorConfiguration) {
+ dialog = ((IAdvancedEditorConfiguration)configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
+ } else if(configuration instanceof IDirectEditorConfiguration) {
+ dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), ((IDirectEditorConfiguration)configuration).getTextToEdit(resolveSemanticElement()), (IDirectEditorConfiguration)configuration);
+ } else {
+ return;
+ }
+ final Dialog finalDialog = dialog;
+
+ if(Window.OK == dialog.open()) {
+ TransactionalEditingDomain domain = getEditingDomain();
+ RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
+
+ @Override
+ protected void doExecute() {
+ configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog)finalDialog).getValue());
+
+ }
+ };
+ domain.getCommandStack().execute(command);
+ }
+ }
+ break;
+ case IDirectEdition.DEFAULT_DIRECT_EDITOR:
+
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ break;
+ default:
+ break;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshLabel();
+ refreshFont();
+ refreshFontColor();
+ refreshUnderline();
+ refreshStrikeThrough();
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshLabel() {
+ EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
+ if(maskLabelPolicy == null) {
+ setLabelTextHelper(getFigure(), getLabelText());
+ setLabelIconHelper(getFigure(), getLabelIcon());
+ }
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshUnderline() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextUnderline(style.isUnderline());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshStrikeThrough() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextStrikeThrough(style.isStrikeThrough());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshFont() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null) {
+ FontData fontData = new FontData(style.getFontName(), style.getFontHeight(), (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
+ setFont(fontData);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setFontColor(Color color) {
+ getFigure().setForegroundColor(color);
+ }
+
+ /**
+ * @generated
+ */
+ protected void addSemanticListeners() {
+ if(getParser() instanceof ISemanticParser) {
+ EObject element = resolveSemanticElement();
+ parserElements = ((ISemanticParser)getParser()).getSemanticElementsBeingParsed(element);
+ for(int i = 0; i < parserElements.size(); i++) {
+ addListenerFilter("SemanticModel" + i, this, (EObject)parserElements.get(i)); //$NON-NLS-1$
+ }
+ } else {
+ super.addSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeSemanticListeners() {
+ if(parserElements != null) {
+ for(int i = 0; i < parserElements.size(); i++) {
+ removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
+ }
+ } else {
+ super.removeSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected AccessibleEditPart getAccessibleEditPart() {
+ if(accessibleEP == null) {
+ accessibleEP = new AccessibleGraphicalEditPart() {
+
+ public void getName(AccessibleEvent e) {
+ e.result = getLabelTextHelper(getFigure());
+ }
+ };
+ }
+ return accessibleEP;
+ }
+
+ /**
+ * @generated
+ */
+ private View getFontStyleOwnerView() {
+ return (View)getModel();
+ }
+
+ /**
+ * Returns the kind of associated editor for direct edition.
+ *
+ * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition
+ * @generated
+ */
+ public int getDirectEditionType() {
+ if(checkExtendedEditor()) {
+ initExtendedEditorConfiguration();
+ return IDirectEdition.EXTENDED_DIRECT_EDITOR;
+ }
+ if(checkDefaultEdition()) {
+ return IDirectEdition.DEFAULT_DIRECT_EDITOR;
+ }
+
+ // not a named element. no specific editor => do nothing
+ return IDirectEdition.NO_DIRECT_EDITION;
+ }
+
+ /**
+ * Checks if an extended editor is present.
+ *
+ * @return <code>true</code> if an extended editor is present.
+ * @generated
+ */
+ protected boolean checkExtendedEditor() {
+ if(resolveSemanticElement() != null) {
+ return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ return false;
+ }
+
+ /**
+ * Checks if a default direct edition is available
+ *
+ * @return <code>true</code> if a default direct edition is available
+ * @generated
+ */
+ protected boolean checkDefaultEdition() {
+ return (getParser() != null);
+ }
+
+ /**
+ * Initializes the extended editor configuration
+ *
+ * @generated
+ */
+ protected void initExtendedEditorConfiguration() {
+ if(configuration == null) {
+ final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("")) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else {
+ configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ }
+ }
+
+ /**
+ * Updates the preference configuration
+ *
+ * @generated
+ */
+ protected void updateExtendedEditorConfiguration() {
+ String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("") && languagePreferred != configuration.getLanguage()) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else if(IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
+ configuration = null;
+ }
+ }
+
+ /**
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
+ protected void performDefaultDirectEditorEdit(final Request theRequest) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void addNotationalListeners() {
+ super.addNotationalListeners();
+ addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeNotationalListeners() {
+ super.removeNotationalListeners();
+ removeListenerFilter("PrimaryView"); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void handleNotificationEvent(Notification event) {
+ refreshLabel();
+ Object feature = event.getFeature();
+ if(NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
+ Integer c = (Integer)event.getNewValue();
+ setFontColor(DiagramColorRegistry.getInstance().getColor(c));
+ } else if(NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
+ refreshUnderline();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
+ refreshStrikeThrough();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
+ refreshFont();
+ } else {
+ if(getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
+ refreshLabel();
+ }
+ if(getParser() instanceof ISemanticParser) {
+ ISemanticParser modelParser = (ISemanticParser)getParser();
+ if(modelParser.areSemanticElementsAffected(null, event)) {
+ removeSemanticListeners();
+ if(resolveSemanticElement() != null) {
+ addSemanticListeners();
+ }
+ refreshLabel();
+ }
+ }
+ }
+
+ if(event.getNewValue() instanceof EAnnotation && VisualInformationPapyrusConstant.DISPLAY_NAMELABELICON.equals(((EAnnotation)event.getNewValue()).getSource())) {
+ refreshLabel();
+ }
+
+ super.handleNotificationEvent(event);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createFigure() {
+ // Parent should assign one using setLabel() method
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ private static final String ADD_PARENT_MODEL = "AddParentModel";
+
+ /**
+ * @generated
+ */
+ public void activate() {
+ super.activate();
+ addOwnerElementListeners();
+ }
+
+ /**
+ * @generated
+ */
+ protected void addOwnerElementListeners() {
+ addListenerFilter(ADD_PARENT_MODEL, this, ((View)getParent().getModel())); //$NON-NLS-1$
+
+ }
+
+ /**
+ * @generated
+ */
+ public void deactivate() {
+ removeOwnerElementListeners();
+ super.deactivate();
+
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeOwnerElementListeners() {
+ removeListenerFilter(ADD_PARENT_MODEL);
+
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/UseCaseNameEditPartCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/UseCaseNameEditPartCN.java
new file mode 100644
index 00000000000..a2c26d6627d
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/parts/UseCaseNameEditPartCN.java
@@ -0,0 +1,791 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EAnnotation;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.emf.transaction.RunnableWithResult;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.AccessibleEditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.requests.DirectEditRequest;
+import org.eclipse.gef.tools.DirectEditManager;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.CompartmentEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
+import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
+import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
+import org.eclipse.gmf.runtime.notation.FontStyle;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
+import org.eclipse.jface.viewers.ICellEditorValidator;
+import org.eclipse.jface.window.Window;
+import org.eclipse.papyrus.diagram.common.directedit.MultilineLabelDirectEditManager;
+import org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition;
+import org.eclipse.papyrus.diagram.common.editpolicies.IMaskManagedLabelEditPolicy;
+import org.eclipse.papyrus.diagram.common.figure.node.ILabelFigure;
+import org.eclipse.papyrus.diagram.common.util.DiagramEditPartsUtil;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLTextSelectionEditPolicy;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.diagram.composite.providers.UMLParserProvider;
+import org.eclipse.papyrus.extensionpoints.editors.Activator;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
+import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
+import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
+import org.eclipse.papyrus.umlutils.ui.VisualInformationPapyrusConstant;
+import org.eclipse.papyrus.umlutils.ui.helper.NameLabelIconHelper;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.AccessibleEvent;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.FontData;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.ui.PlatformUI;
+
+/**
+ * @generated
+ */
+public class UseCaseNameEditPartCN extends CompartmentEditPart implements ITextAwareEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 5149;
+
+ /**
+ * @generated
+ */
+ private DirectEditManager manager;
+
+ /**
+ * @generated
+ */
+ private IParser parser;
+
+ /**
+ * @generated
+ */
+ private List<?> parserElements;
+
+ /**
+ * @generated
+ */
+ private String defaultText;
+
+ /**
+ * direct edition mode (default, undefined, registered editor, etc.)
+ *
+ * @generated
+ */
+ protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
+
+ /**
+ * configuration from a registered edit dialog
+ *
+ * @generated
+ */
+ protected IDirectEditorConfiguration configuration;
+
+ /**
+ * @generated
+ */
+ public UseCaseNameEditPartCN(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
+ installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new CompositeStructureDiagramEditPart.NodeLabelDragPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelTextHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getText();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getText();
+ } else {
+ return ((Label)figure).getText();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelTextHelper(IFigure figure, String text) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setText(text);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setText(text);
+ } else {
+ ((Label)figure).setText(text);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIconHelper(IFigure figure) {
+ if(figure instanceof WrappingLabel) {
+ return ((WrappingLabel)figure).getIcon();
+ } else if(figure instanceof ILabelFigure) {
+ return ((ILabelFigure)figure).getIcon();
+ } else {
+ return ((Label)figure).getIcon();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelIconHelper(IFigure figure, Image icon) {
+ if(figure instanceof WrappingLabel) {
+ ((WrappingLabel)figure).setIcon(icon);
+ } else if(figure instanceof ILabelFigure) {
+ ((ILabelFigure)figure).setIcon(icon);
+ } else {
+ ((Label)figure).setIcon(icon);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabel(WrappingLabel figure) {
+ unregisterVisuals();
+ setFigure(figure);
+ defaultText = getLabelTextHelper(figure);
+ registerVisuals();
+ refreshVisuals();
+ }
+
+ /**
+ * @generated
+ */
+ protected List getModelChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject getParserElement() {
+ return resolveSemanticElement();
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIcon() {
+ EObject parserElement = getParserElement();
+ if(parserElement == null) {
+ return null;
+ }
+
+ List<View> views = DiagramEditPartsUtil.findViews(parserElement, getViewer());
+ for(View view : views) {
+ if(NameLabelIconHelper.showLabelIcon(view)) {
+ return UMLElementTypes.getImage(parserElement.eClass());
+ }
+ }
+ return null;
+
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelText() {
+ String text = null;
+ EObject parserElement = getParserElement();
+ if(parserElement != null && getParser() != null) {
+ text = getParser().getPrintString(new EObjectAdapter(parserElement), getParserOptions().intValue());
+ }
+ if(text == null || text.length() == 0) {
+ text = defaultText;
+ }
+ return text;
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabelText(String text) {
+ setLabelTextHelper(getFigure(), text);
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public String getEditText() {
+ if(getParserElement() == null || getParser() == null) {
+ return ""; //$NON-NLS-1$
+ }
+ return getParser().getEditString(new EObjectAdapter(getParserElement()), getParserOptions().intValue());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean isEditable() {
+ return getParser() != null;
+ }
+
+ /**
+ * @generated
+ */
+ public ICellEditorValidator getEditTextValidator() {
+ return new ICellEditorValidator() {
+
+ public String isValid(final Object value) {
+ if(value instanceof String) {
+ final EObject element = getParserElement();
+ final IParser parser = getParser();
+ try {
+ IParserEditStatus valid = (IParserEditStatus)getEditingDomain().runExclusive(new RunnableWithResult.Impl() {
+
+ public void run() {
+ setResult(parser.isValidEditString(new EObjectAdapter(element), (String)value));
+ }
+ });
+ return valid.getCode() == ParserEditStatus.EDITABLE ? null : valid.getMessage();
+ } catch (InterruptedException ie) {
+ ie.printStackTrace();
+ }
+ }
+
+ // shouldn't get here
+ return null;
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ public IContentAssistProcessor getCompletionProcessor() {
+ if(getParserElement() == null || getParser() == null) {
+ return null;
+ }
+ return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
+ }
+
+ /**
+ * @generated
+ */
+ public ParserOptions getParserOptions() {
+ return ParserOptions.NONE;
+ }
+
+ /**
+ * @generated
+ */
+ public IParser getParser() {
+ if(parser == null) {
+ parser = UMLParserProvider.getParser(UMLElementTypes.UseCase_3096, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.diagram.composite.edit.parts.UseCaseNameEditPartCN.VISUAL_ID));
+ }
+ return parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected DirectEditManager getManager() {
+ if(manager == null) {
+ setManager(new MultilineLabelDirectEditManager(this, MultilineLabelDirectEditManager.getTextCellEditorClass(this), UMLEditPartFactory.getTextCellEditorLocator(this)));
+ }
+ return manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setManager(DirectEditManager manager) {
+ this.manager = manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit() {
+ getManager().show();
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit(Point eventLocation) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(eventLocation.getSWTPoint());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void performDirectEdit(char initialCharacter) {
+ if(getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager)getManager()).show(initialCharacter);
+ } else {
+ performDirectEdit();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEditRequest(Request request) {
+
+ final Request theRequest = request;
+
+ if(IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
+ directEditionMode = getDirectEditionType();
+ }
+ switch(directEditionMode) {
+ case IDirectEdition.NO_DIRECT_EDITION:
+ // no direct edition mode => does nothing
+ return;
+ case IDirectEdition.EXTENDED_DIRECT_EDITOR:
+ updateExtendedEditorConfiguration();
+ if(configuration == null || configuration.getLanguage() == null) {
+ performDefaultDirectEditorEdit(theRequest);
+ } else {
+ configuration.preEditAction(resolveSemanticElement());
+ Dialog dialog = null;
+ if(configuration instanceof IPopupEditorConfiguration) {
+ IPopupEditorHelper helper = ((IPopupEditorConfiguration)configuration).createPopupEditorHelper(this);
+ helper.showEditor();
+ return;
+ } else if(configuration instanceof IAdvancedEditorConfiguration) {
+ dialog = ((IAdvancedEditorConfiguration)configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
+ } else if(configuration instanceof IDirectEditorConfiguration) {
+ dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), ((IDirectEditorConfiguration)configuration).getTextToEdit(resolveSemanticElement()), (IDirectEditorConfiguration)configuration);
+ } else {
+ return;
+ }
+ final Dialog finalDialog = dialog;
+
+ if(Window.OK == dialog.open()) {
+ TransactionalEditingDomain domain = getEditingDomain();
+ RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
+
+ @Override
+ protected void doExecute() {
+ configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog)finalDialog).getValue());
+
+ }
+ };
+ domain.getCommandStack().execute(command);
+ }
+ }
+ break;
+ case IDirectEdition.DEFAULT_DIRECT_EDITOR:
+
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ break;
+ default:
+ break;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshLabel();
+ refreshFont();
+ refreshFontColor();
+ refreshUnderline();
+ refreshStrikeThrough();
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshLabel() {
+ EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
+ if(maskLabelPolicy == null) {
+ setLabelTextHelper(getFigure(), getLabelText());
+ setLabelIconHelper(getFigure(), getLabelIcon());
+ }
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if(pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if(sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy)sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshUnderline() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextUnderline(style.isUnderline());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshStrikeThrough() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getFigure()).setTextStrikeThrough(style.isStrikeThrough());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshFont() {
+ FontStyle style = (FontStyle)getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
+ if(style != null) {
+ FontData fontData = new FontData(style.getFontName(), style.getFontHeight(), (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
+ setFont(fontData);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setFontColor(Color color) {
+ getFigure().setForegroundColor(color);
+ }
+
+ /**
+ * @generated
+ */
+ protected void addSemanticListeners() {
+ if(getParser() instanceof ISemanticParser) {
+ EObject element = resolveSemanticElement();
+ parserElements = ((ISemanticParser)getParser()).getSemanticElementsBeingParsed(element);
+ for(int i = 0; i < parserElements.size(); i++) {
+ addListenerFilter("SemanticModel" + i, this, (EObject)parserElements.get(i)); //$NON-NLS-1$
+ }
+ } else {
+ super.addSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeSemanticListeners() {
+ if(parserElements != null) {
+ for(int i = 0; i < parserElements.size(); i++) {
+ removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
+ }
+ } else {
+ super.removeSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected AccessibleEditPart getAccessibleEditPart() {
+ if(accessibleEP == null) {
+ accessibleEP = new AccessibleGraphicalEditPart() {
+
+ public void getName(AccessibleEvent e) {
+ e.result = getLabelTextHelper(getFigure());
+ }
+ };
+ }
+ return accessibleEP;
+ }
+
+ /**
+ * @generated
+ */
+ private View getFontStyleOwnerView() {
+ return (View)getModel();
+ }
+
+ /**
+ * Returns the kind of associated editor for direct edition.
+ *
+ * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.diagram.common.editpolicies.IDirectEdition
+ * @generated
+ */
+ public int getDirectEditionType() {
+ if(checkExtendedEditor()) {
+ initExtendedEditorConfiguration();
+ return IDirectEdition.EXTENDED_DIRECT_EDITOR;
+ }
+ if(checkDefaultEdition()) {
+ return IDirectEdition.DEFAULT_DIRECT_EDITOR;
+ }
+
+ // not a named element. no specific editor => do nothing
+ return IDirectEdition.NO_DIRECT_EDITION;
+ }
+
+ /**
+ * Checks if an extended editor is present.
+ *
+ * @return <code>true</code> if an extended editor is present.
+ * @generated
+ */
+ protected boolean checkExtendedEditor() {
+ if(resolveSemanticElement() != null) {
+ return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ return false;
+ }
+
+ /**
+ * Checks if a default direct edition is available
+ *
+ * @return <code>true</code> if a default direct edition is available
+ * @generated
+ */
+ protected boolean checkDefaultEdition() {
+ return (getParser() != null);
+ }
+
+ /**
+ * Initializes the extended editor configuration
+ *
+ * @generated
+ */
+ protected void initExtendedEditorConfiguration() {
+ if(configuration == null) {
+ final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("")) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else {
+ configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ }
+ }
+
+ /**
+ * Updates the preference configuration
+ *
+ * @generated
+ */
+ protected void updateExtendedEditorConfiguration() {
+ String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if(languagePreferred != null && !languagePreferred.equals("") && languagePreferred != configuration.getLanguage()) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else if(IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
+ configuration = null;
+ }
+ }
+
+ /**
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
+ protected void performDefaultDirectEditorEdit(final Request theRequest) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ public void run() {
+ if(isActive() && isEditable()) {
+ if(theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character)theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest)theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void addNotationalListeners() {
+ super.addNotationalListeners();
+ addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeNotationalListeners() {
+ super.removeNotationalListeners();
+ removeListenerFilter("PrimaryView"); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ protected void handleNotificationEvent(Notification event) {
+ refreshLabel();
+ Object feature = event.getFeature();
+ if(NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
+ Integer c = (Integer)event.getNewValue();
+ setFontColor(DiagramColorRegistry.getInstance().getColor(c));
+ } else if(NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
+ refreshUnderline();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
+ refreshStrikeThrough();
+ } else if(NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
+ refreshFont();
+ } else {
+ if(getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
+ refreshLabel();
+ }
+ if(getParser() instanceof ISemanticParser) {
+ ISemanticParser modelParser = (ISemanticParser)getParser();
+ if(modelParser.areSemanticElementsAffected(null, event)) {
+ removeSemanticListeners();
+ if(resolveSemanticElement() != null) {
+ addSemanticListeners();
+ }
+ refreshLabel();
+ }
+ }
+ }
+
+ if(event.getNewValue() instanceof EAnnotation && VisualInformationPapyrusConstant.DISPLAY_NAMELABELICON.equals(((EAnnotation)event.getNewValue()).getSource())) {
+ refreshLabel();
+ }
+
+ super.handleNotificationEvent(event);
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createFigure() {
+ // Parent should assign one using setLabel() method
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ private static final String ADD_PARENT_MODEL = "AddParentModel";
+
+ /**
+ * @generated
+ */
+ public void activate() {
+ super.activate();
+ addOwnerElementListeners();
+ }
+
+ /**
+ * @generated
+ */
+ protected void addOwnerElementListeners() {
+ addListenerFilter(ADD_PARENT_MODEL, this, ((View)getParent().getModel())); //$NON-NLS-1$
+
+ }
+
+ /**
+ * @generated
+ */
+ public void deactivate() {
+ removeOwnerElementListeners();
+ super.deactivate();
+
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeOwnerElementListeners() {
+ removeListenerFilter(ADD_PARENT_MODEL);
+
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/AbstractionItemSemanticEditPolicy.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/AbstractionItemSemanticEditPolicy.java
new file mode 100644
index 00000000000..1ec257d1adb
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/AbstractionItemSemanticEditPolicy.java
@@ -0,0 +1,259 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.policies;
+
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.commands.UnexecutableCommand;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.diagram.ui.commands.ICommandProxy;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientReferenceRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientRelationshipRequest;
+import org.eclipse.papyrus.diagram.composite.edit.commands.AbstractionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ComponentRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DependencyCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DeploymentCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InformationFlowCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InterfaceRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ManifestationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.SubstitutionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.UsageCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.parts.AbstractionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CommentAnnotatedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ComponentRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ConstraintConstrainedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DependencyEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DeploymentEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DurationObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InformationFlowEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InterfaceRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ManifestationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RoleBindingEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.SubstitutionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.TimeObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.UsageEditPart;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.service.edit.service.ElementEditServiceUtils;
+import org.eclipse.papyrus.service.edit.service.IElementEditService;
+
+/**
+ * @generated
+ */
+public class AbstractionItemSemanticEditPolicy extends UMLBaseItemSemanticEditPolicy {
+
+ /**
+ * @generated
+ */
+ public AbstractionItemSemanticEditPolicy() {
+ super(UMLElementTypes.Abstraction_4007);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getDestroyElementCommand(DestroyElementRequest req) {
+ EObject selectedEObject = req.getElementToDestroy();
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(selectedEObject);
+ if(provider != null) {
+ // Retrieve delete command from the Element Edit service
+ ICommand deleteCommand = provider.getEditCommand(req);
+
+ if(deleteCommand != null) {
+ return new ICommandProxy(deleteCommand);
+ }
+ }
+ return UnexecutableCommand.INSTANCE;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCreateRelationshipCommand(CreateRelationshipRequest req) {
+ Command command = req.getTarget() == null ? getStartCreateRelationshipCommand(req) : getCompleteCreateRelationshipCommand(req);
+ return command != null ? command : super.getCreateRelationshipCommand(req);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getStartCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCompleteCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return getGEFWrapper(new CommentAnnotatedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return getGEFWrapper(new ConstraintConstrainedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return getGEFWrapper(new TimeObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return getGEFWrapper(new DurationObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * Returns command to reorient EClass based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientRelationshipCommand(ReorientRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case ComponentRealizationEditPart.VISUAL_ID:
+ case InterfaceRealizationEditPart.VISUAL_ID:
+ case SubstitutionEditPart.VISUAL_ID:
+ case RealizationEditPart.VISUAL_ID:
+ case ManifestationEditPart.VISUAL_ID:
+ case AbstractionEditPart.VISUAL_ID:
+ case UsageEditPart.VISUAL_ID:
+ case DeploymentEditPart.VISUAL_ID:
+ case DependencyEditPart.VISUAL_ID:
+ case InformationFlowEditPart.VISUAL_ID:
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(req.getRelationship());
+ if(provider == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ // Retrieve re-orient command from the Element Edit service
+ ICommand reorientCommand = provider.getEditCommand(req);
+ if(reorientCommand == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ return getGEFWrapper(reorientCommand.reduce());
+ case RoleBindingEditPart.VISUAL_ID:
+ return getGEFWrapper(new RoleBindingReorientCommand(req));
+ }
+ return super.getReorientRelationshipCommand(req);
+ }
+
+ /**
+ * Returns command to reorient EReference based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientReferenceRelationshipCommand(ReorientReferenceRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case CommentAnnotatedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new CommentAnnotatedElementReorientCommand(req));
+ case ConstraintConstrainedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new ConstraintConstrainedElementReorientCommand(req));
+ case TimeObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new TimeObservationEventReorientCommand(req));
+ case DurationObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new DurationObservationEventReorientCommand(req));
+ }
+ return super.getReorientReferenceRelationshipCommand(req);
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/ActivityCompositeCompartmentItemSemanticEditPolicy.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/ActivityCompositeCompartmentItemSemanticEditPolicy.java
new file mode 100644
index 00000000000..6f757e55b54
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/ActivityCompositeCompartmentItemSemanticEditPolicy.java
@@ -0,0 +1,167 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.policies;
+
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ActivityCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ActorCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ArtifactCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ClassCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CollaborationCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CollaborationUseCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ComponentCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DataTypeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DeploymentSpecificationCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DeviceCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationConstraintCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.EnumerationCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ExecutionEnvironmentCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.FunctionBehaviorCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InformationItemCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InteractionCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InteractionConstraintCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InterfaceCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.IntervalConstraintCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.NodeCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.OpaqueBehaviorCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ParameterCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.PortCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.PrimitiveTypeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.PropertyPartCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ProtocolStateMachineCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.SignalCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.StateMachineCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeConstraintCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.UseCaseCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+
+/**
+ * @generated
+ */
+public class ActivityCompositeCompartmentItemSemanticEditPolicy extends UMLBaseItemSemanticEditPolicy {
+
+ /**
+ * @generated
+ */
+ public ActivityCompositeCompartmentItemSemanticEditPolicy() {
+ super(UMLElementTypes.Activity_2060);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCreateCommand(CreateElementRequest req) {
+ if(UMLElementTypes.Port_3069 == req.getElementType()) {
+ return getGEFWrapper(new PortCreateCommand(req));
+ }
+ if(UMLElementTypes.Parameter_3088 == req.getElementType()) {
+ return getGEFWrapper(new ParameterCreateCommand(req));
+ }
+ if(UMLElementTypes.Property_3070 == req.getElementType()) {
+ return getGEFWrapper(new PropertyPartCreateCommandCN(req));
+ }
+ if(UMLElementTypes.CollaborationUse_3071 == req.getElementType()) {
+ return getGEFWrapper(new CollaborationUseCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Activity_3072 == req.getElementType()) {
+ return getGEFWrapper(new ActivityCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Interaction_3073 == req.getElementType()) {
+ return getGEFWrapper(new InteractionCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.ProtocolStateMachine_3074 == req.getElementType()) {
+ return getGEFWrapper(new ProtocolStateMachineCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.StateMachine_3075 == req.getElementType()) {
+ return getGEFWrapper(new StateMachineCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.FunctionBehavior_3076 == req.getElementType()) {
+ return getGEFWrapper(new FunctionBehaviorCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.OpaqueBehavior_3077 == req.getElementType()) {
+ return getGEFWrapper(new OpaqueBehaviorCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Component_3081 == req.getElementType()) {
+ return getGEFWrapper(new ComponentCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Device_3082 == req.getElementType()) {
+ return getGEFWrapper(new DeviceCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.ExecutionEnvironment_3083 == req.getElementType()) {
+ return getGEFWrapper(new ExecutionEnvironmentCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Node_3084 == req.getElementType()) {
+ return getGEFWrapper(new NodeCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Class_3085 == req.getElementType()) {
+ return getGEFWrapper(new ClassCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Collaboration_3086 == req.getElementType()) {
+ return getGEFWrapper(new CollaborationCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Interface_3087 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceCreateCommandCN(req));
+ }
+ if(UMLElementTypes.PrimitiveType_3078 == req.getElementType()) {
+ return getGEFWrapper(new PrimitiveTypeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Enumeration_3079 == req.getElementType()) {
+ return getGEFWrapper(new EnumerationCreateCommandCN(req));
+ }
+ if(UMLElementTypes.DataType_3080 == req.getElementType()) {
+ return getGEFWrapper(new DataTypeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Actor_3091 == req.getElementType()) {
+ return getGEFWrapper(new ActorCreateCommandCN(req));
+ }
+ if(UMLElementTypes.DeploymentSpecification_3092 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentSpecificationCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Artifact_3093 == req.getElementType()) {
+ return getGEFWrapper(new ArtifactCreateCommandCN(req));
+ }
+ if(UMLElementTypes.InformationItem_3094 == req.getElementType()) {
+ return getGEFWrapper(new InformationItemCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Signal_3095 == req.getElementType()) {
+ return getGEFWrapper(new SignalCreateCommandCN(req));
+ }
+ if(UMLElementTypes.UseCase_3096 == req.getElementType()) {
+ return getGEFWrapper(new UseCaseCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Comment_3097 == req.getElementType()) {
+ return getGEFWrapper(new CommentCreateCommandCN(req));
+ }
+ if(UMLElementTypes.DurationConstraint_3116 == req.getElementType()) {
+ return getGEFWrapper(new DurationConstraintCreateCommandCN(req));
+ }
+ if(UMLElementTypes.TimeConstraint_3117 == req.getElementType()) {
+ return getGEFWrapper(new TimeConstraintCreateCommandCN(req));
+ }
+ if(UMLElementTypes.IntervalConstraint_3118 == req.getElementType()) {
+ return getGEFWrapper(new IntervalConstraintCreateCommandCN(req));
+ }
+ if(UMLElementTypes.InteractionConstraint_3119 == req.getElementType()) {
+ return getGEFWrapper(new InteractionConstraintCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Constraint_3120 == req.getElementType()) {
+ return getGEFWrapper(new ConstraintCreateCommandCN(req));
+ }
+ return super.getCreateCommand(req);
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/ActivityCompositeCompartmentItemSemanticEditPolicyCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/ActivityCompositeCompartmentItemSemanticEditPolicyCN.java
new file mode 100644
index 00000000000..31a49518125
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/ActivityCompositeCompartmentItemSemanticEditPolicyCN.java
@@ -0,0 +1,167 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.policies;
+
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ActivityCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ActorCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ArtifactCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ClassCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CollaborationCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CollaborationUseCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ComponentCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DataTypeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DeploymentSpecificationCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DeviceCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationConstraintCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.EnumerationCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ExecutionEnvironmentCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.FunctionBehaviorCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InformationItemCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InteractionCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InteractionConstraintCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InterfaceCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.IntervalConstraintCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.NodeCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.OpaqueBehaviorCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ParameterCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.PortCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.PrimitiveTypeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.PropertyPartCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ProtocolStateMachineCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.SignalCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.StateMachineCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeConstraintCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.UseCaseCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+
+/**
+ * @generated
+ */
+public class ActivityCompositeCompartmentItemSemanticEditPolicyCN extends UMLBaseItemSemanticEditPolicy {
+
+ /**
+ * @generated
+ */
+ public ActivityCompositeCompartmentItemSemanticEditPolicyCN() {
+ super(UMLElementTypes.Activity_3072);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCreateCommand(CreateElementRequest req) {
+ if(UMLElementTypes.Port_3069 == req.getElementType()) {
+ return getGEFWrapper(new PortCreateCommand(req));
+ }
+ if(UMLElementTypes.Parameter_3088 == req.getElementType()) {
+ return getGEFWrapper(new ParameterCreateCommand(req));
+ }
+ if(UMLElementTypes.Property_3070 == req.getElementType()) {
+ return getGEFWrapper(new PropertyPartCreateCommandCN(req));
+ }
+ if(UMLElementTypes.CollaborationUse_3071 == req.getElementType()) {
+ return getGEFWrapper(new CollaborationUseCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Activity_3072 == req.getElementType()) {
+ return getGEFWrapper(new ActivityCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Interaction_3073 == req.getElementType()) {
+ return getGEFWrapper(new InteractionCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.ProtocolStateMachine_3074 == req.getElementType()) {
+ return getGEFWrapper(new ProtocolStateMachineCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.StateMachine_3075 == req.getElementType()) {
+ return getGEFWrapper(new StateMachineCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.FunctionBehavior_3076 == req.getElementType()) {
+ return getGEFWrapper(new FunctionBehaviorCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.OpaqueBehavior_3077 == req.getElementType()) {
+ return getGEFWrapper(new OpaqueBehaviorCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Component_3081 == req.getElementType()) {
+ return getGEFWrapper(new ComponentCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Device_3082 == req.getElementType()) {
+ return getGEFWrapper(new DeviceCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.ExecutionEnvironment_3083 == req.getElementType()) {
+ return getGEFWrapper(new ExecutionEnvironmentCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Node_3084 == req.getElementType()) {
+ return getGEFWrapper(new NodeCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Class_3085 == req.getElementType()) {
+ return getGEFWrapper(new ClassCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Collaboration_3086 == req.getElementType()) {
+ return getGEFWrapper(new CollaborationCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Interface_3087 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceCreateCommandCN(req));
+ }
+ if(UMLElementTypes.PrimitiveType_3078 == req.getElementType()) {
+ return getGEFWrapper(new PrimitiveTypeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Enumeration_3079 == req.getElementType()) {
+ return getGEFWrapper(new EnumerationCreateCommandCN(req));
+ }
+ if(UMLElementTypes.DataType_3080 == req.getElementType()) {
+ return getGEFWrapper(new DataTypeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Actor_3091 == req.getElementType()) {
+ return getGEFWrapper(new ActorCreateCommandCN(req));
+ }
+ if(UMLElementTypes.DeploymentSpecification_3092 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentSpecificationCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Artifact_3093 == req.getElementType()) {
+ return getGEFWrapper(new ArtifactCreateCommandCN(req));
+ }
+ if(UMLElementTypes.InformationItem_3094 == req.getElementType()) {
+ return getGEFWrapper(new InformationItemCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Signal_3095 == req.getElementType()) {
+ return getGEFWrapper(new SignalCreateCommandCN(req));
+ }
+ if(UMLElementTypes.UseCase_3096 == req.getElementType()) {
+ return getGEFWrapper(new UseCaseCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Comment_3097 == req.getElementType()) {
+ return getGEFWrapper(new CommentCreateCommandCN(req));
+ }
+ if(UMLElementTypes.DurationConstraint_3116 == req.getElementType()) {
+ return getGEFWrapper(new DurationConstraintCreateCommandCN(req));
+ }
+ if(UMLElementTypes.TimeConstraint_3117 == req.getElementType()) {
+ return getGEFWrapper(new TimeConstraintCreateCommandCN(req));
+ }
+ if(UMLElementTypes.IntervalConstraint_3118 == req.getElementType()) {
+ return getGEFWrapper(new IntervalConstraintCreateCommandCN(req));
+ }
+ if(UMLElementTypes.InteractionConstraint_3119 == req.getElementType()) {
+ return getGEFWrapper(new InteractionConstraintCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Constraint_3120 == req.getElementType()) {
+ return getGEFWrapper(new ConstraintCreateCommandCN(req));
+ }
+ return super.getCreateCommand(req);
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/ActivityCompositeItemSemanticEditPolicy.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/ActivityCompositeItemSemanticEditPolicy.java
new file mode 100644
index 00000000000..d206f471fef
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/ActivityCompositeItemSemanticEditPolicy.java
@@ -0,0 +1,295 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.policies;
+
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.commands.UnexecutableCommand;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.diagram.ui.commands.ICommandProxy;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientReferenceRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientRelationshipRequest;
+import org.eclipse.papyrus.diagram.composite.edit.commands.AbstractionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ComponentRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DependencyCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DeploymentCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.GeneralizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InformationFlowCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InterfaceRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ManifestationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ParameterCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.PortCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RepresentationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RepresentationReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.SubstitutionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.UsageCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.parts.AbstractionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CommentAnnotatedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ComponentRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ConstraintConstrainedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DependencyEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DeploymentEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DurationObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.GeneralizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InformationFlowEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InterfaceRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ManifestationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RepresentationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RoleBindingEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.SubstitutionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.TimeObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.UsageEditPart;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.service.edit.service.ElementEditServiceUtils;
+import org.eclipse.papyrus.service.edit.service.IElementEditService;
+
+/**
+ * @generated
+ */
+public class ActivityCompositeItemSemanticEditPolicy extends UMLBaseItemSemanticEditPolicy {
+
+ /**
+ * @generated
+ */
+ public ActivityCompositeItemSemanticEditPolicy() {
+ super(UMLElementTypes.Activity_2060);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCreateCommand(CreateElementRequest req) {
+ if(UMLElementTypes.Port_3069 == req.getElementType()) {
+ return getGEFWrapper(new PortCreateCommand(req));
+ }
+ if(UMLElementTypes.Parameter_3088 == req.getElementType()) {
+ return getGEFWrapper(new ParameterCreateCommand(req));
+ }
+ return super.getCreateCommand(req);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getDestroyElementCommand(DestroyElementRequest req) {
+ EObject selectedEObject = req.getElementToDestroy();
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(selectedEObject);
+ if(provider != null) {
+ // Retrieve delete command from the Element Edit service
+ ICommand deleteCommand = provider.getEditCommand(req);
+
+ if(deleteCommand != null) {
+ return new ICommandProxy(deleteCommand);
+ }
+ }
+ return UnexecutableCommand.INSTANCE;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCreateRelationshipCommand(CreateRelationshipRequest req) {
+ Command command = req.getTarget() == null ? getStartCreateRelationshipCommand(req) : getCompleteCreateRelationshipCommand(req);
+ return command != null ? command : super.getCreateRelationshipCommand(req);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getStartCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Generalization_4015 == req.getElementType()) {
+ return getGEFWrapper(new GeneralizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.InformationItemRepresented_4020 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCompleteCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return getGEFWrapper(new CommentAnnotatedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return getGEFWrapper(new ConstraintConstrainedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Generalization_4015 == req.getElementType()) {
+ return getGEFWrapper(new GeneralizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return getGEFWrapper(new TimeObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return getGEFWrapper(new DurationObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InformationItemRepresented_4020 == req.getElementType()) {
+ return getGEFWrapper(new RepresentationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * Returns command to reorient EClass based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientRelationshipCommand(ReorientRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case ComponentRealizationEditPart.VISUAL_ID:
+ case InterfaceRealizationEditPart.VISUAL_ID:
+ case SubstitutionEditPart.VISUAL_ID:
+ case RealizationEditPart.VISUAL_ID:
+ case ManifestationEditPart.VISUAL_ID:
+ case AbstractionEditPart.VISUAL_ID:
+ case UsageEditPart.VISUAL_ID:
+ case DeploymentEditPart.VISUAL_ID:
+ case DependencyEditPart.VISUAL_ID:
+ case GeneralizationEditPart.VISUAL_ID:
+ case InformationFlowEditPart.VISUAL_ID:
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(req.getRelationship());
+ if(provider == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ // Retrieve re-orient command from the Element Edit service
+ ICommand reorientCommand = provider.getEditCommand(req);
+ if(reorientCommand == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ return getGEFWrapper(reorientCommand.reduce());
+ case RoleBindingEditPart.VISUAL_ID:
+ return getGEFWrapper(new RoleBindingReorientCommand(req));
+ }
+ return super.getReorientRelationshipCommand(req);
+ }
+
+ /**
+ * Returns command to reorient EReference based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientReferenceRelationshipCommand(ReorientReferenceRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case CommentAnnotatedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new CommentAnnotatedElementReorientCommand(req));
+ case ConstraintConstrainedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new ConstraintConstrainedElementReorientCommand(req));
+ case TimeObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new TimeObservationEventReorientCommand(req));
+ case DurationObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new DurationObservationEventReorientCommand(req));
+ case RepresentationEditPart.VISUAL_ID:
+ return getGEFWrapper(new RepresentationReorientCommand(req));
+ }
+ return super.getReorientReferenceRelationshipCommand(req);
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/ActivityCompositeItemSemanticEditPolicyCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/ActivityCompositeItemSemanticEditPolicyCN.java
new file mode 100644
index 00000000000..669cccaf437
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/ActivityCompositeItemSemanticEditPolicyCN.java
@@ -0,0 +1,295 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.policies;
+
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.commands.UnexecutableCommand;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.diagram.ui.commands.ICommandProxy;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientReferenceRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientRelationshipRequest;
+import org.eclipse.papyrus.diagram.composite.edit.commands.AbstractionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ComponentRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DependencyCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DeploymentCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.GeneralizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InformationFlowCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InterfaceRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ManifestationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ParameterCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.PortCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RepresentationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RepresentationReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.SubstitutionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.UsageCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.parts.AbstractionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CommentAnnotatedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ComponentRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ConstraintConstrainedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DependencyEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DeploymentEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DurationObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.GeneralizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InformationFlowEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InterfaceRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ManifestationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RepresentationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RoleBindingEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.SubstitutionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.TimeObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.UsageEditPart;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.service.edit.service.ElementEditServiceUtils;
+import org.eclipse.papyrus.service.edit.service.IElementEditService;
+
+/**
+ * @generated
+ */
+public class ActivityCompositeItemSemanticEditPolicyCN extends UMLBaseItemSemanticEditPolicy {
+
+ /**
+ * @generated
+ */
+ public ActivityCompositeItemSemanticEditPolicyCN() {
+ super(UMLElementTypes.Activity_3072);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCreateCommand(CreateElementRequest req) {
+ if(UMLElementTypes.Port_3069 == req.getElementType()) {
+ return getGEFWrapper(new PortCreateCommand(req));
+ }
+ if(UMLElementTypes.Parameter_3088 == req.getElementType()) {
+ return getGEFWrapper(new ParameterCreateCommand(req));
+ }
+ return super.getCreateCommand(req);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getDestroyElementCommand(DestroyElementRequest req) {
+ EObject selectedEObject = req.getElementToDestroy();
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(selectedEObject);
+ if(provider != null) {
+ // Retrieve delete command from the Element Edit service
+ ICommand deleteCommand = provider.getEditCommand(req);
+
+ if(deleteCommand != null) {
+ return new ICommandProxy(deleteCommand);
+ }
+ }
+ return UnexecutableCommand.INSTANCE;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCreateRelationshipCommand(CreateRelationshipRequest req) {
+ Command command = req.getTarget() == null ? getStartCreateRelationshipCommand(req) : getCompleteCreateRelationshipCommand(req);
+ return command != null ? command : super.getCreateRelationshipCommand(req);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getStartCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Generalization_4015 == req.getElementType()) {
+ return getGEFWrapper(new GeneralizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.InformationItemRepresented_4020 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCompleteCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return getGEFWrapper(new CommentAnnotatedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return getGEFWrapper(new ConstraintConstrainedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Generalization_4015 == req.getElementType()) {
+ return getGEFWrapper(new GeneralizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return getGEFWrapper(new TimeObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return getGEFWrapper(new DurationObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InformationItemRepresented_4020 == req.getElementType()) {
+ return getGEFWrapper(new RepresentationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * Returns command to reorient EClass based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientRelationshipCommand(ReorientRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case ComponentRealizationEditPart.VISUAL_ID:
+ case InterfaceRealizationEditPart.VISUAL_ID:
+ case SubstitutionEditPart.VISUAL_ID:
+ case RealizationEditPart.VISUAL_ID:
+ case ManifestationEditPart.VISUAL_ID:
+ case AbstractionEditPart.VISUAL_ID:
+ case UsageEditPart.VISUAL_ID:
+ case DeploymentEditPart.VISUAL_ID:
+ case DependencyEditPart.VISUAL_ID:
+ case GeneralizationEditPart.VISUAL_ID:
+ case InformationFlowEditPart.VISUAL_ID:
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(req.getRelationship());
+ if(provider == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ // Retrieve re-orient command from the Element Edit service
+ ICommand reorientCommand = provider.getEditCommand(req);
+ if(reorientCommand == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ return getGEFWrapper(reorientCommand.reduce());
+ case RoleBindingEditPart.VISUAL_ID:
+ return getGEFWrapper(new RoleBindingReorientCommand(req));
+ }
+ return super.getReorientRelationshipCommand(req);
+ }
+
+ /**
+ * Returns command to reorient EReference based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientReferenceRelationshipCommand(ReorientReferenceRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case CommentAnnotatedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new CommentAnnotatedElementReorientCommand(req));
+ case ConstraintConstrainedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new ConstraintConstrainedElementReorientCommand(req));
+ case TimeObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new TimeObservationEventReorientCommand(req));
+ case DurationObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new DurationObservationEventReorientCommand(req));
+ case RepresentationEditPart.VISUAL_ID:
+ return getGEFWrapper(new RepresentationReorientCommand(req));
+ }
+ return super.getReorientReferenceRelationshipCommand(req);
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/ActivityItemSemanticEditPolicyCLN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/ActivityItemSemanticEditPolicyCLN.java
new file mode 100644
index 00000000000..3f26518c745
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/ActivityItemSemanticEditPolicyCLN.java
@@ -0,0 +1,64 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.policies;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import org.eclipse.emf.ecore.EAnnotation;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.edit.command.DeleteCommand;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gmf.runtime.emf.commands.core.command.CompositeTransactionalCommand;
+import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.commands.wrappers.EMFtoGMFCommandWrapper;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+
+/**
+ * @generated
+ */
+public class ActivityItemSemanticEditPolicyCLN extends UMLBaseItemSemanticEditPolicy {
+
+ /**
+ * @generated
+ */
+ public ActivityItemSemanticEditPolicyCLN() {
+ super(UMLElementTypes.Activity_3103);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getDestroyElementCommand(DestroyElementRequest req) {
+ View view = (View)getHost().getModel();
+ CompositeTransactionalCommand cmd = new CompositeTransactionalCommand(getEditingDomain(), null);
+ cmd.setTransactionNestingEnabled(true);
+
+ EAnnotation annotation = view.getEAnnotation("Shortcut"); //$NON-NLS-1$
+ if(annotation == null) {
+ // there are indirectly referenced children, need extra commands: false
+ addDestroyShortcutsCommand(cmd, view);
+ // delete host element
+ List<EObject> todestroy = new ArrayList<EObject>();
+ todestroy.add(req.getElementToDestroy());
+ //cmd.add(new org.eclipse.gmf.runtime.emf.type.core.commands.DestroyElementCommand(req));
+ cmd.add(new EMFtoGMFCommandWrapper(new DeleteCommand(getEditingDomain(), todestroy)));
+ } else {
+ cmd.add(new org.eclipse.gmf.runtime.diagram.core.commands.DeleteCommand(getEditingDomain(), view));
+ }
+ return getGEFWrapper(cmd.reduce());
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/ActorItemSemanticEditPolicy.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/ActorItemSemanticEditPolicy.java
new file mode 100644
index 00000000000..3ffffce7558
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/ActorItemSemanticEditPolicy.java
@@ -0,0 +1,279 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.policies;
+
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.commands.UnexecutableCommand;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.diagram.ui.commands.ICommandProxy;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientReferenceRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientRelationshipRequest;
+import org.eclipse.papyrus.diagram.composite.edit.commands.AbstractionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ComponentRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DependencyCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DeploymentCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.GeneralizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InformationFlowCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InterfaceRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ManifestationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RepresentationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RepresentationReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.SubstitutionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.UsageCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.parts.AbstractionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CommentAnnotatedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ComponentRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ConstraintConstrainedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DependencyEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DeploymentEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DurationObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.GeneralizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InformationFlowEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InterfaceRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ManifestationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RepresentationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RoleBindingEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.SubstitutionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.TimeObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.UsageEditPart;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.service.edit.service.ElementEditServiceUtils;
+import org.eclipse.papyrus.service.edit.service.IElementEditService;
+
+/**
+ * @generated
+ */
+public class ActorItemSemanticEditPolicy extends UMLBaseItemSemanticEditPolicy {
+
+ /**
+ * @generated
+ */
+ public ActorItemSemanticEditPolicy() {
+ super(UMLElementTypes.Actor_2077);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getDestroyElementCommand(DestroyElementRequest req) {
+ EObject selectedEObject = req.getElementToDestroy();
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(selectedEObject);
+ if(provider != null) {
+ // Retrieve delete command from the Element Edit service
+ ICommand deleteCommand = provider.getEditCommand(req);
+
+ if(deleteCommand != null) {
+ return new ICommandProxy(deleteCommand);
+ }
+ }
+ return UnexecutableCommand.INSTANCE;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCreateRelationshipCommand(CreateRelationshipRequest req) {
+ Command command = req.getTarget() == null ? getStartCreateRelationshipCommand(req) : getCompleteCreateRelationshipCommand(req);
+ return command != null ? command : super.getCreateRelationshipCommand(req);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getStartCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Generalization_4015 == req.getElementType()) {
+ return getGEFWrapper(new GeneralizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.InformationItemRepresented_4020 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCompleteCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return getGEFWrapper(new CommentAnnotatedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return getGEFWrapper(new ConstraintConstrainedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Generalization_4015 == req.getElementType()) {
+ return getGEFWrapper(new GeneralizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return getGEFWrapper(new TimeObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return getGEFWrapper(new DurationObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InformationItemRepresented_4020 == req.getElementType()) {
+ return getGEFWrapper(new RepresentationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * Returns command to reorient EClass based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientRelationshipCommand(ReorientRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case ComponentRealizationEditPart.VISUAL_ID:
+ case InterfaceRealizationEditPart.VISUAL_ID:
+ case SubstitutionEditPart.VISUAL_ID:
+ case RealizationEditPart.VISUAL_ID:
+ case ManifestationEditPart.VISUAL_ID:
+ case AbstractionEditPart.VISUAL_ID:
+ case UsageEditPart.VISUAL_ID:
+ case DeploymentEditPart.VISUAL_ID:
+ case DependencyEditPart.VISUAL_ID:
+ case GeneralizationEditPart.VISUAL_ID:
+ case InformationFlowEditPart.VISUAL_ID:
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(req.getRelationship());
+ if(provider == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ // Retrieve re-orient command from the Element Edit service
+ ICommand reorientCommand = provider.getEditCommand(req);
+ if(reorientCommand == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ return getGEFWrapper(reorientCommand.reduce());
+ case RoleBindingEditPart.VISUAL_ID:
+ return getGEFWrapper(new RoleBindingReorientCommand(req));
+ }
+ return super.getReorientRelationshipCommand(req);
+ }
+
+ /**
+ * Returns command to reorient EReference based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientReferenceRelationshipCommand(ReorientReferenceRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case CommentAnnotatedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new CommentAnnotatedElementReorientCommand(req));
+ case ConstraintConstrainedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new ConstraintConstrainedElementReorientCommand(req));
+ case TimeObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new TimeObservationEventReorientCommand(req));
+ case DurationObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new DurationObservationEventReorientCommand(req));
+ case RepresentationEditPart.VISUAL_ID:
+ return getGEFWrapper(new RepresentationReorientCommand(req));
+ }
+ return super.getReorientReferenceRelationshipCommand(req);
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/ActorItemSemanticEditPolicyCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/ActorItemSemanticEditPolicyCN.java
new file mode 100644
index 00000000000..eaeb227c894
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/ActorItemSemanticEditPolicyCN.java
@@ -0,0 +1,279 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.policies;
+
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.commands.UnexecutableCommand;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.diagram.ui.commands.ICommandProxy;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientReferenceRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientRelationshipRequest;
+import org.eclipse.papyrus.diagram.composite.edit.commands.AbstractionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ComponentRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DependencyCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DeploymentCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.GeneralizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InformationFlowCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InterfaceRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ManifestationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RepresentationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RepresentationReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.SubstitutionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.UsageCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.parts.AbstractionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CommentAnnotatedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ComponentRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ConstraintConstrainedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DependencyEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DeploymentEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DurationObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.GeneralizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InformationFlowEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InterfaceRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ManifestationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RepresentationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RoleBindingEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.SubstitutionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.TimeObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.UsageEditPart;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.service.edit.service.ElementEditServiceUtils;
+import org.eclipse.papyrus.service.edit.service.IElementEditService;
+
+/**
+ * @generated
+ */
+public class ActorItemSemanticEditPolicyCN extends UMLBaseItemSemanticEditPolicy {
+
+ /**
+ * @generated
+ */
+ public ActorItemSemanticEditPolicyCN() {
+ super(UMLElementTypes.Actor_3091);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getDestroyElementCommand(DestroyElementRequest req) {
+ EObject selectedEObject = req.getElementToDestroy();
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(selectedEObject);
+ if(provider != null) {
+ // Retrieve delete command from the Element Edit service
+ ICommand deleteCommand = provider.getEditCommand(req);
+
+ if(deleteCommand != null) {
+ return new ICommandProxy(deleteCommand);
+ }
+ }
+ return UnexecutableCommand.INSTANCE;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCreateRelationshipCommand(CreateRelationshipRequest req) {
+ Command command = req.getTarget() == null ? getStartCreateRelationshipCommand(req) : getCompleteCreateRelationshipCommand(req);
+ return command != null ? command : super.getCreateRelationshipCommand(req);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getStartCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Generalization_4015 == req.getElementType()) {
+ return getGEFWrapper(new GeneralizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.InformationItemRepresented_4020 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCompleteCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return getGEFWrapper(new CommentAnnotatedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return getGEFWrapper(new ConstraintConstrainedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Generalization_4015 == req.getElementType()) {
+ return getGEFWrapper(new GeneralizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return getGEFWrapper(new TimeObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return getGEFWrapper(new DurationObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InformationItemRepresented_4020 == req.getElementType()) {
+ return getGEFWrapper(new RepresentationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * Returns command to reorient EClass based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientRelationshipCommand(ReorientRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case ComponentRealizationEditPart.VISUAL_ID:
+ case InterfaceRealizationEditPart.VISUAL_ID:
+ case SubstitutionEditPart.VISUAL_ID:
+ case RealizationEditPart.VISUAL_ID:
+ case ManifestationEditPart.VISUAL_ID:
+ case AbstractionEditPart.VISUAL_ID:
+ case UsageEditPart.VISUAL_ID:
+ case DeploymentEditPart.VISUAL_ID:
+ case DependencyEditPart.VISUAL_ID:
+ case GeneralizationEditPart.VISUAL_ID:
+ case InformationFlowEditPart.VISUAL_ID:
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(req.getRelationship());
+ if(provider == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ // Retrieve re-orient command from the Element Edit service
+ ICommand reorientCommand = provider.getEditCommand(req);
+ if(reorientCommand == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ return getGEFWrapper(reorientCommand.reduce());
+ case RoleBindingEditPart.VISUAL_ID:
+ return getGEFWrapper(new RoleBindingReorientCommand(req));
+ }
+ return super.getReorientRelationshipCommand(req);
+ }
+
+ /**
+ * Returns command to reorient EReference based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientReferenceRelationshipCommand(ReorientReferenceRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case CommentAnnotatedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new CommentAnnotatedElementReorientCommand(req));
+ case ConstraintConstrainedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new ConstraintConstrainedElementReorientCommand(req));
+ case TimeObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new TimeObservationEventReorientCommand(req));
+ case DurationObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new DurationObservationEventReorientCommand(req));
+ case RepresentationEditPart.VISUAL_ID:
+ return getGEFWrapper(new RepresentationReorientCommand(req));
+ }
+ return super.getReorientReferenceRelationshipCommand(req);
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/AnyReceiveEventItemSemanticEditPolicy.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/AnyReceiveEventItemSemanticEditPolicy.java
new file mode 100644
index 00000000000..5d3f83faca0
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/AnyReceiveEventItemSemanticEditPolicy.java
@@ -0,0 +1,259 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.policies;
+
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.commands.UnexecutableCommand;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.diagram.ui.commands.ICommandProxy;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientReferenceRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientRelationshipRequest;
+import org.eclipse.papyrus.diagram.composite.edit.commands.AbstractionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ComponentRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DependencyCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DeploymentCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InformationFlowCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InterfaceRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ManifestationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.SubstitutionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.UsageCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.parts.AbstractionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CommentAnnotatedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ComponentRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ConstraintConstrainedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DependencyEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DeploymentEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DurationObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InformationFlowEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InterfaceRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ManifestationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RoleBindingEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.SubstitutionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.TimeObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.UsageEditPart;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.service.edit.service.ElementEditServiceUtils;
+import org.eclipse.papyrus.service.edit.service.IElementEditService;
+
+/**
+ * @generated
+ */
+public class AnyReceiveEventItemSemanticEditPolicy extends UMLBaseItemSemanticEditPolicy {
+
+ /**
+ * @generated
+ */
+ public AnyReceiveEventItemSemanticEditPolicy() {
+ super(UMLElementTypes.AnyReceiveEvent_2085);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getDestroyElementCommand(DestroyElementRequest req) {
+ EObject selectedEObject = req.getElementToDestroy();
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(selectedEObject);
+ if(provider != null) {
+ // Retrieve delete command from the Element Edit service
+ ICommand deleteCommand = provider.getEditCommand(req);
+
+ if(deleteCommand != null) {
+ return new ICommandProxy(deleteCommand);
+ }
+ }
+ return UnexecutableCommand.INSTANCE;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCreateRelationshipCommand(CreateRelationshipRequest req) {
+ Command command = req.getTarget() == null ? getStartCreateRelationshipCommand(req) : getCompleteCreateRelationshipCommand(req);
+ return command != null ? command : super.getCreateRelationshipCommand(req);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getStartCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCompleteCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return getGEFWrapper(new CommentAnnotatedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return getGEFWrapper(new ConstraintConstrainedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return getGEFWrapper(new TimeObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return getGEFWrapper(new DurationObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * Returns command to reorient EClass based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientRelationshipCommand(ReorientRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case ComponentRealizationEditPart.VISUAL_ID:
+ case InterfaceRealizationEditPart.VISUAL_ID:
+ case SubstitutionEditPart.VISUAL_ID:
+ case RealizationEditPart.VISUAL_ID:
+ case ManifestationEditPart.VISUAL_ID:
+ case AbstractionEditPart.VISUAL_ID:
+ case UsageEditPart.VISUAL_ID:
+ case DeploymentEditPart.VISUAL_ID:
+ case DependencyEditPart.VISUAL_ID:
+ case InformationFlowEditPart.VISUAL_ID:
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(req.getRelationship());
+ if(provider == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ // Retrieve re-orient command from the Element Edit service
+ ICommand reorientCommand = provider.getEditCommand(req);
+ if(reorientCommand == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ return getGEFWrapper(reorientCommand.reduce());
+ case RoleBindingEditPart.VISUAL_ID:
+ return getGEFWrapper(new RoleBindingReorientCommand(req));
+ }
+ return super.getReorientRelationshipCommand(req);
+ }
+
+ /**
+ * Returns command to reorient EReference based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientReferenceRelationshipCommand(ReorientReferenceRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case CommentAnnotatedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new CommentAnnotatedElementReorientCommand(req));
+ case ConstraintConstrainedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new ConstraintConstrainedElementReorientCommand(req));
+ case TimeObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new TimeObservationEventReorientCommand(req));
+ case DurationObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new DurationObservationEventReorientCommand(req));
+ }
+ return super.getReorientReferenceRelationshipCommand(req);
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/ArtifactItemSemanticEditPolicy.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/ArtifactItemSemanticEditPolicy.java
new file mode 100644
index 00000000000..c3c5027b77b
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/ArtifactItemSemanticEditPolicy.java
@@ -0,0 +1,279 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.policies;
+
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.commands.UnexecutableCommand;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.diagram.ui.commands.ICommandProxy;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientReferenceRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientRelationshipRequest;
+import org.eclipse.papyrus.diagram.composite.edit.commands.AbstractionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ComponentRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DependencyCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DeploymentCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.GeneralizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InformationFlowCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InterfaceRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ManifestationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RepresentationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RepresentationReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.SubstitutionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.UsageCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.parts.AbstractionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CommentAnnotatedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ComponentRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ConstraintConstrainedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DependencyEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DeploymentEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DurationObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.GeneralizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InformationFlowEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InterfaceRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ManifestationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RepresentationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RoleBindingEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.SubstitutionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.TimeObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.UsageEditPart;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.service.edit.service.ElementEditServiceUtils;
+import org.eclipse.papyrus.service.edit.service.IElementEditService;
+
+/**
+ * @generated
+ */
+public class ArtifactItemSemanticEditPolicy extends UMLBaseItemSemanticEditPolicy {
+
+ /**
+ * @generated
+ */
+ public ArtifactItemSemanticEditPolicy() {
+ super(UMLElementTypes.Artifact_2079);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getDestroyElementCommand(DestroyElementRequest req) {
+ EObject selectedEObject = req.getElementToDestroy();
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(selectedEObject);
+ if(provider != null) {
+ // Retrieve delete command from the Element Edit service
+ ICommand deleteCommand = provider.getEditCommand(req);
+
+ if(deleteCommand != null) {
+ return new ICommandProxy(deleteCommand);
+ }
+ }
+ return UnexecutableCommand.INSTANCE;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCreateRelationshipCommand(CreateRelationshipRequest req) {
+ Command command = req.getTarget() == null ? getStartCreateRelationshipCommand(req) : getCompleteCreateRelationshipCommand(req);
+ return command != null ? command : super.getCreateRelationshipCommand(req);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getStartCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Generalization_4015 == req.getElementType()) {
+ return getGEFWrapper(new GeneralizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.InformationItemRepresented_4020 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCompleteCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return getGEFWrapper(new CommentAnnotatedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return getGEFWrapper(new ConstraintConstrainedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Generalization_4015 == req.getElementType()) {
+ return getGEFWrapper(new GeneralizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return getGEFWrapper(new TimeObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return getGEFWrapper(new DurationObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InformationItemRepresented_4020 == req.getElementType()) {
+ return getGEFWrapper(new RepresentationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * Returns command to reorient EClass based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientRelationshipCommand(ReorientRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case ComponentRealizationEditPart.VISUAL_ID:
+ case InterfaceRealizationEditPart.VISUAL_ID:
+ case SubstitutionEditPart.VISUAL_ID:
+ case RealizationEditPart.VISUAL_ID:
+ case ManifestationEditPart.VISUAL_ID:
+ case AbstractionEditPart.VISUAL_ID:
+ case UsageEditPart.VISUAL_ID:
+ case DeploymentEditPart.VISUAL_ID:
+ case DependencyEditPart.VISUAL_ID:
+ case GeneralizationEditPart.VISUAL_ID:
+ case InformationFlowEditPart.VISUAL_ID:
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(req.getRelationship());
+ if(provider == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ // Retrieve re-orient command from the Element Edit service
+ ICommand reorientCommand = provider.getEditCommand(req);
+ if(reorientCommand == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ return getGEFWrapper(reorientCommand.reduce());
+ case RoleBindingEditPart.VISUAL_ID:
+ return getGEFWrapper(new RoleBindingReorientCommand(req));
+ }
+ return super.getReorientRelationshipCommand(req);
+ }
+
+ /**
+ * Returns command to reorient EReference based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientReferenceRelationshipCommand(ReorientReferenceRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case CommentAnnotatedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new CommentAnnotatedElementReorientCommand(req));
+ case ConstraintConstrainedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new ConstraintConstrainedElementReorientCommand(req));
+ case TimeObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new TimeObservationEventReorientCommand(req));
+ case DurationObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new DurationObservationEventReorientCommand(req));
+ case RepresentationEditPart.VISUAL_ID:
+ return getGEFWrapper(new RepresentationReorientCommand(req));
+ }
+ return super.getReorientReferenceRelationshipCommand(req);
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/ArtifactItemSemanticEditPolicyCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/ArtifactItemSemanticEditPolicyCN.java
new file mode 100644
index 00000000000..99021f2e79c
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/ArtifactItemSemanticEditPolicyCN.java
@@ -0,0 +1,279 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.policies;
+
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.commands.UnexecutableCommand;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.diagram.ui.commands.ICommandProxy;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientReferenceRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientRelationshipRequest;
+import org.eclipse.papyrus.diagram.composite.edit.commands.AbstractionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ComponentRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DependencyCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DeploymentCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.GeneralizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InformationFlowCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InterfaceRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ManifestationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RepresentationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RepresentationReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.SubstitutionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.UsageCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.parts.AbstractionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CommentAnnotatedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ComponentRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ConstraintConstrainedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DependencyEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DeploymentEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DurationObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.GeneralizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InformationFlowEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InterfaceRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ManifestationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RepresentationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RoleBindingEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.SubstitutionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.TimeObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.UsageEditPart;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.service.edit.service.ElementEditServiceUtils;
+import org.eclipse.papyrus.service.edit.service.IElementEditService;
+
+/**
+ * @generated
+ */
+public class ArtifactItemSemanticEditPolicyCN extends UMLBaseItemSemanticEditPolicy {
+
+ /**
+ * @generated
+ */
+ public ArtifactItemSemanticEditPolicyCN() {
+ super(UMLElementTypes.Artifact_3093);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getDestroyElementCommand(DestroyElementRequest req) {
+ EObject selectedEObject = req.getElementToDestroy();
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(selectedEObject);
+ if(provider != null) {
+ // Retrieve delete command from the Element Edit service
+ ICommand deleteCommand = provider.getEditCommand(req);
+
+ if(deleteCommand != null) {
+ return new ICommandProxy(deleteCommand);
+ }
+ }
+ return UnexecutableCommand.INSTANCE;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCreateRelationshipCommand(CreateRelationshipRequest req) {
+ Command command = req.getTarget() == null ? getStartCreateRelationshipCommand(req) : getCompleteCreateRelationshipCommand(req);
+ return command != null ? command : super.getCreateRelationshipCommand(req);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getStartCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Generalization_4015 == req.getElementType()) {
+ return getGEFWrapper(new GeneralizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.InformationItemRepresented_4020 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCompleteCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return getGEFWrapper(new CommentAnnotatedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return getGEFWrapper(new ConstraintConstrainedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Generalization_4015 == req.getElementType()) {
+ return getGEFWrapper(new GeneralizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return getGEFWrapper(new TimeObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return getGEFWrapper(new DurationObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InformationItemRepresented_4020 == req.getElementType()) {
+ return getGEFWrapper(new RepresentationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * Returns command to reorient EClass based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientRelationshipCommand(ReorientRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case ComponentRealizationEditPart.VISUAL_ID:
+ case InterfaceRealizationEditPart.VISUAL_ID:
+ case SubstitutionEditPart.VISUAL_ID:
+ case RealizationEditPart.VISUAL_ID:
+ case ManifestationEditPart.VISUAL_ID:
+ case AbstractionEditPart.VISUAL_ID:
+ case UsageEditPart.VISUAL_ID:
+ case DeploymentEditPart.VISUAL_ID:
+ case DependencyEditPart.VISUAL_ID:
+ case GeneralizationEditPart.VISUAL_ID:
+ case InformationFlowEditPart.VISUAL_ID:
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(req.getRelationship());
+ if(provider == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ // Retrieve re-orient command from the Element Edit service
+ ICommand reorientCommand = provider.getEditCommand(req);
+ if(reorientCommand == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ return getGEFWrapper(reorientCommand.reduce());
+ case RoleBindingEditPart.VISUAL_ID:
+ return getGEFWrapper(new RoleBindingReorientCommand(req));
+ }
+ return super.getReorientRelationshipCommand(req);
+ }
+
+ /**
+ * Returns command to reorient EReference based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientReferenceRelationshipCommand(ReorientReferenceRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case CommentAnnotatedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new CommentAnnotatedElementReorientCommand(req));
+ case ConstraintConstrainedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new ConstraintConstrainedElementReorientCommand(req));
+ case TimeObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new TimeObservationEventReorientCommand(req));
+ case DurationObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new DurationObservationEventReorientCommand(req));
+ case RepresentationEditPart.VISUAL_ID:
+ return getGEFWrapper(new RepresentationReorientCommand(req));
+ }
+ return super.getReorientReferenceRelationshipCommand(req);
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/CallEventItemSemanticEditPolicy.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/CallEventItemSemanticEditPolicy.java
new file mode 100644
index 00000000000..3b2155702e6
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/CallEventItemSemanticEditPolicy.java
@@ -0,0 +1,259 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.policies;
+
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.commands.UnexecutableCommand;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.diagram.ui.commands.ICommandProxy;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientReferenceRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientRelationshipRequest;
+import org.eclipse.papyrus.diagram.composite.edit.commands.AbstractionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ComponentRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DependencyCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DeploymentCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InformationFlowCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InterfaceRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ManifestationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.SubstitutionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.UsageCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.parts.AbstractionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CommentAnnotatedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ComponentRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ConstraintConstrainedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DependencyEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DeploymentEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DurationObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InformationFlowEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InterfaceRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ManifestationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RoleBindingEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.SubstitutionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.TimeObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.UsageEditPart;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.service.edit.service.ElementEditServiceUtils;
+import org.eclipse.papyrus.service.edit.service.IElementEditService;
+
+/**
+ * @generated
+ */
+public class CallEventItemSemanticEditPolicy extends UMLBaseItemSemanticEditPolicy {
+
+ /**
+ * @generated
+ */
+ public CallEventItemSemanticEditPolicy() {
+ super(UMLElementTypes.CallEvent_2084);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getDestroyElementCommand(DestroyElementRequest req) {
+ EObject selectedEObject = req.getElementToDestroy();
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(selectedEObject);
+ if(provider != null) {
+ // Retrieve delete command from the Element Edit service
+ ICommand deleteCommand = provider.getEditCommand(req);
+
+ if(deleteCommand != null) {
+ return new ICommandProxy(deleteCommand);
+ }
+ }
+ return UnexecutableCommand.INSTANCE;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCreateRelationshipCommand(CreateRelationshipRequest req) {
+ Command command = req.getTarget() == null ? getStartCreateRelationshipCommand(req) : getCompleteCreateRelationshipCommand(req);
+ return command != null ? command : super.getCreateRelationshipCommand(req);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getStartCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCompleteCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return getGEFWrapper(new CommentAnnotatedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return getGEFWrapper(new ConstraintConstrainedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return getGEFWrapper(new TimeObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return getGEFWrapper(new DurationObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * Returns command to reorient EClass based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientRelationshipCommand(ReorientRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case ComponentRealizationEditPart.VISUAL_ID:
+ case InterfaceRealizationEditPart.VISUAL_ID:
+ case SubstitutionEditPart.VISUAL_ID:
+ case RealizationEditPart.VISUAL_ID:
+ case ManifestationEditPart.VISUAL_ID:
+ case AbstractionEditPart.VISUAL_ID:
+ case UsageEditPart.VISUAL_ID:
+ case DeploymentEditPart.VISUAL_ID:
+ case DependencyEditPart.VISUAL_ID:
+ case InformationFlowEditPart.VISUAL_ID:
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(req.getRelationship());
+ if(provider == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ // Retrieve re-orient command from the Element Edit service
+ ICommand reorientCommand = provider.getEditCommand(req);
+ if(reorientCommand == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ return getGEFWrapper(reorientCommand.reduce());
+ case RoleBindingEditPart.VISUAL_ID:
+ return getGEFWrapper(new RoleBindingReorientCommand(req));
+ }
+ return super.getReorientRelationshipCommand(req);
+ }
+
+ /**
+ * Returns command to reorient EReference based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientReferenceRelationshipCommand(ReorientReferenceRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case CommentAnnotatedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new CommentAnnotatedElementReorientCommand(req));
+ case ConstraintConstrainedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new ConstraintConstrainedElementReorientCommand(req));
+ case TimeObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new TimeObservationEventReorientCommand(req));
+ case DurationObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new DurationObservationEventReorientCommand(req));
+ }
+ return super.getReorientReferenceRelationshipCommand(req);
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/ChangeEventItemSemanticEditPolicy.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/ChangeEventItemSemanticEditPolicy.java
new file mode 100644
index 00000000000..21b7d0c5953
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/ChangeEventItemSemanticEditPolicy.java
@@ -0,0 +1,259 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.policies;
+
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.commands.UnexecutableCommand;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.diagram.ui.commands.ICommandProxy;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientReferenceRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientRelationshipRequest;
+import org.eclipse.papyrus.diagram.composite.edit.commands.AbstractionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ComponentRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DependencyCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DeploymentCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InformationFlowCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InterfaceRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ManifestationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.SubstitutionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.UsageCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.parts.AbstractionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CommentAnnotatedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ComponentRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ConstraintConstrainedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DependencyEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DeploymentEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DurationObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InformationFlowEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InterfaceRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ManifestationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RoleBindingEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.SubstitutionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.TimeObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.UsageEditPart;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.service.edit.service.ElementEditServiceUtils;
+import org.eclipse.papyrus.service.edit.service.IElementEditService;
+
+/**
+ * @generated
+ */
+public class ChangeEventItemSemanticEditPolicy extends UMLBaseItemSemanticEditPolicy {
+
+ /**
+ * @generated
+ */
+ public ChangeEventItemSemanticEditPolicy() {
+ super(UMLElementTypes.ChangeEvent_2088);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getDestroyElementCommand(DestroyElementRequest req) {
+ EObject selectedEObject = req.getElementToDestroy();
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(selectedEObject);
+ if(provider != null) {
+ // Retrieve delete command from the Element Edit service
+ ICommand deleteCommand = provider.getEditCommand(req);
+
+ if(deleteCommand != null) {
+ return new ICommandProxy(deleteCommand);
+ }
+ }
+ return UnexecutableCommand.INSTANCE;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCreateRelationshipCommand(CreateRelationshipRequest req) {
+ Command command = req.getTarget() == null ? getStartCreateRelationshipCommand(req) : getCompleteCreateRelationshipCommand(req);
+ return command != null ? command : super.getCreateRelationshipCommand(req);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getStartCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCompleteCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return getGEFWrapper(new CommentAnnotatedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return getGEFWrapper(new ConstraintConstrainedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return getGEFWrapper(new TimeObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return getGEFWrapper(new DurationObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * Returns command to reorient EClass based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientRelationshipCommand(ReorientRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case ComponentRealizationEditPart.VISUAL_ID:
+ case InterfaceRealizationEditPart.VISUAL_ID:
+ case SubstitutionEditPart.VISUAL_ID:
+ case RealizationEditPart.VISUAL_ID:
+ case ManifestationEditPart.VISUAL_ID:
+ case AbstractionEditPart.VISUAL_ID:
+ case UsageEditPart.VISUAL_ID:
+ case DeploymentEditPart.VISUAL_ID:
+ case DependencyEditPart.VISUAL_ID:
+ case InformationFlowEditPart.VISUAL_ID:
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(req.getRelationship());
+ if(provider == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ // Retrieve re-orient command from the Element Edit service
+ ICommand reorientCommand = provider.getEditCommand(req);
+ if(reorientCommand == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ return getGEFWrapper(reorientCommand.reduce());
+ case RoleBindingEditPart.VISUAL_ID:
+ return getGEFWrapper(new RoleBindingReorientCommand(req));
+ }
+ return super.getReorientRelationshipCommand(req);
+ }
+
+ /**
+ * Returns command to reorient EReference based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientReferenceRelationshipCommand(ReorientReferenceRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case CommentAnnotatedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new CommentAnnotatedElementReorientCommand(req));
+ case ConstraintConstrainedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new ConstraintConstrainedElementReorientCommand(req));
+ case TimeObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new TimeObservationEventReorientCommand(req));
+ case DurationObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new DurationObservationEventReorientCommand(req));
+ }
+ return super.getReorientReferenceRelationshipCommand(req);
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/ClassCompositeCompartmentItemSemanticEditPolicy.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/ClassCompositeCompartmentItemSemanticEditPolicy.java
new file mode 100644
index 00000000000..1185990eb1c
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/ClassCompositeCompartmentItemSemanticEditPolicy.java
@@ -0,0 +1,163 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.policies;
+
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ActivityCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ActorCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ArtifactCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ClassCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CollaborationCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CollaborationUseCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ComponentCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DataTypeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DeploymentSpecificationCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DeviceCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationConstraintCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.EnumerationCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ExecutionEnvironmentCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.FunctionBehaviorCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InformationItemCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InteractionCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InteractionConstraintCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InterfaceCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.IntervalConstraintCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.NodeCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.OpaqueBehaviorCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.PortCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.PrimitiveTypeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.PropertyPartCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ProtocolStateMachineCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.SignalCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.StateMachineCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeConstraintCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.UseCaseCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+
+/**
+ * @generated
+ */
+public class ClassCompositeCompartmentItemSemanticEditPolicy extends UMLBaseItemSemanticEditPolicy {
+
+ /**
+ * @generated
+ */
+ public ClassCompositeCompartmentItemSemanticEditPolicy() {
+ super(UMLElementTypes.Class_2073);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCreateCommand(CreateElementRequest req) {
+ if(UMLElementTypes.Port_3069 == req.getElementType()) {
+ return getGEFWrapper(new PortCreateCommand(req));
+ }
+ if(UMLElementTypes.Property_3070 == req.getElementType()) {
+ return getGEFWrapper(new PropertyPartCreateCommandCN(req));
+ }
+ if(UMLElementTypes.CollaborationUse_3071 == req.getElementType()) {
+ return getGEFWrapper(new CollaborationUseCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Activity_3072 == req.getElementType()) {
+ return getGEFWrapper(new ActivityCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Interaction_3073 == req.getElementType()) {
+ return getGEFWrapper(new InteractionCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.ProtocolStateMachine_3074 == req.getElementType()) {
+ return getGEFWrapper(new ProtocolStateMachineCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.StateMachine_3075 == req.getElementType()) {
+ return getGEFWrapper(new StateMachineCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.FunctionBehavior_3076 == req.getElementType()) {
+ return getGEFWrapper(new FunctionBehaviorCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.OpaqueBehavior_3077 == req.getElementType()) {
+ return getGEFWrapper(new OpaqueBehaviorCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Component_3081 == req.getElementType()) {
+ return getGEFWrapper(new ComponentCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Device_3082 == req.getElementType()) {
+ return getGEFWrapper(new DeviceCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.ExecutionEnvironment_3083 == req.getElementType()) {
+ return getGEFWrapper(new ExecutionEnvironmentCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Node_3084 == req.getElementType()) {
+ return getGEFWrapper(new NodeCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Class_3085 == req.getElementType()) {
+ return getGEFWrapper(new ClassCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Collaboration_3086 == req.getElementType()) {
+ return getGEFWrapper(new CollaborationCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Interface_3087 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceCreateCommandCN(req));
+ }
+ if(UMLElementTypes.PrimitiveType_3078 == req.getElementType()) {
+ return getGEFWrapper(new PrimitiveTypeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Enumeration_3079 == req.getElementType()) {
+ return getGEFWrapper(new EnumerationCreateCommandCN(req));
+ }
+ if(UMLElementTypes.DataType_3080 == req.getElementType()) {
+ return getGEFWrapper(new DataTypeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Actor_3091 == req.getElementType()) {
+ return getGEFWrapper(new ActorCreateCommandCN(req));
+ }
+ if(UMLElementTypes.DeploymentSpecification_3092 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentSpecificationCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Artifact_3093 == req.getElementType()) {
+ return getGEFWrapper(new ArtifactCreateCommandCN(req));
+ }
+ if(UMLElementTypes.InformationItem_3094 == req.getElementType()) {
+ return getGEFWrapper(new InformationItemCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Signal_3095 == req.getElementType()) {
+ return getGEFWrapper(new SignalCreateCommandCN(req));
+ }
+ if(UMLElementTypes.UseCase_3096 == req.getElementType()) {
+ return getGEFWrapper(new UseCaseCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Comment_3097 == req.getElementType()) {
+ return getGEFWrapper(new CommentCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Constraint_3120 == req.getElementType()) {
+ return getGEFWrapper(new ConstraintCreateCommandCN(req));
+ }
+ if(UMLElementTypes.DurationConstraint_3116 == req.getElementType()) {
+ return getGEFWrapper(new DurationConstraintCreateCommandCN(req));
+ }
+ if(UMLElementTypes.TimeConstraint_3117 == req.getElementType()) {
+ return getGEFWrapper(new TimeConstraintCreateCommandCN(req));
+ }
+ if(UMLElementTypes.IntervalConstraint_3118 == req.getElementType()) {
+ return getGEFWrapper(new IntervalConstraintCreateCommandCN(req));
+ }
+ if(UMLElementTypes.InteractionConstraint_3119 == req.getElementType()) {
+ return getGEFWrapper(new InteractionConstraintCreateCommandCN(req));
+ }
+ return super.getCreateCommand(req);
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/ClassCompositeCompartmentItemSemanticEditPolicyCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/ClassCompositeCompartmentItemSemanticEditPolicyCN.java
new file mode 100644
index 00000000000..755e99bc962
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/ClassCompositeCompartmentItemSemanticEditPolicyCN.java
@@ -0,0 +1,163 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.policies;
+
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ActivityCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ActorCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ArtifactCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ClassCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CollaborationCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CollaborationUseCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ComponentCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DataTypeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DeploymentSpecificationCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DeviceCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationConstraintCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.EnumerationCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ExecutionEnvironmentCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.FunctionBehaviorCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InformationItemCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InteractionCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InteractionConstraintCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InterfaceCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.IntervalConstraintCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.NodeCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.OpaqueBehaviorCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.PortCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.PrimitiveTypeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.PropertyPartCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ProtocolStateMachineCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.SignalCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.StateMachineCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeConstraintCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.UseCaseCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+
+/**
+ * @generated
+ */
+public class ClassCompositeCompartmentItemSemanticEditPolicyCN extends UMLBaseItemSemanticEditPolicy {
+
+ /**
+ * @generated
+ */
+ public ClassCompositeCompartmentItemSemanticEditPolicyCN() {
+ super(UMLElementTypes.Class_3085);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCreateCommand(CreateElementRequest req) {
+ if(UMLElementTypes.Port_3069 == req.getElementType()) {
+ return getGEFWrapper(new PortCreateCommand(req));
+ }
+ if(UMLElementTypes.Property_3070 == req.getElementType()) {
+ return getGEFWrapper(new PropertyPartCreateCommandCN(req));
+ }
+ if(UMLElementTypes.CollaborationUse_3071 == req.getElementType()) {
+ return getGEFWrapper(new CollaborationUseCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Activity_3072 == req.getElementType()) {
+ return getGEFWrapper(new ActivityCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Interaction_3073 == req.getElementType()) {
+ return getGEFWrapper(new InteractionCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.ProtocolStateMachine_3074 == req.getElementType()) {
+ return getGEFWrapper(new ProtocolStateMachineCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.StateMachine_3075 == req.getElementType()) {
+ return getGEFWrapper(new StateMachineCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.FunctionBehavior_3076 == req.getElementType()) {
+ return getGEFWrapper(new FunctionBehaviorCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.OpaqueBehavior_3077 == req.getElementType()) {
+ return getGEFWrapper(new OpaqueBehaviorCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Component_3081 == req.getElementType()) {
+ return getGEFWrapper(new ComponentCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Device_3082 == req.getElementType()) {
+ return getGEFWrapper(new DeviceCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.ExecutionEnvironment_3083 == req.getElementType()) {
+ return getGEFWrapper(new ExecutionEnvironmentCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Node_3084 == req.getElementType()) {
+ return getGEFWrapper(new NodeCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Class_3085 == req.getElementType()) {
+ return getGEFWrapper(new ClassCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Collaboration_3086 == req.getElementType()) {
+ return getGEFWrapper(new CollaborationCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Interface_3087 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceCreateCommandCN(req));
+ }
+ if(UMLElementTypes.PrimitiveType_3078 == req.getElementType()) {
+ return getGEFWrapper(new PrimitiveTypeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Enumeration_3079 == req.getElementType()) {
+ return getGEFWrapper(new EnumerationCreateCommandCN(req));
+ }
+ if(UMLElementTypes.DataType_3080 == req.getElementType()) {
+ return getGEFWrapper(new DataTypeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Actor_3091 == req.getElementType()) {
+ return getGEFWrapper(new ActorCreateCommandCN(req));
+ }
+ if(UMLElementTypes.DeploymentSpecification_3092 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentSpecificationCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Artifact_3093 == req.getElementType()) {
+ return getGEFWrapper(new ArtifactCreateCommandCN(req));
+ }
+ if(UMLElementTypes.InformationItem_3094 == req.getElementType()) {
+ return getGEFWrapper(new InformationItemCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Signal_3095 == req.getElementType()) {
+ return getGEFWrapper(new SignalCreateCommandCN(req));
+ }
+ if(UMLElementTypes.UseCase_3096 == req.getElementType()) {
+ return getGEFWrapper(new UseCaseCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Comment_3097 == req.getElementType()) {
+ return getGEFWrapper(new CommentCreateCommandCN(req));
+ }
+ if(UMLElementTypes.DurationConstraint_3116 == req.getElementType()) {
+ return getGEFWrapper(new DurationConstraintCreateCommandCN(req));
+ }
+ if(UMLElementTypes.TimeConstraint_3117 == req.getElementType()) {
+ return getGEFWrapper(new TimeConstraintCreateCommandCN(req));
+ }
+ if(UMLElementTypes.IntervalConstraint_3118 == req.getElementType()) {
+ return getGEFWrapper(new IntervalConstraintCreateCommandCN(req));
+ }
+ if(UMLElementTypes.InteractionConstraint_3119 == req.getElementType()) {
+ return getGEFWrapper(new InteractionConstraintCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Constraint_3120 == req.getElementType()) {
+ return getGEFWrapper(new ConstraintCreateCommandCN(req));
+ }
+ return super.getCreateCommand(req);
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/ClassCompositeItemSemanticEditPolicy.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/ClassCompositeItemSemanticEditPolicy.java
new file mode 100644
index 00000000000..d1c1c0be847
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/ClassCompositeItemSemanticEditPolicy.java
@@ -0,0 +1,291 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.policies;
+
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.commands.UnexecutableCommand;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.diagram.ui.commands.ICommandProxy;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientReferenceRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientRelationshipRequest;
+import org.eclipse.papyrus.diagram.composite.edit.commands.AbstractionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ComponentRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DependencyCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DeploymentCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.GeneralizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InformationFlowCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InterfaceRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ManifestationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.PortCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RepresentationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RepresentationReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.SubstitutionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.UsageCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.parts.AbstractionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CommentAnnotatedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ComponentRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ConstraintConstrainedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DependencyEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DeploymentEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DurationObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.GeneralizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InformationFlowEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InterfaceRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ManifestationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RepresentationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RoleBindingEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.SubstitutionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.TimeObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.UsageEditPart;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.service.edit.service.ElementEditServiceUtils;
+import org.eclipse.papyrus.service.edit.service.IElementEditService;
+
+/**
+ * @generated
+ */
+public class ClassCompositeItemSemanticEditPolicy extends UMLBaseItemSemanticEditPolicy {
+
+ /**
+ * @generated
+ */
+ public ClassCompositeItemSemanticEditPolicy() {
+ super(UMLElementTypes.Class_2073);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCreateCommand(CreateElementRequest req) {
+ if(UMLElementTypes.Port_3069 == req.getElementType()) {
+ return getGEFWrapper(new PortCreateCommand(req));
+ }
+ return super.getCreateCommand(req);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getDestroyElementCommand(DestroyElementRequest req) {
+ EObject selectedEObject = req.getElementToDestroy();
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(selectedEObject);
+ if(provider != null) {
+ // Retrieve delete command from the Element Edit service
+ ICommand deleteCommand = provider.getEditCommand(req);
+
+ if(deleteCommand != null) {
+ return new ICommandProxy(deleteCommand);
+ }
+ }
+ return UnexecutableCommand.INSTANCE;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCreateRelationshipCommand(CreateRelationshipRequest req) {
+ Command command = req.getTarget() == null ? getStartCreateRelationshipCommand(req) : getCompleteCreateRelationshipCommand(req);
+ return command != null ? command : super.getCreateRelationshipCommand(req);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getStartCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Generalization_4015 == req.getElementType()) {
+ return getGEFWrapper(new GeneralizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.InformationItemRepresented_4020 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCompleteCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return getGEFWrapper(new CommentAnnotatedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return getGEFWrapper(new ConstraintConstrainedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Generalization_4015 == req.getElementType()) {
+ return getGEFWrapper(new GeneralizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return getGEFWrapper(new TimeObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return getGEFWrapper(new DurationObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InformationItemRepresented_4020 == req.getElementType()) {
+ return getGEFWrapper(new RepresentationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * Returns command to reorient EClass based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientRelationshipCommand(ReorientRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case ComponentRealizationEditPart.VISUAL_ID:
+ case InterfaceRealizationEditPart.VISUAL_ID:
+ case SubstitutionEditPart.VISUAL_ID:
+ case RealizationEditPart.VISUAL_ID:
+ case ManifestationEditPart.VISUAL_ID:
+ case AbstractionEditPart.VISUAL_ID:
+ case UsageEditPart.VISUAL_ID:
+ case DeploymentEditPart.VISUAL_ID:
+ case DependencyEditPart.VISUAL_ID:
+ case GeneralizationEditPart.VISUAL_ID:
+ case InformationFlowEditPart.VISUAL_ID:
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(req.getRelationship());
+ if(provider == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ // Retrieve re-orient command from the Element Edit service
+ ICommand reorientCommand = provider.getEditCommand(req);
+ if(reorientCommand == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ return getGEFWrapper(reorientCommand.reduce());
+ case RoleBindingEditPart.VISUAL_ID:
+ return getGEFWrapper(new RoleBindingReorientCommand(req));
+ }
+ return super.getReorientRelationshipCommand(req);
+ }
+
+ /**
+ * Returns command to reorient EReference based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientReferenceRelationshipCommand(ReorientReferenceRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case CommentAnnotatedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new CommentAnnotatedElementReorientCommand(req));
+ case ConstraintConstrainedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new ConstraintConstrainedElementReorientCommand(req));
+ case TimeObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new TimeObservationEventReorientCommand(req));
+ case DurationObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new DurationObservationEventReorientCommand(req));
+ case RepresentationEditPart.VISUAL_ID:
+ return getGEFWrapper(new RepresentationReorientCommand(req));
+ }
+ return super.getReorientReferenceRelationshipCommand(req);
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/ClassCompositeItemSemanticEditPolicyCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/ClassCompositeItemSemanticEditPolicyCN.java
new file mode 100644
index 00000000000..a804b2d14f3
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/ClassCompositeItemSemanticEditPolicyCN.java
@@ -0,0 +1,291 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.policies;
+
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.commands.UnexecutableCommand;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.diagram.ui.commands.ICommandProxy;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientReferenceRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientRelationshipRequest;
+import org.eclipse.papyrus.diagram.composite.edit.commands.AbstractionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ComponentRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DependencyCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DeploymentCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.GeneralizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InformationFlowCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InterfaceRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ManifestationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.PortCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RepresentationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RepresentationReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.SubstitutionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.UsageCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.parts.AbstractionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CommentAnnotatedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ComponentRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ConstraintConstrainedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DependencyEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DeploymentEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DurationObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.GeneralizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InformationFlowEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InterfaceRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ManifestationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RepresentationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RoleBindingEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.SubstitutionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.TimeObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.UsageEditPart;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.service.edit.service.ElementEditServiceUtils;
+import org.eclipse.papyrus.service.edit.service.IElementEditService;
+
+/**
+ * @generated
+ */
+public class ClassCompositeItemSemanticEditPolicyCN extends UMLBaseItemSemanticEditPolicy {
+
+ /**
+ * @generated
+ */
+ public ClassCompositeItemSemanticEditPolicyCN() {
+ super(UMLElementTypes.Class_3085);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCreateCommand(CreateElementRequest req) {
+ if(UMLElementTypes.Port_3069 == req.getElementType()) {
+ return getGEFWrapper(new PortCreateCommand(req));
+ }
+ return super.getCreateCommand(req);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getDestroyElementCommand(DestroyElementRequest req) {
+ EObject selectedEObject = req.getElementToDestroy();
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(selectedEObject);
+ if(provider != null) {
+ // Retrieve delete command from the Element Edit service
+ ICommand deleteCommand = provider.getEditCommand(req);
+
+ if(deleteCommand != null) {
+ return new ICommandProxy(deleteCommand);
+ }
+ }
+ return UnexecutableCommand.INSTANCE;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCreateRelationshipCommand(CreateRelationshipRequest req) {
+ Command command = req.getTarget() == null ? getStartCreateRelationshipCommand(req) : getCompleteCreateRelationshipCommand(req);
+ return command != null ? command : super.getCreateRelationshipCommand(req);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getStartCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Generalization_4015 == req.getElementType()) {
+ return getGEFWrapper(new GeneralizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.InformationItemRepresented_4020 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCompleteCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return getGEFWrapper(new CommentAnnotatedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return getGEFWrapper(new ConstraintConstrainedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Generalization_4015 == req.getElementType()) {
+ return getGEFWrapper(new GeneralizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return getGEFWrapper(new TimeObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return getGEFWrapper(new DurationObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InformationItemRepresented_4020 == req.getElementType()) {
+ return getGEFWrapper(new RepresentationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * Returns command to reorient EClass based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientRelationshipCommand(ReorientRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case ComponentRealizationEditPart.VISUAL_ID:
+ case InterfaceRealizationEditPart.VISUAL_ID:
+ case SubstitutionEditPart.VISUAL_ID:
+ case RealizationEditPart.VISUAL_ID:
+ case ManifestationEditPart.VISUAL_ID:
+ case AbstractionEditPart.VISUAL_ID:
+ case UsageEditPart.VISUAL_ID:
+ case DeploymentEditPart.VISUAL_ID:
+ case DependencyEditPart.VISUAL_ID:
+ case GeneralizationEditPart.VISUAL_ID:
+ case InformationFlowEditPart.VISUAL_ID:
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(req.getRelationship());
+ if(provider == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ // Retrieve re-orient command from the Element Edit service
+ ICommand reorientCommand = provider.getEditCommand(req);
+ if(reorientCommand == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ return getGEFWrapper(reorientCommand.reduce());
+ case RoleBindingEditPart.VISUAL_ID:
+ return getGEFWrapper(new RoleBindingReorientCommand(req));
+ }
+ return super.getReorientRelationshipCommand(req);
+ }
+
+ /**
+ * Returns command to reorient EReference based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientReferenceRelationshipCommand(ReorientReferenceRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case CommentAnnotatedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new CommentAnnotatedElementReorientCommand(req));
+ case ConstraintConstrainedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new ConstraintConstrainedElementReorientCommand(req));
+ case TimeObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new TimeObservationEventReorientCommand(req));
+ case DurationObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new DurationObservationEventReorientCommand(req));
+ case RepresentationEditPart.VISUAL_ID:
+ return getGEFWrapper(new RepresentationReorientCommand(req));
+ }
+ return super.getReorientReferenceRelationshipCommand(req);
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/ClassItemSemanticEditPolicyCLN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/ClassItemSemanticEditPolicyCLN.java
new file mode 100644
index 00000000000..b729eb74c36
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/ClassItemSemanticEditPolicyCLN.java
@@ -0,0 +1,64 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.policies;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import org.eclipse.emf.ecore.EAnnotation;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.edit.command.DeleteCommand;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gmf.runtime.emf.commands.core.command.CompositeTransactionalCommand;
+import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.commands.wrappers.EMFtoGMFCommandWrapper;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+
+/**
+ * @generated
+ */
+public class ClassItemSemanticEditPolicyCLN extends UMLBaseItemSemanticEditPolicy {
+
+ /**
+ * @generated
+ */
+ public ClassItemSemanticEditPolicyCLN() {
+ super(UMLElementTypes.Class_3114);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getDestroyElementCommand(DestroyElementRequest req) {
+ View view = (View)getHost().getModel();
+ CompositeTransactionalCommand cmd = new CompositeTransactionalCommand(getEditingDomain(), null);
+ cmd.setTransactionNestingEnabled(true);
+
+ EAnnotation annotation = view.getEAnnotation("Shortcut"); //$NON-NLS-1$
+ if(annotation == null) {
+ // there are indirectly referenced children, need extra commands: false
+ addDestroyShortcutsCommand(cmd, view);
+ // delete host element
+ List<EObject> todestroy = new ArrayList<EObject>();
+ todestroy.add(req.getElementToDestroy());
+ //cmd.add(new org.eclipse.gmf.runtime.emf.type.core.commands.DestroyElementCommand(req));
+ cmd.add(new EMFtoGMFCommandWrapper(new DeleteCommand(getEditingDomain(), todestroy)));
+ } else {
+ cmd.add(new org.eclipse.gmf.runtime.diagram.core.commands.DeleteCommand(getEditingDomain(), view));
+ }
+ return getGEFWrapper(cmd.reduce());
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/CollaborationCompositeCompartmentItemSemanticEditPolicy.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/CollaborationCompositeCompartmentItemSemanticEditPolicy.java
new file mode 100644
index 00000000000..f455eeecb4b
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/CollaborationCompositeCompartmentItemSemanticEditPolicy.java
@@ -0,0 +1,75 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.policies;
+
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CollaborationRoleCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CollaborationUseCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationConstraintCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InteractionConstraintCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.IntervalConstraintCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.PropertyPartCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeConstraintCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+
+/**
+ * @generated
+ */
+public class CollaborationCompositeCompartmentItemSemanticEditPolicy extends UMLBaseItemSemanticEditPolicy {
+
+ /**
+ * @generated
+ */
+ public CollaborationCompositeCompartmentItemSemanticEditPolicy() {
+ super(UMLElementTypes.Collaboration_2075);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCreateCommand(CreateElementRequest req) {
+ if(UMLElementTypes.Property_3070 == req.getElementType()) {
+ return getGEFWrapper(new PropertyPartCreateCommandCN(req));
+ }
+ if(UMLElementTypes.CollaborationUse_3071 == req.getElementType()) {
+ return getGEFWrapper(new CollaborationUseCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Comment_3097 == req.getElementType()) {
+ return getGEFWrapper(new CommentCreateCommandCN(req));
+ }
+ if(UMLElementTypes.ConnectableElement_3115 == req.getElementType()) {
+ return getGEFWrapper(new CollaborationRoleCreateCommandCN(req));
+ }
+ if(UMLElementTypes.DurationConstraint_3116 == req.getElementType()) {
+ return getGEFWrapper(new DurationConstraintCreateCommandCN(req));
+ }
+ if(UMLElementTypes.TimeConstraint_3117 == req.getElementType()) {
+ return getGEFWrapper(new TimeConstraintCreateCommandCN(req));
+ }
+ if(UMLElementTypes.IntervalConstraint_3118 == req.getElementType()) {
+ return getGEFWrapper(new IntervalConstraintCreateCommandCN(req));
+ }
+ if(UMLElementTypes.InteractionConstraint_3119 == req.getElementType()) {
+ return getGEFWrapper(new InteractionConstraintCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Constraint_3120 == req.getElementType()) {
+ return getGEFWrapper(new ConstraintCreateCommandCN(req));
+ }
+ return super.getCreateCommand(req);
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/CollaborationCompositeCompartmentItemSemanticEditPolicyCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/CollaborationCompositeCompartmentItemSemanticEditPolicyCN.java
new file mode 100644
index 00000000000..2e80382a1c9
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/CollaborationCompositeCompartmentItemSemanticEditPolicyCN.java
@@ -0,0 +1,75 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.policies;
+
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CollaborationRoleCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CollaborationUseCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationConstraintCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InteractionConstraintCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.IntervalConstraintCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.PropertyPartCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeConstraintCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+
+/**
+ * @generated
+ */
+public class CollaborationCompositeCompartmentItemSemanticEditPolicyCN extends UMLBaseItemSemanticEditPolicy {
+
+ /**
+ * @generated
+ */
+ public CollaborationCompositeCompartmentItemSemanticEditPolicyCN() {
+ super(UMLElementTypes.Collaboration_3086);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCreateCommand(CreateElementRequest req) {
+ if(UMLElementTypes.Property_3070 == req.getElementType()) {
+ return getGEFWrapper(new PropertyPartCreateCommandCN(req));
+ }
+ if(UMLElementTypes.CollaborationUse_3071 == req.getElementType()) {
+ return getGEFWrapper(new CollaborationUseCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Comment_3097 == req.getElementType()) {
+ return getGEFWrapper(new CommentCreateCommandCN(req));
+ }
+ if(UMLElementTypes.ConnectableElement_3115 == req.getElementType()) {
+ return getGEFWrapper(new CollaborationRoleCreateCommandCN(req));
+ }
+ if(UMLElementTypes.DurationConstraint_3116 == req.getElementType()) {
+ return getGEFWrapper(new DurationConstraintCreateCommandCN(req));
+ }
+ if(UMLElementTypes.TimeConstraint_3117 == req.getElementType()) {
+ return getGEFWrapper(new TimeConstraintCreateCommandCN(req));
+ }
+ if(UMLElementTypes.IntervalConstraint_3118 == req.getElementType()) {
+ return getGEFWrapper(new IntervalConstraintCreateCommandCN(req));
+ }
+ if(UMLElementTypes.InteractionConstraint_3119 == req.getElementType()) {
+ return getGEFWrapper(new InteractionConstraintCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Constraint_3120 == req.getElementType()) {
+ return getGEFWrapper(new ConstraintCreateCommandCN(req));
+ }
+ return super.getCreateCommand(req);
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/CollaborationCompositeItemSemanticEditPolicy.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/CollaborationCompositeItemSemanticEditPolicy.java
new file mode 100644
index 00000000000..b6a309a5839
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/CollaborationCompositeItemSemanticEditPolicy.java
@@ -0,0 +1,279 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.policies;
+
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.commands.UnexecutableCommand;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.diagram.ui.commands.ICommandProxy;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientReferenceRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientRelationshipRequest;
+import org.eclipse.papyrus.diagram.composite.edit.commands.AbstractionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ComponentRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DependencyCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DeploymentCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.GeneralizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InformationFlowCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InterfaceRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ManifestationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RepresentationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RepresentationReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.SubstitutionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.UsageCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.parts.AbstractionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CommentAnnotatedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ComponentRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ConstraintConstrainedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DependencyEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DeploymentEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DurationObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.GeneralizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InformationFlowEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InterfaceRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ManifestationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RepresentationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RoleBindingEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.SubstitutionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.TimeObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.UsageEditPart;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.service.edit.service.ElementEditServiceUtils;
+import org.eclipse.papyrus.service.edit.service.IElementEditService;
+
+/**
+ * @generated
+ */
+public class CollaborationCompositeItemSemanticEditPolicy extends UMLBaseItemSemanticEditPolicy {
+
+ /**
+ * @generated
+ */
+ public CollaborationCompositeItemSemanticEditPolicy() {
+ super(UMLElementTypes.Collaboration_2075);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getDestroyElementCommand(DestroyElementRequest req) {
+ EObject selectedEObject = req.getElementToDestroy();
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(selectedEObject);
+ if(provider != null) {
+ // Retrieve delete command from the Element Edit service
+ ICommand deleteCommand = provider.getEditCommand(req);
+
+ if(deleteCommand != null) {
+ return new ICommandProxy(deleteCommand);
+ }
+ }
+ return UnexecutableCommand.INSTANCE;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCreateRelationshipCommand(CreateRelationshipRequest req) {
+ Command command = req.getTarget() == null ? getStartCreateRelationshipCommand(req) : getCompleteCreateRelationshipCommand(req);
+ return command != null ? command : super.getCreateRelationshipCommand(req);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getStartCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Generalization_4015 == req.getElementType()) {
+ return getGEFWrapper(new GeneralizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.InformationItemRepresented_4020 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCompleteCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return getGEFWrapper(new CommentAnnotatedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return getGEFWrapper(new ConstraintConstrainedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Generalization_4015 == req.getElementType()) {
+ return getGEFWrapper(new GeneralizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return getGEFWrapper(new TimeObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return getGEFWrapper(new DurationObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InformationItemRepresented_4020 == req.getElementType()) {
+ return getGEFWrapper(new RepresentationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * Returns command to reorient EClass based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientRelationshipCommand(ReorientRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case ComponentRealizationEditPart.VISUAL_ID:
+ case InterfaceRealizationEditPart.VISUAL_ID:
+ case SubstitutionEditPart.VISUAL_ID:
+ case RealizationEditPart.VISUAL_ID:
+ case ManifestationEditPart.VISUAL_ID:
+ case AbstractionEditPart.VISUAL_ID:
+ case UsageEditPart.VISUAL_ID:
+ case DeploymentEditPart.VISUAL_ID:
+ case DependencyEditPart.VISUAL_ID:
+ case GeneralizationEditPart.VISUAL_ID:
+ case InformationFlowEditPart.VISUAL_ID:
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(req.getRelationship());
+ if(provider == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ // Retrieve re-orient command from the Element Edit service
+ ICommand reorientCommand = provider.getEditCommand(req);
+ if(reorientCommand == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ return getGEFWrapper(reorientCommand.reduce());
+ case RoleBindingEditPart.VISUAL_ID:
+ return getGEFWrapper(new RoleBindingReorientCommand(req));
+ }
+ return super.getReorientRelationshipCommand(req);
+ }
+
+ /**
+ * Returns command to reorient EReference based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientReferenceRelationshipCommand(ReorientReferenceRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case CommentAnnotatedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new CommentAnnotatedElementReorientCommand(req));
+ case ConstraintConstrainedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new ConstraintConstrainedElementReorientCommand(req));
+ case TimeObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new TimeObservationEventReorientCommand(req));
+ case DurationObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new DurationObservationEventReorientCommand(req));
+ case RepresentationEditPart.VISUAL_ID:
+ return getGEFWrapper(new RepresentationReorientCommand(req));
+ }
+ return super.getReorientReferenceRelationshipCommand(req);
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/CollaborationCompositeItemSemanticEditPolicyCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/CollaborationCompositeItemSemanticEditPolicyCN.java
new file mode 100644
index 00000000000..ced50c5cd59
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/CollaborationCompositeItemSemanticEditPolicyCN.java
@@ -0,0 +1,279 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.policies;
+
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.commands.UnexecutableCommand;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.diagram.ui.commands.ICommandProxy;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientReferenceRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientRelationshipRequest;
+import org.eclipse.papyrus.diagram.composite.edit.commands.AbstractionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ComponentRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DependencyCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DeploymentCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.GeneralizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InformationFlowCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InterfaceRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ManifestationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RepresentationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RepresentationReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.SubstitutionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.UsageCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.parts.AbstractionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CommentAnnotatedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ComponentRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ConstraintConstrainedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DependencyEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DeploymentEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DurationObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.GeneralizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InformationFlowEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InterfaceRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ManifestationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RepresentationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RoleBindingEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.SubstitutionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.TimeObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.UsageEditPart;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.service.edit.service.ElementEditServiceUtils;
+import org.eclipse.papyrus.service.edit.service.IElementEditService;
+
+/**
+ * @generated
+ */
+public class CollaborationCompositeItemSemanticEditPolicyCN extends UMLBaseItemSemanticEditPolicy {
+
+ /**
+ * @generated
+ */
+ public CollaborationCompositeItemSemanticEditPolicyCN() {
+ super(UMLElementTypes.Collaboration_3086);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getDestroyElementCommand(DestroyElementRequest req) {
+ EObject selectedEObject = req.getElementToDestroy();
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(selectedEObject);
+ if(provider != null) {
+ // Retrieve delete command from the Element Edit service
+ ICommand deleteCommand = provider.getEditCommand(req);
+
+ if(deleteCommand != null) {
+ return new ICommandProxy(deleteCommand);
+ }
+ }
+ return UnexecutableCommand.INSTANCE;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCreateRelationshipCommand(CreateRelationshipRequest req) {
+ Command command = req.getTarget() == null ? getStartCreateRelationshipCommand(req) : getCompleteCreateRelationshipCommand(req);
+ return command != null ? command : super.getCreateRelationshipCommand(req);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getStartCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Generalization_4015 == req.getElementType()) {
+ return getGEFWrapper(new GeneralizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.InformationItemRepresented_4020 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCompleteCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return getGEFWrapper(new CommentAnnotatedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return getGEFWrapper(new ConstraintConstrainedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Generalization_4015 == req.getElementType()) {
+ return getGEFWrapper(new GeneralizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return getGEFWrapper(new TimeObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return getGEFWrapper(new DurationObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InformationItemRepresented_4020 == req.getElementType()) {
+ return getGEFWrapper(new RepresentationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * Returns command to reorient EClass based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientRelationshipCommand(ReorientRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case ComponentRealizationEditPart.VISUAL_ID:
+ case InterfaceRealizationEditPart.VISUAL_ID:
+ case SubstitutionEditPart.VISUAL_ID:
+ case RealizationEditPart.VISUAL_ID:
+ case ManifestationEditPart.VISUAL_ID:
+ case AbstractionEditPart.VISUAL_ID:
+ case UsageEditPart.VISUAL_ID:
+ case DeploymentEditPart.VISUAL_ID:
+ case DependencyEditPart.VISUAL_ID:
+ case GeneralizationEditPart.VISUAL_ID:
+ case InformationFlowEditPart.VISUAL_ID:
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(req.getRelationship());
+ if(provider == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ // Retrieve re-orient command from the Element Edit service
+ ICommand reorientCommand = provider.getEditCommand(req);
+ if(reorientCommand == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ return getGEFWrapper(reorientCommand.reduce());
+ case RoleBindingEditPart.VISUAL_ID:
+ return getGEFWrapper(new RoleBindingReorientCommand(req));
+ }
+ return super.getReorientRelationshipCommand(req);
+ }
+
+ /**
+ * Returns command to reorient EReference based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientReferenceRelationshipCommand(ReorientReferenceRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case CommentAnnotatedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new CommentAnnotatedElementReorientCommand(req));
+ case ConstraintConstrainedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new ConstraintConstrainedElementReorientCommand(req));
+ case TimeObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new TimeObservationEventReorientCommand(req));
+ case DurationObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new DurationObservationEventReorientCommand(req));
+ case RepresentationEditPart.VISUAL_ID:
+ return getGEFWrapper(new RepresentationReorientCommand(req));
+ }
+ return super.getReorientReferenceRelationshipCommand(req);
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/CollaborationItemSemanticEditPolicyCLN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/CollaborationItemSemanticEditPolicyCLN.java
new file mode 100644
index 00000000000..74e84bda4a7
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/CollaborationItemSemanticEditPolicyCLN.java
@@ -0,0 +1,64 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.policies;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import org.eclipse.emf.ecore.EAnnotation;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.edit.command.DeleteCommand;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gmf.runtime.emf.commands.core.command.CompositeTransactionalCommand;
+import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.commands.wrappers.EMFtoGMFCommandWrapper;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+
+/**
+ * @generated
+ */
+public class CollaborationItemSemanticEditPolicyCLN extends UMLBaseItemSemanticEditPolicy {
+
+ /**
+ * @generated
+ */
+ public CollaborationItemSemanticEditPolicyCLN() {
+ super(UMLElementTypes.Collaboration_3109);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getDestroyElementCommand(DestroyElementRequest req) {
+ View view = (View)getHost().getModel();
+ CompositeTransactionalCommand cmd = new CompositeTransactionalCommand(getEditingDomain(), null);
+ cmd.setTransactionNestingEnabled(true);
+
+ EAnnotation annotation = view.getEAnnotation("Shortcut"); //$NON-NLS-1$
+ if(annotation == null) {
+ // there are indirectly referenced children, need extra commands: false
+ addDestroyShortcutsCommand(cmd, view);
+ // delete host element
+ List<EObject> todestroy = new ArrayList<EObject>();
+ todestroy.add(req.getElementToDestroy());
+ //cmd.add(new org.eclipse.gmf.runtime.emf.type.core.commands.DestroyElementCommand(req));
+ cmd.add(new EMFtoGMFCommandWrapper(new DeleteCommand(getEditingDomain(), todestroy)));
+ } else {
+ cmd.add(new org.eclipse.gmf.runtime.diagram.core.commands.DeleteCommand(getEditingDomain(), view));
+ }
+ return getGEFWrapper(cmd.reduce());
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/CollaborationRoleItemSemanticEditPolicyCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/CollaborationRoleItemSemanticEditPolicyCN.java
new file mode 100644
index 00000000000..2bd243068bd
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/CollaborationRoleItemSemanticEditPolicyCN.java
@@ -0,0 +1,259 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.policies;
+
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.commands.UnexecutableCommand;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.diagram.ui.commands.ICommandProxy;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientReferenceRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientRelationshipRequest;
+import org.eclipse.papyrus.diagram.composite.edit.commands.AbstractionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ComponentRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DependencyCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DeploymentCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InformationFlowCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InterfaceRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ManifestationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.SubstitutionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.UsageCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.parts.AbstractionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CommentAnnotatedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ComponentRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ConstraintConstrainedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DependencyEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DeploymentEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DurationObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InformationFlowEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InterfaceRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ManifestationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RoleBindingEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.SubstitutionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.TimeObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.UsageEditPart;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.service.edit.service.ElementEditServiceUtils;
+import org.eclipse.papyrus.service.edit.service.IElementEditService;
+
+/**
+ * @generated
+ */
+public class CollaborationRoleItemSemanticEditPolicyCN extends UMLBaseItemSemanticEditPolicy {
+
+ /**
+ * @generated
+ */
+ public CollaborationRoleItemSemanticEditPolicyCN() {
+ super(UMLElementTypes.ConnectableElement_3115);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getDestroyElementCommand(DestroyElementRequest req) {
+ EObject selectedEObject = req.getElementToDestroy();
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(selectedEObject);
+ if(provider != null) {
+ // Retrieve delete command from the Element Edit service
+ ICommand deleteCommand = provider.getEditCommand(req);
+
+ if(deleteCommand != null) {
+ return new ICommandProxy(deleteCommand);
+ }
+ }
+ return UnexecutableCommand.INSTANCE;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCreateRelationshipCommand(CreateRelationshipRequest req) {
+ Command command = req.getTarget() == null ? getStartCreateRelationshipCommand(req) : getCompleteCreateRelationshipCommand(req);
+ return command != null ? command : super.getCreateRelationshipCommand(req);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getStartCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCompleteCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return getGEFWrapper(new CommentAnnotatedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return getGEFWrapper(new ConstraintConstrainedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return getGEFWrapper(new TimeObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return getGEFWrapper(new DurationObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * Returns command to reorient EClass based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientRelationshipCommand(ReorientRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case ComponentRealizationEditPart.VISUAL_ID:
+ case InterfaceRealizationEditPart.VISUAL_ID:
+ case SubstitutionEditPart.VISUAL_ID:
+ case RealizationEditPart.VISUAL_ID:
+ case ManifestationEditPart.VISUAL_ID:
+ case AbstractionEditPart.VISUAL_ID:
+ case UsageEditPart.VISUAL_ID:
+ case DeploymentEditPart.VISUAL_ID:
+ case DependencyEditPart.VISUAL_ID:
+ case InformationFlowEditPart.VISUAL_ID:
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(req.getRelationship());
+ if(provider == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ // Retrieve re-orient command from the Element Edit service
+ ICommand reorientCommand = provider.getEditCommand(req);
+ if(reorientCommand == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ return getGEFWrapper(reorientCommand.reduce());
+ case RoleBindingEditPart.VISUAL_ID:
+ return getGEFWrapper(new RoleBindingReorientCommand(req));
+ }
+ return super.getReorientRelationshipCommand(req);
+ }
+
+ /**
+ * Returns command to reorient EReference based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientReferenceRelationshipCommand(ReorientReferenceRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case CommentAnnotatedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new CommentAnnotatedElementReorientCommand(req));
+ case ConstraintConstrainedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new ConstraintConstrainedElementReorientCommand(req));
+ case TimeObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new TimeObservationEventReorientCommand(req));
+ case DurationObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new DurationObservationEventReorientCommand(req));
+ }
+ return super.getReorientReferenceRelationshipCommand(req);
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/CollaborationUseItemSemanticEditPolicyCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/CollaborationUseItemSemanticEditPolicyCN.java
new file mode 100644
index 00000000000..ce8c3627b4f
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/CollaborationUseItemSemanticEditPolicyCN.java
@@ -0,0 +1,259 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.policies;
+
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.commands.UnexecutableCommand;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.diagram.ui.commands.ICommandProxy;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientReferenceRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientRelationshipRequest;
+import org.eclipse.papyrus.diagram.composite.edit.commands.AbstractionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ComponentRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DependencyCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DeploymentCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InformationFlowCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InterfaceRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ManifestationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.SubstitutionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.UsageCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.parts.AbstractionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CommentAnnotatedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ComponentRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ConstraintConstrainedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DependencyEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DeploymentEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DurationObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InformationFlowEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InterfaceRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ManifestationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RoleBindingEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.SubstitutionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.TimeObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.UsageEditPart;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.service.edit.service.ElementEditServiceUtils;
+import org.eclipse.papyrus.service.edit.service.IElementEditService;
+
+/**
+ * @generated
+ */
+public class CollaborationUseItemSemanticEditPolicyCN extends UMLBaseItemSemanticEditPolicy {
+
+ /**
+ * @generated
+ */
+ public CollaborationUseItemSemanticEditPolicyCN() {
+ super(UMLElementTypes.CollaborationUse_3071);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getDestroyElementCommand(DestroyElementRequest req) {
+ EObject selectedEObject = req.getElementToDestroy();
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(selectedEObject);
+ if(provider != null) {
+ // Retrieve delete command from the Element Edit service
+ ICommand deleteCommand = provider.getEditCommand(req);
+
+ if(deleteCommand != null) {
+ return new ICommandProxy(deleteCommand);
+ }
+ }
+ return UnexecutableCommand.INSTANCE;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCreateRelationshipCommand(CreateRelationshipRequest req) {
+ Command command = req.getTarget() == null ? getStartCreateRelationshipCommand(req) : getCompleteCreateRelationshipCommand(req);
+ return command != null ? command : super.getCreateRelationshipCommand(req);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getStartCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCompleteCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return getGEFWrapper(new CommentAnnotatedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return getGEFWrapper(new ConstraintConstrainedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return getGEFWrapper(new TimeObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return getGEFWrapper(new DurationObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * Returns command to reorient EClass based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientRelationshipCommand(ReorientRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case ComponentRealizationEditPart.VISUAL_ID:
+ case InterfaceRealizationEditPart.VISUAL_ID:
+ case SubstitutionEditPart.VISUAL_ID:
+ case RealizationEditPart.VISUAL_ID:
+ case ManifestationEditPart.VISUAL_ID:
+ case AbstractionEditPart.VISUAL_ID:
+ case UsageEditPart.VISUAL_ID:
+ case DeploymentEditPart.VISUAL_ID:
+ case DependencyEditPart.VISUAL_ID:
+ case InformationFlowEditPart.VISUAL_ID:
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(req.getRelationship());
+ if(provider == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ // Retrieve re-orient command from the Element Edit service
+ ICommand reorientCommand = provider.getEditCommand(req);
+ if(reorientCommand == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ return getGEFWrapper(reorientCommand.reduce());
+ case RoleBindingEditPart.VISUAL_ID:
+ return getGEFWrapper(new RoleBindingReorientCommand(req));
+ }
+ return super.getReorientRelationshipCommand(req);
+ }
+
+ /**
+ * Returns command to reorient EReference based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientReferenceRelationshipCommand(ReorientReferenceRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case CommentAnnotatedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new CommentAnnotatedElementReorientCommand(req));
+ case ConstraintConstrainedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new ConstraintConstrainedElementReorientCommand(req));
+ case TimeObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new TimeObservationEventReorientCommand(req));
+ case DurationObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new DurationObservationEventReorientCommand(req));
+ }
+ return super.getReorientReferenceRelationshipCommand(req);
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/CommentAnnotatedElementItemSemanticEditPolicy.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/CommentAnnotatedElementItemSemanticEditPolicy.java
new file mode 100644
index 00000000000..e90bdf8c63f
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/CommentAnnotatedElementItemSemanticEditPolicy.java
@@ -0,0 +1,40 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.policies;
+
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gmf.runtime.emf.type.core.commands.DestroyReferenceCommand;
+import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyReferenceRequest;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+
+/**
+ * @generated
+ */
+public class CommentAnnotatedElementItemSemanticEditPolicy extends UMLBaseItemSemanticEditPolicy {
+
+ /**
+ * @generated
+ */
+ public CommentAnnotatedElementItemSemanticEditPolicy() {
+ super(UMLElementTypes.CommentAnnotatedElement_4002);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getDestroyReferenceCommand(DestroyReferenceRequest req) {
+ return getGEFWrapper(new DestroyReferenceCommand(req));
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/CommentItemSemanticEditPolicy.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/CommentItemSemanticEditPolicy.java
new file mode 100644
index 00000000000..7e9edde4c7f
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/CommentItemSemanticEditPolicy.java
@@ -0,0 +1,113 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.policies;
+
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.commands.UnexecutableCommand;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.diagram.ui.commands.ICommandProxy;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientReferenceRelationshipRequest;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CommentAnnotatedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ConstraintConstrainedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.service.edit.service.ElementEditServiceUtils;
+import org.eclipse.papyrus.service.edit.service.IElementEditService;
+
+/**
+ * @generated
+ */
+public class CommentItemSemanticEditPolicy extends UMLBaseItemSemanticEditPolicy {
+
+ /**
+ * @generated
+ */
+ public CommentItemSemanticEditPolicy() {
+ super(UMLElementTypes.Comment_2109);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getDestroyElementCommand(DestroyElementRequest req) {
+ EObject selectedEObject = req.getElementToDestroy();
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(selectedEObject);
+ if(provider != null) {
+ // Retrieve delete command from the Element Edit service
+ ICommand deleteCommand = provider.getEditCommand(req);
+
+ if(deleteCommand != null) {
+ return new ICommandProxy(deleteCommand);
+ }
+ }
+ return UnexecutableCommand.INSTANCE;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCreateRelationshipCommand(CreateRelationshipRequest req) {
+ Command command = req.getTarget() == null ? getStartCreateRelationshipCommand(req) : getCompleteCreateRelationshipCommand(req);
+ return command != null ? command : super.getCreateRelationshipCommand(req);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getStartCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return getGEFWrapper(new CommentAnnotatedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return null;
+ }
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCompleteCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return getGEFWrapper(new CommentAnnotatedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return getGEFWrapper(new ConstraintConstrainedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * Returns command to reorient EReference based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientReferenceRelationshipCommand(ReorientReferenceRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case CommentAnnotatedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new CommentAnnotatedElementReorientCommand(req));
+ case ConstraintConstrainedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new ConstraintConstrainedElementReorientCommand(req));
+ }
+ return super.getReorientReferenceRelationshipCommand(req);
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/CommentItemSemanticEditPolicyCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/CommentItemSemanticEditPolicyCN.java
new file mode 100644
index 00000000000..a4ad34430b4
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/CommentItemSemanticEditPolicyCN.java
@@ -0,0 +1,113 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.policies;
+
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.commands.UnexecutableCommand;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.diagram.ui.commands.ICommandProxy;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientReferenceRelationshipRequest;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CommentAnnotatedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ConstraintConstrainedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.service.edit.service.ElementEditServiceUtils;
+import org.eclipse.papyrus.service.edit.service.IElementEditService;
+
+/**
+ * @generated
+ */
+public class CommentItemSemanticEditPolicyCN extends UMLBaseItemSemanticEditPolicy {
+
+ /**
+ * @generated
+ */
+ public CommentItemSemanticEditPolicyCN() {
+ super(UMLElementTypes.Comment_3097);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getDestroyElementCommand(DestroyElementRequest req) {
+ EObject selectedEObject = req.getElementToDestroy();
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(selectedEObject);
+ if(provider != null) {
+ // Retrieve delete command from the Element Edit service
+ ICommand deleteCommand = provider.getEditCommand(req);
+
+ if(deleteCommand != null) {
+ return new ICommandProxy(deleteCommand);
+ }
+ }
+ return UnexecutableCommand.INSTANCE;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCreateRelationshipCommand(CreateRelationshipRequest req) {
+ Command command = req.getTarget() == null ? getStartCreateRelationshipCommand(req) : getCompleteCreateRelationshipCommand(req);
+ return command != null ? command : super.getCreateRelationshipCommand(req);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getStartCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return getGEFWrapper(new CommentAnnotatedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return null;
+ }
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCompleteCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return getGEFWrapper(new CommentAnnotatedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return getGEFWrapper(new ConstraintConstrainedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * Returns command to reorient EReference based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientReferenceRelationshipCommand(ReorientReferenceRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case CommentAnnotatedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new CommentAnnotatedElementReorientCommand(req));
+ case ConstraintConstrainedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new ConstraintConstrainedElementReorientCommand(req));
+ }
+ return super.getReorientReferenceRelationshipCommand(req);
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/ComponentCompositeCompartmentItemSemanticEditPolicy.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/ComponentCompositeCompartmentItemSemanticEditPolicy.java
new file mode 100644
index 00000000000..13d1533ac82
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/ComponentCompositeCompartmentItemSemanticEditPolicy.java
@@ -0,0 +1,163 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.policies;
+
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ActivityCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ActorCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ArtifactCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ClassCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CollaborationCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CollaborationUseCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ComponentCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DataTypeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DeploymentSpecificationCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DeviceCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationConstraintCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.EnumerationCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ExecutionEnvironmentCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.FunctionBehaviorCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InformationItemCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InteractionCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InteractionConstraintCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InterfaceCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.IntervalConstraintCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.NodeCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.OpaqueBehaviorCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.PortCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.PrimitiveTypeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.PropertyPartCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ProtocolStateMachineCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.SignalCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.StateMachineCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeConstraintCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.UseCaseCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+
+/**
+ * @generated
+ */
+public class ComponentCompositeCompartmentItemSemanticEditPolicy extends UMLBaseItemSemanticEditPolicy {
+
+ /**
+ * @generated
+ */
+ public ComponentCompositeCompartmentItemSemanticEditPolicy() {
+ super(UMLElementTypes.Component_2069);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCreateCommand(CreateElementRequest req) {
+ if(UMLElementTypes.Port_3069 == req.getElementType()) {
+ return getGEFWrapper(new PortCreateCommand(req));
+ }
+ if(UMLElementTypes.Property_3070 == req.getElementType()) {
+ return getGEFWrapper(new PropertyPartCreateCommandCN(req));
+ }
+ if(UMLElementTypes.CollaborationUse_3071 == req.getElementType()) {
+ return getGEFWrapper(new CollaborationUseCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Activity_3072 == req.getElementType()) {
+ return getGEFWrapper(new ActivityCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Interaction_3073 == req.getElementType()) {
+ return getGEFWrapper(new InteractionCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.ProtocolStateMachine_3074 == req.getElementType()) {
+ return getGEFWrapper(new ProtocolStateMachineCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.StateMachine_3075 == req.getElementType()) {
+ return getGEFWrapper(new StateMachineCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.FunctionBehavior_3076 == req.getElementType()) {
+ return getGEFWrapper(new FunctionBehaviorCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.OpaqueBehavior_3077 == req.getElementType()) {
+ return getGEFWrapper(new OpaqueBehaviorCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Component_3081 == req.getElementType()) {
+ return getGEFWrapper(new ComponentCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Device_3082 == req.getElementType()) {
+ return getGEFWrapper(new DeviceCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.ExecutionEnvironment_3083 == req.getElementType()) {
+ return getGEFWrapper(new ExecutionEnvironmentCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Node_3084 == req.getElementType()) {
+ return getGEFWrapper(new NodeCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Class_3085 == req.getElementType()) {
+ return getGEFWrapper(new ClassCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Collaboration_3086 == req.getElementType()) {
+ return getGEFWrapper(new CollaborationCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Interface_3087 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceCreateCommandCN(req));
+ }
+ if(UMLElementTypes.PrimitiveType_3078 == req.getElementType()) {
+ return getGEFWrapper(new PrimitiveTypeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Enumeration_3079 == req.getElementType()) {
+ return getGEFWrapper(new EnumerationCreateCommandCN(req));
+ }
+ if(UMLElementTypes.DataType_3080 == req.getElementType()) {
+ return getGEFWrapper(new DataTypeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Actor_3091 == req.getElementType()) {
+ return getGEFWrapper(new ActorCreateCommandCN(req));
+ }
+ if(UMLElementTypes.DeploymentSpecification_3092 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentSpecificationCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Artifact_3093 == req.getElementType()) {
+ return getGEFWrapper(new ArtifactCreateCommandCN(req));
+ }
+ if(UMLElementTypes.InformationItem_3094 == req.getElementType()) {
+ return getGEFWrapper(new InformationItemCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Signal_3095 == req.getElementType()) {
+ return getGEFWrapper(new SignalCreateCommandCN(req));
+ }
+ if(UMLElementTypes.UseCase_3096 == req.getElementType()) {
+ return getGEFWrapper(new UseCaseCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Comment_3097 == req.getElementType()) {
+ return getGEFWrapper(new CommentCreateCommandCN(req));
+ }
+ if(UMLElementTypes.DurationConstraint_3116 == req.getElementType()) {
+ return getGEFWrapper(new DurationConstraintCreateCommandCN(req));
+ }
+ if(UMLElementTypes.TimeConstraint_3117 == req.getElementType()) {
+ return getGEFWrapper(new TimeConstraintCreateCommandCN(req));
+ }
+ if(UMLElementTypes.IntervalConstraint_3118 == req.getElementType()) {
+ return getGEFWrapper(new IntervalConstraintCreateCommandCN(req));
+ }
+ if(UMLElementTypes.InteractionConstraint_3119 == req.getElementType()) {
+ return getGEFWrapper(new InteractionConstraintCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Constraint_3120 == req.getElementType()) {
+ return getGEFWrapper(new ConstraintCreateCommandCN(req));
+ }
+ return super.getCreateCommand(req);
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/ComponentCompositeCompartmentItemSemanticEditPolicyCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/ComponentCompositeCompartmentItemSemanticEditPolicyCN.java
new file mode 100644
index 00000000000..be69a80a270
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/ComponentCompositeCompartmentItemSemanticEditPolicyCN.java
@@ -0,0 +1,163 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.policies;
+
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ActivityCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ActorCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ArtifactCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ClassCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CollaborationCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CollaborationUseCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ComponentCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DataTypeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DeploymentSpecificationCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DeviceCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationConstraintCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.EnumerationCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ExecutionEnvironmentCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.FunctionBehaviorCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InformationItemCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InteractionCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InteractionConstraintCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InterfaceCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.IntervalConstraintCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.NodeCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.OpaqueBehaviorCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.PortCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.PrimitiveTypeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.PropertyPartCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ProtocolStateMachineCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.SignalCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.StateMachineCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeConstraintCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.UseCaseCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+
+/**
+ * @generated
+ */
+public class ComponentCompositeCompartmentItemSemanticEditPolicyCN extends UMLBaseItemSemanticEditPolicy {
+
+ /**
+ * @generated
+ */
+ public ComponentCompositeCompartmentItemSemanticEditPolicyCN() {
+ super(UMLElementTypes.Component_3081);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCreateCommand(CreateElementRequest req) {
+ if(UMLElementTypes.Port_3069 == req.getElementType()) {
+ return getGEFWrapper(new PortCreateCommand(req));
+ }
+ if(UMLElementTypes.Property_3070 == req.getElementType()) {
+ return getGEFWrapper(new PropertyPartCreateCommandCN(req));
+ }
+ if(UMLElementTypes.CollaborationUse_3071 == req.getElementType()) {
+ return getGEFWrapper(new CollaborationUseCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Activity_3072 == req.getElementType()) {
+ return getGEFWrapper(new ActivityCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Interaction_3073 == req.getElementType()) {
+ return getGEFWrapper(new InteractionCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.ProtocolStateMachine_3074 == req.getElementType()) {
+ return getGEFWrapper(new ProtocolStateMachineCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.StateMachine_3075 == req.getElementType()) {
+ return getGEFWrapper(new StateMachineCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.FunctionBehavior_3076 == req.getElementType()) {
+ return getGEFWrapper(new FunctionBehaviorCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.OpaqueBehavior_3077 == req.getElementType()) {
+ return getGEFWrapper(new OpaqueBehaviorCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Component_3081 == req.getElementType()) {
+ return getGEFWrapper(new ComponentCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Device_3082 == req.getElementType()) {
+ return getGEFWrapper(new DeviceCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.ExecutionEnvironment_3083 == req.getElementType()) {
+ return getGEFWrapper(new ExecutionEnvironmentCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Node_3084 == req.getElementType()) {
+ return getGEFWrapper(new NodeCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Class_3085 == req.getElementType()) {
+ return getGEFWrapper(new ClassCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Collaboration_3086 == req.getElementType()) {
+ return getGEFWrapper(new CollaborationCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Interface_3087 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceCreateCommandCN(req));
+ }
+ if(UMLElementTypes.PrimitiveType_3078 == req.getElementType()) {
+ return getGEFWrapper(new PrimitiveTypeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Enumeration_3079 == req.getElementType()) {
+ return getGEFWrapper(new EnumerationCreateCommandCN(req));
+ }
+ if(UMLElementTypes.DataType_3080 == req.getElementType()) {
+ return getGEFWrapper(new DataTypeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Actor_3091 == req.getElementType()) {
+ return getGEFWrapper(new ActorCreateCommandCN(req));
+ }
+ if(UMLElementTypes.DeploymentSpecification_3092 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentSpecificationCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Artifact_3093 == req.getElementType()) {
+ return getGEFWrapper(new ArtifactCreateCommandCN(req));
+ }
+ if(UMLElementTypes.InformationItem_3094 == req.getElementType()) {
+ return getGEFWrapper(new InformationItemCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Signal_3095 == req.getElementType()) {
+ return getGEFWrapper(new SignalCreateCommandCN(req));
+ }
+ if(UMLElementTypes.UseCase_3096 == req.getElementType()) {
+ return getGEFWrapper(new UseCaseCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Comment_3097 == req.getElementType()) {
+ return getGEFWrapper(new CommentCreateCommandCN(req));
+ }
+ if(UMLElementTypes.DurationConstraint_3116 == req.getElementType()) {
+ return getGEFWrapper(new DurationConstraintCreateCommandCN(req));
+ }
+ if(UMLElementTypes.TimeConstraint_3117 == req.getElementType()) {
+ return getGEFWrapper(new TimeConstraintCreateCommandCN(req));
+ }
+ if(UMLElementTypes.IntervalConstraint_3118 == req.getElementType()) {
+ return getGEFWrapper(new IntervalConstraintCreateCommandCN(req));
+ }
+ if(UMLElementTypes.InteractionConstraint_3119 == req.getElementType()) {
+ return getGEFWrapper(new InteractionConstraintCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Constraint_3120 == req.getElementType()) {
+ return getGEFWrapper(new ConstraintCreateCommandCN(req));
+ }
+ return super.getCreateCommand(req);
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/ComponentCompositeItemSemanticEditPolicy.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/ComponentCompositeItemSemanticEditPolicy.java
new file mode 100644
index 00000000000..8fdd5996d54
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/ComponentCompositeItemSemanticEditPolicy.java
@@ -0,0 +1,291 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.policies;
+
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.commands.UnexecutableCommand;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.diagram.ui.commands.ICommandProxy;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientReferenceRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientRelationshipRequest;
+import org.eclipse.papyrus.diagram.composite.edit.commands.AbstractionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ComponentRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DependencyCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DeploymentCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.GeneralizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InformationFlowCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InterfaceRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ManifestationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.PortCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RepresentationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RepresentationReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.SubstitutionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.UsageCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.parts.AbstractionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CommentAnnotatedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ComponentRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ConstraintConstrainedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DependencyEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DeploymentEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DurationObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.GeneralizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InformationFlowEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InterfaceRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ManifestationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RepresentationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RoleBindingEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.SubstitutionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.TimeObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.UsageEditPart;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.service.edit.service.ElementEditServiceUtils;
+import org.eclipse.papyrus.service.edit.service.IElementEditService;
+
+/**
+ * @generated
+ */
+public class ComponentCompositeItemSemanticEditPolicy extends UMLBaseItemSemanticEditPolicy {
+
+ /**
+ * @generated
+ */
+ public ComponentCompositeItemSemanticEditPolicy() {
+ super(UMLElementTypes.Component_2069);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCreateCommand(CreateElementRequest req) {
+ if(UMLElementTypes.Port_3069 == req.getElementType()) {
+ return getGEFWrapper(new PortCreateCommand(req));
+ }
+ return super.getCreateCommand(req);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getDestroyElementCommand(DestroyElementRequest req) {
+ EObject selectedEObject = req.getElementToDestroy();
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(selectedEObject);
+ if(provider != null) {
+ // Retrieve delete command from the Element Edit service
+ ICommand deleteCommand = provider.getEditCommand(req);
+
+ if(deleteCommand != null) {
+ return new ICommandProxy(deleteCommand);
+ }
+ }
+ return UnexecutableCommand.INSTANCE;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCreateRelationshipCommand(CreateRelationshipRequest req) {
+ Command command = req.getTarget() == null ? getStartCreateRelationshipCommand(req) : getCompleteCreateRelationshipCommand(req);
+ return command != null ? command : super.getCreateRelationshipCommand(req);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getStartCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Generalization_4015 == req.getElementType()) {
+ return getGEFWrapper(new GeneralizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.InformationItemRepresented_4020 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCompleteCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return getGEFWrapper(new CommentAnnotatedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return getGEFWrapper(new ConstraintConstrainedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Generalization_4015 == req.getElementType()) {
+ return getGEFWrapper(new GeneralizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return getGEFWrapper(new TimeObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return getGEFWrapper(new DurationObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InformationItemRepresented_4020 == req.getElementType()) {
+ return getGEFWrapper(new RepresentationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * Returns command to reorient EClass based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientRelationshipCommand(ReorientRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case ComponentRealizationEditPart.VISUAL_ID:
+ case InterfaceRealizationEditPart.VISUAL_ID:
+ case SubstitutionEditPart.VISUAL_ID:
+ case RealizationEditPart.VISUAL_ID:
+ case ManifestationEditPart.VISUAL_ID:
+ case AbstractionEditPart.VISUAL_ID:
+ case UsageEditPart.VISUAL_ID:
+ case DeploymentEditPart.VISUAL_ID:
+ case DependencyEditPart.VISUAL_ID:
+ case GeneralizationEditPart.VISUAL_ID:
+ case InformationFlowEditPart.VISUAL_ID:
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(req.getRelationship());
+ if(provider == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ // Retrieve re-orient command from the Element Edit service
+ ICommand reorientCommand = provider.getEditCommand(req);
+ if(reorientCommand == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ return getGEFWrapper(reorientCommand.reduce());
+ case RoleBindingEditPart.VISUAL_ID:
+ return getGEFWrapper(new RoleBindingReorientCommand(req));
+ }
+ return super.getReorientRelationshipCommand(req);
+ }
+
+ /**
+ * Returns command to reorient EReference based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientReferenceRelationshipCommand(ReorientReferenceRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case CommentAnnotatedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new CommentAnnotatedElementReorientCommand(req));
+ case ConstraintConstrainedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new ConstraintConstrainedElementReorientCommand(req));
+ case TimeObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new TimeObservationEventReorientCommand(req));
+ case DurationObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new DurationObservationEventReorientCommand(req));
+ case RepresentationEditPart.VISUAL_ID:
+ return getGEFWrapper(new RepresentationReorientCommand(req));
+ }
+ return super.getReorientReferenceRelationshipCommand(req);
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/ComponentCompositeItemSemanticEditPolicyCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/ComponentCompositeItemSemanticEditPolicyCN.java
new file mode 100644
index 00000000000..a17b0c75d8e
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/ComponentCompositeItemSemanticEditPolicyCN.java
@@ -0,0 +1,291 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.policies;
+
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.commands.UnexecutableCommand;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.diagram.ui.commands.ICommandProxy;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientReferenceRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientRelationshipRequest;
+import org.eclipse.papyrus.diagram.composite.edit.commands.AbstractionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ComponentRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DependencyCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DeploymentCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.GeneralizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InformationFlowCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InterfaceRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ManifestationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.PortCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RepresentationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RepresentationReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.SubstitutionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.UsageCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.parts.AbstractionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CommentAnnotatedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ComponentRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ConstraintConstrainedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DependencyEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DeploymentEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DurationObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.GeneralizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InformationFlowEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InterfaceRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ManifestationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RepresentationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RoleBindingEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.SubstitutionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.TimeObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.UsageEditPart;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.service.edit.service.ElementEditServiceUtils;
+import org.eclipse.papyrus.service.edit.service.IElementEditService;
+
+/**
+ * @generated
+ */
+public class ComponentCompositeItemSemanticEditPolicyCN extends UMLBaseItemSemanticEditPolicy {
+
+ /**
+ * @generated
+ */
+ public ComponentCompositeItemSemanticEditPolicyCN() {
+ super(UMLElementTypes.Component_3081);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCreateCommand(CreateElementRequest req) {
+ if(UMLElementTypes.Port_3069 == req.getElementType()) {
+ return getGEFWrapper(new PortCreateCommand(req));
+ }
+ return super.getCreateCommand(req);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getDestroyElementCommand(DestroyElementRequest req) {
+ EObject selectedEObject = req.getElementToDestroy();
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(selectedEObject);
+ if(provider != null) {
+ // Retrieve delete command from the Element Edit service
+ ICommand deleteCommand = provider.getEditCommand(req);
+
+ if(deleteCommand != null) {
+ return new ICommandProxy(deleteCommand);
+ }
+ }
+ return UnexecutableCommand.INSTANCE;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCreateRelationshipCommand(CreateRelationshipRequest req) {
+ Command command = req.getTarget() == null ? getStartCreateRelationshipCommand(req) : getCompleteCreateRelationshipCommand(req);
+ return command != null ? command : super.getCreateRelationshipCommand(req);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getStartCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Generalization_4015 == req.getElementType()) {
+ return getGEFWrapper(new GeneralizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.InformationItemRepresented_4020 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCompleteCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return getGEFWrapper(new CommentAnnotatedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return getGEFWrapper(new ConstraintConstrainedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Generalization_4015 == req.getElementType()) {
+ return getGEFWrapper(new GeneralizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return getGEFWrapper(new TimeObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return getGEFWrapper(new DurationObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InformationItemRepresented_4020 == req.getElementType()) {
+ return getGEFWrapper(new RepresentationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * Returns command to reorient EClass based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientRelationshipCommand(ReorientRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case ComponentRealizationEditPart.VISUAL_ID:
+ case InterfaceRealizationEditPart.VISUAL_ID:
+ case SubstitutionEditPart.VISUAL_ID:
+ case RealizationEditPart.VISUAL_ID:
+ case ManifestationEditPart.VISUAL_ID:
+ case AbstractionEditPart.VISUAL_ID:
+ case UsageEditPart.VISUAL_ID:
+ case DeploymentEditPart.VISUAL_ID:
+ case DependencyEditPart.VISUAL_ID:
+ case GeneralizationEditPart.VISUAL_ID:
+ case InformationFlowEditPart.VISUAL_ID:
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(req.getRelationship());
+ if(provider == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ // Retrieve re-orient command from the Element Edit service
+ ICommand reorientCommand = provider.getEditCommand(req);
+ if(reorientCommand == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ return getGEFWrapper(reorientCommand.reduce());
+ case RoleBindingEditPart.VISUAL_ID:
+ return getGEFWrapper(new RoleBindingReorientCommand(req));
+ }
+ return super.getReorientRelationshipCommand(req);
+ }
+
+ /**
+ * Returns command to reorient EReference based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientReferenceRelationshipCommand(ReorientReferenceRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case CommentAnnotatedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new CommentAnnotatedElementReorientCommand(req));
+ case ConstraintConstrainedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new ConstraintConstrainedElementReorientCommand(req));
+ case TimeObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new TimeObservationEventReorientCommand(req));
+ case DurationObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new DurationObservationEventReorientCommand(req));
+ case RepresentationEditPart.VISUAL_ID:
+ return getGEFWrapper(new RepresentationReorientCommand(req));
+ }
+ return super.getReorientReferenceRelationshipCommand(req);
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/ComponentRealizationItemSemanticEditPolicy.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/ComponentRealizationItemSemanticEditPolicy.java
new file mode 100644
index 00000000000..1d9ef423e25
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/ComponentRealizationItemSemanticEditPolicy.java
@@ -0,0 +1,259 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.policies;
+
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.commands.UnexecutableCommand;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.diagram.ui.commands.ICommandProxy;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientReferenceRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientRelationshipRequest;
+import org.eclipse.papyrus.diagram.composite.edit.commands.AbstractionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ComponentRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DependencyCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DeploymentCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InformationFlowCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InterfaceRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ManifestationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.SubstitutionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.UsageCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.parts.AbstractionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CommentAnnotatedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ComponentRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ConstraintConstrainedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DependencyEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DeploymentEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DurationObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InformationFlowEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InterfaceRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ManifestationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RoleBindingEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.SubstitutionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.TimeObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.UsageEditPart;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.service.edit.service.ElementEditServiceUtils;
+import org.eclipse.papyrus.service.edit.service.IElementEditService;
+
+/**
+ * @generated
+ */
+public class ComponentRealizationItemSemanticEditPolicy extends UMLBaseItemSemanticEditPolicy {
+
+ /**
+ * @generated
+ */
+ public ComponentRealizationItemSemanticEditPolicy() {
+ super(UMLElementTypes.ComponentRealization_4004);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getDestroyElementCommand(DestroyElementRequest req) {
+ EObject selectedEObject = req.getElementToDestroy();
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(selectedEObject);
+ if(provider != null) {
+ // Retrieve delete command from the Element Edit service
+ ICommand deleteCommand = provider.getEditCommand(req);
+
+ if(deleteCommand != null) {
+ return new ICommandProxy(deleteCommand);
+ }
+ }
+ return UnexecutableCommand.INSTANCE;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCreateRelationshipCommand(CreateRelationshipRequest req) {
+ Command command = req.getTarget() == null ? getStartCreateRelationshipCommand(req) : getCompleteCreateRelationshipCommand(req);
+ return command != null ? command : super.getCreateRelationshipCommand(req);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getStartCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCompleteCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return getGEFWrapper(new CommentAnnotatedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return getGEFWrapper(new ConstraintConstrainedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return getGEFWrapper(new TimeObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return getGEFWrapper(new DurationObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * Returns command to reorient EClass based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientRelationshipCommand(ReorientRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case ComponentRealizationEditPart.VISUAL_ID:
+ case InterfaceRealizationEditPart.VISUAL_ID:
+ case SubstitutionEditPart.VISUAL_ID:
+ case RealizationEditPart.VISUAL_ID:
+ case ManifestationEditPart.VISUAL_ID:
+ case AbstractionEditPart.VISUAL_ID:
+ case UsageEditPart.VISUAL_ID:
+ case DeploymentEditPart.VISUAL_ID:
+ case DependencyEditPart.VISUAL_ID:
+ case InformationFlowEditPart.VISUAL_ID:
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(req.getRelationship());
+ if(provider == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ // Retrieve re-orient command from the Element Edit service
+ ICommand reorientCommand = provider.getEditCommand(req);
+ if(reorientCommand == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ return getGEFWrapper(reorientCommand.reduce());
+ case RoleBindingEditPart.VISUAL_ID:
+ return getGEFWrapper(new RoleBindingReorientCommand(req));
+ }
+ return super.getReorientRelationshipCommand(req);
+ }
+
+ /**
+ * Returns command to reorient EReference based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientReferenceRelationshipCommand(ReorientReferenceRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case CommentAnnotatedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new CommentAnnotatedElementReorientCommand(req));
+ case ConstraintConstrainedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new ConstraintConstrainedElementReorientCommand(req));
+ case TimeObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new TimeObservationEventReorientCommand(req));
+ case DurationObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new DurationObservationEventReorientCommand(req));
+ }
+ return super.getReorientReferenceRelationshipCommand(req);
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/CompositeStructureDiagramItemSemanticEditPolicy.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/CompositeStructureDiagramItemSemanticEditPolicy.java
new file mode 100644
index 00000000000..7057f7d4806
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/CompositeStructureDiagramItemSemanticEditPolicy.java
@@ -0,0 +1,291 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.policies;
+
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.DuplicateElementsRequest;
+import org.eclipse.gmf.runtime.notation.Diagram;
+import org.eclipse.papyrus.diagram.common.commands.DuplicateNamedElementCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ActivityCompositeCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ActorCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.AnyReceiveEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ArtifactCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CallEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ChangeEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ClassCompositeCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CollaborationCompositeCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ComponentCompositeCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CreationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DataTypeCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DeploymentSpecificationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DestructionEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DeviceCompositeCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationConstraintCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationIntervalCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.EnumerationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ExecutionEnvironmentCompositeCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ExecutionEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ExpressionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.FunctionBehaviorCompositeCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InformationItemCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InstanceValueCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InteractionCompositeCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InteractionConstraintCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InterfaceCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.IntervalConstraintCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.IntervalCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.LiteralBooleanCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.LiteralIntegerCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.LiteralNullCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.LiteralStringCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.LiteralUnlimitedNaturalCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.NodeCompositeCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.OpaqueBehaviorCompositeCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.OpaqueExpressionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.PrimitiveTypeCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ProtocolStateMachineCompositeCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.SendOperationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.SendSignalEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.SignalCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.SignalEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.StateMachineCompositeCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.StringExpressionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeConstraintCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeExpressionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeIntervalCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.UseCaseCreateCommand;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+
+/**
+ * @generated
+ */
+public class CompositeStructureDiagramItemSemanticEditPolicy extends UMLBaseItemSemanticEditPolicy {
+
+ /**
+ * @generated
+ */
+ public CompositeStructureDiagramItemSemanticEditPolicy() {
+ super(UMLElementTypes.Package_1000);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCreateCommand(CreateElementRequest req) {
+ if(UMLElementTypes.Activity_2060 == req.getElementType()) {
+ return getGEFWrapper(new ActivityCompositeCreateCommand(req));
+ }
+ if(UMLElementTypes.Interaction_2061 == req.getElementType()) {
+ return getGEFWrapper(new InteractionCompositeCreateCommand(req));
+ }
+ if(UMLElementTypes.ProtocolStateMachine_2062 == req.getElementType()) {
+ return getGEFWrapper(new ProtocolStateMachineCompositeCreateCommand(req));
+ }
+ if(UMLElementTypes.StateMachine_2063 == req.getElementType()) {
+ return getGEFWrapper(new StateMachineCompositeCreateCommand(req));
+ }
+ if(UMLElementTypes.FunctionBehavior_2064 == req.getElementType()) {
+ return getGEFWrapper(new FunctionBehaviorCompositeCreateCommand(req));
+ }
+ if(UMLElementTypes.OpaqueBehavior_2065 == req.getElementType()) {
+ return getGEFWrapper(new OpaqueBehaviorCompositeCreateCommand(req));
+ }
+ if(UMLElementTypes.Component_2069 == req.getElementType()) {
+ return getGEFWrapper(new ComponentCompositeCreateCommand(req));
+ }
+ if(UMLElementTypes.Device_2070 == req.getElementType()) {
+ return getGEFWrapper(new DeviceCompositeCreateCommand(req));
+ }
+ if(UMLElementTypes.ExecutionEnvironment_2071 == req.getElementType()) {
+ return getGEFWrapper(new ExecutionEnvironmentCompositeCreateCommand(req));
+ }
+ if(UMLElementTypes.Node_2072 == req.getElementType()) {
+ return getGEFWrapper(new NodeCompositeCreateCommand(req));
+ }
+ if(UMLElementTypes.Class_2073 == req.getElementType()) {
+ return getGEFWrapper(new ClassCompositeCreateCommand(req));
+ }
+ if(UMLElementTypes.Collaboration_2075 == req.getElementType()) {
+ return getGEFWrapper(new CollaborationCompositeCreateCommand(req));
+ }
+ if(UMLElementTypes.Interface_2076 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceCreateCommand(req));
+ }
+ if(UMLElementTypes.PrimitiveType_2066 == req.getElementType()) {
+ return getGEFWrapper(new PrimitiveTypeCreateCommand(req));
+ }
+ if(UMLElementTypes.Enumeration_2067 == req.getElementType()) {
+ return getGEFWrapper(new EnumerationCreateCommand(req));
+ }
+ if(UMLElementTypes.DataType_2068 == req.getElementType()) {
+ return getGEFWrapper(new DataTypeCreateCommand(req));
+ }
+ if(UMLElementTypes.Actor_2077 == req.getElementType()) {
+ return getGEFWrapper(new ActorCreateCommand(req));
+ }
+ if(UMLElementTypes.DeploymentSpecification_2078 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentSpecificationCreateCommand(req));
+ }
+ if(UMLElementTypes.Artifact_2079 == req.getElementType()) {
+ return getGEFWrapper(new ArtifactCreateCommand(req));
+ }
+ if(UMLElementTypes.InformationItem_2080 == req.getElementType()) {
+ return getGEFWrapper(new InformationItemCreateCommand(req));
+ }
+ if(UMLElementTypes.Signal_2081 == req.getElementType()) {
+ return getGEFWrapper(new SignalCreateCommand(req));
+ }
+ if(UMLElementTypes.UseCase_2082 == req.getElementType()) {
+ return getGEFWrapper(new UseCaseCreateCommand(req));
+ }
+ if(UMLElementTypes.SignalEvent_2083 == req.getElementType()) {
+ return getGEFWrapper(new SignalEventCreateCommand(req));
+ }
+ if(UMLElementTypes.CallEvent_2084 == req.getElementType()) {
+ return getGEFWrapper(new CallEventCreateCommand(req));
+ }
+ if(UMLElementTypes.AnyReceiveEvent_2085 == req.getElementType()) {
+ return getGEFWrapper(new AnyReceiveEventCreateCommand(req));
+ }
+ if(UMLElementTypes.SendSignalEvent_2086 == req.getElementType()) {
+ return getGEFWrapper(new SendSignalEventCreateCommand(req));
+ }
+ if(UMLElementTypes.SendOperationEvent_2087 == req.getElementType()) {
+ return getGEFWrapper(new SendOperationEventCreateCommand(req));
+ }
+ if(UMLElementTypes.ChangeEvent_2088 == req.getElementType()) {
+ return getGEFWrapper(new ChangeEventCreateCommand(req));
+ }
+ if(UMLElementTypes.TimeEvent_2089 == req.getElementType()) {
+ return getGEFWrapper(new TimeEventCreateCommand(req));
+ }
+ if(UMLElementTypes.CreationEvent_2090 == req.getElementType()) {
+ return getGEFWrapper(new CreationEventCreateCommand(req));
+ }
+ if(UMLElementTypes.DestructionEvent_2091 == req.getElementType()) {
+ return getGEFWrapper(new DestructionEventCreateCommand(req));
+ }
+ if(UMLElementTypes.ExecutionEvent_2092 == req.getElementType()) {
+ return getGEFWrapper(new ExecutionEventCreateCommand(req));
+ }
+ if(UMLElementTypes.DurationObservation_2093 == req.getElementType()) {
+ return getGEFWrapper(new DurationObservationCreateCommand(req));
+ }
+ if(UMLElementTypes.TimeObservation_2094 == req.getElementType()) {
+ return getGEFWrapper(new TimeObservationCreateCommand(req));
+ }
+ if(UMLElementTypes.LiteralBoolean_2095 == req.getElementType()) {
+ return getGEFWrapper(new LiteralBooleanCreateCommand(req));
+ }
+ if(UMLElementTypes.LiteralInteger_2096 == req.getElementType()) {
+ return getGEFWrapper(new LiteralIntegerCreateCommand(req));
+ }
+ if(UMLElementTypes.LiteralNull_2097 == req.getElementType()) {
+ return getGEFWrapper(new LiteralNullCreateCommand(req));
+ }
+ if(UMLElementTypes.LiteralString_2098 == req.getElementType()) {
+ return getGEFWrapper(new LiteralStringCreateCommand(req));
+ }
+ if(UMLElementTypes.LiteralUnlimitedNatural_2099 == req.getElementType()) {
+ return getGEFWrapper(new LiteralUnlimitedNaturalCreateCommand(req));
+ }
+ if(UMLElementTypes.StringExpression_2100 == req.getElementType()) {
+ return getGEFWrapper(new StringExpressionCreateCommand(req));
+ }
+ if(UMLElementTypes.OpaqueExpression_2101 == req.getElementType()) {
+ return getGEFWrapper(new OpaqueExpressionCreateCommand(req));
+ }
+ if(UMLElementTypes.TimeExpression_2102 == req.getElementType()) {
+ return getGEFWrapper(new TimeExpressionCreateCommand(req));
+ }
+ if(UMLElementTypes.Expression_2103 == req.getElementType()) {
+ return getGEFWrapper(new ExpressionCreateCommand(req));
+ }
+ if(UMLElementTypes.Duration_2104 == req.getElementType()) {
+ return getGEFWrapper(new DurationCreateCommand(req));
+ }
+ if(UMLElementTypes.TimeInterval_2105 == req.getElementType()) {
+ return getGEFWrapper(new TimeIntervalCreateCommand(req));
+ }
+ if(UMLElementTypes.DurationInterval_2106 == req.getElementType()) {
+ return getGEFWrapper(new DurationIntervalCreateCommand(req));
+ }
+ if(UMLElementTypes.Interval_2107 == req.getElementType()) {
+ return getGEFWrapper(new IntervalCreateCommand(req));
+ }
+ if(UMLElementTypes.InstanceValue_2108 == req.getElementType()) {
+ return getGEFWrapper(new InstanceValueCreateCommand(req));
+ }
+ if(UMLElementTypes.Comment_2109 == req.getElementType()) {
+ return getGEFWrapper(new CommentCreateCommand(req));
+ }
+ if(UMLElementTypes.DurationConstraint_2110 == req.getElementType()) {
+ return getGEFWrapper(new DurationConstraintCreateCommand(req));
+ }
+ if(UMLElementTypes.TimeConstraint_2111 == req.getElementType()) {
+ return getGEFWrapper(new TimeConstraintCreateCommand(req));
+ }
+ if(UMLElementTypes.IntervalConstraint_2112 == req.getElementType()) {
+ return getGEFWrapper(new IntervalConstraintCreateCommand(req));
+ }
+ if(UMLElementTypes.InteractionConstraint_2113 == req.getElementType()) {
+ return getGEFWrapper(new InteractionConstraintCreateCommand(req));
+ }
+ if(UMLElementTypes.Constraint_2114 == req.getElementType()) {
+ return getGEFWrapper(new ConstraintCreateCommand(req));
+ }
+ return super.getCreateCommand(req);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getDuplicateCommand(DuplicateElementsRequest req) {
+ TransactionalEditingDomain editingDomain = ((IGraphicalEditPart)getHost()).getEditingDomain();
+ Diagram currentDiagram = null;
+ if(getHost() instanceof IGraphicalEditPart) {
+ currentDiagram = ((IGraphicalEditPart)getHost()).getNotationView().getDiagram();
+ }
+ return getGEFWrapper(new DuplicateAnythingCommand(editingDomain, req, currentDiagram));
+ }
+
+ /**
+ * @generated
+ */
+ private static class DuplicateAnythingCommand extends DuplicateNamedElementCommand {
+
+ /**
+ * @generated
+ */
+ private Diagram diagram;
+
+ /**
+ * @generated
+ */
+ public DuplicateAnythingCommand(TransactionalEditingDomain editingDomain, DuplicateElementsRequest req, Diagram currentDiagram) {
+ super(editingDomain, req.getLabel(), req.getElementsToBeDuplicated(), req.getAllDuplicatedElementsMap(), currentDiagram);
+ this.diagram = currentDiagram;
+ }
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/ConnectorItemSemanticEditPolicy.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/ConnectorItemSemanticEditPolicy.java
new file mode 100644
index 00000000000..a48ec9b2989
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/ConnectorItemSemanticEditPolicy.java
@@ -0,0 +1,259 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.policies;
+
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.commands.UnexecutableCommand;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.diagram.ui.commands.ICommandProxy;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientReferenceRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientRelationshipRequest;
+import org.eclipse.papyrus.diagram.composite.edit.commands.AbstractionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ComponentRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DependencyCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DeploymentCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InformationFlowCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InterfaceRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ManifestationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.SubstitutionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.UsageCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.parts.AbstractionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CommentAnnotatedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ComponentRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ConstraintConstrainedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DependencyEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DeploymentEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DurationObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InformationFlowEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InterfaceRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ManifestationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RoleBindingEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.SubstitutionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.TimeObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.UsageEditPart;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.service.edit.service.ElementEditServiceUtils;
+import org.eclipse.papyrus.service.edit.service.IElementEditService;
+
+/**
+ * @generated
+ */
+public class ConnectorItemSemanticEditPolicy extends UMLBaseItemSemanticEditPolicy {
+
+ /**
+ * @generated
+ */
+ public ConnectorItemSemanticEditPolicy() {
+ super(UMLElementTypes.Connector_4013);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getDestroyElementCommand(DestroyElementRequest req) {
+ EObject selectedEObject = req.getElementToDestroy();
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(selectedEObject);
+ if(provider != null) {
+ // Retrieve delete command from the Element Edit service
+ ICommand deleteCommand = provider.getEditCommand(req);
+
+ if(deleteCommand != null) {
+ return new ICommandProxy(deleteCommand);
+ }
+ }
+ return UnexecutableCommand.INSTANCE;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCreateRelationshipCommand(CreateRelationshipRequest req) {
+ Command command = req.getTarget() == null ? getStartCreateRelationshipCommand(req) : getCompleteCreateRelationshipCommand(req);
+ return command != null ? command : super.getCreateRelationshipCommand(req);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getStartCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCompleteCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return getGEFWrapper(new CommentAnnotatedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return getGEFWrapper(new ConstraintConstrainedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return getGEFWrapper(new TimeObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return getGEFWrapper(new DurationObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * Returns command to reorient EClass based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientRelationshipCommand(ReorientRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case ComponentRealizationEditPart.VISUAL_ID:
+ case InterfaceRealizationEditPart.VISUAL_ID:
+ case SubstitutionEditPart.VISUAL_ID:
+ case RealizationEditPart.VISUAL_ID:
+ case ManifestationEditPart.VISUAL_ID:
+ case AbstractionEditPart.VISUAL_ID:
+ case UsageEditPart.VISUAL_ID:
+ case DeploymentEditPart.VISUAL_ID:
+ case DependencyEditPart.VISUAL_ID:
+ case InformationFlowEditPart.VISUAL_ID:
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(req.getRelationship());
+ if(provider == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ // Retrieve re-orient command from the Element Edit service
+ ICommand reorientCommand = provider.getEditCommand(req);
+ if(reorientCommand == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ return getGEFWrapper(reorientCommand.reduce());
+ case RoleBindingEditPart.VISUAL_ID:
+ return getGEFWrapper(new RoleBindingReorientCommand(req));
+ }
+ return super.getReorientRelationshipCommand(req);
+ }
+
+ /**
+ * Returns command to reorient EReference based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientReferenceRelationshipCommand(ReorientReferenceRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case CommentAnnotatedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new CommentAnnotatedElementReorientCommand(req));
+ case ConstraintConstrainedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new ConstraintConstrainedElementReorientCommand(req));
+ case TimeObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new TimeObservationEventReorientCommand(req));
+ case DurationObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new DurationObservationEventReorientCommand(req));
+ }
+ return super.getReorientReferenceRelationshipCommand(req);
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/ConstraintConstrainedElementItemSemanticEditPolicy.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/ConstraintConstrainedElementItemSemanticEditPolicy.java
new file mode 100644
index 00000000000..e633ef51710
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/ConstraintConstrainedElementItemSemanticEditPolicy.java
@@ -0,0 +1,40 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.policies;
+
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gmf.runtime.emf.type.core.commands.DestroyReferenceCommand;
+import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyReferenceRequest;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+
+/**
+ * @generated
+ */
+public class ConstraintConstrainedElementItemSemanticEditPolicy extends UMLBaseItemSemanticEditPolicy {
+
+ /**
+ * @generated
+ */
+ public ConstraintConstrainedElementItemSemanticEditPolicy() {
+ super(UMLElementTypes.ConstraintConstrainedElement_4003);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getDestroyReferenceCommand(DestroyReferenceRequest req) {
+ return getGEFWrapper(new DestroyReferenceCommand(req));
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/ConstraintItemSemanticEditPolicy.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/ConstraintItemSemanticEditPolicy.java
new file mode 100644
index 00000000000..de85de04c21
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/ConstraintItemSemanticEditPolicy.java
@@ -0,0 +1,259 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.policies;
+
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.commands.UnexecutableCommand;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.diagram.ui.commands.ICommandProxy;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientReferenceRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientRelationshipRequest;
+import org.eclipse.papyrus.diagram.composite.edit.commands.AbstractionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ComponentRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DependencyCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DeploymentCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InformationFlowCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InterfaceRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ManifestationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.SubstitutionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.UsageCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.parts.AbstractionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CommentAnnotatedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ComponentRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ConstraintConstrainedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DependencyEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DeploymentEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DurationObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InformationFlowEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InterfaceRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ManifestationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RoleBindingEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.SubstitutionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.TimeObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.UsageEditPart;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.service.edit.service.ElementEditServiceUtils;
+import org.eclipse.papyrus.service.edit.service.IElementEditService;
+
+/**
+ * @generated
+ */
+public class ConstraintItemSemanticEditPolicy extends UMLBaseItemSemanticEditPolicy {
+
+ /**
+ * @generated
+ */
+ public ConstraintItemSemanticEditPolicy() {
+ super(UMLElementTypes.Constraint_2114);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getDestroyElementCommand(DestroyElementRequest req) {
+ EObject selectedEObject = req.getElementToDestroy();
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(selectedEObject);
+ if(provider != null) {
+ // Retrieve delete command from the Element Edit service
+ ICommand deleteCommand = provider.getEditCommand(req);
+
+ if(deleteCommand != null) {
+ return new ICommandProxy(deleteCommand);
+ }
+ }
+ return UnexecutableCommand.INSTANCE;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCreateRelationshipCommand(CreateRelationshipRequest req) {
+ Command command = req.getTarget() == null ? getStartCreateRelationshipCommand(req) : getCompleteCreateRelationshipCommand(req);
+ return command != null ? command : super.getCreateRelationshipCommand(req);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getStartCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return getGEFWrapper(new ConstraintConstrainedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCompleteCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return getGEFWrapper(new CommentAnnotatedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return getGEFWrapper(new ConstraintConstrainedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return getGEFWrapper(new TimeObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return getGEFWrapper(new DurationObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * Returns command to reorient EClass based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientRelationshipCommand(ReorientRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case ComponentRealizationEditPart.VISUAL_ID:
+ case InterfaceRealizationEditPart.VISUAL_ID:
+ case SubstitutionEditPart.VISUAL_ID:
+ case RealizationEditPart.VISUAL_ID:
+ case ManifestationEditPart.VISUAL_ID:
+ case AbstractionEditPart.VISUAL_ID:
+ case UsageEditPart.VISUAL_ID:
+ case DeploymentEditPart.VISUAL_ID:
+ case DependencyEditPart.VISUAL_ID:
+ case InformationFlowEditPart.VISUAL_ID:
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(req.getRelationship());
+ if(provider == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ // Retrieve re-orient command from the Element Edit service
+ ICommand reorientCommand = provider.getEditCommand(req);
+ if(reorientCommand == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ return getGEFWrapper(reorientCommand.reduce());
+ case RoleBindingEditPart.VISUAL_ID:
+ return getGEFWrapper(new RoleBindingReorientCommand(req));
+ }
+ return super.getReorientRelationshipCommand(req);
+ }
+
+ /**
+ * Returns command to reorient EReference based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientReferenceRelationshipCommand(ReorientReferenceRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case CommentAnnotatedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new CommentAnnotatedElementReorientCommand(req));
+ case ConstraintConstrainedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new ConstraintConstrainedElementReorientCommand(req));
+ case TimeObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new TimeObservationEventReorientCommand(req));
+ case DurationObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new DurationObservationEventReorientCommand(req));
+ }
+ return super.getReorientReferenceRelationshipCommand(req);
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/ConstraintItemSemanticEditPolicyCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/ConstraintItemSemanticEditPolicyCN.java
new file mode 100644
index 00000000000..fae68129766
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/ConstraintItemSemanticEditPolicyCN.java
@@ -0,0 +1,259 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.policies;
+
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.commands.UnexecutableCommand;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.diagram.ui.commands.ICommandProxy;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientReferenceRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientRelationshipRequest;
+import org.eclipse.papyrus.diagram.composite.edit.commands.AbstractionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ComponentRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DependencyCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DeploymentCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InformationFlowCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InterfaceRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ManifestationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.SubstitutionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.UsageCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.parts.AbstractionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CommentAnnotatedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ComponentRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ConstraintConstrainedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DependencyEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DeploymentEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DurationObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InformationFlowEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InterfaceRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ManifestationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RoleBindingEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.SubstitutionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.TimeObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.UsageEditPart;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.service.edit.service.ElementEditServiceUtils;
+import org.eclipse.papyrus.service.edit.service.IElementEditService;
+
+/**
+ * @generated
+ */
+public class ConstraintItemSemanticEditPolicyCN extends UMLBaseItemSemanticEditPolicy {
+
+ /**
+ * @generated
+ */
+ public ConstraintItemSemanticEditPolicyCN() {
+ super(UMLElementTypes.Constraint_3120);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getDestroyElementCommand(DestroyElementRequest req) {
+ EObject selectedEObject = req.getElementToDestroy();
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(selectedEObject);
+ if(provider != null) {
+ // Retrieve delete command from the Element Edit service
+ ICommand deleteCommand = provider.getEditCommand(req);
+
+ if(deleteCommand != null) {
+ return new ICommandProxy(deleteCommand);
+ }
+ }
+ return UnexecutableCommand.INSTANCE;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCreateRelationshipCommand(CreateRelationshipRequest req) {
+ Command command = req.getTarget() == null ? getStartCreateRelationshipCommand(req) : getCompleteCreateRelationshipCommand(req);
+ return command != null ? command : super.getCreateRelationshipCommand(req);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getStartCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return getGEFWrapper(new ConstraintConstrainedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCompleteCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return getGEFWrapper(new CommentAnnotatedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return getGEFWrapper(new ConstraintConstrainedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return getGEFWrapper(new TimeObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return getGEFWrapper(new DurationObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * Returns command to reorient EClass based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientRelationshipCommand(ReorientRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case ComponentRealizationEditPart.VISUAL_ID:
+ case InterfaceRealizationEditPart.VISUAL_ID:
+ case SubstitutionEditPart.VISUAL_ID:
+ case RealizationEditPart.VISUAL_ID:
+ case ManifestationEditPart.VISUAL_ID:
+ case AbstractionEditPart.VISUAL_ID:
+ case UsageEditPart.VISUAL_ID:
+ case DeploymentEditPart.VISUAL_ID:
+ case DependencyEditPart.VISUAL_ID:
+ case InformationFlowEditPart.VISUAL_ID:
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(req.getRelationship());
+ if(provider == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ // Retrieve re-orient command from the Element Edit service
+ ICommand reorientCommand = provider.getEditCommand(req);
+ if(reorientCommand == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ return getGEFWrapper(reorientCommand.reduce());
+ case RoleBindingEditPart.VISUAL_ID:
+ return getGEFWrapper(new RoleBindingReorientCommand(req));
+ }
+ return super.getReorientRelationshipCommand(req);
+ }
+
+ /**
+ * Returns command to reorient EReference based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientReferenceRelationshipCommand(ReorientReferenceRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case CommentAnnotatedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new CommentAnnotatedElementReorientCommand(req));
+ case ConstraintConstrainedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new ConstraintConstrainedElementReorientCommand(req));
+ case TimeObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new TimeObservationEventReorientCommand(req));
+ case DurationObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new DurationObservationEventReorientCommand(req));
+ }
+ return super.getReorientReferenceRelationshipCommand(req);
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/CreationEventItemSemanticEditPolicy.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/CreationEventItemSemanticEditPolicy.java
new file mode 100644
index 00000000000..f455f78b88a
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/CreationEventItemSemanticEditPolicy.java
@@ -0,0 +1,259 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.policies;
+
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.commands.UnexecutableCommand;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.diagram.ui.commands.ICommandProxy;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientReferenceRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientRelationshipRequest;
+import org.eclipse.papyrus.diagram.composite.edit.commands.AbstractionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ComponentRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DependencyCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DeploymentCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InformationFlowCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InterfaceRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ManifestationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.SubstitutionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.UsageCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.parts.AbstractionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CommentAnnotatedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ComponentRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ConstraintConstrainedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DependencyEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DeploymentEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DurationObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InformationFlowEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InterfaceRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ManifestationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RoleBindingEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.SubstitutionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.TimeObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.UsageEditPart;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.service.edit.service.ElementEditServiceUtils;
+import org.eclipse.papyrus.service.edit.service.IElementEditService;
+
+/**
+ * @generated
+ */
+public class CreationEventItemSemanticEditPolicy extends UMLBaseItemSemanticEditPolicy {
+
+ /**
+ * @generated
+ */
+ public CreationEventItemSemanticEditPolicy() {
+ super(UMLElementTypes.CreationEvent_2090);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getDestroyElementCommand(DestroyElementRequest req) {
+ EObject selectedEObject = req.getElementToDestroy();
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(selectedEObject);
+ if(provider != null) {
+ // Retrieve delete command from the Element Edit service
+ ICommand deleteCommand = provider.getEditCommand(req);
+
+ if(deleteCommand != null) {
+ return new ICommandProxy(deleteCommand);
+ }
+ }
+ return UnexecutableCommand.INSTANCE;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCreateRelationshipCommand(CreateRelationshipRequest req) {
+ Command command = req.getTarget() == null ? getStartCreateRelationshipCommand(req) : getCompleteCreateRelationshipCommand(req);
+ return command != null ? command : super.getCreateRelationshipCommand(req);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getStartCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCompleteCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return getGEFWrapper(new CommentAnnotatedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return getGEFWrapper(new ConstraintConstrainedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return getGEFWrapper(new TimeObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return getGEFWrapper(new DurationObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * Returns command to reorient EClass based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientRelationshipCommand(ReorientRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case ComponentRealizationEditPart.VISUAL_ID:
+ case InterfaceRealizationEditPart.VISUAL_ID:
+ case SubstitutionEditPart.VISUAL_ID:
+ case RealizationEditPart.VISUAL_ID:
+ case ManifestationEditPart.VISUAL_ID:
+ case AbstractionEditPart.VISUAL_ID:
+ case UsageEditPart.VISUAL_ID:
+ case DeploymentEditPart.VISUAL_ID:
+ case DependencyEditPart.VISUAL_ID:
+ case InformationFlowEditPart.VISUAL_ID:
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(req.getRelationship());
+ if(provider == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ // Retrieve re-orient command from the Element Edit service
+ ICommand reorientCommand = provider.getEditCommand(req);
+ if(reorientCommand == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ return getGEFWrapper(reorientCommand.reduce());
+ case RoleBindingEditPart.VISUAL_ID:
+ return getGEFWrapper(new RoleBindingReorientCommand(req));
+ }
+ return super.getReorientRelationshipCommand(req);
+ }
+
+ /**
+ * Returns command to reorient EReference based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientReferenceRelationshipCommand(ReorientReferenceRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case CommentAnnotatedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new CommentAnnotatedElementReorientCommand(req));
+ case ConstraintConstrainedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new ConstraintConstrainedElementReorientCommand(req));
+ case TimeObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new TimeObservationEventReorientCommand(req));
+ case DurationObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new DurationObservationEventReorientCommand(req));
+ }
+ return super.getReorientReferenceRelationshipCommand(req);
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/DataTypeAttributeCompartmentItemSemanticEditPolicy.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/DataTypeAttributeCompartmentItemSemanticEditPolicy.java
new file mode 100644
index 00000000000..97043cc6a84
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/DataTypeAttributeCompartmentItemSemanticEditPolicy.java
@@ -0,0 +1,43 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.policies;
+
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+import org.eclipse.papyrus.diagram.composite.edit.commands.PropertyCreateCommandCLN;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+
+/**
+ * @generated
+ */
+public class DataTypeAttributeCompartmentItemSemanticEditPolicy extends UMLBaseItemSemanticEditPolicy {
+
+ /**
+ * @generated
+ */
+ public DataTypeAttributeCompartmentItemSemanticEditPolicy() {
+ super(UMLElementTypes.DataType_2068);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCreateCommand(CreateElementRequest req) {
+ if(UMLElementTypes.Property_3101 == req.getElementType()) {
+ return getGEFWrapper(new PropertyCreateCommandCLN(req));
+ }
+ return super.getCreateCommand(req);
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/DataTypeAttributeCompartmentItemSemanticEditPolicyCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/DataTypeAttributeCompartmentItemSemanticEditPolicyCN.java
new file mode 100644
index 00000000000..06654f954f1
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/DataTypeAttributeCompartmentItemSemanticEditPolicyCN.java
@@ -0,0 +1,43 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.policies;
+
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+import org.eclipse.papyrus.diagram.composite.edit.commands.PropertyCreateCommandCLN;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+
+/**
+ * @generated
+ */
+public class DataTypeAttributeCompartmentItemSemanticEditPolicyCN extends UMLBaseItemSemanticEditPolicy {
+
+ /**
+ * @generated
+ */
+ public DataTypeAttributeCompartmentItemSemanticEditPolicyCN() {
+ super(UMLElementTypes.DataType_3080);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCreateCommand(CreateElementRequest req) {
+ if(UMLElementTypes.Property_3101 == req.getElementType()) {
+ return getGEFWrapper(new PropertyCreateCommandCLN(req));
+ }
+ return super.getCreateCommand(req);
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/DataTypeItemSemanticEditPolicy.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/DataTypeItemSemanticEditPolicy.java
new file mode 100644
index 00000000000..8d8b20f69e6
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/DataTypeItemSemanticEditPolicy.java
@@ -0,0 +1,279 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.policies;
+
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.commands.UnexecutableCommand;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.diagram.ui.commands.ICommandProxy;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientReferenceRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientRelationshipRequest;
+import org.eclipse.papyrus.diagram.composite.edit.commands.AbstractionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ComponentRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DependencyCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DeploymentCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.GeneralizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InformationFlowCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InterfaceRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ManifestationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RepresentationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RepresentationReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.SubstitutionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.UsageCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.parts.AbstractionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CommentAnnotatedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ComponentRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ConstraintConstrainedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DependencyEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DeploymentEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DurationObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.GeneralizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InformationFlowEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InterfaceRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ManifestationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RepresentationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RoleBindingEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.SubstitutionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.TimeObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.UsageEditPart;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.service.edit.service.ElementEditServiceUtils;
+import org.eclipse.papyrus.service.edit.service.IElementEditService;
+
+/**
+ * @generated
+ */
+public class DataTypeItemSemanticEditPolicy extends UMLBaseItemSemanticEditPolicy {
+
+ /**
+ * @generated
+ */
+ public DataTypeItemSemanticEditPolicy() {
+ super(UMLElementTypes.DataType_2068);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getDestroyElementCommand(DestroyElementRequest req) {
+ EObject selectedEObject = req.getElementToDestroy();
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(selectedEObject);
+ if(provider != null) {
+ // Retrieve delete command from the Element Edit service
+ ICommand deleteCommand = provider.getEditCommand(req);
+
+ if(deleteCommand != null) {
+ return new ICommandProxy(deleteCommand);
+ }
+ }
+ return UnexecutableCommand.INSTANCE;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCreateRelationshipCommand(CreateRelationshipRequest req) {
+ Command command = req.getTarget() == null ? getStartCreateRelationshipCommand(req) : getCompleteCreateRelationshipCommand(req);
+ return command != null ? command : super.getCreateRelationshipCommand(req);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getStartCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Generalization_4015 == req.getElementType()) {
+ return getGEFWrapper(new GeneralizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.InformationItemRepresented_4020 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCompleteCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return getGEFWrapper(new CommentAnnotatedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return getGEFWrapper(new ConstraintConstrainedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Generalization_4015 == req.getElementType()) {
+ return getGEFWrapper(new GeneralizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return getGEFWrapper(new TimeObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return getGEFWrapper(new DurationObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InformationItemRepresented_4020 == req.getElementType()) {
+ return getGEFWrapper(new RepresentationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * Returns command to reorient EClass based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientRelationshipCommand(ReorientRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case ComponentRealizationEditPart.VISUAL_ID:
+ case InterfaceRealizationEditPart.VISUAL_ID:
+ case SubstitutionEditPart.VISUAL_ID:
+ case RealizationEditPart.VISUAL_ID:
+ case ManifestationEditPart.VISUAL_ID:
+ case AbstractionEditPart.VISUAL_ID:
+ case UsageEditPart.VISUAL_ID:
+ case DeploymentEditPart.VISUAL_ID:
+ case DependencyEditPart.VISUAL_ID:
+ case GeneralizationEditPart.VISUAL_ID:
+ case InformationFlowEditPart.VISUAL_ID:
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(req.getRelationship());
+ if(provider == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ // Retrieve re-orient command from the Element Edit service
+ ICommand reorientCommand = provider.getEditCommand(req);
+ if(reorientCommand == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ return getGEFWrapper(reorientCommand.reduce());
+ case RoleBindingEditPart.VISUAL_ID:
+ return getGEFWrapper(new RoleBindingReorientCommand(req));
+ }
+ return super.getReorientRelationshipCommand(req);
+ }
+
+ /**
+ * Returns command to reorient EReference based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientReferenceRelationshipCommand(ReorientReferenceRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case CommentAnnotatedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new CommentAnnotatedElementReorientCommand(req));
+ case ConstraintConstrainedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new ConstraintConstrainedElementReorientCommand(req));
+ case TimeObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new TimeObservationEventReorientCommand(req));
+ case DurationObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new DurationObservationEventReorientCommand(req));
+ case RepresentationEditPart.VISUAL_ID:
+ return getGEFWrapper(new RepresentationReorientCommand(req));
+ }
+ return super.getReorientReferenceRelationshipCommand(req);
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/DataTypeItemSemanticEditPolicyCLN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/DataTypeItemSemanticEditPolicyCLN.java
new file mode 100644
index 00000000000..74033c7741b
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/DataTypeItemSemanticEditPolicyCLN.java
@@ -0,0 +1,64 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.policies;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import org.eclipse.emf.ecore.EAnnotation;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.edit.command.DeleteCommand;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gmf.runtime.emf.commands.core.command.CompositeTransactionalCommand;
+import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.commands.wrappers.EMFtoGMFCommandWrapper;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+
+/**
+ * @generated
+ */
+public class DataTypeItemSemanticEditPolicyCLN extends UMLBaseItemSemanticEditPolicy {
+
+ /**
+ * @generated
+ */
+ public DataTypeItemSemanticEditPolicyCLN() {
+ super(UMLElementTypes.DataType_3113);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getDestroyElementCommand(DestroyElementRequest req) {
+ View view = (View)getHost().getModel();
+ CompositeTransactionalCommand cmd = new CompositeTransactionalCommand(getEditingDomain(), null);
+ cmd.setTransactionNestingEnabled(true);
+
+ EAnnotation annotation = view.getEAnnotation("Shortcut"); //$NON-NLS-1$
+ if(annotation == null) {
+ // there are indirectly referenced children, need extra commands: false
+ addDestroyShortcutsCommand(cmd, view);
+ // delete host element
+ List<EObject> todestroy = new ArrayList<EObject>();
+ todestroy.add(req.getElementToDestroy());
+ //cmd.add(new org.eclipse.gmf.runtime.emf.type.core.commands.DestroyElementCommand(req));
+ cmd.add(new EMFtoGMFCommandWrapper(new DeleteCommand(getEditingDomain(), todestroy)));
+ } else {
+ cmd.add(new org.eclipse.gmf.runtime.diagram.core.commands.DeleteCommand(getEditingDomain(), view));
+ }
+ return getGEFWrapper(cmd.reduce());
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/DataTypeItemSemanticEditPolicyCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/DataTypeItemSemanticEditPolicyCN.java
new file mode 100644
index 00000000000..bc82871e2de
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/DataTypeItemSemanticEditPolicyCN.java
@@ -0,0 +1,279 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.policies;
+
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.commands.UnexecutableCommand;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.diagram.ui.commands.ICommandProxy;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientReferenceRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientRelationshipRequest;
+import org.eclipse.papyrus.diagram.composite.edit.commands.AbstractionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ComponentRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DependencyCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DeploymentCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.GeneralizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InformationFlowCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InterfaceRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ManifestationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RepresentationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RepresentationReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.SubstitutionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.UsageCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.parts.AbstractionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CommentAnnotatedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ComponentRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ConstraintConstrainedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DependencyEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DeploymentEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DurationObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.GeneralizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InformationFlowEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InterfaceRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ManifestationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RepresentationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RoleBindingEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.SubstitutionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.TimeObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.UsageEditPart;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.service.edit.service.ElementEditServiceUtils;
+import org.eclipse.papyrus.service.edit.service.IElementEditService;
+
+/**
+ * @generated
+ */
+public class DataTypeItemSemanticEditPolicyCN extends UMLBaseItemSemanticEditPolicy {
+
+ /**
+ * @generated
+ */
+ public DataTypeItemSemanticEditPolicyCN() {
+ super(UMLElementTypes.DataType_3080);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getDestroyElementCommand(DestroyElementRequest req) {
+ EObject selectedEObject = req.getElementToDestroy();
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(selectedEObject);
+ if(provider != null) {
+ // Retrieve delete command from the Element Edit service
+ ICommand deleteCommand = provider.getEditCommand(req);
+
+ if(deleteCommand != null) {
+ return new ICommandProxy(deleteCommand);
+ }
+ }
+ return UnexecutableCommand.INSTANCE;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCreateRelationshipCommand(CreateRelationshipRequest req) {
+ Command command = req.getTarget() == null ? getStartCreateRelationshipCommand(req) : getCompleteCreateRelationshipCommand(req);
+ return command != null ? command : super.getCreateRelationshipCommand(req);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getStartCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Generalization_4015 == req.getElementType()) {
+ return getGEFWrapper(new GeneralizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.InformationItemRepresented_4020 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCompleteCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return getGEFWrapper(new CommentAnnotatedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return getGEFWrapper(new ConstraintConstrainedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Generalization_4015 == req.getElementType()) {
+ return getGEFWrapper(new GeneralizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return getGEFWrapper(new TimeObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return getGEFWrapper(new DurationObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InformationItemRepresented_4020 == req.getElementType()) {
+ return getGEFWrapper(new RepresentationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * Returns command to reorient EClass based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientRelationshipCommand(ReorientRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case ComponentRealizationEditPart.VISUAL_ID:
+ case InterfaceRealizationEditPart.VISUAL_ID:
+ case SubstitutionEditPart.VISUAL_ID:
+ case RealizationEditPart.VISUAL_ID:
+ case ManifestationEditPart.VISUAL_ID:
+ case AbstractionEditPart.VISUAL_ID:
+ case UsageEditPart.VISUAL_ID:
+ case DeploymentEditPart.VISUAL_ID:
+ case DependencyEditPart.VISUAL_ID:
+ case GeneralizationEditPart.VISUAL_ID:
+ case InformationFlowEditPart.VISUAL_ID:
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(req.getRelationship());
+ if(provider == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ // Retrieve re-orient command from the Element Edit service
+ ICommand reorientCommand = provider.getEditCommand(req);
+ if(reorientCommand == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ return getGEFWrapper(reorientCommand.reduce());
+ case RoleBindingEditPart.VISUAL_ID:
+ return getGEFWrapper(new RoleBindingReorientCommand(req));
+ }
+ return super.getReorientRelationshipCommand(req);
+ }
+
+ /**
+ * Returns command to reorient EReference based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientReferenceRelationshipCommand(ReorientReferenceRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case CommentAnnotatedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new CommentAnnotatedElementReorientCommand(req));
+ case ConstraintConstrainedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new ConstraintConstrainedElementReorientCommand(req));
+ case TimeObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new TimeObservationEventReorientCommand(req));
+ case DurationObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new DurationObservationEventReorientCommand(req));
+ case RepresentationEditPart.VISUAL_ID:
+ return getGEFWrapper(new RepresentationReorientCommand(req));
+ }
+ return super.getReorientReferenceRelationshipCommand(req);
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/DataTypeOperationCompartmentItemSemanticEditPolicy.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/DataTypeOperationCompartmentItemSemanticEditPolicy.java
new file mode 100644
index 00000000000..084cfb399e5
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/DataTypeOperationCompartmentItemSemanticEditPolicy.java
@@ -0,0 +1,43 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.policies;
+
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+import org.eclipse.papyrus.diagram.composite.edit.commands.OperationCreateCommandCLN;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+
+/**
+ * @generated
+ */
+public class DataTypeOperationCompartmentItemSemanticEditPolicy extends UMLBaseItemSemanticEditPolicy {
+
+ /**
+ * @generated
+ */
+ public DataTypeOperationCompartmentItemSemanticEditPolicy() {
+ super(UMLElementTypes.DataType_2068);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCreateCommand(CreateElementRequest req) {
+ if(UMLElementTypes.Operation_3102 == req.getElementType()) {
+ return getGEFWrapper(new OperationCreateCommandCLN(req));
+ }
+ return super.getCreateCommand(req);
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/DataTypeOperationCompartmentItemSemanticEditPolicyCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/DataTypeOperationCompartmentItemSemanticEditPolicyCN.java
new file mode 100644
index 00000000000..6ffeca2085a
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/DataTypeOperationCompartmentItemSemanticEditPolicyCN.java
@@ -0,0 +1,43 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.policies;
+
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+import org.eclipse.papyrus.diagram.composite.edit.commands.OperationCreateCommandCLN;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+
+/**
+ * @generated
+ */
+public class DataTypeOperationCompartmentItemSemanticEditPolicyCN extends UMLBaseItemSemanticEditPolicy {
+
+ /**
+ * @generated
+ */
+ public DataTypeOperationCompartmentItemSemanticEditPolicyCN() {
+ super(UMLElementTypes.DataType_3080);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCreateCommand(CreateElementRequest req) {
+ if(UMLElementTypes.Operation_3102 == req.getElementType()) {
+ return getGEFWrapper(new OperationCreateCommandCLN(req));
+ }
+ return super.getCreateCommand(req);
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/DependencyItemSemanticEditPolicy.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/DependencyItemSemanticEditPolicy.java
new file mode 100644
index 00000000000..689b9a68988
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/DependencyItemSemanticEditPolicy.java
@@ -0,0 +1,259 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.policies;
+
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.commands.UnexecutableCommand;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.diagram.ui.commands.ICommandProxy;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientReferenceRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientRelationshipRequest;
+import org.eclipse.papyrus.diagram.composite.edit.commands.AbstractionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ComponentRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DependencyCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DeploymentCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InformationFlowCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InterfaceRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ManifestationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.SubstitutionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.UsageCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.parts.AbstractionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CommentAnnotatedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ComponentRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ConstraintConstrainedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DependencyEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DeploymentEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DurationObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InformationFlowEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InterfaceRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ManifestationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RoleBindingEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.SubstitutionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.TimeObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.UsageEditPart;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.service.edit.service.ElementEditServiceUtils;
+import org.eclipse.papyrus.service.edit.service.IElementEditService;
+
+/**
+ * @generated
+ */
+public class DependencyItemSemanticEditPolicy extends UMLBaseItemSemanticEditPolicy {
+
+ /**
+ * @generated
+ */
+ public DependencyItemSemanticEditPolicy() {
+ super(UMLElementTypes.Dependency_4010);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getDestroyElementCommand(DestroyElementRequest req) {
+ EObject selectedEObject = req.getElementToDestroy();
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(selectedEObject);
+ if(provider != null) {
+ // Retrieve delete command from the Element Edit service
+ ICommand deleteCommand = provider.getEditCommand(req);
+
+ if(deleteCommand != null) {
+ return new ICommandProxy(deleteCommand);
+ }
+ }
+ return UnexecutableCommand.INSTANCE;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCreateRelationshipCommand(CreateRelationshipRequest req) {
+ Command command = req.getTarget() == null ? getStartCreateRelationshipCommand(req) : getCompleteCreateRelationshipCommand(req);
+ return command != null ? command : super.getCreateRelationshipCommand(req);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getStartCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCompleteCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return getGEFWrapper(new CommentAnnotatedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return getGEFWrapper(new ConstraintConstrainedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return getGEFWrapper(new TimeObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return getGEFWrapper(new DurationObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * Returns command to reorient EClass based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientRelationshipCommand(ReorientRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case ComponentRealizationEditPart.VISUAL_ID:
+ case InterfaceRealizationEditPart.VISUAL_ID:
+ case SubstitutionEditPart.VISUAL_ID:
+ case RealizationEditPart.VISUAL_ID:
+ case ManifestationEditPart.VISUAL_ID:
+ case AbstractionEditPart.VISUAL_ID:
+ case UsageEditPart.VISUAL_ID:
+ case DeploymentEditPart.VISUAL_ID:
+ case DependencyEditPart.VISUAL_ID:
+ case InformationFlowEditPart.VISUAL_ID:
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(req.getRelationship());
+ if(provider == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ // Retrieve re-orient command from the Element Edit service
+ ICommand reorientCommand = provider.getEditCommand(req);
+ if(reorientCommand == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ return getGEFWrapper(reorientCommand.reduce());
+ case RoleBindingEditPart.VISUAL_ID:
+ return getGEFWrapper(new RoleBindingReorientCommand(req));
+ }
+ return super.getReorientRelationshipCommand(req);
+ }
+
+ /**
+ * Returns command to reorient EReference based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientReferenceRelationshipCommand(ReorientReferenceRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case CommentAnnotatedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new CommentAnnotatedElementReorientCommand(req));
+ case ConstraintConstrainedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new ConstraintConstrainedElementReorientCommand(req));
+ case TimeObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new TimeObservationEventReorientCommand(req));
+ case DurationObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new DurationObservationEventReorientCommand(req));
+ }
+ return super.getReorientReferenceRelationshipCommand(req);
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/DeploymentItemSemanticEditPolicy.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/DeploymentItemSemanticEditPolicy.java
new file mode 100644
index 00000000000..486d42b883e
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/DeploymentItemSemanticEditPolicy.java
@@ -0,0 +1,259 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.policies;
+
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.commands.UnexecutableCommand;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.diagram.ui.commands.ICommandProxy;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientReferenceRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientRelationshipRequest;
+import org.eclipse.papyrus.diagram.composite.edit.commands.AbstractionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ComponentRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DependencyCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DeploymentCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InformationFlowCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InterfaceRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ManifestationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.SubstitutionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.UsageCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.parts.AbstractionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CommentAnnotatedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ComponentRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ConstraintConstrainedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DependencyEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DeploymentEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DurationObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InformationFlowEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InterfaceRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ManifestationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RoleBindingEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.SubstitutionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.TimeObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.UsageEditPart;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.service.edit.service.ElementEditServiceUtils;
+import org.eclipse.papyrus.service.edit.service.IElementEditService;
+
+/**
+ * @generated
+ */
+public class DeploymentItemSemanticEditPolicy extends UMLBaseItemSemanticEditPolicy {
+
+ /**
+ * @generated
+ */
+ public DeploymentItemSemanticEditPolicy() {
+ super(UMLElementTypes.Deployment_4009);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getDestroyElementCommand(DestroyElementRequest req) {
+ EObject selectedEObject = req.getElementToDestroy();
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(selectedEObject);
+ if(provider != null) {
+ // Retrieve delete command from the Element Edit service
+ ICommand deleteCommand = provider.getEditCommand(req);
+
+ if(deleteCommand != null) {
+ return new ICommandProxy(deleteCommand);
+ }
+ }
+ return UnexecutableCommand.INSTANCE;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCreateRelationshipCommand(CreateRelationshipRequest req) {
+ Command command = req.getTarget() == null ? getStartCreateRelationshipCommand(req) : getCompleteCreateRelationshipCommand(req);
+ return command != null ? command : super.getCreateRelationshipCommand(req);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getStartCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCompleteCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return getGEFWrapper(new CommentAnnotatedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return getGEFWrapper(new ConstraintConstrainedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return getGEFWrapper(new TimeObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return getGEFWrapper(new DurationObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * Returns command to reorient EClass based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientRelationshipCommand(ReorientRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case ComponentRealizationEditPart.VISUAL_ID:
+ case InterfaceRealizationEditPart.VISUAL_ID:
+ case SubstitutionEditPart.VISUAL_ID:
+ case RealizationEditPart.VISUAL_ID:
+ case ManifestationEditPart.VISUAL_ID:
+ case AbstractionEditPart.VISUAL_ID:
+ case UsageEditPart.VISUAL_ID:
+ case DeploymentEditPart.VISUAL_ID:
+ case DependencyEditPart.VISUAL_ID:
+ case InformationFlowEditPart.VISUAL_ID:
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(req.getRelationship());
+ if(provider == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ // Retrieve re-orient command from the Element Edit service
+ ICommand reorientCommand = provider.getEditCommand(req);
+ if(reorientCommand == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ return getGEFWrapper(reorientCommand.reduce());
+ case RoleBindingEditPart.VISUAL_ID:
+ return getGEFWrapper(new RoleBindingReorientCommand(req));
+ }
+ return super.getReorientRelationshipCommand(req);
+ }
+
+ /**
+ * Returns command to reorient EReference based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientReferenceRelationshipCommand(ReorientReferenceRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case CommentAnnotatedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new CommentAnnotatedElementReorientCommand(req));
+ case ConstraintConstrainedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new ConstraintConstrainedElementReorientCommand(req));
+ case TimeObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new TimeObservationEventReorientCommand(req));
+ case DurationObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new DurationObservationEventReorientCommand(req));
+ }
+ return super.getReorientReferenceRelationshipCommand(req);
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/DeploymentSpecificationItemSemanticEditPolicy.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/DeploymentSpecificationItemSemanticEditPolicy.java
new file mode 100644
index 00000000000..6f83ec26c8e
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/DeploymentSpecificationItemSemanticEditPolicy.java
@@ -0,0 +1,279 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.policies;
+
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.commands.UnexecutableCommand;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.diagram.ui.commands.ICommandProxy;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientReferenceRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientRelationshipRequest;
+import org.eclipse.papyrus.diagram.composite.edit.commands.AbstractionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ComponentRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DependencyCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DeploymentCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.GeneralizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InformationFlowCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InterfaceRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ManifestationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RepresentationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RepresentationReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.SubstitutionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.UsageCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.parts.AbstractionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CommentAnnotatedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ComponentRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ConstraintConstrainedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DependencyEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DeploymentEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DurationObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.GeneralizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InformationFlowEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InterfaceRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ManifestationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RepresentationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RoleBindingEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.SubstitutionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.TimeObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.UsageEditPart;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.service.edit.service.ElementEditServiceUtils;
+import org.eclipse.papyrus.service.edit.service.IElementEditService;
+
+/**
+ * @generated
+ */
+public class DeploymentSpecificationItemSemanticEditPolicy extends UMLBaseItemSemanticEditPolicy {
+
+ /**
+ * @generated
+ */
+ public DeploymentSpecificationItemSemanticEditPolicy() {
+ super(UMLElementTypes.DeploymentSpecification_2078);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getDestroyElementCommand(DestroyElementRequest req) {
+ EObject selectedEObject = req.getElementToDestroy();
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(selectedEObject);
+ if(provider != null) {
+ // Retrieve delete command from the Element Edit service
+ ICommand deleteCommand = provider.getEditCommand(req);
+
+ if(deleteCommand != null) {
+ return new ICommandProxy(deleteCommand);
+ }
+ }
+ return UnexecutableCommand.INSTANCE;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCreateRelationshipCommand(CreateRelationshipRequest req) {
+ Command command = req.getTarget() == null ? getStartCreateRelationshipCommand(req) : getCompleteCreateRelationshipCommand(req);
+ return command != null ? command : super.getCreateRelationshipCommand(req);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getStartCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Generalization_4015 == req.getElementType()) {
+ return getGEFWrapper(new GeneralizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.InformationItemRepresented_4020 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCompleteCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return getGEFWrapper(new CommentAnnotatedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return getGEFWrapper(new ConstraintConstrainedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Generalization_4015 == req.getElementType()) {
+ return getGEFWrapper(new GeneralizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return getGEFWrapper(new TimeObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return getGEFWrapper(new DurationObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InformationItemRepresented_4020 == req.getElementType()) {
+ return getGEFWrapper(new RepresentationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * Returns command to reorient EClass based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientRelationshipCommand(ReorientRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case ComponentRealizationEditPart.VISUAL_ID:
+ case InterfaceRealizationEditPart.VISUAL_ID:
+ case SubstitutionEditPart.VISUAL_ID:
+ case RealizationEditPart.VISUAL_ID:
+ case ManifestationEditPart.VISUAL_ID:
+ case AbstractionEditPart.VISUAL_ID:
+ case UsageEditPart.VISUAL_ID:
+ case DeploymentEditPart.VISUAL_ID:
+ case DependencyEditPart.VISUAL_ID:
+ case GeneralizationEditPart.VISUAL_ID:
+ case InformationFlowEditPart.VISUAL_ID:
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(req.getRelationship());
+ if(provider == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ // Retrieve re-orient command from the Element Edit service
+ ICommand reorientCommand = provider.getEditCommand(req);
+ if(reorientCommand == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ return getGEFWrapper(reorientCommand.reduce());
+ case RoleBindingEditPart.VISUAL_ID:
+ return getGEFWrapper(new RoleBindingReorientCommand(req));
+ }
+ return super.getReorientRelationshipCommand(req);
+ }
+
+ /**
+ * Returns command to reorient EReference based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientReferenceRelationshipCommand(ReorientReferenceRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case CommentAnnotatedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new CommentAnnotatedElementReorientCommand(req));
+ case ConstraintConstrainedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new ConstraintConstrainedElementReorientCommand(req));
+ case TimeObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new TimeObservationEventReorientCommand(req));
+ case DurationObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new DurationObservationEventReorientCommand(req));
+ case RepresentationEditPart.VISUAL_ID:
+ return getGEFWrapper(new RepresentationReorientCommand(req));
+ }
+ return super.getReorientReferenceRelationshipCommand(req);
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/DeploymentSpecificationItemSemanticEditPolicyCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/DeploymentSpecificationItemSemanticEditPolicyCN.java
new file mode 100644
index 00000000000..7bcef222224
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/DeploymentSpecificationItemSemanticEditPolicyCN.java
@@ -0,0 +1,279 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.policies;
+
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.commands.UnexecutableCommand;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.diagram.ui.commands.ICommandProxy;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientReferenceRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientRelationshipRequest;
+import org.eclipse.papyrus.diagram.composite.edit.commands.AbstractionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ComponentRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DependencyCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DeploymentCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.GeneralizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InformationFlowCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InterfaceRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ManifestationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RepresentationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RepresentationReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.SubstitutionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.UsageCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.parts.AbstractionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CommentAnnotatedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ComponentRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ConstraintConstrainedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DependencyEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DeploymentEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DurationObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.GeneralizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InformationFlowEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InterfaceRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ManifestationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RepresentationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RoleBindingEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.SubstitutionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.TimeObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.UsageEditPart;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.service.edit.service.ElementEditServiceUtils;
+import org.eclipse.papyrus.service.edit.service.IElementEditService;
+
+/**
+ * @generated
+ */
+public class DeploymentSpecificationItemSemanticEditPolicyCN extends UMLBaseItemSemanticEditPolicy {
+
+ /**
+ * @generated
+ */
+ public DeploymentSpecificationItemSemanticEditPolicyCN() {
+ super(UMLElementTypes.DeploymentSpecification_3092);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getDestroyElementCommand(DestroyElementRequest req) {
+ EObject selectedEObject = req.getElementToDestroy();
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(selectedEObject);
+ if(provider != null) {
+ // Retrieve delete command from the Element Edit service
+ ICommand deleteCommand = provider.getEditCommand(req);
+
+ if(deleteCommand != null) {
+ return new ICommandProxy(deleteCommand);
+ }
+ }
+ return UnexecutableCommand.INSTANCE;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCreateRelationshipCommand(CreateRelationshipRequest req) {
+ Command command = req.getTarget() == null ? getStartCreateRelationshipCommand(req) : getCompleteCreateRelationshipCommand(req);
+ return command != null ? command : super.getCreateRelationshipCommand(req);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getStartCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Generalization_4015 == req.getElementType()) {
+ return getGEFWrapper(new GeneralizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.InformationItemRepresented_4020 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCompleteCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return getGEFWrapper(new CommentAnnotatedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return getGEFWrapper(new ConstraintConstrainedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Generalization_4015 == req.getElementType()) {
+ return getGEFWrapper(new GeneralizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return getGEFWrapper(new TimeObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return getGEFWrapper(new DurationObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InformationItemRepresented_4020 == req.getElementType()) {
+ return getGEFWrapper(new RepresentationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * Returns command to reorient EClass based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientRelationshipCommand(ReorientRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case ComponentRealizationEditPart.VISUAL_ID:
+ case InterfaceRealizationEditPart.VISUAL_ID:
+ case SubstitutionEditPart.VISUAL_ID:
+ case RealizationEditPart.VISUAL_ID:
+ case ManifestationEditPart.VISUAL_ID:
+ case AbstractionEditPart.VISUAL_ID:
+ case UsageEditPart.VISUAL_ID:
+ case DeploymentEditPart.VISUAL_ID:
+ case DependencyEditPart.VISUAL_ID:
+ case GeneralizationEditPart.VISUAL_ID:
+ case InformationFlowEditPart.VISUAL_ID:
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(req.getRelationship());
+ if(provider == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ // Retrieve re-orient command from the Element Edit service
+ ICommand reorientCommand = provider.getEditCommand(req);
+ if(reorientCommand == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ return getGEFWrapper(reorientCommand.reduce());
+ case RoleBindingEditPart.VISUAL_ID:
+ return getGEFWrapper(new RoleBindingReorientCommand(req));
+ }
+ return super.getReorientRelationshipCommand(req);
+ }
+
+ /**
+ * Returns command to reorient EReference based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientReferenceRelationshipCommand(ReorientReferenceRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case CommentAnnotatedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new CommentAnnotatedElementReorientCommand(req));
+ case ConstraintConstrainedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new ConstraintConstrainedElementReorientCommand(req));
+ case TimeObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new TimeObservationEventReorientCommand(req));
+ case DurationObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new DurationObservationEventReorientCommand(req));
+ case RepresentationEditPart.VISUAL_ID:
+ return getGEFWrapper(new RepresentationReorientCommand(req));
+ }
+ return super.getReorientReferenceRelationshipCommand(req);
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/DestructionEventItemSemanticEditPolicy.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/DestructionEventItemSemanticEditPolicy.java
new file mode 100644
index 00000000000..581eb341075
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/DestructionEventItemSemanticEditPolicy.java
@@ -0,0 +1,259 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.policies;
+
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.commands.UnexecutableCommand;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.diagram.ui.commands.ICommandProxy;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientReferenceRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientRelationshipRequest;
+import org.eclipse.papyrus.diagram.composite.edit.commands.AbstractionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ComponentRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DependencyCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DeploymentCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InformationFlowCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InterfaceRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ManifestationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.SubstitutionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.UsageCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.parts.AbstractionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CommentAnnotatedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ComponentRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ConstraintConstrainedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DependencyEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DeploymentEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DurationObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InformationFlowEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InterfaceRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ManifestationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RoleBindingEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.SubstitutionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.TimeObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.UsageEditPart;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.service.edit.service.ElementEditServiceUtils;
+import org.eclipse.papyrus.service.edit.service.IElementEditService;
+
+/**
+ * @generated
+ */
+public class DestructionEventItemSemanticEditPolicy extends UMLBaseItemSemanticEditPolicy {
+
+ /**
+ * @generated
+ */
+ public DestructionEventItemSemanticEditPolicy() {
+ super(UMLElementTypes.DestructionEvent_2091);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getDestroyElementCommand(DestroyElementRequest req) {
+ EObject selectedEObject = req.getElementToDestroy();
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(selectedEObject);
+ if(provider != null) {
+ // Retrieve delete command from the Element Edit service
+ ICommand deleteCommand = provider.getEditCommand(req);
+
+ if(deleteCommand != null) {
+ return new ICommandProxy(deleteCommand);
+ }
+ }
+ return UnexecutableCommand.INSTANCE;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCreateRelationshipCommand(CreateRelationshipRequest req) {
+ Command command = req.getTarget() == null ? getStartCreateRelationshipCommand(req) : getCompleteCreateRelationshipCommand(req);
+ return command != null ? command : super.getCreateRelationshipCommand(req);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getStartCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCompleteCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return getGEFWrapper(new CommentAnnotatedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return getGEFWrapper(new ConstraintConstrainedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return getGEFWrapper(new TimeObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return getGEFWrapper(new DurationObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * Returns command to reorient EClass based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientRelationshipCommand(ReorientRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case ComponentRealizationEditPart.VISUAL_ID:
+ case InterfaceRealizationEditPart.VISUAL_ID:
+ case SubstitutionEditPart.VISUAL_ID:
+ case RealizationEditPart.VISUAL_ID:
+ case ManifestationEditPart.VISUAL_ID:
+ case AbstractionEditPart.VISUAL_ID:
+ case UsageEditPart.VISUAL_ID:
+ case DeploymentEditPart.VISUAL_ID:
+ case DependencyEditPart.VISUAL_ID:
+ case InformationFlowEditPart.VISUAL_ID:
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(req.getRelationship());
+ if(provider == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ // Retrieve re-orient command from the Element Edit service
+ ICommand reorientCommand = provider.getEditCommand(req);
+ if(reorientCommand == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ return getGEFWrapper(reorientCommand.reduce());
+ case RoleBindingEditPart.VISUAL_ID:
+ return getGEFWrapper(new RoleBindingReorientCommand(req));
+ }
+ return super.getReorientRelationshipCommand(req);
+ }
+
+ /**
+ * Returns command to reorient EReference based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientReferenceRelationshipCommand(ReorientReferenceRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case CommentAnnotatedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new CommentAnnotatedElementReorientCommand(req));
+ case ConstraintConstrainedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new ConstraintConstrainedElementReorientCommand(req));
+ case TimeObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new TimeObservationEventReorientCommand(req));
+ case DurationObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new DurationObservationEventReorientCommand(req));
+ }
+ return super.getReorientReferenceRelationshipCommand(req);
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/DeviceCompositeCompartmentItemSemanticEditPolicy.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/DeviceCompositeCompartmentItemSemanticEditPolicy.java
new file mode 100644
index 00000000000..47a5c4e97ae
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/DeviceCompositeCompartmentItemSemanticEditPolicy.java
@@ -0,0 +1,163 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.policies;
+
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ActivityCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ActorCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ArtifactCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ClassCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CollaborationCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CollaborationUseCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ComponentCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DataTypeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DeploymentSpecificationCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DeviceCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationConstraintCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.EnumerationCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ExecutionEnvironmentCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.FunctionBehaviorCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InformationItemCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InteractionCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InteractionConstraintCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InterfaceCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.IntervalConstraintCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.NodeCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.OpaqueBehaviorCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.PortCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.PrimitiveTypeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.PropertyPartCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ProtocolStateMachineCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.SignalCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.StateMachineCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeConstraintCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.UseCaseCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+
+/**
+ * @generated
+ */
+public class DeviceCompositeCompartmentItemSemanticEditPolicy extends UMLBaseItemSemanticEditPolicy {
+
+ /**
+ * @generated
+ */
+ public DeviceCompositeCompartmentItemSemanticEditPolicy() {
+ super(UMLElementTypes.Device_2070);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCreateCommand(CreateElementRequest req) {
+ if(UMLElementTypes.Port_3069 == req.getElementType()) {
+ return getGEFWrapper(new PortCreateCommand(req));
+ }
+ if(UMLElementTypes.Property_3070 == req.getElementType()) {
+ return getGEFWrapper(new PropertyPartCreateCommandCN(req));
+ }
+ if(UMLElementTypes.CollaborationUse_3071 == req.getElementType()) {
+ return getGEFWrapper(new CollaborationUseCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Activity_3072 == req.getElementType()) {
+ return getGEFWrapper(new ActivityCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Interaction_3073 == req.getElementType()) {
+ return getGEFWrapper(new InteractionCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.ProtocolStateMachine_3074 == req.getElementType()) {
+ return getGEFWrapper(new ProtocolStateMachineCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.StateMachine_3075 == req.getElementType()) {
+ return getGEFWrapper(new StateMachineCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.FunctionBehavior_3076 == req.getElementType()) {
+ return getGEFWrapper(new FunctionBehaviorCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.OpaqueBehavior_3077 == req.getElementType()) {
+ return getGEFWrapper(new OpaqueBehaviorCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Component_3081 == req.getElementType()) {
+ return getGEFWrapper(new ComponentCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Device_3082 == req.getElementType()) {
+ return getGEFWrapper(new DeviceCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.ExecutionEnvironment_3083 == req.getElementType()) {
+ return getGEFWrapper(new ExecutionEnvironmentCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Node_3084 == req.getElementType()) {
+ return getGEFWrapper(new NodeCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Class_3085 == req.getElementType()) {
+ return getGEFWrapper(new ClassCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Collaboration_3086 == req.getElementType()) {
+ return getGEFWrapper(new CollaborationCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Interface_3087 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceCreateCommandCN(req));
+ }
+ if(UMLElementTypes.PrimitiveType_3078 == req.getElementType()) {
+ return getGEFWrapper(new PrimitiveTypeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Enumeration_3079 == req.getElementType()) {
+ return getGEFWrapper(new EnumerationCreateCommandCN(req));
+ }
+ if(UMLElementTypes.DataType_3080 == req.getElementType()) {
+ return getGEFWrapper(new DataTypeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Actor_3091 == req.getElementType()) {
+ return getGEFWrapper(new ActorCreateCommandCN(req));
+ }
+ if(UMLElementTypes.DeploymentSpecification_3092 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentSpecificationCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Artifact_3093 == req.getElementType()) {
+ return getGEFWrapper(new ArtifactCreateCommandCN(req));
+ }
+ if(UMLElementTypes.InformationItem_3094 == req.getElementType()) {
+ return getGEFWrapper(new InformationItemCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Signal_3095 == req.getElementType()) {
+ return getGEFWrapper(new SignalCreateCommandCN(req));
+ }
+ if(UMLElementTypes.UseCase_3096 == req.getElementType()) {
+ return getGEFWrapper(new UseCaseCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Comment_3097 == req.getElementType()) {
+ return getGEFWrapper(new CommentCreateCommandCN(req));
+ }
+ if(UMLElementTypes.DurationConstraint_3116 == req.getElementType()) {
+ return getGEFWrapper(new DurationConstraintCreateCommandCN(req));
+ }
+ if(UMLElementTypes.TimeConstraint_3117 == req.getElementType()) {
+ return getGEFWrapper(new TimeConstraintCreateCommandCN(req));
+ }
+ if(UMLElementTypes.IntervalConstraint_3118 == req.getElementType()) {
+ return getGEFWrapper(new IntervalConstraintCreateCommandCN(req));
+ }
+ if(UMLElementTypes.InteractionConstraint_3119 == req.getElementType()) {
+ return getGEFWrapper(new InteractionConstraintCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Constraint_3120 == req.getElementType()) {
+ return getGEFWrapper(new ConstraintCreateCommandCN(req));
+ }
+ return super.getCreateCommand(req);
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/DeviceCompositeCompartmentItemSemanticEditPolicyCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/DeviceCompositeCompartmentItemSemanticEditPolicyCN.java
new file mode 100644
index 00000000000..4a059cf66e2
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/DeviceCompositeCompartmentItemSemanticEditPolicyCN.java
@@ -0,0 +1,163 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.policies;
+
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ActivityCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ActorCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ArtifactCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ClassCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CollaborationCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CollaborationUseCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ComponentCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DataTypeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DeploymentSpecificationCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DeviceCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationConstraintCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.EnumerationCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ExecutionEnvironmentCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.FunctionBehaviorCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InformationItemCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InteractionCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InteractionConstraintCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InterfaceCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.IntervalConstraintCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.NodeCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.OpaqueBehaviorCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.PortCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.PrimitiveTypeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.PropertyPartCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ProtocolStateMachineCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.SignalCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.StateMachineCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeConstraintCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.UseCaseCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+
+/**
+ * @generated
+ */
+public class DeviceCompositeCompartmentItemSemanticEditPolicyCN extends UMLBaseItemSemanticEditPolicy {
+
+ /**
+ * @generated
+ */
+ public DeviceCompositeCompartmentItemSemanticEditPolicyCN() {
+ super(UMLElementTypes.Device_3082);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCreateCommand(CreateElementRequest req) {
+ if(UMLElementTypes.Port_3069 == req.getElementType()) {
+ return getGEFWrapper(new PortCreateCommand(req));
+ }
+ if(UMLElementTypes.Property_3070 == req.getElementType()) {
+ return getGEFWrapper(new PropertyPartCreateCommandCN(req));
+ }
+ if(UMLElementTypes.CollaborationUse_3071 == req.getElementType()) {
+ return getGEFWrapper(new CollaborationUseCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Activity_3072 == req.getElementType()) {
+ return getGEFWrapper(new ActivityCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Interaction_3073 == req.getElementType()) {
+ return getGEFWrapper(new InteractionCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.ProtocolStateMachine_3074 == req.getElementType()) {
+ return getGEFWrapper(new ProtocolStateMachineCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.StateMachine_3075 == req.getElementType()) {
+ return getGEFWrapper(new StateMachineCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.FunctionBehavior_3076 == req.getElementType()) {
+ return getGEFWrapper(new FunctionBehaviorCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.OpaqueBehavior_3077 == req.getElementType()) {
+ return getGEFWrapper(new OpaqueBehaviorCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Component_3081 == req.getElementType()) {
+ return getGEFWrapper(new ComponentCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Device_3082 == req.getElementType()) {
+ return getGEFWrapper(new DeviceCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.ExecutionEnvironment_3083 == req.getElementType()) {
+ return getGEFWrapper(new ExecutionEnvironmentCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Node_3084 == req.getElementType()) {
+ return getGEFWrapper(new NodeCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Class_3085 == req.getElementType()) {
+ return getGEFWrapper(new ClassCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Collaboration_3086 == req.getElementType()) {
+ return getGEFWrapper(new CollaborationCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Interface_3087 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceCreateCommandCN(req));
+ }
+ if(UMLElementTypes.PrimitiveType_3078 == req.getElementType()) {
+ return getGEFWrapper(new PrimitiveTypeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Enumeration_3079 == req.getElementType()) {
+ return getGEFWrapper(new EnumerationCreateCommandCN(req));
+ }
+ if(UMLElementTypes.DataType_3080 == req.getElementType()) {
+ return getGEFWrapper(new DataTypeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Actor_3091 == req.getElementType()) {
+ return getGEFWrapper(new ActorCreateCommandCN(req));
+ }
+ if(UMLElementTypes.DeploymentSpecification_3092 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentSpecificationCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Artifact_3093 == req.getElementType()) {
+ return getGEFWrapper(new ArtifactCreateCommandCN(req));
+ }
+ if(UMLElementTypes.InformationItem_3094 == req.getElementType()) {
+ return getGEFWrapper(new InformationItemCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Signal_3095 == req.getElementType()) {
+ return getGEFWrapper(new SignalCreateCommandCN(req));
+ }
+ if(UMLElementTypes.UseCase_3096 == req.getElementType()) {
+ return getGEFWrapper(new UseCaseCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Comment_3097 == req.getElementType()) {
+ return getGEFWrapper(new CommentCreateCommandCN(req));
+ }
+ if(UMLElementTypes.DurationConstraint_3116 == req.getElementType()) {
+ return getGEFWrapper(new DurationConstraintCreateCommandCN(req));
+ }
+ if(UMLElementTypes.TimeConstraint_3117 == req.getElementType()) {
+ return getGEFWrapper(new TimeConstraintCreateCommandCN(req));
+ }
+ if(UMLElementTypes.IntervalConstraint_3118 == req.getElementType()) {
+ return getGEFWrapper(new IntervalConstraintCreateCommandCN(req));
+ }
+ if(UMLElementTypes.InteractionConstraint_3119 == req.getElementType()) {
+ return getGEFWrapper(new InteractionConstraintCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Constraint_3120 == req.getElementType()) {
+ return getGEFWrapper(new ConstraintCreateCommandCN(req));
+ }
+ return super.getCreateCommand(req);
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/DeviceCompositeItemSemanticEditPolicy.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/DeviceCompositeItemSemanticEditPolicy.java
new file mode 100644
index 00000000000..35087d41542
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/DeviceCompositeItemSemanticEditPolicy.java
@@ -0,0 +1,291 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.policies;
+
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.commands.UnexecutableCommand;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.diagram.ui.commands.ICommandProxy;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientReferenceRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientRelationshipRequest;
+import org.eclipse.papyrus.diagram.composite.edit.commands.AbstractionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ComponentRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DependencyCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DeploymentCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.GeneralizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InformationFlowCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InterfaceRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ManifestationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.PortCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RepresentationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RepresentationReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.SubstitutionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.UsageCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.parts.AbstractionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CommentAnnotatedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ComponentRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ConstraintConstrainedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DependencyEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DeploymentEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DurationObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.GeneralizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InformationFlowEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InterfaceRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ManifestationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RepresentationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RoleBindingEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.SubstitutionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.TimeObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.UsageEditPart;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.service.edit.service.ElementEditServiceUtils;
+import org.eclipse.papyrus.service.edit.service.IElementEditService;
+
+/**
+ * @generated
+ */
+public class DeviceCompositeItemSemanticEditPolicy extends UMLBaseItemSemanticEditPolicy {
+
+ /**
+ * @generated
+ */
+ public DeviceCompositeItemSemanticEditPolicy() {
+ super(UMLElementTypes.Device_2070);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCreateCommand(CreateElementRequest req) {
+ if(UMLElementTypes.Port_3069 == req.getElementType()) {
+ return getGEFWrapper(new PortCreateCommand(req));
+ }
+ return super.getCreateCommand(req);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getDestroyElementCommand(DestroyElementRequest req) {
+ EObject selectedEObject = req.getElementToDestroy();
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(selectedEObject);
+ if(provider != null) {
+ // Retrieve delete command from the Element Edit service
+ ICommand deleteCommand = provider.getEditCommand(req);
+
+ if(deleteCommand != null) {
+ return new ICommandProxy(deleteCommand);
+ }
+ }
+ return UnexecutableCommand.INSTANCE;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCreateRelationshipCommand(CreateRelationshipRequest req) {
+ Command command = req.getTarget() == null ? getStartCreateRelationshipCommand(req) : getCompleteCreateRelationshipCommand(req);
+ return command != null ? command : super.getCreateRelationshipCommand(req);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getStartCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Generalization_4015 == req.getElementType()) {
+ return getGEFWrapper(new GeneralizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.InformationItemRepresented_4020 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCompleteCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return getGEFWrapper(new CommentAnnotatedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return getGEFWrapper(new ConstraintConstrainedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Generalization_4015 == req.getElementType()) {
+ return getGEFWrapper(new GeneralizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return getGEFWrapper(new TimeObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return getGEFWrapper(new DurationObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InformationItemRepresented_4020 == req.getElementType()) {
+ return getGEFWrapper(new RepresentationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * Returns command to reorient EClass based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientRelationshipCommand(ReorientRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case ComponentRealizationEditPart.VISUAL_ID:
+ case InterfaceRealizationEditPart.VISUAL_ID:
+ case SubstitutionEditPart.VISUAL_ID:
+ case RealizationEditPart.VISUAL_ID:
+ case ManifestationEditPart.VISUAL_ID:
+ case AbstractionEditPart.VISUAL_ID:
+ case UsageEditPart.VISUAL_ID:
+ case DeploymentEditPart.VISUAL_ID:
+ case DependencyEditPart.VISUAL_ID:
+ case GeneralizationEditPart.VISUAL_ID:
+ case InformationFlowEditPart.VISUAL_ID:
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(req.getRelationship());
+ if(provider == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ // Retrieve re-orient command from the Element Edit service
+ ICommand reorientCommand = provider.getEditCommand(req);
+ if(reorientCommand == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ return getGEFWrapper(reorientCommand.reduce());
+ case RoleBindingEditPart.VISUAL_ID:
+ return getGEFWrapper(new RoleBindingReorientCommand(req));
+ }
+ return super.getReorientRelationshipCommand(req);
+ }
+
+ /**
+ * Returns command to reorient EReference based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientReferenceRelationshipCommand(ReorientReferenceRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case CommentAnnotatedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new CommentAnnotatedElementReorientCommand(req));
+ case ConstraintConstrainedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new ConstraintConstrainedElementReorientCommand(req));
+ case TimeObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new TimeObservationEventReorientCommand(req));
+ case DurationObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new DurationObservationEventReorientCommand(req));
+ case RepresentationEditPart.VISUAL_ID:
+ return getGEFWrapper(new RepresentationReorientCommand(req));
+ }
+ return super.getReorientReferenceRelationshipCommand(req);
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/DeviceCompositeItemSemanticEditPolicyCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/DeviceCompositeItemSemanticEditPolicyCN.java
new file mode 100644
index 00000000000..6928eae9d3f
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/DeviceCompositeItemSemanticEditPolicyCN.java
@@ -0,0 +1,291 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.policies;
+
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.commands.UnexecutableCommand;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.diagram.ui.commands.ICommandProxy;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientReferenceRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientRelationshipRequest;
+import org.eclipse.papyrus.diagram.composite.edit.commands.AbstractionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ComponentRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DependencyCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DeploymentCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.GeneralizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InformationFlowCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InterfaceRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ManifestationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.PortCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RepresentationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RepresentationReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.SubstitutionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.UsageCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.parts.AbstractionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CommentAnnotatedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ComponentRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ConstraintConstrainedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DependencyEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DeploymentEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DurationObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.GeneralizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InformationFlowEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InterfaceRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ManifestationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RepresentationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RoleBindingEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.SubstitutionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.TimeObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.UsageEditPart;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.service.edit.service.ElementEditServiceUtils;
+import org.eclipse.papyrus.service.edit.service.IElementEditService;
+
+/**
+ * @generated
+ */
+public class DeviceCompositeItemSemanticEditPolicyCN extends UMLBaseItemSemanticEditPolicy {
+
+ /**
+ * @generated
+ */
+ public DeviceCompositeItemSemanticEditPolicyCN() {
+ super(UMLElementTypes.Device_3082);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCreateCommand(CreateElementRequest req) {
+ if(UMLElementTypes.Port_3069 == req.getElementType()) {
+ return getGEFWrapper(new PortCreateCommand(req));
+ }
+ return super.getCreateCommand(req);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getDestroyElementCommand(DestroyElementRequest req) {
+ EObject selectedEObject = req.getElementToDestroy();
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(selectedEObject);
+ if(provider != null) {
+ // Retrieve delete command from the Element Edit service
+ ICommand deleteCommand = provider.getEditCommand(req);
+
+ if(deleteCommand != null) {
+ return new ICommandProxy(deleteCommand);
+ }
+ }
+ return UnexecutableCommand.INSTANCE;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCreateRelationshipCommand(CreateRelationshipRequest req) {
+ Command command = req.getTarget() == null ? getStartCreateRelationshipCommand(req) : getCompleteCreateRelationshipCommand(req);
+ return command != null ? command : super.getCreateRelationshipCommand(req);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getStartCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Generalization_4015 == req.getElementType()) {
+ return getGEFWrapper(new GeneralizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.InformationItemRepresented_4020 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCompleteCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return getGEFWrapper(new CommentAnnotatedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return getGEFWrapper(new ConstraintConstrainedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Generalization_4015 == req.getElementType()) {
+ return getGEFWrapper(new GeneralizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return getGEFWrapper(new TimeObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return getGEFWrapper(new DurationObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InformationItemRepresented_4020 == req.getElementType()) {
+ return getGEFWrapper(new RepresentationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * Returns command to reorient EClass based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientRelationshipCommand(ReorientRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case ComponentRealizationEditPart.VISUAL_ID:
+ case InterfaceRealizationEditPart.VISUAL_ID:
+ case SubstitutionEditPart.VISUAL_ID:
+ case RealizationEditPart.VISUAL_ID:
+ case ManifestationEditPart.VISUAL_ID:
+ case AbstractionEditPart.VISUAL_ID:
+ case UsageEditPart.VISUAL_ID:
+ case DeploymentEditPart.VISUAL_ID:
+ case DependencyEditPart.VISUAL_ID:
+ case GeneralizationEditPart.VISUAL_ID:
+ case InformationFlowEditPart.VISUAL_ID:
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(req.getRelationship());
+ if(provider == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ // Retrieve re-orient command from the Element Edit service
+ ICommand reorientCommand = provider.getEditCommand(req);
+ if(reorientCommand == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ return getGEFWrapper(reorientCommand.reduce());
+ case RoleBindingEditPart.VISUAL_ID:
+ return getGEFWrapper(new RoleBindingReorientCommand(req));
+ }
+ return super.getReorientRelationshipCommand(req);
+ }
+
+ /**
+ * Returns command to reorient EReference based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientReferenceRelationshipCommand(ReorientReferenceRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case CommentAnnotatedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new CommentAnnotatedElementReorientCommand(req));
+ case ConstraintConstrainedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new ConstraintConstrainedElementReorientCommand(req));
+ case TimeObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new TimeObservationEventReorientCommand(req));
+ case DurationObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new DurationObservationEventReorientCommand(req));
+ case RepresentationEditPart.VISUAL_ID:
+ return getGEFWrapper(new RepresentationReorientCommand(req));
+ }
+ return super.getReorientReferenceRelationshipCommand(req);
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/DurationConstraintItemSemanticEditPolicy.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/DurationConstraintItemSemanticEditPolicy.java
new file mode 100644
index 00000000000..ca15bf9b2aa
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/DurationConstraintItemSemanticEditPolicy.java
@@ -0,0 +1,259 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.policies;
+
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.commands.UnexecutableCommand;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.diagram.ui.commands.ICommandProxy;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientReferenceRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientRelationshipRequest;
+import org.eclipse.papyrus.diagram.composite.edit.commands.AbstractionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ComponentRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DependencyCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DeploymentCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InformationFlowCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InterfaceRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ManifestationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.SubstitutionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.UsageCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.parts.AbstractionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CommentAnnotatedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ComponentRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ConstraintConstrainedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DependencyEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DeploymentEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DurationObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InformationFlowEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InterfaceRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ManifestationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RoleBindingEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.SubstitutionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.TimeObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.UsageEditPart;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.service.edit.service.ElementEditServiceUtils;
+import org.eclipse.papyrus.service.edit.service.IElementEditService;
+
+/**
+ * @generated
+ */
+public class DurationConstraintItemSemanticEditPolicy extends UMLBaseItemSemanticEditPolicy {
+
+ /**
+ * @generated
+ */
+ public DurationConstraintItemSemanticEditPolicy() {
+ super(UMLElementTypes.DurationConstraint_2110);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getDestroyElementCommand(DestroyElementRequest req) {
+ EObject selectedEObject = req.getElementToDestroy();
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(selectedEObject);
+ if(provider != null) {
+ // Retrieve delete command from the Element Edit service
+ ICommand deleteCommand = provider.getEditCommand(req);
+
+ if(deleteCommand != null) {
+ return new ICommandProxy(deleteCommand);
+ }
+ }
+ return UnexecutableCommand.INSTANCE;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCreateRelationshipCommand(CreateRelationshipRequest req) {
+ Command command = req.getTarget() == null ? getStartCreateRelationshipCommand(req) : getCompleteCreateRelationshipCommand(req);
+ return command != null ? command : super.getCreateRelationshipCommand(req);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getStartCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return getGEFWrapper(new ConstraintConstrainedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCompleteCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return getGEFWrapper(new CommentAnnotatedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return getGEFWrapper(new ConstraintConstrainedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return getGEFWrapper(new TimeObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return getGEFWrapper(new DurationObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * Returns command to reorient EClass based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientRelationshipCommand(ReorientRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case ComponentRealizationEditPart.VISUAL_ID:
+ case InterfaceRealizationEditPart.VISUAL_ID:
+ case SubstitutionEditPart.VISUAL_ID:
+ case RealizationEditPart.VISUAL_ID:
+ case ManifestationEditPart.VISUAL_ID:
+ case AbstractionEditPart.VISUAL_ID:
+ case UsageEditPart.VISUAL_ID:
+ case DeploymentEditPart.VISUAL_ID:
+ case DependencyEditPart.VISUAL_ID:
+ case InformationFlowEditPart.VISUAL_ID:
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(req.getRelationship());
+ if(provider == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ // Retrieve re-orient command from the Element Edit service
+ ICommand reorientCommand = provider.getEditCommand(req);
+ if(reorientCommand == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ return getGEFWrapper(reorientCommand.reduce());
+ case RoleBindingEditPart.VISUAL_ID:
+ return getGEFWrapper(new RoleBindingReorientCommand(req));
+ }
+ return super.getReorientRelationshipCommand(req);
+ }
+
+ /**
+ * Returns command to reorient EReference based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientReferenceRelationshipCommand(ReorientReferenceRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case CommentAnnotatedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new CommentAnnotatedElementReorientCommand(req));
+ case ConstraintConstrainedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new ConstraintConstrainedElementReorientCommand(req));
+ case TimeObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new TimeObservationEventReorientCommand(req));
+ case DurationObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new DurationObservationEventReorientCommand(req));
+ }
+ return super.getReorientReferenceRelationshipCommand(req);
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/DurationConstraintItemSemanticEditPolicyCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/DurationConstraintItemSemanticEditPolicyCN.java
new file mode 100644
index 00000000000..54f9cfeb7a0
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/DurationConstraintItemSemanticEditPolicyCN.java
@@ -0,0 +1,259 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.policies;
+
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.commands.UnexecutableCommand;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.diagram.ui.commands.ICommandProxy;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientReferenceRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientRelationshipRequest;
+import org.eclipse.papyrus.diagram.composite.edit.commands.AbstractionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ComponentRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DependencyCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DeploymentCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InformationFlowCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InterfaceRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ManifestationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.SubstitutionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.UsageCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.parts.AbstractionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CommentAnnotatedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ComponentRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ConstraintConstrainedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DependencyEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DeploymentEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DurationObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InformationFlowEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InterfaceRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ManifestationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RoleBindingEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.SubstitutionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.TimeObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.UsageEditPart;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.service.edit.service.ElementEditServiceUtils;
+import org.eclipse.papyrus.service.edit.service.IElementEditService;
+
+/**
+ * @generated
+ */
+public class DurationConstraintItemSemanticEditPolicyCN extends UMLBaseItemSemanticEditPolicy {
+
+ /**
+ * @generated
+ */
+ public DurationConstraintItemSemanticEditPolicyCN() {
+ super(UMLElementTypes.DurationConstraint_3116);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getDestroyElementCommand(DestroyElementRequest req) {
+ EObject selectedEObject = req.getElementToDestroy();
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(selectedEObject);
+ if(provider != null) {
+ // Retrieve delete command from the Element Edit service
+ ICommand deleteCommand = provider.getEditCommand(req);
+
+ if(deleteCommand != null) {
+ return new ICommandProxy(deleteCommand);
+ }
+ }
+ return UnexecutableCommand.INSTANCE;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCreateRelationshipCommand(CreateRelationshipRequest req) {
+ Command command = req.getTarget() == null ? getStartCreateRelationshipCommand(req) : getCompleteCreateRelationshipCommand(req);
+ return command != null ? command : super.getCreateRelationshipCommand(req);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getStartCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return getGEFWrapper(new ConstraintConstrainedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCompleteCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return getGEFWrapper(new CommentAnnotatedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return getGEFWrapper(new ConstraintConstrainedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return getGEFWrapper(new TimeObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return getGEFWrapper(new DurationObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * Returns command to reorient EClass based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientRelationshipCommand(ReorientRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case ComponentRealizationEditPart.VISUAL_ID:
+ case InterfaceRealizationEditPart.VISUAL_ID:
+ case SubstitutionEditPart.VISUAL_ID:
+ case RealizationEditPart.VISUAL_ID:
+ case ManifestationEditPart.VISUAL_ID:
+ case AbstractionEditPart.VISUAL_ID:
+ case UsageEditPart.VISUAL_ID:
+ case DeploymentEditPart.VISUAL_ID:
+ case DependencyEditPart.VISUAL_ID:
+ case InformationFlowEditPart.VISUAL_ID:
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(req.getRelationship());
+ if(provider == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ // Retrieve re-orient command from the Element Edit service
+ ICommand reorientCommand = provider.getEditCommand(req);
+ if(reorientCommand == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ return getGEFWrapper(reorientCommand.reduce());
+ case RoleBindingEditPart.VISUAL_ID:
+ return getGEFWrapper(new RoleBindingReorientCommand(req));
+ }
+ return super.getReorientRelationshipCommand(req);
+ }
+
+ /**
+ * Returns command to reorient EReference based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientReferenceRelationshipCommand(ReorientReferenceRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case CommentAnnotatedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new CommentAnnotatedElementReorientCommand(req));
+ case ConstraintConstrainedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new ConstraintConstrainedElementReorientCommand(req));
+ case TimeObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new TimeObservationEventReorientCommand(req));
+ case DurationObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new DurationObservationEventReorientCommand(req));
+ }
+ return super.getReorientReferenceRelationshipCommand(req);
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/DurationIntervalItemSemanticEditPolicy.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/DurationIntervalItemSemanticEditPolicy.java
new file mode 100644
index 00000000000..097dad4370e
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/DurationIntervalItemSemanticEditPolicy.java
@@ -0,0 +1,259 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.policies;
+
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.commands.UnexecutableCommand;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.diagram.ui.commands.ICommandProxy;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientReferenceRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientRelationshipRequest;
+import org.eclipse.papyrus.diagram.composite.edit.commands.AbstractionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ComponentRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DependencyCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DeploymentCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InformationFlowCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InterfaceRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ManifestationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.SubstitutionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.UsageCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.parts.AbstractionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CommentAnnotatedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ComponentRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ConstraintConstrainedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DependencyEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DeploymentEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DurationObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InformationFlowEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InterfaceRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ManifestationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RoleBindingEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.SubstitutionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.TimeObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.UsageEditPart;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.service.edit.service.ElementEditServiceUtils;
+import org.eclipse.papyrus.service.edit.service.IElementEditService;
+
+/**
+ * @generated
+ */
+public class DurationIntervalItemSemanticEditPolicy extends UMLBaseItemSemanticEditPolicy {
+
+ /**
+ * @generated
+ */
+ public DurationIntervalItemSemanticEditPolicy() {
+ super(UMLElementTypes.DurationInterval_2106);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getDestroyElementCommand(DestroyElementRequest req) {
+ EObject selectedEObject = req.getElementToDestroy();
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(selectedEObject);
+ if(provider != null) {
+ // Retrieve delete command from the Element Edit service
+ ICommand deleteCommand = provider.getEditCommand(req);
+
+ if(deleteCommand != null) {
+ return new ICommandProxy(deleteCommand);
+ }
+ }
+ return UnexecutableCommand.INSTANCE;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCreateRelationshipCommand(CreateRelationshipRequest req) {
+ Command command = req.getTarget() == null ? getStartCreateRelationshipCommand(req) : getCompleteCreateRelationshipCommand(req);
+ return command != null ? command : super.getCreateRelationshipCommand(req);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getStartCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCompleteCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return getGEFWrapper(new CommentAnnotatedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return getGEFWrapper(new ConstraintConstrainedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return getGEFWrapper(new TimeObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return getGEFWrapper(new DurationObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * Returns command to reorient EClass based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientRelationshipCommand(ReorientRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case ComponentRealizationEditPart.VISUAL_ID:
+ case InterfaceRealizationEditPart.VISUAL_ID:
+ case SubstitutionEditPart.VISUAL_ID:
+ case RealizationEditPart.VISUAL_ID:
+ case ManifestationEditPart.VISUAL_ID:
+ case AbstractionEditPart.VISUAL_ID:
+ case UsageEditPart.VISUAL_ID:
+ case DeploymentEditPart.VISUAL_ID:
+ case DependencyEditPart.VISUAL_ID:
+ case InformationFlowEditPart.VISUAL_ID:
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(req.getRelationship());
+ if(provider == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ // Retrieve re-orient command from the Element Edit service
+ ICommand reorientCommand = provider.getEditCommand(req);
+ if(reorientCommand == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ return getGEFWrapper(reorientCommand.reduce());
+ case RoleBindingEditPart.VISUAL_ID:
+ return getGEFWrapper(new RoleBindingReorientCommand(req));
+ }
+ return super.getReorientRelationshipCommand(req);
+ }
+
+ /**
+ * Returns command to reorient EReference based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientReferenceRelationshipCommand(ReorientReferenceRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case CommentAnnotatedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new CommentAnnotatedElementReorientCommand(req));
+ case ConstraintConstrainedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new ConstraintConstrainedElementReorientCommand(req));
+ case TimeObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new TimeObservationEventReorientCommand(req));
+ case DurationObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new DurationObservationEventReorientCommand(req));
+ }
+ return super.getReorientReferenceRelationshipCommand(req);
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/DurationItemSemanticEditPolicy.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/DurationItemSemanticEditPolicy.java
new file mode 100644
index 00000000000..3965ad497dc
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/DurationItemSemanticEditPolicy.java
@@ -0,0 +1,259 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.policies;
+
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.commands.UnexecutableCommand;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.diagram.ui.commands.ICommandProxy;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientReferenceRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientRelationshipRequest;
+import org.eclipse.papyrus.diagram.composite.edit.commands.AbstractionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ComponentRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DependencyCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DeploymentCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InformationFlowCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InterfaceRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ManifestationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.SubstitutionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.UsageCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.parts.AbstractionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CommentAnnotatedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ComponentRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ConstraintConstrainedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DependencyEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DeploymentEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DurationObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InformationFlowEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InterfaceRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ManifestationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RoleBindingEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.SubstitutionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.TimeObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.UsageEditPart;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.service.edit.service.ElementEditServiceUtils;
+import org.eclipse.papyrus.service.edit.service.IElementEditService;
+
+/**
+ * @generated
+ */
+public class DurationItemSemanticEditPolicy extends UMLBaseItemSemanticEditPolicy {
+
+ /**
+ * @generated
+ */
+ public DurationItemSemanticEditPolicy() {
+ super(UMLElementTypes.Duration_2104);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getDestroyElementCommand(DestroyElementRequest req) {
+ EObject selectedEObject = req.getElementToDestroy();
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(selectedEObject);
+ if(provider != null) {
+ // Retrieve delete command from the Element Edit service
+ ICommand deleteCommand = provider.getEditCommand(req);
+
+ if(deleteCommand != null) {
+ return new ICommandProxy(deleteCommand);
+ }
+ }
+ return UnexecutableCommand.INSTANCE;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCreateRelationshipCommand(CreateRelationshipRequest req) {
+ Command command = req.getTarget() == null ? getStartCreateRelationshipCommand(req) : getCompleteCreateRelationshipCommand(req);
+ return command != null ? command : super.getCreateRelationshipCommand(req);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getStartCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCompleteCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return getGEFWrapper(new CommentAnnotatedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return getGEFWrapper(new ConstraintConstrainedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return getGEFWrapper(new TimeObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return getGEFWrapper(new DurationObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * Returns command to reorient EClass based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientRelationshipCommand(ReorientRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case ComponentRealizationEditPart.VISUAL_ID:
+ case InterfaceRealizationEditPart.VISUAL_ID:
+ case SubstitutionEditPart.VISUAL_ID:
+ case RealizationEditPart.VISUAL_ID:
+ case ManifestationEditPart.VISUAL_ID:
+ case AbstractionEditPart.VISUAL_ID:
+ case UsageEditPart.VISUAL_ID:
+ case DeploymentEditPart.VISUAL_ID:
+ case DependencyEditPart.VISUAL_ID:
+ case InformationFlowEditPart.VISUAL_ID:
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(req.getRelationship());
+ if(provider == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ // Retrieve re-orient command from the Element Edit service
+ ICommand reorientCommand = provider.getEditCommand(req);
+ if(reorientCommand == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ return getGEFWrapper(reorientCommand.reduce());
+ case RoleBindingEditPart.VISUAL_ID:
+ return getGEFWrapper(new RoleBindingReorientCommand(req));
+ }
+ return super.getReorientRelationshipCommand(req);
+ }
+
+ /**
+ * Returns command to reorient EReference based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientReferenceRelationshipCommand(ReorientReferenceRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case CommentAnnotatedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new CommentAnnotatedElementReorientCommand(req));
+ case ConstraintConstrainedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new ConstraintConstrainedElementReorientCommand(req));
+ case TimeObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new TimeObservationEventReorientCommand(req));
+ case DurationObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new DurationObservationEventReorientCommand(req));
+ }
+ return super.getReorientReferenceRelationshipCommand(req);
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/DurationObservationEventItemSemanticEditPolicy.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/DurationObservationEventItemSemanticEditPolicy.java
new file mode 100644
index 00000000000..f83b86f2233
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/DurationObservationEventItemSemanticEditPolicy.java
@@ -0,0 +1,40 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.policies;
+
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gmf.runtime.emf.type.core.commands.DestroyReferenceCommand;
+import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyReferenceRequest;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+
+/**
+ * @generated
+ */
+public class DurationObservationEventItemSemanticEditPolicy extends UMLBaseItemSemanticEditPolicy {
+
+ /**
+ * @generated
+ */
+ public DurationObservationEventItemSemanticEditPolicy() {
+ super(UMLElementTypes.DurationObservationEvent_4019);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getDestroyReferenceCommand(DestroyReferenceRequest req) {
+ return getGEFWrapper(new DestroyReferenceCommand(req));
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/DurationObservationItemSemanticEditPolicy.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/DurationObservationItemSemanticEditPolicy.java
new file mode 100644
index 00000000000..a55b07ee411
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/DurationObservationItemSemanticEditPolicy.java
@@ -0,0 +1,259 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.policies;
+
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.commands.UnexecutableCommand;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.diagram.ui.commands.ICommandProxy;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientReferenceRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientRelationshipRequest;
+import org.eclipse.papyrus.diagram.composite.edit.commands.AbstractionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ComponentRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DependencyCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DeploymentCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InformationFlowCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InterfaceRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ManifestationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.SubstitutionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.UsageCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.parts.AbstractionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CommentAnnotatedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ComponentRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ConstraintConstrainedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DependencyEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DeploymentEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DurationObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InformationFlowEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InterfaceRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ManifestationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RoleBindingEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.SubstitutionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.TimeObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.UsageEditPart;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.service.edit.service.ElementEditServiceUtils;
+import org.eclipse.papyrus.service.edit.service.IElementEditService;
+
+/**
+ * @generated
+ */
+public class DurationObservationItemSemanticEditPolicy extends UMLBaseItemSemanticEditPolicy {
+
+ /**
+ * @generated
+ */
+ public DurationObservationItemSemanticEditPolicy() {
+ super(UMLElementTypes.DurationObservation_2093);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getDestroyElementCommand(DestroyElementRequest req) {
+ EObject selectedEObject = req.getElementToDestroy();
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(selectedEObject);
+ if(provider != null) {
+ // Retrieve delete command from the Element Edit service
+ ICommand deleteCommand = provider.getEditCommand(req);
+
+ if(deleteCommand != null) {
+ return new ICommandProxy(deleteCommand);
+ }
+ }
+ return UnexecutableCommand.INSTANCE;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCreateRelationshipCommand(CreateRelationshipRequest req) {
+ Command command = req.getTarget() == null ? getStartCreateRelationshipCommand(req) : getCompleteCreateRelationshipCommand(req);
+ return command != null ? command : super.getCreateRelationshipCommand(req);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getStartCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return getGEFWrapper(new DurationObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCompleteCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return getGEFWrapper(new CommentAnnotatedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return getGEFWrapper(new ConstraintConstrainedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return getGEFWrapper(new TimeObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return getGEFWrapper(new DurationObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * Returns command to reorient EClass based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientRelationshipCommand(ReorientRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case ComponentRealizationEditPart.VISUAL_ID:
+ case InterfaceRealizationEditPart.VISUAL_ID:
+ case SubstitutionEditPart.VISUAL_ID:
+ case RealizationEditPart.VISUAL_ID:
+ case ManifestationEditPart.VISUAL_ID:
+ case AbstractionEditPart.VISUAL_ID:
+ case UsageEditPart.VISUAL_ID:
+ case DeploymentEditPart.VISUAL_ID:
+ case DependencyEditPart.VISUAL_ID:
+ case InformationFlowEditPart.VISUAL_ID:
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(req.getRelationship());
+ if(provider == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ // Retrieve re-orient command from the Element Edit service
+ ICommand reorientCommand = provider.getEditCommand(req);
+ if(reorientCommand == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ return getGEFWrapper(reorientCommand.reduce());
+ case RoleBindingEditPart.VISUAL_ID:
+ return getGEFWrapper(new RoleBindingReorientCommand(req));
+ }
+ return super.getReorientRelationshipCommand(req);
+ }
+
+ /**
+ * Returns command to reorient EReference based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientReferenceRelationshipCommand(ReorientReferenceRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case CommentAnnotatedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new CommentAnnotatedElementReorientCommand(req));
+ case ConstraintConstrainedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new ConstraintConstrainedElementReorientCommand(req));
+ case TimeObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new TimeObservationEventReorientCommand(req));
+ case DurationObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new DurationObservationEventReorientCommand(req));
+ }
+ return super.getReorientReferenceRelationshipCommand(req);
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/EnumerationEnumerationLiteralCompartmentItemSemanticEditPolicy.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/EnumerationEnumerationLiteralCompartmentItemSemanticEditPolicy.java
new file mode 100644
index 00000000000..8c282283ae1
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/EnumerationEnumerationLiteralCompartmentItemSemanticEditPolicy.java
@@ -0,0 +1,43 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.policies;
+
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+import org.eclipse.papyrus.diagram.composite.edit.commands.EnumerationLiteralCreateCommandCLN;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+
+/**
+ * @generated
+ */
+public class EnumerationEnumerationLiteralCompartmentItemSemanticEditPolicy extends UMLBaseItemSemanticEditPolicy {
+
+ /**
+ * @generated
+ */
+ public EnumerationEnumerationLiteralCompartmentItemSemanticEditPolicy() {
+ super(UMLElementTypes.Enumeration_2067);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCreateCommand(CreateElementRequest req) {
+ if(UMLElementTypes.EnumerationLiteral_3066 == req.getElementType()) {
+ return getGEFWrapper(new EnumerationLiteralCreateCommandCLN(req));
+ }
+ return super.getCreateCommand(req);
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/EnumerationEnumerationLiteralCompartmentItemSemanticEditPolicyCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/EnumerationEnumerationLiteralCompartmentItemSemanticEditPolicyCN.java
new file mode 100644
index 00000000000..9c53611e3ed
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/EnumerationEnumerationLiteralCompartmentItemSemanticEditPolicyCN.java
@@ -0,0 +1,43 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.policies;
+
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+import org.eclipse.papyrus.diagram.composite.edit.commands.EnumerationLiteralCreateCommandCLN;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+
+/**
+ * @generated
+ */
+public class EnumerationEnumerationLiteralCompartmentItemSemanticEditPolicyCN extends UMLBaseItemSemanticEditPolicy {
+
+ /**
+ * @generated
+ */
+ public EnumerationEnumerationLiteralCompartmentItemSemanticEditPolicyCN() {
+ super(UMLElementTypes.Enumeration_3079);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCreateCommand(CreateElementRequest req) {
+ if(UMLElementTypes.EnumerationLiteral_3066 == req.getElementType()) {
+ return getGEFWrapper(new EnumerationLiteralCreateCommandCLN(req));
+ }
+ return super.getCreateCommand(req);
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/EnumerationItemSemanticEditPolicy.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/EnumerationItemSemanticEditPolicy.java
new file mode 100644
index 00000000000..8fbd54e0dcf
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/EnumerationItemSemanticEditPolicy.java
@@ -0,0 +1,291 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.policies;
+
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.commands.UnexecutableCommand;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.diagram.ui.commands.ICommandProxy;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientReferenceRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientRelationshipRequest;
+import org.eclipse.papyrus.diagram.composite.edit.commands.AbstractionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ComponentRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DependencyCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DeploymentCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.EnumerationLiteralCreateCommandCLN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.GeneralizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InformationFlowCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InterfaceRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ManifestationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RepresentationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RepresentationReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.SubstitutionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.UsageCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.parts.AbstractionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CommentAnnotatedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ComponentRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ConstraintConstrainedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DependencyEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DeploymentEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DurationObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.GeneralizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InformationFlowEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InterfaceRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ManifestationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RepresentationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RoleBindingEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.SubstitutionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.TimeObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.UsageEditPart;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.service.edit.service.ElementEditServiceUtils;
+import org.eclipse.papyrus.service.edit.service.IElementEditService;
+
+/**
+ * @generated
+ */
+public class EnumerationItemSemanticEditPolicy extends UMLBaseItemSemanticEditPolicy {
+
+ /**
+ * @generated
+ */
+ public EnumerationItemSemanticEditPolicy() {
+ super(UMLElementTypes.Enumeration_2067);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCreateCommand(CreateElementRequest req) {
+ if(UMLElementTypes.EnumerationLiteral_3066 == req.getElementType()) {
+ return getGEFWrapper(new EnumerationLiteralCreateCommandCLN(req));
+ }
+ return super.getCreateCommand(req);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getDestroyElementCommand(DestroyElementRequest req) {
+ EObject selectedEObject = req.getElementToDestroy();
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(selectedEObject);
+ if(provider != null) {
+ // Retrieve delete command from the Element Edit service
+ ICommand deleteCommand = provider.getEditCommand(req);
+
+ if(deleteCommand != null) {
+ return new ICommandProxy(deleteCommand);
+ }
+ }
+ return UnexecutableCommand.INSTANCE;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCreateRelationshipCommand(CreateRelationshipRequest req) {
+ Command command = req.getTarget() == null ? getStartCreateRelationshipCommand(req) : getCompleteCreateRelationshipCommand(req);
+ return command != null ? command : super.getCreateRelationshipCommand(req);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getStartCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Generalization_4015 == req.getElementType()) {
+ return getGEFWrapper(new GeneralizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.InformationItemRepresented_4020 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCompleteCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return getGEFWrapper(new CommentAnnotatedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return getGEFWrapper(new ConstraintConstrainedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Generalization_4015 == req.getElementType()) {
+ return getGEFWrapper(new GeneralizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return getGEFWrapper(new TimeObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return getGEFWrapper(new DurationObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InformationItemRepresented_4020 == req.getElementType()) {
+ return getGEFWrapper(new RepresentationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * Returns command to reorient EClass based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientRelationshipCommand(ReorientRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case ComponentRealizationEditPart.VISUAL_ID:
+ case InterfaceRealizationEditPart.VISUAL_ID:
+ case SubstitutionEditPart.VISUAL_ID:
+ case RealizationEditPart.VISUAL_ID:
+ case ManifestationEditPart.VISUAL_ID:
+ case AbstractionEditPart.VISUAL_ID:
+ case UsageEditPart.VISUAL_ID:
+ case DeploymentEditPart.VISUAL_ID:
+ case DependencyEditPart.VISUAL_ID:
+ case GeneralizationEditPart.VISUAL_ID:
+ case InformationFlowEditPart.VISUAL_ID:
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(req.getRelationship());
+ if(provider == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ // Retrieve re-orient command from the Element Edit service
+ ICommand reorientCommand = provider.getEditCommand(req);
+ if(reorientCommand == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ return getGEFWrapper(reorientCommand.reduce());
+ case RoleBindingEditPart.VISUAL_ID:
+ return getGEFWrapper(new RoleBindingReorientCommand(req));
+ }
+ return super.getReorientRelationshipCommand(req);
+ }
+
+ /**
+ * Returns command to reorient EReference based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientReferenceRelationshipCommand(ReorientReferenceRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case CommentAnnotatedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new CommentAnnotatedElementReorientCommand(req));
+ case ConstraintConstrainedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new ConstraintConstrainedElementReorientCommand(req));
+ case TimeObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new TimeObservationEventReorientCommand(req));
+ case DurationObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new DurationObservationEventReorientCommand(req));
+ case RepresentationEditPart.VISUAL_ID:
+ return getGEFWrapper(new RepresentationReorientCommand(req));
+ }
+ return super.getReorientReferenceRelationshipCommand(req);
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/EnumerationItemSemanticEditPolicyCLN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/EnumerationItemSemanticEditPolicyCLN.java
new file mode 100644
index 00000000000..95ba6dd8d47
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/EnumerationItemSemanticEditPolicyCLN.java
@@ -0,0 +1,64 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.policies;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import org.eclipse.emf.ecore.EAnnotation;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.edit.command.DeleteCommand;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gmf.runtime.emf.commands.core.command.CompositeTransactionalCommand;
+import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.commands.wrappers.EMFtoGMFCommandWrapper;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+
+/**
+ * @generated
+ */
+public class EnumerationItemSemanticEditPolicyCLN extends UMLBaseItemSemanticEditPolicy {
+
+ /**
+ * @generated
+ */
+ public EnumerationItemSemanticEditPolicyCLN() {
+ super(UMLElementTypes.Enumeration_3111);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getDestroyElementCommand(DestroyElementRequest req) {
+ View view = (View)getHost().getModel();
+ CompositeTransactionalCommand cmd = new CompositeTransactionalCommand(getEditingDomain(), null);
+ cmd.setTransactionNestingEnabled(true);
+
+ EAnnotation annotation = view.getEAnnotation("Shortcut"); //$NON-NLS-1$
+ if(annotation == null) {
+ // there are indirectly referenced children, need extra commands: false
+ addDestroyShortcutsCommand(cmd, view);
+ // delete host element
+ List<EObject> todestroy = new ArrayList<EObject>();
+ todestroy.add(req.getElementToDestroy());
+ //cmd.add(new org.eclipse.gmf.runtime.emf.type.core.commands.DestroyElementCommand(req));
+ cmd.add(new EMFtoGMFCommandWrapper(new DeleteCommand(getEditingDomain(), todestroy)));
+ } else {
+ cmd.add(new org.eclipse.gmf.runtime.diagram.core.commands.DeleteCommand(getEditingDomain(), view));
+ }
+ return getGEFWrapper(cmd.reduce());
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/EnumerationItemSemanticEditPolicyCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/EnumerationItemSemanticEditPolicyCN.java
new file mode 100644
index 00000000000..27a883b81e9
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/EnumerationItemSemanticEditPolicyCN.java
@@ -0,0 +1,291 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.policies;
+
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.commands.UnexecutableCommand;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.diagram.ui.commands.ICommandProxy;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientReferenceRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientRelationshipRequest;
+import org.eclipse.papyrus.diagram.composite.edit.commands.AbstractionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ComponentRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DependencyCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DeploymentCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.EnumerationLiteralCreateCommandCLN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.GeneralizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InformationFlowCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InterfaceRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ManifestationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RepresentationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RepresentationReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.SubstitutionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.UsageCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.parts.AbstractionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CommentAnnotatedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ComponentRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ConstraintConstrainedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DependencyEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DeploymentEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DurationObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.GeneralizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InformationFlowEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InterfaceRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ManifestationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RepresentationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RoleBindingEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.SubstitutionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.TimeObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.UsageEditPart;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.service.edit.service.ElementEditServiceUtils;
+import org.eclipse.papyrus.service.edit.service.IElementEditService;
+
+/**
+ * @generated
+ */
+public class EnumerationItemSemanticEditPolicyCN extends UMLBaseItemSemanticEditPolicy {
+
+ /**
+ * @generated
+ */
+ public EnumerationItemSemanticEditPolicyCN() {
+ super(UMLElementTypes.Enumeration_3079);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCreateCommand(CreateElementRequest req) {
+ if(UMLElementTypes.EnumerationLiteral_3066 == req.getElementType()) {
+ return getGEFWrapper(new EnumerationLiteralCreateCommandCLN(req));
+ }
+ return super.getCreateCommand(req);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getDestroyElementCommand(DestroyElementRequest req) {
+ EObject selectedEObject = req.getElementToDestroy();
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(selectedEObject);
+ if(provider != null) {
+ // Retrieve delete command from the Element Edit service
+ ICommand deleteCommand = provider.getEditCommand(req);
+
+ if(deleteCommand != null) {
+ return new ICommandProxy(deleteCommand);
+ }
+ }
+ return UnexecutableCommand.INSTANCE;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCreateRelationshipCommand(CreateRelationshipRequest req) {
+ Command command = req.getTarget() == null ? getStartCreateRelationshipCommand(req) : getCompleteCreateRelationshipCommand(req);
+ return command != null ? command : super.getCreateRelationshipCommand(req);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getStartCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Generalization_4015 == req.getElementType()) {
+ return getGEFWrapper(new GeneralizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.InformationItemRepresented_4020 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCompleteCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return getGEFWrapper(new CommentAnnotatedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return getGEFWrapper(new ConstraintConstrainedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Generalization_4015 == req.getElementType()) {
+ return getGEFWrapper(new GeneralizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return getGEFWrapper(new TimeObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return getGEFWrapper(new DurationObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InformationItemRepresented_4020 == req.getElementType()) {
+ return getGEFWrapper(new RepresentationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * Returns command to reorient EClass based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientRelationshipCommand(ReorientRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case ComponentRealizationEditPart.VISUAL_ID:
+ case InterfaceRealizationEditPart.VISUAL_ID:
+ case SubstitutionEditPart.VISUAL_ID:
+ case RealizationEditPart.VISUAL_ID:
+ case ManifestationEditPart.VISUAL_ID:
+ case AbstractionEditPart.VISUAL_ID:
+ case UsageEditPart.VISUAL_ID:
+ case DeploymentEditPart.VISUAL_ID:
+ case DependencyEditPart.VISUAL_ID:
+ case GeneralizationEditPart.VISUAL_ID:
+ case InformationFlowEditPart.VISUAL_ID:
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(req.getRelationship());
+ if(provider == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ // Retrieve re-orient command from the Element Edit service
+ ICommand reorientCommand = provider.getEditCommand(req);
+ if(reorientCommand == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ return getGEFWrapper(reorientCommand.reduce());
+ case RoleBindingEditPart.VISUAL_ID:
+ return getGEFWrapper(new RoleBindingReorientCommand(req));
+ }
+ return super.getReorientRelationshipCommand(req);
+ }
+
+ /**
+ * Returns command to reorient EReference based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientReferenceRelationshipCommand(ReorientReferenceRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case CommentAnnotatedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new CommentAnnotatedElementReorientCommand(req));
+ case ConstraintConstrainedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new ConstraintConstrainedElementReorientCommand(req));
+ case TimeObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new TimeObservationEventReorientCommand(req));
+ case DurationObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new DurationObservationEventReorientCommand(req));
+ case RepresentationEditPart.VISUAL_ID:
+ return getGEFWrapper(new RepresentationReorientCommand(req));
+ }
+ return super.getReorientReferenceRelationshipCommand(req);
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/EnumerationLiteralItemSemanticEditPolicyCLN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/EnumerationLiteralItemSemanticEditPolicyCLN.java
new file mode 100644
index 00000000000..1c0f6bfe999
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/EnumerationLiteralItemSemanticEditPolicyCLN.java
@@ -0,0 +1,64 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.policies;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import org.eclipse.emf.ecore.EAnnotation;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.edit.command.DeleteCommand;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gmf.runtime.emf.commands.core.command.CompositeTransactionalCommand;
+import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.commands.wrappers.EMFtoGMFCommandWrapper;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+
+/**
+ * @generated
+ */
+public class EnumerationLiteralItemSemanticEditPolicyCLN extends UMLBaseItemSemanticEditPolicy {
+
+ /**
+ * @generated
+ */
+ public EnumerationLiteralItemSemanticEditPolicyCLN() {
+ super(UMLElementTypes.EnumerationLiteral_3066);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getDestroyElementCommand(DestroyElementRequest req) {
+ View view = (View)getHost().getModel();
+ CompositeTransactionalCommand cmd = new CompositeTransactionalCommand(getEditingDomain(), null);
+ cmd.setTransactionNestingEnabled(true);
+
+ EAnnotation annotation = view.getEAnnotation("Shortcut"); //$NON-NLS-1$
+ if(annotation == null) {
+ // there are indirectly referenced children, need extra commands: false
+ addDestroyShortcutsCommand(cmd, view);
+ // delete host element
+ List<EObject> todestroy = new ArrayList<EObject>();
+ todestroy.add(req.getElementToDestroy());
+ //cmd.add(new org.eclipse.gmf.runtime.emf.type.core.commands.DestroyElementCommand(req));
+ cmd.add(new EMFtoGMFCommandWrapper(new DeleteCommand(getEditingDomain(), todestroy)));
+ } else {
+ cmd.add(new org.eclipse.gmf.runtime.diagram.core.commands.DeleteCommand(getEditingDomain(), view));
+ }
+ return getGEFWrapper(cmd.reduce());
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/ExecutionEnvironmentCompositeCompartmentItemSemanticEditPolicy.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/ExecutionEnvironmentCompositeCompartmentItemSemanticEditPolicy.java
new file mode 100644
index 00000000000..1436cd03fa5
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/ExecutionEnvironmentCompositeCompartmentItemSemanticEditPolicy.java
@@ -0,0 +1,163 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.policies;
+
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ActivityCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ActorCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ArtifactCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ClassCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CollaborationCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CollaborationUseCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ComponentCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DataTypeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DeploymentSpecificationCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DeviceCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationConstraintCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.EnumerationCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ExecutionEnvironmentCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.FunctionBehaviorCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InformationItemCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InteractionCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InteractionConstraintCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InterfaceCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.IntervalConstraintCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.NodeCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.OpaqueBehaviorCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.PortCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.PrimitiveTypeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.PropertyPartCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ProtocolStateMachineCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.SignalCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.StateMachineCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeConstraintCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.UseCaseCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+
+/**
+ * @generated
+ */
+public class ExecutionEnvironmentCompositeCompartmentItemSemanticEditPolicy extends UMLBaseItemSemanticEditPolicy {
+
+ /**
+ * @generated
+ */
+ public ExecutionEnvironmentCompositeCompartmentItemSemanticEditPolicy() {
+ super(UMLElementTypes.ExecutionEnvironment_2071);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCreateCommand(CreateElementRequest req) {
+ if(UMLElementTypes.Port_3069 == req.getElementType()) {
+ return getGEFWrapper(new PortCreateCommand(req));
+ }
+ if(UMLElementTypes.Property_3070 == req.getElementType()) {
+ return getGEFWrapper(new PropertyPartCreateCommandCN(req));
+ }
+ if(UMLElementTypes.CollaborationUse_3071 == req.getElementType()) {
+ return getGEFWrapper(new CollaborationUseCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Activity_3072 == req.getElementType()) {
+ return getGEFWrapper(new ActivityCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Interaction_3073 == req.getElementType()) {
+ return getGEFWrapper(new InteractionCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.ProtocolStateMachine_3074 == req.getElementType()) {
+ return getGEFWrapper(new ProtocolStateMachineCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.StateMachine_3075 == req.getElementType()) {
+ return getGEFWrapper(new StateMachineCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.FunctionBehavior_3076 == req.getElementType()) {
+ return getGEFWrapper(new FunctionBehaviorCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.OpaqueBehavior_3077 == req.getElementType()) {
+ return getGEFWrapper(new OpaqueBehaviorCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Component_3081 == req.getElementType()) {
+ return getGEFWrapper(new ComponentCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Device_3082 == req.getElementType()) {
+ return getGEFWrapper(new DeviceCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.ExecutionEnvironment_3083 == req.getElementType()) {
+ return getGEFWrapper(new ExecutionEnvironmentCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Node_3084 == req.getElementType()) {
+ return getGEFWrapper(new NodeCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Class_3085 == req.getElementType()) {
+ return getGEFWrapper(new ClassCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Collaboration_3086 == req.getElementType()) {
+ return getGEFWrapper(new CollaborationCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Interface_3087 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceCreateCommandCN(req));
+ }
+ if(UMLElementTypes.PrimitiveType_3078 == req.getElementType()) {
+ return getGEFWrapper(new PrimitiveTypeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Enumeration_3079 == req.getElementType()) {
+ return getGEFWrapper(new EnumerationCreateCommandCN(req));
+ }
+ if(UMLElementTypes.DataType_3080 == req.getElementType()) {
+ return getGEFWrapper(new DataTypeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Actor_3091 == req.getElementType()) {
+ return getGEFWrapper(new ActorCreateCommandCN(req));
+ }
+ if(UMLElementTypes.DeploymentSpecification_3092 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentSpecificationCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Artifact_3093 == req.getElementType()) {
+ return getGEFWrapper(new ArtifactCreateCommandCN(req));
+ }
+ if(UMLElementTypes.InformationItem_3094 == req.getElementType()) {
+ return getGEFWrapper(new InformationItemCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Signal_3095 == req.getElementType()) {
+ return getGEFWrapper(new SignalCreateCommandCN(req));
+ }
+ if(UMLElementTypes.UseCase_3096 == req.getElementType()) {
+ return getGEFWrapper(new UseCaseCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Comment_3097 == req.getElementType()) {
+ return getGEFWrapper(new CommentCreateCommandCN(req));
+ }
+ if(UMLElementTypes.DurationConstraint_3116 == req.getElementType()) {
+ return getGEFWrapper(new DurationConstraintCreateCommandCN(req));
+ }
+ if(UMLElementTypes.TimeConstraint_3117 == req.getElementType()) {
+ return getGEFWrapper(new TimeConstraintCreateCommandCN(req));
+ }
+ if(UMLElementTypes.IntervalConstraint_3118 == req.getElementType()) {
+ return getGEFWrapper(new IntervalConstraintCreateCommandCN(req));
+ }
+ if(UMLElementTypes.InteractionConstraint_3119 == req.getElementType()) {
+ return getGEFWrapper(new InteractionConstraintCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Constraint_3120 == req.getElementType()) {
+ return getGEFWrapper(new ConstraintCreateCommandCN(req));
+ }
+ return super.getCreateCommand(req);
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/ExecutionEnvironmentCompositeCompartmentItemSemanticEditPolicyCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/ExecutionEnvironmentCompositeCompartmentItemSemanticEditPolicyCN.java
new file mode 100644
index 00000000000..9fd5f1455ea
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/ExecutionEnvironmentCompositeCompartmentItemSemanticEditPolicyCN.java
@@ -0,0 +1,163 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.policies;
+
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ActivityCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ActorCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ArtifactCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ClassCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CollaborationCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CollaborationUseCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ComponentCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DataTypeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DeploymentSpecificationCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DeviceCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationConstraintCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.EnumerationCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ExecutionEnvironmentCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.FunctionBehaviorCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InformationItemCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InteractionCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InteractionConstraintCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InterfaceCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.IntervalConstraintCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.NodeCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.OpaqueBehaviorCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.PortCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.PrimitiveTypeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.PropertyPartCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ProtocolStateMachineCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.SignalCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.StateMachineCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeConstraintCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.UseCaseCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+
+/**
+ * @generated
+ */
+public class ExecutionEnvironmentCompositeCompartmentItemSemanticEditPolicyCN extends UMLBaseItemSemanticEditPolicy {
+
+ /**
+ * @generated
+ */
+ public ExecutionEnvironmentCompositeCompartmentItemSemanticEditPolicyCN() {
+ super(UMLElementTypes.ExecutionEnvironment_3083);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCreateCommand(CreateElementRequest req) {
+ if(UMLElementTypes.Port_3069 == req.getElementType()) {
+ return getGEFWrapper(new PortCreateCommand(req));
+ }
+ if(UMLElementTypes.Property_3070 == req.getElementType()) {
+ return getGEFWrapper(new PropertyPartCreateCommandCN(req));
+ }
+ if(UMLElementTypes.CollaborationUse_3071 == req.getElementType()) {
+ return getGEFWrapper(new CollaborationUseCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Activity_3072 == req.getElementType()) {
+ return getGEFWrapper(new ActivityCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Interaction_3073 == req.getElementType()) {
+ return getGEFWrapper(new InteractionCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.ProtocolStateMachine_3074 == req.getElementType()) {
+ return getGEFWrapper(new ProtocolStateMachineCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.StateMachine_3075 == req.getElementType()) {
+ return getGEFWrapper(new StateMachineCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.FunctionBehavior_3076 == req.getElementType()) {
+ return getGEFWrapper(new FunctionBehaviorCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.OpaqueBehavior_3077 == req.getElementType()) {
+ return getGEFWrapper(new OpaqueBehaviorCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Component_3081 == req.getElementType()) {
+ return getGEFWrapper(new ComponentCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Device_3082 == req.getElementType()) {
+ return getGEFWrapper(new DeviceCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.ExecutionEnvironment_3083 == req.getElementType()) {
+ return getGEFWrapper(new ExecutionEnvironmentCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Node_3084 == req.getElementType()) {
+ return getGEFWrapper(new NodeCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Class_3085 == req.getElementType()) {
+ return getGEFWrapper(new ClassCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Collaboration_3086 == req.getElementType()) {
+ return getGEFWrapper(new CollaborationCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Interface_3087 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceCreateCommandCN(req));
+ }
+ if(UMLElementTypes.PrimitiveType_3078 == req.getElementType()) {
+ return getGEFWrapper(new PrimitiveTypeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Enumeration_3079 == req.getElementType()) {
+ return getGEFWrapper(new EnumerationCreateCommandCN(req));
+ }
+ if(UMLElementTypes.DataType_3080 == req.getElementType()) {
+ return getGEFWrapper(new DataTypeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Actor_3091 == req.getElementType()) {
+ return getGEFWrapper(new ActorCreateCommandCN(req));
+ }
+ if(UMLElementTypes.DeploymentSpecification_3092 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentSpecificationCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Artifact_3093 == req.getElementType()) {
+ return getGEFWrapper(new ArtifactCreateCommandCN(req));
+ }
+ if(UMLElementTypes.InformationItem_3094 == req.getElementType()) {
+ return getGEFWrapper(new InformationItemCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Signal_3095 == req.getElementType()) {
+ return getGEFWrapper(new SignalCreateCommandCN(req));
+ }
+ if(UMLElementTypes.UseCase_3096 == req.getElementType()) {
+ return getGEFWrapper(new UseCaseCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Comment_3097 == req.getElementType()) {
+ return getGEFWrapper(new CommentCreateCommandCN(req));
+ }
+ if(UMLElementTypes.DurationConstraint_3116 == req.getElementType()) {
+ return getGEFWrapper(new DurationConstraintCreateCommandCN(req));
+ }
+ if(UMLElementTypes.TimeConstraint_3117 == req.getElementType()) {
+ return getGEFWrapper(new TimeConstraintCreateCommandCN(req));
+ }
+ if(UMLElementTypes.IntervalConstraint_3118 == req.getElementType()) {
+ return getGEFWrapper(new IntervalConstraintCreateCommandCN(req));
+ }
+ if(UMLElementTypes.InteractionConstraint_3119 == req.getElementType()) {
+ return getGEFWrapper(new InteractionConstraintCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Constraint_3120 == req.getElementType()) {
+ return getGEFWrapper(new ConstraintCreateCommandCN(req));
+ }
+ return super.getCreateCommand(req);
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/ExecutionEnvironmentCompositeItemSemanticEditPolicy.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/ExecutionEnvironmentCompositeItemSemanticEditPolicy.java
new file mode 100644
index 00000000000..f8836e341f6
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/ExecutionEnvironmentCompositeItemSemanticEditPolicy.java
@@ -0,0 +1,291 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.policies;
+
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.commands.UnexecutableCommand;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.diagram.ui.commands.ICommandProxy;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientReferenceRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientRelationshipRequest;
+import org.eclipse.papyrus.diagram.composite.edit.commands.AbstractionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ComponentRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DependencyCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DeploymentCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.GeneralizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InformationFlowCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InterfaceRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ManifestationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.PortCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RepresentationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RepresentationReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.SubstitutionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.UsageCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.parts.AbstractionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CommentAnnotatedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ComponentRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ConstraintConstrainedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DependencyEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DeploymentEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DurationObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.GeneralizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InformationFlowEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InterfaceRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ManifestationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RepresentationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RoleBindingEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.SubstitutionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.TimeObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.UsageEditPart;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.service.edit.service.ElementEditServiceUtils;
+import org.eclipse.papyrus.service.edit.service.IElementEditService;
+
+/**
+ * @generated
+ */
+public class ExecutionEnvironmentCompositeItemSemanticEditPolicy extends UMLBaseItemSemanticEditPolicy {
+
+ /**
+ * @generated
+ */
+ public ExecutionEnvironmentCompositeItemSemanticEditPolicy() {
+ super(UMLElementTypes.ExecutionEnvironment_2071);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCreateCommand(CreateElementRequest req) {
+ if(UMLElementTypes.Port_3069 == req.getElementType()) {
+ return getGEFWrapper(new PortCreateCommand(req));
+ }
+ return super.getCreateCommand(req);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getDestroyElementCommand(DestroyElementRequest req) {
+ EObject selectedEObject = req.getElementToDestroy();
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(selectedEObject);
+ if(provider != null) {
+ // Retrieve delete command from the Element Edit service
+ ICommand deleteCommand = provider.getEditCommand(req);
+
+ if(deleteCommand != null) {
+ return new ICommandProxy(deleteCommand);
+ }
+ }
+ return UnexecutableCommand.INSTANCE;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCreateRelationshipCommand(CreateRelationshipRequest req) {
+ Command command = req.getTarget() == null ? getStartCreateRelationshipCommand(req) : getCompleteCreateRelationshipCommand(req);
+ return command != null ? command : super.getCreateRelationshipCommand(req);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getStartCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Generalization_4015 == req.getElementType()) {
+ return getGEFWrapper(new GeneralizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.InformationItemRepresented_4020 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCompleteCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return getGEFWrapper(new CommentAnnotatedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return getGEFWrapper(new ConstraintConstrainedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Generalization_4015 == req.getElementType()) {
+ return getGEFWrapper(new GeneralizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return getGEFWrapper(new TimeObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return getGEFWrapper(new DurationObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InformationItemRepresented_4020 == req.getElementType()) {
+ return getGEFWrapper(new RepresentationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * Returns command to reorient EClass based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientRelationshipCommand(ReorientRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case ComponentRealizationEditPart.VISUAL_ID:
+ case InterfaceRealizationEditPart.VISUAL_ID:
+ case SubstitutionEditPart.VISUAL_ID:
+ case RealizationEditPart.VISUAL_ID:
+ case ManifestationEditPart.VISUAL_ID:
+ case AbstractionEditPart.VISUAL_ID:
+ case UsageEditPart.VISUAL_ID:
+ case DeploymentEditPart.VISUAL_ID:
+ case DependencyEditPart.VISUAL_ID:
+ case GeneralizationEditPart.VISUAL_ID:
+ case InformationFlowEditPart.VISUAL_ID:
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(req.getRelationship());
+ if(provider == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ // Retrieve re-orient command from the Element Edit service
+ ICommand reorientCommand = provider.getEditCommand(req);
+ if(reorientCommand == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ return getGEFWrapper(reorientCommand.reduce());
+ case RoleBindingEditPart.VISUAL_ID:
+ return getGEFWrapper(new RoleBindingReorientCommand(req));
+ }
+ return super.getReorientRelationshipCommand(req);
+ }
+
+ /**
+ * Returns command to reorient EReference based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientReferenceRelationshipCommand(ReorientReferenceRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case CommentAnnotatedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new CommentAnnotatedElementReorientCommand(req));
+ case ConstraintConstrainedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new ConstraintConstrainedElementReorientCommand(req));
+ case TimeObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new TimeObservationEventReorientCommand(req));
+ case DurationObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new DurationObservationEventReorientCommand(req));
+ case RepresentationEditPart.VISUAL_ID:
+ return getGEFWrapper(new RepresentationReorientCommand(req));
+ }
+ return super.getReorientReferenceRelationshipCommand(req);
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/ExecutionEnvironmentCompositeItemSemanticEditPolicyCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/ExecutionEnvironmentCompositeItemSemanticEditPolicyCN.java
new file mode 100644
index 00000000000..0738d483f66
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/ExecutionEnvironmentCompositeItemSemanticEditPolicyCN.java
@@ -0,0 +1,291 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.policies;
+
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.commands.UnexecutableCommand;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.diagram.ui.commands.ICommandProxy;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientReferenceRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientRelationshipRequest;
+import org.eclipse.papyrus.diagram.composite.edit.commands.AbstractionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ComponentRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DependencyCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DeploymentCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.GeneralizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InformationFlowCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InterfaceRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ManifestationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.PortCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RepresentationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RepresentationReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.SubstitutionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.UsageCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.parts.AbstractionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CommentAnnotatedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ComponentRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ConstraintConstrainedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DependencyEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DeploymentEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DurationObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.GeneralizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InformationFlowEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InterfaceRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ManifestationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RepresentationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RoleBindingEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.SubstitutionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.TimeObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.UsageEditPart;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.service.edit.service.ElementEditServiceUtils;
+import org.eclipse.papyrus.service.edit.service.IElementEditService;
+
+/**
+ * @generated
+ */
+public class ExecutionEnvironmentCompositeItemSemanticEditPolicyCN extends UMLBaseItemSemanticEditPolicy {
+
+ /**
+ * @generated
+ */
+ public ExecutionEnvironmentCompositeItemSemanticEditPolicyCN() {
+ super(UMLElementTypes.ExecutionEnvironment_3083);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCreateCommand(CreateElementRequest req) {
+ if(UMLElementTypes.Port_3069 == req.getElementType()) {
+ return getGEFWrapper(new PortCreateCommand(req));
+ }
+ return super.getCreateCommand(req);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getDestroyElementCommand(DestroyElementRequest req) {
+ EObject selectedEObject = req.getElementToDestroy();
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(selectedEObject);
+ if(provider != null) {
+ // Retrieve delete command from the Element Edit service
+ ICommand deleteCommand = provider.getEditCommand(req);
+
+ if(deleteCommand != null) {
+ return new ICommandProxy(deleteCommand);
+ }
+ }
+ return UnexecutableCommand.INSTANCE;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCreateRelationshipCommand(CreateRelationshipRequest req) {
+ Command command = req.getTarget() == null ? getStartCreateRelationshipCommand(req) : getCompleteCreateRelationshipCommand(req);
+ return command != null ? command : super.getCreateRelationshipCommand(req);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getStartCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Generalization_4015 == req.getElementType()) {
+ return getGEFWrapper(new GeneralizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.InformationItemRepresented_4020 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCompleteCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return getGEFWrapper(new CommentAnnotatedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return getGEFWrapper(new ConstraintConstrainedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Generalization_4015 == req.getElementType()) {
+ return getGEFWrapper(new GeneralizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return getGEFWrapper(new TimeObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return getGEFWrapper(new DurationObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InformationItemRepresented_4020 == req.getElementType()) {
+ return getGEFWrapper(new RepresentationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * Returns command to reorient EClass based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientRelationshipCommand(ReorientRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case ComponentRealizationEditPart.VISUAL_ID:
+ case InterfaceRealizationEditPart.VISUAL_ID:
+ case SubstitutionEditPart.VISUAL_ID:
+ case RealizationEditPart.VISUAL_ID:
+ case ManifestationEditPart.VISUAL_ID:
+ case AbstractionEditPart.VISUAL_ID:
+ case UsageEditPart.VISUAL_ID:
+ case DeploymentEditPart.VISUAL_ID:
+ case DependencyEditPart.VISUAL_ID:
+ case GeneralizationEditPart.VISUAL_ID:
+ case InformationFlowEditPart.VISUAL_ID:
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(req.getRelationship());
+ if(provider == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ // Retrieve re-orient command from the Element Edit service
+ ICommand reorientCommand = provider.getEditCommand(req);
+ if(reorientCommand == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ return getGEFWrapper(reorientCommand.reduce());
+ case RoleBindingEditPart.VISUAL_ID:
+ return getGEFWrapper(new RoleBindingReorientCommand(req));
+ }
+ return super.getReorientRelationshipCommand(req);
+ }
+
+ /**
+ * Returns command to reorient EReference based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientReferenceRelationshipCommand(ReorientReferenceRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case CommentAnnotatedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new CommentAnnotatedElementReorientCommand(req));
+ case ConstraintConstrainedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new ConstraintConstrainedElementReorientCommand(req));
+ case TimeObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new TimeObservationEventReorientCommand(req));
+ case DurationObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new DurationObservationEventReorientCommand(req));
+ case RepresentationEditPart.VISUAL_ID:
+ return getGEFWrapper(new RepresentationReorientCommand(req));
+ }
+ return super.getReorientReferenceRelationshipCommand(req);
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/ExecutionEventItemSemanticEditPolicy.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/ExecutionEventItemSemanticEditPolicy.java
new file mode 100644
index 00000000000..eeedfc6752e
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/ExecutionEventItemSemanticEditPolicy.java
@@ -0,0 +1,259 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.policies;
+
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.commands.UnexecutableCommand;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.diagram.ui.commands.ICommandProxy;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientReferenceRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientRelationshipRequest;
+import org.eclipse.papyrus.diagram.composite.edit.commands.AbstractionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ComponentRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DependencyCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DeploymentCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InformationFlowCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InterfaceRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ManifestationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.SubstitutionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.UsageCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.parts.AbstractionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CommentAnnotatedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ComponentRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ConstraintConstrainedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DependencyEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DeploymentEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DurationObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InformationFlowEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InterfaceRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ManifestationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RoleBindingEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.SubstitutionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.TimeObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.UsageEditPart;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.service.edit.service.ElementEditServiceUtils;
+import org.eclipse.papyrus.service.edit.service.IElementEditService;
+
+/**
+ * @generated
+ */
+public class ExecutionEventItemSemanticEditPolicy extends UMLBaseItemSemanticEditPolicy {
+
+ /**
+ * @generated
+ */
+ public ExecutionEventItemSemanticEditPolicy() {
+ super(UMLElementTypes.ExecutionEvent_2092);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getDestroyElementCommand(DestroyElementRequest req) {
+ EObject selectedEObject = req.getElementToDestroy();
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(selectedEObject);
+ if(provider != null) {
+ // Retrieve delete command from the Element Edit service
+ ICommand deleteCommand = provider.getEditCommand(req);
+
+ if(deleteCommand != null) {
+ return new ICommandProxy(deleteCommand);
+ }
+ }
+ return UnexecutableCommand.INSTANCE;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCreateRelationshipCommand(CreateRelationshipRequest req) {
+ Command command = req.getTarget() == null ? getStartCreateRelationshipCommand(req) : getCompleteCreateRelationshipCommand(req);
+ return command != null ? command : super.getCreateRelationshipCommand(req);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getStartCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCompleteCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return getGEFWrapper(new CommentAnnotatedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return getGEFWrapper(new ConstraintConstrainedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return getGEFWrapper(new TimeObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return getGEFWrapper(new DurationObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * Returns command to reorient EClass based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientRelationshipCommand(ReorientRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case ComponentRealizationEditPart.VISUAL_ID:
+ case InterfaceRealizationEditPart.VISUAL_ID:
+ case SubstitutionEditPart.VISUAL_ID:
+ case RealizationEditPart.VISUAL_ID:
+ case ManifestationEditPart.VISUAL_ID:
+ case AbstractionEditPart.VISUAL_ID:
+ case UsageEditPart.VISUAL_ID:
+ case DeploymentEditPart.VISUAL_ID:
+ case DependencyEditPart.VISUAL_ID:
+ case InformationFlowEditPart.VISUAL_ID:
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(req.getRelationship());
+ if(provider == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ // Retrieve re-orient command from the Element Edit service
+ ICommand reorientCommand = provider.getEditCommand(req);
+ if(reorientCommand == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ return getGEFWrapper(reorientCommand.reduce());
+ case RoleBindingEditPart.VISUAL_ID:
+ return getGEFWrapper(new RoleBindingReorientCommand(req));
+ }
+ return super.getReorientRelationshipCommand(req);
+ }
+
+ /**
+ * Returns command to reorient EReference based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientReferenceRelationshipCommand(ReorientReferenceRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case CommentAnnotatedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new CommentAnnotatedElementReorientCommand(req));
+ case ConstraintConstrainedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new ConstraintConstrainedElementReorientCommand(req));
+ case TimeObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new TimeObservationEventReorientCommand(req));
+ case DurationObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new DurationObservationEventReorientCommand(req));
+ }
+ return super.getReorientReferenceRelationshipCommand(req);
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/ExpressionItemSemanticEditPolicy.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/ExpressionItemSemanticEditPolicy.java
new file mode 100644
index 00000000000..d378649a0f0
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/ExpressionItemSemanticEditPolicy.java
@@ -0,0 +1,259 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.policies;
+
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.commands.UnexecutableCommand;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.diagram.ui.commands.ICommandProxy;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientReferenceRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientRelationshipRequest;
+import org.eclipse.papyrus.diagram.composite.edit.commands.AbstractionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ComponentRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DependencyCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DeploymentCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InformationFlowCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InterfaceRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ManifestationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.SubstitutionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.UsageCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.parts.AbstractionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CommentAnnotatedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ComponentRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ConstraintConstrainedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DependencyEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DeploymentEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DurationObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InformationFlowEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InterfaceRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ManifestationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RoleBindingEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.SubstitutionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.TimeObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.UsageEditPart;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.service.edit.service.ElementEditServiceUtils;
+import org.eclipse.papyrus.service.edit.service.IElementEditService;
+
+/**
+ * @generated
+ */
+public class ExpressionItemSemanticEditPolicy extends UMLBaseItemSemanticEditPolicy {
+
+ /**
+ * @generated
+ */
+ public ExpressionItemSemanticEditPolicy() {
+ super(UMLElementTypes.Expression_2103);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getDestroyElementCommand(DestroyElementRequest req) {
+ EObject selectedEObject = req.getElementToDestroy();
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(selectedEObject);
+ if(provider != null) {
+ // Retrieve delete command from the Element Edit service
+ ICommand deleteCommand = provider.getEditCommand(req);
+
+ if(deleteCommand != null) {
+ return new ICommandProxy(deleteCommand);
+ }
+ }
+ return UnexecutableCommand.INSTANCE;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCreateRelationshipCommand(CreateRelationshipRequest req) {
+ Command command = req.getTarget() == null ? getStartCreateRelationshipCommand(req) : getCompleteCreateRelationshipCommand(req);
+ return command != null ? command : super.getCreateRelationshipCommand(req);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getStartCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCompleteCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return getGEFWrapper(new CommentAnnotatedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return getGEFWrapper(new ConstraintConstrainedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return getGEFWrapper(new TimeObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return getGEFWrapper(new DurationObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * Returns command to reorient EClass based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientRelationshipCommand(ReorientRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case ComponentRealizationEditPart.VISUAL_ID:
+ case InterfaceRealizationEditPart.VISUAL_ID:
+ case SubstitutionEditPart.VISUAL_ID:
+ case RealizationEditPart.VISUAL_ID:
+ case ManifestationEditPart.VISUAL_ID:
+ case AbstractionEditPart.VISUAL_ID:
+ case UsageEditPart.VISUAL_ID:
+ case DeploymentEditPart.VISUAL_ID:
+ case DependencyEditPart.VISUAL_ID:
+ case InformationFlowEditPart.VISUAL_ID:
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(req.getRelationship());
+ if(provider == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ // Retrieve re-orient command from the Element Edit service
+ ICommand reorientCommand = provider.getEditCommand(req);
+ if(reorientCommand == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ return getGEFWrapper(reorientCommand.reduce());
+ case RoleBindingEditPart.VISUAL_ID:
+ return getGEFWrapper(new RoleBindingReorientCommand(req));
+ }
+ return super.getReorientRelationshipCommand(req);
+ }
+
+ /**
+ * Returns command to reorient EReference based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientReferenceRelationshipCommand(ReorientReferenceRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case CommentAnnotatedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new CommentAnnotatedElementReorientCommand(req));
+ case ConstraintConstrainedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new ConstraintConstrainedElementReorientCommand(req));
+ case TimeObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new TimeObservationEventReorientCommand(req));
+ case DurationObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new DurationObservationEventReorientCommand(req));
+ }
+ return super.getReorientReferenceRelationshipCommand(req);
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/FunctionBehaviorCompositeCompartmentItemSemanticEditPolicy.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/FunctionBehaviorCompositeCompartmentItemSemanticEditPolicy.java
new file mode 100644
index 00000000000..f9370a65ef2
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/FunctionBehaviorCompositeCompartmentItemSemanticEditPolicy.java
@@ -0,0 +1,167 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.policies;
+
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ActivityCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ActorCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ArtifactCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ClassCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CollaborationCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CollaborationUseCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ComponentCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DataTypeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DeploymentSpecificationCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DeviceCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationConstraintCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.EnumerationCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ExecutionEnvironmentCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.FunctionBehaviorCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InformationItemCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InteractionCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InteractionConstraintCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InterfaceCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.IntervalConstraintCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.NodeCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.OpaqueBehaviorCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ParameterCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.PortCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.PrimitiveTypeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.PropertyPartCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ProtocolStateMachineCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.SignalCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.StateMachineCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeConstraintCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.UseCaseCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+
+/**
+ * @generated
+ */
+public class FunctionBehaviorCompositeCompartmentItemSemanticEditPolicy extends UMLBaseItemSemanticEditPolicy {
+
+ /**
+ * @generated
+ */
+ public FunctionBehaviorCompositeCompartmentItemSemanticEditPolicy() {
+ super(UMLElementTypes.FunctionBehavior_2064);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCreateCommand(CreateElementRequest req) {
+ if(UMLElementTypes.Port_3069 == req.getElementType()) {
+ return getGEFWrapper(new PortCreateCommand(req));
+ }
+ if(UMLElementTypes.Parameter_3088 == req.getElementType()) {
+ return getGEFWrapper(new ParameterCreateCommand(req));
+ }
+ if(UMLElementTypes.Property_3070 == req.getElementType()) {
+ return getGEFWrapper(new PropertyPartCreateCommandCN(req));
+ }
+ if(UMLElementTypes.CollaborationUse_3071 == req.getElementType()) {
+ return getGEFWrapper(new CollaborationUseCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Activity_3072 == req.getElementType()) {
+ return getGEFWrapper(new ActivityCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Interaction_3073 == req.getElementType()) {
+ return getGEFWrapper(new InteractionCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.ProtocolStateMachine_3074 == req.getElementType()) {
+ return getGEFWrapper(new ProtocolStateMachineCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.StateMachine_3075 == req.getElementType()) {
+ return getGEFWrapper(new StateMachineCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.FunctionBehavior_3076 == req.getElementType()) {
+ return getGEFWrapper(new FunctionBehaviorCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.OpaqueBehavior_3077 == req.getElementType()) {
+ return getGEFWrapper(new OpaqueBehaviorCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Component_3081 == req.getElementType()) {
+ return getGEFWrapper(new ComponentCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Device_3082 == req.getElementType()) {
+ return getGEFWrapper(new DeviceCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.ExecutionEnvironment_3083 == req.getElementType()) {
+ return getGEFWrapper(new ExecutionEnvironmentCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Node_3084 == req.getElementType()) {
+ return getGEFWrapper(new NodeCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Class_3085 == req.getElementType()) {
+ return getGEFWrapper(new ClassCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Collaboration_3086 == req.getElementType()) {
+ return getGEFWrapper(new CollaborationCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Interface_3087 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceCreateCommandCN(req));
+ }
+ if(UMLElementTypes.PrimitiveType_3078 == req.getElementType()) {
+ return getGEFWrapper(new PrimitiveTypeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Enumeration_3079 == req.getElementType()) {
+ return getGEFWrapper(new EnumerationCreateCommandCN(req));
+ }
+ if(UMLElementTypes.DataType_3080 == req.getElementType()) {
+ return getGEFWrapper(new DataTypeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Actor_3091 == req.getElementType()) {
+ return getGEFWrapper(new ActorCreateCommandCN(req));
+ }
+ if(UMLElementTypes.DeploymentSpecification_3092 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentSpecificationCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Artifact_3093 == req.getElementType()) {
+ return getGEFWrapper(new ArtifactCreateCommandCN(req));
+ }
+ if(UMLElementTypes.InformationItem_3094 == req.getElementType()) {
+ return getGEFWrapper(new InformationItemCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Signal_3095 == req.getElementType()) {
+ return getGEFWrapper(new SignalCreateCommandCN(req));
+ }
+ if(UMLElementTypes.UseCase_3096 == req.getElementType()) {
+ return getGEFWrapper(new UseCaseCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Comment_3097 == req.getElementType()) {
+ return getGEFWrapper(new CommentCreateCommandCN(req));
+ }
+ if(UMLElementTypes.DurationConstraint_3116 == req.getElementType()) {
+ return getGEFWrapper(new DurationConstraintCreateCommandCN(req));
+ }
+ if(UMLElementTypes.TimeConstraint_3117 == req.getElementType()) {
+ return getGEFWrapper(new TimeConstraintCreateCommandCN(req));
+ }
+ if(UMLElementTypes.IntervalConstraint_3118 == req.getElementType()) {
+ return getGEFWrapper(new IntervalConstraintCreateCommandCN(req));
+ }
+ if(UMLElementTypes.InteractionConstraint_3119 == req.getElementType()) {
+ return getGEFWrapper(new InteractionConstraintCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Constraint_3120 == req.getElementType()) {
+ return getGEFWrapper(new ConstraintCreateCommandCN(req));
+ }
+ return super.getCreateCommand(req);
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/FunctionBehaviorCompositeCompartmentItemSemanticEditPolicyCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/FunctionBehaviorCompositeCompartmentItemSemanticEditPolicyCN.java
new file mode 100644
index 00000000000..56da422e4ee
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/FunctionBehaviorCompositeCompartmentItemSemanticEditPolicyCN.java
@@ -0,0 +1,167 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.policies;
+
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ActivityCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ActorCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ArtifactCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ClassCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CollaborationCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CollaborationUseCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ComponentCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DataTypeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DeploymentSpecificationCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DeviceCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationConstraintCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.EnumerationCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ExecutionEnvironmentCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.FunctionBehaviorCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InformationItemCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InteractionCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InteractionConstraintCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InterfaceCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.IntervalConstraintCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.NodeCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.OpaqueBehaviorCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ParameterCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.PortCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.PrimitiveTypeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.PropertyPartCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ProtocolStateMachineCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.SignalCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.StateMachineCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeConstraintCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.UseCaseCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+
+/**
+ * @generated
+ */
+public class FunctionBehaviorCompositeCompartmentItemSemanticEditPolicyCN extends UMLBaseItemSemanticEditPolicy {
+
+ /**
+ * @generated
+ */
+ public FunctionBehaviorCompositeCompartmentItemSemanticEditPolicyCN() {
+ super(UMLElementTypes.FunctionBehavior_3076);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCreateCommand(CreateElementRequest req) {
+ if(UMLElementTypes.Port_3069 == req.getElementType()) {
+ return getGEFWrapper(new PortCreateCommand(req));
+ }
+ if(UMLElementTypes.Parameter_3088 == req.getElementType()) {
+ return getGEFWrapper(new ParameterCreateCommand(req));
+ }
+ if(UMLElementTypes.Property_3070 == req.getElementType()) {
+ return getGEFWrapper(new PropertyPartCreateCommandCN(req));
+ }
+ if(UMLElementTypes.CollaborationUse_3071 == req.getElementType()) {
+ return getGEFWrapper(new CollaborationUseCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Activity_3072 == req.getElementType()) {
+ return getGEFWrapper(new ActivityCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Interaction_3073 == req.getElementType()) {
+ return getGEFWrapper(new InteractionCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.ProtocolStateMachine_3074 == req.getElementType()) {
+ return getGEFWrapper(new ProtocolStateMachineCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.StateMachine_3075 == req.getElementType()) {
+ return getGEFWrapper(new StateMachineCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.FunctionBehavior_3076 == req.getElementType()) {
+ return getGEFWrapper(new FunctionBehaviorCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.OpaqueBehavior_3077 == req.getElementType()) {
+ return getGEFWrapper(new OpaqueBehaviorCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Component_3081 == req.getElementType()) {
+ return getGEFWrapper(new ComponentCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Device_3082 == req.getElementType()) {
+ return getGEFWrapper(new DeviceCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.ExecutionEnvironment_3083 == req.getElementType()) {
+ return getGEFWrapper(new ExecutionEnvironmentCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Node_3084 == req.getElementType()) {
+ return getGEFWrapper(new NodeCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Class_3085 == req.getElementType()) {
+ return getGEFWrapper(new ClassCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Collaboration_3086 == req.getElementType()) {
+ return getGEFWrapper(new CollaborationCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Interface_3087 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceCreateCommandCN(req));
+ }
+ if(UMLElementTypes.PrimitiveType_3078 == req.getElementType()) {
+ return getGEFWrapper(new PrimitiveTypeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Enumeration_3079 == req.getElementType()) {
+ return getGEFWrapper(new EnumerationCreateCommandCN(req));
+ }
+ if(UMLElementTypes.DataType_3080 == req.getElementType()) {
+ return getGEFWrapper(new DataTypeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Actor_3091 == req.getElementType()) {
+ return getGEFWrapper(new ActorCreateCommandCN(req));
+ }
+ if(UMLElementTypes.DeploymentSpecification_3092 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentSpecificationCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Artifact_3093 == req.getElementType()) {
+ return getGEFWrapper(new ArtifactCreateCommandCN(req));
+ }
+ if(UMLElementTypes.InformationItem_3094 == req.getElementType()) {
+ return getGEFWrapper(new InformationItemCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Signal_3095 == req.getElementType()) {
+ return getGEFWrapper(new SignalCreateCommandCN(req));
+ }
+ if(UMLElementTypes.UseCase_3096 == req.getElementType()) {
+ return getGEFWrapper(new UseCaseCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Comment_3097 == req.getElementType()) {
+ return getGEFWrapper(new CommentCreateCommandCN(req));
+ }
+ if(UMLElementTypes.DurationConstraint_3116 == req.getElementType()) {
+ return getGEFWrapper(new DurationConstraintCreateCommandCN(req));
+ }
+ if(UMLElementTypes.TimeConstraint_3117 == req.getElementType()) {
+ return getGEFWrapper(new TimeConstraintCreateCommandCN(req));
+ }
+ if(UMLElementTypes.IntervalConstraint_3118 == req.getElementType()) {
+ return getGEFWrapper(new IntervalConstraintCreateCommandCN(req));
+ }
+ if(UMLElementTypes.InteractionConstraint_3119 == req.getElementType()) {
+ return getGEFWrapper(new InteractionConstraintCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Constraint_3120 == req.getElementType()) {
+ return getGEFWrapper(new ConstraintCreateCommandCN(req));
+ }
+ return super.getCreateCommand(req);
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/FunctionBehaviorCompositeItemSemanticEditPolicy.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/FunctionBehaviorCompositeItemSemanticEditPolicy.java
new file mode 100644
index 00000000000..b450812f625
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/FunctionBehaviorCompositeItemSemanticEditPolicy.java
@@ -0,0 +1,295 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.policies;
+
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.commands.UnexecutableCommand;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.diagram.ui.commands.ICommandProxy;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientReferenceRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientRelationshipRequest;
+import org.eclipse.papyrus.diagram.composite.edit.commands.AbstractionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ComponentRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DependencyCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DeploymentCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.GeneralizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InformationFlowCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InterfaceRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ManifestationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ParameterCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.PortCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RepresentationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RepresentationReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.SubstitutionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.UsageCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.parts.AbstractionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CommentAnnotatedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ComponentRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ConstraintConstrainedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DependencyEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DeploymentEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DurationObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.GeneralizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InformationFlowEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InterfaceRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ManifestationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RepresentationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RoleBindingEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.SubstitutionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.TimeObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.UsageEditPart;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.service.edit.service.ElementEditServiceUtils;
+import org.eclipse.papyrus.service.edit.service.IElementEditService;
+
+/**
+ * @generated
+ */
+public class FunctionBehaviorCompositeItemSemanticEditPolicy extends UMLBaseItemSemanticEditPolicy {
+
+ /**
+ * @generated
+ */
+ public FunctionBehaviorCompositeItemSemanticEditPolicy() {
+ super(UMLElementTypes.FunctionBehavior_2064);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCreateCommand(CreateElementRequest req) {
+ if(UMLElementTypes.Port_3069 == req.getElementType()) {
+ return getGEFWrapper(new PortCreateCommand(req));
+ }
+ if(UMLElementTypes.Parameter_3088 == req.getElementType()) {
+ return getGEFWrapper(new ParameterCreateCommand(req));
+ }
+ return super.getCreateCommand(req);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getDestroyElementCommand(DestroyElementRequest req) {
+ EObject selectedEObject = req.getElementToDestroy();
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(selectedEObject);
+ if(provider != null) {
+ // Retrieve delete command from the Element Edit service
+ ICommand deleteCommand = provider.getEditCommand(req);
+
+ if(deleteCommand != null) {
+ return new ICommandProxy(deleteCommand);
+ }
+ }
+ return UnexecutableCommand.INSTANCE;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCreateRelationshipCommand(CreateRelationshipRequest req) {
+ Command command = req.getTarget() == null ? getStartCreateRelationshipCommand(req) : getCompleteCreateRelationshipCommand(req);
+ return command != null ? command : super.getCreateRelationshipCommand(req);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getStartCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Generalization_4015 == req.getElementType()) {
+ return getGEFWrapper(new GeneralizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.InformationItemRepresented_4020 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCompleteCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return getGEFWrapper(new CommentAnnotatedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return getGEFWrapper(new ConstraintConstrainedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Generalization_4015 == req.getElementType()) {
+ return getGEFWrapper(new GeneralizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return getGEFWrapper(new TimeObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return getGEFWrapper(new DurationObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InformationItemRepresented_4020 == req.getElementType()) {
+ return getGEFWrapper(new RepresentationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * Returns command to reorient EClass based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientRelationshipCommand(ReorientRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case ComponentRealizationEditPart.VISUAL_ID:
+ case InterfaceRealizationEditPart.VISUAL_ID:
+ case SubstitutionEditPart.VISUAL_ID:
+ case RealizationEditPart.VISUAL_ID:
+ case ManifestationEditPart.VISUAL_ID:
+ case AbstractionEditPart.VISUAL_ID:
+ case UsageEditPart.VISUAL_ID:
+ case DeploymentEditPart.VISUAL_ID:
+ case DependencyEditPart.VISUAL_ID:
+ case GeneralizationEditPart.VISUAL_ID:
+ case InformationFlowEditPart.VISUAL_ID:
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(req.getRelationship());
+ if(provider == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ // Retrieve re-orient command from the Element Edit service
+ ICommand reorientCommand = provider.getEditCommand(req);
+ if(reorientCommand == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ return getGEFWrapper(reorientCommand.reduce());
+ case RoleBindingEditPart.VISUAL_ID:
+ return getGEFWrapper(new RoleBindingReorientCommand(req));
+ }
+ return super.getReorientRelationshipCommand(req);
+ }
+
+ /**
+ * Returns command to reorient EReference based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientReferenceRelationshipCommand(ReorientReferenceRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case CommentAnnotatedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new CommentAnnotatedElementReorientCommand(req));
+ case ConstraintConstrainedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new ConstraintConstrainedElementReorientCommand(req));
+ case TimeObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new TimeObservationEventReorientCommand(req));
+ case DurationObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new DurationObservationEventReorientCommand(req));
+ case RepresentationEditPart.VISUAL_ID:
+ return getGEFWrapper(new RepresentationReorientCommand(req));
+ }
+ return super.getReorientReferenceRelationshipCommand(req);
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/FunctionBehaviorCompositeItemSemanticEditPolicyCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/FunctionBehaviorCompositeItemSemanticEditPolicyCN.java
new file mode 100644
index 00000000000..f50e5cccf37
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/FunctionBehaviorCompositeItemSemanticEditPolicyCN.java
@@ -0,0 +1,295 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.policies;
+
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.commands.UnexecutableCommand;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.diagram.ui.commands.ICommandProxy;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientReferenceRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientRelationshipRequest;
+import org.eclipse.papyrus.diagram.composite.edit.commands.AbstractionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ComponentRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DependencyCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DeploymentCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.GeneralizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InformationFlowCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InterfaceRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ManifestationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ParameterCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.PortCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RepresentationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RepresentationReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.SubstitutionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.UsageCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.parts.AbstractionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CommentAnnotatedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ComponentRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ConstraintConstrainedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DependencyEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DeploymentEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DurationObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.GeneralizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InformationFlowEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InterfaceRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ManifestationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RepresentationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RoleBindingEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.SubstitutionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.TimeObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.UsageEditPart;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.service.edit.service.ElementEditServiceUtils;
+import org.eclipse.papyrus.service.edit.service.IElementEditService;
+
+/**
+ * @generated
+ */
+public class FunctionBehaviorCompositeItemSemanticEditPolicyCN extends UMLBaseItemSemanticEditPolicy {
+
+ /**
+ * @generated
+ */
+ public FunctionBehaviorCompositeItemSemanticEditPolicyCN() {
+ super(UMLElementTypes.FunctionBehavior_3076);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCreateCommand(CreateElementRequest req) {
+ if(UMLElementTypes.Port_3069 == req.getElementType()) {
+ return getGEFWrapper(new PortCreateCommand(req));
+ }
+ if(UMLElementTypes.Parameter_3088 == req.getElementType()) {
+ return getGEFWrapper(new ParameterCreateCommand(req));
+ }
+ return super.getCreateCommand(req);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getDestroyElementCommand(DestroyElementRequest req) {
+ EObject selectedEObject = req.getElementToDestroy();
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(selectedEObject);
+ if(provider != null) {
+ // Retrieve delete command from the Element Edit service
+ ICommand deleteCommand = provider.getEditCommand(req);
+
+ if(deleteCommand != null) {
+ return new ICommandProxy(deleteCommand);
+ }
+ }
+ return UnexecutableCommand.INSTANCE;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCreateRelationshipCommand(CreateRelationshipRequest req) {
+ Command command = req.getTarget() == null ? getStartCreateRelationshipCommand(req) : getCompleteCreateRelationshipCommand(req);
+ return command != null ? command : super.getCreateRelationshipCommand(req);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getStartCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Generalization_4015 == req.getElementType()) {
+ return getGEFWrapper(new GeneralizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.InformationItemRepresented_4020 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCompleteCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return getGEFWrapper(new CommentAnnotatedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return getGEFWrapper(new ConstraintConstrainedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Generalization_4015 == req.getElementType()) {
+ return getGEFWrapper(new GeneralizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return getGEFWrapper(new TimeObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return getGEFWrapper(new DurationObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InformationItemRepresented_4020 == req.getElementType()) {
+ return getGEFWrapper(new RepresentationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * Returns command to reorient EClass based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientRelationshipCommand(ReorientRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case ComponentRealizationEditPart.VISUAL_ID:
+ case InterfaceRealizationEditPart.VISUAL_ID:
+ case SubstitutionEditPart.VISUAL_ID:
+ case RealizationEditPart.VISUAL_ID:
+ case ManifestationEditPart.VISUAL_ID:
+ case AbstractionEditPart.VISUAL_ID:
+ case UsageEditPart.VISUAL_ID:
+ case DeploymentEditPart.VISUAL_ID:
+ case DependencyEditPart.VISUAL_ID:
+ case GeneralizationEditPart.VISUAL_ID:
+ case InformationFlowEditPart.VISUAL_ID:
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(req.getRelationship());
+ if(provider == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ // Retrieve re-orient command from the Element Edit service
+ ICommand reorientCommand = provider.getEditCommand(req);
+ if(reorientCommand == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ return getGEFWrapper(reorientCommand.reduce());
+ case RoleBindingEditPart.VISUAL_ID:
+ return getGEFWrapper(new RoleBindingReorientCommand(req));
+ }
+ return super.getReorientRelationshipCommand(req);
+ }
+
+ /**
+ * Returns command to reorient EReference based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientReferenceRelationshipCommand(ReorientReferenceRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case CommentAnnotatedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new CommentAnnotatedElementReorientCommand(req));
+ case ConstraintConstrainedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new ConstraintConstrainedElementReorientCommand(req));
+ case TimeObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new TimeObservationEventReorientCommand(req));
+ case DurationObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new DurationObservationEventReorientCommand(req));
+ case RepresentationEditPart.VISUAL_ID:
+ return getGEFWrapper(new RepresentationReorientCommand(req));
+ }
+ return super.getReorientReferenceRelationshipCommand(req);
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/FunctionBehaviorItemSemanticEditPolicyCLN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/FunctionBehaviorItemSemanticEditPolicyCLN.java
new file mode 100644
index 00000000000..ccd4dd6136c
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/FunctionBehaviorItemSemanticEditPolicyCLN.java
@@ -0,0 +1,64 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.policies;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import org.eclipse.emf.ecore.EAnnotation;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.edit.command.DeleteCommand;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gmf.runtime.emf.commands.core.command.CompositeTransactionalCommand;
+import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.commands.wrappers.EMFtoGMFCommandWrapper;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+
+/**
+ * @generated
+ */
+public class FunctionBehaviorItemSemanticEditPolicyCLN extends UMLBaseItemSemanticEditPolicy {
+
+ /**
+ * @generated
+ */
+ public FunctionBehaviorItemSemanticEditPolicyCLN() {
+ super(UMLElementTypes.FunctionBehavior_3107);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getDestroyElementCommand(DestroyElementRequest req) {
+ View view = (View)getHost().getModel();
+ CompositeTransactionalCommand cmd = new CompositeTransactionalCommand(getEditingDomain(), null);
+ cmd.setTransactionNestingEnabled(true);
+
+ EAnnotation annotation = view.getEAnnotation("Shortcut"); //$NON-NLS-1$
+ if(annotation == null) {
+ // there are indirectly referenced children, need extra commands: false
+ addDestroyShortcutsCommand(cmd, view);
+ // delete host element
+ List<EObject> todestroy = new ArrayList<EObject>();
+ todestroy.add(req.getElementToDestroy());
+ //cmd.add(new org.eclipse.gmf.runtime.emf.type.core.commands.DestroyElementCommand(req));
+ cmd.add(new EMFtoGMFCommandWrapper(new DeleteCommand(getEditingDomain(), todestroy)));
+ } else {
+ cmd.add(new org.eclipse.gmf.runtime.diagram.core.commands.DeleteCommand(getEditingDomain(), view));
+ }
+ return getGEFWrapper(cmd.reduce());
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/GeneralizationItemSemanticEditPolicy.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/GeneralizationItemSemanticEditPolicy.java
new file mode 100644
index 00000000000..1a32c8ed3c4
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/GeneralizationItemSemanticEditPolicy.java
@@ -0,0 +1,113 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.policies;
+
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.commands.UnexecutableCommand;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.diagram.ui.commands.ICommandProxy;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientReferenceRelationshipRequest;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CommentAnnotatedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ConstraintConstrainedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.service.edit.service.ElementEditServiceUtils;
+import org.eclipse.papyrus.service.edit.service.IElementEditService;
+
+/**
+ * @generated
+ */
+public class GeneralizationItemSemanticEditPolicy extends UMLBaseItemSemanticEditPolicy {
+
+ /**
+ * @generated
+ */
+ public GeneralizationItemSemanticEditPolicy() {
+ super(UMLElementTypes.Generalization_4015);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getDestroyElementCommand(DestroyElementRequest req) {
+ EObject selectedEObject = req.getElementToDestroy();
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(selectedEObject);
+ if(provider != null) {
+ // Retrieve delete command from the Element Edit service
+ ICommand deleteCommand = provider.getEditCommand(req);
+
+ if(deleteCommand != null) {
+ return new ICommandProxy(deleteCommand);
+ }
+ }
+ return UnexecutableCommand.INSTANCE;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCreateRelationshipCommand(CreateRelationshipRequest req) {
+ Command command = req.getTarget() == null ? getStartCreateRelationshipCommand(req) : getCompleteCreateRelationshipCommand(req);
+ return command != null ? command : super.getCreateRelationshipCommand(req);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getStartCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return null;
+ }
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCompleteCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return getGEFWrapper(new CommentAnnotatedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return getGEFWrapper(new ConstraintConstrainedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * Returns command to reorient EReference based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientReferenceRelationshipCommand(ReorientReferenceRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case CommentAnnotatedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new CommentAnnotatedElementReorientCommand(req));
+ case ConstraintConstrainedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new ConstraintConstrainedElementReorientCommand(req));
+ }
+ return super.getReorientReferenceRelationshipCommand(req);
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/InformationFlowItemSemanticEditPolicy.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/InformationFlowItemSemanticEditPolicy.java
new file mode 100644
index 00000000000..8bd393d4ab1
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/InformationFlowItemSemanticEditPolicy.java
@@ -0,0 +1,259 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.policies;
+
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.commands.UnexecutableCommand;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.diagram.ui.commands.ICommandProxy;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientReferenceRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientRelationshipRequest;
+import org.eclipse.papyrus.diagram.composite.edit.commands.AbstractionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ComponentRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DependencyCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DeploymentCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InformationFlowCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InterfaceRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ManifestationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.SubstitutionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.UsageCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.parts.AbstractionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CommentAnnotatedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ComponentRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ConstraintConstrainedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DependencyEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DeploymentEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DurationObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InformationFlowEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InterfaceRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ManifestationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RoleBindingEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.SubstitutionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.TimeObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.UsageEditPart;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.service.edit.service.ElementEditServiceUtils;
+import org.eclipse.papyrus.service.edit.service.IElementEditService;
+
+/**
+ * @generated
+ */
+public class InformationFlowItemSemanticEditPolicy extends UMLBaseItemSemanticEditPolicy {
+
+ /**
+ * @generated
+ */
+ public InformationFlowItemSemanticEditPolicy() {
+ super(UMLElementTypes.InformationFlow_4021);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getDestroyElementCommand(DestroyElementRequest req) {
+ EObject selectedEObject = req.getElementToDestroy();
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(selectedEObject);
+ if(provider != null) {
+ // Retrieve delete command from the Element Edit service
+ ICommand deleteCommand = provider.getEditCommand(req);
+
+ if(deleteCommand != null) {
+ return new ICommandProxy(deleteCommand);
+ }
+ }
+ return UnexecutableCommand.INSTANCE;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCreateRelationshipCommand(CreateRelationshipRequest req) {
+ Command command = req.getTarget() == null ? getStartCreateRelationshipCommand(req) : getCompleteCreateRelationshipCommand(req);
+ return command != null ? command : super.getCreateRelationshipCommand(req);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getStartCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCompleteCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return getGEFWrapper(new CommentAnnotatedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return getGEFWrapper(new ConstraintConstrainedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return getGEFWrapper(new TimeObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return getGEFWrapper(new DurationObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * Returns command to reorient EClass based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientRelationshipCommand(ReorientRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case ComponentRealizationEditPart.VISUAL_ID:
+ case InterfaceRealizationEditPart.VISUAL_ID:
+ case SubstitutionEditPart.VISUAL_ID:
+ case RealizationEditPart.VISUAL_ID:
+ case ManifestationEditPart.VISUAL_ID:
+ case AbstractionEditPart.VISUAL_ID:
+ case UsageEditPart.VISUAL_ID:
+ case DeploymentEditPart.VISUAL_ID:
+ case DependencyEditPart.VISUAL_ID:
+ case InformationFlowEditPart.VISUAL_ID:
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(req.getRelationship());
+ if(provider == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ // Retrieve re-orient command from the Element Edit service
+ ICommand reorientCommand = provider.getEditCommand(req);
+ if(reorientCommand == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ return getGEFWrapper(reorientCommand.reduce());
+ case RoleBindingEditPart.VISUAL_ID:
+ return getGEFWrapper(new RoleBindingReorientCommand(req));
+ }
+ return super.getReorientRelationshipCommand(req);
+ }
+
+ /**
+ * Returns command to reorient EReference based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientReferenceRelationshipCommand(ReorientReferenceRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case CommentAnnotatedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new CommentAnnotatedElementReorientCommand(req));
+ case ConstraintConstrainedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new ConstraintConstrainedElementReorientCommand(req));
+ case TimeObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new TimeObservationEventReorientCommand(req));
+ case DurationObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new DurationObservationEventReorientCommand(req));
+ }
+ return super.getReorientReferenceRelationshipCommand(req);
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/InformationItemItemSemanticEditPolicy.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/InformationItemItemSemanticEditPolicy.java
new file mode 100644
index 00000000000..5b89ac6dbcb
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/InformationItemItemSemanticEditPolicy.java
@@ -0,0 +1,279 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.policies;
+
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.commands.UnexecutableCommand;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.diagram.ui.commands.ICommandProxy;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientReferenceRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientRelationshipRequest;
+import org.eclipse.papyrus.diagram.composite.edit.commands.AbstractionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ComponentRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DependencyCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DeploymentCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.GeneralizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InformationFlowCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InterfaceRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ManifestationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RepresentationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RepresentationReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.SubstitutionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.UsageCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.parts.AbstractionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CommentAnnotatedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ComponentRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ConstraintConstrainedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DependencyEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DeploymentEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DurationObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.GeneralizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InformationFlowEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InterfaceRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ManifestationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RepresentationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RoleBindingEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.SubstitutionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.TimeObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.UsageEditPart;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.service.edit.service.ElementEditServiceUtils;
+import org.eclipse.papyrus.service.edit.service.IElementEditService;
+
+/**
+ * @generated
+ */
+public class InformationItemItemSemanticEditPolicy extends UMLBaseItemSemanticEditPolicy {
+
+ /**
+ * @generated
+ */
+ public InformationItemItemSemanticEditPolicy() {
+ super(UMLElementTypes.InformationItem_2080);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getDestroyElementCommand(DestroyElementRequest req) {
+ EObject selectedEObject = req.getElementToDestroy();
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(selectedEObject);
+ if(provider != null) {
+ // Retrieve delete command from the Element Edit service
+ ICommand deleteCommand = provider.getEditCommand(req);
+
+ if(deleteCommand != null) {
+ return new ICommandProxy(deleteCommand);
+ }
+ }
+ return UnexecutableCommand.INSTANCE;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCreateRelationshipCommand(CreateRelationshipRequest req) {
+ Command command = req.getTarget() == null ? getStartCreateRelationshipCommand(req) : getCompleteCreateRelationshipCommand(req);
+ return command != null ? command : super.getCreateRelationshipCommand(req);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getStartCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Generalization_4015 == req.getElementType()) {
+ return getGEFWrapper(new GeneralizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.InformationItemRepresented_4020 == req.getElementType()) {
+ return getGEFWrapper(new RepresentationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCompleteCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return getGEFWrapper(new CommentAnnotatedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return getGEFWrapper(new ConstraintConstrainedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Generalization_4015 == req.getElementType()) {
+ return getGEFWrapper(new GeneralizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return getGEFWrapper(new TimeObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return getGEFWrapper(new DurationObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InformationItemRepresented_4020 == req.getElementType()) {
+ return getGEFWrapper(new RepresentationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * Returns command to reorient EClass based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientRelationshipCommand(ReorientRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case ComponentRealizationEditPart.VISUAL_ID:
+ case InterfaceRealizationEditPart.VISUAL_ID:
+ case SubstitutionEditPart.VISUAL_ID:
+ case RealizationEditPart.VISUAL_ID:
+ case ManifestationEditPart.VISUAL_ID:
+ case AbstractionEditPart.VISUAL_ID:
+ case UsageEditPart.VISUAL_ID:
+ case DeploymentEditPart.VISUAL_ID:
+ case DependencyEditPart.VISUAL_ID:
+ case GeneralizationEditPart.VISUAL_ID:
+ case InformationFlowEditPart.VISUAL_ID:
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(req.getRelationship());
+ if(provider == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ // Retrieve re-orient command from the Element Edit service
+ ICommand reorientCommand = provider.getEditCommand(req);
+ if(reorientCommand == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ return getGEFWrapper(reorientCommand.reduce());
+ case RoleBindingEditPart.VISUAL_ID:
+ return getGEFWrapper(new RoleBindingReorientCommand(req));
+ }
+ return super.getReorientRelationshipCommand(req);
+ }
+
+ /**
+ * Returns command to reorient EReference based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientReferenceRelationshipCommand(ReorientReferenceRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case CommentAnnotatedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new CommentAnnotatedElementReorientCommand(req));
+ case ConstraintConstrainedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new ConstraintConstrainedElementReorientCommand(req));
+ case TimeObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new TimeObservationEventReorientCommand(req));
+ case DurationObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new DurationObservationEventReorientCommand(req));
+ case RepresentationEditPart.VISUAL_ID:
+ return getGEFWrapper(new RepresentationReorientCommand(req));
+ }
+ return super.getReorientReferenceRelationshipCommand(req);
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/InformationItemItemSemanticEditPolicyCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/InformationItemItemSemanticEditPolicyCN.java
new file mode 100644
index 00000000000..1ca463862a3
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/InformationItemItemSemanticEditPolicyCN.java
@@ -0,0 +1,279 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.policies;
+
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.commands.UnexecutableCommand;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.diagram.ui.commands.ICommandProxy;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientReferenceRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientRelationshipRequest;
+import org.eclipse.papyrus.diagram.composite.edit.commands.AbstractionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ComponentRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DependencyCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DeploymentCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.GeneralizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InformationFlowCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InterfaceRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ManifestationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RepresentationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RepresentationReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.SubstitutionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.UsageCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.parts.AbstractionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CommentAnnotatedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ComponentRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ConstraintConstrainedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DependencyEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DeploymentEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DurationObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.GeneralizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InformationFlowEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InterfaceRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ManifestationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RepresentationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RoleBindingEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.SubstitutionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.TimeObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.UsageEditPart;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.service.edit.service.ElementEditServiceUtils;
+import org.eclipse.papyrus.service.edit.service.IElementEditService;
+
+/**
+ * @generated
+ */
+public class InformationItemItemSemanticEditPolicyCN extends UMLBaseItemSemanticEditPolicy {
+
+ /**
+ * @generated
+ */
+ public InformationItemItemSemanticEditPolicyCN() {
+ super(UMLElementTypes.InformationItem_3094);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getDestroyElementCommand(DestroyElementRequest req) {
+ EObject selectedEObject = req.getElementToDestroy();
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(selectedEObject);
+ if(provider != null) {
+ // Retrieve delete command from the Element Edit service
+ ICommand deleteCommand = provider.getEditCommand(req);
+
+ if(deleteCommand != null) {
+ return new ICommandProxy(deleteCommand);
+ }
+ }
+ return UnexecutableCommand.INSTANCE;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCreateRelationshipCommand(CreateRelationshipRequest req) {
+ Command command = req.getTarget() == null ? getStartCreateRelationshipCommand(req) : getCompleteCreateRelationshipCommand(req);
+ return command != null ? command : super.getCreateRelationshipCommand(req);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getStartCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Generalization_4015 == req.getElementType()) {
+ return getGEFWrapper(new GeneralizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.InformationItemRepresented_4020 == req.getElementType()) {
+ return getGEFWrapper(new RepresentationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCompleteCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return getGEFWrapper(new CommentAnnotatedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return getGEFWrapper(new ConstraintConstrainedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Generalization_4015 == req.getElementType()) {
+ return getGEFWrapper(new GeneralizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return getGEFWrapper(new TimeObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return getGEFWrapper(new DurationObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InformationItemRepresented_4020 == req.getElementType()) {
+ return getGEFWrapper(new RepresentationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * Returns command to reorient EClass based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientRelationshipCommand(ReorientRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case ComponentRealizationEditPart.VISUAL_ID:
+ case InterfaceRealizationEditPart.VISUAL_ID:
+ case SubstitutionEditPart.VISUAL_ID:
+ case RealizationEditPart.VISUAL_ID:
+ case ManifestationEditPart.VISUAL_ID:
+ case AbstractionEditPart.VISUAL_ID:
+ case UsageEditPart.VISUAL_ID:
+ case DeploymentEditPart.VISUAL_ID:
+ case DependencyEditPart.VISUAL_ID:
+ case GeneralizationEditPart.VISUAL_ID:
+ case InformationFlowEditPart.VISUAL_ID:
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(req.getRelationship());
+ if(provider == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ // Retrieve re-orient command from the Element Edit service
+ ICommand reorientCommand = provider.getEditCommand(req);
+ if(reorientCommand == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ return getGEFWrapper(reorientCommand.reduce());
+ case RoleBindingEditPart.VISUAL_ID:
+ return getGEFWrapper(new RoleBindingReorientCommand(req));
+ }
+ return super.getReorientRelationshipCommand(req);
+ }
+
+ /**
+ * Returns command to reorient EReference based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientReferenceRelationshipCommand(ReorientReferenceRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case CommentAnnotatedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new CommentAnnotatedElementReorientCommand(req));
+ case ConstraintConstrainedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new ConstraintConstrainedElementReorientCommand(req));
+ case TimeObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new TimeObservationEventReorientCommand(req));
+ case DurationObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new DurationObservationEventReorientCommand(req));
+ case RepresentationEditPart.VISUAL_ID:
+ return getGEFWrapper(new RepresentationReorientCommand(req));
+ }
+ return super.getReorientReferenceRelationshipCommand(req);
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/InstanceValueItemSemanticEditPolicy.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/InstanceValueItemSemanticEditPolicy.java
new file mode 100644
index 00000000000..8173168aba5
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/InstanceValueItemSemanticEditPolicy.java
@@ -0,0 +1,259 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.policies;
+
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.commands.UnexecutableCommand;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.diagram.ui.commands.ICommandProxy;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientReferenceRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientRelationshipRequest;
+import org.eclipse.papyrus.diagram.composite.edit.commands.AbstractionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ComponentRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DependencyCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DeploymentCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InformationFlowCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InterfaceRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ManifestationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.SubstitutionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.UsageCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.parts.AbstractionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CommentAnnotatedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ComponentRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ConstraintConstrainedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DependencyEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DeploymentEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DurationObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InformationFlowEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InterfaceRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ManifestationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RoleBindingEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.SubstitutionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.TimeObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.UsageEditPart;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.service.edit.service.ElementEditServiceUtils;
+import org.eclipse.papyrus.service.edit.service.IElementEditService;
+
+/**
+ * @generated
+ */
+public class InstanceValueItemSemanticEditPolicy extends UMLBaseItemSemanticEditPolicy {
+
+ /**
+ * @generated
+ */
+ public InstanceValueItemSemanticEditPolicy() {
+ super(UMLElementTypes.InstanceValue_2108);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getDestroyElementCommand(DestroyElementRequest req) {
+ EObject selectedEObject = req.getElementToDestroy();
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(selectedEObject);
+ if(provider != null) {
+ // Retrieve delete command from the Element Edit service
+ ICommand deleteCommand = provider.getEditCommand(req);
+
+ if(deleteCommand != null) {
+ return new ICommandProxy(deleteCommand);
+ }
+ }
+ return UnexecutableCommand.INSTANCE;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCreateRelationshipCommand(CreateRelationshipRequest req) {
+ Command command = req.getTarget() == null ? getStartCreateRelationshipCommand(req) : getCompleteCreateRelationshipCommand(req);
+ return command != null ? command : super.getCreateRelationshipCommand(req);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getStartCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCompleteCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return getGEFWrapper(new CommentAnnotatedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return getGEFWrapper(new ConstraintConstrainedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return getGEFWrapper(new TimeObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return getGEFWrapper(new DurationObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * Returns command to reorient EClass based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientRelationshipCommand(ReorientRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case ComponentRealizationEditPart.VISUAL_ID:
+ case InterfaceRealizationEditPart.VISUAL_ID:
+ case SubstitutionEditPart.VISUAL_ID:
+ case RealizationEditPart.VISUAL_ID:
+ case ManifestationEditPart.VISUAL_ID:
+ case AbstractionEditPart.VISUAL_ID:
+ case UsageEditPart.VISUAL_ID:
+ case DeploymentEditPart.VISUAL_ID:
+ case DependencyEditPart.VISUAL_ID:
+ case InformationFlowEditPart.VISUAL_ID:
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(req.getRelationship());
+ if(provider == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ // Retrieve re-orient command from the Element Edit service
+ ICommand reorientCommand = provider.getEditCommand(req);
+ if(reorientCommand == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ return getGEFWrapper(reorientCommand.reduce());
+ case RoleBindingEditPart.VISUAL_ID:
+ return getGEFWrapper(new RoleBindingReorientCommand(req));
+ }
+ return super.getReorientRelationshipCommand(req);
+ }
+
+ /**
+ * Returns command to reorient EReference based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientReferenceRelationshipCommand(ReorientReferenceRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case CommentAnnotatedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new CommentAnnotatedElementReorientCommand(req));
+ case ConstraintConstrainedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new ConstraintConstrainedElementReorientCommand(req));
+ case TimeObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new TimeObservationEventReorientCommand(req));
+ case DurationObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new DurationObservationEventReorientCommand(req));
+ }
+ return super.getReorientReferenceRelationshipCommand(req);
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/InteractionCompositeCompartmentItemSemanticEditPolicy.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/InteractionCompositeCompartmentItemSemanticEditPolicy.java
new file mode 100644
index 00000000000..9fe2bc93528
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/InteractionCompositeCompartmentItemSemanticEditPolicy.java
@@ -0,0 +1,167 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.policies;
+
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ActivityCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ActorCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ArtifactCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ClassCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CollaborationCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CollaborationUseCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ComponentCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DataTypeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DeploymentSpecificationCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DeviceCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationConstraintCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.EnumerationCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ExecutionEnvironmentCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.FunctionBehaviorCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InformationItemCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InteractionCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InteractionConstraintCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InterfaceCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.IntervalConstraintCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.NodeCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.OpaqueBehaviorCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ParameterCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.PortCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.PrimitiveTypeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.PropertyPartCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ProtocolStateMachineCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.SignalCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.StateMachineCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeConstraintCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.UseCaseCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+
+/**
+ * @generated
+ */
+public class InteractionCompositeCompartmentItemSemanticEditPolicy extends UMLBaseItemSemanticEditPolicy {
+
+ /**
+ * @generated
+ */
+ public InteractionCompositeCompartmentItemSemanticEditPolicy() {
+ super(UMLElementTypes.Interaction_2061);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCreateCommand(CreateElementRequest req) {
+ if(UMLElementTypes.Port_3069 == req.getElementType()) {
+ return getGEFWrapper(new PortCreateCommand(req));
+ }
+ if(UMLElementTypes.Parameter_3088 == req.getElementType()) {
+ return getGEFWrapper(new ParameterCreateCommand(req));
+ }
+ if(UMLElementTypes.Property_3070 == req.getElementType()) {
+ return getGEFWrapper(new PropertyPartCreateCommandCN(req));
+ }
+ if(UMLElementTypes.CollaborationUse_3071 == req.getElementType()) {
+ return getGEFWrapper(new CollaborationUseCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Activity_3072 == req.getElementType()) {
+ return getGEFWrapper(new ActivityCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Interaction_3073 == req.getElementType()) {
+ return getGEFWrapper(new InteractionCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.ProtocolStateMachine_3074 == req.getElementType()) {
+ return getGEFWrapper(new ProtocolStateMachineCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.StateMachine_3075 == req.getElementType()) {
+ return getGEFWrapper(new StateMachineCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.FunctionBehavior_3076 == req.getElementType()) {
+ return getGEFWrapper(new FunctionBehaviorCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.OpaqueBehavior_3077 == req.getElementType()) {
+ return getGEFWrapper(new OpaqueBehaviorCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Component_3081 == req.getElementType()) {
+ return getGEFWrapper(new ComponentCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Device_3082 == req.getElementType()) {
+ return getGEFWrapper(new DeviceCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.ExecutionEnvironment_3083 == req.getElementType()) {
+ return getGEFWrapper(new ExecutionEnvironmentCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Node_3084 == req.getElementType()) {
+ return getGEFWrapper(new NodeCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Class_3085 == req.getElementType()) {
+ return getGEFWrapper(new ClassCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Collaboration_3086 == req.getElementType()) {
+ return getGEFWrapper(new CollaborationCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Interface_3087 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceCreateCommandCN(req));
+ }
+ if(UMLElementTypes.PrimitiveType_3078 == req.getElementType()) {
+ return getGEFWrapper(new PrimitiveTypeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Enumeration_3079 == req.getElementType()) {
+ return getGEFWrapper(new EnumerationCreateCommandCN(req));
+ }
+ if(UMLElementTypes.DataType_3080 == req.getElementType()) {
+ return getGEFWrapper(new DataTypeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Actor_3091 == req.getElementType()) {
+ return getGEFWrapper(new ActorCreateCommandCN(req));
+ }
+ if(UMLElementTypes.DeploymentSpecification_3092 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentSpecificationCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Artifact_3093 == req.getElementType()) {
+ return getGEFWrapper(new ArtifactCreateCommandCN(req));
+ }
+ if(UMLElementTypes.InformationItem_3094 == req.getElementType()) {
+ return getGEFWrapper(new InformationItemCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Signal_3095 == req.getElementType()) {
+ return getGEFWrapper(new SignalCreateCommandCN(req));
+ }
+ if(UMLElementTypes.UseCase_3096 == req.getElementType()) {
+ return getGEFWrapper(new UseCaseCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Comment_3097 == req.getElementType()) {
+ return getGEFWrapper(new CommentCreateCommandCN(req));
+ }
+ if(UMLElementTypes.DurationConstraint_3116 == req.getElementType()) {
+ return getGEFWrapper(new DurationConstraintCreateCommandCN(req));
+ }
+ if(UMLElementTypes.TimeConstraint_3117 == req.getElementType()) {
+ return getGEFWrapper(new TimeConstraintCreateCommandCN(req));
+ }
+ if(UMLElementTypes.IntervalConstraint_3118 == req.getElementType()) {
+ return getGEFWrapper(new IntervalConstraintCreateCommandCN(req));
+ }
+ if(UMLElementTypes.InteractionConstraint_3119 == req.getElementType()) {
+ return getGEFWrapper(new InteractionConstraintCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Constraint_3120 == req.getElementType()) {
+ return getGEFWrapper(new ConstraintCreateCommandCN(req));
+ }
+ return super.getCreateCommand(req);
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/InteractionCompositeCompartmentItemSemanticEditPolicyCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/InteractionCompositeCompartmentItemSemanticEditPolicyCN.java
new file mode 100644
index 00000000000..363f075d4ac
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/InteractionCompositeCompartmentItemSemanticEditPolicyCN.java
@@ -0,0 +1,167 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.policies;
+
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ActivityCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ActorCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ArtifactCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ClassCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CollaborationCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CollaborationUseCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ComponentCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DataTypeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DeploymentSpecificationCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DeviceCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationConstraintCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.EnumerationCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ExecutionEnvironmentCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.FunctionBehaviorCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InformationItemCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InteractionCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InteractionConstraintCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InterfaceCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.IntervalConstraintCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.NodeCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.OpaqueBehaviorCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ParameterCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.PortCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.PrimitiveTypeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.PropertyPartCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ProtocolStateMachineCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.SignalCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.StateMachineCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeConstraintCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.UseCaseCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+
+/**
+ * @generated
+ */
+public class InteractionCompositeCompartmentItemSemanticEditPolicyCN extends UMLBaseItemSemanticEditPolicy {
+
+ /**
+ * @generated
+ */
+ public InteractionCompositeCompartmentItemSemanticEditPolicyCN() {
+ super(UMLElementTypes.Interaction_3073);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCreateCommand(CreateElementRequest req) {
+ if(UMLElementTypes.Port_3069 == req.getElementType()) {
+ return getGEFWrapper(new PortCreateCommand(req));
+ }
+ if(UMLElementTypes.Parameter_3088 == req.getElementType()) {
+ return getGEFWrapper(new ParameterCreateCommand(req));
+ }
+ if(UMLElementTypes.Property_3070 == req.getElementType()) {
+ return getGEFWrapper(new PropertyPartCreateCommandCN(req));
+ }
+ if(UMLElementTypes.CollaborationUse_3071 == req.getElementType()) {
+ return getGEFWrapper(new CollaborationUseCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Activity_3072 == req.getElementType()) {
+ return getGEFWrapper(new ActivityCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Interaction_3073 == req.getElementType()) {
+ return getGEFWrapper(new InteractionCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.ProtocolStateMachine_3074 == req.getElementType()) {
+ return getGEFWrapper(new ProtocolStateMachineCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.StateMachine_3075 == req.getElementType()) {
+ return getGEFWrapper(new StateMachineCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.FunctionBehavior_3076 == req.getElementType()) {
+ return getGEFWrapper(new FunctionBehaviorCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.OpaqueBehavior_3077 == req.getElementType()) {
+ return getGEFWrapper(new OpaqueBehaviorCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Component_3081 == req.getElementType()) {
+ return getGEFWrapper(new ComponentCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Device_3082 == req.getElementType()) {
+ return getGEFWrapper(new DeviceCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.ExecutionEnvironment_3083 == req.getElementType()) {
+ return getGEFWrapper(new ExecutionEnvironmentCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Node_3084 == req.getElementType()) {
+ return getGEFWrapper(new NodeCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Class_3085 == req.getElementType()) {
+ return getGEFWrapper(new ClassCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Collaboration_3086 == req.getElementType()) {
+ return getGEFWrapper(new CollaborationCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Interface_3087 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceCreateCommandCN(req));
+ }
+ if(UMLElementTypes.PrimitiveType_3078 == req.getElementType()) {
+ return getGEFWrapper(new PrimitiveTypeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Enumeration_3079 == req.getElementType()) {
+ return getGEFWrapper(new EnumerationCreateCommandCN(req));
+ }
+ if(UMLElementTypes.DataType_3080 == req.getElementType()) {
+ return getGEFWrapper(new DataTypeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Actor_3091 == req.getElementType()) {
+ return getGEFWrapper(new ActorCreateCommandCN(req));
+ }
+ if(UMLElementTypes.DeploymentSpecification_3092 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentSpecificationCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Artifact_3093 == req.getElementType()) {
+ return getGEFWrapper(new ArtifactCreateCommandCN(req));
+ }
+ if(UMLElementTypes.InformationItem_3094 == req.getElementType()) {
+ return getGEFWrapper(new InformationItemCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Signal_3095 == req.getElementType()) {
+ return getGEFWrapper(new SignalCreateCommandCN(req));
+ }
+ if(UMLElementTypes.UseCase_3096 == req.getElementType()) {
+ return getGEFWrapper(new UseCaseCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Comment_3097 == req.getElementType()) {
+ return getGEFWrapper(new CommentCreateCommandCN(req));
+ }
+ if(UMLElementTypes.DurationConstraint_3116 == req.getElementType()) {
+ return getGEFWrapper(new DurationConstraintCreateCommandCN(req));
+ }
+ if(UMLElementTypes.TimeConstraint_3117 == req.getElementType()) {
+ return getGEFWrapper(new TimeConstraintCreateCommandCN(req));
+ }
+ if(UMLElementTypes.IntervalConstraint_3118 == req.getElementType()) {
+ return getGEFWrapper(new IntervalConstraintCreateCommandCN(req));
+ }
+ if(UMLElementTypes.InteractionConstraint_3119 == req.getElementType()) {
+ return getGEFWrapper(new InteractionConstraintCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Constraint_3120 == req.getElementType()) {
+ return getGEFWrapper(new ConstraintCreateCommandCN(req));
+ }
+ return super.getCreateCommand(req);
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/InteractionCompositeItemSemanticEditPolicy.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/InteractionCompositeItemSemanticEditPolicy.java
new file mode 100644
index 00000000000..8f25dc61512
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/InteractionCompositeItemSemanticEditPolicy.java
@@ -0,0 +1,295 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.policies;
+
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.commands.UnexecutableCommand;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.diagram.ui.commands.ICommandProxy;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientReferenceRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientRelationshipRequest;
+import org.eclipse.papyrus.diagram.composite.edit.commands.AbstractionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ComponentRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DependencyCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DeploymentCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.GeneralizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InformationFlowCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InterfaceRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ManifestationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ParameterCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.PortCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RepresentationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RepresentationReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.SubstitutionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.UsageCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.parts.AbstractionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CommentAnnotatedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ComponentRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ConstraintConstrainedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DependencyEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DeploymentEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DurationObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.GeneralizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InformationFlowEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InterfaceRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ManifestationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RepresentationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RoleBindingEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.SubstitutionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.TimeObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.UsageEditPart;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.service.edit.service.ElementEditServiceUtils;
+import org.eclipse.papyrus.service.edit.service.IElementEditService;
+
+/**
+ * @generated
+ */
+public class InteractionCompositeItemSemanticEditPolicy extends UMLBaseItemSemanticEditPolicy {
+
+ /**
+ * @generated
+ */
+ public InteractionCompositeItemSemanticEditPolicy() {
+ super(UMLElementTypes.Interaction_2061);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCreateCommand(CreateElementRequest req) {
+ if(UMLElementTypes.Port_3069 == req.getElementType()) {
+ return getGEFWrapper(new PortCreateCommand(req));
+ }
+ if(UMLElementTypes.Parameter_3088 == req.getElementType()) {
+ return getGEFWrapper(new ParameterCreateCommand(req));
+ }
+ return super.getCreateCommand(req);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getDestroyElementCommand(DestroyElementRequest req) {
+ EObject selectedEObject = req.getElementToDestroy();
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(selectedEObject);
+ if(provider != null) {
+ // Retrieve delete command from the Element Edit service
+ ICommand deleteCommand = provider.getEditCommand(req);
+
+ if(deleteCommand != null) {
+ return new ICommandProxy(deleteCommand);
+ }
+ }
+ return UnexecutableCommand.INSTANCE;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCreateRelationshipCommand(CreateRelationshipRequest req) {
+ Command command = req.getTarget() == null ? getStartCreateRelationshipCommand(req) : getCompleteCreateRelationshipCommand(req);
+ return command != null ? command : super.getCreateRelationshipCommand(req);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getStartCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Generalization_4015 == req.getElementType()) {
+ return getGEFWrapper(new GeneralizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.InformationItemRepresented_4020 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCompleteCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return getGEFWrapper(new CommentAnnotatedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return getGEFWrapper(new ConstraintConstrainedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Generalization_4015 == req.getElementType()) {
+ return getGEFWrapper(new GeneralizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return getGEFWrapper(new TimeObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return getGEFWrapper(new DurationObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InformationItemRepresented_4020 == req.getElementType()) {
+ return getGEFWrapper(new RepresentationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * Returns command to reorient EClass based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientRelationshipCommand(ReorientRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case ComponentRealizationEditPart.VISUAL_ID:
+ case InterfaceRealizationEditPart.VISUAL_ID:
+ case SubstitutionEditPart.VISUAL_ID:
+ case RealizationEditPart.VISUAL_ID:
+ case ManifestationEditPart.VISUAL_ID:
+ case AbstractionEditPart.VISUAL_ID:
+ case UsageEditPart.VISUAL_ID:
+ case DeploymentEditPart.VISUAL_ID:
+ case DependencyEditPart.VISUAL_ID:
+ case GeneralizationEditPart.VISUAL_ID:
+ case InformationFlowEditPart.VISUAL_ID:
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(req.getRelationship());
+ if(provider == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ // Retrieve re-orient command from the Element Edit service
+ ICommand reorientCommand = provider.getEditCommand(req);
+ if(reorientCommand == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ return getGEFWrapper(reorientCommand.reduce());
+ case RoleBindingEditPart.VISUAL_ID:
+ return getGEFWrapper(new RoleBindingReorientCommand(req));
+ }
+ return super.getReorientRelationshipCommand(req);
+ }
+
+ /**
+ * Returns command to reorient EReference based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientReferenceRelationshipCommand(ReorientReferenceRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case CommentAnnotatedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new CommentAnnotatedElementReorientCommand(req));
+ case ConstraintConstrainedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new ConstraintConstrainedElementReorientCommand(req));
+ case TimeObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new TimeObservationEventReorientCommand(req));
+ case DurationObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new DurationObservationEventReorientCommand(req));
+ case RepresentationEditPart.VISUAL_ID:
+ return getGEFWrapper(new RepresentationReorientCommand(req));
+ }
+ return super.getReorientReferenceRelationshipCommand(req);
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/InteractionCompositeItemSemanticEditPolicyCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/InteractionCompositeItemSemanticEditPolicyCN.java
new file mode 100644
index 00000000000..2a5f0f69576
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/InteractionCompositeItemSemanticEditPolicyCN.java
@@ -0,0 +1,295 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.policies;
+
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.commands.UnexecutableCommand;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.diagram.ui.commands.ICommandProxy;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientReferenceRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientRelationshipRequest;
+import org.eclipse.papyrus.diagram.composite.edit.commands.AbstractionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ComponentRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DependencyCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DeploymentCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.GeneralizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InformationFlowCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InterfaceRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ManifestationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ParameterCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.PortCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RepresentationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RepresentationReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.SubstitutionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.UsageCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.parts.AbstractionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CommentAnnotatedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ComponentRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ConstraintConstrainedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DependencyEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DeploymentEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DurationObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.GeneralizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InformationFlowEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InterfaceRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ManifestationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RepresentationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RoleBindingEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.SubstitutionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.TimeObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.UsageEditPart;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.service.edit.service.ElementEditServiceUtils;
+import org.eclipse.papyrus.service.edit.service.IElementEditService;
+
+/**
+ * @generated
+ */
+public class InteractionCompositeItemSemanticEditPolicyCN extends UMLBaseItemSemanticEditPolicy {
+
+ /**
+ * @generated
+ */
+ public InteractionCompositeItemSemanticEditPolicyCN() {
+ super(UMLElementTypes.Interaction_3073);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCreateCommand(CreateElementRequest req) {
+ if(UMLElementTypes.Port_3069 == req.getElementType()) {
+ return getGEFWrapper(new PortCreateCommand(req));
+ }
+ if(UMLElementTypes.Parameter_3088 == req.getElementType()) {
+ return getGEFWrapper(new ParameterCreateCommand(req));
+ }
+ return super.getCreateCommand(req);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getDestroyElementCommand(DestroyElementRequest req) {
+ EObject selectedEObject = req.getElementToDestroy();
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(selectedEObject);
+ if(provider != null) {
+ // Retrieve delete command from the Element Edit service
+ ICommand deleteCommand = provider.getEditCommand(req);
+
+ if(deleteCommand != null) {
+ return new ICommandProxy(deleteCommand);
+ }
+ }
+ return UnexecutableCommand.INSTANCE;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCreateRelationshipCommand(CreateRelationshipRequest req) {
+ Command command = req.getTarget() == null ? getStartCreateRelationshipCommand(req) : getCompleteCreateRelationshipCommand(req);
+ return command != null ? command : super.getCreateRelationshipCommand(req);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getStartCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Generalization_4015 == req.getElementType()) {
+ return getGEFWrapper(new GeneralizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.InformationItemRepresented_4020 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCompleteCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return getGEFWrapper(new CommentAnnotatedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return getGEFWrapper(new ConstraintConstrainedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Generalization_4015 == req.getElementType()) {
+ return getGEFWrapper(new GeneralizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return getGEFWrapper(new TimeObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return getGEFWrapper(new DurationObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InformationItemRepresented_4020 == req.getElementType()) {
+ return getGEFWrapper(new RepresentationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * Returns command to reorient EClass based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientRelationshipCommand(ReorientRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case ComponentRealizationEditPart.VISUAL_ID:
+ case InterfaceRealizationEditPart.VISUAL_ID:
+ case SubstitutionEditPart.VISUAL_ID:
+ case RealizationEditPart.VISUAL_ID:
+ case ManifestationEditPart.VISUAL_ID:
+ case AbstractionEditPart.VISUAL_ID:
+ case UsageEditPart.VISUAL_ID:
+ case DeploymentEditPart.VISUAL_ID:
+ case DependencyEditPart.VISUAL_ID:
+ case GeneralizationEditPart.VISUAL_ID:
+ case InformationFlowEditPart.VISUAL_ID:
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(req.getRelationship());
+ if(provider == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ // Retrieve re-orient command from the Element Edit service
+ ICommand reorientCommand = provider.getEditCommand(req);
+ if(reorientCommand == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ return getGEFWrapper(reorientCommand.reduce());
+ case RoleBindingEditPart.VISUAL_ID:
+ return getGEFWrapper(new RoleBindingReorientCommand(req));
+ }
+ return super.getReorientRelationshipCommand(req);
+ }
+
+ /**
+ * Returns command to reorient EReference based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientReferenceRelationshipCommand(ReorientReferenceRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case CommentAnnotatedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new CommentAnnotatedElementReorientCommand(req));
+ case ConstraintConstrainedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new ConstraintConstrainedElementReorientCommand(req));
+ case TimeObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new TimeObservationEventReorientCommand(req));
+ case DurationObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new DurationObservationEventReorientCommand(req));
+ case RepresentationEditPart.VISUAL_ID:
+ return getGEFWrapper(new RepresentationReorientCommand(req));
+ }
+ return super.getReorientReferenceRelationshipCommand(req);
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/InteractionConstraintItemSemanticEditPolicy.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/InteractionConstraintItemSemanticEditPolicy.java
new file mode 100644
index 00000000000..83d8bae167f
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/InteractionConstraintItemSemanticEditPolicy.java
@@ -0,0 +1,259 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.policies;
+
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.commands.UnexecutableCommand;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.diagram.ui.commands.ICommandProxy;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientReferenceRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientRelationshipRequest;
+import org.eclipse.papyrus.diagram.composite.edit.commands.AbstractionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ComponentRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DependencyCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DeploymentCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InformationFlowCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InterfaceRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ManifestationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.SubstitutionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.UsageCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.parts.AbstractionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CommentAnnotatedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ComponentRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ConstraintConstrainedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DependencyEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DeploymentEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DurationObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InformationFlowEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InterfaceRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ManifestationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RoleBindingEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.SubstitutionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.TimeObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.UsageEditPart;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.service.edit.service.ElementEditServiceUtils;
+import org.eclipse.papyrus.service.edit.service.IElementEditService;
+
+/**
+ * @generated
+ */
+public class InteractionConstraintItemSemanticEditPolicy extends UMLBaseItemSemanticEditPolicy {
+
+ /**
+ * @generated
+ */
+ public InteractionConstraintItemSemanticEditPolicy() {
+ super(UMLElementTypes.InteractionConstraint_2113);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getDestroyElementCommand(DestroyElementRequest req) {
+ EObject selectedEObject = req.getElementToDestroy();
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(selectedEObject);
+ if(provider != null) {
+ // Retrieve delete command from the Element Edit service
+ ICommand deleteCommand = provider.getEditCommand(req);
+
+ if(deleteCommand != null) {
+ return new ICommandProxy(deleteCommand);
+ }
+ }
+ return UnexecutableCommand.INSTANCE;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCreateRelationshipCommand(CreateRelationshipRequest req) {
+ Command command = req.getTarget() == null ? getStartCreateRelationshipCommand(req) : getCompleteCreateRelationshipCommand(req);
+ return command != null ? command : super.getCreateRelationshipCommand(req);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getStartCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return getGEFWrapper(new ConstraintConstrainedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCompleteCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return getGEFWrapper(new CommentAnnotatedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return getGEFWrapper(new ConstraintConstrainedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return getGEFWrapper(new TimeObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return getGEFWrapper(new DurationObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * Returns command to reorient EClass based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientRelationshipCommand(ReorientRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case ComponentRealizationEditPart.VISUAL_ID:
+ case InterfaceRealizationEditPart.VISUAL_ID:
+ case SubstitutionEditPart.VISUAL_ID:
+ case RealizationEditPart.VISUAL_ID:
+ case ManifestationEditPart.VISUAL_ID:
+ case AbstractionEditPart.VISUAL_ID:
+ case UsageEditPart.VISUAL_ID:
+ case DeploymentEditPart.VISUAL_ID:
+ case DependencyEditPart.VISUAL_ID:
+ case InformationFlowEditPart.VISUAL_ID:
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(req.getRelationship());
+ if(provider == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ // Retrieve re-orient command from the Element Edit service
+ ICommand reorientCommand = provider.getEditCommand(req);
+ if(reorientCommand == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ return getGEFWrapper(reorientCommand.reduce());
+ case RoleBindingEditPart.VISUAL_ID:
+ return getGEFWrapper(new RoleBindingReorientCommand(req));
+ }
+ return super.getReorientRelationshipCommand(req);
+ }
+
+ /**
+ * Returns command to reorient EReference based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientReferenceRelationshipCommand(ReorientReferenceRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case CommentAnnotatedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new CommentAnnotatedElementReorientCommand(req));
+ case ConstraintConstrainedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new ConstraintConstrainedElementReorientCommand(req));
+ case TimeObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new TimeObservationEventReorientCommand(req));
+ case DurationObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new DurationObservationEventReorientCommand(req));
+ }
+ return super.getReorientReferenceRelationshipCommand(req);
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/InteractionConstraintItemSemanticEditPolicyCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/InteractionConstraintItemSemanticEditPolicyCN.java
new file mode 100644
index 00000000000..1e8c749ea3a
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/InteractionConstraintItemSemanticEditPolicyCN.java
@@ -0,0 +1,259 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.policies;
+
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.commands.UnexecutableCommand;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.diagram.ui.commands.ICommandProxy;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientReferenceRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientRelationshipRequest;
+import org.eclipse.papyrus.diagram.composite.edit.commands.AbstractionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ComponentRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DependencyCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DeploymentCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InformationFlowCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InterfaceRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ManifestationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.SubstitutionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.UsageCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.parts.AbstractionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CommentAnnotatedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ComponentRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ConstraintConstrainedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DependencyEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DeploymentEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DurationObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InformationFlowEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InterfaceRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ManifestationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RoleBindingEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.SubstitutionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.TimeObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.UsageEditPart;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.service.edit.service.ElementEditServiceUtils;
+import org.eclipse.papyrus.service.edit.service.IElementEditService;
+
+/**
+ * @generated
+ */
+public class InteractionConstraintItemSemanticEditPolicyCN extends UMLBaseItemSemanticEditPolicy {
+
+ /**
+ * @generated
+ */
+ public InteractionConstraintItemSemanticEditPolicyCN() {
+ super(UMLElementTypes.InteractionConstraint_3119);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getDestroyElementCommand(DestroyElementRequest req) {
+ EObject selectedEObject = req.getElementToDestroy();
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(selectedEObject);
+ if(provider != null) {
+ // Retrieve delete command from the Element Edit service
+ ICommand deleteCommand = provider.getEditCommand(req);
+
+ if(deleteCommand != null) {
+ return new ICommandProxy(deleteCommand);
+ }
+ }
+ return UnexecutableCommand.INSTANCE;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCreateRelationshipCommand(CreateRelationshipRequest req) {
+ Command command = req.getTarget() == null ? getStartCreateRelationshipCommand(req) : getCompleteCreateRelationshipCommand(req);
+ return command != null ? command : super.getCreateRelationshipCommand(req);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getStartCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return getGEFWrapper(new ConstraintConstrainedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCompleteCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return getGEFWrapper(new CommentAnnotatedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return getGEFWrapper(new ConstraintConstrainedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return getGEFWrapper(new TimeObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return getGEFWrapper(new DurationObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * Returns command to reorient EClass based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientRelationshipCommand(ReorientRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case ComponentRealizationEditPart.VISUAL_ID:
+ case InterfaceRealizationEditPart.VISUAL_ID:
+ case SubstitutionEditPart.VISUAL_ID:
+ case RealizationEditPart.VISUAL_ID:
+ case ManifestationEditPart.VISUAL_ID:
+ case AbstractionEditPart.VISUAL_ID:
+ case UsageEditPart.VISUAL_ID:
+ case DeploymentEditPart.VISUAL_ID:
+ case DependencyEditPart.VISUAL_ID:
+ case InformationFlowEditPart.VISUAL_ID:
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(req.getRelationship());
+ if(provider == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ // Retrieve re-orient command from the Element Edit service
+ ICommand reorientCommand = provider.getEditCommand(req);
+ if(reorientCommand == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ return getGEFWrapper(reorientCommand.reduce());
+ case RoleBindingEditPart.VISUAL_ID:
+ return getGEFWrapper(new RoleBindingReorientCommand(req));
+ }
+ return super.getReorientRelationshipCommand(req);
+ }
+
+ /**
+ * Returns command to reorient EReference based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientReferenceRelationshipCommand(ReorientReferenceRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case CommentAnnotatedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new CommentAnnotatedElementReorientCommand(req));
+ case ConstraintConstrainedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new ConstraintConstrainedElementReorientCommand(req));
+ case TimeObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new TimeObservationEventReorientCommand(req));
+ case DurationObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new DurationObservationEventReorientCommand(req));
+ }
+ return super.getReorientReferenceRelationshipCommand(req);
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/InteractionItemSemanticEditPolicyCLN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/InteractionItemSemanticEditPolicyCLN.java
new file mode 100644
index 00000000000..42b4c6ddf32
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/InteractionItemSemanticEditPolicyCLN.java
@@ -0,0 +1,64 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.policies;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import org.eclipse.emf.ecore.EAnnotation;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.edit.command.DeleteCommand;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gmf.runtime.emf.commands.core.command.CompositeTransactionalCommand;
+import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.commands.wrappers.EMFtoGMFCommandWrapper;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+
+/**
+ * @generated
+ */
+public class InteractionItemSemanticEditPolicyCLN extends UMLBaseItemSemanticEditPolicy {
+
+ /**
+ * @generated
+ */
+ public InteractionItemSemanticEditPolicyCLN() {
+ super(UMLElementTypes.Interaction_3104);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getDestroyElementCommand(DestroyElementRequest req) {
+ View view = (View)getHost().getModel();
+ CompositeTransactionalCommand cmd = new CompositeTransactionalCommand(getEditingDomain(), null);
+ cmd.setTransactionNestingEnabled(true);
+
+ EAnnotation annotation = view.getEAnnotation("Shortcut"); //$NON-NLS-1$
+ if(annotation == null) {
+ // there are indirectly referenced children, need extra commands: false
+ addDestroyShortcutsCommand(cmd, view);
+ // delete host element
+ List<EObject> todestroy = new ArrayList<EObject>();
+ todestroy.add(req.getElementToDestroy());
+ //cmd.add(new org.eclipse.gmf.runtime.emf.type.core.commands.DestroyElementCommand(req));
+ cmd.add(new EMFtoGMFCommandWrapper(new DeleteCommand(getEditingDomain(), todestroy)));
+ } else {
+ cmd.add(new org.eclipse.gmf.runtime.diagram.core.commands.DeleteCommand(getEditingDomain(), view));
+ }
+ return getGEFWrapper(cmd.reduce());
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/InterfaceItemSemanticEditPolicy.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/InterfaceItemSemanticEditPolicy.java
new file mode 100644
index 00000000000..de96fce7c91
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/InterfaceItemSemanticEditPolicy.java
@@ -0,0 +1,279 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.policies;
+
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.commands.UnexecutableCommand;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.diagram.ui.commands.ICommandProxy;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientReferenceRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientRelationshipRequest;
+import org.eclipse.papyrus.diagram.composite.edit.commands.AbstractionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ComponentRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DependencyCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DeploymentCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.GeneralizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InformationFlowCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InterfaceRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ManifestationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RepresentationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RepresentationReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.SubstitutionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.UsageCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.parts.AbstractionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CommentAnnotatedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ComponentRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ConstraintConstrainedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DependencyEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DeploymentEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DurationObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.GeneralizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InformationFlowEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InterfaceRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ManifestationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RepresentationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RoleBindingEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.SubstitutionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.TimeObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.UsageEditPart;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.service.edit.service.ElementEditServiceUtils;
+import org.eclipse.papyrus.service.edit.service.IElementEditService;
+
+/**
+ * @generated
+ */
+public class InterfaceItemSemanticEditPolicy extends UMLBaseItemSemanticEditPolicy {
+
+ /**
+ * @generated
+ */
+ public InterfaceItemSemanticEditPolicy() {
+ super(UMLElementTypes.Interface_2076);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getDestroyElementCommand(DestroyElementRequest req) {
+ EObject selectedEObject = req.getElementToDestroy();
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(selectedEObject);
+ if(provider != null) {
+ // Retrieve delete command from the Element Edit service
+ ICommand deleteCommand = provider.getEditCommand(req);
+
+ if(deleteCommand != null) {
+ return new ICommandProxy(deleteCommand);
+ }
+ }
+ return UnexecutableCommand.INSTANCE;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCreateRelationshipCommand(CreateRelationshipRequest req) {
+ Command command = req.getTarget() == null ? getStartCreateRelationshipCommand(req) : getCompleteCreateRelationshipCommand(req);
+ return command != null ? command : super.getCreateRelationshipCommand(req);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getStartCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Generalization_4015 == req.getElementType()) {
+ return getGEFWrapper(new GeneralizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.InformationItemRepresented_4020 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCompleteCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return getGEFWrapper(new CommentAnnotatedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return getGEFWrapper(new ConstraintConstrainedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Generalization_4015 == req.getElementType()) {
+ return getGEFWrapper(new GeneralizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return getGEFWrapper(new TimeObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return getGEFWrapper(new DurationObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InformationItemRepresented_4020 == req.getElementType()) {
+ return getGEFWrapper(new RepresentationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * Returns command to reorient EClass based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientRelationshipCommand(ReorientRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case ComponentRealizationEditPart.VISUAL_ID:
+ case InterfaceRealizationEditPart.VISUAL_ID:
+ case SubstitutionEditPart.VISUAL_ID:
+ case RealizationEditPart.VISUAL_ID:
+ case ManifestationEditPart.VISUAL_ID:
+ case AbstractionEditPart.VISUAL_ID:
+ case UsageEditPart.VISUAL_ID:
+ case DeploymentEditPart.VISUAL_ID:
+ case DependencyEditPart.VISUAL_ID:
+ case GeneralizationEditPart.VISUAL_ID:
+ case InformationFlowEditPart.VISUAL_ID:
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(req.getRelationship());
+ if(provider == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ // Retrieve re-orient command from the Element Edit service
+ ICommand reorientCommand = provider.getEditCommand(req);
+ if(reorientCommand == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ return getGEFWrapper(reorientCommand.reduce());
+ case RoleBindingEditPart.VISUAL_ID:
+ return getGEFWrapper(new RoleBindingReorientCommand(req));
+ }
+ return super.getReorientRelationshipCommand(req);
+ }
+
+ /**
+ * Returns command to reorient EReference based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientReferenceRelationshipCommand(ReorientReferenceRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case CommentAnnotatedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new CommentAnnotatedElementReorientCommand(req));
+ case ConstraintConstrainedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new ConstraintConstrainedElementReorientCommand(req));
+ case TimeObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new TimeObservationEventReorientCommand(req));
+ case DurationObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new DurationObservationEventReorientCommand(req));
+ case RepresentationEditPart.VISUAL_ID:
+ return getGEFWrapper(new RepresentationReorientCommand(req));
+ }
+ return super.getReorientReferenceRelationshipCommand(req);
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/InterfaceItemSemanticEditPolicyCLN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/InterfaceItemSemanticEditPolicyCLN.java
new file mode 100644
index 00000000000..b1305f3e977
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/InterfaceItemSemanticEditPolicyCLN.java
@@ -0,0 +1,64 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.policies;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import org.eclipse.emf.ecore.EAnnotation;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.edit.command.DeleteCommand;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gmf.runtime.emf.commands.core.command.CompositeTransactionalCommand;
+import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.commands.wrappers.EMFtoGMFCommandWrapper;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+
+/**
+ * @generated
+ */
+public class InterfaceItemSemanticEditPolicyCLN extends UMLBaseItemSemanticEditPolicy {
+
+ /**
+ * @generated
+ */
+ public InterfaceItemSemanticEditPolicyCLN() {
+ super(UMLElementTypes.Interface_3110);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getDestroyElementCommand(DestroyElementRequest req) {
+ View view = (View)getHost().getModel();
+ CompositeTransactionalCommand cmd = new CompositeTransactionalCommand(getEditingDomain(), null);
+ cmd.setTransactionNestingEnabled(true);
+
+ EAnnotation annotation = view.getEAnnotation("Shortcut"); //$NON-NLS-1$
+ if(annotation == null) {
+ // there are indirectly referenced children, need extra commands: false
+ addDestroyShortcutsCommand(cmd, view);
+ // delete host element
+ List<EObject> todestroy = new ArrayList<EObject>();
+ todestroy.add(req.getElementToDestroy());
+ //cmd.add(new org.eclipse.gmf.runtime.emf.type.core.commands.DestroyElementCommand(req));
+ cmd.add(new EMFtoGMFCommandWrapper(new DeleteCommand(getEditingDomain(), todestroy)));
+ } else {
+ cmd.add(new org.eclipse.gmf.runtime.diagram.core.commands.DeleteCommand(getEditingDomain(), view));
+ }
+ return getGEFWrapper(cmd.reduce());
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/InterfaceItemSemanticEditPolicyCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/InterfaceItemSemanticEditPolicyCN.java
new file mode 100644
index 00000000000..1778be03c02
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/InterfaceItemSemanticEditPolicyCN.java
@@ -0,0 +1,279 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.policies;
+
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.commands.UnexecutableCommand;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.diagram.ui.commands.ICommandProxy;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientReferenceRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientRelationshipRequest;
+import org.eclipse.papyrus.diagram.composite.edit.commands.AbstractionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ComponentRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DependencyCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DeploymentCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.GeneralizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InformationFlowCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InterfaceRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ManifestationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RepresentationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RepresentationReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.SubstitutionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.UsageCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.parts.AbstractionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CommentAnnotatedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ComponentRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ConstraintConstrainedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DependencyEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DeploymentEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DurationObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.GeneralizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InformationFlowEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InterfaceRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ManifestationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RepresentationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RoleBindingEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.SubstitutionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.TimeObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.UsageEditPart;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.service.edit.service.ElementEditServiceUtils;
+import org.eclipse.papyrus.service.edit.service.IElementEditService;
+
+/**
+ * @generated
+ */
+public class InterfaceItemSemanticEditPolicyCN extends UMLBaseItemSemanticEditPolicy {
+
+ /**
+ * @generated
+ */
+ public InterfaceItemSemanticEditPolicyCN() {
+ super(UMLElementTypes.Interface_3087);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getDestroyElementCommand(DestroyElementRequest req) {
+ EObject selectedEObject = req.getElementToDestroy();
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(selectedEObject);
+ if(provider != null) {
+ // Retrieve delete command from the Element Edit service
+ ICommand deleteCommand = provider.getEditCommand(req);
+
+ if(deleteCommand != null) {
+ return new ICommandProxy(deleteCommand);
+ }
+ }
+ return UnexecutableCommand.INSTANCE;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCreateRelationshipCommand(CreateRelationshipRequest req) {
+ Command command = req.getTarget() == null ? getStartCreateRelationshipCommand(req) : getCompleteCreateRelationshipCommand(req);
+ return command != null ? command : super.getCreateRelationshipCommand(req);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getStartCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Generalization_4015 == req.getElementType()) {
+ return getGEFWrapper(new GeneralizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.InformationItemRepresented_4020 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCompleteCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return getGEFWrapper(new CommentAnnotatedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return getGEFWrapper(new ConstraintConstrainedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Generalization_4015 == req.getElementType()) {
+ return getGEFWrapper(new GeneralizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return getGEFWrapper(new TimeObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return getGEFWrapper(new DurationObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InformationItemRepresented_4020 == req.getElementType()) {
+ return getGEFWrapper(new RepresentationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * Returns command to reorient EClass based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientRelationshipCommand(ReorientRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case ComponentRealizationEditPart.VISUAL_ID:
+ case InterfaceRealizationEditPart.VISUAL_ID:
+ case SubstitutionEditPart.VISUAL_ID:
+ case RealizationEditPart.VISUAL_ID:
+ case ManifestationEditPart.VISUAL_ID:
+ case AbstractionEditPart.VISUAL_ID:
+ case UsageEditPart.VISUAL_ID:
+ case DeploymentEditPart.VISUAL_ID:
+ case DependencyEditPart.VISUAL_ID:
+ case GeneralizationEditPart.VISUAL_ID:
+ case InformationFlowEditPart.VISUAL_ID:
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(req.getRelationship());
+ if(provider == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ // Retrieve re-orient command from the Element Edit service
+ ICommand reorientCommand = provider.getEditCommand(req);
+ if(reorientCommand == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ return getGEFWrapper(reorientCommand.reduce());
+ case RoleBindingEditPart.VISUAL_ID:
+ return getGEFWrapper(new RoleBindingReorientCommand(req));
+ }
+ return super.getReorientRelationshipCommand(req);
+ }
+
+ /**
+ * Returns command to reorient EReference based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientReferenceRelationshipCommand(ReorientReferenceRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case CommentAnnotatedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new CommentAnnotatedElementReorientCommand(req));
+ case ConstraintConstrainedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new ConstraintConstrainedElementReorientCommand(req));
+ case TimeObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new TimeObservationEventReorientCommand(req));
+ case DurationObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new DurationObservationEventReorientCommand(req));
+ case RepresentationEditPart.VISUAL_ID:
+ return getGEFWrapper(new RepresentationReorientCommand(req));
+ }
+ return super.getReorientReferenceRelationshipCommand(req);
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/InterfaceRealizationItemSemanticEditPolicy.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/InterfaceRealizationItemSemanticEditPolicy.java
new file mode 100644
index 00000000000..b8f22dde7e9
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/InterfaceRealizationItemSemanticEditPolicy.java
@@ -0,0 +1,259 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.policies;
+
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.commands.UnexecutableCommand;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.diagram.ui.commands.ICommandProxy;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientReferenceRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientRelationshipRequest;
+import org.eclipse.papyrus.diagram.composite.edit.commands.AbstractionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ComponentRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DependencyCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DeploymentCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InformationFlowCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InterfaceRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ManifestationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.SubstitutionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.UsageCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.parts.AbstractionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CommentAnnotatedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ComponentRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ConstraintConstrainedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DependencyEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DeploymentEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DurationObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InformationFlowEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InterfaceRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ManifestationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RoleBindingEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.SubstitutionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.TimeObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.UsageEditPart;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.service.edit.service.ElementEditServiceUtils;
+import org.eclipse.papyrus.service.edit.service.IElementEditService;
+
+/**
+ * @generated
+ */
+public class InterfaceRealizationItemSemanticEditPolicy extends UMLBaseItemSemanticEditPolicy {
+
+ /**
+ * @generated
+ */
+ public InterfaceRealizationItemSemanticEditPolicy() {
+ super(UMLElementTypes.InterfaceRealization_4005);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getDestroyElementCommand(DestroyElementRequest req) {
+ EObject selectedEObject = req.getElementToDestroy();
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(selectedEObject);
+ if(provider != null) {
+ // Retrieve delete command from the Element Edit service
+ ICommand deleteCommand = provider.getEditCommand(req);
+
+ if(deleteCommand != null) {
+ return new ICommandProxy(deleteCommand);
+ }
+ }
+ return UnexecutableCommand.INSTANCE;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCreateRelationshipCommand(CreateRelationshipRequest req) {
+ Command command = req.getTarget() == null ? getStartCreateRelationshipCommand(req) : getCompleteCreateRelationshipCommand(req);
+ return command != null ? command : super.getCreateRelationshipCommand(req);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getStartCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCompleteCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return getGEFWrapper(new CommentAnnotatedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return getGEFWrapper(new ConstraintConstrainedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return getGEFWrapper(new TimeObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return getGEFWrapper(new DurationObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * Returns command to reorient EClass based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientRelationshipCommand(ReorientRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case ComponentRealizationEditPart.VISUAL_ID:
+ case InterfaceRealizationEditPart.VISUAL_ID:
+ case SubstitutionEditPart.VISUAL_ID:
+ case RealizationEditPart.VISUAL_ID:
+ case ManifestationEditPart.VISUAL_ID:
+ case AbstractionEditPart.VISUAL_ID:
+ case UsageEditPart.VISUAL_ID:
+ case DeploymentEditPart.VISUAL_ID:
+ case DependencyEditPart.VISUAL_ID:
+ case InformationFlowEditPart.VISUAL_ID:
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(req.getRelationship());
+ if(provider == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ // Retrieve re-orient command from the Element Edit service
+ ICommand reorientCommand = provider.getEditCommand(req);
+ if(reorientCommand == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ return getGEFWrapper(reorientCommand.reduce());
+ case RoleBindingEditPart.VISUAL_ID:
+ return getGEFWrapper(new RoleBindingReorientCommand(req));
+ }
+ return super.getReorientRelationshipCommand(req);
+ }
+
+ /**
+ * Returns command to reorient EReference based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientReferenceRelationshipCommand(ReorientReferenceRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case CommentAnnotatedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new CommentAnnotatedElementReorientCommand(req));
+ case ConstraintConstrainedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new ConstraintConstrainedElementReorientCommand(req));
+ case TimeObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new TimeObservationEventReorientCommand(req));
+ case DurationObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new DurationObservationEventReorientCommand(req));
+ }
+ return super.getReorientReferenceRelationshipCommand(req);
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/IntervalConstraintItemSemanticEditPolicy.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/IntervalConstraintItemSemanticEditPolicy.java
new file mode 100644
index 00000000000..943a2d7f975
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/IntervalConstraintItemSemanticEditPolicy.java
@@ -0,0 +1,259 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.policies;
+
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.commands.UnexecutableCommand;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.diagram.ui.commands.ICommandProxy;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientReferenceRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientRelationshipRequest;
+import org.eclipse.papyrus.diagram.composite.edit.commands.AbstractionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ComponentRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DependencyCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DeploymentCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InformationFlowCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InterfaceRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ManifestationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.SubstitutionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.UsageCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.parts.AbstractionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CommentAnnotatedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ComponentRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ConstraintConstrainedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DependencyEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DeploymentEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DurationObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InformationFlowEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InterfaceRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ManifestationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RoleBindingEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.SubstitutionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.TimeObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.UsageEditPart;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.service.edit.service.ElementEditServiceUtils;
+import org.eclipse.papyrus.service.edit.service.IElementEditService;
+
+/**
+ * @generated
+ */
+public class IntervalConstraintItemSemanticEditPolicy extends UMLBaseItemSemanticEditPolicy {
+
+ /**
+ * @generated
+ */
+ public IntervalConstraintItemSemanticEditPolicy() {
+ super(UMLElementTypes.IntervalConstraint_2112);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getDestroyElementCommand(DestroyElementRequest req) {
+ EObject selectedEObject = req.getElementToDestroy();
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(selectedEObject);
+ if(provider != null) {
+ // Retrieve delete command from the Element Edit service
+ ICommand deleteCommand = provider.getEditCommand(req);
+
+ if(deleteCommand != null) {
+ return new ICommandProxy(deleteCommand);
+ }
+ }
+ return UnexecutableCommand.INSTANCE;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCreateRelationshipCommand(CreateRelationshipRequest req) {
+ Command command = req.getTarget() == null ? getStartCreateRelationshipCommand(req) : getCompleteCreateRelationshipCommand(req);
+ return command != null ? command : super.getCreateRelationshipCommand(req);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getStartCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return getGEFWrapper(new ConstraintConstrainedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCompleteCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return getGEFWrapper(new CommentAnnotatedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return getGEFWrapper(new ConstraintConstrainedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return getGEFWrapper(new TimeObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return getGEFWrapper(new DurationObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * Returns command to reorient EClass based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientRelationshipCommand(ReorientRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case ComponentRealizationEditPart.VISUAL_ID:
+ case InterfaceRealizationEditPart.VISUAL_ID:
+ case SubstitutionEditPart.VISUAL_ID:
+ case RealizationEditPart.VISUAL_ID:
+ case ManifestationEditPart.VISUAL_ID:
+ case AbstractionEditPart.VISUAL_ID:
+ case UsageEditPart.VISUAL_ID:
+ case DeploymentEditPart.VISUAL_ID:
+ case DependencyEditPart.VISUAL_ID:
+ case InformationFlowEditPart.VISUAL_ID:
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(req.getRelationship());
+ if(provider == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ // Retrieve re-orient command from the Element Edit service
+ ICommand reorientCommand = provider.getEditCommand(req);
+ if(reorientCommand == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ return getGEFWrapper(reorientCommand.reduce());
+ case RoleBindingEditPart.VISUAL_ID:
+ return getGEFWrapper(new RoleBindingReorientCommand(req));
+ }
+ return super.getReorientRelationshipCommand(req);
+ }
+
+ /**
+ * Returns command to reorient EReference based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientReferenceRelationshipCommand(ReorientReferenceRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case CommentAnnotatedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new CommentAnnotatedElementReorientCommand(req));
+ case ConstraintConstrainedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new ConstraintConstrainedElementReorientCommand(req));
+ case TimeObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new TimeObservationEventReorientCommand(req));
+ case DurationObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new DurationObservationEventReorientCommand(req));
+ }
+ return super.getReorientReferenceRelationshipCommand(req);
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/IntervalConstraintItemSemanticEditPolicyCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/IntervalConstraintItemSemanticEditPolicyCN.java
new file mode 100644
index 00000000000..44bde243cd6
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/IntervalConstraintItemSemanticEditPolicyCN.java
@@ -0,0 +1,259 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.policies;
+
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.commands.UnexecutableCommand;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.diagram.ui.commands.ICommandProxy;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientReferenceRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientRelationshipRequest;
+import org.eclipse.papyrus.diagram.composite.edit.commands.AbstractionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ComponentRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DependencyCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DeploymentCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InformationFlowCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InterfaceRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ManifestationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.SubstitutionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.UsageCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.parts.AbstractionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CommentAnnotatedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ComponentRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ConstraintConstrainedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DependencyEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DeploymentEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DurationObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InformationFlowEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InterfaceRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ManifestationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RoleBindingEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.SubstitutionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.TimeObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.UsageEditPart;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.service.edit.service.ElementEditServiceUtils;
+import org.eclipse.papyrus.service.edit.service.IElementEditService;
+
+/**
+ * @generated
+ */
+public class IntervalConstraintItemSemanticEditPolicyCN extends UMLBaseItemSemanticEditPolicy {
+
+ /**
+ * @generated
+ */
+ public IntervalConstraintItemSemanticEditPolicyCN() {
+ super(UMLElementTypes.IntervalConstraint_3118);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getDestroyElementCommand(DestroyElementRequest req) {
+ EObject selectedEObject = req.getElementToDestroy();
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(selectedEObject);
+ if(provider != null) {
+ // Retrieve delete command from the Element Edit service
+ ICommand deleteCommand = provider.getEditCommand(req);
+
+ if(deleteCommand != null) {
+ return new ICommandProxy(deleteCommand);
+ }
+ }
+ return UnexecutableCommand.INSTANCE;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCreateRelationshipCommand(CreateRelationshipRequest req) {
+ Command command = req.getTarget() == null ? getStartCreateRelationshipCommand(req) : getCompleteCreateRelationshipCommand(req);
+ return command != null ? command : super.getCreateRelationshipCommand(req);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getStartCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return getGEFWrapper(new ConstraintConstrainedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCompleteCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return getGEFWrapper(new CommentAnnotatedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return getGEFWrapper(new ConstraintConstrainedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return getGEFWrapper(new TimeObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return getGEFWrapper(new DurationObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * Returns command to reorient EClass based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientRelationshipCommand(ReorientRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case ComponentRealizationEditPart.VISUAL_ID:
+ case InterfaceRealizationEditPart.VISUAL_ID:
+ case SubstitutionEditPart.VISUAL_ID:
+ case RealizationEditPart.VISUAL_ID:
+ case ManifestationEditPart.VISUAL_ID:
+ case AbstractionEditPart.VISUAL_ID:
+ case UsageEditPart.VISUAL_ID:
+ case DeploymentEditPart.VISUAL_ID:
+ case DependencyEditPart.VISUAL_ID:
+ case InformationFlowEditPart.VISUAL_ID:
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(req.getRelationship());
+ if(provider == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ // Retrieve re-orient command from the Element Edit service
+ ICommand reorientCommand = provider.getEditCommand(req);
+ if(reorientCommand == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ return getGEFWrapper(reorientCommand.reduce());
+ case RoleBindingEditPart.VISUAL_ID:
+ return getGEFWrapper(new RoleBindingReorientCommand(req));
+ }
+ return super.getReorientRelationshipCommand(req);
+ }
+
+ /**
+ * Returns command to reorient EReference based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientReferenceRelationshipCommand(ReorientReferenceRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case CommentAnnotatedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new CommentAnnotatedElementReorientCommand(req));
+ case ConstraintConstrainedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new ConstraintConstrainedElementReorientCommand(req));
+ case TimeObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new TimeObservationEventReorientCommand(req));
+ case DurationObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new DurationObservationEventReorientCommand(req));
+ }
+ return super.getReorientReferenceRelationshipCommand(req);
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/IntervalItemSemanticEditPolicy.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/IntervalItemSemanticEditPolicy.java
new file mode 100644
index 00000000000..925de0653f2
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/IntervalItemSemanticEditPolicy.java
@@ -0,0 +1,259 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.policies;
+
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.commands.UnexecutableCommand;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.diagram.ui.commands.ICommandProxy;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientReferenceRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientRelationshipRequest;
+import org.eclipse.papyrus.diagram.composite.edit.commands.AbstractionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ComponentRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DependencyCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DeploymentCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InformationFlowCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InterfaceRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ManifestationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.SubstitutionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.UsageCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.parts.AbstractionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CommentAnnotatedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ComponentRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ConstraintConstrainedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DependencyEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DeploymentEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DurationObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InformationFlowEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InterfaceRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ManifestationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RoleBindingEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.SubstitutionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.TimeObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.UsageEditPart;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.service.edit.service.ElementEditServiceUtils;
+import org.eclipse.papyrus.service.edit.service.IElementEditService;
+
+/**
+ * @generated
+ */
+public class IntervalItemSemanticEditPolicy extends UMLBaseItemSemanticEditPolicy {
+
+ /**
+ * @generated
+ */
+ public IntervalItemSemanticEditPolicy() {
+ super(UMLElementTypes.Interval_2107);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getDestroyElementCommand(DestroyElementRequest req) {
+ EObject selectedEObject = req.getElementToDestroy();
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(selectedEObject);
+ if(provider != null) {
+ // Retrieve delete command from the Element Edit service
+ ICommand deleteCommand = provider.getEditCommand(req);
+
+ if(deleteCommand != null) {
+ return new ICommandProxy(deleteCommand);
+ }
+ }
+ return UnexecutableCommand.INSTANCE;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCreateRelationshipCommand(CreateRelationshipRequest req) {
+ Command command = req.getTarget() == null ? getStartCreateRelationshipCommand(req) : getCompleteCreateRelationshipCommand(req);
+ return command != null ? command : super.getCreateRelationshipCommand(req);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getStartCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCompleteCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return getGEFWrapper(new CommentAnnotatedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return getGEFWrapper(new ConstraintConstrainedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return getGEFWrapper(new TimeObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return getGEFWrapper(new DurationObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * Returns command to reorient EClass based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientRelationshipCommand(ReorientRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case ComponentRealizationEditPart.VISUAL_ID:
+ case InterfaceRealizationEditPart.VISUAL_ID:
+ case SubstitutionEditPart.VISUAL_ID:
+ case RealizationEditPart.VISUAL_ID:
+ case ManifestationEditPart.VISUAL_ID:
+ case AbstractionEditPart.VISUAL_ID:
+ case UsageEditPart.VISUAL_ID:
+ case DeploymentEditPart.VISUAL_ID:
+ case DependencyEditPart.VISUAL_ID:
+ case InformationFlowEditPart.VISUAL_ID:
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(req.getRelationship());
+ if(provider == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ // Retrieve re-orient command from the Element Edit service
+ ICommand reorientCommand = provider.getEditCommand(req);
+ if(reorientCommand == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ return getGEFWrapper(reorientCommand.reduce());
+ case RoleBindingEditPart.VISUAL_ID:
+ return getGEFWrapper(new RoleBindingReorientCommand(req));
+ }
+ return super.getReorientRelationshipCommand(req);
+ }
+
+ /**
+ * Returns command to reorient EReference based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientReferenceRelationshipCommand(ReorientReferenceRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case CommentAnnotatedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new CommentAnnotatedElementReorientCommand(req));
+ case ConstraintConstrainedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new ConstraintConstrainedElementReorientCommand(req));
+ case TimeObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new TimeObservationEventReorientCommand(req));
+ case DurationObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new DurationObservationEventReorientCommand(req));
+ }
+ return super.getReorientReferenceRelationshipCommand(req);
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/LiteralBooleanItemSemanticEditPolicy.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/LiteralBooleanItemSemanticEditPolicy.java
new file mode 100644
index 00000000000..45fb099e74e
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/LiteralBooleanItemSemanticEditPolicy.java
@@ -0,0 +1,259 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.policies;
+
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.commands.UnexecutableCommand;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.diagram.ui.commands.ICommandProxy;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientReferenceRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientRelationshipRequest;
+import org.eclipse.papyrus.diagram.composite.edit.commands.AbstractionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ComponentRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DependencyCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DeploymentCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InformationFlowCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InterfaceRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ManifestationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.SubstitutionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.UsageCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.parts.AbstractionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CommentAnnotatedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ComponentRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ConstraintConstrainedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DependencyEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DeploymentEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DurationObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InformationFlowEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InterfaceRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ManifestationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RoleBindingEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.SubstitutionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.TimeObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.UsageEditPart;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.service.edit.service.ElementEditServiceUtils;
+import org.eclipse.papyrus.service.edit.service.IElementEditService;
+
+/**
+ * @generated
+ */
+public class LiteralBooleanItemSemanticEditPolicy extends UMLBaseItemSemanticEditPolicy {
+
+ /**
+ * @generated
+ */
+ public LiteralBooleanItemSemanticEditPolicy() {
+ super(UMLElementTypes.LiteralBoolean_2095);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getDestroyElementCommand(DestroyElementRequest req) {
+ EObject selectedEObject = req.getElementToDestroy();
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(selectedEObject);
+ if(provider != null) {
+ // Retrieve delete command from the Element Edit service
+ ICommand deleteCommand = provider.getEditCommand(req);
+
+ if(deleteCommand != null) {
+ return new ICommandProxy(deleteCommand);
+ }
+ }
+ return UnexecutableCommand.INSTANCE;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCreateRelationshipCommand(CreateRelationshipRequest req) {
+ Command command = req.getTarget() == null ? getStartCreateRelationshipCommand(req) : getCompleteCreateRelationshipCommand(req);
+ return command != null ? command : super.getCreateRelationshipCommand(req);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getStartCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCompleteCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return getGEFWrapper(new CommentAnnotatedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return getGEFWrapper(new ConstraintConstrainedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return getGEFWrapper(new TimeObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return getGEFWrapper(new DurationObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * Returns command to reorient EClass based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientRelationshipCommand(ReorientRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case ComponentRealizationEditPart.VISUAL_ID:
+ case InterfaceRealizationEditPart.VISUAL_ID:
+ case SubstitutionEditPart.VISUAL_ID:
+ case RealizationEditPart.VISUAL_ID:
+ case ManifestationEditPart.VISUAL_ID:
+ case AbstractionEditPart.VISUAL_ID:
+ case UsageEditPart.VISUAL_ID:
+ case DeploymentEditPart.VISUAL_ID:
+ case DependencyEditPart.VISUAL_ID:
+ case InformationFlowEditPart.VISUAL_ID:
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(req.getRelationship());
+ if(provider == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ // Retrieve re-orient command from the Element Edit service
+ ICommand reorientCommand = provider.getEditCommand(req);
+ if(reorientCommand == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ return getGEFWrapper(reorientCommand.reduce());
+ case RoleBindingEditPart.VISUAL_ID:
+ return getGEFWrapper(new RoleBindingReorientCommand(req));
+ }
+ return super.getReorientRelationshipCommand(req);
+ }
+
+ /**
+ * Returns command to reorient EReference based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientReferenceRelationshipCommand(ReorientReferenceRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case CommentAnnotatedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new CommentAnnotatedElementReorientCommand(req));
+ case ConstraintConstrainedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new ConstraintConstrainedElementReorientCommand(req));
+ case TimeObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new TimeObservationEventReorientCommand(req));
+ case DurationObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new DurationObservationEventReorientCommand(req));
+ }
+ return super.getReorientReferenceRelationshipCommand(req);
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/LiteralIntegerItemSemanticEditPolicy.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/LiteralIntegerItemSemanticEditPolicy.java
new file mode 100644
index 00000000000..2a8489431a5
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/LiteralIntegerItemSemanticEditPolicy.java
@@ -0,0 +1,259 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.policies;
+
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.commands.UnexecutableCommand;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.diagram.ui.commands.ICommandProxy;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientReferenceRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientRelationshipRequest;
+import org.eclipse.papyrus.diagram.composite.edit.commands.AbstractionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ComponentRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DependencyCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DeploymentCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InformationFlowCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InterfaceRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ManifestationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.SubstitutionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.UsageCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.parts.AbstractionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CommentAnnotatedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ComponentRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ConstraintConstrainedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DependencyEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DeploymentEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DurationObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InformationFlowEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InterfaceRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ManifestationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RoleBindingEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.SubstitutionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.TimeObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.UsageEditPart;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.service.edit.service.ElementEditServiceUtils;
+import org.eclipse.papyrus.service.edit.service.IElementEditService;
+
+/**
+ * @generated
+ */
+public class LiteralIntegerItemSemanticEditPolicy extends UMLBaseItemSemanticEditPolicy {
+
+ /**
+ * @generated
+ */
+ public LiteralIntegerItemSemanticEditPolicy() {
+ super(UMLElementTypes.LiteralInteger_2096);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getDestroyElementCommand(DestroyElementRequest req) {
+ EObject selectedEObject = req.getElementToDestroy();
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(selectedEObject);
+ if(provider != null) {
+ // Retrieve delete command from the Element Edit service
+ ICommand deleteCommand = provider.getEditCommand(req);
+
+ if(deleteCommand != null) {
+ return new ICommandProxy(deleteCommand);
+ }
+ }
+ return UnexecutableCommand.INSTANCE;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCreateRelationshipCommand(CreateRelationshipRequest req) {
+ Command command = req.getTarget() == null ? getStartCreateRelationshipCommand(req) : getCompleteCreateRelationshipCommand(req);
+ return command != null ? command : super.getCreateRelationshipCommand(req);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getStartCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCompleteCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return getGEFWrapper(new CommentAnnotatedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return getGEFWrapper(new ConstraintConstrainedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return getGEFWrapper(new TimeObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return getGEFWrapper(new DurationObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * Returns command to reorient EClass based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientRelationshipCommand(ReorientRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case ComponentRealizationEditPart.VISUAL_ID:
+ case InterfaceRealizationEditPart.VISUAL_ID:
+ case SubstitutionEditPart.VISUAL_ID:
+ case RealizationEditPart.VISUAL_ID:
+ case ManifestationEditPart.VISUAL_ID:
+ case AbstractionEditPart.VISUAL_ID:
+ case UsageEditPart.VISUAL_ID:
+ case DeploymentEditPart.VISUAL_ID:
+ case DependencyEditPart.VISUAL_ID:
+ case InformationFlowEditPart.VISUAL_ID:
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(req.getRelationship());
+ if(provider == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ // Retrieve re-orient command from the Element Edit service
+ ICommand reorientCommand = provider.getEditCommand(req);
+ if(reorientCommand == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ return getGEFWrapper(reorientCommand.reduce());
+ case RoleBindingEditPart.VISUAL_ID:
+ return getGEFWrapper(new RoleBindingReorientCommand(req));
+ }
+ return super.getReorientRelationshipCommand(req);
+ }
+
+ /**
+ * Returns command to reorient EReference based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientReferenceRelationshipCommand(ReorientReferenceRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case CommentAnnotatedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new CommentAnnotatedElementReorientCommand(req));
+ case ConstraintConstrainedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new ConstraintConstrainedElementReorientCommand(req));
+ case TimeObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new TimeObservationEventReorientCommand(req));
+ case DurationObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new DurationObservationEventReorientCommand(req));
+ }
+ return super.getReorientReferenceRelationshipCommand(req);
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/LiteralNullItemSemanticEditPolicy.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/LiteralNullItemSemanticEditPolicy.java
new file mode 100644
index 00000000000..1d47f3d1eda
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/LiteralNullItemSemanticEditPolicy.java
@@ -0,0 +1,259 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.policies;
+
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.commands.UnexecutableCommand;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.diagram.ui.commands.ICommandProxy;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientReferenceRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientRelationshipRequest;
+import org.eclipse.papyrus.diagram.composite.edit.commands.AbstractionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ComponentRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DependencyCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DeploymentCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InformationFlowCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InterfaceRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ManifestationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.SubstitutionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.UsageCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.parts.AbstractionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CommentAnnotatedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ComponentRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ConstraintConstrainedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DependencyEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DeploymentEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DurationObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InformationFlowEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InterfaceRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ManifestationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RoleBindingEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.SubstitutionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.TimeObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.UsageEditPart;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.service.edit.service.ElementEditServiceUtils;
+import org.eclipse.papyrus.service.edit.service.IElementEditService;
+
+/**
+ * @generated
+ */
+public class LiteralNullItemSemanticEditPolicy extends UMLBaseItemSemanticEditPolicy {
+
+ /**
+ * @generated
+ */
+ public LiteralNullItemSemanticEditPolicy() {
+ super(UMLElementTypes.LiteralNull_2097);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getDestroyElementCommand(DestroyElementRequest req) {
+ EObject selectedEObject = req.getElementToDestroy();
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(selectedEObject);
+ if(provider != null) {
+ // Retrieve delete command from the Element Edit service
+ ICommand deleteCommand = provider.getEditCommand(req);
+
+ if(deleteCommand != null) {
+ return new ICommandProxy(deleteCommand);
+ }
+ }
+ return UnexecutableCommand.INSTANCE;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCreateRelationshipCommand(CreateRelationshipRequest req) {
+ Command command = req.getTarget() == null ? getStartCreateRelationshipCommand(req) : getCompleteCreateRelationshipCommand(req);
+ return command != null ? command : super.getCreateRelationshipCommand(req);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getStartCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCompleteCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return getGEFWrapper(new CommentAnnotatedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return getGEFWrapper(new ConstraintConstrainedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return getGEFWrapper(new TimeObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return getGEFWrapper(new DurationObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * Returns command to reorient EClass based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientRelationshipCommand(ReorientRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case ComponentRealizationEditPart.VISUAL_ID:
+ case InterfaceRealizationEditPart.VISUAL_ID:
+ case SubstitutionEditPart.VISUAL_ID:
+ case RealizationEditPart.VISUAL_ID:
+ case ManifestationEditPart.VISUAL_ID:
+ case AbstractionEditPart.VISUAL_ID:
+ case UsageEditPart.VISUAL_ID:
+ case DeploymentEditPart.VISUAL_ID:
+ case DependencyEditPart.VISUAL_ID:
+ case InformationFlowEditPart.VISUAL_ID:
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(req.getRelationship());
+ if(provider == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ // Retrieve re-orient command from the Element Edit service
+ ICommand reorientCommand = provider.getEditCommand(req);
+ if(reorientCommand == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ return getGEFWrapper(reorientCommand.reduce());
+ case RoleBindingEditPart.VISUAL_ID:
+ return getGEFWrapper(new RoleBindingReorientCommand(req));
+ }
+ return super.getReorientRelationshipCommand(req);
+ }
+
+ /**
+ * Returns command to reorient EReference based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientReferenceRelationshipCommand(ReorientReferenceRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case CommentAnnotatedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new CommentAnnotatedElementReorientCommand(req));
+ case ConstraintConstrainedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new ConstraintConstrainedElementReorientCommand(req));
+ case TimeObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new TimeObservationEventReorientCommand(req));
+ case DurationObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new DurationObservationEventReorientCommand(req));
+ }
+ return super.getReorientReferenceRelationshipCommand(req);
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/LiteralStringItemSemanticEditPolicy.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/LiteralStringItemSemanticEditPolicy.java
new file mode 100644
index 00000000000..86bf31550d0
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/LiteralStringItemSemanticEditPolicy.java
@@ -0,0 +1,259 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.policies;
+
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.commands.UnexecutableCommand;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.diagram.ui.commands.ICommandProxy;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientReferenceRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientRelationshipRequest;
+import org.eclipse.papyrus.diagram.composite.edit.commands.AbstractionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ComponentRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DependencyCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DeploymentCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InformationFlowCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InterfaceRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ManifestationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.SubstitutionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.UsageCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.parts.AbstractionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CommentAnnotatedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ComponentRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ConstraintConstrainedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DependencyEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DeploymentEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DurationObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InformationFlowEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InterfaceRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ManifestationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RoleBindingEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.SubstitutionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.TimeObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.UsageEditPart;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.service.edit.service.ElementEditServiceUtils;
+import org.eclipse.papyrus.service.edit.service.IElementEditService;
+
+/**
+ * @generated
+ */
+public class LiteralStringItemSemanticEditPolicy extends UMLBaseItemSemanticEditPolicy {
+
+ /**
+ * @generated
+ */
+ public LiteralStringItemSemanticEditPolicy() {
+ super(UMLElementTypes.LiteralString_2098);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getDestroyElementCommand(DestroyElementRequest req) {
+ EObject selectedEObject = req.getElementToDestroy();
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(selectedEObject);
+ if(provider != null) {
+ // Retrieve delete command from the Element Edit service
+ ICommand deleteCommand = provider.getEditCommand(req);
+
+ if(deleteCommand != null) {
+ return new ICommandProxy(deleteCommand);
+ }
+ }
+ return UnexecutableCommand.INSTANCE;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCreateRelationshipCommand(CreateRelationshipRequest req) {
+ Command command = req.getTarget() == null ? getStartCreateRelationshipCommand(req) : getCompleteCreateRelationshipCommand(req);
+ return command != null ? command : super.getCreateRelationshipCommand(req);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getStartCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCompleteCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return getGEFWrapper(new CommentAnnotatedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return getGEFWrapper(new ConstraintConstrainedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return getGEFWrapper(new TimeObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return getGEFWrapper(new DurationObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * Returns command to reorient EClass based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientRelationshipCommand(ReorientRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case ComponentRealizationEditPart.VISUAL_ID:
+ case InterfaceRealizationEditPart.VISUAL_ID:
+ case SubstitutionEditPart.VISUAL_ID:
+ case RealizationEditPart.VISUAL_ID:
+ case ManifestationEditPart.VISUAL_ID:
+ case AbstractionEditPart.VISUAL_ID:
+ case UsageEditPart.VISUAL_ID:
+ case DeploymentEditPart.VISUAL_ID:
+ case DependencyEditPart.VISUAL_ID:
+ case InformationFlowEditPart.VISUAL_ID:
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(req.getRelationship());
+ if(provider == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ // Retrieve re-orient command from the Element Edit service
+ ICommand reorientCommand = provider.getEditCommand(req);
+ if(reorientCommand == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ return getGEFWrapper(reorientCommand.reduce());
+ case RoleBindingEditPart.VISUAL_ID:
+ return getGEFWrapper(new RoleBindingReorientCommand(req));
+ }
+ return super.getReorientRelationshipCommand(req);
+ }
+
+ /**
+ * Returns command to reorient EReference based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientReferenceRelationshipCommand(ReorientReferenceRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case CommentAnnotatedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new CommentAnnotatedElementReorientCommand(req));
+ case ConstraintConstrainedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new ConstraintConstrainedElementReorientCommand(req));
+ case TimeObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new TimeObservationEventReorientCommand(req));
+ case DurationObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new DurationObservationEventReorientCommand(req));
+ }
+ return super.getReorientReferenceRelationshipCommand(req);
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/LiteralUnlimitedNaturalItemSemanticEditPolicy.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/LiteralUnlimitedNaturalItemSemanticEditPolicy.java
new file mode 100644
index 00000000000..fa158c7ecf0
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/LiteralUnlimitedNaturalItemSemanticEditPolicy.java
@@ -0,0 +1,259 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.policies;
+
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.commands.UnexecutableCommand;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.diagram.ui.commands.ICommandProxy;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientReferenceRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientRelationshipRequest;
+import org.eclipse.papyrus.diagram.composite.edit.commands.AbstractionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ComponentRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DependencyCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DeploymentCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InformationFlowCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InterfaceRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ManifestationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.SubstitutionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.UsageCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.parts.AbstractionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CommentAnnotatedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ComponentRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ConstraintConstrainedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DependencyEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DeploymentEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DurationObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InformationFlowEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InterfaceRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ManifestationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RoleBindingEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.SubstitutionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.TimeObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.UsageEditPart;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.service.edit.service.ElementEditServiceUtils;
+import org.eclipse.papyrus.service.edit.service.IElementEditService;
+
+/**
+ * @generated
+ */
+public class LiteralUnlimitedNaturalItemSemanticEditPolicy extends UMLBaseItemSemanticEditPolicy {
+
+ /**
+ * @generated
+ */
+ public LiteralUnlimitedNaturalItemSemanticEditPolicy() {
+ super(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getDestroyElementCommand(DestroyElementRequest req) {
+ EObject selectedEObject = req.getElementToDestroy();
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(selectedEObject);
+ if(provider != null) {
+ // Retrieve delete command from the Element Edit service
+ ICommand deleteCommand = provider.getEditCommand(req);
+
+ if(deleteCommand != null) {
+ return new ICommandProxy(deleteCommand);
+ }
+ }
+ return UnexecutableCommand.INSTANCE;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCreateRelationshipCommand(CreateRelationshipRequest req) {
+ Command command = req.getTarget() == null ? getStartCreateRelationshipCommand(req) : getCompleteCreateRelationshipCommand(req);
+ return command != null ? command : super.getCreateRelationshipCommand(req);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getStartCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCompleteCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return getGEFWrapper(new CommentAnnotatedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return getGEFWrapper(new ConstraintConstrainedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return getGEFWrapper(new TimeObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return getGEFWrapper(new DurationObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * Returns command to reorient EClass based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientRelationshipCommand(ReorientRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case ComponentRealizationEditPart.VISUAL_ID:
+ case InterfaceRealizationEditPart.VISUAL_ID:
+ case SubstitutionEditPart.VISUAL_ID:
+ case RealizationEditPart.VISUAL_ID:
+ case ManifestationEditPart.VISUAL_ID:
+ case AbstractionEditPart.VISUAL_ID:
+ case UsageEditPart.VISUAL_ID:
+ case DeploymentEditPart.VISUAL_ID:
+ case DependencyEditPart.VISUAL_ID:
+ case InformationFlowEditPart.VISUAL_ID:
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(req.getRelationship());
+ if(provider == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ // Retrieve re-orient command from the Element Edit service
+ ICommand reorientCommand = provider.getEditCommand(req);
+ if(reorientCommand == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ return getGEFWrapper(reorientCommand.reduce());
+ case RoleBindingEditPart.VISUAL_ID:
+ return getGEFWrapper(new RoleBindingReorientCommand(req));
+ }
+ return super.getReorientRelationshipCommand(req);
+ }
+
+ /**
+ * Returns command to reorient EReference based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientReferenceRelationshipCommand(ReorientReferenceRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case CommentAnnotatedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new CommentAnnotatedElementReorientCommand(req));
+ case ConstraintConstrainedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new ConstraintConstrainedElementReorientCommand(req));
+ case TimeObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new TimeObservationEventReorientCommand(req));
+ case DurationObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new DurationObservationEventReorientCommand(req));
+ }
+ return super.getReorientReferenceRelationshipCommand(req);
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/ManifestationItemSemanticEditPolicy.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/ManifestationItemSemanticEditPolicy.java
new file mode 100644
index 00000000000..f63421cea70
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/ManifestationItemSemanticEditPolicy.java
@@ -0,0 +1,259 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.policies;
+
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.commands.UnexecutableCommand;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.diagram.ui.commands.ICommandProxy;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientReferenceRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientRelationshipRequest;
+import org.eclipse.papyrus.diagram.composite.edit.commands.AbstractionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ComponentRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DependencyCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DeploymentCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InformationFlowCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InterfaceRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ManifestationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.SubstitutionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.UsageCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.parts.AbstractionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CommentAnnotatedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ComponentRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ConstraintConstrainedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DependencyEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DeploymentEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DurationObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InformationFlowEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InterfaceRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ManifestationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RoleBindingEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.SubstitutionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.TimeObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.UsageEditPart;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.service.edit.service.ElementEditServiceUtils;
+import org.eclipse.papyrus.service.edit.service.IElementEditService;
+
+/**
+ * @generated
+ */
+public class ManifestationItemSemanticEditPolicy extends UMLBaseItemSemanticEditPolicy {
+
+ /**
+ * @generated
+ */
+ public ManifestationItemSemanticEditPolicy() {
+ super(UMLElementTypes.Manifestation_4012);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getDestroyElementCommand(DestroyElementRequest req) {
+ EObject selectedEObject = req.getElementToDestroy();
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(selectedEObject);
+ if(provider != null) {
+ // Retrieve delete command from the Element Edit service
+ ICommand deleteCommand = provider.getEditCommand(req);
+
+ if(deleteCommand != null) {
+ return new ICommandProxy(deleteCommand);
+ }
+ }
+ return UnexecutableCommand.INSTANCE;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCreateRelationshipCommand(CreateRelationshipRequest req) {
+ Command command = req.getTarget() == null ? getStartCreateRelationshipCommand(req) : getCompleteCreateRelationshipCommand(req);
+ return command != null ? command : super.getCreateRelationshipCommand(req);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getStartCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCompleteCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return getGEFWrapper(new CommentAnnotatedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return getGEFWrapper(new ConstraintConstrainedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return getGEFWrapper(new TimeObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return getGEFWrapper(new DurationObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * Returns command to reorient EClass based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientRelationshipCommand(ReorientRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case ComponentRealizationEditPart.VISUAL_ID:
+ case InterfaceRealizationEditPart.VISUAL_ID:
+ case SubstitutionEditPart.VISUAL_ID:
+ case RealizationEditPart.VISUAL_ID:
+ case ManifestationEditPart.VISUAL_ID:
+ case AbstractionEditPart.VISUAL_ID:
+ case UsageEditPart.VISUAL_ID:
+ case DeploymentEditPart.VISUAL_ID:
+ case DependencyEditPart.VISUAL_ID:
+ case InformationFlowEditPart.VISUAL_ID:
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(req.getRelationship());
+ if(provider == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ // Retrieve re-orient command from the Element Edit service
+ ICommand reorientCommand = provider.getEditCommand(req);
+ if(reorientCommand == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ return getGEFWrapper(reorientCommand.reduce());
+ case RoleBindingEditPart.VISUAL_ID:
+ return getGEFWrapper(new RoleBindingReorientCommand(req));
+ }
+ return super.getReorientRelationshipCommand(req);
+ }
+
+ /**
+ * Returns command to reorient EReference based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientReferenceRelationshipCommand(ReorientReferenceRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case CommentAnnotatedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new CommentAnnotatedElementReorientCommand(req));
+ case ConstraintConstrainedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new ConstraintConstrainedElementReorientCommand(req));
+ case TimeObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new TimeObservationEventReorientCommand(req));
+ case DurationObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new DurationObservationEventReorientCommand(req));
+ }
+ return super.getReorientReferenceRelationshipCommand(req);
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/NodeCompositeCompartmentItemSemanticEditPolicy.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/NodeCompositeCompartmentItemSemanticEditPolicy.java
new file mode 100644
index 00000000000..a9c825fbb99
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/NodeCompositeCompartmentItemSemanticEditPolicy.java
@@ -0,0 +1,163 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.policies;
+
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ActivityCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ActorCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ArtifactCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ClassCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CollaborationCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CollaborationUseCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ComponentCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DataTypeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DeploymentSpecificationCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DeviceCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationConstraintCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.EnumerationCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ExecutionEnvironmentCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.FunctionBehaviorCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InformationItemCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InteractionCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InteractionConstraintCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InterfaceCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.IntervalConstraintCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.NodeCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.OpaqueBehaviorCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.PortCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.PrimitiveTypeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.PropertyPartCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ProtocolStateMachineCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.SignalCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.StateMachineCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeConstraintCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.UseCaseCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+
+/**
+ * @generated
+ */
+public class NodeCompositeCompartmentItemSemanticEditPolicy extends UMLBaseItemSemanticEditPolicy {
+
+ /**
+ * @generated
+ */
+ public NodeCompositeCompartmentItemSemanticEditPolicy() {
+ super(UMLElementTypes.Node_2072);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCreateCommand(CreateElementRequest req) {
+ if(UMLElementTypes.Port_3069 == req.getElementType()) {
+ return getGEFWrapper(new PortCreateCommand(req));
+ }
+ if(UMLElementTypes.Property_3070 == req.getElementType()) {
+ return getGEFWrapper(new PropertyPartCreateCommandCN(req));
+ }
+ if(UMLElementTypes.CollaborationUse_3071 == req.getElementType()) {
+ return getGEFWrapper(new CollaborationUseCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Activity_3072 == req.getElementType()) {
+ return getGEFWrapper(new ActivityCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Interaction_3073 == req.getElementType()) {
+ return getGEFWrapper(new InteractionCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.ProtocolStateMachine_3074 == req.getElementType()) {
+ return getGEFWrapper(new ProtocolStateMachineCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.StateMachine_3075 == req.getElementType()) {
+ return getGEFWrapper(new StateMachineCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.FunctionBehavior_3076 == req.getElementType()) {
+ return getGEFWrapper(new FunctionBehaviorCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.OpaqueBehavior_3077 == req.getElementType()) {
+ return getGEFWrapper(new OpaqueBehaviorCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Component_3081 == req.getElementType()) {
+ return getGEFWrapper(new ComponentCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Device_3082 == req.getElementType()) {
+ return getGEFWrapper(new DeviceCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.ExecutionEnvironment_3083 == req.getElementType()) {
+ return getGEFWrapper(new ExecutionEnvironmentCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Node_3084 == req.getElementType()) {
+ return getGEFWrapper(new NodeCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Class_3085 == req.getElementType()) {
+ return getGEFWrapper(new ClassCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Collaboration_3086 == req.getElementType()) {
+ return getGEFWrapper(new CollaborationCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Interface_3087 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceCreateCommandCN(req));
+ }
+ if(UMLElementTypes.PrimitiveType_3078 == req.getElementType()) {
+ return getGEFWrapper(new PrimitiveTypeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Enumeration_3079 == req.getElementType()) {
+ return getGEFWrapper(new EnumerationCreateCommandCN(req));
+ }
+ if(UMLElementTypes.DataType_3080 == req.getElementType()) {
+ return getGEFWrapper(new DataTypeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Actor_3091 == req.getElementType()) {
+ return getGEFWrapper(new ActorCreateCommandCN(req));
+ }
+ if(UMLElementTypes.DeploymentSpecification_3092 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentSpecificationCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Artifact_3093 == req.getElementType()) {
+ return getGEFWrapper(new ArtifactCreateCommandCN(req));
+ }
+ if(UMLElementTypes.InformationItem_3094 == req.getElementType()) {
+ return getGEFWrapper(new InformationItemCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Signal_3095 == req.getElementType()) {
+ return getGEFWrapper(new SignalCreateCommandCN(req));
+ }
+ if(UMLElementTypes.UseCase_3096 == req.getElementType()) {
+ return getGEFWrapper(new UseCaseCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Comment_3097 == req.getElementType()) {
+ return getGEFWrapper(new CommentCreateCommandCN(req));
+ }
+ if(UMLElementTypes.DurationConstraint_3116 == req.getElementType()) {
+ return getGEFWrapper(new DurationConstraintCreateCommandCN(req));
+ }
+ if(UMLElementTypes.TimeConstraint_3117 == req.getElementType()) {
+ return getGEFWrapper(new TimeConstraintCreateCommandCN(req));
+ }
+ if(UMLElementTypes.IntervalConstraint_3118 == req.getElementType()) {
+ return getGEFWrapper(new IntervalConstraintCreateCommandCN(req));
+ }
+ if(UMLElementTypes.InteractionConstraint_3119 == req.getElementType()) {
+ return getGEFWrapper(new InteractionConstraintCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Constraint_3120 == req.getElementType()) {
+ return getGEFWrapper(new ConstraintCreateCommandCN(req));
+ }
+ return super.getCreateCommand(req);
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/NodeCompositeCompartmentItemSemanticEditPolicyCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/NodeCompositeCompartmentItemSemanticEditPolicyCN.java
new file mode 100644
index 00000000000..e452b8c4c36
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/NodeCompositeCompartmentItemSemanticEditPolicyCN.java
@@ -0,0 +1,163 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.policies;
+
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ActivityCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ActorCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ArtifactCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ClassCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CollaborationCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CollaborationUseCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ComponentCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DataTypeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DeploymentSpecificationCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DeviceCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationConstraintCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.EnumerationCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ExecutionEnvironmentCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.FunctionBehaviorCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InformationItemCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InteractionCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InteractionConstraintCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InterfaceCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.IntervalConstraintCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.NodeCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.OpaqueBehaviorCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.PortCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.PrimitiveTypeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.PropertyPartCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ProtocolStateMachineCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.SignalCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.StateMachineCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeConstraintCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.UseCaseCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+
+/**
+ * @generated
+ */
+public class NodeCompositeCompartmentItemSemanticEditPolicyCN extends UMLBaseItemSemanticEditPolicy {
+
+ /**
+ * @generated
+ */
+ public NodeCompositeCompartmentItemSemanticEditPolicyCN() {
+ super(UMLElementTypes.Node_3084);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCreateCommand(CreateElementRequest req) {
+ if(UMLElementTypes.Port_3069 == req.getElementType()) {
+ return getGEFWrapper(new PortCreateCommand(req));
+ }
+ if(UMLElementTypes.Property_3070 == req.getElementType()) {
+ return getGEFWrapper(new PropertyPartCreateCommandCN(req));
+ }
+ if(UMLElementTypes.CollaborationUse_3071 == req.getElementType()) {
+ return getGEFWrapper(new CollaborationUseCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Activity_3072 == req.getElementType()) {
+ return getGEFWrapper(new ActivityCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Interaction_3073 == req.getElementType()) {
+ return getGEFWrapper(new InteractionCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.ProtocolStateMachine_3074 == req.getElementType()) {
+ return getGEFWrapper(new ProtocolStateMachineCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.StateMachine_3075 == req.getElementType()) {
+ return getGEFWrapper(new StateMachineCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.FunctionBehavior_3076 == req.getElementType()) {
+ return getGEFWrapper(new FunctionBehaviorCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.OpaqueBehavior_3077 == req.getElementType()) {
+ return getGEFWrapper(new OpaqueBehaviorCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Component_3081 == req.getElementType()) {
+ return getGEFWrapper(new ComponentCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Device_3082 == req.getElementType()) {
+ return getGEFWrapper(new DeviceCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.ExecutionEnvironment_3083 == req.getElementType()) {
+ return getGEFWrapper(new ExecutionEnvironmentCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Node_3084 == req.getElementType()) {
+ return getGEFWrapper(new NodeCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Class_3085 == req.getElementType()) {
+ return getGEFWrapper(new ClassCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Collaboration_3086 == req.getElementType()) {
+ return getGEFWrapper(new CollaborationCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Interface_3087 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceCreateCommandCN(req));
+ }
+ if(UMLElementTypes.PrimitiveType_3078 == req.getElementType()) {
+ return getGEFWrapper(new PrimitiveTypeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Enumeration_3079 == req.getElementType()) {
+ return getGEFWrapper(new EnumerationCreateCommandCN(req));
+ }
+ if(UMLElementTypes.DataType_3080 == req.getElementType()) {
+ return getGEFWrapper(new DataTypeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Actor_3091 == req.getElementType()) {
+ return getGEFWrapper(new ActorCreateCommandCN(req));
+ }
+ if(UMLElementTypes.DeploymentSpecification_3092 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentSpecificationCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Artifact_3093 == req.getElementType()) {
+ return getGEFWrapper(new ArtifactCreateCommandCN(req));
+ }
+ if(UMLElementTypes.InformationItem_3094 == req.getElementType()) {
+ return getGEFWrapper(new InformationItemCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Signal_3095 == req.getElementType()) {
+ return getGEFWrapper(new SignalCreateCommandCN(req));
+ }
+ if(UMLElementTypes.UseCase_3096 == req.getElementType()) {
+ return getGEFWrapper(new UseCaseCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Comment_3097 == req.getElementType()) {
+ return getGEFWrapper(new CommentCreateCommandCN(req));
+ }
+ if(UMLElementTypes.DurationConstraint_3116 == req.getElementType()) {
+ return getGEFWrapper(new DurationConstraintCreateCommandCN(req));
+ }
+ if(UMLElementTypes.TimeConstraint_3117 == req.getElementType()) {
+ return getGEFWrapper(new TimeConstraintCreateCommandCN(req));
+ }
+ if(UMLElementTypes.IntervalConstraint_3118 == req.getElementType()) {
+ return getGEFWrapper(new IntervalConstraintCreateCommandCN(req));
+ }
+ if(UMLElementTypes.InteractionConstraint_3119 == req.getElementType()) {
+ return getGEFWrapper(new InteractionConstraintCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Constraint_3120 == req.getElementType()) {
+ return getGEFWrapper(new ConstraintCreateCommandCN(req));
+ }
+ return super.getCreateCommand(req);
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/NodeCompositeItemSemanticEditPolicy.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/NodeCompositeItemSemanticEditPolicy.java
new file mode 100644
index 00000000000..b677aa72928
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/NodeCompositeItemSemanticEditPolicy.java
@@ -0,0 +1,291 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.policies;
+
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.commands.UnexecutableCommand;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.diagram.ui.commands.ICommandProxy;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientReferenceRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientRelationshipRequest;
+import org.eclipse.papyrus.diagram.composite.edit.commands.AbstractionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ComponentRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DependencyCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DeploymentCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.GeneralizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InformationFlowCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InterfaceRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ManifestationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.PortCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RepresentationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RepresentationReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.SubstitutionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.UsageCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.parts.AbstractionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CommentAnnotatedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ComponentRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ConstraintConstrainedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DependencyEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DeploymentEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DurationObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.GeneralizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InformationFlowEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InterfaceRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ManifestationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RepresentationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RoleBindingEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.SubstitutionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.TimeObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.UsageEditPart;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.service.edit.service.ElementEditServiceUtils;
+import org.eclipse.papyrus.service.edit.service.IElementEditService;
+
+/**
+ * @generated
+ */
+public class NodeCompositeItemSemanticEditPolicy extends UMLBaseItemSemanticEditPolicy {
+
+ /**
+ * @generated
+ */
+ public NodeCompositeItemSemanticEditPolicy() {
+ super(UMLElementTypes.Node_2072);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCreateCommand(CreateElementRequest req) {
+ if(UMLElementTypes.Port_3069 == req.getElementType()) {
+ return getGEFWrapper(new PortCreateCommand(req));
+ }
+ return super.getCreateCommand(req);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getDestroyElementCommand(DestroyElementRequest req) {
+ EObject selectedEObject = req.getElementToDestroy();
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(selectedEObject);
+ if(provider != null) {
+ // Retrieve delete command from the Element Edit service
+ ICommand deleteCommand = provider.getEditCommand(req);
+
+ if(deleteCommand != null) {
+ return new ICommandProxy(deleteCommand);
+ }
+ }
+ return UnexecutableCommand.INSTANCE;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCreateRelationshipCommand(CreateRelationshipRequest req) {
+ Command command = req.getTarget() == null ? getStartCreateRelationshipCommand(req) : getCompleteCreateRelationshipCommand(req);
+ return command != null ? command : super.getCreateRelationshipCommand(req);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getStartCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Generalization_4015 == req.getElementType()) {
+ return getGEFWrapper(new GeneralizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.InformationItemRepresented_4020 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCompleteCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return getGEFWrapper(new CommentAnnotatedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return getGEFWrapper(new ConstraintConstrainedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Generalization_4015 == req.getElementType()) {
+ return getGEFWrapper(new GeneralizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return getGEFWrapper(new TimeObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return getGEFWrapper(new DurationObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InformationItemRepresented_4020 == req.getElementType()) {
+ return getGEFWrapper(new RepresentationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * Returns command to reorient EClass based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientRelationshipCommand(ReorientRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case ComponentRealizationEditPart.VISUAL_ID:
+ case InterfaceRealizationEditPart.VISUAL_ID:
+ case SubstitutionEditPart.VISUAL_ID:
+ case RealizationEditPart.VISUAL_ID:
+ case ManifestationEditPart.VISUAL_ID:
+ case AbstractionEditPart.VISUAL_ID:
+ case UsageEditPart.VISUAL_ID:
+ case DeploymentEditPart.VISUAL_ID:
+ case DependencyEditPart.VISUAL_ID:
+ case GeneralizationEditPart.VISUAL_ID:
+ case InformationFlowEditPart.VISUAL_ID:
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(req.getRelationship());
+ if(provider == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ // Retrieve re-orient command from the Element Edit service
+ ICommand reorientCommand = provider.getEditCommand(req);
+ if(reorientCommand == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ return getGEFWrapper(reorientCommand.reduce());
+ case RoleBindingEditPart.VISUAL_ID:
+ return getGEFWrapper(new RoleBindingReorientCommand(req));
+ }
+ return super.getReorientRelationshipCommand(req);
+ }
+
+ /**
+ * Returns command to reorient EReference based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientReferenceRelationshipCommand(ReorientReferenceRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case CommentAnnotatedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new CommentAnnotatedElementReorientCommand(req));
+ case ConstraintConstrainedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new ConstraintConstrainedElementReorientCommand(req));
+ case TimeObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new TimeObservationEventReorientCommand(req));
+ case DurationObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new DurationObservationEventReorientCommand(req));
+ case RepresentationEditPart.VISUAL_ID:
+ return getGEFWrapper(new RepresentationReorientCommand(req));
+ }
+ return super.getReorientReferenceRelationshipCommand(req);
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/NodeCompositeItemSemanticEditPolicycN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/NodeCompositeItemSemanticEditPolicycN.java
new file mode 100644
index 00000000000..a79d253d3c4
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/NodeCompositeItemSemanticEditPolicycN.java
@@ -0,0 +1,291 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.policies;
+
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.commands.UnexecutableCommand;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.diagram.ui.commands.ICommandProxy;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientReferenceRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientRelationshipRequest;
+import org.eclipse.papyrus.diagram.composite.edit.commands.AbstractionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ComponentRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DependencyCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DeploymentCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.GeneralizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InformationFlowCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InterfaceRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ManifestationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.PortCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RepresentationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RepresentationReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.SubstitutionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.UsageCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.parts.AbstractionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CommentAnnotatedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ComponentRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ConstraintConstrainedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DependencyEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DeploymentEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DurationObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.GeneralizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InformationFlowEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InterfaceRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ManifestationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RepresentationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RoleBindingEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.SubstitutionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.TimeObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.UsageEditPart;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.service.edit.service.ElementEditServiceUtils;
+import org.eclipse.papyrus.service.edit.service.IElementEditService;
+
+/**
+ * @generated
+ */
+public class NodeCompositeItemSemanticEditPolicycN extends UMLBaseItemSemanticEditPolicy {
+
+ /**
+ * @generated
+ */
+ public NodeCompositeItemSemanticEditPolicycN() {
+ super(UMLElementTypes.Node_3084);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCreateCommand(CreateElementRequest req) {
+ if(UMLElementTypes.Port_3069 == req.getElementType()) {
+ return getGEFWrapper(new PortCreateCommand(req));
+ }
+ return super.getCreateCommand(req);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getDestroyElementCommand(DestroyElementRequest req) {
+ EObject selectedEObject = req.getElementToDestroy();
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(selectedEObject);
+ if(provider != null) {
+ // Retrieve delete command from the Element Edit service
+ ICommand deleteCommand = provider.getEditCommand(req);
+
+ if(deleteCommand != null) {
+ return new ICommandProxy(deleteCommand);
+ }
+ }
+ return UnexecutableCommand.INSTANCE;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCreateRelationshipCommand(CreateRelationshipRequest req) {
+ Command command = req.getTarget() == null ? getStartCreateRelationshipCommand(req) : getCompleteCreateRelationshipCommand(req);
+ return command != null ? command : super.getCreateRelationshipCommand(req);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getStartCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Generalization_4015 == req.getElementType()) {
+ return getGEFWrapper(new GeneralizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.InformationItemRepresented_4020 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCompleteCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return getGEFWrapper(new CommentAnnotatedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return getGEFWrapper(new ConstraintConstrainedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Generalization_4015 == req.getElementType()) {
+ return getGEFWrapper(new GeneralizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return getGEFWrapper(new TimeObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return getGEFWrapper(new DurationObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InformationItemRepresented_4020 == req.getElementType()) {
+ return getGEFWrapper(new RepresentationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * Returns command to reorient EClass based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientRelationshipCommand(ReorientRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case ComponentRealizationEditPart.VISUAL_ID:
+ case InterfaceRealizationEditPart.VISUAL_ID:
+ case SubstitutionEditPart.VISUAL_ID:
+ case RealizationEditPart.VISUAL_ID:
+ case ManifestationEditPart.VISUAL_ID:
+ case AbstractionEditPart.VISUAL_ID:
+ case UsageEditPart.VISUAL_ID:
+ case DeploymentEditPart.VISUAL_ID:
+ case DependencyEditPart.VISUAL_ID:
+ case GeneralizationEditPart.VISUAL_ID:
+ case InformationFlowEditPart.VISUAL_ID:
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(req.getRelationship());
+ if(provider == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ // Retrieve re-orient command from the Element Edit service
+ ICommand reorientCommand = provider.getEditCommand(req);
+ if(reorientCommand == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ return getGEFWrapper(reorientCommand.reduce());
+ case RoleBindingEditPart.VISUAL_ID:
+ return getGEFWrapper(new RoleBindingReorientCommand(req));
+ }
+ return super.getReorientRelationshipCommand(req);
+ }
+
+ /**
+ * Returns command to reorient EReference based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientReferenceRelationshipCommand(ReorientReferenceRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case CommentAnnotatedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new CommentAnnotatedElementReorientCommand(req));
+ case ConstraintConstrainedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new ConstraintConstrainedElementReorientCommand(req));
+ case TimeObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new TimeObservationEventReorientCommand(req));
+ case DurationObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new DurationObservationEventReorientCommand(req));
+ case RepresentationEditPart.VISUAL_ID:
+ return getGEFWrapper(new RepresentationReorientCommand(req));
+ }
+ return super.getReorientReferenceRelationshipCommand(req);
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/OpaqueBehaviorCompositeCompartmentItemSemanticEditPolicy.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/OpaqueBehaviorCompositeCompartmentItemSemanticEditPolicy.java
new file mode 100644
index 00000000000..60c5c8c9a65
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/OpaqueBehaviorCompositeCompartmentItemSemanticEditPolicy.java
@@ -0,0 +1,167 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.policies;
+
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ActivityCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ActorCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ArtifactCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ClassCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CollaborationCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CollaborationUseCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ComponentCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DataTypeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DeploymentSpecificationCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DeviceCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationConstraintCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.EnumerationCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ExecutionEnvironmentCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.FunctionBehaviorCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InformationItemCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InteractionCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InteractionConstraintCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InterfaceCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.IntervalConstraintCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.NodeCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.OpaqueBehaviorCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ParameterCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.PortCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.PrimitiveTypeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.PropertyPartCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ProtocolStateMachineCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.SignalCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.StateMachineCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeConstraintCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.UseCaseCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+
+/**
+ * @generated
+ */
+public class OpaqueBehaviorCompositeCompartmentItemSemanticEditPolicy extends UMLBaseItemSemanticEditPolicy {
+
+ /**
+ * @generated
+ */
+ public OpaqueBehaviorCompositeCompartmentItemSemanticEditPolicy() {
+ super(UMLElementTypes.OpaqueBehavior_2065);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCreateCommand(CreateElementRequest req) {
+ if(UMLElementTypes.Port_3069 == req.getElementType()) {
+ return getGEFWrapper(new PortCreateCommand(req));
+ }
+ if(UMLElementTypes.Parameter_3088 == req.getElementType()) {
+ return getGEFWrapper(new ParameterCreateCommand(req));
+ }
+ if(UMLElementTypes.Property_3070 == req.getElementType()) {
+ return getGEFWrapper(new PropertyPartCreateCommandCN(req));
+ }
+ if(UMLElementTypes.CollaborationUse_3071 == req.getElementType()) {
+ return getGEFWrapper(new CollaborationUseCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Activity_3072 == req.getElementType()) {
+ return getGEFWrapper(new ActivityCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Interaction_3073 == req.getElementType()) {
+ return getGEFWrapper(new InteractionCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.ProtocolStateMachine_3074 == req.getElementType()) {
+ return getGEFWrapper(new ProtocolStateMachineCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.StateMachine_3075 == req.getElementType()) {
+ return getGEFWrapper(new StateMachineCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.FunctionBehavior_3076 == req.getElementType()) {
+ return getGEFWrapper(new FunctionBehaviorCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.OpaqueBehavior_3077 == req.getElementType()) {
+ return getGEFWrapper(new OpaqueBehaviorCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Component_3081 == req.getElementType()) {
+ return getGEFWrapper(new ComponentCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Device_3082 == req.getElementType()) {
+ return getGEFWrapper(new DeviceCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.ExecutionEnvironment_3083 == req.getElementType()) {
+ return getGEFWrapper(new ExecutionEnvironmentCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Node_3084 == req.getElementType()) {
+ return getGEFWrapper(new NodeCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Class_3085 == req.getElementType()) {
+ return getGEFWrapper(new ClassCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Collaboration_3086 == req.getElementType()) {
+ return getGEFWrapper(new CollaborationCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Interface_3087 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceCreateCommandCN(req));
+ }
+ if(UMLElementTypes.PrimitiveType_3078 == req.getElementType()) {
+ return getGEFWrapper(new PrimitiveTypeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Enumeration_3079 == req.getElementType()) {
+ return getGEFWrapper(new EnumerationCreateCommandCN(req));
+ }
+ if(UMLElementTypes.DataType_3080 == req.getElementType()) {
+ return getGEFWrapper(new DataTypeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Actor_3091 == req.getElementType()) {
+ return getGEFWrapper(new ActorCreateCommandCN(req));
+ }
+ if(UMLElementTypes.DeploymentSpecification_3092 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentSpecificationCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Artifact_3093 == req.getElementType()) {
+ return getGEFWrapper(new ArtifactCreateCommandCN(req));
+ }
+ if(UMLElementTypes.InformationItem_3094 == req.getElementType()) {
+ return getGEFWrapper(new InformationItemCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Signal_3095 == req.getElementType()) {
+ return getGEFWrapper(new SignalCreateCommandCN(req));
+ }
+ if(UMLElementTypes.UseCase_3096 == req.getElementType()) {
+ return getGEFWrapper(new UseCaseCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Comment_3097 == req.getElementType()) {
+ return getGEFWrapper(new CommentCreateCommandCN(req));
+ }
+ if(UMLElementTypes.DurationConstraint_3116 == req.getElementType()) {
+ return getGEFWrapper(new DurationConstraintCreateCommandCN(req));
+ }
+ if(UMLElementTypes.TimeConstraint_3117 == req.getElementType()) {
+ return getGEFWrapper(new TimeConstraintCreateCommandCN(req));
+ }
+ if(UMLElementTypes.IntervalConstraint_3118 == req.getElementType()) {
+ return getGEFWrapper(new IntervalConstraintCreateCommandCN(req));
+ }
+ if(UMLElementTypes.InteractionConstraint_3119 == req.getElementType()) {
+ return getGEFWrapper(new InteractionConstraintCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Constraint_3120 == req.getElementType()) {
+ return getGEFWrapper(new ConstraintCreateCommandCN(req));
+ }
+ return super.getCreateCommand(req);
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/OpaqueBehaviorCompositeCompartmentItemSemanticEditPolicyCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/OpaqueBehaviorCompositeCompartmentItemSemanticEditPolicyCN.java
new file mode 100644
index 00000000000..2606cb98965
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/OpaqueBehaviorCompositeCompartmentItemSemanticEditPolicyCN.java
@@ -0,0 +1,167 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.policies;
+
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ActivityCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ActorCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ArtifactCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ClassCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CollaborationCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CollaborationUseCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ComponentCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DataTypeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DeploymentSpecificationCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DeviceCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationConstraintCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.EnumerationCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ExecutionEnvironmentCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.FunctionBehaviorCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InformationItemCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InteractionCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InteractionConstraintCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InterfaceCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.IntervalConstraintCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.NodeCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.OpaqueBehaviorCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ParameterCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.PortCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.PrimitiveTypeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.PropertyPartCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ProtocolStateMachineCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.SignalCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.StateMachineCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeConstraintCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.UseCaseCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+
+/**
+ * @generated
+ */
+public class OpaqueBehaviorCompositeCompartmentItemSemanticEditPolicyCN extends UMLBaseItemSemanticEditPolicy {
+
+ /**
+ * @generated
+ */
+ public OpaqueBehaviorCompositeCompartmentItemSemanticEditPolicyCN() {
+ super(UMLElementTypes.OpaqueBehavior_3077);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCreateCommand(CreateElementRequest req) {
+ if(UMLElementTypes.Port_3069 == req.getElementType()) {
+ return getGEFWrapper(new PortCreateCommand(req));
+ }
+ if(UMLElementTypes.Parameter_3088 == req.getElementType()) {
+ return getGEFWrapper(new ParameterCreateCommand(req));
+ }
+ if(UMLElementTypes.Property_3070 == req.getElementType()) {
+ return getGEFWrapper(new PropertyPartCreateCommandCN(req));
+ }
+ if(UMLElementTypes.CollaborationUse_3071 == req.getElementType()) {
+ return getGEFWrapper(new CollaborationUseCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Activity_3072 == req.getElementType()) {
+ return getGEFWrapper(new ActivityCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Interaction_3073 == req.getElementType()) {
+ return getGEFWrapper(new InteractionCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.ProtocolStateMachine_3074 == req.getElementType()) {
+ return getGEFWrapper(new ProtocolStateMachineCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.StateMachine_3075 == req.getElementType()) {
+ return getGEFWrapper(new StateMachineCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.FunctionBehavior_3076 == req.getElementType()) {
+ return getGEFWrapper(new FunctionBehaviorCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.OpaqueBehavior_3077 == req.getElementType()) {
+ return getGEFWrapper(new OpaqueBehaviorCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Component_3081 == req.getElementType()) {
+ return getGEFWrapper(new ComponentCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Device_3082 == req.getElementType()) {
+ return getGEFWrapper(new DeviceCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.ExecutionEnvironment_3083 == req.getElementType()) {
+ return getGEFWrapper(new ExecutionEnvironmentCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Node_3084 == req.getElementType()) {
+ return getGEFWrapper(new NodeCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Class_3085 == req.getElementType()) {
+ return getGEFWrapper(new ClassCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Collaboration_3086 == req.getElementType()) {
+ return getGEFWrapper(new CollaborationCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Interface_3087 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceCreateCommandCN(req));
+ }
+ if(UMLElementTypes.PrimitiveType_3078 == req.getElementType()) {
+ return getGEFWrapper(new PrimitiveTypeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Enumeration_3079 == req.getElementType()) {
+ return getGEFWrapper(new EnumerationCreateCommandCN(req));
+ }
+ if(UMLElementTypes.DataType_3080 == req.getElementType()) {
+ return getGEFWrapper(new DataTypeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Actor_3091 == req.getElementType()) {
+ return getGEFWrapper(new ActorCreateCommandCN(req));
+ }
+ if(UMLElementTypes.DeploymentSpecification_3092 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentSpecificationCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Artifact_3093 == req.getElementType()) {
+ return getGEFWrapper(new ArtifactCreateCommandCN(req));
+ }
+ if(UMLElementTypes.InformationItem_3094 == req.getElementType()) {
+ return getGEFWrapper(new InformationItemCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Signal_3095 == req.getElementType()) {
+ return getGEFWrapper(new SignalCreateCommandCN(req));
+ }
+ if(UMLElementTypes.UseCase_3096 == req.getElementType()) {
+ return getGEFWrapper(new UseCaseCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Comment_3097 == req.getElementType()) {
+ return getGEFWrapper(new CommentCreateCommandCN(req));
+ }
+ if(UMLElementTypes.DurationConstraint_3116 == req.getElementType()) {
+ return getGEFWrapper(new DurationConstraintCreateCommandCN(req));
+ }
+ if(UMLElementTypes.TimeConstraint_3117 == req.getElementType()) {
+ return getGEFWrapper(new TimeConstraintCreateCommandCN(req));
+ }
+ if(UMLElementTypes.IntervalConstraint_3118 == req.getElementType()) {
+ return getGEFWrapper(new IntervalConstraintCreateCommandCN(req));
+ }
+ if(UMLElementTypes.InteractionConstraint_3119 == req.getElementType()) {
+ return getGEFWrapper(new InteractionConstraintCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Constraint_3120 == req.getElementType()) {
+ return getGEFWrapper(new ConstraintCreateCommandCN(req));
+ }
+ return super.getCreateCommand(req);
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/OpaqueBehaviorCompositeItemSemanticEditPolicy.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/OpaqueBehaviorCompositeItemSemanticEditPolicy.java
new file mode 100644
index 00000000000..1ba95da1945
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/OpaqueBehaviorCompositeItemSemanticEditPolicy.java
@@ -0,0 +1,295 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.policies;
+
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.commands.UnexecutableCommand;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.diagram.ui.commands.ICommandProxy;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientReferenceRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientRelationshipRequest;
+import org.eclipse.papyrus.diagram.composite.edit.commands.AbstractionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ComponentRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DependencyCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DeploymentCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.GeneralizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InformationFlowCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InterfaceRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ManifestationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ParameterCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.PortCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RepresentationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RepresentationReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.SubstitutionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.UsageCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.parts.AbstractionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CommentAnnotatedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ComponentRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ConstraintConstrainedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DependencyEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DeploymentEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DurationObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.GeneralizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InformationFlowEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InterfaceRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ManifestationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RepresentationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RoleBindingEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.SubstitutionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.TimeObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.UsageEditPart;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.service.edit.service.ElementEditServiceUtils;
+import org.eclipse.papyrus.service.edit.service.IElementEditService;
+
+/**
+ * @generated
+ */
+public class OpaqueBehaviorCompositeItemSemanticEditPolicy extends UMLBaseItemSemanticEditPolicy {
+
+ /**
+ * @generated
+ */
+ public OpaqueBehaviorCompositeItemSemanticEditPolicy() {
+ super(UMLElementTypes.OpaqueBehavior_2065);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCreateCommand(CreateElementRequest req) {
+ if(UMLElementTypes.Port_3069 == req.getElementType()) {
+ return getGEFWrapper(new PortCreateCommand(req));
+ }
+ if(UMLElementTypes.Parameter_3088 == req.getElementType()) {
+ return getGEFWrapper(new ParameterCreateCommand(req));
+ }
+ return super.getCreateCommand(req);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getDestroyElementCommand(DestroyElementRequest req) {
+ EObject selectedEObject = req.getElementToDestroy();
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(selectedEObject);
+ if(provider != null) {
+ // Retrieve delete command from the Element Edit service
+ ICommand deleteCommand = provider.getEditCommand(req);
+
+ if(deleteCommand != null) {
+ return new ICommandProxy(deleteCommand);
+ }
+ }
+ return UnexecutableCommand.INSTANCE;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCreateRelationshipCommand(CreateRelationshipRequest req) {
+ Command command = req.getTarget() == null ? getStartCreateRelationshipCommand(req) : getCompleteCreateRelationshipCommand(req);
+ return command != null ? command : super.getCreateRelationshipCommand(req);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getStartCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Generalization_4015 == req.getElementType()) {
+ return getGEFWrapper(new GeneralizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.InformationItemRepresented_4020 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCompleteCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return getGEFWrapper(new CommentAnnotatedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return getGEFWrapper(new ConstraintConstrainedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Generalization_4015 == req.getElementType()) {
+ return getGEFWrapper(new GeneralizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return getGEFWrapper(new TimeObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return getGEFWrapper(new DurationObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InformationItemRepresented_4020 == req.getElementType()) {
+ return getGEFWrapper(new RepresentationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * Returns command to reorient EClass based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientRelationshipCommand(ReorientRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case ComponentRealizationEditPart.VISUAL_ID:
+ case InterfaceRealizationEditPart.VISUAL_ID:
+ case SubstitutionEditPart.VISUAL_ID:
+ case RealizationEditPart.VISUAL_ID:
+ case ManifestationEditPart.VISUAL_ID:
+ case AbstractionEditPart.VISUAL_ID:
+ case UsageEditPart.VISUAL_ID:
+ case DeploymentEditPart.VISUAL_ID:
+ case DependencyEditPart.VISUAL_ID:
+ case GeneralizationEditPart.VISUAL_ID:
+ case InformationFlowEditPart.VISUAL_ID:
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(req.getRelationship());
+ if(provider == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ // Retrieve re-orient command from the Element Edit service
+ ICommand reorientCommand = provider.getEditCommand(req);
+ if(reorientCommand == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ return getGEFWrapper(reorientCommand.reduce());
+ case RoleBindingEditPart.VISUAL_ID:
+ return getGEFWrapper(new RoleBindingReorientCommand(req));
+ }
+ return super.getReorientRelationshipCommand(req);
+ }
+
+ /**
+ * Returns command to reorient EReference based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientReferenceRelationshipCommand(ReorientReferenceRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case CommentAnnotatedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new CommentAnnotatedElementReorientCommand(req));
+ case ConstraintConstrainedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new ConstraintConstrainedElementReorientCommand(req));
+ case TimeObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new TimeObservationEventReorientCommand(req));
+ case DurationObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new DurationObservationEventReorientCommand(req));
+ case RepresentationEditPart.VISUAL_ID:
+ return getGEFWrapper(new RepresentationReorientCommand(req));
+ }
+ return super.getReorientReferenceRelationshipCommand(req);
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/OpaqueBehaviorCompositeItemSemanticEditPolicyCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/OpaqueBehaviorCompositeItemSemanticEditPolicyCN.java
new file mode 100644
index 00000000000..1f04e456e4f
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/OpaqueBehaviorCompositeItemSemanticEditPolicyCN.java
@@ -0,0 +1,295 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.policies;
+
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.commands.UnexecutableCommand;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.diagram.ui.commands.ICommandProxy;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientReferenceRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientRelationshipRequest;
+import org.eclipse.papyrus.diagram.composite.edit.commands.AbstractionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ComponentRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DependencyCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DeploymentCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.GeneralizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InformationFlowCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InterfaceRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ManifestationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ParameterCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.PortCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RepresentationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RepresentationReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.SubstitutionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.UsageCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.parts.AbstractionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CommentAnnotatedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ComponentRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ConstraintConstrainedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DependencyEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DeploymentEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DurationObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.GeneralizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InformationFlowEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InterfaceRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ManifestationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RepresentationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RoleBindingEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.SubstitutionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.TimeObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.UsageEditPart;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.service.edit.service.ElementEditServiceUtils;
+import org.eclipse.papyrus.service.edit.service.IElementEditService;
+
+/**
+ * @generated
+ */
+public class OpaqueBehaviorCompositeItemSemanticEditPolicyCN extends UMLBaseItemSemanticEditPolicy {
+
+ /**
+ * @generated
+ */
+ public OpaqueBehaviorCompositeItemSemanticEditPolicyCN() {
+ super(UMLElementTypes.OpaqueBehavior_3077);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCreateCommand(CreateElementRequest req) {
+ if(UMLElementTypes.Port_3069 == req.getElementType()) {
+ return getGEFWrapper(new PortCreateCommand(req));
+ }
+ if(UMLElementTypes.Parameter_3088 == req.getElementType()) {
+ return getGEFWrapper(new ParameterCreateCommand(req));
+ }
+ return super.getCreateCommand(req);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getDestroyElementCommand(DestroyElementRequest req) {
+ EObject selectedEObject = req.getElementToDestroy();
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(selectedEObject);
+ if(provider != null) {
+ // Retrieve delete command from the Element Edit service
+ ICommand deleteCommand = provider.getEditCommand(req);
+
+ if(deleteCommand != null) {
+ return new ICommandProxy(deleteCommand);
+ }
+ }
+ return UnexecutableCommand.INSTANCE;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCreateRelationshipCommand(CreateRelationshipRequest req) {
+ Command command = req.getTarget() == null ? getStartCreateRelationshipCommand(req) : getCompleteCreateRelationshipCommand(req);
+ return command != null ? command : super.getCreateRelationshipCommand(req);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getStartCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Generalization_4015 == req.getElementType()) {
+ return getGEFWrapper(new GeneralizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.InformationItemRepresented_4020 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCompleteCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return getGEFWrapper(new CommentAnnotatedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return getGEFWrapper(new ConstraintConstrainedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Generalization_4015 == req.getElementType()) {
+ return getGEFWrapper(new GeneralizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return getGEFWrapper(new TimeObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return getGEFWrapper(new DurationObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InformationItemRepresented_4020 == req.getElementType()) {
+ return getGEFWrapper(new RepresentationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * Returns command to reorient EClass based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientRelationshipCommand(ReorientRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case ComponentRealizationEditPart.VISUAL_ID:
+ case InterfaceRealizationEditPart.VISUAL_ID:
+ case SubstitutionEditPart.VISUAL_ID:
+ case RealizationEditPart.VISUAL_ID:
+ case ManifestationEditPart.VISUAL_ID:
+ case AbstractionEditPart.VISUAL_ID:
+ case UsageEditPart.VISUAL_ID:
+ case DeploymentEditPart.VISUAL_ID:
+ case DependencyEditPart.VISUAL_ID:
+ case GeneralizationEditPart.VISUAL_ID:
+ case InformationFlowEditPart.VISUAL_ID:
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(req.getRelationship());
+ if(provider == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ // Retrieve re-orient command from the Element Edit service
+ ICommand reorientCommand = provider.getEditCommand(req);
+ if(reorientCommand == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ return getGEFWrapper(reorientCommand.reduce());
+ case RoleBindingEditPart.VISUAL_ID:
+ return getGEFWrapper(new RoleBindingReorientCommand(req));
+ }
+ return super.getReorientRelationshipCommand(req);
+ }
+
+ /**
+ * Returns command to reorient EReference based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientReferenceRelationshipCommand(ReorientReferenceRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case CommentAnnotatedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new CommentAnnotatedElementReorientCommand(req));
+ case ConstraintConstrainedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new ConstraintConstrainedElementReorientCommand(req));
+ case TimeObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new TimeObservationEventReorientCommand(req));
+ case DurationObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new DurationObservationEventReorientCommand(req));
+ case RepresentationEditPart.VISUAL_ID:
+ return getGEFWrapper(new RepresentationReorientCommand(req));
+ }
+ return super.getReorientReferenceRelationshipCommand(req);
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/OpaqueBehaviorItemSemanticEditPolicyCLN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/OpaqueBehaviorItemSemanticEditPolicyCLN.java
new file mode 100644
index 00000000000..d1e196c4fdb
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/OpaqueBehaviorItemSemanticEditPolicyCLN.java
@@ -0,0 +1,64 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.policies;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import org.eclipse.emf.ecore.EAnnotation;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.edit.command.DeleteCommand;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gmf.runtime.emf.commands.core.command.CompositeTransactionalCommand;
+import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.commands.wrappers.EMFtoGMFCommandWrapper;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+
+/**
+ * @generated
+ */
+public class OpaqueBehaviorItemSemanticEditPolicyCLN extends UMLBaseItemSemanticEditPolicy {
+
+ /**
+ * @generated
+ */
+ public OpaqueBehaviorItemSemanticEditPolicyCLN() {
+ super(UMLElementTypes.OpaqueBehavior_3108);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getDestroyElementCommand(DestroyElementRequest req) {
+ View view = (View)getHost().getModel();
+ CompositeTransactionalCommand cmd = new CompositeTransactionalCommand(getEditingDomain(), null);
+ cmd.setTransactionNestingEnabled(true);
+
+ EAnnotation annotation = view.getEAnnotation("Shortcut"); //$NON-NLS-1$
+ if(annotation == null) {
+ // there are indirectly referenced children, need extra commands: false
+ addDestroyShortcutsCommand(cmd, view);
+ // delete host element
+ List<EObject> todestroy = new ArrayList<EObject>();
+ todestroy.add(req.getElementToDestroy());
+ //cmd.add(new org.eclipse.gmf.runtime.emf.type.core.commands.DestroyElementCommand(req));
+ cmd.add(new EMFtoGMFCommandWrapper(new DeleteCommand(getEditingDomain(), todestroy)));
+ } else {
+ cmd.add(new org.eclipse.gmf.runtime.diagram.core.commands.DeleteCommand(getEditingDomain(), view));
+ }
+ return getGEFWrapper(cmd.reduce());
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/OpaqueExpressionItemSemanticEditPolicy.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/OpaqueExpressionItemSemanticEditPolicy.java
new file mode 100644
index 00000000000..cc7e74f4c00
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/OpaqueExpressionItemSemanticEditPolicy.java
@@ -0,0 +1,259 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.policies;
+
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.commands.UnexecutableCommand;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.diagram.ui.commands.ICommandProxy;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientReferenceRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientRelationshipRequest;
+import org.eclipse.papyrus.diagram.composite.edit.commands.AbstractionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ComponentRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DependencyCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DeploymentCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InformationFlowCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InterfaceRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ManifestationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.SubstitutionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.UsageCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.parts.AbstractionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CommentAnnotatedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ComponentRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ConstraintConstrainedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DependencyEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DeploymentEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DurationObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InformationFlowEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InterfaceRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ManifestationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RoleBindingEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.SubstitutionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.TimeObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.UsageEditPart;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.service.edit.service.ElementEditServiceUtils;
+import org.eclipse.papyrus.service.edit.service.IElementEditService;
+
+/**
+ * @generated
+ */
+public class OpaqueExpressionItemSemanticEditPolicy extends UMLBaseItemSemanticEditPolicy {
+
+ /**
+ * @generated
+ */
+ public OpaqueExpressionItemSemanticEditPolicy() {
+ super(UMLElementTypes.OpaqueExpression_2101);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getDestroyElementCommand(DestroyElementRequest req) {
+ EObject selectedEObject = req.getElementToDestroy();
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(selectedEObject);
+ if(provider != null) {
+ // Retrieve delete command from the Element Edit service
+ ICommand deleteCommand = provider.getEditCommand(req);
+
+ if(deleteCommand != null) {
+ return new ICommandProxy(deleteCommand);
+ }
+ }
+ return UnexecutableCommand.INSTANCE;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCreateRelationshipCommand(CreateRelationshipRequest req) {
+ Command command = req.getTarget() == null ? getStartCreateRelationshipCommand(req) : getCompleteCreateRelationshipCommand(req);
+ return command != null ? command : super.getCreateRelationshipCommand(req);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getStartCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCompleteCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return getGEFWrapper(new CommentAnnotatedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return getGEFWrapper(new ConstraintConstrainedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return getGEFWrapper(new TimeObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return getGEFWrapper(new DurationObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * Returns command to reorient EClass based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientRelationshipCommand(ReorientRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case ComponentRealizationEditPart.VISUAL_ID:
+ case InterfaceRealizationEditPart.VISUAL_ID:
+ case SubstitutionEditPart.VISUAL_ID:
+ case RealizationEditPart.VISUAL_ID:
+ case ManifestationEditPart.VISUAL_ID:
+ case AbstractionEditPart.VISUAL_ID:
+ case UsageEditPart.VISUAL_ID:
+ case DeploymentEditPart.VISUAL_ID:
+ case DependencyEditPart.VISUAL_ID:
+ case InformationFlowEditPart.VISUAL_ID:
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(req.getRelationship());
+ if(provider == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ // Retrieve re-orient command from the Element Edit service
+ ICommand reorientCommand = provider.getEditCommand(req);
+ if(reorientCommand == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ return getGEFWrapper(reorientCommand.reduce());
+ case RoleBindingEditPart.VISUAL_ID:
+ return getGEFWrapper(new RoleBindingReorientCommand(req));
+ }
+ return super.getReorientRelationshipCommand(req);
+ }
+
+ /**
+ * Returns command to reorient EReference based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientReferenceRelationshipCommand(ReorientReferenceRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case CommentAnnotatedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new CommentAnnotatedElementReorientCommand(req));
+ case ConstraintConstrainedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new ConstraintConstrainedElementReorientCommand(req));
+ case TimeObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new TimeObservationEventReorientCommand(req));
+ case DurationObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new DurationObservationEventReorientCommand(req));
+ }
+ return super.getReorientReferenceRelationshipCommand(req);
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/OperationItemSemanticEditPolicyCLN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/OperationItemSemanticEditPolicyCLN.java
new file mode 100644
index 00000000000..ff6fbfe82a0
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/OperationItemSemanticEditPolicyCLN.java
@@ -0,0 +1,64 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.policies;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import org.eclipse.emf.ecore.EAnnotation;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.edit.command.DeleteCommand;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gmf.runtime.emf.commands.core.command.CompositeTransactionalCommand;
+import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.commands.wrappers.EMFtoGMFCommandWrapper;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+
+/**
+ * @generated
+ */
+public class OperationItemSemanticEditPolicyCLN extends UMLBaseItemSemanticEditPolicy {
+
+ /**
+ * @generated
+ */
+ public OperationItemSemanticEditPolicyCLN() {
+ super(UMLElementTypes.Operation_3102);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getDestroyElementCommand(DestroyElementRequest req) {
+ View view = (View)getHost().getModel();
+ CompositeTransactionalCommand cmd = new CompositeTransactionalCommand(getEditingDomain(), null);
+ cmd.setTransactionNestingEnabled(true);
+
+ EAnnotation annotation = view.getEAnnotation("Shortcut"); //$NON-NLS-1$
+ if(annotation == null) {
+ // there are indirectly referenced children, need extra commands: false
+ addDestroyShortcutsCommand(cmd, view);
+ // delete host element
+ List<EObject> todestroy = new ArrayList<EObject>();
+ todestroy.add(req.getElementToDestroy());
+ //cmd.add(new org.eclipse.gmf.runtime.emf.type.core.commands.DestroyElementCommand(req));
+ cmd.add(new EMFtoGMFCommandWrapper(new DeleteCommand(getEditingDomain(), todestroy)));
+ } else {
+ cmd.add(new org.eclipse.gmf.runtime.diagram.core.commands.DeleteCommand(getEditingDomain(), view));
+ }
+ return getGEFWrapper(cmd.reduce());
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/ParameterItemSemanticEditPolicy.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/ParameterItemSemanticEditPolicy.java
new file mode 100644
index 00000000000..9808ff3cd53
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/ParameterItemSemanticEditPolicy.java
@@ -0,0 +1,259 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.policies;
+
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.commands.UnexecutableCommand;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.diagram.ui.commands.ICommandProxy;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientReferenceRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientRelationshipRequest;
+import org.eclipse.papyrus.diagram.composite.edit.commands.AbstractionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ComponentRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DependencyCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DeploymentCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InformationFlowCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InterfaceRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ManifestationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.SubstitutionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.UsageCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.parts.AbstractionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CommentAnnotatedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ComponentRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ConstraintConstrainedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DependencyEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DeploymentEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DurationObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InformationFlowEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InterfaceRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ManifestationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RoleBindingEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.SubstitutionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.TimeObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.UsageEditPart;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.service.edit.service.ElementEditServiceUtils;
+import org.eclipse.papyrus.service.edit.service.IElementEditService;
+
+/**
+ * @generated
+ */
+public class ParameterItemSemanticEditPolicy extends UMLBaseItemSemanticEditPolicy {
+
+ /**
+ * @generated
+ */
+ public ParameterItemSemanticEditPolicy() {
+ super(UMLElementTypes.Parameter_3088);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getDestroyElementCommand(DestroyElementRequest req) {
+ EObject selectedEObject = req.getElementToDestroy();
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(selectedEObject);
+ if(provider != null) {
+ // Retrieve delete command from the Element Edit service
+ ICommand deleteCommand = provider.getEditCommand(req);
+
+ if(deleteCommand != null) {
+ return new ICommandProxy(deleteCommand);
+ }
+ }
+ return UnexecutableCommand.INSTANCE;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCreateRelationshipCommand(CreateRelationshipRequest req) {
+ Command command = req.getTarget() == null ? getStartCreateRelationshipCommand(req) : getCompleteCreateRelationshipCommand(req);
+ return command != null ? command : super.getCreateRelationshipCommand(req);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getStartCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCompleteCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return getGEFWrapper(new CommentAnnotatedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return getGEFWrapper(new ConstraintConstrainedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return getGEFWrapper(new TimeObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return getGEFWrapper(new DurationObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * Returns command to reorient EClass based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientRelationshipCommand(ReorientRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case ComponentRealizationEditPart.VISUAL_ID:
+ case InterfaceRealizationEditPart.VISUAL_ID:
+ case SubstitutionEditPart.VISUAL_ID:
+ case RealizationEditPart.VISUAL_ID:
+ case ManifestationEditPart.VISUAL_ID:
+ case AbstractionEditPart.VISUAL_ID:
+ case UsageEditPart.VISUAL_ID:
+ case DeploymentEditPart.VISUAL_ID:
+ case DependencyEditPart.VISUAL_ID:
+ case InformationFlowEditPart.VISUAL_ID:
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(req.getRelationship());
+ if(provider == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ // Retrieve re-orient command from the Element Edit service
+ ICommand reorientCommand = provider.getEditCommand(req);
+ if(reorientCommand == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ return getGEFWrapper(reorientCommand.reduce());
+ case RoleBindingEditPart.VISUAL_ID:
+ return getGEFWrapper(new RoleBindingReorientCommand(req));
+ }
+ return super.getReorientRelationshipCommand(req);
+ }
+
+ /**
+ * Returns command to reorient EReference based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientReferenceRelationshipCommand(ReorientReferenceRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case CommentAnnotatedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new CommentAnnotatedElementReorientCommand(req));
+ case ConstraintConstrainedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new ConstraintConstrainedElementReorientCommand(req));
+ case TimeObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new TimeObservationEventReorientCommand(req));
+ case DurationObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new DurationObservationEventReorientCommand(req));
+ }
+ return super.getReorientReferenceRelationshipCommand(req);
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/PortItemSemanticEditPolicy.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/PortItemSemanticEditPolicy.java
new file mode 100644
index 00000000000..8a1a7659b6d
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/PortItemSemanticEditPolicy.java
@@ -0,0 +1,259 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.policies;
+
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.commands.UnexecutableCommand;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.diagram.ui.commands.ICommandProxy;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientReferenceRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientRelationshipRequest;
+import org.eclipse.papyrus.diagram.composite.edit.commands.AbstractionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ComponentRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DependencyCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DeploymentCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InformationFlowCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InterfaceRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ManifestationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.SubstitutionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.UsageCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.parts.AbstractionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CommentAnnotatedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ComponentRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ConstraintConstrainedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DependencyEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DeploymentEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DurationObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InformationFlowEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InterfaceRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ManifestationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RoleBindingEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.SubstitutionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.TimeObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.UsageEditPart;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.service.edit.service.ElementEditServiceUtils;
+import org.eclipse.papyrus.service.edit.service.IElementEditService;
+
+/**
+ * @generated
+ */
+public class PortItemSemanticEditPolicy extends UMLBaseItemSemanticEditPolicy {
+
+ /**
+ * @generated
+ */
+ public PortItemSemanticEditPolicy() {
+ super(UMLElementTypes.Port_3069);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getDestroyElementCommand(DestroyElementRequest req) {
+ EObject selectedEObject = req.getElementToDestroy();
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(selectedEObject);
+ if(provider != null) {
+ // Retrieve delete command from the Element Edit service
+ ICommand deleteCommand = provider.getEditCommand(req);
+
+ if(deleteCommand != null) {
+ return new ICommandProxy(deleteCommand);
+ }
+ }
+ return UnexecutableCommand.INSTANCE;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCreateRelationshipCommand(CreateRelationshipRequest req) {
+ Command command = req.getTarget() == null ? getStartCreateRelationshipCommand(req) : getCompleteCreateRelationshipCommand(req);
+ return command != null ? command : super.getCreateRelationshipCommand(req);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getStartCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCompleteCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return getGEFWrapper(new CommentAnnotatedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return getGEFWrapper(new ConstraintConstrainedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return getGEFWrapper(new TimeObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return getGEFWrapper(new DurationObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * Returns command to reorient EClass based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientRelationshipCommand(ReorientRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case ComponentRealizationEditPart.VISUAL_ID:
+ case InterfaceRealizationEditPart.VISUAL_ID:
+ case SubstitutionEditPart.VISUAL_ID:
+ case RealizationEditPart.VISUAL_ID:
+ case ManifestationEditPart.VISUAL_ID:
+ case AbstractionEditPart.VISUAL_ID:
+ case UsageEditPart.VISUAL_ID:
+ case DeploymentEditPart.VISUAL_ID:
+ case DependencyEditPart.VISUAL_ID:
+ case InformationFlowEditPart.VISUAL_ID:
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(req.getRelationship());
+ if(provider == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ // Retrieve re-orient command from the Element Edit service
+ ICommand reorientCommand = provider.getEditCommand(req);
+ if(reorientCommand == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ return getGEFWrapper(reorientCommand.reduce());
+ case RoleBindingEditPart.VISUAL_ID:
+ return getGEFWrapper(new RoleBindingReorientCommand(req));
+ }
+ return super.getReorientRelationshipCommand(req);
+ }
+
+ /**
+ * Returns command to reorient EReference based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientReferenceRelationshipCommand(ReorientReferenceRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case CommentAnnotatedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new CommentAnnotatedElementReorientCommand(req));
+ case ConstraintConstrainedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new ConstraintConstrainedElementReorientCommand(req));
+ case TimeObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new TimeObservationEventReorientCommand(req));
+ case DurationObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new DurationObservationEventReorientCommand(req));
+ }
+ return super.getReorientReferenceRelationshipCommand(req);
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/PrimitiveTypeItemSemanticEditPolicy.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/PrimitiveTypeItemSemanticEditPolicy.java
new file mode 100644
index 00000000000..4a1d97e009a
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/PrimitiveTypeItemSemanticEditPolicy.java
@@ -0,0 +1,279 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.policies;
+
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.commands.UnexecutableCommand;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.diagram.ui.commands.ICommandProxy;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientReferenceRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientRelationshipRequest;
+import org.eclipse.papyrus.diagram.composite.edit.commands.AbstractionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ComponentRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DependencyCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DeploymentCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.GeneralizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InformationFlowCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InterfaceRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ManifestationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RepresentationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RepresentationReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.SubstitutionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.UsageCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.parts.AbstractionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CommentAnnotatedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ComponentRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ConstraintConstrainedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DependencyEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DeploymentEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DurationObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.GeneralizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InformationFlowEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InterfaceRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ManifestationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RepresentationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RoleBindingEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.SubstitutionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.TimeObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.UsageEditPart;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.service.edit.service.ElementEditServiceUtils;
+import org.eclipse.papyrus.service.edit.service.IElementEditService;
+
+/**
+ * @generated
+ */
+public class PrimitiveTypeItemSemanticEditPolicy extends UMLBaseItemSemanticEditPolicy {
+
+ /**
+ * @generated
+ */
+ public PrimitiveTypeItemSemanticEditPolicy() {
+ super(UMLElementTypes.PrimitiveType_2066);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getDestroyElementCommand(DestroyElementRequest req) {
+ EObject selectedEObject = req.getElementToDestroy();
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(selectedEObject);
+ if(provider != null) {
+ // Retrieve delete command from the Element Edit service
+ ICommand deleteCommand = provider.getEditCommand(req);
+
+ if(deleteCommand != null) {
+ return new ICommandProxy(deleteCommand);
+ }
+ }
+ return UnexecutableCommand.INSTANCE;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCreateRelationshipCommand(CreateRelationshipRequest req) {
+ Command command = req.getTarget() == null ? getStartCreateRelationshipCommand(req) : getCompleteCreateRelationshipCommand(req);
+ return command != null ? command : super.getCreateRelationshipCommand(req);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getStartCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Generalization_4015 == req.getElementType()) {
+ return getGEFWrapper(new GeneralizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.InformationItemRepresented_4020 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCompleteCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return getGEFWrapper(new CommentAnnotatedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return getGEFWrapper(new ConstraintConstrainedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Generalization_4015 == req.getElementType()) {
+ return getGEFWrapper(new GeneralizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return getGEFWrapper(new TimeObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return getGEFWrapper(new DurationObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InformationItemRepresented_4020 == req.getElementType()) {
+ return getGEFWrapper(new RepresentationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * Returns command to reorient EClass based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientRelationshipCommand(ReorientRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case ComponentRealizationEditPart.VISUAL_ID:
+ case InterfaceRealizationEditPart.VISUAL_ID:
+ case SubstitutionEditPart.VISUAL_ID:
+ case RealizationEditPart.VISUAL_ID:
+ case ManifestationEditPart.VISUAL_ID:
+ case AbstractionEditPart.VISUAL_ID:
+ case UsageEditPart.VISUAL_ID:
+ case DeploymentEditPart.VISUAL_ID:
+ case DependencyEditPart.VISUAL_ID:
+ case GeneralizationEditPart.VISUAL_ID:
+ case InformationFlowEditPart.VISUAL_ID:
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(req.getRelationship());
+ if(provider == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ // Retrieve re-orient command from the Element Edit service
+ ICommand reorientCommand = provider.getEditCommand(req);
+ if(reorientCommand == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ return getGEFWrapper(reorientCommand.reduce());
+ case RoleBindingEditPart.VISUAL_ID:
+ return getGEFWrapper(new RoleBindingReorientCommand(req));
+ }
+ return super.getReorientRelationshipCommand(req);
+ }
+
+ /**
+ * Returns command to reorient EReference based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientReferenceRelationshipCommand(ReorientReferenceRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case CommentAnnotatedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new CommentAnnotatedElementReorientCommand(req));
+ case ConstraintConstrainedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new ConstraintConstrainedElementReorientCommand(req));
+ case TimeObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new TimeObservationEventReorientCommand(req));
+ case DurationObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new DurationObservationEventReorientCommand(req));
+ case RepresentationEditPart.VISUAL_ID:
+ return getGEFWrapper(new RepresentationReorientCommand(req));
+ }
+ return super.getReorientReferenceRelationshipCommand(req);
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/PrimitiveTypeItemSemanticEditPolicyCLN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/PrimitiveTypeItemSemanticEditPolicyCLN.java
new file mode 100644
index 00000000000..487c16667ef
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/PrimitiveTypeItemSemanticEditPolicyCLN.java
@@ -0,0 +1,64 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.policies;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import org.eclipse.emf.ecore.EAnnotation;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.edit.command.DeleteCommand;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gmf.runtime.emf.commands.core.command.CompositeTransactionalCommand;
+import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.commands.wrappers.EMFtoGMFCommandWrapper;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+
+/**
+ * @generated
+ */
+public class PrimitiveTypeItemSemanticEditPolicyCLN extends UMLBaseItemSemanticEditPolicy {
+
+ /**
+ * @generated
+ */
+ public PrimitiveTypeItemSemanticEditPolicyCLN() {
+ super(UMLElementTypes.PrimitiveType_3112);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getDestroyElementCommand(DestroyElementRequest req) {
+ View view = (View)getHost().getModel();
+ CompositeTransactionalCommand cmd = new CompositeTransactionalCommand(getEditingDomain(), null);
+ cmd.setTransactionNestingEnabled(true);
+
+ EAnnotation annotation = view.getEAnnotation("Shortcut"); //$NON-NLS-1$
+ if(annotation == null) {
+ // there are indirectly referenced children, need extra commands: false
+ addDestroyShortcutsCommand(cmd, view);
+ // delete host element
+ List<EObject> todestroy = new ArrayList<EObject>();
+ todestroy.add(req.getElementToDestroy());
+ //cmd.add(new org.eclipse.gmf.runtime.emf.type.core.commands.DestroyElementCommand(req));
+ cmd.add(new EMFtoGMFCommandWrapper(new DeleteCommand(getEditingDomain(), todestroy)));
+ } else {
+ cmd.add(new org.eclipse.gmf.runtime.diagram.core.commands.DeleteCommand(getEditingDomain(), view));
+ }
+ return getGEFWrapper(cmd.reduce());
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/PrimitiveTypeItemSemanticEditPolicyCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/PrimitiveTypeItemSemanticEditPolicyCN.java
new file mode 100644
index 00000000000..e53f38e0ba5
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/PrimitiveTypeItemSemanticEditPolicyCN.java
@@ -0,0 +1,279 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.policies;
+
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.commands.UnexecutableCommand;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.diagram.ui.commands.ICommandProxy;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientReferenceRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientRelationshipRequest;
+import org.eclipse.papyrus.diagram.composite.edit.commands.AbstractionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ComponentRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DependencyCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DeploymentCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.GeneralizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InformationFlowCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InterfaceRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ManifestationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RepresentationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RepresentationReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.SubstitutionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.UsageCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.parts.AbstractionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CommentAnnotatedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ComponentRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ConstraintConstrainedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DependencyEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DeploymentEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DurationObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.GeneralizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InformationFlowEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InterfaceRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ManifestationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RepresentationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RoleBindingEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.SubstitutionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.TimeObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.UsageEditPart;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.service.edit.service.ElementEditServiceUtils;
+import org.eclipse.papyrus.service.edit.service.IElementEditService;
+
+/**
+ * @generated
+ */
+public class PrimitiveTypeItemSemanticEditPolicyCN extends UMLBaseItemSemanticEditPolicy {
+
+ /**
+ * @generated
+ */
+ public PrimitiveTypeItemSemanticEditPolicyCN() {
+ super(UMLElementTypes.PrimitiveType_3078);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getDestroyElementCommand(DestroyElementRequest req) {
+ EObject selectedEObject = req.getElementToDestroy();
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(selectedEObject);
+ if(provider != null) {
+ // Retrieve delete command from the Element Edit service
+ ICommand deleteCommand = provider.getEditCommand(req);
+
+ if(deleteCommand != null) {
+ return new ICommandProxy(deleteCommand);
+ }
+ }
+ return UnexecutableCommand.INSTANCE;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCreateRelationshipCommand(CreateRelationshipRequest req) {
+ Command command = req.getTarget() == null ? getStartCreateRelationshipCommand(req) : getCompleteCreateRelationshipCommand(req);
+ return command != null ? command : super.getCreateRelationshipCommand(req);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getStartCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Generalization_4015 == req.getElementType()) {
+ return getGEFWrapper(new GeneralizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.InformationItemRepresented_4020 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCompleteCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return getGEFWrapper(new CommentAnnotatedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return getGEFWrapper(new ConstraintConstrainedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Generalization_4015 == req.getElementType()) {
+ return getGEFWrapper(new GeneralizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return getGEFWrapper(new TimeObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return getGEFWrapper(new DurationObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InformationItemRepresented_4020 == req.getElementType()) {
+ return getGEFWrapper(new RepresentationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * Returns command to reorient EClass based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientRelationshipCommand(ReorientRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case ComponentRealizationEditPart.VISUAL_ID:
+ case InterfaceRealizationEditPart.VISUAL_ID:
+ case SubstitutionEditPart.VISUAL_ID:
+ case RealizationEditPart.VISUAL_ID:
+ case ManifestationEditPart.VISUAL_ID:
+ case AbstractionEditPart.VISUAL_ID:
+ case UsageEditPart.VISUAL_ID:
+ case DeploymentEditPart.VISUAL_ID:
+ case DependencyEditPart.VISUAL_ID:
+ case GeneralizationEditPart.VISUAL_ID:
+ case InformationFlowEditPart.VISUAL_ID:
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(req.getRelationship());
+ if(provider == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ // Retrieve re-orient command from the Element Edit service
+ ICommand reorientCommand = provider.getEditCommand(req);
+ if(reorientCommand == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ return getGEFWrapper(reorientCommand.reduce());
+ case RoleBindingEditPart.VISUAL_ID:
+ return getGEFWrapper(new RoleBindingReorientCommand(req));
+ }
+ return super.getReorientRelationshipCommand(req);
+ }
+
+ /**
+ * Returns command to reorient EReference based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientReferenceRelationshipCommand(ReorientReferenceRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case CommentAnnotatedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new CommentAnnotatedElementReorientCommand(req));
+ case ConstraintConstrainedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new ConstraintConstrainedElementReorientCommand(req));
+ case TimeObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new TimeObservationEventReorientCommand(req));
+ case DurationObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new DurationObservationEventReorientCommand(req));
+ case RepresentationEditPart.VISUAL_ID:
+ return getGEFWrapper(new RepresentationReorientCommand(req));
+ }
+ return super.getReorientReferenceRelationshipCommand(req);
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/PropertyItemSemanticEditPolicyCLN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/PropertyItemSemanticEditPolicyCLN.java
new file mode 100644
index 00000000000..f566cea901a
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/PropertyItemSemanticEditPolicyCLN.java
@@ -0,0 +1,64 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.policies;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import org.eclipse.emf.ecore.EAnnotation;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.edit.command.DeleteCommand;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gmf.runtime.emf.commands.core.command.CompositeTransactionalCommand;
+import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.commands.wrappers.EMFtoGMFCommandWrapper;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+
+/**
+ * @generated
+ */
+public class PropertyItemSemanticEditPolicyCLN extends UMLBaseItemSemanticEditPolicy {
+
+ /**
+ * @generated
+ */
+ public PropertyItemSemanticEditPolicyCLN() {
+ super(UMLElementTypes.Property_3101);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getDestroyElementCommand(DestroyElementRequest req) {
+ View view = (View)getHost().getModel();
+ CompositeTransactionalCommand cmd = new CompositeTransactionalCommand(getEditingDomain(), null);
+ cmd.setTransactionNestingEnabled(true);
+
+ EAnnotation annotation = view.getEAnnotation("Shortcut"); //$NON-NLS-1$
+ if(annotation == null) {
+ // there are indirectly referenced children, need extra commands: false
+ addDestroyShortcutsCommand(cmd, view);
+ // delete host element
+ List<EObject> todestroy = new ArrayList<EObject>();
+ todestroy.add(req.getElementToDestroy());
+ //cmd.add(new org.eclipse.gmf.runtime.emf.type.core.commands.DestroyElementCommand(req));
+ cmd.add(new EMFtoGMFCommandWrapper(new DeleteCommand(getEditingDomain(), todestroy)));
+ } else {
+ cmd.add(new org.eclipse.gmf.runtime.diagram.core.commands.DeleteCommand(getEditingDomain(), view));
+ }
+ return getGEFWrapper(cmd.reduce());
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/PropertyPartCompartmentItemSemanticEditPolicyCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/PropertyPartCompartmentItemSemanticEditPolicyCN.java
new file mode 100644
index 00000000000..0ff636b511b
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/PropertyPartCompartmentItemSemanticEditPolicyCN.java
@@ -0,0 +1,51 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.policies;
+
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.PortCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.PropertyPartCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+
+/**
+ * @generated
+ */
+public class PropertyPartCompartmentItemSemanticEditPolicyCN extends UMLBaseItemSemanticEditPolicy {
+
+ /**
+ * @generated
+ */
+ public PropertyPartCompartmentItemSemanticEditPolicyCN() {
+ super(UMLElementTypes.Property_3070);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCreateCommand(CreateElementRequest req) {
+ if(UMLElementTypes.Port_3069 == req.getElementType()) {
+ return getGEFWrapper(new PortCreateCommand(req));
+ }
+ if(UMLElementTypes.Property_3070 == req.getElementType()) {
+ return getGEFWrapper(new PropertyPartCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Comment_3097 == req.getElementType()) {
+ return getGEFWrapper(new CommentCreateCommandCN(req));
+ }
+ return super.getCreateCommand(req);
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/PropertyPartItemSemanticEditPolicyCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/PropertyPartItemSemanticEditPolicyCN.java
new file mode 100644
index 00000000000..c917d3e3f31
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/PropertyPartItemSemanticEditPolicyCN.java
@@ -0,0 +1,271 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.policies;
+
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.commands.UnexecutableCommand;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.diagram.ui.commands.ICommandProxy;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientReferenceRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientRelationshipRequest;
+import org.eclipse.papyrus.diagram.composite.edit.commands.AbstractionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ComponentRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DependencyCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DeploymentCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InformationFlowCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InterfaceRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ManifestationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.PortCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.SubstitutionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.UsageCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.parts.AbstractionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CommentAnnotatedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ComponentRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ConstraintConstrainedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DependencyEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DeploymentEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DurationObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InformationFlowEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InterfaceRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ManifestationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RoleBindingEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.SubstitutionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.TimeObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.UsageEditPart;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.service.edit.service.ElementEditServiceUtils;
+import org.eclipse.papyrus.service.edit.service.IElementEditService;
+
+/**
+ * @generated
+ */
+public class PropertyPartItemSemanticEditPolicyCN extends UMLBaseItemSemanticEditPolicy {
+
+ /**
+ * @generated
+ */
+ public PropertyPartItemSemanticEditPolicyCN() {
+ super(UMLElementTypes.Property_3070);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCreateCommand(CreateElementRequest req) {
+ if(UMLElementTypes.Port_3069 == req.getElementType()) {
+ return getGEFWrapper(new PortCreateCommand(req));
+ }
+ return super.getCreateCommand(req);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getDestroyElementCommand(DestroyElementRequest req) {
+ EObject selectedEObject = req.getElementToDestroy();
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(selectedEObject);
+ if(provider != null) {
+ // Retrieve delete command from the Element Edit service
+ ICommand deleteCommand = provider.getEditCommand(req);
+
+ if(deleteCommand != null) {
+ return new ICommandProxy(deleteCommand);
+ }
+ }
+ return UnexecutableCommand.INSTANCE;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCreateRelationshipCommand(CreateRelationshipRequest req) {
+ Command command = req.getTarget() == null ? getStartCreateRelationshipCommand(req) : getCompleteCreateRelationshipCommand(req);
+ return command != null ? command : super.getCreateRelationshipCommand(req);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getStartCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCompleteCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return getGEFWrapper(new CommentAnnotatedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return getGEFWrapper(new ConstraintConstrainedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return getGEFWrapper(new TimeObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return getGEFWrapper(new DurationObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * Returns command to reorient EClass based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientRelationshipCommand(ReorientRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case ComponentRealizationEditPart.VISUAL_ID:
+ case InterfaceRealizationEditPart.VISUAL_ID:
+ case SubstitutionEditPart.VISUAL_ID:
+ case RealizationEditPart.VISUAL_ID:
+ case ManifestationEditPart.VISUAL_ID:
+ case AbstractionEditPart.VISUAL_ID:
+ case UsageEditPart.VISUAL_ID:
+ case DeploymentEditPart.VISUAL_ID:
+ case DependencyEditPart.VISUAL_ID:
+ case InformationFlowEditPart.VISUAL_ID:
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(req.getRelationship());
+ if(provider == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ // Retrieve re-orient command from the Element Edit service
+ ICommand reorientCommand = provider.getEditCommand(req);
+ if(reorientCommand == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ return getGEFWrapper(reorientCommand.reduce());
+ case RoleBindingEditPart.VISUAL_ID:
+ return getGEFWrapper(new RoleBindingReorientCommand(req));
+ }
+ return super.getReorientRelationshipCommand(req);
+ }
+
+ /**
+ * Returns command to reorient EReference based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientReferenceRelationshipCommand(ReorientReferenceRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case CommentAnnotatedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new CommentAnnotatedElementReorientCommand(req));
+ case ConstraintConstrainedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new ConstraintConstrainedElementReorientCommand(req));
+ case TimeObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new TimeObservationEventReorientCommand(req));
+ case DurationObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new DurationObservationEventReorientCommand(req));
+ }
+ return super.getReorientReferenceRelationshipCommand(req);
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/ProtocolStateMachineCompositeCompartmentItemSemanticEditPolicy.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/ProtocolStateMachineCompositeCompartmentItemSemanticEditPolicy.java
new file mode 100644
index 00000000000..aca138d8d57
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/ProtocolStateMachineCompositeCompartmentItemSemanticEditPolicy.java
@@ -0,0 +1,167 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.policies;
+
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ActivityCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ActorCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ArtifactCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ClassCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CollaborationCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CollaborationUseCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ComponentCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DataTypeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DeploymentSpecificationCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DeviceCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationConstraintCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.EnumerationCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ExecutionEnvironmentCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.FunctionBehaviorCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InformationItemCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InteractionCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InteractionConstraintCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InterfaceCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.IntervalConstraintCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.NodeCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.OpaqueBehaviorCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ParameterCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.PortCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.PrimitiveTypeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.PropertyPartCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ProtocolStateMachineCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.SignalCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.StateMachineCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeConstraintCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.UseCaseCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+
+/**
+ * @generated
+ */
+public class ProtocolStateMachineCompositeCompartmentItemSemanticEditPolicy extends UMLBaseItemSemanticEditPolicy {
+
+ /**
+ * @generated
+ */
+ public ProtocolStateMachineCompositeCompartmentItemSemanticEditPolicy() {
+ super(UMLElementTypes.ProtocolStateMachine_2062);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCreateCommand(CreateElementRequest req) {
+ if(UMLElementTypes.Port_3069 == req.getElementType()) {
+ return getGEFWrapper(new PortCreateCommand(req));
+ }
+ if(UMLElementTypes.Parameter_3088 == req.getElementType()) {
+ return getGEFWrapper(new ParameterCreateCommand(req));
+ }
+ if(UMLElementTypes.Property_3070 == req.getElementType()) {
+ return getGEFWrapper(new PropertyPartCreateCommandCN(req));
+ }
+ if(UMLElementTypes.CollaborationUse_3071 == req.getElementType()) {
+ return getGEFWrapper(new CollaborationUseCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Activity_3072 == req.getElementType()) {
+ return getGEFWrapper(new ActivityCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Interaction_3073 == req.getElementType()) {
+ return getGEFWrapper(new InteractionCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.ProtocolStateMachine_3074 == req.getElementType()) {
+ return getGEFWrapper(new ProtocolStateMachineCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.StateMachine_3075 == req.getElementType()) {
+ return getGEFWrapper(new StateMachineCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.FunctionBehavior_3076 == req.getElementType()) {
+ return getGEFWrapper(new FunctionBehaviorCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.OpaqueBehavior_3077 == req.getElementType()) {
+ return getGEFWrapper(new OpaqueBehaviorCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Component_3081 == req.getElementType()) {
+ return getGEFWrapper(new ComponentCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Device_3082 == req.getElementType()) {
+ return getGEFWrapper(new DeviceCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.ExecutionEnvironment_3083 == req.getElementType()) {
+ return getGEFWrapper(new ExecutionEnvironmentCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Node_3084 == req.getElementType()) {
+ return getGEFWrapper(new NodeCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Class_3085 == req.getElementType()) {
+ return getGEFWrapper(new ClassCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Collaboration_3086 == req.getElementType()) {
+ return getGEFWrapper(new CollaborationCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Interface_3087 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceCreateCommandCN(req));
+ }
+ if(UMLElementTypes.PrimitiveType_3078 == req.getElementType()) {
+ return getGEFWrapper(new PrimitiveTypeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Enumeration_3079 == req.getElementType()) {
+ return getGEFWrapper(new EnumerationCreateCommandCN(req));
+ }
+ if(UMLElementTypes.DataType_3080 == req.getElementType()) {
+ return getGEFWrapper(new DataTypeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Actor_3091 == req.getElementType()) {
+ return getGEFWrapper(new ActorCreateCommandCN(req));
+ }
+ if(UMLElementTypes.DeploymentSpecification_3092 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentSpecificationCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Artifact_3093 == req.getElementType()) {
+ return getGEFWrapper(new ArtifactCreateCommandCN(req));
+ }
+ if(UMLElementTypes.InformationItem_3094 == req.getElementType()) {
+ return getGEFWrapper(new InformationItemCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Signal_3095 == req.getElementType()) {
+ return getGEFWrapper(new SignalCreateCommandCN(req));
+ }
+ if(UMLElementTypes.UseCase_3096 == req.getElementType()) {
+ return getGEFWrapper(new UseCaseCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Comment_3097 == req.getElementType()) {
+ return getGEFWrapper(new CommentCreateCommandCN(req));
+ }
+ if(UMLElementTypes.DurationConstraint_3116 == req.getElementType()) {
+ return getGEFWrapper(new DurationConstraintCreateCommandCN(req));
+ }
+ if(UMLElementTypes.TimeConstraint_3117 == req.getElementType()) {
+ return getGEFWrapper(new TimeConstraintCreateCommandCN(req));
+ }
+ if(UMLElementTypes.IntervalConstraint_3118 == req.getElementType()) {
+ return getGEFWrapper(new IntervalConstraintCreateCommandCN(req));
+ }
+ if(UMLElementTypes.InteractionConstraint_3119 == req.getElementType()) {
+ return getGEFWrapper(new InteractionConstraintCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Constraint_3120 == req.getElementType()) {
+ return getGEFWrapper(new ConstraintCreateCommandCN(req));
+ }
+ return super.getCreateCommand(req);
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/ProtocolStateMachineCompositeCompartmentItemSemanticEditPolicyCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/ProtocolStateMachineCompositeCompartmentItemSemanticEditPolicyCN.java
new file mode 100644
index 00000000000..1f7e050081e
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/ProtocolStateMachineCompositeCompartmentItemSemanticEditPolicyCN.java
@@ -0,0 +1,167 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.policies;
+
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ActivityCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ActorCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ArtifactCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ClassCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CollaborationCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CollaborationUseCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ComponentCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DataTypeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DeploymentSpecificationCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DeviceCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationConstraintCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.EnumerationCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ExecutionEnvironmentCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.FunctionBehaviorCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InformationItemCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InteractionCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InteractionConstraintCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InterfaceCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.IntervalConstraintCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.NodeCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.OpaqueBehaviorCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ParameterCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.PortCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.PrimitiveTypeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.PropertyPartCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ProtocolStateMachineCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.SignalCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.StateMachineCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeConstraintCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.UseCaseCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+
+/**
+ * @generated
+ */
+public class ProtocolStateMachineCompositeCompartmentItemSemanticEditPolicyCN extends UMLBaseItemSemanticEditPolicy {
+
+ /**
+ * @generated
+ */
+ public ProtocolStateMachineCompositeCompartmentItemSemanticEditPolicyCN() {
+ super(UMLElementTypes.ProtocolStateMachine_3074);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCreateCommand(CreateElementRequest req) {
+ if(UMLElementTypes.Port_3069 == req.getElementType()) {
+ return getGEFWrapper(new PortCreateCommand(req));
+ }
+ if(UMLElementTypes.Parameter_3088 == req.getElementType()) {
+ return getGEFWrapper(new ParameterCreateCommand(req));
+ }
+ if(UMLElementTypes.Property_3070 == req.getElementType()) {
+ return getGEFWrapper(new PropertyPartCreateCommandCN(req));
+ }
+ if(UMLElementTypes.CollaborationUse_3071 == req.getElementType()) {
+ return getGEFWrapper(new CollaborationUseCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Activity_3072 == req.getElementType()) {
+ return getGEFWrapper(new ActivityCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Interaction_3073 == req.getElementType()) {
+ return getGEFWrapper(new InteractionCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.ProtocolStateMachine_3074 == req.getElementType()) {
+ return getGEFWrapper(new ProtocolStateMachineCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.StateMachine_3075 == req.getElementType()) {
+ return getGEFWrapper(new StateMachineCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.FunctionBehavior_3076 == req.getElementType()) {
+ return getGEFWrapper(new FunctionBehaviorCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.OpaqueBehavior_3077 == req.getElementType()) {
+ return getGEFWrapper(new OpaqueBehaviorCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Component_3081 == req.getElementType()) {
+ return getGEFWrapper(new ComponentCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Device_3082 == req.getElementType()) {
+ return getGEFWrapper(new DeviceCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.ExecutionEnvironment_3083 == req.getElementType()) {
+ return getGEFWrapper(new ExecutionEnvironmentCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Node_3084 == req.getElementType()) {
+ return getGEFWrapper(new NodeCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Class_3085 == req.getElementType()) {
+ return getGEFWrapper(new ClassCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Collaboration_3086 == req.getElementType()) {
+ return getGEFWrapper(new CollaborationCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Interface_3087 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceCreateCommandCN(req));
+ }
+ if(UMLElementTypes.PrimitiveType_3078 == req.getElementType()) {
+ return getGEFWrapper(new PrimitiveTypeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Enumeration_3079 == req.getElementType()) {
+ return getGEFWrapper(new EnumerationCreateCommandCN(req));
+ }
+ if(UMLElementTypes.DataType_3080 == req.getElementType()) {
+ return getGEFWrapper(new DataTypeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Actor_3091 == req.getElementType()) {
+ return getGEFWrapper(new ActorCreateCommandCN(req));
+ }
+ if(UMLElementTypes.DeploymentSpecification_3092 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentSpecificationCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Artifact_3093 == req.getElementType()) {
+ return getGEFWrapper(new ArtifactCreateCommandCN(req));
+ }
+ if(UMLElementTypes.InformationItem_3094 == req.getElementType()) {
+ return getGEFWrapper(new InformationItemCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Signal_3095 == req.getElementType()) {
+ return getGEFWrapper(new SignalCreateCommandCN(req));
+ }
+ if(UMLElementTypes.UseCase_3096 == req.getElementType()) {
+ return getGEFWrapper(new UseCaseCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Comment_3097 == req.getElementType()) {
+ return getGEFWrapper(new CommentCreateCommandCN(req));
+ }
+ if(UMLElementTypes.DurationConstraint_3116 == req.getElementType()) {
+ return getGEFWrapper(new DurationConstraintCreateCommandCN(req));
+ }
+ if(UMLElementTypes.TimeConstraint_3117 == req.getElementType()) {
+ return getGEFWrapper(new TimeConstraintCreateCommandCN(req));
+ }
+ if(UMLElementTypes.IntervalConstraint_3118 == req.getElementType()) {
+ return getGEFWrapper(new IntervalConstraintCreateCommandCN(req));
+ }
+ if(UMLElementTypes.InteractionConstraint_3119 == req.getElementType()) {
+ return getGEFWrapper(new InteractionConstraintCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Constraint_3120 == req.getElementType()) {
+ return getGEFWrapper(new ConstraintCreateCommandCN(req));
+ }
+ return super.getCreateCommand(req);
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/ProtocolStateMachineCompositeItemSemanticEditPolicy.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/ProtocolStateMachineCompositeItemSemanticEditPolicy.java
new file mode 100644
index 00000000000..eddd9c5e3a3
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/ProtocolStateMachineCompositeItemSemanticEditPolicy.java
@@ -0,0 +1,295 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.policies;
+
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.commands.UnexecutableCommand;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.diagram.ui.commands.ICommandProxy;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientReferenceRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientRelationshipRequest;
+import org.eclipse.papyrus.diagram.composite.edit.commands.AbstractionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ComponentRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DependencyCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DeploymentCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.GeneralizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InformationFlowCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InterfaceRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ManifestationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ParameterCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.PortCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RepresentationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RepresentationReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.SubstitutionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.UsageCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.parts.AbstractionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CommentAnnotatedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ComponentRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ConstraintConstrainedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DependencyEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DeploymentEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DurationObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.GeneralizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InformationFlowEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InterfaceRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ManifestationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RepresentationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RoleBindingEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.SubstitutionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.TimeObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.UsageEditPart;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.service.edit.service.ElementEditServiceUtils;
+import org.eclipse.papyrus.service.edit.service.IElementEditService;
+
+/**
+ * @generated
+ */
+public class ProtocolStateMachineCompositeItemSemanticEditPolicy extends UMLBaseItemSemanticEditPolicy {
+
+ /**
+ * @generated
+ */
+ public ProtocolStateMachineCompositeItemSemanticEditPolicy() {
+ super(UMLElementTypes.ProtocolStateMachine_2062);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCreateCommand(CreateElementRequest req) {
+ if(UMLElementTypes.Port_3069 == req.getElementType()) {
+ return getGEFWrapper(new PortCreateCommand(req));
+ }
+ if(UMLElementTypes.Parameter_3088 == req.getElementType()) {
+ return getGEFWrapper(new ParameterCreateCommand(req));
+ }
+ return super.getCreateCommand(req);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getDestroyElementCommand(DestroyElementRequest req) {
+ EObject selectedEObject = req.getElementToDestroy();
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(selectedEObject);
+ if(provider != null) {
+ // Retrieve delete command from the Element Edit service
+ ICommand deleteCommand = provider.getEditCommand(req);
+
+ if(deleteCommand != null) {
+ return new ICommandProxy(deleteCommand);
+ }
+ }
+ return UnexecutableCommand.INSTANCE;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCreateRelationshipCommand(CreateRelationshipRequest req) {
+ Command command = req.getTarget() == null ? getStartCreateRelationshipCommand(req) : getCompleteCreateRelationshipCommand(req);
+ return command != null ? command : super.getCreateRelationshipCommand(req);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getStartCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Generalization_4015 == req.getElementType()) {
+ return getGEFWrapper(new GeneralizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.InformationItemRepresented_4020 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCompleteCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return getGEFWrapper(new CommentAnnotatedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return getGEFWrapper(new ConstraintConstrainedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Generalization_4015 == req.getElementType()) {
+ return getGEFWrapper(new GeneralizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return getGEFWrapper(new TimeObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return getGEFWrapper(new DurationObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InformationItemRepresented_4020 == req.getElementType()) {
+ return getGEFWrapper(new RepresentationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * Returns command to reorient EClass based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientRelationshipCommand(ReorientRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case ComponentRealizationEditPart.VISUAL_ID:
+ case InterfaceRealizationEditPart.VISUAL_ID:
+ case SubstitutionEditPart.VISUAL_ID:
+ case RealizationEditPart.VISUAL_ID:
+ case ManifestationEditPart.VISUAL_ID:
+ case AbstractionEditPart.VISUAL_ID:
+ case UsageEditPart.VISUAL_ID:
+ case DeploymentEditPart.VISUAL_ID:
+ case DependencyEditPart.VISUAL_ID:
+ case GeneralizationEditPart.VISUAL_ID:
+ case InformationFlowEditPart.VISUAL_ID:
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(req.getRelationship());
+ if(provider == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ // Retrieve re-orient command from the Element Edit service
+ ICommand reorientCommand = provider.getEditCommand(req);
+ if(reorientCommand == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ return getGEFWrapper(reorientCommand.reduce());
+ case RoleBindingEditPart.VISUAL_ID:
+ return getGEFWrapper(new RoleBindingReorientCommand(req));
+ }
+ return super.getReorientRelationshipCommand(req);
+ }
+
+ /**
+ * Returns command to reorient EReference based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientReferenceRelationshipCommand(ReorientReferenceRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case CommentAnnotatedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new CommentAnnotatedElementReorientCommand(req));
+ case ConstraintConstrainedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new ConstraintConstrainedElementReorientCommand(req));
+ case TimeObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new TimeObservationEventReorientCommand(req));
+ case DurationObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new DurationObservationEventReorientCommand(req));
+ case RepresentationEditPart.VISUAL_ID:
+ return getGEFWrapper(new RepresentationReorientCommand(req));
+ }
+ return super.getReorientReferenceRelationshipCommand(req);
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/ProtocolStateMachineCompositeItemSemanticEditPolicyCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/ProtocolStateMachineCompositeItemSemanticEditPolicyCN.java
new file mode 100644
index 00000000000..6d84a6b50f7
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/ProtocolStateMachineCompositeItemSemanticEditPolicyCN.java
@@ -0,0 +1,295 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.policies;
+
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.commands.UnexecutableCommand;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.diagram.ui.commands.ICommandProxy;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientReferenceRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientRelationshipRequest;
+import org.eclipse.papyrus.diagram.composite.edit.commands.AbstractionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ComponentRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DependencyCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DeploymentCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.GeneralizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InformationFlowCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InterfaceRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ManifestationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ParameterCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.PortCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RepresentationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RepresentationReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.SubstitutionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.UsageCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.parts.AbstractionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CommentAnnotatedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ComponentRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ConstraintConstrainedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DependencyEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DeploymentEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DurationObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.GeneralizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InformationFlowEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InterfaceRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ManifestationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RepresentationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RoleBindingEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.SubstitutionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.TimeObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.UsageEditPart;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.service.edit.service.ElementEditServiceUtils;
+import org.eclipse.papyrus.service.edit.service.IElementEditService;
+
+/**
+ * @generated
+ */
+public class ProtocolStateMachineCompositeItemSemanticEditPolicyCN extends UMLBaseItemSemanticEditPolicy {
+
+ /**
+ * @generated
+ */
+ public ProtocolStateMachineCompositeItemSemanticEditPolicyCN() {
+ super(UMLElementTypes.ProtocolStateMachine_3074);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCreateCommand(CreateElementRequest req) {
+ if(UMLElementTypes.Port_3069 == req.getElementType()) {
+ return getGEFWrapper(new PortCreateCommand(req));
+ }
+ if(UMLElementTypes.Parameter_3088 == req.getElementType()) {
+ return getGEFWrapper(new ParameterCreateCommand(req));
+ }
+ return super.getCreateCommand(req);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getDestroyElementCommand(DestroyElementRequest req) {
+ EObject selectedEObject = req.getElementToDestroy();
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(selectedEObject);
+ if(provider != null) {
+ // Retrieve delete command from the Element Edit service
+ ICommand deleteCommand = provider.getEditCommand(req);
+
+ if(deleteCommand != null) {
+ return new ICommandProxy(deleteCommand);
+ }
+ }
+ return UnexecutableCommand.INSTANCE;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCreateRelationshipCommand(CreateRelationshipRequest req) {
+ Command command = req.getTarget() == null ? getStartCreateRelationshipCommand(req) : getCompleteCreateRelationshipCommand(req);
+ return command != null ? command : super.getCreateRelationshipCommand(req);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getStartCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Generalization_4015 == req.getElementType()) {
+ return getGEFWrapper(new GeneralizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.InformationItemRepresented_4020 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCompleteCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return getGEFWrapper(new CommentAnnotatedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return getGEFWrapper(new ConstraintConstrainedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Generalization_4015 == req.getElementType()) {
+ return getGEFWrapper(new GeneralizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return getGEFWrapper(new TimeObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return getGEFWrapper(new DurationObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InformationItemRepresented_4020 == req.getElementType()) {
+ return getGEFWrapper(new RepresentationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * Returns command to reorient EClass based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientRelationshipCommand(ReorientRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case ComponentRealizationEditPart.VISUAL_ID:
+ case InterfaceRealizationEditPart.VISUAL_ID:
+ case SubstitutionEditPart.VISUAL_ID:
+ case RealizationEditPart.VISUAL_ID:
+ case ManifestationEditPart.VISUAL_ID:
+ case AbstractionEditPart.VISUAL_ID:
+ case UsageEditPart.VISUAL_ID:
+ case DeploymentEditPart.VISUAL_ID:
+ case DependencyEditPart.VISUAL_ID:
+ case GeneralizationEditPart.VISUAL_ID:
+ case InformationFlowEditPart.VISUAL_ID:
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(req.getRelationship());
+ if(provider == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ // Retrieve re-orient command from the Element Edit service
+ ICommand reorientCommand = provider.getEditCommand(req);
+ if(reorientCommand == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ return getGEFWrapper(reorientCommand.reduce());
+ case RoleBindingEditPart.VISUAL_ID:
+ return getGEFWrapper(new RoleBindingReorientCommand(req));
+ }
+ return super.getReorientRelationshipCommand(req);
+ }
+
+ /**
+ * Returns command to reorient EReference based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientReferenceRelationshipCommand(ReorientReferenceRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case CommentAnnotatedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new CommentAnnotatedElementReorientCommand(req));
+ case ConstraintConstrainedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new ConstraintConstrainedElementReorientCommand(req));
+ case TimeObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new TimeObservationEventReorientCommand(req));
+ case DurationObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new DurationObservationEventReorientCommand(req));
+ case RepresentationEditPart.VISUAL_ID:
+ return getGEFWrapper(new RepresentationReorientCommand(req));
+ }
+ return super.getReorientReferenceRelationshipCommand(req);
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/ProtocolStateMachineItemSemanticEditPolicyCLN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/ProtocolStateMachineItemSemanticEditPolicyCLN.java
new file mode 100644
index 00000000000..cc8287ca23f
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/ProtocolStateMachineItemSemanticEditPolicyCLN.java
@@ -0,0 +1,64 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.policies;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import org.eclipse.emf.ecore.EAnnotation;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.edit.command.DeleteCommand;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gmf.runtime.emf.commands.core.command.CompositeTransactionalCommand;
+import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.commands.wrappers.EMFtoGMFCommandWrapper;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+
+/**
+ * @generated
+ */
+public class ProtocolStateMachineItemSemanticEditPolicyCLN extends UMLBaseItemSemanticEditPolicy {
+
+ /**
+ * @generated
+ */
+ public ProtocolStateMachineItemSemanticEditPolicyCLN() {
+ super(UMLElementTypes.ProtocolStateMachine_3105);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getDestroyElementCommand(DestroyElementRequest req) {
+ View view = (View)getHost().getModel();
+ CompositeTransactionalCommand cmd = new CompositeTransactionalCommand(getEditingDomain(), null);
+ cmd.setTransactionNestingEnabled(true);
+
+ EAnnotation annotation = view.getEAnnotation("Shortcut"); //$NON-NLS-1$
+ if(annotation == null) {
+ // there are indirectly referenced children, need extra commands: false
+ addDestroyShortcutsCommand(cmd, view);
+ // delete host element
+ List<EObject> todestroy = new ArrayList<EObject>();
+ todestroy.add(req.getElementToDestroy());
+ //cmd.add(new org.eclipse.gmf.runtime.emf.type.core.commands.DestroyElementCommand(req));
+ cmd.add(new EMFtoGMFCommandWrapper(new DeleteCommand(getEditingDomain(), todestroy)));
+ } else {
+ cmd.add(new org.eclipse.gmf.runtime.diagram.core.commands.DeleteCommand(getEditingDomain(), view));
+ }
+ return getGEFWrapper(cmd.reduce());
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/RealizationItemSemanticEditPolicy.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/RealizationItemSemanticEditPolicy.java
new file mode 100644
index 00000000000..bc1032b619a
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/RealizationItemSemanticEditPolicy.java
@@ -0,0 +1,259 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.policies;
+
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.commands.UnexecutableCommand;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.diagram.ui.commands.ICommandProxy;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientReferenceRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientRelationshipRequest;
+import org.eclipse.papyrus.diagram.composite.edit.commands.AbstractionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ComponentRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DependencyCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DeploymentCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InformationFlowCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InterfaceRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ManifestationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.SubstitutionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.UsageCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.parts.AbstractionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CommentAnnotatedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ComponentRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ConstraintConstrainedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DependencyEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DeploymentEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DurationObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InformationFlowEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InterfaceRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ManifestationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RoleBindingEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.SubstitutionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.TimeObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.UsageEditPart;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.service.edit.service.ElementEditServiceUtils;
+import org.eclipse.papyrus.service.edit.service.IElementEditService;
+
+/**
+ * @generated
+ */
+public class RealizationItemSemanticEditPolicy extends UMLBaseItemSemanticEditPolicy {
+
+ /**
+ * @generated
+ */
+ public RealizationItemSemanticEditPolicy() {
+ super(UMLElementTypes.Realization_4006);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getDestroyElementCommand(DestroyElementRequest req) {
+ EObject selectedEObject = req.getElementToDestroy();
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(selectedEObject);
+ if(provider != null) {
+ // Retrieve delete command from the Element Edit service
+ ICommand deleteCommand = provider.getEditCommand(req);
+
+ if(deleteCommand != null) {
+ return new ICommandProxy(deleteCommand);
+ }
+ }
+ return UnexecutableCommand.INSTANCE;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCreateRelationshipCommand(CreateRelationshipRequest req) {
+ Command command = req.getTarget() == null ? getStartCreateRelationshipCommand(req) : getCompleteCreateRelationshipCommand(req);
+ return command != null ? command : super.getCreateRelationshipCommand(req);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getStartCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCompleteCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return getGEFWrapper(new CommentAnnotatedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return getGEFWrapper(new ConstraintConstrainedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return getGEFWrapper(new TimeObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return getGEFWrapper(new DurationObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * Returns command to reorient EClass based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientRelationshipCommand(ReorientRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case ComponentRealizationEditPart.VISUAL_ID:
+ case InterfaceRealizationEditPart.VISUAL_ID:
+ case SubstitutionEditPart.VISUAL_ID:
+ case RealizationEditPart.VISUAL_ID:
+ case ManifestationEditPart.VISUAL_ID:
+ case AbstractionEditPart.VISUAL_ID:
+ case UsageEditPart.VISUAL_ID:
+ case DeploymentEditPart.VISUAL_ID:
+ case DependencyEditPart.VISUAL_ID:
+ case InformationFlowEditPart.VISUAL_ID:
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(req.getRelationship());
+ if(provider == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ // Retrieve re-orient command from the Element Edit service
+ ICommand reorientCommand = provider.getEditCommand(req);
+ if(reorientCommand == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ return getGEFWrapper(reorientCommand.reduce());
+ case RoleBindingEditPart.VISUAL_ID:
+ return getGEFWrapper(new RoleBindingReorientCommand(req));
+ }
+ return super.getReorientRelationshipCommand(req);
+ }
+
+ /**
+ * Returns command to reorient EReference based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientReferenceRelationshipCommand(ReorientReferenceRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case CommentAnnotatedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new CommentAnnotatedElementReorientCommand(req));
+ case ConstraintConstrainedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new ConstraintConstrainedElementReorientCommand(req));
+ case TimeObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new TimeObservationEventReorientCommand(req));
+ case DurationObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new DurationObservationEventReorientCommand(req));
+ }
+ return super.getReorientReferenceRelationshipCommand(req);
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/ReceptionItemSemanticEditPolicyCLN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/ReceptionItemSemanticEditPolicyCLN.java
new file mode 100644
index 00000000000..e612388559a
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/ReceptionItemSemanticEditPolicyCLN.java
@@ -0,0 +1,64 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.policies;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import org.eclipse.emf.ecore.EAnnotation;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.edit.command.DeleteCommand;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gmf.runtime.emf.commands.core.command.CompositeTransactionalCommand;
+import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.commands.wrappers.EMFtoGMFCommandWrapper;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+
+/**
+ * @generated
+ */
+public class ReceptionItemSemanticEditPolicyCLN extends UMLBaseItemSemanticEditPolicy {
+
+ /**
+ * @generated
+ */
+ public ReceptionItemSemanticEditPolicyCLN() {
+ super(UMLElementTypes.Reception_3100);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getDestroyElementCommand(DestroyElementRequest req) {
+ View view = (View)getHost().getModel();
+ CompositeTransactionalCommand cmd = new CompositeTransactionalCommand(getEditingDomain(), null);
+ cmd.setTransactionNestingEnabled(true);
+
+ EAnnotation annotation = view.getEAnnotation("Shortcut"); //$NON-NLS-1$
+ if(annotation == null) {
+ // there are indirectly referenced children, need extra commands: false
+ addDestroyShortcutsCommand(cmd, view);
+ // delete host element
+ List<EObject> todestroy = new ArrayList<EObject>();
+ todestroy.add(req.getElementToDestroy());
+ //cmd.add(new org.eclipse.gmf.runtime.emf.type.core.commands.DestroyElementCommand(req));
+ cmd.add(new EMFtoGMFCommandWrapper(new DeleteCommand(getEditingDomain(), todestroy)));
+ } else {
+ cmd.add(new org.eclipse.gmf.runtime.diagram.core.commands.DeleteCommand(getEditingDomain(), view));
+ }
+ return getGEFWrapper(cmd.reduce());
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/RepresentationItemSemanticEditPolicy.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/RepresentationItemSemanticEditPolicy.java
new file mode 100644
index 00000000000..9d3f8aff6db
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/RepresentationItemSemanticEditPolicy.java
@@ -0,0 +1,40 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.policies;
+
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gmf.runtime.emf.type.core.commands.DestroyReferenceCommand;
+import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyReferenceRequest;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+
+/**
+ * @generated
+ */
+public class RepresentationItemSemanticEditPolicy extends UMLBaseItemSemanticEditPolicy {
+
+ /**
+ * @generated
+ */
+ public RepresentationItemSemanticEditPolicy() {
+ super(UMLElementTypes.InformationItemRepresented_4020);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getDestroyReferenceCommand(DestroyReferenceRequest req) {
+ return getGEFWrapper(new DestroyReferenceCommand(req));
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/RoleBindingItemSemanticEditPolicy.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/RoleBindingItemSemanticEditPolicy.java
new file mode 100644
index 00000000000..7968d85322e
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/RoleBindingItemSemanticEditPolicy.java
@@ -0,0 +1,259 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.policies;
+
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.commands.UnexecutableCommand;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.diagram.ui.commands.ICommandProxy;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientReferenceRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientRelationshipRequest;
+import org.eclipse.papyrus.diagram.composite.edit.commands.AbstractionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ComponentRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DependencyCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DeploymentCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InformationFlowCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InterfaceRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ManifestationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.SubstitutionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.UsageCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.parts.AbstractionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CommentAnnotatedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ComponentRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ConstraintConstrainedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DependencyEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DeploymentEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DurationObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InformationFlowEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InterfaceRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ManifestationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RoleBindingEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.SubstitutionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.TimeObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.UsageEditPart;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.service.edit.service.ElementEditServiceUtils;
+import org.eclipse.papyrus.service.edit.service.IElementEditService;
+
+/**
+ * @generated
+ */
+public class RoleBindingItemSemanticEditPolicy extends UMLBaseItemSemanticEditPolicy {
+
+ /**
+ * @generated
+ */
+ public RoleBindingItemSemanticEditPolicy() {
+ super(UMLElementTypes.Dependency_4017);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getDestroyElementCommand(DestroyElementRequest req) {
+ EObject selectedEObject = req.getElementToDestroy();
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(selectedEObject);
+ if(provider != null) {
+ // Retrieve delete command from the Element Edit service
+ ICommand deleteCommand = provider.getEditCommand(req);
+
+ if(deleteCommand != null) {
+ return new ICommandProxy(deleteCommand);
+ }
+ }
+ return UnexecutableCommand.INSTANCE;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCreateRelationshipCommand(CreateRelationshipRequest req) {
+ Command command = req.getTarget() == null ? getStartCreateRelationshipCommand(req) : getCompleteCreateRelationshipCommand(req);
+ return command != null ? command : super.getCreateRelationshipCommand(req);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getStartCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCompleteCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return getGEFWrapper(new CommentAnnotatedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return getGEFWrapper(new ConstraintConstrainedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return getGEFWrapper(new TimeObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return getGEFWrapper(new DurationObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * Returns command to reorient EClass based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientRelationshipCommand(ReorientRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case ComponentRealizationEditPart.VISUAL_ID:
+ case InterfaceRealizationEditPart.VISUAL_ID:
+ case SubstitutionEditPart.VISUAL_ID:
+ case RealizationEditPart.VISUAL_ID:
+ case ManifestationEditPart.VISUAL_ID:
+ case AbstractionEditPart.VISUAL_ID:
+ case UsageEditPart.VISUAL_ID:
+ case DeploymentEditPart.VISUAL_ID:
+ case DependencyEditPart.VISUAL_ID:
+ case InformationFlowEditPart.VISUAL_ID:
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(req.getRelationship());
+ if(provider == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ // Retrieve re-orient command from the Element Edit service
+ ICommand reorientCommand = provider.getEditCommand(req);
+ if(reorientCommand == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ return getGEFWrapper(reorientCommand.reduce());
+ case RoleBindingEditPart.VISUAL_ID:
+ return getGEFWrapper(new RoleBindingReorientCommand(req));
+ }
+ return super.getReorientRelationshipCommand(req);
+ }
+
+ /**
+ * Returns command to reorient EReference based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientReferenceRelationshipCommand(ReorientReferenceRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case CommentAnnotatedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new CommentAnnotatedElementReorientCommand(req));
+ case ConstraintConstrainedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new ConstraintConstrainedElementReorientCommand(req));
+ case TimeObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new TimeObservationEventReorientCommand(req));
+ case DurationObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new DurationObservationEventReorientCommand(req));
+ }
+ return super.getReorientReferenceRelationshipCommand(req);
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/SendOperationEventItemSemanticEditPolicy.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/SendOperationEventItemSemanticEditPolicy.java
new file mode 100644
index 00000000000..e96a06d230f
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/SendOperationEventItemSemanticEditPolicy.java
@@ -0,0 +1,259 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.policies;
+
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.commands.UnexecutableCommand;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.diagram.ui.commands.ICommandProxy;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientReferenceRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientRelationshipRequest;
+import org.eclipse.papyrus.diagram.composite.edit.commands.AbstractionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ComponentRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DependencyCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DeploymentCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InformationFlowCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InterfaceRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ManifestationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.SubstitutionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.UsageCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.parts.AbstractionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CommentAnnotatedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ComponentRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ConstraintConstrainedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DependencyEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DeploymentEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DurationObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InformationFlowEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InterfaceRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ManifestationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RoleBindingEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.SubstitutionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.TimeObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.UsageEditPart;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.service.edit.service.ElementEditServiceUtils;
+import org.eclipse.papyrus.service.edit.service.IElementEditService;
+
+/**
+ * @generated
+ */
+public class SendOperationEventItemSemanticEditPolicy extends UMLBaseItemSemanticEditPolicy {
+
+ /**
+ * @generated
+ */
+ public SendOperationEventItemSemanticEditPolicy() {
+ super(UMLElementTypes.SendOperationEvent_2087);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getDestroyElementCommand(DestroyElementRequest req) {
+ EObject selectedEObject = req.getElementToDestroy();
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(selectedEObject);
+ if(provider != null) {
+ // Retrieve delete command from the Element Edit service
+ ICommand deleteCommand = provider.getEditCommand(req);
+
+ if(deleteCommand != null) {
+ return new ICommandProxy(deleteCommand);
+ }
+ }
+ return UnexecutableCommand.INSTANCE;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCreateRelationshipCommand(CreateRelationshipRequest req) {
+ Command command = req.getTarget() == null ? getStartCreateRelationshipCommand(req) : getCompleteCreateRelationshipCommand(req);
+ return command != null ? command : super.getCreateRelationshipCommand(req);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getStartCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCompleteCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return getGEFWrapper(new CommentAnnotatedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return getGEFWrapper(new ConstraintConstrainedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return getGEFWrapper(new TimeObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return getGEFWrapper(new DurationObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * Returns command to reorient EClass based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientRelationshipCommand(ReorientRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case ComponentRealizationEditPart.VISUAL_ID:
+ case InterfaceRealizationEditPart.VISUAL_ID:
+ case SubstitutionEditPart.VISUAL_ID:
+ case RealizationEditPart.VISUAL_ID:
+ case ManifestationEditPart.VISUAL_ID:
+ case AbstractionEditPart.VISUAL_ID:
+ case UsageEditPart.VISUAL_ID:
+ case DeploymentEditPart.VISUAL_ID:
+ case DependencyEditPart.VISUAL_ID:
+ case InformationFlowEditPart.VISUAL_ID:
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(req.getRelationship());
+ if(provider == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ // Retrieve re-orient command from the Element Edit service
+ ICommand reorientCommand = provider.getEditCommand(req);
+ if(reorientCommand == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ return getGEFWrapper(reorientCommand.reduce());
+ case RoleBindingEditPart.VISUAL_ID:
+ return getGEFWrapper(new RoleBindingReorientCommand(req));
+ }
+ return super.getReorientRelationshipCommand(req);
+ }
+
+ /**
+ * Returns command to reorient EReference based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientReferenceRelationshipCommand(ReorientReferenceRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case CommentAnnotatedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new CommentAnnotatedElementReorientCommand(req));
+ case ConstraintConstrainedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new ConstraintConstrainedElementReorientCommand(req));
+ case TimeObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new TimeObservationEventReorientCommand(req));
+ case DurationObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new DurationObservationEventReorientCommand(req));
+ }
+ return super.getReorientReferenceRelationshipCommand(req);
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/SendSignalEventItemSemanticEditPolicy.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/SendSignalEventItemSemanticEditPolicy.java
new file mode 100644
index 00000000000..fd44dbdb7be
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/SendSignalEventItemSemanticEditPolicy.java
@@ -0,0 +1,259 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.policies;
+
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.commands.UnexecutableCommand;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.diagram.ui.commands.ICommandProxy;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientReferenceRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientRelationshipRequest;
+import org.eclipse.papyrus.diagram.composite.edit.commands.AbstractionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ComponentRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DependencyCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DeploymentCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InformationFlowCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InterfaceRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ManifestationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.SubstitutionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.UsageCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.parts.AbstractionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CommentAnnotatedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ComponentRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ConstraintConstrainedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DependencyEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DeploymentEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DurationObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InformationFlowEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InterfaceRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ManifestationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RoleBindingEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.SubstitutionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.TimeObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.UsageEditPart;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.service.edit.service.ElementEditServiceUtils;
+import org.eclipse.papyrus.service.edit.service.IElementEditService;
+
+/**
+ * @generated
+ */
+public class SendSignalEventItemSemanticEditPolicy extends UMLBaseItemSemanticEditPolicy {
+
+ /**
+ * @generated
+ */
+ public SendSignalEventItemSemanticEditPolicy() {
+ super(UMLElementTypes.SendSignalEvent_2086);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getDestroyElementCommand(DestroyElementRequest req) {
+ EObject selectedEObject = req.getElementToDestroy();
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(selectedEObject);
+ if(provider != null) {
+ // Retrieve delete command from the Element Edit service
+ ICommand deleteCommand = provider.getEditCommand(req);
+
+ if(deleteCommand != null) {
+ return new ICommandProxy(deleteCommand);
+ }
+ }
+ return UnexecutableCommand.INSTANCE;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCreateRelationshipCommand(CreateRelationshipRequest req) {
+ Command command = req.getTarget() == null ? getStartCreateRelationshipCommand(req) : getCompleteCreateRelationshipCommand(req);
+ return command != null ? command : super.getCreateRelationshipCommand(req);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getStartCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCompleteCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return getGEFWrapper(new CommentAnnotatedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return getGEFWrapper(new ConstraintConstrainedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return getGEFWrapper(new TimeObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return getGEFWrapper(new DurationObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * Returns command to reorient EClass based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientRelationshipCommand(ReorientRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case ComponentRealizationEditPart.VISUAL_ID:
+ case InterfaceRealizationEditPart.VISUAL_ID:
+ case SubstitutionEditPart.VISUAL_ID:
+ case RealizationEditPart.VISUAL_ID:
+ case ManifestationEditPart.VISUAL_ID:
+ case AbstractionEditPart.VISUAL_ID:
+ case UsageEditPart.VISUAL_ID:
+ case DeploymentEditPart.VISUAL_ID:
+ case DependencyEditPart.VISUAL_ID:
+ case InformationFlowEditPart.VISUAL_ID:
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(req.getRelationship());
+ if(provider == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ // Retrieve re-orient command from the Element Edit service
+ ICommand reorientCommand = provider.getEditCommand(req);
+ if(reorientCommand == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ return getGEFWrapper(reorientCommand.reduce());
+ case RoleBindingEditPart.VISUAL_ID:
+ return getGEFWrapper(new RoleBindingReorientCommand(req));
+ }
+ return super.getReorientRelationshipCommand(req);
+ }
+
+ /**
+ * Returns command to reorient EReference based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientReferenceRelationshipCommand(ReorientReferenceRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case CommentAnnotatedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new CommentAnnotatedElementReorientCommand(req));
+ case ConstraintConstrainedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new ConstraintConstrainedElementReorientCommand(req));
+ case TimeObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new TimeObservationEventReorientCommand(req));
+ case DurationObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new DurationObservationEventReorientCommand(req));
+ }
+ return super.getReorientReferenceRelationshipCommand(req);
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/SignalEventItemSemanticEditPolicy.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/SignalEventItemSemanticEditPolicy.java
new file mode 100644
index 00000000000..21eb9e83625
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/SignalEventItemSemanticEditPolicy.java
@@ -0,0 +1,259 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.policies;
+
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.commands.UnexecutableCommand;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.diagram.ui.commands.ICommandProxy;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientReferenceRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientRelationshipRequest;
+import org.eclipse.papyrus.diagram.composite.edit.commands.AbstractionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ComponentRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DependencyCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DeploymentCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InformationFlowCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InterfaceRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ManifestationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.SubstitutionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.UsageCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.parts.AbstractionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CommentAnnotatedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ComponentRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ConstraintConstrainedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DependencyEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DeploymentEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DurationObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InformationFlowEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InterfaceRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ManifestationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RoleBindingEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.SubstitutionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.TimeObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.UsageEditPart;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.service.edit.service.ElementEditServiceUtils;
+import org.eclipse.papyrus.service.edit.service.IElementEditService;
+
+/**
+ * @generated
+ */
+public class SignalEventItemSemanticEditPolicy extends UMLBaseItemSemanticEditPolicy {
+
+ /**
+ * @generated
+ */
+ public SignalEventItemSemanticEditPolicy() {
+ super(UMLElementTypes.SignalEvent_2083);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getDestroyElementCommand(DestroyElementRequest req) {
+ EObject selectedEObject = req.getElementToDestroy();
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(selectedEObject);
+ if(provider != null) {
+ // Retrieve delete command from the Element Edit service
+ ICommand deleteCommand = provider.getEditCommand(req);
+
+ if(deleteCommand != null) {
+ return new ICommandProxy(deleteCommand);
+ }
+ }
+ return UnexecutableCommand.INSTANCE;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCreateRelationshipCommand(CreateRelationshipRequest req) {
+ Command command = req.getTarget() == null ? getStartCreateRelationshipCommand(req) : getCompleteCreateRelationshipCommand(req);
+ return command != null ? command : super.getCreateRelationshipCommand(req);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getStartCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCompleteCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return getGEFWrapper(new CommentAnnotatedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return getGEFWrapper(new ConstraintConstrainedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return getGEFWrapper(new TimeObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return getGEFWrapper(new DurationObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * Returns command to reorient EClass based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientRelationshipCommand(ReorientRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case ComponentRealizationEditPart.VISUAL_ID:
+ case InterfaceRealizationEditPart.VISUAL_ID:
+ case SubstitutionEditPart.VISUAL_ID:
+ case RealizationEditPart.VISUAL_ID:
+ case ManifestationEditPart.VISUAL_ID:
+ case AbstractionEditPart.VISUAL_ID:
+ case UsageEditPart.VISUAL_ID:
+ case DeploymentEditPart.VISUAL_ID:
+ case DependencyEditPart.VISUAL_ID:
+ case InformationFlowEditPart.VISUAL_ID:
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(req.getRelationship());
+ if(provider == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ // Retrieve re-orient command from the Element Edit service
+ ICommand reorientCommand = provider.getEditCommand(req);
+ if(reorientCommand == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ return getGEFWrapper(reorientCommand.reduce());
+ case RoleBindingEditPart.VISUAL_ID:
+ return getGEFWrapper(new RoleBindingReorientCommand(req));
+ }
+ return super.getReorientRelationshipCommand(req);
+ }
+
+ /**
+ * Returns command to reorient EReference based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientReferenceRelationshipCommand(ReorientReferenceRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case CommentAnnotatedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new CommentAnnotatedElementReorientCommand(req));
+ case ConstraintConstrainedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new ConstraintConstrainedElementReorientCommand(req));
+ case TimeObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new TimeObservationEventReorientCommand(req));
+ case DurationObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new DurationObservationEventReorientCommand(req));
+ }
+ return super.getReorientReferenceRelationshipCommand(req);
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/SignalItemSemanticEditPolicy.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/SignalItemSemanticEditPolicy.java
new file mode 100644
index 00000000000..392f85a2f16
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/SignalItemSemanticEditPolicy.java
@@ -0,0 +1,279 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.policies;
+
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.commands.UnexecutableCommand;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.diagram.ui.commands.ICommandProxy;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientReferenceRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientRelationshipRequest;
+import org.eclipse.papyrus.diagram.composite.edit.commands.AbstractionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ComponentRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DependencyCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DeploymentCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.GeneralizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InformationFlowCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InterfaceRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ManifestationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RepresentationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RepresentationReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.SubstitutionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.UsageCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.parts.AbstractionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CommentAnnotatedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ComponentRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ConstraintConstrainedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DependencyEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DeploymentEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DurationObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.GeneralizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InformationFlowEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InterfaceRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ManifestationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RepresentationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RoleBindingEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.SubstitutionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.TimeObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.UsageEditPart;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.service.edit.service.ElementEditServiceUtils;
+import org.eclipse.papyrus.service.edit.service.IElementEditService;
+
+/**
+ * @generated
+ */
+public class SignalItemSemanticEditPolicy extends UMLBaseItemSemanticEditPolicy {
+
+ /**
+ * @generated
+ */
+ public SignalItemSemanticEditPolicy() {
+ super(UMLElementTypes.Signal_2081);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getDestroyElementCommand(DestroyElementRequest req) {
+ EObject selectedEObject = req.getElementToDestroy();
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(selectedEObject);
+ if(provider != null) {
+ // Retrieve delete command from the Element Edit service
+ ICommand deleteCommand = provider.getEditCommand(req);
+
+ if(deleteCommand != null) {
+ return new ICommandProxy(deleteCommand);
+ }
+ }
+ return UnexecutableCommand.INSTANCE;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCreateRelationshipCommand(CreateRelationshipRequest req) {
+ Command command = req.getTarget() == null ? getStartCreateRelationshipCommand(req) : getCompleteCreateRelationshipCommand(req);
+ return command != null ? command : super.getCreateRelationshipCommand(req);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getStartCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Generalization_4015 == req.getElementType()) {
+ return getGEFWrapper(new GeneralizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.InformationItemRepresented_4020 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCompleteCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return getGEFWrapper(new CommentAnnotatedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return getGEFWrapper(new ConstraintConstrainedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Generalization_4015 == req.getElementType()) {
+ return getGEFWrapper(new GeneralizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return getGEFWrapper(new TimeObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return getGEFWrapper(new DurationObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InformationItemRepresented_4020 == req.getElementType()) {
+ return getGEFWrapper(new RepresentationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * Returns command to reorient EClass based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientRelationshipCommand(ReorientRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case ComponentRealizationEditPart.VISUAL_ID:
+ case InterfaceRealizationEditPart.VISUAL_ID:
+ case SubstitutionEditPart.VISUAL_ID:
+ case RealizationEditPart.VISUAL_ID:
+ case ManifestationEditPart.VISUAL_ID:
+ case AbstractionEditPart.VISUAL_ID:
+ case UsageEditPart.VISUAL_ID:
+ case DeploymentEditPart.VISUAL_ID:
+ case DependencyEditPart.VISUAL_ID:
+ case GeneralizationEditPart.VISUAL_ID:
+ case InformationFlowEditPart.VISUAL_ID:
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(req.getRelationship());
+ if(provider == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ // Retrieve re-orient command from the Element Edit service
+ ICommand reorientCommand = provider.getEditCommand(req);
+ if(reorientCommand == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ return getGEFWrapper(reorientCommand.reduce());
+ case RoleBindingEditPart.VISUAL_ID:
+ return getGEFWrapper(new RoleBindingReorientCommand(req));
+ }
+ return super.getReorientRelationshipCommand(req);
+ }
+
+ /**
+ * Returns command to reorient EReference based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientReferenceRelationshipCommand(ReorientReferenceRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case CommentAnnotatedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new CommentAnnotatedElementReorientCommand(req));
+ case ConstraintConstrainedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new ConstraintConstrainedElementReorientCommand(req));
+ case TimeObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new TimeObservationEventReorientCommand(req));
+ case DurationObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new DurationObservationEventReorientCommand(req));
+ case RepresentationEditPart.VISUAL_ID:
+ return getGEFWrapper(new RepresentationReorientCommand(req));
+ }
+ return super.getReorientReferenceRelationshipCommand(req);
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/SignalItemSemanticEditPolicyCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/SignalItemSemanticEditPolicyCN.java
new file mode 100644
index 00000000000..014aff2501b
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/SignalItemSemanticEditPolicyCN.java
@@ -0,0 +1,279 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.policies;
+
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.commands.UnexecutableCommand;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.diagram.ui.commands.ICommandProxy;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientReferenceRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientRelationshipRequest;
+import org.eclipse.papyrus.diagram.composite.edit.commands.AbstractionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ComponentRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DependencyCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DeploymentCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.GeneralizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InformationFlowCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InterfaceRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ManifestationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RepresentationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RepresentationReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.SubstitutionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.UsageCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.parts.AbstractionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CommentAnnotatedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ComponentRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ConstraintConstrainedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DependencyEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DeploymentEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DurationObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.GeneralizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InformationFlowEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InterfaceRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ManifestationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RepresentationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RoleBindingEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.SubstitutionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.TimeObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.UsageEditPart;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.service.edit.service.ElementEditServiceUtils;
+import org.eclipse.papyrus.service.edit.service.IElementEditService;
+
+/**
+ * @generated
+ */
+public class SignalItemSemanticEditPolicyCN extends UMLBaseItemSemanticEditPolicy {
+
+ /**
+ * @generated
+ */
+ public SignalItemSemanticEditPolicyCN() {
+ super(UMLElementTypes.Signal_3095);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getDestroyElementCommand(DestroyElementRequest req) {
+ EObject selectedEObject = req.getElementToDestroy();
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(selectedEObject);
+ if(provider != null) {
+ // Retrieve delete command from the Element Edit service
+ ICommand deleteCommand = provider.getEditCommand(req);
+
+ if(deleteCommand != null) {
+ return new ICommandProxy(deleteCommand);
+ }
+ }
+ return UnexecutableCommand.INSTANCE;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCreateRelationshipCommand(CreateRelationshipRequest req) {
+ Command command = req.getTarget() == null ? getStartCreateRelationshipCommand(req) : getCompleteCreateRelationshipCommand(req);
+ return command != null ? command : super.getCreateRelationshipCommand(req);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getStartCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Generalization_4015 == req.getElementType()) {
+ return getGEFWrapper(new GeneralizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.InformationItemRepresented_4020 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCompleteCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return getGEFWrapper(new CommentAnnotatedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return getGEFWrapper(new ConstraintConstrainedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Generalization_4015 == req.getElementType()) {
+ return getGEFWrapper(new GeneralizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return getGEFWrapper(new TimeObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return getGEFWrapper(new DurationObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InformationItemRepresented_4020 == req.getElementType()) {
+ return getGEFWrapper(new RepresentationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * Returns command to reorient EClass based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientRelationshipCommand(ReorientRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case ComponentRealizationEditPart.VISUAL_ID:
+ case InterfaceRealizationEditPart.VISUAL_ID:
+ case SubstitutionEditPart.VISUAL_ID:
+ case RealizationEditPart.VISUAL_ID:
+ case ManifestationEditPart.VISUAL_ID:
+ case AbstractionEditPart.VISUAL_ID:
+ case UsageEditPart.VISUAL_ID:
+ case DeploymentEditPart.VISUAL_ID:
+ case DependencyEditPart.VISUAL_ID:
+ case GeneralizationEditPart.VISUAL_ID:
+ case InformationFlowEditPart.VISUAL_ID:
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(req.getRelationship());
+ if(provider == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ // Retrieve re-orient command from the Element Edit service
+ ICommand reorientCommand = provider.getEditCommand(req);
+ if(reorientCommand == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ return getGEFWrapper(reorientCommand.reduce());
+ case RoleBindingEditPart.VISUAL_ID:
+ return getGEFWrapper(new RoleBindingReorientCommand(req));
+ }
+ return super.getReorientRelationshipCommand(req);
+ }
+
+ /**
+ * Returns command to reorient EReference based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientReferenceRelationshipCommand(ReorientReferenceRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case CommentAnnotatedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new CommentAnnotatedElementReorientCommand(req));
+ case ConstraintConstrainedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new ConstraintConstrainedElementReorientCommand(req));
+ case TimeObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new TimeObservationEventReorientCommand(req));
+ case DurationObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new DurationObservationEventReorientCommand(req));
+ case RepresentationEditPart.VISUAL_ID:
+ return getGEFWrapper(new RepresentationReorientCommand(req));
+ }
+ return super.getReorientReferenceRelationshipCommand(req);
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/StateMachineCompositeCompartmentItemSemanticEditPolicy.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/StateMachineCompositeCompartmentItemSemanticEditPolicy.java
new file mode 100644
index 00000000000..a785a51bc9c
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/StateMachineCompositeCompartmentItemSemanticEditPolicy.java
@@ -0,0 +1,167 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.policies;
+
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ActivityCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ActorCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ArtifactCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ClassCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CollaborationCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CollaborationUseCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ComponentCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DataTypeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DeploymentSpecificationCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DeviceCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationConstraintCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.EnumerationCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ExecutionEnvironmentCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.FunctionBehaviorCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InformationItemCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InteractionCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InteractionConstraintCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InterfaceCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.IntervalConstraintCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.NodeCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.OpaqueBehaviorCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ParameterCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.PortCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.PrimitiveTypeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.PropertyPartCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ProtocolStateMachineCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.SignalCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.StateMachineCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeConstraintCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.UseCaseCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+
+/**
+ * @generated
+ */
+public class StateMachineCompositeCompartmentItemSemanticEditPolicy extends UMLBaseItemSemanticEditPolicy {
+
+ /**
+ * @generated
+ */
+ public StateMachineCompositeCompartmentItemSemanticEditPolicy() {
+ super(UMLElementTypes.StateMachine_2063);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCreateCommand(CreateElementRequest req) {
+ if(UMLElementTypes.Port_3069 == req.getElementType()) {
+ return getGEFWrapper(new PortCreateCommand(req));
+ }
+ if(UMLElementTypes.Parameter_3088 == req.getElementType()) {
+ return getGEFWrapper(new ParameterCreateCommand(req));
+ }
+ if(UMLElementTypes.Property_3070 == req.getElementType()) {
+ return getGEFWrapper(new PropertyPartCreateCommandCN(req));
+ }
+ if(UMLElementTypes.CollaborationUse_3071 == req.getElementType()) {
+ return getGEFWrapper(new CollaborationUseCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Activity_3072 == req.getElementType()) {
+ return getGEFWrapper(new ActivityCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Interaction_3073 == req.getElementType()) {
+ return getGEFWrapper(new InteractionCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.ProtocolStateMachine_3074 == req.getElementType()) {
+ return getGEFWrapper(new ProtocolStateMachineCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.StateMachine_3075 == req.getElementType()) {
+ return getGEFWrapper(new StateMachineCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.FunctionBehavior_3076 == req.getElementType()) {
+ return getGEFWrapper(new FunctionBehaviorCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.OpaqueBehavior_3077 == req.getElementType()) {
+ return getGEFWrapper(new OpaqueBehaviorCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Component_3081 == req.getElementType()) {
+ return getGEFWrapper(new ComponentCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Device_3082 == req.getElementType()) {
+ return getGEFWrapper(new DeviceCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.ExecutionEnvironment_3083 == req.getElementType()) {
+ return getGEFWrapper(new ExecutionEnvironmentCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Node_3084 == req.getElementType()) {
+ return getGEFWrapper(new NodeCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Class_3085 == req.getElementType()) {
+ return getGEFWrapper(new ClassCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Collaboration_3086 == req.getElementType()) {
+ return getGEFWrapper(new CollaborationCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Interface_3087 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceCreateCommandCN(req));
+ }
+ if(UMLElementTypes.PrimitiveType_3078 == req.getElementType()) {
+ return getGEFWrapper(new PrimitiveTypeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Enumeration_3079 == req.getElementType()) {
+ return getGEFWrapper(new EnumerationCreateCommandCN(req));
+ }
+ if(UMLElementTypes.DataType_3080 == req.getElementType()) {
+ return getGEFWrapper(new DataTypeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Actor_3091 == req.getElementType()) {
+ return getGEFWrapper(new ActorCreateCommandCN(req));
+ }
+ if(UMLElementTypes.DeploymentSpecification_3092 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentSpecificationCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Artifact_3093 == req.getElementType()) {
+ return getGEFWrapper(new ArtifactCreateCommandCN(req));
+ }
+ if(UMLElementTypes.InformationItem_3094 == req.getElementType()) {
+ return getGEFWrapper(new InformationItemCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Signal_3095 == req.getElementType()) {
+ return getGEFWrapper(new SignalCreateCommandCN(req));
+ }
+ if(UMLElementTypes.UseCase_3096 == req.getElementType()) {
+ return getGEFWrapper(new UseCaseCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Comment_3097 == req.getElementType()) {
+ return getGEFWrapper(new CommentCreateCommandCN(req));
+ }
+ if(UMLElementTypes.DurationConstraint_3116 == req.getElementType()) {
+ return getGEFWrapper(new DurationConstraintCreateCommandCN(req));
+ }
+ if(UMLElementTypes.TimeConstraint_3117 == req.getElementType()) {
+ return getGEFWrapper(new TimeConstraintCreateCommandCN(req));
+ }
+ if(UMLElementTypes.IntervalConstraint_3118 == req.getElementType()) {
+ return getGEFWrapper(new IntervalConstraintCreateCommandCN(req));
+ }
+ if(UMLElementTypes.InteractionConstraint_3119 == req.getElementType()) {
+ return getGEFWrapper(new InteractionConstraintCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Constraint_3120 == req.getElementType()) {
+ return getGEFWrapper(new ConstraintCreateCommandCN(req));
+ }
+ return super.getCreateCommand(req);
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/StateMachineCompositeCompartmentItemSemanticEditPolicyCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/StateMachineCompositeCompartmentItemSemanticEditPolicyCN.java
new file mode 100644
index 00000000000..b625e23b6e9
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/StateMachineCompositeCompartmentItemSemanticEditPolicyCN.java
@@ -0,0 +1,167 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.policies;
+
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ActivityCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ActorCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ArtifactCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ClassCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CollaborationCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CollaborationUseCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ComponentCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DataTypeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DeploymentSpecificationCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DeviceCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationConstraintCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.EnumerationCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ExecutionEnvironmentCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.FunctionBehaviorCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InformationItemCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InteractionCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InteractionConstraintCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InterfaceCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.IntervalConstraintCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.NodeCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.OpaqueBehaviorCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ParameterCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.PortCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.PrimitiveTypeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.PropertyPartCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ProtocolStateMachineCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.SignalCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.StateMachineCompositeCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeConstraintCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.edit.commands.UseCaseCreateCommandCN;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+
+/**
+ * @generated
+ */
+public class StateMachineCompositeCompartmentItemSemanticEditPolicyCN extends UMLBaseItemSemanticEditPolicy {
+
+ /**
+ * @generated
+ */
+ public StateMachineCompositeCompartmentItemSemanticEditPolicyCN() {
+ super(UMLElementTypes.StateMachine_3075);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCreateCommand(CreateElementRequest req) {
+ if(UMLElementTypes.Port_3069 == req.getElementType()) {
+ return getGEFWrapper(new PortCreateCommand(req));
+ }
+ if(UMLElementTypes.Parameter_3088 == req.getElementType()) {
+ return getGEFWrapper(new ParameterCreateCommand(req));
+ }
+ if(UMLElementTypes.Property_3070 == req.getElementType()) {
+ return getGEFWrapper(new PropertyPartCreateCommandCN(req));
+ }
+ if(UMLElementTypes.CollaborationUse_3071 == req.getElementType()) {
+ return getGEFWrapper(new CollaborationUseCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Activity_3072 == req.getElementType()) {
+ return getGEFWrapper(new ActivityCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Interaction_3073 == req.getElementType()) {
+ return getGEFWrapper(new InteractionCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.ProtocolStateMachine_3074 == req.getElementType()) {
+ return getGEFWrapper(new ProtocolStateMachineCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.StateMachine_3075 == req.getElementType()) {
+ return getGEFWrapper(new StateMachineCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.FunctionBehavior_3076 == req.getElementType()) {
+ return getGEFWrapper(new FunctionBehaviorCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.OpaqueBehavior_3077 == req.getElementType()) {
+ return getGEFWrapper(new OpaqueBehaviorCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Component_3081 == req.getElementType()) {
+ return getGEFWrapper(new ComponentCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Device_3082 == req.getElementType()) {
+ return getGEFWrapper(new DeviceCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.ExecutionEnvironment_3083 == req.getElementType()) {
+ return getGEFWrapper(new ExecutionEnvironmentCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Node_3084 == req.getElementType()) {
+ return getGEFWrapper(new NodeCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Class_3085 == req.getElementType()) {
+ return getGEFWrapper(new ClassCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Collaboration_3086 == req.getElementType()) {
+ return getGEFWrapper(new CollaborationCompositeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Interface_3087 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceCreateCommandCN(req));
+ }
+ if(UMLElementTypes.PrimitiveType_3078 == req.getElementType()) {
+ return getGEFWrapper(new PrimitiveTypeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Enumeration_3079 == req.getElementType()) {
+ return getGEFWrapper(new EnumerationCreateCommandCN(req));
+ }
+ if(UMLElementTypes.DataType_3080 == req.getElementType()) {
+ return getGEFWrapper(new DataTypeCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Actor_3091 == req.getElementType()) {
+ return getGEFWrapper(new ActorCreateCommandCN(req));
+ }
+ if(UMLElementTypes.DeploymentSpecification_3092 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentSpecificationCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Artifact_3093 == req.getElementType()) {
+ return getGEFWrapper(new ArtifactCreateCommandCN(req));
+ }
+ if(UMLElementTypes.InformationItem_3094 == req.getElementType()) {
+ return getGEFWrapper(new InformationItemCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Signal_3095 == req.getElementType()) {
+ return getGEFWrapper(new SignalCreateCommandCN(req));
+ }
+ if(UMLElementTypes.UseCase_3096 == req.getElementType()) {
+ return getGEFWrapper(new UseCaseCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Comment_3097 == req.getElementType()) {
+ return getGEFWrapper(new CommentCreateCommandCN(req));
+ }
+ if(UMLElementTypes.DurationConstraint_3116 == req.getElementType()) {
+ return getGEFWrapper(new DurationConstraintCreateCommandCN(req));
+ }
+ if(UMLElementTypes.TimeConstraint_3117 == req.getElementType()) {
+ return getGEFWrapper(new TimeConstraintCreateCommandCN(req));
+ }
+ if(UMLElementTypes.IntervalConstraint_3118 == req.getElementType()) {
+ return getGEFWrapper(new IntervalConstraintCreateCommandCN(req));
+ }
+ if(UMLElementTypes.InteractionConstraint_3119 == req.getElementType()) {
+ return getGEFWrapper(new InteractionConstraintCreateCommandCN(req));
+ }
+ if(UMLElementTypes.Constraint_3120 == req.getElementType()) {
+ return getGEFWrapper(new ConstraintCreateCommandCN(req));
+ }
+ return super.getCreateCommand(req);
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/StateMachineCompositeItemSemanticEditPolicy.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/StateMachineCompositeItemSemanticEditPolicy.java
new file mode 100644
index 00000000000..cfcb64d49fd
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/StateMachineCompositeItemSemanticEditPolicy.java
@@ -0,0 +1,295 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.policies;
+
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.commands.UnexecutableCommand;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.diagram.ui.commands.ICommandProxy;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientReferenceRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientRelationshipRequest;
+import org.eclipse.papyrus.diagram.composite.edit.commands.AbstractionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ComponentRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DependencyCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DeploymentCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.GeneralizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InformationFlowCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InterfaceRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ManifestationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ParameterCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.PortCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RepresentationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RepresentationReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.SubstitutionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.UsageCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.parts.AbstractionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CommentAnnotatedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ComponentRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ConstraintConstrainedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DependencyEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DeploymentEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DurationObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.GeneralizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InformationFlowEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InterfaceRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ManifestationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RepresentationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RoleBindingEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.SubstitutionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.TimeObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.UsageEditPart;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.service.edit.service.ElementEditServiceUtils;
+import org.eclipse.papyrus.service.edit.service.IElementEditService;
+
+/**
+ * @generated
+ */
+public class StateMachineCompositeItemSemanticEditPolicy extends UMLBaseItemSemanticEditPolicy {
+
+ /**
+ * @generated
+ */
+ public StateMachineCompositeItemSemanticEditPolicy() {
+ super(UMLElementTypes.StateMachine_2063);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCreateCommand(CreateElementRequest req) {
+ if(UMLElementTypes.Port_3069 == req.getElementType()) {
+ return getGEFWrapper(new PortCreateCommand(req));
+ }
+ if(UMLElementTypes.Parameter_3088 == req.getElementType()) {
+ return getGEFWrapper(new ParameterCreateCommand(req));
+ }
+ return super.getCreateCommand(req);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getDestroyElementCommand(DestroyElementRequest req) {
+ EObject selectedEObject = req.getElementToDestroy();
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(selectedEObject);
+ if(provider != null) {
+ // Retrieve delete command from the Element Edit service
+ ICommand deleteCommand = provider.getEditCommand(req);
+
+ if(deleteCommand != null) {
+ return new ICommandProxy(deleteCommand);
+ }
+ }
+ return UnexecutableCommand.INSTANCE;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCreateRelationshipCommand(CreateRelationshipRequest req) {
+ Command command = req.getTarget() == null ? getStartCreateRelationshipCommand(req) : getCompleteCreateRelationshipCommand(req);
+ return command != null ? command : super.getCreateRelationshipCommand(req);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getStartCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Generalization_4015 == req.getElementType()) {
+ return getGEFWrapper(new GeneralizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.InformationItemRepresented_4020 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCompleteCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return getGEFWrapper(new CommentAnnotatedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return getGEFWrapper(new ConstraintConstrainedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Generalization_4015 == req.getElementType()) {
+ return getGEFWrapper(new GeneralizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return getGEFWrapper(new TimeObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return getGEFWrapper(new DurationObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InformationItemRepresented_4020 == req.getElementType()) {
+ return getGEFWrapper(new RepresentationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * Returns command to reorient EClass based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientRelationshipCommand(ReorientRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case ComponentRealizationEditPart.VISUAL_ID:
+ case InterfaceRealizationEditPart.VISUAL_ID:
+ case SubstitutionEditPart.VISUAL_ID:
+ case RealizationEditPart.VISUAL_ID:
+ case ManifestationEditPart.VISUAL_ID:
+ case AbstractionEditPart.VISUAL_ID:
+ case UsageEditPart.VISUAL_ID:
+ case DeploymentEditPart.VISUAL_ID:
+ case DependencyEditPart.VISUAL_ID:
+ case GeneralizationEditPart.VISUAL_ID:
+ case InformationFlowEditPart.VISUAL_ID:
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(req.getRelationship());
+ if(provider == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ // Retrieve re-orient command from the Element Edit service
+ ICommand reorientCommand = provider.getEditCommand(req);
+ if(reorientCommand == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ return getGEFWrapper(reorientCommand.reduce());
+ case RoleBindingEditPart.VISUAL_ID:
+ return getGEFWrapper(new RoleBindingReorientCommand(req));
+ }
+ return super.getReorientRelationshipCommand(req);
+ }
+
+ /**
+ * Returns command to reorient EReference based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientReferenceRelationshipCommand(ReorientReferenceRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case CommentAnnotatedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new CommentAnnotatedElementReorientCommand(req));
+ case ConstraintConstrainedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new ConstraintConstrainedElementReorientCommand(req));
+ case TimeObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new TimeObservationEventReorientCommand(req));
+ case DurationObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new DurationObservationEventReorientCommand(req));
+ case RepresentationEditPart.VISUAL_ID:
+ return getGEFWrapper(new RepresentationReorientCommand(req));
+ }
+ return super.getReorientReferenceRelationshipCommand(req);
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/StateMachineCompositeItemSemanticEditPolicyCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/StateMachineCompositeItemSemanticEditPolicyCN.java
new file mode 100644
index 00000000000..d70c954c0e1
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/StateMachineCompositeItemSemanticEditPolicyCN.java
@@ -0,0 +1,295 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.policies;
+
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.commands.UnexecutableCommand;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.diagram.ui.commands.ICommandProxy;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientReferenceRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientRelationshipRequest;
+import org.eclipse.papyrus.diagram.composite.edit.commands.AbstractionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ComponentRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DependencyCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DeploymentCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.GeneralizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InformationFlowCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InterfaceRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ManifestationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ParameterCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.PortCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RepresentationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RepresentationReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.SubstitutionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.UsageCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.parts.AbstractionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CommentAnnotatedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ComponentRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ConstraintConstrainedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DependencyEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DeploymentEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DurationObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.GeneralizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InformationFlowEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InterfaceRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ManifestationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RepresentationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RoleBindingEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.SubstitutionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.TimeObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.UsageEditPart;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.service.edit.service.ElementEditServiceUtils;
+import org.eclipse.papyrus.service.edit.service.IElementEditService;
+
+/**
+ * @generated
+ */
+public class StateMachineCompositeItemSemanticEditPolicyCN extends UMLBaseItemSemanticEditPolicy {
+
+ /**
+ * @generated
+ */
+ public StateMachineCompositeItemSemanticEditPolicyCN() {
+ super(UMLElementTypes.StateMachine_3075);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCreateCommand(CreateElementRequest req) {
+ if(UMLElementTypes.Port_3069 == req.getElementType()) {
+ return getGEFWrapper(new PortCreateCommand(req));
+ }
+ if(UMLElementTypes.Parameter_3088 == req.getElementType()) {
+ return getGEFWrapper(new ParameterCreateCommand(req));
+ }
+ return super.getCreateCommand(req);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getDestroyElementCommand(DestroyElementRequest req) {
+ EObject selectedEObject = req.getElementToDestroy();
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(selectedEObject);
+ if(provider != null) {
+ // Retrieve delete command from the Element Edit service
+ ICommand deleteCommand = provider.getEditCommand(req);
+
+ if(deleteCommand != null) {
+ return new ICommandProxy(deleteCommand);
+ }
+ }
+ return UnexecutableCommand.INSTANCE;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCreateRelationshipCommand(CreateRelationshipRequest req) {
+ Command command = req.getTarget() == null ? getStartCreateRelationshipCommand(req) : getCompleteCreateRelationshipCommand(req);
+ return command != null ? command : super.getCreateRelationshipCommand(req);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getStartCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Generalization_4015 == req.getElementType()) {
+ return getGEFWrapper(new GeneralizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.InformationItemRepresented_4020 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCompleteCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return getGEFWrapper(new CommentAnnotatedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return getGEFWrapper(new ConstraintConstrainedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Generalization_4015 == req.getElementType()) {
+ return getGEFWrapper(new GeneralizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return getGEFWrapper(new TimeObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return getGEFWrapper(new DurationObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InformationItemRepresented_4020 == req.getElementType()) {
+ return getGEFWrapper(new RepresentationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * Returns command to reorient EClass based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientRelationshipCommand(ReorientRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case ComponentRealizationEditPart.VISUAL_ID:
+ case InterfaceRealizationEditPart.VISUAL_ID:
+ case SubstitutionEditPart.VISUAL_ID:
+ case RealizationEditPart.VISUAL_ID:
+ case ManifestationEditPart.VISUAL_ID:
+ case AbstractionEditPart.VISUAL_ID:
+ case UsageEditPart.VISUAL_ID:
+ case DeploymentEditPart.VISUAL_ID:
+ case DependencyEditPart.VISUAL_ID:
+ case GeneralizationEditPart.VISUAL_ID:
+ case InformationFlowEditPart.VISUAL_ID:
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(req.getRelationship());
+ if(provider == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ // Retrieve re-orient command from the Element Edit service
+ ICommand reorientCommand = provider.getEditCommand(req);
+ if(reorientCommand == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ return getGEFWrapper(reorientCommand.reduce());
+ case RoleBindingEditPart.VISUAL_ID:
+ return getGEFWrapper(new RoleBindingReorientCommand(req));
+ }
+ return super.getReorientRelationshipCommand(req);
+ }
+
+ /**
+ * Returns command to reorient EReference based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientReferenceRelationshipCommand(ReorientReferenceRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case CommentAnnotatedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new CommentAnnotatedElementReorientCommand(req));
+ case ConstraintConstrainedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new ConstraintConstrainedElementReorientCommand(req));
+ case TimeObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new TimeObservationEventReorientCommand(req));
+ case DurationObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new DurationObservationEventReorientCommand(req));
+ case RepresentationEditPart.VISUAL_ID:
+ return getGEFWrapper(new RepresentationReorientCommand(req));
+ }
+ return super.getReorientReferenceRelationshipCommand(req);
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/StateMachineItemSemanticEditPolicyCLN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/StateMachineItemSemanticEditPolicyCLN.java
new file mode 100644
index 00000000000..995e91b8a66
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/StateMachineItemSemanticEditPolicyCLN.java
@@ -0,0 +1,64 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.policies;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import org.eclipse.emf.ecore.EAnnotation;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.edit.command.DeleteCommand;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gmf.runtime.emf.commands.core.command.CompositeTransactionalCommand;
+import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.commands.wrappers.EMFtoGMFCommandWrapper;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+
+/**
+ * @generated
+ */
+public class StateMachineItemSemanticEditPolicyCLN extends UMLBaseItemSemanticEditPolicy {
+
+ /**
+ * @generated
+ */
+ public StateMachineItemSemanticEditPolicyCLN() {
+ super(UMLElementTypes.StateMachine_3106);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getDestroyElementCommand(DestroyElementRequest req) {
+ View view = (View)getHost().getModel();
+ CompositeTransactionalCommand cmd = new CompositeTransactionalCommand(getEditingDomain(), null);
+ cmd.setTransactionNestingEnabled(true);
+
+ EAnnotation annotation = view.getEAnnotation("Shortcut"); //$NON-NLS-1$
+ if(annotation == null) {
+ // there are indirectly referenced children, need extra commands: false
+ addDestroyShortcutsCommand(cmd, view);
+ // delete host element
+ List<EObject> todestroy = new ArrayList<EObject>();
+ todestroy.add(req.getElementToDestroy());
+ //cmd.add(new org.eclipse.gmf.runtime.emf.type.core.commands.DestroyElementCommand(req));
+ cmd.add(new EMFtoGMFCommandWrapper(new DeleteCommand(getEditingDomain(), todestroy)));
+ } else {
+ cmd.add(new org.eclipse.gmf.runtime.diagram.core.commands.DeleteCommand(getEditingDomain(), view));
+ }
+ return getGEFWrapper(cmd.reduce());
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/StringExpressionItemSemanticEditPolicy.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/StringExpressionItemSemanticEditPolicy.java
new file mode 100644
index 00000000000..e90f6143cca
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/StringExpressionItemSemanticEditPolicy.java
@@ -0,0 +1,259 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.policies;
+
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.commands.UnexecutableCommand;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.diagram.ui.commands.ICommandProxy;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientReferenceRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientRelationshipRequest;
+import org.eclipse.papyrus.diagram.composite.edit.commands.AbstractionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ComponentRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DependencyCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DeploymentCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InformationFlowCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InterfaceRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ManifestationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.SubstitutionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.UsageCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.parts.AbstractionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CommentAnnotatedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ComponentRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ConstraintConstrainedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DependencyEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DeploymentEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DurationObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InformationFlowEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InterfaceRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ManifestationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RoleBindingEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.SubstitutionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.TimeObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.UsageEditPart;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.service.edit.service.ElementEditServiceUtils;
+import org.eclipse.papyrus.service.edit.service.IElementEditService;
+
+/**
+ * @generated
+ */
+public class StringExpressionItemSemanticEditPolicy extends UMLBaseItemSemanticEditPolicy {
+
+ /**
+ * @generated
+ */
+ public StringExpressionItemSemanticEditPolicy() {
+ super(UMLElementTypes.StringExpression_2100);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getDestroyElementCommand(DestroyElementRequest req) {
+ EObject selectedEObject = req.getElementToDestroy();
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(selectedEObject);
+ if(provider != null) {
+ // Retrieve delete command from the Element Edit service
+ ICommand deleteCommand = provider.getEditCommand(req);
+
+ if(deleteCommand != null) {
+ return new ICommandProxy(deleteCommand);
+ }
+ }
+ return UnexecutableCommand.INSTANCE;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCreateRelationshipCommand(CreateRelationshipRequest req) {
+ Command command = req.getTarget() == null ? getStartCreateRelationshipCommand(req) : getCompleteCreateRelationshipCommand(req);
+ return command != null ? command : super.getCreateRelationshipCommand(req);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getStartCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCompleteCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return getGEFWrapper(new CommentAnnotatedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return getGEFWrapper(new ConstraintConstrainedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return getGEFWrapper(new TimeObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return getGEFWrapper(new DurationObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * Returns command to reorient EClass based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientRelationshipCommand(ReorientRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case ComponentRealizationEditPart.VISUAL_ID:
+ case InterfaceRealizationEditPart.VISUAL_ID:
+ case SubstitutionEditPart.VISUAL_ID:
+ case RealizationEditPart.VISUAL_ID:
+ case ManifestationEditPart.VISUAL_ID:
+ case AbstractionEditPart.VISUAL_ID:
+ case UsageEditPart.VISUAL_ID:
+ case DeploymentEditPart.VISUAL_ID:
+ case DependencyEditPart.VISUAL_ID:
+ case InformationFlowEditPart.VISUAL_ID:
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(req.getRelationship());
+ if(provider == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ // Retrieve re-orient command from the Element Edit service
+ ICommand reorientCommand = provider.getEditCommand(req);
+ if(reorientCommand == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ return getGEFWrapper(reorientCommand.reduce());
+ case RoleBindingEditPart.VISUAL_ID:
+ return getGEFWrapper(new RoleBindingReorientCommand(req));
+ }
+ return super.getReorientRelationshipCommand(req);
+ }
+
+ /**
+ * Returns command to reorient EReference based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientReferenceRelationshipCommand(ReorientReferenceRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case CommentAnnotatedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new CommentAnnotatedElementReorientCommand(req));
+ case ConstraintConstrainedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new ConstraintConstrainedElementReorientCommand(req));
+ case TimeObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new TimeObservationEventReorientCommand(req));
+ case DurationObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new DurationObservationEventReorientCommand(req));
+ }
+ return super.getReorientReferenceRelationshipCommand(req);
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/SubstitutionItemSemanticEditPolicy.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/SubstitutionItemSemanticEditPolicy.java
new file mode 100644
index 00000000000..ec92b6abf95
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/SubstitutionItemSemanticEditPolicy.java
@@ -0,0 +1,259 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.policies;
+
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.commands.UnexecutableCommand;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.diagram.ui.commands.ICommandProxy;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientReferenceRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientRelationshipRequest;
+import org.eclipse.papyrus.diagram.composite.edit.commands.AbstractionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ComponentRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DependencyCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DeploymentCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InformationFlowCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InterfaceRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ManifestationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.SubstitutionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.UsageCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.parts.AbstractionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CommentAnnotatedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ComponentRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ConstraintConstrainedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DependencyEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DeploymentEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DurationObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InformationFlowEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InterfaceRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ManifestationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RoleBindingEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.SubstitutionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.TimeObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.UsageEditPart;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.service.edit.service.ElementEditServiceUtils;
+import org.eclipse.papyrus.service.edit.service.IElementEditService;
+
+/**
+ * @generated
+ */
+public class SubstitutionItemSemanticEditPolicy extends UMLBaseItemSemanticEditPolicy {
+
+ /**
+ * @generated
+ */
+ public SubstitutionItemSemanticEditPolicy() {
+ super(UMLElementTypes.Substitution_4011);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getDestroyElementCommand(DestroyElementRequest req) {
+ EObject selectedEObject = req.getElementToDestroy();
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(selectedEObject);
+ if(provider != null) {
+ // Retrieve delete command from the Element Edit service
+ ICommand deleteCommand = provider.getEditCommand(req);
+
+ if(deleteCommand != null) {
+ return new ICommandProxy(deleteCommand);
+ }
+ }
+ return UnexecutableCommand.INSTANCE;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCreateRelationshipCommand(CreateRelationshipRequest req) {
+ Command command = req.getTarget() == null ? getStartCreateRelationshipCommand(req) : getCompleteCreateRelationshipCommand(req);
+ return command != null ? command : super.getCreateRelationshipCommand(req);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getStartCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCompleteCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return getGEFWrapper(new CommentAnnotatedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return getGEFWrapper(new ConstraintConstrainedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return getGEFWrapper(new TimeObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return getGEFWrapper(new DurationObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * Returns command to reorient EClass based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientRelationshipCommand(ReorientRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case ComponentRealizationEditPart.VISUAL_ID:
+ case InterfaceRealizationEditPart.VISUAL_ID:
+ case SubstitutionEditPart.VISUAL_ID:
+ case RealizationEditPart.VISUAL_ID:
+ case ManifestationEditPart.VISUAL_ID:
+ case AbstractionEditPart.VISUAL_ID:
+ case UsageEditPart.VISUAL_ID:
+ case DeploymentEditPart.VISUAL_ID:
+ case DependencyEditPart.VISUAL_ID:
+ case InformationFlowEditPart.VISUAL_ID:
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(req.getRelationship());
+ if(provider == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ // Retrieve re-orient command from the Element Edit service
+ ICommand reorientCommand = provider.getEditCommand(req);
+ if(reorientCommand == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ return getGEFWrapper(reorientCommand.reduce());
+ case RoleBindingEditPart.VISUAL_ID:
+ return getGEFWrapper(new RoleBindingReorientCommand(req));
+ }
+ return super.getReorientRelationshipCommand(req);
+ }
+
+ /**
+ * Returns command to reorient EReference based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientReferenceRelationshipCommand(ReorientReferenceRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case CommentAnnotatedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new CommentAnnotatedElementReorientCommand(req));
+ case ConstraintConstrainedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new ConstraintConstrainedElementReorientCommand(req));
+ case TimeObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new TimeObservationEventReorientCommand(req));
+ case DurationObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new DurationObservationEventReorientCommand(req));
+ }
+ return super.getReorientReferenceRelationshipCommand(req);
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/TimeConstraintItemSemanticEditPolicy.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/TimeConstraintItemSemanticEditPolicy.java
new file mode 100644
index 00000000000..c6071d616f6
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/TimeConstraintItemSemanticEditPolicy.java
@@ -0,0 +1,259 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.policies;
+
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.commands.UnexecutableCommand;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.diagram.ui.commands.ICommandProxy;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientReferenceRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientRelationshipRequest;
+import org.eclipse.papyrus.diagram.composite.edit.commands.AbstractionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ComponentRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DependencyCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DeploymentCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InformationFlowCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InterfaceRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ManifestationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.SubstitutionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.UsageCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.parts.AbstractionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CommentAnnotatedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ComponentRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ConstraintConstrainedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DependencyEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DeploymentEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DurationObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InformationFlowEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InterfaceRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ManifestationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RoleBindingEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.SubstitutionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.TimeObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.UsageEditPart;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.service.edit.service.ElementEditServiceUtils;
+import org.eclipse.papyrus.service.edit.service.IElementEditService;
+
+/**
+ * @generated
+ */
+public class TimeConstraintItemSemanticEditPolicy extends UMLBaseItemSemanticEditPolicy {
+
+ /**
+ * @generated
+ */
+ public TimeConstraintItemSemanticEditPolicy() {
+ super(UMLElementTypes.TimeConstraint_2111);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getDestroyElementCommand(DestroyElementRequest req) {
+ EObject selectedEObject = req.getElementToDestroy();
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(selectedEObject);
+ if(provider != null) {
+ // Retrieve delete command from the Element Edit service
+ ICommand deleteCommand = provider.getEditCommand(req);
+
+ if(deleteCommand != null) {
+ return new ICommandProxy(deleteCommand);
+ }
+ }
+ return UnexecutableCommand.INSTANCE;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCreateRelationshipCommand(CreateRelationshipRequest req) {
+ Command command = req.getTarget() == null ? getStartCreateRelationshipCommand(req) : getCompleteCreateRelationshipCommand(req);
+ return command != null ? command : super.getCreateRelationshipCommand(req);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getStartCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return getGEFWrapper(new ConstraintConstrainedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCompleteCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return getGEFWrapper(new CommentAnnotatedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return getGEFWrapper(new ConstraintConstrainedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return getGEFWrapper(new TimeObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return getGEFWrapper(new DurationObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * Returns command to reorient EClass based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientRelationshipCommand(ReorientRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case ComponentRealizationEditPart.VISUAL_ID:
+ case InterfaceRealizationEditPart.VISUAL_ID:
+ case SubstitutionEditPart.VISUAL_ID:
+ case RealizationEditPart.VISUAL_ID:
+ case ManifestationEditPart.VISUAL_ID:
+ case AbstractionEditPart.VISUAL_ID:
+ case UsageEditPart.VISUAL_ID:
+ case DeploymentEditPart.VISUAL_ID:
+ case DependencyEditPart.VISUAL_ID:
+ case InformationFlowEditPart.VISUAL_ID:
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(req.getRelationship());
+ if(provider == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ // Retrieve re-orient command from the Element Edit service
+ ICommand reorientCommand = provider.getEditCommand(req);
+ if(reorientCommand == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ return getGEFWrapper(reorientCommand.reduce());
+ case RoleBindingEditPart.VISUAL_ID:
+ return getGEFWrapper(new RoleBindingReorientCommand(req));
+ }
+ return super.getReorientRelationshipCommand(req);
+ }
+
+ /**
+ * Returns command to reorient EReference based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientReferenceRelationshipCommand(ReorientReferenceRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case CommentAnnotatedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new CommentAnnotatedElementReorientCommand(req));
+ case ConstraintConstrainedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new ConstraintConstrainedElementReorientCommand(req));
+ case TimeObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new TimeObservationEventReorientCommand(req));
+ case DurationObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new DurationObservationEventReorientCommand(req));
+ }
+ return super.getReorientReferenceRelationshipCommand(req);
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/TimeConstraintItemSemanticEditPolicyCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/TimeConstraintItemSemanticEditPolicyCN.java
new file mode 100644
index 00000000000..26883f5de58
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/TimeConstraintItemSemanticEditPolicyCN.java
@@ -0,0 +1,259 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.policies;
+
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.commands.UnexecutableCommand;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.diagram.ui.commands.ICommandProxy;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientReferenceRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientRelationshipRequest;
+import org.eclipse.papyrus.diagram.composite.edit.commands.AbstractionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ComponentRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DependencyCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DeploymentCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InformationFlowCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InterfaceRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ManifestationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.SubstitutionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.UsageCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.parts.AbstractionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CommentAnnotatedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ComponentRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ConstraintConstrainedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DependencyEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DeploymentEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DurationObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InformationFlowEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InterfaceRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ManifestationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RoleBindingEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.SubstitutionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.TimeObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.UsageEditPart;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.service.edit.service.ElementEditServiceUtils;
+import org.eclipse.papyrus.service.edit.service.IElementEditService;
+
+/**
+ * @generated
+ */
+public class TimeConstraintItemSemanticEditPolicyCN extends UMLBaseItemSemanticEditPolicy {
+
+ /**
+ * @generated
+ */
+ public TimeConstraintItemSemanticEditPolicyCN() {
+ super(UMLElementTypes.TimeConstraint_3117);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getDestroyElementCommand(DestroyElementRequest req) {
+ EObject selectedEObject = req.getElementToDestroy();
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(selectedEObject);
+ if(provider != null) {
+ // Retrieve delete command from the Element Edit service
+ ICommand deleteCommand = provider.getEditCommand(req);
+
+ if(deleteCommand != null) {
+ return new ICommandProxy(deleteCommand);
+ }
+ }
+ return UnexecutableCommand.INSTANCE;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCreateRelationshipCommand(CreateRelationshipRequest req) {
+ Command command = req.getTarget() == null ? getStartCreateRelationshipCommand(req) : getCompleteCreateRelationshipCommand(req);
+ return command != null ? command : super.getCreateRelationshipCommand(req);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getStartCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return getGEFWrapper(new ConstraintConstrainedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCompleteCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return getGEFWrapper(new CommentAnnotatedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return getGEFWrapper(new ConstraintConstrainedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return getGEFWrapper(new TimeObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return getGEFWrapper(new DurationObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * Returns command to reorient EClass based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientRelationshipCommand(ReorientRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case ComponentRealizationEditPart.VISUAL_ID:
+ case InterfaceRealizationEditPart.VISUAL_ID:
+ case SubstitutionEditPart.VISUAL_ID:
+ case RealizationEditPart.VISUAL_ID:
+ case ManifestationEditPart.VISUAL_ID:
+ case AbstractionEditPart.VISUAL_ID:
+ case UsageEditPart.VISUAL_ID:
+ case DeploymentEditPart.VISUAL_ID:
+ case DependencyEditPart.VISUAL_ID:
+ case InformationFlowEditPart.VISUAL_ID:
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(req.getRelationship());
+ if(provider == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ // Retrieve re-orient command from the Element Edit service
+ ICommand reorientCommand = provider.getEditCommand(req);
+ if(reorientCommand == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ return getGEFWrapper(reorientCommand.reduce());
+ case RoleBindingEditPart.VISUAL_ID:
+ return getGEFWrapper(new RoleBindingReorientCommand(req));
+ }
+ return super.getReorientRelationshipCommand(req);
+ }
+
+ /**
+ * Returns command to reorient EReference based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientReferenceRelationshipCommand(ReorientReferenceRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case CommentAnnotatedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new CommentAnnotatedElementReorientCommand(req));
+ case ConstraintConstrainedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new ConstraintConstrainedElementReorientCommand(req));
+ case TimeObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new TimeObservationEventReorientCommand(req));
+ case DurationObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new DurationObservationEventReorientCommand(req));
+ }
+ return super.getReorientReferenceRelationshipCommand(req);
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/TimeEventItemSemanticEditPolicy.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/TimeEventItemSemanticEditPolicy.java
new file mode 100644
index 00000000000..f5074bea3ef
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/TimeEventItemSemanticEditPolicy.java
@@ -0,0 +1,259 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.policies;
+
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.commands.UnexecutableCommand;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.diagram.ui.commands.ICommandProxy;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientReferenceRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientRelationshipRequest;
+import org.eclipse.papyrus.diagram.composite.edit.commands.AbstractionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ComponentRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DependencyCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DeploymentCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InformationFlowCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InterfaceRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ManifestationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.SubstitutionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.UsageCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.parts.AbstractionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CommentAnnotatedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ComponentRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ConstraintConstrainedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DependencyEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DeploymentEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DurationObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InformationFlowEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InterfaceRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ManifestationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RoleBindingEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.SubstitutionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.TimeObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.UsageEditPart;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.service.edit.service.ElementEditServiceUtils;
+import org.eclipse.papyrus.service.edit.service.IElementEditService;
+
+/**
+ * @generated
+ */
+public class TimeEventItemSemanticEditPolicy extends UMLBaseItemSemanticEditPolicy {
+
+ /**
+ * @generated
+ */
+ public TimeEventItemSemanticEditPolicy() {
+ super(UMLElementTypes.TimeEvent_2089);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getDestroyElementCommand(DestroyElementRequest req) {
+ EObject selectedEObject = req.getElementToDestroy();
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(selectedEObject);
+ if(provider != null) {
+ // Retrieve delete command from the Element Edit service
+ ICommand deleteCommand = provider.getEditCommand(req);
+
+ if(deleteCommand != null) {
+ return new ICommandProxy(deleteCommand);
+ }
+ }
+ return UnexecutableCommand.INSTANCE;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCreateRelationshipCommand(CreateRelationshipRequest req) {
+ Command command = req.getTarget() == null ? getStartCreateRelationshipCommand(req) : getCompleteCreateRelationshipCommand(req);
+ return command != null ? command : super.getCreateRelationshipCommand(req);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getStartCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCompleteCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return getGEFWrapper(new CommentAnnotatedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return getGEFWrapper(new ConstraintConstrainedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return getGEFWrapper(new TimeObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return getGEFWrapper(new DurationObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * Returns command to reorient EClass based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientRelationshipCommand(ReorientRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case ComponentRealizationEditPart.VISUAL_ID:
+ case InterfaceRealizationEditPart.VISUAL_ID:
+ case SubstitutionEditPart.VISUAL_ID:
+ case RealizationEditPart.VISUAL_ID:
+ case ManifestationEditPart.VISUAL_ID:
+ case AbstractionEditPart.VISUAL_ID:
+ case UsageEditPart.VISUAL_ID:
+ case DeploymentEditPart.VISUAL_ID:
+ case DependencyEditPart.VISUAL_ID:
+ case InformationFlowEditPart.VISUAL_ID:
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(req.getRelationship());
+ if(provider == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ // Retrieve re-orient command from the Element Edit service
+ ICommand reorientCommand = provider.getEditCommand(req);
+ if(reorientCommand == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ return getGEFWrapper(reorientCommand.reduce());
+ case RoleBindingEditPart.VISUAL_ID:
+ return getGEFWrapper(new RoleBindingReorientCommand(req));
+ }
+ return super.getReorientRelationshipCommand(req);
+ }
+
+ /**
+ * Returns command to reorient EReference based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientReferenceRelationshipCommand(ReorientReferenceRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case CommentAnnotatedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new CommentAnnotatedElementReorientCommand(req));
+ case ConstraintConstrainedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new ConstraintConstrainedElementReorientCommand(req));
+ case TimeObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new TimeObservationEventReorientCommand(req));
+ case DurationObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new DurationObservationEventReorientCommand(req));
+ }
+ return super.getReorientReferenceRelationshipCommand(req);
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/TimeExpressionItemSemanticEditPolicy.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/TimeExpressionItemSemanticEditPolicy.java
new file mode 100644
index 00000000000..9d8bc3ffef9
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/TimeExpressionItemSemanticEditPolicy.java
@@ -0,0 +1,259 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.policies;
+
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.commands.UnexecutableCommand;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.diagram.ui.commands.ICommandProxy;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientReferenceRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientRelationshipRequest;
+import org.eclipse.papyrus.diagram.composite.edit.commands.AbstractionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ComponentRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DependencyCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DeploymentCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InformationFlowCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InterfaceRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ManifestationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.SubstitutionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.UsageCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.parts.AbstractionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CommentAnnotatedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ComponentRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ConstraintConstrainedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DependencyEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DeploymentEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DurationObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InformationFlowEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InterfaceRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ManifestationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RoleBindingEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.SubstitutionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.TimeObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.UsageEditPart;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.service.edit.service.ElementEditServiceUtils;
+import org.eclipse.papyrus.service.edit.service.IElementEditService;
+
+/**
+ * @generated
+ */
+public class TimeExpressionItemSemanticEditPolicy extends UMLBaseItemSemanticEditPolicy {
+
+ /**
+ * @generated
+ */
+ public TimeExpressionItemSemanticEditPolicy() {
+ super(UMLElementTypes.TimeExpression_2102);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getDestroyElementCommand(DestroyElementRequest req) {
+ EObject selectedEObject = req.getElementToDestroy();
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(selectedEObject);
+ if(provider != null) {
+ // Retrieve delete command from the Element Edit service
+ ICommand deleteCommand = provider.getEditCommand(req);
+
+ if(deleteCommand != null) {
+ return new ICommandProxy(deleteCommand);
+ }
+ }
+ return UnexecutableCommand.INSTANCE;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCreateRelationshipCommand(CreateRelationshipRequest req) {
+ Command command = req.getTarget() == null ? getStartCreateRelationshipCommand(req) : getCompleteCreateRelationshipCommand(req);
+ return command != null ? command : super.getCreateRelationshipCommand(req);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getStartCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCompleteCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return getGEFWrapper(new CommentAnnotatedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return getGEFWrapper(new ConstraintConstrainedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return getGEFWrapper(new TimeObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return getGEFWrapper(new DurationObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * Returns command to reorient EClass based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientRelationshipCommand(ReorientRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case ComponentRealizationEditPart.VISUAL_ID:
+ case InterfaceRealizationEditPart.VISUAL_ID:
+ case SubstitutionEditPart.VISUAL_ID:
+ case RealizationEditPart.VISUAL_ID:
+ case ManifestationEditPart.VISUAL_ID:
+ case AbstractionEditPart.VISUAL_ID:
+ case UsageEditPart.VISUAL_ID:
+ case DeploymentEditPart.VISUAL_ID:
+ case DependencyEditPart.VISUAL_ID:
+ case InformationFlowEditPart.VISUAL_ID:
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(req.getRelationship());
+ if(provider == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ // Retrieve re-orient command from the Element Edit service
+ ICommand reorientCommand = provider.getEditCommand(req);
+ if(reorientCommand == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ return getGEFWrapper(reorientCommand.reduce());
+ case RoleBindingEditPart.VISUAL_ID:
+ return getGEFWrapper(new RoleBindingReorientCommand(req));
+ }
+ return super.getReorientRelationshipCommand(req);
+ }
+
+ /**
+ * Returns command to reorient EReference based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientReferenceRelationshipCommand(ReorientReferenceRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case CommentAnnotatedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new CommentAnnotatedElementReorientCommand(req));
+ case ConstraintConstrainedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new ConstraintConstrainedElementReorientCommand(req));
+ case TimeObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new TimeObservationEventReorientCommand(req));
+ case DurationObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new DurationObservationEventReorientCommand(req));
+ }
+ return super.getReorientReferenceRelationshipCommand(req);
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/TimeIntervalItemSemanticEditPolicy.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/TimeIntervalItemSemanticEditPolicy.java
new file mode 100644
index 00000000000..ceed882a8c1
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/TimeIntervalItemSemanticEditPolicy.java
@@ -0,0 +1,259 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.policies;
+
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.commands.UnexecutableCommand;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.diagram.ui.commands.ICommandProxy;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientReferenceRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientRelationshipRequest;
+import org.eclipse.papyrus.diagram.composite.edit.commands.AbstractionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ComponentRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DependencyCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DeploymentCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InformationFlowCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InterfaceRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ManifestationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.SubstitutionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.UsageCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.parts.AbstractionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CommentAnnotatedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ComponentRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ConstraintConstrainedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DependencyEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DeploymentEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DurationObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InformationFlowEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InterfaceRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ManifestationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RoleBindingEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.SubstitutionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.TimeObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.UsageEditPart;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.service.edit.service.ElementEditServiceUtils;
+import org.eclipse.papyrus.service.edit.service.IElementEditService;
+
+/**
+ * @generated
+ */
+public class TimeIntervalItemSemanticEditPolicy extends UMLBaseItemSemanticEditPolicy {
+
+ /**
+ * @generated
+ */
+ public TimeIntervalItemSemanticEditPolicy() {
+ super(UMLElementTypes.TimeInterval_2105);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getDestroyElementCommand(DestroyElementRequest req) {
+ EObject selectedEObject = req.getElementToDestroy();
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(selectedEObject);
+ if(provider != null) {
+ // Retrieve delete command from the Element Edit service
+ ICommand deleteCommand = provider.getEditCommand(req);
+
+ if(deleteCommand != null) {
+ return new ICommandProxy(deleteCommand);
+ }
+ }
+ return UnexecutableCommand.INSTANCE;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCreateRelationshipCommand(CreateRelationshipRequest req) {
+ Command command = req.getTarget() == null ? getStartCreateRelationshipCommand(req) : getCompleteCreateRelationshipCommand(req);
+ return command != null ? command : super.getCreateRelationshipCommand(req);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getStartCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCompleteCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return getGEFWrapper(new CommentAnnotatedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return getGEFWrapper(new ConstraintConstrainedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return getGEFWrapper(new TimeObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return getGEFWrapper(new DurationObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * Returns command to reorient EClass based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientRelationshipCommand(ReorientRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case ComponentRealizationEditPart.VISUAL_ID:
+ case InterfaceRealizationEditPart.VISUAL_ID:
+ case SubstitutionEditPart.VISUAL_ID:
+ case RealizationEditPart.VISUAL_ID:
+ case ManifestationEditPart.VISUAL_ID:
+ case AbstractionEditPart.VISUAL_ID:
+ case UsageEditPart.VISUAL_ID:
+ case DeploymentEditPart.VISUAL_ID:
+ case DependencyEditPart.VISUAL_ID:
+ case InformationFlowEditPart.VISUAL_ID:
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(req.getRelationship());
+ if(provider == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ // Retrieve re-orient command from the Element Edit service
+ ICommand reorientCommand = provider.getEditCommand(req);
+ if(reorientCommand == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ return getGEFWrapper(reorientCommand.reduce());
+ case RoleBindingEditPart.VISUAL_ID:
+ return getGEFWrapper(new RoleBindingReorientCommand(req));
+ }
+ return super.getReorientRelationshipCommand(req);
+ }
+
+ /**
+ * Returns command to reorient EReference based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientReferenceRelationshipCommand(ReorientReferenceRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case CommentAnnotatedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new CommentAnnotatedElementReorientCommand(req));
+ case ConstraintConstrainedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new ConstraintConstrainedElementReorientCommand(req));
+ case TimeObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new TimeObservationEventReorientCommand(req));
+ case DurationObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new DurationObservationEventReorientCommand(req));
+ }
+ return super.getReorientReferenceRelationshipCommand(req);
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/TimeObservationEventSemanticEditPolicy.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/TimeObservationEventSemanticEditPolicy.java
new file mode 100644
index 00000000000..fdf07f3da0d
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/TimeObservationEventSemanticEditPolicy.java
@@ -0,0 +1,40 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.policies;
+
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gmf.runtime.emf.type.core.commands.DestroyReferenceCommand;
+import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyReferenceRequest;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+
+/**
+ * @generated
+ */
+public class TimeObservationEventSemanticEditPolicy extends UMLBaseItemSemanticEditPolicy {
+
+ /**
+ * @generated
+ */
+ public TimeObservationEventSemanticEditPolicy() {
+ super(UMLElementTypes.TimeObservationEvent_4018);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getDestroyReferenceCommand(DestroyReferenceRequest req) {
+ return getGEFWrapper(new DestroyReferenceCommand(req));
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/TimeObservationItemSemanticEditPolicy.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/TimeObservationItemSemanticEditPolicy.java
new file mode 100644
index 00000000000..93a5c43ba31
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/TimeObservationItemSemanticEditPolicy.java
@@ -0,0 +1,259 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.policies;
+
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.commands.UnexecutableCommand;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.diagram.ui.commands.ICommandProxy;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientReferenceRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientRelationshipRequest;
+import org.eclipse.papyrus.diagram.composite.edit.commands.AbstractionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ComponentRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DependencyCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DeploymentCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InformationFlowCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InterfaceRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ManifestationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.SubstitutionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.UsageCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.parts.AbstractionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CommentAnnotatedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ComponentRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ConstraintConstrainedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DependencyEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DeploymentEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DurationObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InformationFlowEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InterfaceRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ManifestationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RoleBindingEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.SubstitutionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.TimeObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.UsageEditPart;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.service.edit.service.ElementEditServiceUtils;
+import org.eclipse.papyrus.service.edit.service.IElementEditService;
+
+/**
+ * @generated
+ */
+public class TimeObservationItemSemanticEditPolicy extends UMLBaseItemSemanticEditPolicy {
+
+ /**
+ * @generated
+ */
+ public TimeObservationItemSemanticEditPolicy() {
+ super(UMLElementTypes.TimeObservation_2094);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getDestroyElementCommand(DestroyElementRequest req) {
+ EObject selectedEObject = req.getElementToDestroy();
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(selectedEObject);
+ if(provider != null) {
+ // Retrieve delete command from the Element Edit service
+ ICommand deleteCommand = provider.getEditCommand(req);
+
+ if(deleteCommand != null) {
+ return new ICommandProxy(deleteCommand);
+ }
+ }
+ return UnexecutableCommand.INSTANCE;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCreateRelationshipCommand(CreateRelationshipRequest req) {
+ Command command = req.getTarget() == null ? getStartCreateRelationshipCommand(req) : getCompleteCreateRelationshipCommand(req);
+ return command != null ? command : super.getCreateRelationshipCommand(req);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getStartCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return getGEFWrapper(new TimeObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCompleteCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return getGEFWrapper(new CommentAnnotatedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return getGEFWrapper(new ConstraintConstrainedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return getGEFWrapper(new TimeObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return getGEFWrapper(new DurationObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * Returns command to reorient EClass based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientRelationshipCommand(ReorientRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case ComponentRealizationEditPart.VISUAL_ID:
+ case InterfaceRealizationEditPart.VISUAL_ID:
+ case SubstitutionEditPart.VISUAL_ID:
+ case RealizationEditPart.VISUAL_ID:
+ case ManifestationEditPart.VISUAL_ID:
+ case AbstractionEditPart.VISUAL_ID:
+ case UsageEditPart.VISUAL_ID:
+ case DeploymentEditPart.VISUAL_ID:
+ case DependencyEditPart.VISUAL_ID:
+ case InformationFlowEditPart.VISUAL_ID:
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(req.getRelationship());
+ if(provider == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ // Retrieve re-orient command from the Element Edit service
+ ICommand reorientCommand = provider.getEditCommand(req);
+ if(reorientCommand == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ return getGEFWrapper(reorientCommand.reduce());
+ case RoleBindingEditPart.VISUAL_ID:
+ return getGEFWrapper(new RoleBindingReorientCommand(req));
+ }
+ return super.getReorientRelationshipCommand(req);
+ }
+
+ /**
+ * Returns command to reorient EReference based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientReferenceRelationshipCommand(ReorientReferenceRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case CommentAnnotatedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new CommentAnnotatedElementReorientCommand(req));
+ case ConstraintConstrainedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new ConstraintConstrainedElementReorientCommand(req));
+ case TimeObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new TimeObservationEventReorientCommand(req));
+ case DurationObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new DurationObservationEventReorientCommand(req));
+ }
+ return super.getReorientReferenceRelationshipCommand(req);
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/UMLBaseItemSemanticEditPolicy.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/UMLBaseItemSemanticEditPolicy.java
new file mode 100644
index 00000000000..c337aff3f1a
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/UMLBaseItemSemanticEditPolicy.java
@@ -0,0 +1,767 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.policies;
+
+import java.util.Iterator;
+
+import org.eclipse.emf.common.util.EList;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.commands.UnexecutableCommand;
+import org.eclipse.gef.requests.ReconnectRequest;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.common.core.command.ICompositeCommand;
+import org.eclipse.gmf.runtime.diagram.core.commands.DeleteCommand;
+import org.eclipse.gmf.runtime.diagram.ui.commands.CommandProxy;
+import org.eclipse.gmf.runtime.diagram.ui.commands.ICommandProxy;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.SemanticEditPolicy;
+import org.eclipse.gmf.runtime.emf.commands.core.command.CompositeTransactionalCommand;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.emf.type.core.commands.MoveElementsCommand;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ConfigureRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyReferenceRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.DuplicateElementsRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.GetEditContextRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.IEditCommandRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.MoveRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientReferenceRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.SetRequest;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.diagram.common.helper.UMLBaseEditHelper;
+import org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorPlugin;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.extendedtypes.types.IExtendedHintedElementType;
+import org.eclipse.papyrus.service.edit.service.ElementEditServiceUtils;
+import org.eclipse.papyrus.service.edit.service.IElementEditService;
+import org.eclipse.uml2.uml.Abstraction;
+import org.eclipse.uml2.uml.ActivityNode;
+import org.eclipse.uml2.uml.ActivityPartition;
+import org.eclipse.uml2.uml.Actor;
+import org.eclipse.uml2.uml.Artifact;
+import org.eclipse.uml2.uml.Class;
+import org.eclipse.uml2.uml.Classifier;
+import org.eclipse.uml2.uml.CollaborationUse;
+import org.eclipse.uml2.uml.Comment;
+import org.eclipse.uml2.uml.Component;
+import org.eclipse.uml2.uml.ComponentRealization;
+import org.eclipse.uml2.uml.ConnectableElement;
+import org.eclipse.uml2.uml.Connector;
+import org.eclipse.uml2.uml.ConnectorEnd;
+import org.eclipse.uml2.uml.Constraint;
+import org.eclipse.uml2.uml.Dependency;
+import org.eclipse.uml2.uml.Deployment;
+import org.eclipse.uml2.uml.DurationObservation;
+import org.eclipse.uml2.uml.Element;
+import org.eclipse.uml2.uml.Generalization;
+import org.eclipse.uml2.uml.InformationFlow;
+import org.eclipse.uml2.uml.InformationItem;
+import org.eclipse.uml2.uml.InstanceSpecification;
+import org.eclipse.uml2.uml.Interface;
+import org.eclipse.uml2.uml.InterfaceRealization;
+import org.eclipse.uml2.uml.Manifestation;
+import org.eclipse.uml2.uml.NamedElement;
+import org.eclipse.uml2.uml.Node;
+import org.eclipse.uml2.uml.Package;
+import org.eclipse.uml2.uml.Port;
+import org.eclipse.uml2.uml.Property;
+import org.eclipse.uml2.uml.Realization;
+import org.eclipse.uml2.uml.Relationship;
+import org.eclipse.uml2.uml.Signal;
+import org.eclipse.uml2.uml.StructuredClassifier;
+import org.eclipse.uml2.uml.Substitution;
+import org.eclipse.uml2.uml.TimeObservation;
+import org.eclipse.uml2.uml.Usage;
+import org.eclipse.uml2.uml.UseCase;
+
+/**
+ * @generated
+ */
+public class UMLBaseItemSemanticEditPolicy extends SemanticEditPolicy {
+
+ /**
+ * Extended request data key to hold editpart visual id.
+ *
+ * @generated
+ */
+ public static final String VISUAL_ID_KEY = "visual_id"; //$NON-NLS-1$
+
+ /**
+ * Extended request data key to hold the edge view during a reconnect request.
+ *
+ * @generated
+ */
+ public static final String GRAPHICAL_RECONNECTED_EDGE = "graphical_edge"; //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ private final IElementType myElementType;
+
+ /**
+ * @generated
+ */
+ protected UMLBaseItemSemanticEditPolicy(IElementType elementType) {
+ myElementType = elementType;
+ }
+
+ /**
+ * Extended request data key to hold editpart visual id.
+ * Add visual id of edited editpart to extended data of the request
+ * so command switch can decide what kind of diagram element is being edited.
+ * It is done in those cases when it's not possible to deduce diagram
+ * element kind from domain element.
+ * Add the reoriented view to the request extended data so that the view
+ * currently edited can be distinguished from other views of the same element
+ * and these latter possibly removed if they become inconsistent after reconnect
+ *
+ * @generated
+ */
+ @SuppressWarnings("unchecked")
+ public Command getCommand(Request request) {
+ if(request instanceof ReconnectRequest) {
+ Object view = ((ReconnectRequest)request).getConnectionEditPart().getModel();
+ if(view instanceof View) {
+ Integer id = new Integer(UMLVisualIDRegistry.getVisualID((View)view));
+ request.getExtendedData().put(VISUAL_ID_KEY, id);
+ request.getExtendedData().put(GRAPHICAL_RECONNECTED_EDGE, (View)view);
+ }
+ }
+ return super.getCommand(request);
+ }
+
+ /**
+ * Returns visual id from request parameters.
+ *
+ * @generated
+ */
+ protected int getVisualID(IEditCommandRequest request) {
+ Object id = request.getParameter(VISUAL_ID_KEY);
+ return id instanceof Integer ? ((Integer)id).intValue() : -1;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getSemanticCommand(IEditCommandRequest request) {
+ IEditCommandRequest completedRequest = completeRequest(request);
+ Command semanticCommand = getSemanticCommandSwitch(completedRequest);
+ semanticCommand = getEditHelperCommand(completedRequest, semanticCommand);
+ if(completedRequest instanceof DestroyRequest) {
+ DestroyRequest destroyRequest = (DestroyRequest)completedRequest;
+ return shouldProceed(destroyRequest) ? addDeleteViewCommand(semanticCommand, destroyRequest) : null;
+ }
+ return semanticCommand;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command addDeleteViewCommand(Command mainCommand, DestroyRequest completedRequest) {
+ Command deleteViewCommand = getGEFWrapper(new DeleteCommand(getEditingDomain(), (View)getHost().getModel()));
+ return mainCommand == null ? deleteViewCommand : mainCommand.chain(deleteViewCommand);
+ }
+
+ /**
+ * @generated
+ */
+ private Command getEditHelperCommand(IEditCommandRequest request, Command editPolicyCommand) {
+ if(editPolicyCommand != null) {
+ ICommand command = editPolicyCommand instanceof ICommandProxy ? ((ICommandProxy)editPolicyCommand).getICommand() : new CommandProxy(editPolicyCommand);
+ request.setParameter(UMLBaseEditHelper.EDIT_POLICY_COMMAND, command);
+ }
+ IElementType requestContextElementType = getContextElementType(request);
+ request.setParameter(UMLBaseEditHelper.CONTEXT_ELEMENT_TYPE, requestContextElementType);
+ ICommand command = requestContextElementType.getEditCommand(request);
+ request.setParameter(UMLBaseEditHelper.EDIT_POLICY_COMMAND, null);
+ request.setParameter(UMLBaseEditHelper.CONTEXT_ELEMENT_TYPE, null);
+ if(command != null) {
+ if(!(command instanceof CompositeTransactionalCommand)) {
+ command = new CompositeTransactionalCommand(getEditingDomain(), command.getLabel()).compose(command);
+ }
+ return new ICommandProxy(command);
+ }
+ return editPolicyCommand;
+ }
+
+ /**
+ * @generated
+ */
+ protected IElementType getContextElementType(IEditCommandRequest request) {
+ IElementType requestContextElementType = UMLElementTypes.getElementType(getVisualID(request));
+ return requestContextElementType != null ? requestContextElementType : myElementType;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getSemanticCommandSwitch(IEditCommandRequest req) {
+ if(req instanceof CreateRelationshipRequest) {
+ return getCreateRelationshipCommand((CreateRelationshipRequest)req);
+ } else if(req instanceof CreateElementRequest) {
+ return getCreateCommand((CreateElementRequest)req);
+ } else if(req instanceof ConfigureRequest) {
+ return getConfigureCommand((ConfigureRequest)req);
+ } else if(req instanceof DestroyElementRequest) {
+ return getDestroyElementCommand((DestroyElementRequest)req);
+ } else if(req instanceof DestroyReferenceRequest) {
+ return getDestroyReferenceCommand((DestroyReferenceRequest)req);
+ } else if(req instanceof DuplicateElementsRequest) {
+ return getDuplicateCommand((DuplicateElementsRequest)req);
+ } else if(req instanceof GetEditContextRequest) {
+ return getEditContextCommand((GetEditContextRequest)req);
+ } else if(req instanceof MoveRequest) {
+ return getMoveCommand((MoveRequest)req);
+ } else if(req instanceof ReorientReferenceRelationshipRequest) {
+ return getReorientReferenceRelationshipCommand((ReorientReferenceRelationshipRequest)req);
+ } else if(req instanceof ReorientRelationshipRequest) {
+ return getReorientRelationshipCommand((ReorientRelationshipRequest)req);
+ } else if(req instanceof SetRequest) {
+ return getSetCommand((SetRequest)req);
+ }
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getConfigureCommand(ConfigureRequest req) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCreateRelationshipCommand(CreateRelationshipRequest req) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCreateCommand(CreateElementRequest req) {
+ // check if the type is an extended type, and then create directly the element...
+ IElementType type = req.getElementType();
+ if(type instanceof IExtendedHintedElementType) {
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(req.getContainer());
+ if(provider == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+
+ // Retrieve create command from the Element Edit service
+ ICommand createGMFCommand = provider.getEditCommand(req);
+
+ return getGEFWrapper(createGMFCommand);
+ }
+
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getSetCommand(SetRequest req) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getEditContextCommand(GetEditContextRequest req) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getDestroyElementCommand(DestroyElementRequest req) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getDestroyReferenceCommand(DestroyReferenceRequest req) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getDuplicateCommand(DuplicateElementsRequest req) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getMoveCommand(MoveRequest req) {
+
+ return getGEFWrapper(new MoveElementsCommand(req));
+
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getReorientReferenceRelationshipCommand(ReorientReferenceRelationshipRequest req) {
+ return UnexecutableCommand.INSTANCE;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getReorientRelationshipCommand(ReorientRelationshipRequest req) {
+ return UnexecutableCommand.INSTANCE;
+ }
+
+ /**
+ * @generated
+ */
+ protected final Command getGEFWrapper(ICommand cmd) {
+ return new ICommandProxy(cmd);
+ }
+
+ /**
+ * Returns editing domain from the host edit part.
+ *
+ * @generated
+ */
+ protected TransactionalEditingDomain getEditingDomain() {
+ return ((IGraphicalEditPart)getHost()).getEditingDomain();
+ }
+
+ /**
+ * Clean all shortcuts to the host element from the same diagram
+ *
+ * @generated
+ */
+ protected void addDestroyShortcutsCommand(ICompositeCommand cmd, View view) {
+ assert view.getEAnnotation("Shortcut") == null; //$NON-NLS-1$
+ for(Iterator it = view.getDiagram().getChildren().iterator(); it.hasNext();) {
+ View nextView = (View)it.next();
+ if(nextView.getEAnnotation("Shortcut") == null || !nextView.isSetElement() || nextView.getElement() != view.getElement()) { //$NON-NLS-1$
+ continue;
+ }
+ cmd.add(new DeleteCommand(getEditingDomain(), nextView));
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public static LinkConstraints getLinkConstraints() {
+ LinkConstraints cached = UMLDiagramEditorPlugin.getInstance().getLinkConstraints();
+ if(cached == null) {
+ UMLDiagramEditorPlugin.getInstance().setLinkConstraints(cached = new LinkConstraints());
+ }
+ return cached;
+ }
+
+ /**
+ * @generated
+ */
+ public static class LinkConstraints {
+
+ /**
+ * @generated
+ */
+ public LinkConstraints() {
+ // use static method #getLinkConstraints() to access instance
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canCreateLink_4001() {
+ return canExistLink_4001();
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canCreateCommentAnnotatedElement_4002(Comment source, Element target) {
+ if(source != null) {
+ if(source.getAnnotatedElements().contains(target)
+
+ ) {
+ return false;
+ }
+ }
+
+ return canExistCommentAnnotatedElement_4002(source, target);
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canCreateConstraintConstrainedElement_4003(Constraint source, Element target) {
+ if(source != null) {
+ if(source.getConstrainedElements().contains(target)
+
+ ) {
+ return false;
+ }
+ }
+
+ return canExistConstraintConstrainedElement_4003(source, target);
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canCreateComponentRealization_4004(Package container, NamedElement source, NamedElement target) {
+ return canExistComponentRealization_4004(container, null, source, target);
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canCreateInterfaceRealization_4005(Package container, NamedElement source, NamedElement target) {
+ return canExistInterfaceRealization_4005(container, null, source, target);
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canCreateSubstitution_4011(Package container, NamedElement source, NamedElement target) {
+ return canExistSubstitution_4011(container, null, source, target);
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canCreateRealization_4006(Package container, NamedElement source, NamedElement target) {
+ return canExistRealization_4006(container, null, source, target);
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canCreateManifestation_4012(Package container, NamedElement source, NamedElement target) {
+ return canExistManifestation_4012(container, null, source, target);
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canCreateAbstraction_4007(Package container, NamedElement source, NamedElement target) {
+ return canExistAbstraction_4007(container, null, source, target);
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canCreateUsage_4008(Package container, NamedElement source, NamedElement target) {
+ return canExistUsage_4008(container, null, source, target);
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canCreateDeployment_4009(Package container, NamedElement source, NamedElement target) {
+ return canExistDeployment_4009(container, null, source, target);
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canCreateDependency_4017(Package container, NamedElement source, NamedElement target) {
+ return canExistDependency_4017(container, null, source, target);
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canCreateDependency_4010(Package container, NamedElement source, NamedElement target) {
+ return canExistDependency_4010(container, null, source, target);
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canCreateConnector_4013(StructuredClassifier container, ConnectorEnd source, ConnectorEnd target) {
+ return canExistConnector_4013(container, null, source, target);
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canCreateGeneralization_4015(Classifier container, Classifier source, Classifier target) {
+ return canExistGeneralization_4015(container, null, source, target);
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canCreateTimeObservationEvent_4018(TimeObservation source, NamedElement target) {
+ if(source != null) {
+ if(source.getEvent() != null
+
+ ) {
+ return false;
+ }
+ }
+
+ return canExistTimeObservationEvent_4018(source, target);
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canCreateDurationObservationEvent_4019(DurationObservation source, NamedElement target) {
+ if(source != null) {
+ if(source.getEvents().size() >= 2 || source.getEvents().contains(target)
+
+ ) {
+ return false;
+ }
+ }
+
+ return canExistDurationObservationEvent_4019(source, target);
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canCreateInformationItemRepresented_4020(InformationItem source, Classifier target) {
+ if(source != null) {
+ if(source.getRepresenteds().contains(target)
+
+ ) {
+ return false;
+ }
+ }
+
+ return canExistInformationItemRepresented_4020(source, target);
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canCreateInformationFlow_4021(Package container, NamedElement source, NamedElement target) {
+ return canExistInformationFlow_4021(container, null, source, target);
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canExistLink_4001() {
+ return true;
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canExistCommentAnnotatedElement_4002(Comment source, Element target) {
+ return true;
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canExistConstraintConstrainedElement_4003(Constraint source, Element target) {
+ return true;
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canExistComponentRealization_4004(Package container, ComponentRealization linkInstance, NamedElement source, NamedElement target) {
+ return true;
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canExistInterfaceRealization_4005(Package container, InterfaceRealization linkInstance, NamedElement source, NamedElement target) {
+ return true;
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canExistSubstitution_4011(Package container, Substitution linkInstance, NamedElement source, NamedElement target) {
+ return true;
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canExistRealization_4006(Package container, Realization linkInstance, NamedElement source, NamedElement target) {
+ return true;
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canExistManifestation_4012(Package container, Manifestation linkInstance, NamedElement source, NamedElement target) {
+ return true;
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canExistAbstraction_4007(Package container, Abstraction linkInstance, NamedElement source, NamedElement target) {
+ return true;
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canExistUsage_4008(Package container, Usage linkInstance, NamedElement source, NamedElement target) {
+ return true;
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canExistDeployment_4009(Package container, Deployment linkInstance, NamedElement source, NamedElement target) {
+ return true;
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canExistDependency_4017(Package container, Dependency linkInstance, NamedElement source, NamedElement target) {
+ try {
+ // RoleBinding source constraint
+ if((source != null) && !(source instanceof CollaborationUse)) {
+ return false;
+ }
+ // RoleBinding source has a type
+ if((source != null) && (((CollaborationUse)source).getType() == null)) {
+ return false;
+ }
+ // RoleBinding target constraint
+ if((target != null) && !(target instanceof ConnectableElement)) {
+ return false;
+ }
+ // RoleBinding source and target have the same semantic parent
+ if((source != null) && (target != null) && (source.getOwner() != target.getOwner())) {
+ return false;
+ }
+ return true;
+ } catch (Exception e) {
+ UMLDiagramEditorPlugin.getInstance().logError("Link constraint evaluation error", e); //$NON-NLS-1$
+ return false;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canExistDependency_4010(Package container, Dependency linkInstance, NamedElement source, NamedElement target) {
+ return true;
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canExistConnector_4013(StructuredClassifier container, Connector linkInstance, ConnectorEnd source, ConnectorEnd target) {
+ return true;
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canExistGeneralization_4015(Classifier container, Generalization linkInstance, Classifier source, Classifier target) {
+ return true;
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canExistTimeObservationEvent_4018(TimeObservation source, NamedElement target) {
+ return true;
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canExistDurationObservationEvent_4019(DurationObservation source, NamedElement target) {
+ return true;
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canExistInformationItemRepresented_4020(InformationItem source, Classifier target) {
+ try {
+ // Represented InformationItem Target
+ if(target != null) {
+ if(!((target instanceof Class) || (target instanceof Interface) || (target instanceof InformationItem) || (target instanceof Signal) || (target instanceof Component))) {
+ return false;
+ }
+ }
+ return true;
+ } catch (Exception e) {
+ UMLDiagramEditorPlugin.getInstance().logError("Link constraint evaluation error", e); //$NON-NLS-1$
+ return false;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canExistInformationFlow_4021(Package container, InformationFlow linkInstance, NamedElement source, NamedElement target) {
+ try {
+ //Information Flow source constraint
+ if(source != null) {
+ if(!((source instanceof Actor) || (source instanceof Node) || (source instanceof UseCase) || (source instanceof Artifact) || (source instanceof Class) || (source instanceof Component) || (source instanceof Port) || (source instanceof Property) || (source instanceof Interface) || (source instanceof Package) || (source instanceof ActivityNode) || (source instanceof ActivityPartition) || (source instanceof InstanceSpecification))) {
+
+ return false;
+
+ }
+ if(source instanceof InstanceSpecification) {
+ EList<Classifier> classes = ((InstanceSpecification)source).getClassifiers();
+ for(int i = 0; i < classes.size(); i++) {
+ if(classes.get(i) instanceof Relationship) {
+ return false;
+ }
+ }
+ }
+ }
+ //Information Flow target constraint
+ if(target != null) {
+ if(!((target instanceof Actor) || (target instanceof Node) || (target instanceof UseCase) || (target instanceof Artifact) || (target instanceof Class) || (target instanceof Component) || (target instanceof Port) || (target instanceof Property) || (target instanceof Interface) || (target instanceof Package) || (target instanceof ActivityNode) || (target instanceof ActivityPartition) || (target instanceof InstanceSpecification))) {
+
+ return false;
+
+ }
+ if(target instanceof InstanceSpecification) {
+ EList<Classifier> classes = ((InstanceSpecification)target).getClassifiers();
+ for(int i = 0; i < classes.size(); i++) {
+ if(classes.get(i) instanceof Relationship) {
+ return false;
+ }
+ }
+ }
+ }
+ return true;
+ } catch (Exception e) {
+ UMLDiagramEditorPlugin.getInstance().logError("Link constraint evaluation error", e); //$NON-NLS-1$
+ return false;
+ }
+ }
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/UMLTextNonResizableEditPolicy.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/UMLTextNonResizableEditPolicy.java
new file mode 100644
index 00000000000..21b206cfb80
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/UMLTextNonResizableEditPolicy.java
@@ -0,0 +1,236 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.policies;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.ColorConstants;
+import org.eclipse.draw2d.Figure;
+import org.eclipse.draw2d.FigureListener;
+import org.eclipse.draw2d.Graphics;
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.RectangleFigure;
+import org.eclipse.draw2d.geometry.Rectangle;
+import org.eclipse.gef.GraphicalEditPart;
+import org.eclipse.gef.handles.MoveHandle;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.NonResizableEditPolicyEx;
+import org.eclipse.gmf.runtime.diagram.ui.tools.DragEditPartsTrackerEx;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+
+/**
+ * @generated
+ */
+public class UMLTextNonResizableEditPolicy extends NonResizableEditPolicyEx {
+
+ /**
+ * @generated
+ */
+ private IFigure selectionFeedbackFigure;
+
+ /**
+ * @generated
+ */
+ private IFigure focusFeedbackFigure;
+
+ /**
+ * @generated
+ */
+ private FigureListener hostPositionListener;
+
+ /**
+ * @generated
+ */
+ protected void showPrimarySelection() {
+ if(getHostFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getHostFigure()).setSelected(true);
+ ((WrappingLabel)getHostFigure()).setFocus(true);
+ } else {
+ showSelection();
+ showFocus();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void showSelection() {
+ if(getHostFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getHostFigure()).setSelected(true);
+ ((WrappingLabel)getHostFigure()).setFocus(false);
+ } else {
+ hideSelection();
+ addFeedback(selectionFeedbackFigure = createSelectionFeedbackFigure());
+ getHostFigure().addFigureListener(getHostPositionListener());
+ refreshSelectionFeedback();
+ hideFocus();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void hideSelection() {
+ if(getHostFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getHostFigure()).setSelected(false);
+ ((WrappingLabel)getHostFigure()).setFocus(false);
+ } else {
+ if(selectionFeedbackFigure != null) {
+ removeFeedback(selectionFeedbackFigure);
+ getHostFigure().removeFigureListener(getHostPositionListener());
+ selectionFeedbackFigure = null;
+ }
+ hideFocus();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void showFocus() {
+ if(getHostFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getHostFigure()).setFocus(true);
+ } else {
+ hideFocus();
+ addFeedback(focusFeedbackFigure = createFocusFeedbackFigure());
+ refreshFocusFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void hideFocus() {
+ if(getHostFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getHostFigure()).setFocus(false);
+ } else {
+ if(focusFeedbackFigure != null) {
+ removeFeedback(focusFeedbackFigure);
+ focusFeedbackFigure = null;
+ }
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Rectangle getFeedbackBounds() {
+ Rectangle bounds;
+ if(getHostFigure() instanceof Label) {
+ bounds = ((Label)getHostFigure()).getTextBounds();
+ bounds.intersect(getHostFigure().getBounds());
+ } else {
+ bounds = getHostFigure().getBounds().getCopy();
+ }
+ getHostFigure().getParent().translateToAbsolute(bounds);
+ getFeedbackLayer().translateToRelative(bounds);
+ return bounds;
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createSelectionFeedbackFigure() {
+ if(getHostFigure() instanceof Label) {
+ Label feedbackFigure = new Label();
+ feedbackFigure.setOpaque(true);
+ feedbackFigure.setBackgroundColor(ColorConstants.menuBackgroundSelected);
+ feedbackFigure.setForegroundColor(ColorConstants.menuForegroundSelected);
+ return feedbackFigure;
+ } else {
+ RectangleFigure feedbackFigure = new RectangleFigure();
+ feedbackFigure.setFill(false);
+ return feedbackFigure;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createFocusFeedbackFigure() {
+ return new Figure() {
+
+ protected void paintFigure(Graphics graphics) {
+ graphics.drawFocus(getBounds().getResized(-1, -1));
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ protected void updateLabel(Label target) {
+ Label source = (Label)getHostFigure();
+ target.setText(source.getText());
+ target.setTextAlignment(source.getTextAlignment());
+ target.setFont(source.getFont());
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshSelectionFeedback() {
+ if(selectionFeedbackFigure != null) {
+ if(selectionFeedbackFigure instanceof Label) {
+ updateLabel((Label)selectionFeedbackFigure);
+ selectionFeedbackFigure.setBounds(getFeedbackBounds());
+ } else {
+ selectionFeedbackFigure.setBounds(getFeedbackBounds().expand(5, 5));
+ }
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshFocusFeedback() {
+ if(focusFeedbackFigure != null) {
+ focusFeedbackFigure.setBounds(getFeedbackBounds());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void refreshFeedback() {
+ refreshSelectionFeedback();
+ refreshFocusFeedback();
+ }
+
+ /**
+ * @generated
+ */
+ private FigureListener getHostPositionListener() {
+ if(hostPositionListener == null) {
+ hostPositionListener = new FigureListener() {
+
+ public void figureMoved(IFigure source) {
+ refreshFeedback();
+ }
+ };
+ }
+ return hostPositionListener;
+ }
+
+ /**
+ * @generated
+ */
+ protected List createSelectionHandles() {
+ MoveHandle moveHandle = new MoveHandle((GraphicalEditPart)getHost());
+ moveHandle.setBorder(null);
+ moveHandle.setDragTracker(new DragEditPartsTrackerEx(getHost()));
+ return Collections.singletonList(moveHandle);
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/UMLTextSelectionEditPolicy.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/UMLTextSelectionEditPolicy.java
new file mode 100644
index 00000000000..c894a264a4a
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/UMLTextSelectionEditPolicy.java
@@ -0,0 +1,220 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.policies;
+
+import org.eclipse.draw2d.ColorConstants;
+import org.eclipse.draw2d.Figure;
+import org.eclipse.draw2d.FigureListener;
+import org.eclipse.draw2d.Graphics;
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.RectangleFigure;
+import org.eclipse.draw2d.geometry.Rectangle;
+import org.eclipse.gef.editpolicies.SelectionEditPolicy;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+
+/**
+ * @generated
+ */
+public class UMLTextSelectionEditPolicy extends SelectionEditPolicy {
+
+ /**
+ * @generated
+ */
+ private IFigure selectionFeedbackFigure;
+
+ /**
+ * @generated
+ */
+ private IFigure focusFeedbackFigure;
+
+ /**
+ * @generated
+ */
+ private FigureListener hostPositionListener;
+
+ /**
+ * @generated
+ */
+ protected void showPrimarySelection() {
+ if(getHostFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getHostFigure()).setSelected(true);
+ ((WrappingLabel)getHostFigure()).setFocus(true);
+ } else {
+ showSelection();
+ showFocus();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void showSelection() {
+ if(getHostFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getHostFigure()).setSelected(true);
+ ((WrappingLabel)getHostFigure()).setFocus(false);
+ } else {
+ hideSelection();
+ addFeedback(selectionFeedbackFigure = createSelectionFeedbackFigure());
+ getHostFigure().addFigureListener(getHostPositionListener());
+ refreshSelectionFeedback();
+ hideFocus();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void hideSelection() {
+ if(getHostFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getHostFigure()).setSelected(false);
+ ((WrappingLabel)getHostFigure()).setFocus(false);
+ } else {
+ if(selectionFeedbackFigure != null) {
+ removeFeedback(selectionFeedbackFigure);
+ getHostFigure().removeFigureListener(getHostPositionListener());
+ selectionFeedbackFigure = null;
+ }
+ hideFocus();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void showFocus() {
+ if(getHostFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getHostFigure()).setFocus(true);
+ } else {
+ hideFocus();
+ addFeedback(focusFeedbackFigure = createFocusFeedbackFigure());
+ refreshFocusFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void hideFocus() {
+ if(getHostFigure() instanceof WrappingLabel) {
+ ((WrappingLabel)getHostFigure()).setFocus(false);
+ } else {
+ if(focusFeedbackFigure != null) {
+ removeFeedback(focusFeedbackFigure);
+ focusFeedbackFigure = null;
+ }
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Rectangle getFeedbackBounds() {
+ Rectangle bounds;
+ if(getHostFigure() instanceof Label) {
+ bounds = ((Label)getHostFigure()).getTextBounds();
+ bounds.intersect(getHostFigure().getBounds());
+ } else {
+ bounds = getHostFigure().getBounds().getCopy();
+ }
+ getHostFigure().getParent().translateToAbsolute(bounds);
+ getFeedbackLayer().translateToRelative(bounds);
+ return bounds;
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createSelectionFeedbackFigure() {
+ if(getHostFigure() instanceof Label) {
+ Label feedbackFigure = new Label();
+ feedbackFigure.setOpaque(true);
+ feedbackFigure.setBackgroundColor(ColorConstants.menuBackgroundSelected);
+ feedbackFigure.setForegroundColor(ColorConstants.menuForegroundSelected);
+ return feedbackFigure;
+ } else {
+ RectangleFigure feedbackFigure = new RectangleFigure();
+ feedbackFigure.setFill(false);
+ return feedbackFigure;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createFocusFeedbackFigure() {
+ return new Figure() {
+
+ protected void paintFigure(Graphics graphics) {
+ graphics.drawFocus(getBounds().getResized(-1, -1));
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ protected void updateLabel(Label target) {
+ Label source = (Label)getHostFigure();
+ target.setText(source.getText());
+ target.setTextAlignment(source.getTextAlignment());
+ target.setFont(source.getFont());
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshSelectionFeedback() {
+ if(selectionFeedbackFigure != null) {
+ if(selectionFeedbackFigure instanceof Label) {
+ updateLabel((Label)selectionFeedbackFigure);
+ selectionFeedbackFigure.setBounds(getFeedbackBounds());
+ } else {
+ selectionFeedbackFigure.setBounds(getFeedbackBounds().expand(5, 5));
+ }
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshFocusFeedback() {
+ if(focusFeedbackFigure != null) {
+ focusFeedbackFigure.setBounds(getFeedbackBounds());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void refreshFeedback() {
+ refreshSelectionFeedback();
+ refreshFocusFeedback();
+ }
+
+ /**
+ * @generated
+ */
+ private FigureListener getHostPositionListener() {
+ if(hostPositionListener == null) {
+ hostPositionListener = new FigureListener() {
+
+ public void figureMoved(IFigure source) {
+ refreshFeedback();
+ }
+ };
+ }
+ return hostPositionListener;
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/UsageItemSemanticEditPolicy.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/UsageItemSemanticEditPolicy.java
new file mode 100644
index 00000000000..b9103ab646f
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/UsageItemSemanticEditPolicy.java
@@ -0,0 +1,259 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.policies;
+
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.commands.UnexecutableCommand;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.diagram.ui.commands.ICommandProxy;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientReferenceRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientRelationshipRequest;
+import org.eclipse.papyrus.diagram.composite.edit.commands.AbstractionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ComponentRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DependencyCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DeploymentCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InformationFlowCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InterfaceRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ManifestationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.SubstitutionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.UsageCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.parts.AbstractionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CommentAnnotatedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ComponentRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ConstraintConstrainedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DependencyEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DeploymentEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DurationObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InformationFlowEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InterfaceRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ManifestationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RoleBindingEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.SubstitutionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.TimeObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.UsageEditPart;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.service.edit.service.ElementEditServiceUtils;
+import org.eclipse.papyrus.service.edit.service.IElementEditService;
+
+/**
+ * @generated
+ */
+public class UsageItemSemanticEditPolicy extends UMLBaseItemSemanticEditPolicy {
+
+ /**
+ * @generated
+ */
+ public UsageItemSemanticEditPolicy() {
+ super(UMLElementTypes.Usage_4008);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getDestroyElementCommand(DestroyElementRequest req) {
+ EObject selectedEObject = req.getElementToDestroy();
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(selectedEObject);
+ if(provider != null) {
+ // Retrieve delete command from the Element Edit service
+ ICommand deleteCommand = provider.getEditCommand(req);
+
+ if(deleteCommand != null) {
+ return new ICommandProxy(deleteCommand);
+ }
+ }
+ return UnexecutableCommand.INSTANCE;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCreateRelationshipCommand(CreateRelationshipRequest req) {
+ Command command = req.getTarget() == null ? getStartCreateRelationshipCommand(req) : getCompleteCreateRelationshipCommand(req);
+ return command != null ? command : super.getCreateRelationshipCommand(req);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getStartCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCompleteCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return getGEFWrapper(new CommentAnnotatedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return getGEFWrapper(new ConstraintConstrainedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return getGEFWrapper(new TimeObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return getGEFWrapper(new DurationObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * Returns command to reorient EClass based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientRelationshipCommand(ReorientRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case ComponentRealizationEditPart.VISUAL_ID:
+ case InterfaceRealizationEditPart.VISUAL_ID:
+ case SubstitutionEditPart.VISUAL_ID:
+ case RealizationEditPart.VISUAL_ID:
+ case ManifestationEditPart.VISUAL_ID:
+ case AbstractionEditPart.VISUAL_ID:
+ case UsageEditPart.VISUAL_ID:
+ case DeploymentEditPart.VISUAL_ID:
+ case DependencyEditPart.VISUAL_ID:
+ case InformationFlowEditPart.VISUAL_ID:
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(req.getRelationship());
+ if(provider == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ // Retrieve re-orient command from the Element Edit service
+ ICommand reorientCommand = provider.getEditCommand(req);
+ if(reorientCommand == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ return getGEFWrapper(reorientCommand.reduce());
+ case RoleBindingEditPart.VISUAL_ID:
+ return getGEFWrapper(new RoleBindingReorientCommand(req));
+ }
+ return super.getReorientRelationshipCommand(req);
+ }
+
+ /**
+ * Returns command to reorient EReference based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientReferenceRelationshipCommand(ReorientReferenceRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case CommentAnnotatedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new CommentAnnotatedElementReorientCommand(req));
+ case ConstraintConstrainedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new ConstraintConstrainedElementReorientCommand(req));
+ case TimeObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new TimeObservationEventReorientCommand(req));
+ case DurationObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new DurationObservationEventReorientCommand(req));
+ }
+ return super.getReorientReferenceRelationshipCommand(req);
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/UseCaseItemSemanticEditPolicy.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/UseCaseItemSemanticEditPolicy.java
new file mode 100644
index 00000000000..6f297b068d2
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/UseCaseItemSemanticEditPolicy.java
@@ -0,0 +1,279 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.policies;
+
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.commands.UnexecutableCommand;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.diagram.ui.commands.ICommandProxy;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientReferenceRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientRelationshipRequest;
+import org.eclipse.papyrus.diagram.composite.edit.commands.AbstractionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ComponentRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DependencyCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DeploymentCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.GeneralizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InformationFlowCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InterfaceRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ManifestationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RepresentationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RepresentationReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.SubstitutionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.UsageCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.parts.AbstractionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CommentAnnotatedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ComponentRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ConstraintConstrainedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DependencyEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DeploymentEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DurationObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.GeneralizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InformationFlowEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InterfaceRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ManifestationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RepresentationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RoleBindingEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.SubstitutionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.TimeObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.UsageEditPart;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.service.edit.service.ElementEditServiceUtils;
+import org.eclipse.papyrus.service.edit.service.IElementEditService;
+
+/**
+ * @generated
+ */
+public class UseCaseItemSemanticEditPolicy extends UMLBaseItemSemanticEditPolicy {
+
+ /**
+ * @generated
+ */
+ public UseCaseItemSemanticEditPolicy() {
+ super(UMLElementTypes.UseCase_2082);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getDestroyElementCommand(DestroyElementRequest req) {
+ EObject selectedEObject = req.getElementToDestroy();
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(selectedEObject);
+ if(provider != null) {
+ // Retrieve delete command from the Element Edit service
+ ICommand deleteCommand = provider.getEditCommand(req);
+
+ if(deleteCommand != null) {
+ return new ICommandProxy(deleteCommand);
+ }
+ }
+ return UnexecutableCommand.INSTANCE;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCreateRelationshipCommand(CreateRelationshipRequest req) {
+ Command command = req.getTarget() == null ? getStartCreateRelationshipCommand(req) : getCompleteCreateRelationshipCommand(req);
+ return command != null ? command : super.getCreateRelationshipCommand(req);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getStartCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Generalization_4015 == req.getElementType()) {
+ return getGEFWrapper(new GeneralizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.InformationItemRepresented_4020 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCompleteCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return getGEFWrapper(new CommentAnnotatedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return getGEFWrapper(new ConstraintConstrainedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Generalization_4015 == req.getElementType()) {
+ return getGEFWrapper(new GeneralizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return getGEFWrapper(new TimeObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return getGEFWrapper(new DurationObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InformationItemRepresented_4020 == req.getElementType()) {
+ return getGEFWrapper(new RepresentationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * Returns command to reorient EClass based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientRelationshipCommand(ReorientRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case ComponentRealizationEditPart.VISUAL_ID:
+ case InterfaceRealizationEditPart.VISUAL_ID:
+ case SubstitutionEditPart.VISUAL_ID:
+ case RealizationEditPart.VISUAL_ID:
+ case ManifestationEditPart.VISUAL_ID:
+ case AbstractionEditPart.VISUAL_ID:
+ case UsageEditPart.VISUAL_ID:
+ case DeploymentEditPart.VISUAL_ID:
+ case DependencyEditPart.VISUAL_ID:
+ case GeneralizationEditPart.VISUAL_ID:
+ case InformationFlowEditPart.VISUAL_ID:
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(req.getRelationship());
+ if(provider == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ // Retrieve re-orient command from the Element Edit service
+ ICommand reorientCommand = provider.getEditCommand(req);
+ if(reorientCommand == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ return getGEFWrapper(reorientCommand.reduce());
+ case RoleBindingEditPart.VISUAL_ID:
+ return getGEFWrapper(new RoleBindingReorientCommand(req));
+ }
+ return super.getReorientRelationshipCommand(req);
+ }
+
+ /**
+ * Returns command to reorient EReference based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientReferenceRelationshipCommand(ReorientReferenceRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case CommentAnnotatedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new CommentAnnotatedElementReorientCommand(req));
+ case ConstraintConstrainedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new ConstraintConstrainedElementReorientCommand(req));
+ case TimeObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new TimeObservationEventReorientCommand(req));
+ case DurationObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new DurationObservationEventReorientCommand(req));
+ case RepresentationEditPart.VISUAL_ID:
+ return getGEFWrapper(new RepresentationReorientCommand(req));
+ }
+ return super.getReorientReferenceRelationshipCommand(req);
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/UseCaseItemSemanticEditPolicyCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/UseCaseItemSemanticEditPolicyCN.java
new file mode 100644
index 00000000000..450e75504ef
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/edit/policies/UseCaseItemSemanticEditPolicyCN.java
@@ -0,0 +1,279 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.edit.policies;
+
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.commands.UnexecutableCommand;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.diagram.ui.commands.ICommandProxy;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientReferenceRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientRelationshipRequest;
+import org.eclipse.papyrus.diagram.composite.edit.commands.AbstractionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.CommentAnnotatedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ComponentRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ConstraintConstrainedElementReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DependencyCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DeploymentCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.DurationObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.GeneralizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InformationFlowCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.InterfaceRealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.ManifestationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RealizationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RepresentationCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RepresentationReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.RoleBindingReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.SubstitutionCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.TimeObservationEventReorientCommand;
+import org.eclipse.papyrus.diagram.composite.edit.commands.UsageCreateCommand;
+import org.eclipse.papyrus.diagram.composite.edit.parts.AbstractionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CommentAnnotatedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ComponentRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ConstraintConstrainedElementEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DependencyEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DeploymentEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.DurationObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.GeneralizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InformationFlowEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.InterfaceRealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.ManifestationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RealizationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RepresentationEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.RoleBindingEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.SubstitutionEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.TimeObservationEventEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.UsageEditPart;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.papyrus.service.edit.service.ElementEditServiceUtils;
+import org.eclipse.papyrus.service.edit.service.IElementEditService;
+
+/**
+ * @generated
+ */
+public class UseCaseItemSemanticEditPolicyCN extends UMLBaseItemSemanticEditPolicy {
+
+ /**
+ * @generated
+ */
+ public UseCaseItemSemanticEditPolicyCN() {
+ super(UMLElementTypes.UseCase_3096);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getDestroyElementCommand(DestroyElementRequest req) {
+ EObject selectedEObject = req.getElementToDestroy();
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(selectedEObject);
+ if(provider != null) {
+ // Retrieve delete command from the Element Edit service
+ ICommand deleteCommand = provider.getEditCommand(req);
+
+ if(deleteCommand != null) {
+ return new ICommandProxy(deleteCommand);
+ }
+ }
+ return UnexecutableCommand.INSTANCE;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCreateRelationshipCommand(CreateRelationshipRequest req) {
+ Command command = req.getTarget() == null ? getStartCreateRelationshipCommand(req) : getCompleteCreateRelationshipCommand(req);
+ return command != null ? command : super.getCreateRelationshipCommand(req);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getStartCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Generalization_4015 == req.getElementType()) {
+ return getGEFWrapper(new GeneralizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.InformationItemRepresented_4020 == req.getElementType()) {
+ return null;
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCompleteCreateRelationshipCommand(CreateRelationshipRequest req) {
+ if(UMLElementTypes.CommentAnnotatedElement_4002 == req.getElementType()) {
+ return getGEFWrapper(new CommentAnnotatedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ConstraintConstrainedElement_4003 == req.getElementType()) {
+ return getGEFWrapper(new ConstraintConstrainedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.ComponentRealization_4004 == req.getElementType()) {
+ return getGEFWrapper(new ComponentRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InterfaceRealization_4005 == req.getElementType()) {
+ return getGEFWrapper(new InterfaceRealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Substitution_4011 == req.getElementType()) {
+ return getGEFWrapper(new SubstitutionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Realization_4006 == req.getElementType()) {
+ return getGEFWrapper(new RealizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Manifestation_4012 == req.getElementType()) {
+ return getGEFWrapper(new ManifestationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Abstraction_4007 == req.getElementType()) {
+ return getGEFWrapper(new AbstractionCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Usage_4008 == req.getElementType()) {
+ return getGEFWrapper(new UsageCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Deployment_4009 == req.getElementType()) {
+ return getGEFWrapper(new DeploymentCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4017 == req.getElementType()) {
+ return getGEFWrapper(new RoleBindingCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Dependency_4010 == req.getElementType()) {
+ return getGEFWrapper(new DependencyCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.Generalization_4015 == req.getElementType()) {
+ return getGEFWrapper(new GeneralizationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.TimeObservationEvent_4018 == req.getElementType()) {
+ return getGEFWrapper(new TimeObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.DurationObservationEvent_4019 == req.getElementType()) {
+ return getGEFWrapper(new DurationObservationEventCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InformationItemRepresented_4020 == req.getElementType()) {
+ return getGEFWrapper(new RepresentationCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ if(UMLElementTypes.InformationFlow_4021 == req.getElementType()) {
+ return getGEFWrapper(new InformationFlowCreateCommand(req, req.getSource(), req.getTarget()));
+ }
+ return null;
+ }
+
+ /**
+ * Returns command to reorient EClass based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientRelationshipCommand(ReorientRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case ComponentRealizationEditPart.VISUAL_ID:
+ case InterfaceRealizationEditPart.VISUAL_ID:
+ case SubstitutionEditPart.VISUAL_ID:
+ case RealizationEditPart.VISUAL_ID:
+ case ManifestationEditPart.VISUAL_ID:
+ case AbstractionEditPart.VISUAL_ID:
+ case UsageEditPart.VISUAL_ID:
+ case DeploymentEditPart.VISUAL_ID:
+ case DependencyEditPart.VISUAL_ID:
+ case GeneralizationEditPart.VISUAL_ID:
+ case InformationFlowEditPart.VISUAL_ID:
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(req.getRelationship());
+ if(provider == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ // Retrieve re-orient command from the Element Edit service
+ ICommand reorientCommand = provider.getEditCommand(req);
+ if(reorientCommand == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ return getGEFWrapper(reorientCommand.reduce());
+ case RoleBindingEditPart.VISUAL_ID:
+ return getGEFWrapper(new RoleBindingReorientCommand(req));
+ }
+ return super.getReorientRelationshipCommand(req);
+ }
+
+ /**
+ * Returns command to reorient EReference based link. New link target or source
+ * should be the domain model element associated with this node.
+ *
+ * @generated
+ */
+ protected Command getReorientReferenceRelationshipCommand(ReorientReferenceRelationshipRequest req) {
+ switch(getVisualID(req)) {
+ case CommentAnnotatedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new CommentAnnotatedElementReorientCommand(req));
+ case ConstraintConstrainedElementEditPart.VISUAL_ID:
+ return getGEFWrapper(new ConstraintConstrainedElementReorientCommand(req));
+ case TimeObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new TimeObservationEventReorientCommand(req));
+ case DurationObservationEventEditPart.VISUAL_ID:
+ return getGEFWrapper(new DurationObservationEventReorientCommand(req));
+ case RepresentationEditPart.VISUAL_ID:
+ return getGEFWrapper(new RepresentationReorientCommand(req));
+ }
+ return super.getReorientReferenceRelationshipCommand(req);
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/parsers/AbstractParser.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/parsers/AbstractParser.java
new file mode 100644
index 00000000000..89405c2a034
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/parsers/AbstractParser.java
@@ -0,0 +1,431 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.parsers;
+
+import java.util.Arrays;
+
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EAttribute;
+import org.eclipse.emf.ecore.EClassifier;
+import org.eclipse.emf.ecore.EDataType;
+import org.eclipse.emf.ecore.EEnum;
+import org.eclipse.emf.ecore.EEnumLiteral;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.emf.transaction.util.TransactionUtil;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.common.core.command.UnexecutableCommand;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserEditStatus;
+import org.eclipse.gmf.runtime.emf.commands.core.command.CompositeTransactionalCommand;
+import org.eclipse.gmf.runtime.emf.type.core.commands.SetValueCommand;
+import org.eclipse.gmf.runtime.emf.type.core.requests.SetRequest;
+import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
+import org.eclipse.osgi.util.NLS;
+import org.eclipse.papyrus.diagram.composite.part.Messages;
+import org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorPlugin;
+
+/**
+ * @generated
+ */
+public abstract class AbstractParser implements IParser {
+
+ /**
+ * @generated
+ */
+ protected final EAttribute[] features;
+
+ /**
+ * @generated
+ */
+ protected final EAttribute[] editableFeatures;
+
+ /**
+ * @generated
+ */
+ private String viewPattern;
+
+ /**
+ * @generated
+ */
+ private String editorPattern;
+
+ /**
+ * @generated
+ */
+ private String editPattern;
+
+ /**
+ * @generated
+ */
+ public AbstractParser(EAttribute[] features) {
+ if(features == null || Arrays.asList(features).contains(null)) {
+ throw new IllegalArgumentException();
+ }
+ this.editableFeatures = this.features = features;
+ }
+
+ /**
+ * @generated
+ */
+ public AbstractParser(EAttribute[] features, EAttribute[] editableFeatures) {
+ if(features == null || Arrays.asList(features).contains(null)) {
+ throw new IllegalArgumentException();
+ }
+ this.features = features;
+ if(editableFeatures == null || Arrays.asList(editableFeatures).contains(null)) {
+ throw new IllegalArgumentException();
+ }
+ this.editableFeatures = editableFeatures;
+ }
+
+ /**
+ * @generated
+ */
+ public String getViewPattern() {
+ return viewPattern;
+ }
+
+ /**
+ * @generated
+ */
+ public void setViewPattern(String viewPattern) {
+ this.viewPattern = viewPattern;
+ }
+
+ /**
+ * @generated
+ */
+ public String getEditorPattern() {
+ return editorPattern;
+ }
+
+ /**
+ * @generated
+ */
+ public void setEditorPattern(String editorPattern) {
+ this.editorPattern = editorPattern;
+ }
+
+ /**
+ * @generated
+ */
+ public String getEditPattern() {
+ return editPattern;
+ }
+
+ /**
+ * @generated
+ */
+ public void setEditPattern(String editPattern) {
+ this.editPattern = editPattern;
+ }
+
+ /**
+ * @generated
+ */
+ public boolean isAffectingEvent(Object event, int flags) {
+ if(event instanceof Notification) {
+ return isAffectingFeature(((Notification)event).getFeature());
+ }
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean isAffectingFeature(Object feature) {
+ for(int i = 0; i < features.length; i++) {
+ if(features[i] == feature) {
+ return true;
+ }
+ }
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ public IContentAssistProcessor getCompletionProcessor(IAdaptable element) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected Object[] getValues(EObject element) {
+ Object[] values = new Object[features.length];
+ for(int i = 0; i < features.length; i++) {
+ values[i] = getValue(element, features[i]);
+ }
+ return values;
+ }
+
+ /**
+ * @generated
+ */
+ protected Object[] getEditableValues(EObject element) {
+ Object[] values = new Object[editableFeatures.length];
+ for(int i = 0; i < editableFeatures.length; i++) {
+ values[i] = getValue(element, editableFeatures[i]);
+ }
+ return values;
+ }
+
+ /**
+ * @generated
+ */
+ protected Object getValue(EObject element, EAttribute feature) {
+ Object value = element.eGet(feature);
+ Class iClass = feature.getEAttributeType().getInstanceClass();
+ if(String.class.equals(iClass)) {
+ if(value == null) {
+ value = ""; //$NON-NLS-1$
+ }
+ }
+ return value;
+ }
+
+ /**
+ * @generated
+ */
+ protected ICommand getParseCommand(IAdaptable adapter, Object[] values, int flags) {
+ if(values == null || validateNewValues(values).getCode() != IParserEditStatus.EDITABLE) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ EObject element = (EObject)adapter.getAdapter(EObject.class);
+ TransactionalEditingDomain editingDomain = TransactionUtil.getEditingDomain(element);
+ if(editingDomain == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ CompositeTransactionalCommand command = new CompositeTransactionalCommand(editingDomain, "Set Values"); //$NON-NLS-1$
+ for(int i = 0; i < values.length; i++) {
+ command.compose(getModificationCommand(element, editableFeatures[i], values[i]));
+ }
+ return command;
+ }
+
+ /**
+ * @generated
+ */
+ protected ICommand getModificationCommand(EObject element, EAttribute feature, Object value) {
+ value = getValidNewValue(feature, value);
+ if(value instanceof InvalidValue) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ SetRequest request = new SetRequest(element, feature, value);
+ return new SetValueCommand(request);
+ }
+
+ /**
+ * @generated
+ */
+ protected IParserEditStatus validateNewValues(Object[] values) {
+ if(values.length != editableFeatures.length) {
+ return ParserEditStatus.UNEDITABLE_STATUS;
+ }
+ for(int i = 0; i < values.length; i++) {
+ Object value = getValidNewValue(editableFeatures[i], values[i]);
+ if(value instanceof InvalidValue) {
+ return new ParserEditStatus(UMLDiagramEditorPlugin.ID, IParserEditStatus.UNEDITABLE, value.toString());
+ }
+ }
+ return ParserEditStatus.EDITABLE_STATUS;
+ }
+
+ /**
+ * @generated
+ */
+ protected Object getValidNewValue(EAttribute feature, Object value) {
+ EClassifier type = feature.getEType();
+ if(type instanceof EDataType) {
+ Class iClass = type.getInstanceClass();
+ if(Boolean.TYPE.equals(iClass)) {
+ if(value instanceof Boolean) {
+ // ok
+ } else if(value instanceof String) {
+ value = Boolean.valueOf((String)value);
+ } else {
+ value = new InvalidValue(NLS.bind(Messages.AbstractParser_UnexpectedValueType, iClass.getName()));
+ }
+ } else if(Character.TYPE.equals(iClass)) {
+ if(value instanceof Character) {
+ // ok
+ } else if(value instanceof String) {
+ String s = (String)value;
+ if(s.length() == 0) {
+ value = null;
+ } else {
+ value = new Character(s.charAt(0));
+ }
+ } else {
+ value = new InvalidValue(NLS.bind(Messages.AbstractParser_UnexpectedValueType, iClass.getName()));
+ }
+ } else if(Byte.TYPE.equals(iClass)) {
+ if(value instanceof Byte) {
+ // ok
+ } else if(value instanceof Number) {
+ value = new Byte(((Number)value).byteValue());
+ } else if(value instanceof String) {
+ String s = (String)value;
+ if(s.length() == 0) {
+ value = null;
+ } else {
+ try {
+ value = Byte.valueOf(s);
+ } catch (NumberFormatException nfe) {
+ value = new InvalidValue(NLS.bind(Messages.AbstractParser_WrongStringConversion, iClass.getName()));
+ }
+ }
+ } else {
+ value = new InvalidValue(NLS.bind(Messages.AbstractParser_UnexpectedValueType, iClass.getName()));
+ }
+ } else if(Short.TYPE.equals(iClass)) {
+ if(value instanceof Short) {
+ // ok
+ } else if(value instanceof Number) {
+ value = new Short(((Number)value).shortValue());
+ } else if(value instanceof String) {
+ String s = (String)value;
+ if(s.length() == 0) {
+ value = null;
+ } else {
+ try {
+ value = Short.valueOf(s);
+ } catch (NumberFormatException nfe) {
+ value = new InvalidValue(NLS.bind(Messages.AbstractParser_WrongStringConversion, iClass.getName()));
+ }
+ }
+ } else {
+ value = new InvalidValue(NLS.bind(Messages.AbstractParser_UnexpectedValueType, iClass.getName()));
+ }
+ } else if(Integer.TYPE.equals(iClass)) {
+ if(value instanceof Integer) {
+ // ok
+ } else if(value instanceof Number) {
+ value = new Integer(((Number)value).intValue());
+ } else if(value instanceof String) {
+ String s = (String)value;
+ if(s.length() == 0) {
+ value = null;
+ } else {
+ try {
+ value = Integer.valueOf(s);
+ } catch (NumberFormatException nfe) {
+ value = new InvalidValue(NLS.bind(Messages.AbstractParser_WrongStringConversion, iClass.getName()));
+ }
+ }
+ } else {
+ value = new InvalidValue(NLS.bind(Messages.AbstractParser_UnexpectedValueType, iClass.getName()));
+ }
+ } else if(Long.TYPE.equals(iClass)) {
+ if(value instanceof Long) {
+ // ok
+ } else if(value instanceof Number) {
+ value = new Long(((Number)value).longValue());
+ } else if(value instanceof String) {
+ String s = (String)value;
+ if(s.length() == 0) {
+ value = null;
+ } else {
+ try {
+ value = Long.valueOf(s);
+ } catch (NumberFormatException nfe) {
+ value = new InvalidValue(NLS.bind(Messages.AbstractParser_WrongStringConversion, iClass.getName()));
+ }
+ }
+ } else {
+ value = new InvalidValue(NLS.bind(Messages.AbstractParser_UnexpectedValueType, iClass.getName()));
+ }
+ } else if(Float.TYPE.equals(iClass)) {
+ if(value instanceof Float) {
+ // ok
+ } else if(value instanceof Number) {
+ value = new Float(((Number)value).floatValue());
+ } else if(value instanceof String) {
+ String s = (String)value;
+ if(s.length() == 0) {
+ value = null;
+ } else {
+ try {
+ value = Float.valueOf(s);
+ } catch (NumberFormatException nfe) {
+ value = new InvalidValue(NLS.bind(Messages.AbstractParser_WrongStringConversion, iClass.getName()));
+ }
+ }
+ } else {
+ value = new InvalidValue(NLS.bind(Messages.AbstractParser_UnexpectedValueType, iClass.getName()));
+ }
+ } else if(Double.TYPE.equals(iClass)) {
+ if(value instanceof Double) {
+ // ok
+ } else if(value instanceof Number) {
+ value = new Double(((Number)value).doubleValue());
+ } else if(value instanceof String) {
+ String s = (String)value;
+ if(s.length() == 0) {
+ value = null;
+ } else {
+ try {
+ value = Double.valueOf(s);
+ } catch (NumberFormatException nfe) {
+ value = new InvalidValue(NLS.bind(Messages.AbstractParser_WrongStringConversion, iClass.getName()));
+ }
+ }
+ } else {
+ value = new InvalidValue(NLS.bind(Messages.AbstractParser_UnexpectedValueType, iClass.getName()));
+ }
+ } else if(type instanceof EEnum) {
+ if(value instanceof String) {
+ EEnumLiteral literal = ((EEnum)type).getEEnumLiteralByLiteral((String)value);
+ if(literal == null) {
+ value = new InvalidValue(NLS.bind(Messages.AbstractParser_UnknownLiteral, value));
+ } else {
+ value = literal.getInstance();
+ }
+ } else {
+ value = new InvalidValue(NLS.bind(Messages.AbstractParser_UnexpectedValueType, String.class.getName()));
+ }
+ }
+ }
+ return value;
+ }
+
+ /**
+ * @generated
+ */
+ protected class InvalidValue {
+
+ /**
+ * @generated
+ */
+ private String description;
+
+ /**
+ * @generated
+ */
+ public InvalidValue(String description) {
+ this.description = description;
+ }
+
+ /**
+ * @generated
+ */
+ public String toString() {
+ return description;
+ }
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/parsers/MessageFormatParser.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/parsers/MessageFormatParser.java
new file mode 100644
index 00000000000..a008019ecdc
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/parsers/MessageFormatParser.java
@@ -0,0 +1,202 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.parsers;
+
+import java.text.FieldPosition;
+import java.text.MessageFormat;
+import java.text.ParsePosition;
+
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.emf.ecore.EAttribute;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserEditStatus;
+import org.eclipse.osgi.util.NLS;
+import org.eclipse.papyrus.diagram.composite.part.Messages;
+import org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorPlugin;
+
+/**
+ * @generated
+ */
+public class MessageFormatParser extends AbstractParser {
+
+ /**
+ * @generated
+ */
+ private String defaultPattern;
+
+ /**
+ * @generated
+ */
+ private String defaultEditablePattern;
+
+ /**
+ * @generated
+ */
+ private MessageFormat viewProcessor;
+
+ /**
+ * @generated
+ */
+ private MessageFormat editorProcessor;
+
+ /**
+ * @generated
+ */
+ private MessageFormat editProcessor;
+
+ /**
+ * @generated
+ */
+ public MessageFormatParser(EAttribute[] features) {
+ super(features);
+ }
+
+ /**
+ * @generated
+ */
+ public MessageFormatParser(EAttribute[] features, EAttribute[] editableFeatures) {
+ super(features, editableFeatures);
+ }
+
+ /**
+ * @generated
+ */
+ protected String getDefaultPattern() {
+ if(defaultPattern == null) {
+ StringBuffer sb = new StringBuffer();
+ for(int i = 0; i < features.length; i++) {
+ if(i > 0) {
+ sb.append(' ');
+ }
+ sb.append('{');
+ sb.append(i);
+ sb.append('}');
+ }
+ defaultPattern = sb.toString();
+ }
+ return defaultPattern;
+ }
+
+ /**
+ * @generated
+ */
+ public void setViewPattern(String viewPattern) {
+ super.setViewPattern(viewPattern);
+ viewProcessor = null;
+ }
+
+ /**
+ * @generated
+ */
+ public void setEditorPattern(String editorPattern) {
+ super.setEditorPattern(editorPattern);
+ editorProcessor = null;
+ }
+
+ /**
+ * @generated
+ */
+ protected MessageFormat getViewProcessor() {
+ if(viewProcessor == null) {
+ viewProcessor = new MessageFormat(getViewPattern() == null ? getDefaultPattern() : getViewPattern());
+ }
+ return viewProcessor;
+ }
+
+ /**
+ * @generated
+ */
+ protected MessageFormat getEditorProcessor() {
+ if(editorProcessor == null) {
+ editorProcessor = new MessageFormat(getEditorPattern() == null ? getDefaultEditablePattern() : getEditorPattern());
+ }
+ return editorProcessor;
+ }
+
+ /**
+ * @generated
+ */
+ protected String getDefaultEditablePattern() {
+ if(defaultEditablePattern == null) {
+ StringBuffer sb = new StringBuffer();
+ for(int i = 0; i < editableFeatures.length; i++) {
+ if(i > 0) {
+ sb.append(' ');
+ }
+ sb.append('{');
+ sb.append(i);
+ sb.append('}');
+ }
+ defaultEditablePattern = sb.toString();
+ }
+ return defaultEditablePattern;
+ }
+
+ /**
+ * @generated
+ */
+ public void setEditPattern(String editPattern) {
+ super.setEditPattern(editPattern);
+ editProcessor = null;
+ }
+
+ /**
+ * @generated
+ */
+ protected MessageFormat getEditProcessor() {
+ if(editProcessor == null) {
+ editProcessor = new MessageFormat(getEditPattern() == null ? getDefaultEditablePattern() : getEditPattern());
+ }
+ return editProcessor;
+ }
+
+ /**
+ * @generated
+ */
+ public String getEditString(IAdaptable adapter, int flags) {
+ EObject element = (EObject)adapter.getAdapter(EObject.class);
+ return getEditorProcessor().format(getEditableValues(element), new StringBuffer(), new FieldPosition(0)).toString();
+ }
+
+ /**
+ * @generated
+ */
+ public IParserEditStatus isValidEditString(IAdaptable adapter, String editString) {
+ ParsePosition pos = new ParsePosition(0);
+ Object[] values = getEditProcessor().parse(editString, pos);
+ if(values == null) {
+ return new ParserEditStatus(UMLDiagramEditorPlugin.ID, IParserEditStatus.UNEDITABLE, NLS.bind(Messages.MessageFormatParser_InvalidInputError, new Integer(pos.getErrorIndex())));
+ }
+ return validateNewValues(values);
+ }
+
+ /**
+ * @generated
+ */
+ public ICommand getParseCommand(IAdaptable adapter, String newString, int flags) {
+ Object[] values = getEditProcessor().parse(newString, new ParsePosition(0));
+ return getParseCommand(adapter, values, flags);
+ }
+
+ /**
+ * @generated
+ */
+ public String getPrintString(IAdaptable adapter, int flags) {
+ EObject element = (EObject)adapter.getAdapter(EObject.class);
+ return getViewProcessor().format(getValues(element), new StringBuffer(), new FieldPosition(0)).toString();
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/part/DeleteElementAction.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/part/DeleteElementAction.java
new file mode 100644
index 00000000000..8205c3b72f5
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/part/DeleteElementAction.java
@@ -0,0 +1,2 @@
+//This file is not used.
+//The DeleteElementAction is removed from the plugin and replaced by DeleteFromModelAction in the plugin org.eclipse.diagram.common.
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/part/DiagramEditorContextMenuProvider.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/part/DiagramEditorContextMenuProvider.java
new file mode 100644
index 00000000000..586abb3b497
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/part/DiagramEditorContextMenuProvider.java
@@ -0,0 +1,62 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.part;
+
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.util.TransactionUtil;
+import org.eclipse.gef.EditPartViewer;
+import org.eclipse.gmf.runtime.common.ui.services.action.contributionitem.ContributionItemService;
+import org.eclipse.gmf.runtime.diagram.ui.actions.ActionIds;
+import org.eclipse.gmf.runtime.diagram.ui.providers.DiagramContextMenuProvider;
+import org.eclipse.jface.action.IMenuManager;
+import org.eclipse.ui.IWorkbenchPart;
+
+/**
+ * @generated
+ */
+public class DiagramEditorContextMenuProvider extends DiagramContextMenuProvider {
+
+ /**
+ * @generated
+ */
+ private IWorkbenchPart part;
+
+ /**
+ * @generated
+ */
+ public DiagramEditorContextMenuProvider(IWorkbenchPart part, EditPartViewer viewer) {
+ super(part, viewer);
+ this.part = part;
+
+ }
+
+ /**
+ * @generated
+ */
+ public void buildContextMenu(final IMenuManager menu) {
+ getViewer().flush();
+ try {
+ TransactionUtil.getEditingDomain((EObject)getViewer().getContents().getModel()).runExclusive(new Runnable() {
+
+ public void run() {
+ ContributionItemService.getInstance().contributeToPopupMenu(DiagramEditorContextMenuProvider.this, part);
+ menu.remove(ActionIds.ACTION_DELETE_FROM_MODEL);
+
+ }
+ });
+ } catch (Exception e) {
+ UMLDiagramEditorPlugin.getInstance().logError("Error building context menu", e);
+ }
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/part/LoadResourceAction.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/part/LoadResourceAction.java
new file mode 100644
index 00000000000..2af2a28ef38
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/part/LoadResourceAction.java
@@ -0,0 +1,43 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.part;
+
+import org.eclipse.core.commands.AbstractHandler;
+import org.eclipse.core.commands.ExecutionEvent;
+import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gmf.runtime.diagram.ui.parts.DiagramEditor;
+import org.eclipse.swt.widgets.Shell;
+import org.eclipse.ui.IEditorPart;
+import org.eclipse.ui.handlers.HandlerUtil;
+
+/**
+ * @generated
+ */
+public class LoadResourceAction extends AbstractHandler {
+
+ /**
+ * @generated
+ */
+ public Object execute(ExecutionEvent event) throws ExecutionException {
+ IEditorPart diagramEditor = HandlerUtil.getActiveEditorChecked(event);
+ Shell shell = diagramEditor.getEditorSite().getShell();
+ assert diagramEditor instanceof DiagramEditor;
+ TransactionalEditingDomain editingDomain = ((DiagramEditor)diagramEditor).getEditingDomain();
+ org.eclipse.emf.edit.ui.action.LoadResourceAction.LoadResourceDialog loadResourceDialog = new org.eclipse.emf.edit.ui.action.LoadResourceAction.LoadResourceDialog(shell, editingDomain);
+ loadResourceDialog.open();
+ return null;
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/part/Messages.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/part/Messages.java
new file mode 100644
index 00000000000..a7946e7c439
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/part/Messages.java
@@ -0,0 +1,757 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.part;
+
+import org.eclipse.osgi.util.NLS;
+
+/**
+ * @generated
+ */
+public class Messages extends NLS {
+
+ /**
+ * @generated
+ */
+ static {
+ NLS.initializeMessages("messages", Messages.class); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ private Messages() {
+ }
+
+ /**
+ * @generated
+ */
+ public static String UMLCreationWizardTitle;
+
+ /**
+ * @generated
+ */
+ public static String UMLCreationWizard_DiagramModelFilePageTitle;
+
+ /**
+ * @generated
+ */
+ public static String UMLCreationWizard_DiagramModelFilePageDescription;
+
+ /**
+ * @generated
+ */
+ public static String UMLCreationWizard_DomainModelFilePageTitle;
+
+ /**
+ * @generated
+ */
+ public static String UMLCreationWizard_DomainModelFilePageDescription;
+
+ /**
+ * @generated
+ */
+ public static String UMLCreationWizardOpenEditorError;
+
+ /**
+ * @generated
+ */
+ public static String UMLCreationWizardCreationError;
+
+ /**
+ * @generated
+ */
+ public static String UMLCreationWizardPageExtensionError;
+
+ /**
+ * @generated
+ */
+ public static String UMLDiagramEditorUtil_OpenModelResourceErrorDialogTitle;
+
+ /**
+ * @generated
+ */
+ public static String UMLDiagramEditorUtil_OpenModelResourceErrorDialogMessage;
+
+ /**
+ * @generated
+ */
+ public static String UMLDiagramEditorUtil_CreateDiagramProgressTask;
+
+ /**
+ * @generated
+ */
+ public static String UMLDiagramEditorUtil_CreateDiagramCommandLabel;
+
+ /**
+ * @generated
+ */
+ public static String UMLDocumentProvider_isModifiable;
+
+ /**
+ * @generated
+ */
+ public static String UMLDocumentProvider_handleElementContentChanged;
+
+ /**
+ * @generated
+ */
+ public static String UMLDocumentProvider_IncorrectInputError;
+
+ /**
+ * @generated
+ */
+ public static String UMLDocumentProvider_NoDiagramInResourceError;
+
+ /**
+ * @generated
+ */
+ public static String UMLDocumentProvider_DiagramLoadingError;
+
+ /**
+ * @generated
+ */
+ public static String UMLDocumentProvider_UnsynchronizedFileSaveError;
+
+ /**
+ * @generated
+ */
+ public static String UMLDocumentProvider_SaveDiagramTask;
+
+ /**
+ * @generated
+ */
+ public static String UMLDocumentProvider_SaveNextResourceTask;
+
+ /**
+ * @generated
+ */
+ public static String UMLDocumentProvider_SaveAsOperation;
+
+ /**
+ * @generated
+ */
+ public static String InitDiagramFile_ResourceErrorDialogTitle;
+
+ /**
+ * @generated
+ */
+ public static String InitDiagramFile_ResourceErrorDialogMessage;
+
+ /**
+ * @generated
+ */
+ public static String InitDiagramFile_WizardTitle;
+
+ /**
+ * @generated
+ */
+ public static String InitDiagramFile_OpenModelFileDialogTitle;
+
+ /**
+ * @generated
+ */
+ public static String UMLNewDiagramFileWizard_CreationPageName;
+
+ /**
+ * @generated
+ */
+ public static String UMLNewDiagramFileWizard_CreationPageTitle;
+
+ /**
+ * @generated
+ */
+ public static String UMLNewDiagramFileWizard_CreationPageDescription;
+
+ /**
+ * @generated
+ */
+ public static String UMLNewDiagramFileWizard_RootSelectionPageName;
+
+ /**
+ * @generated
+ */
+ public static String UMLNewDiagramFileWizard_RootSelectionPageTitle;
+
+ /**
+ * @generated
+ */
+ public static String UMLNewDiagramFileWizard_RootSelectionPageDescription;
+
+ /**
+ * @generated
+ */
+ public static String UMLNewDiagramFileWizard_RootSelectionPageSelectionTitle;
+
+ /**
+ * @generated
+ */
+ public static String UMLNewDiagramFileWizard_RootSelectionPageNoSelectionMessage;
+
+ /**
+ * @generated
+ */
+ public static String UMLNewDiagramFileWizard_RootSelectionPageInvalidSelectionMessage;
+
+ /**
+ * @generated
+ */
+ public static String UMLNewDiagramFileWizard_InitDiagramCommand;
+
+ /**
+ * @generated
+ */
+ public static String UMLNewDiagramFileWizard_IncorrectRootError;
+
+ /**
+ * @generated
+ */
+ public static String UMLDiagramEditor_SavingDeletedFile;
+
+ /**
+ * @generated
+ */
+ public static String UMLDiagramEditor_SaveAsErrorTitle;
+
+ /**
+ * @generated
+ */
+ public static String UMLDiagramEditor_SaveAsErrorMessage;
+
+ /**
+ * @generated
+ */
+ public static String UMLDiagramEditor_SaveErrorTitle;
+
+ /**
+ * @generated
+ */
+ public static String UMLDiagramEditor_SaveErrorMessage;
+
+ /**
+ * @generated
+ */
+ public static String UMLElementChooserDialog_SelectModelElementTitle;
+
+ /**
+ * @generated
+ */
+ public static String ModelElementSelectionPageMessage;
+
+ /**
+ * @generated
+ */
+ public static String ValidateActionMessage;
+
+ /**
+ * @generated
+ */
+ public static String createNodesGroup_title;
+
+ /**
+ * @generated
+ */
+ public static String createNodesGroup_desc;
+
+ /**
+ * @generated
+ */
+ public static String createEdgesGroup_title;
+
+ /**
+ * @generated
+ */
+ public static String createEdgesGroup_desc;
+
+ /**
+ * @generated
+ */
+ public static String createClassCreationTool_title;
+
+ /**
+ * @generated
+ */
+ public static String createClassCreationTool_desc;
+
+ /**
+ * @generated
+ */
+ public static String createPropertyCreationTool_title;
+
+ /**
+ * @generated
+ */
+ public static String createPropertyCreationTool_desc;
+
+ /**
+ * @generated
+ */
+ public static String createPortCreationTool_title;
+
+ /**
+ * @generated
+ */
+ public static String createPortCreationTool_desc;
+
+ /**
+ * @generated
+ */
+ public static String createCollaborationCreationTool_title;
+
+ /**
+ * @generated
+ */
+ public static String createCollaborationCreationTool_desc;
+
+ /**
+ * @generated
+ */
+ public static String createCollaborationRoleCreationTool_title;
+
+ /**
+ * @generated
+ */
+ public static String createCollaborationRoleCreationTool_desc;
+
+ /**
+ * @generated
+ */
+ public static String createCollaborationUseCreationTool_title;
+
+ /**
+ * @generated
+ */
+ public static String createCollaborationUseCreationTool_desc;
+
+ /**
+ * @generated
+ */
+ public static String createCommentCreationTool_title;
+
+ /**
+ * @generated
+ */
+ public static String createCommentCreationTool_desc;
+
+ /**
+ * @generated
+ */
+ public static String createConstraintCreationTool_title;
+
+ /**
+ * @generated
+ */
+ public static String createConstraintCreationTool_desc;
+
+ /**
+ * @generated
+ */
+ public static String createTimeObservationCreationTool_title;
+
+ /**
+ * @generated
+ */
+ public static String createTimeObservationCreationTool_desc;
+
+ /**
+ * @generated
+ */
+ public static String createDurationObservationCreationTool_title;
+
+ /**
+ * @generated
+ */
+ public static String createDurationObservationCreationTool_desc;
+
+ /**
+ * @generated
+ */
+ public static String createInformationItemCreationTool_title;
+
+ /**
+ * @generated
+ */
+ public static String createInformationItemCreationTool_desc;
+
+ /**
+ * @generated
+ */
+ public static String createParameterCreationTool_title;
+
+ /**
+ * @generated
+ */
+ public static String createParameterCreationTool_desc;
+
+ /**
+ * @generated
+ */
+ public static String createActivityCreationTool_title;
+
+ /**
+ * @generated
+ */
+ public static String createActivityCreationTool_desc;
+
+ /**
+ * @generated
+ */
+ public static String createInteractionCreationTool_title;
+
+ /**
+ * @generated
+ */
+ public static String createInteractionCreationTool_desc;
+
+ /**
+ * @generated
+ */
+ public static String createProtocolStateMachineCreationTool_title;
+
+ /**
+ * @generated
+ */
+ public static String createProtocolStateMachineCreationTool_desc;
+
+ /**
+ * @generated
+ */
+ public static String createStateMachineCreationTool_title;
+
+ /**
+ * @generated
+ */
+ public static String createStateMachineCreationTool_desc;
+
+ /**
+ * @generated
+ */
+ public static String createFunctionBehaviorCreationTool_title;
+
+ /**
+ * @generated
+ */
+ public static String createFunctionBehaviorCreationTool_desc;
+
+ /**
+ * @generated
+ */
+ public static String createOpaqueBehaviorCreationTool_title;
+
+ /**
+ * @generated
+ */
+ public static String createOpaqueBehaviorCreationTool_desc;
+
+ /**
+ * @generated
+ */
+ public static String createLinkCreationTool_title;
+
+ /**
+ * @generated
+ */
+ public static String createLinkCreationTool_desc;
+
+ /**
+ * @generated
+ */
+ public static String createConnectorCreationTool_title;
+
+ /**
+ * @generated
+ */
+ public static String createConnectorCreationTool_desc;
+
+ /**
+ * @generated
+ */
+ public static String createRoleBindingCreationTool_title;
+
+ /**
+ * @generated
+ */
+ public static String createRoleBindingCreationTool_desc;
+
+ /**
+ * @generated
+ */
+ public static String createGeneralizationCreationTool_title;
+
+ /**
+ * @generated
+ */
+ public static String createGeneralizationCreationTool_desc;
+
+ /**
+ * @generated
+ */
+ public static String createRealizationCreationTool_title;
+
+ /**
+ * @generated
+ */
+ public static String createRealizationCreationTool_desc;
+
+ /**
+ * @generated
+ */
+ public static String createSubstitutionCreationTool_title;
+
+ /**
+ * @generated
+ */
+ public static String createSubstitutionCreationTool_desc;
+
+ /**
+ * @generated
+ */
+ public static String createAbstractionCreationTool_title;
+
+ /**
+ * @generated
+ */
+ public static String createAbstractionCreationTool_desc;
+
+ /**
+ * @generated
+ */
+ public static String createUsageCreationTool_title;
+
+ /**
+ * @generated
+ */
+ public static String createUsageCreationTool_desc;
+
+ /**
+ * @generated
+ */
+ public static String createDependencyCreationTool_title;
+
+ /**
+ * @generated
+ */
+ public static String createDependencyCreationTool_desc;
+
+ /**
+ * @generated
+ */
+ public static String createRepresentationCreationTool_title;
+
+ /**
+ * @generated
+ */
+ public static String createRepresentationCreationTool_desc;
+
+ /**
+ * @generated
+ */
+ public static String createInformationFlowCreationTool_title;
+
+ /**
+ * @generated
+ */
+ public static String createInformationFlowCreationTool_desc;
+
+ /**
+ * @generated
+ */
+ public static String DataTypeAttributeCompartmentEditPart_title;
+
+ /**
+ * @generated
+ */
+ public static String DataTypeOperationCompartmentEditPart_title;
+
+ /**
+ * @generated
+ */
+ public static String DataTypeAttributeCompartmentEditPartCN_title;
+
+ /**
+ * @generated
+ */
+ public static String DataTypeOperationCompartmentEditPartCN_title;
+
+ /**
+ * @generated
+ */
+ public static String EnumerationEnumerationLiteralCompartmentEditPart_title;
+
+ /**
+ * @generated
+ */
+ public static String EnumerationEnumerationLiteralCompartmentEditPartCN_title;
+
+ /**
+ * @generated
+ */
+ public static String ActivityCompositeCompartmentEditPartCN_title;
+
+ /**
+ * @generated
+ */
+ public static String InteractionCompositeCompartmentEditPartCN_title;
+
+ /**
+ * @generated
+ */
+ public static String ProtocolStateMachineCompositeCompartmentEditPartCN_title;
+
+ /**
+ * @generated
+ */
+ public static String StateMachineCompositeCompartmentEditPartCN_title;
+
+ /**
+ * @generated
+ */
+ public static String FunctionBehaviorCompositeCompartmentEditPartCN_title;
+
+ /**
+ * @generated
+ */
+ public static String OpaqueBehaviorCompositeCompartmentEditPartCN_title;
+
+ /**
+ * @generated
+ */
+ public static String ComponentCompositeCompartmentEditPartCN_title;
+
+ /**
+ * @generated
+ */
+ public static String DeviceCompositeCompartmentEditPartCN_title;
+
+ /**
+ * @generated
+ */
+ public static String ExecutionEnvironmentCompositeCompartmentEditPartCN_title;
+
+ /**
+ * @generated
+ */
+ public static String NodeCompositeCompartmentEditPartCN_title;
+
+ /**
+ * @generated
+ */
+ public static String ClassCompositeCompartmentEditPartCN_title;
+
+ /**
+ * @generated
+ */
+ public static String CollaborationCompositeCompartmentEditPartCN_title;
+
+ /**
+ * @generated
+ */
+ public static String ActivityCompositeCompartmentEditPart_title;
+
+ /**
+ * @generated
+ */
+ public static String InteractionCompositeCompartmentEditPart_title;
+
+ /**
+ * @generated
+ */
+ public static String ProtocolStateMachineCompositeCompartmentEditPart_title;
+
+ /**
+ * @generated
+ */
+ public static String StateMachineCompositeCompartmentEditPart_title;
+
+ /**
+ * @generated
+ */
+ public static String FunctionBehaviorCompositeCompartmentEditPart_title;
+
+ /**
+ * @generated
+ */
+ public static String OpaqueBehaviorCompositeCompartmentEditPart_title;
+
+ /**
+ * @generated
+ */
+ public static String ComponentCompositeCompartmentEditPart_title;
+
+ /**
+ * @generated
+ */
+ public static String DeviceCompositeCompartmentEditPart_title;
+
+ /**
+ * @generated
+ */
+ public static String ExecutionEnvironmentCompositeCompartmentEditPart_title;
+
+ /**
+ * @generated
+ */
+ public static String NodeCompositeCompartmentEditPart_title;
+
+ /**
+ * @generated
+ */
+ public static String ClassCompositeCompartmentEditPart_title;
+
+ /**
+ * @generated
+ */
+ public static String CollaborationCompositeCompartmentEditPart_title;
+
+ /**
+ * @generated
+ */
+ public static String PropertyPartCompartmentEditPartCN_title;
+
+ /**
+ * @generated
+ */
+ public static String CommandName_OpenDiagram;
+
+ /**
+ * @generated
+ */
+ public static String AbstractParser_UnexpectedValueType;
+
+ /**
+ * @generated
+ */
+ public static String AbstractParser_WrongStringConversion;
+
+ /**
+ * @generated
+ */
+ public static String AbstractParser_UnknownLiteral;
+
+ /**
+ * @generated
+ */
+ public static String MessageFormatParser_InvalidInputError;
+
+ /**
+ * @generated
+ */
+ public static String UMLModelingAssistantProviderTitle;
+
+ /**
+ * @generated
+ */
+ public static String UMLModelingAssistantProviderMessage;
+
+ //TODO: put accessor fields manually
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/part/ModelElementSelectionPage.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/part/ModelElementSelectionPage.java
new file mode 100644
index 00000000000..2711aa36e49
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/part/ModelElementSelectionPage.java
@@ -0,0 +1,156 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.part;
+
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.ecore.util.FeatureMap;
+import org.eclipse.emf.edit.provider.IWrapperItemProvider;
+import org.eclipse.emf.edit.ui.provider.AdapterFactoryContentProvider;
+import org.eclipse.emf.edit.ui.provider.AdapterFactoryLabelProvider;
+import org.eclipse.jface.viewers.ISelectionChangedListener;
+import org.eclipse.jface.viewers.IStructuredSelection;
+import org.eclipse.jface.viewers.SelectionChangedEvent;
+import org.eclipse.jface.viewers.StructuredSelection;
+import org.eclipse.jface.viewers.TreeViewer;
+import org.eclipse.jface.wizard.WizardPage;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.layout.GridData;
+import org.eclipse.swt.layout.GridLayout;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.swt.widgets.Label;
+
+/**
+ * Wizard page that allows to select element from model.
+ *
+ * @generated
+ */
+public class ModelElementSelectionPage extends WizardPage {
+
+ /**
+ * @generated
+ */
+ protected EObject selectedModelElement;
+
+ /**
+ * @generated
+ */
+ private TreeViewer modelViewer;
+
+ /**
+ * @generated
+ */
+ public ModelElementSelectionPage(String pageName) {
+ super(pageName);
+ }
+
+ /**
+ * @generated
+ */
+ public EObject getModelElement() {
+ return selectedModelElement;
+ }
+
+ /**
+ * @generated
+ */
+ public void setModelElement(EObject modelElement) {
+ selectedModelElement = modelElement;
+ if(modelViewer != null) {
+ if(selectedModelElement != null) {
+ modelViewer.setInput(selectedModelElement.eResource());
+ modelViewer.setSelection(new StructuredSelection(selectedModelElement));
+ } else {
+ modelViewer.setInput(null);
+ }
+ setPageComplete(validatePage());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void createControl(Composite parent) {
+ initializeDialogUnits(parent);
+
+ Composite plate = new Composite(parent, SWT.NONE);
+ plate.setLayoutData(new GridData(GridData.FILL_BOTH));
+ GridLayout layout = new GridLayout();
+ layout.marginWidth = 0;
+ plate.setLayout(layout);
+ setControl(plate);
+
+ Label label = new Label(plate, SWT.NONE);
+ label.setText(getSelectionTitle());
+ label.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_BEGINNING));
+
+ modelViewer = new TreeViewer(plate, SWT.SINGLE | SWT.H_SCROLL | SWT.V_SCROLL | SWT.BORDER);
+ GridData layoutData = new GridData(GridData.FILL_BOTH);
+ layoutData.heightHint = 300;
+ layoutData.widthHint = 300;
+ modelViewer.getTree().setLayoutData(layoutData);
+ modelViewer.setContentProvider(new AdapterFactoryContentProvider(UMLDiagramEditorPlugin.getInstance().getItemProvidersAdapterFactory()));
+ modelViewer.setLabelProvider(new AdapterFactoryLabelProvider(UMLDiagramEditorPlugin.getInstance().getItemProvidersAdapterFactory()));
+ if(selectedModelElement != null) {
+ modelViewer.setInput(selectedModelElement.eResource());
+ modelViewer.setSelection(new StructuredSelection(selectedModelElement));
+ }
+ modelViewer.addSelectionChangedListener(new ISelectionChangedListener() {
+
+ public void selectionChanged(SelectionChangedEvent event) {
+ ModelElementSelectionPage.this.updateSelection((IStructuredSelection)event.getSelection());
+ }
+ });
+
+ setPageComplete(validatePage());
+ }
+
+ /**
+ * Override to provide custom model element description.
+ *
+ * @generated
+ */
+ protected String getSelectionTitle() {
+ return Messages.ModelElementSelectionPageMessage;
+ }
+
+ /**
+ * @generated
+ */
+ protected void updateSelection(IStructuredSelection selection) {
+ selectedModelElement = null;
+ if(selection.size() == 1) {
+ Object selectedElement = selection.getFirstElement();
+ if(selectedElement instanceof IWrapperItemProvider) {
+ selectedElement = ((IWrapperItemProvider)selectedElement).getValue();
+ }
+ if(selectedElement instanceof FeatureMap.Entry) {
+ selectedElement = ((FeatureMap.Entry)selectedElement).getValue();
+ }
+ if(selectedElement instanceof EObject) {
+ selectedModelElement = (EObject)selectedElement;
+ }
+ }
+ setPageComplete(validatePage());
+ }
+
+ /**
+ * Override to provide specific validation of the selected model element.
+ *
+ * @generated
+ */
+ protected boolean validatePage() {
+ return true;
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/part/UMLCreationWizard.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/part/UMLCreationWizard.java
new file mode 100644
index 00000000000..a94dadfb259
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/part/UMLCreationWizard.java
@@ -0,0 +1,167 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.part;
+
+import java.lang.reflect.InvocationTargetException;
+
+import org.eclipse.core.runtime.CoreException;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.emf.ecore.resource.Resource;
+import org.eclipse.jface.dialogs.ErrorDialog;
+import org.eclipse.jface.operation.IRunnableWithProgress;
+import org.eclipse.jface.viewers.IStructuredSelection;
+import org.eclipse.jface.wizard.Wizard;
+import org.eclipse.ui.INewWizard;
+import org.eclipse.ui.IWorkbench;
+import org.eclipse.ui.PartInitException;
+import org.eclipse.ui.actions.WorkspaceModifyOperation;
+
+/**
+ * @generated
+ */
+public class UMLCreationWizard extends Wizard implements INewWizard {
+
+ /**
+ * @generated
+ */
+ private IWorkbench workbench;
+
+ /**
+ * @generated
+ */
+ protected IStructuredSelection selection;
+
+ /**
+ * @generated
+ */
+ protected UMLCreationWizardPage diagramModelFilePage;
+
+ /**
+ * @generated
+ */
+ protected UMLCreationWizardPage domainModelFilePage;
+
+ /**
+ * @generated
+ */
+ protected Resource diagram;
+
+ /**
+ * @generated
+ */
+ private boolean openNewlyCreatedDiagramEditor = true;
+
+ /**
+ * @generated
+ */
+ public IWorkbench getWorkbench() {
+ return workbench;
+ }
+
+ /**
+ * @generated
+ */
+ public IStructuredSelection getSelection() {
+ return selection;
+ }
+
+ /**
+ * @generated
+ */
+ public final Resource getDiagram() {
+ return diagram;
+ }
+
+ /**
+ * @generated
+ */
+ public final boolean isOpenNewlyCreatedDiagramEditor() {
+ return openNewlyCreatedDiagramEditor;
+ }
+
+ /**
+ * @generated
+ */
+ public void setOpenNewlyCreatedDiagramEditor(boolean openNewlyCreatedDiagramEditor) {
+ this.openNewlyCreatedDiagramEditor = openNewlyCreatedDiagramEditor;
+ }
+
+ /**
+ * @generated
+ */
+ public void init(IWorkbench workbench, IStructuredSelection selection) {
+ this.workbench = workbench;
+ this.selection = selection;
+ setWindowTitle(Messages.UMLCreationWizardTitle);
+ setDefaultPageImageDescriptor(UMLDiagramEditorPlugin.getBundledImageDescriptor("icons/wizban/NewUMLWizard.gif")); //$NON-NLS-1$
+ setNeedsProgressMonitor(true);
+ }
+
+ /**
+ * @generated
+ */
+ public void addPages() {
+ diagramModelFilePage = new UMLCreationWizardPage("DiagramModelFile", getSelection(), "uml_csd"); //$NON-NLS-1$ //$NON-NLS-2$
+ diagramModelFilePage.setTitle(Messages.UMLCreationWizard_DiagramModelFilePageTitle);
+ diagramModelFilePage.setDescription(Messages.UMLCreationWizard_DiagramModelFilePageDescription);
+ addPage(diagramModelFilePage);
+
+ domainModelFilePage = new UMLCreationWizardPage("DomainModelFile", getSelection(), "uml") { //$NON-NLS-1$ //$NON-NLS-2$
+
+ public void setVisible(boolean visible) {
+ if(visible) {
+ String fileName = diagramModelFilePage.getFileName();
+ fileName = fileName.substring(0, fileName.length() - ".uml_csd".length()); //$NON-NLS-1$
+ setFileName(UMLDiagramEditorUtil.getUniqueFileName(getContainerFullPath(), fileName, "uml")); //$NON-NLS-1$
+ }
+ super.setVisible(visible);
+ }
+ };
+ domainModelFilePage.setTitle(Messages.UMLCreationWizard_DomainModelFilePageTitle);
+ domainModelFilePage.setDescription(Messages.UMLCreationWizard_DomainModelFilePageDescription);
+ addPage(domainModelFilePage);
+ }
+
+ /**
+ * @generated
+ */
+ public boolean performFinish() {
+ IRunnableWithProgress op = new WorkspaceModifyOperation(null) {
+
+ protected void execute(IProgressMonitor monitor) throws CoreException, InterruptedException {
+ diagram = UMLDiagramEditorUtil.createDiagram(diagramModelFilePage.getURI(), domainModelFilePage.getURI(), monitor);
+ if(isOpenNewlyCreatedDiagramEditor() && diagram != null) {
+ try {
+ UMLDiagramEditorUtil.openDiagram(diagram);
+ } catch (PartInitException e) {
+ ErrorDialog.openError(getContainer().getShell(), Messages.UMLCreationWizardOpenEditorError, null, e.getStatus());
+ }
+ }
+ }
+ };
+ try {
+ getContainer().run(false, true, op);
+ } catch (InterruptedException e) {
+ return false;
+ } catch (InvocationTargetException e) {
+ if(e.getTargetException() instanceof CoreException) {
+ ErrorDialog.openError(getContainer().getShell(), Messages.UMLCreationWizardCreationError, null, ((CoreException)e.getTargetException()).getStatus());
+ } else {
+ UMLDiagramEditorPlugin.getInstance().logError("Error creating diagram", e.getTargetException()); //$NON-NLS-1$
+ }
+ return false;
+ }
+ return diagram != null;
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/part/UMLCreationWizardPage.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/part/UMLCreationWizardPage.java
new file mode 100644
index 00000000000..605f294590e
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/part/UMLCreationWizardPage.java
@@ -0,0 +1,96 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.part;
+
+import org.eclipse.core.runtime.IPath;
+import org.eclipse.core.runtime.Path;
+import org.eclipse.emf.common.util.URI;
+import org.eclipse.jface.viewers.IStructuredSelection;
+import org.eclipse.osgi.util.NLS;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.ui.dialogs.WizardNewFileCreationPage;
+
+/**
+ * @generated
+ */
+public class UMLCreationWizardPage extends WizardNewFileCreationPage {
+
+ /**
+ * @generated
+ */
+ private final String fileExtension;
+
+ /**
+ * @generated
+ */
+ public UMLCreationWizardPage(String pageName, IStructuredSelection selection, String fileExtension) {
+ super(pageName, selection);
+ this.fileExtension = fileExtension;
+ }
+
+ /**
+ * Override to create files with this extension.
+ *
+ * @generated
+ */
+ protected String getExtension() {
+ return fileExtension;
+ }
+
+ /**
+ * @generated
+ */
+ public URI getURI() {
+ return URI.createPlatformResourceURI(getFilePath().toString(), false);
+ }
+
+ /**
+ * @generated
+ */
+ protected IPath getFilePath() {
+ IPath path = getContainerFullPath();
+ if(path == null) {
+ path = new Path(""); //$NON-NLS-1$
+ }
+ String fileName = getFileName();
+ if(fileName != null) {
+ path = path.append(fileName);
+ }
+ return path;
+ }
+
+ /**
+ * @generated
+ */
+ public void createControl(Composite parent) {
+ super.createControl(parent);
+ setFileName(UMLDiagramEditorUtil.getUniqueFileName(getContainerFullPath(), getFileName(), getExtension()));
+ setPageComplete(validatePage());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean validatePage() {
+ if(!super.validatePage()) {
+ return false;
+ }
+ String extension = getExtension();
+ if(extension != null && !getFilePath().toString().endsWith("." + extension)) {
+ setErrorMessage(NLS.bind(Messages.UMLCreationWizardPageExtensionError, extension));
+ return false;
+ }
+ return true;
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/part/UMLDiagramActionBarContributor.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/part/UMLDiagramActionBarContributor.java
new file mode 100644
index 00000000000..ddb7487b1f2
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/part/UMLDiagramActionBarContributor.java
@@ -0,0 +1,60 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.part;
+
+import org.eclipse.gmf.runtime.diagram.ui.parts.DiagramActionBarContributor;
+import org.eclipse.jface.action.GroupMarker;
+import org.eclipse.jface.action.IAction;
+import org.eclipse.jface.action.IMenuManager;
+import org.eclipse.ui.IActionBars;
+import org.eclipse.ui.IWorkbenchActionConstants;
+import org.eclipse.ui.IWorkbenchPage;
+
+/**
+ * @generated
+ */
+public class UMLDiagramActionBarContributor extends DiagramActionBarContributor {
+
+ /**
+ * @generated
+ */
+ protected Class getEditorClass() {
+ return UMLDiagramEditor.class;
+ }
+
+ /**
+ * @generated
+ */
+ protected String getEditorId() {
+ return UMLDiagramEditor.ID;
+ }
+
+ /**
+ * @generated
+ */
+ public void init(IActionBars bars, IWorkbenchPage page) {
+ super.init(bars, page);
+ // print preview
+ IMenuManager fileMenu = bars.getMenuManager().findMenuUsingPath(IWorkbenchActionConstants.M_FILE);
+ assert fileMenu != null;
+ fileMenu.remove("pageSetupAction"); //$NON-NLS-1$
+ IMenuManager editMenu = bars.getMenuManager().findMenuUsingPath(IWorkbenchActionConstants.M_EDIT);
+ assert editMenu != null;
+ if(editMenu.find("validationGroup") == null) { //$NON-NLS-1$
+ editMenu.add(new GroupMarker("validationGroup")); //$NON-NLS-1$
+ }
+ IAction validateAction = new ValidateAction(page);
+ editMenu.appendToGroup("validationGroup", validateAction); //$NON-NLS-1$
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/part/UMLDiagramContentInitializer.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/part/UMLDiagramContentInitializer.java
new file mode 100644
index 00000000000..0b607e33950
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/part/UMLDiagramContentInitializer.java
@@ -0,0 +1,1842 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.part;
+
+import java.util.Collection;
+import java.util.HashMap;
+import java.util.Iterator;
+import java.util.LinkedList;
+import java.util.Map;
+
+import org.eclipse.gmf.runtime.diagram.core.services.ViewService;
+import org.eclipse.gmf.runtime.diagram.core.util.ViewUtil;
+import org.eclipse.gmf.runtime.notation.Diagram;
+import org.eclipse.gmf.runtime.notation.Edge;
+import org.eclipse.gmf.runtime.notation.Node;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.diagram.composite.edit.parts.*;
+import org.eclipse.uml2.uml.Package;
+
+/**
+ * @generated
+ */
+public class UMLDiagramContentInitializer {
+
+ /**
+ * @generated
+ */
+ private Map myDomain2NotationMap = new HashMap();
+
+ /**
+ * @generated
+ */
+ private Collection myLinkDescriptors = new LinkedList();
+
+ /**
+ * @generated
+ */
+ public void initDiagramContent(Diagram diagram) {
+ if(!CompositeStructureDiagramEditPart.MODEL_ID.equals(diagram.getType())) {
+ UMLDiagramEditorPlugin.getInstance().logError("Incorrect diagram passed as a parameter: " + diagram.getType());
+ return;
+ }
+ if(false == diagram.getElement() instanceof Package) {
+ UMLDiagramEditorPlugin.getInstance().logError("Incorrect diagram element specified: " + diagram.getElement() + " instead of Package");
+ return;
+ }
+ createPackage_1000Children(diagram);
+ createLinks(diagram);
+ }
+
+ /**
+ * @generated
+ */
+ private void createPackage_1000Children(View view) {
+ Collection childNodeDescriptors = UMLDiagramUpdater.getPackage_1000SemanticChildren(view);
+ for(Iterator it = childNodeDescriptors.iterator(); it.hasNext();) {
+ createNode(view, (UMLNodeDescriptor)it.next());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void createActivity_2060Children(View view) {
+ myDomain2NotationMap.put(view.getElement(), view);
+ myLinkDescriptors.addAll(UMLDiagramUpdater.getActivity_2060OutgoingLinks(view));
+ Collection childNodeDescriptors = UMLDiagramUpdater.getActivity_2060SemanticChildren(view);
+ for(Iterator it = childNodeDescriptors.iterator(); it.hasNext();) {
+ createNode(view, (UMLNodeDescriptor)it.next());
+ }
+ createActivityStructure_7063Children(getCompartment(view, ActivityCompositeCompartmentEditPart.VISUAL_ID));
+
+ }
+
+ /**
+ * @generated
+ */
+ private void createInteraction_2061Children(View view) {
+ myDomain2NotationMap.put(view.getElement(), view);
+ myLinkDescriptors.addAll(UMLDiagramUpdater.getInteraction_2061OutgoingLinks(view));
+ Collection childNodeDescriptors = UMLDiagramUpdater.getInteraction_2061SemanticChildren(view);
+ for(Iterator it = childNodeDescriptors.iterator(); it.hasNext();) {
+ createNode(view, (UMLNodeDescriptor)it.next());
+ }
+ createInteractionStructure_7064Children(getCompartment(view, InteractionCompositeCompartmentEditPart.VISUAL_ID));
+
+ }
+
+ /**
+ * @generated
+ */
+ private void createProtocolStateMachine_2062Children(View view) {
+ myDomain2NotationMap.put(view.getElement(), view);
+ myLinkDescriptors.addAll(UMLDiagramUpdater.getProtocolStateMachine_2062OutgoingLinks(view));
+ Collection childNodeDescriptors = UMLDiagramUpdater.getProtocolStateMachine_2062SemanticChildren(view);
+ for(Iterator it = childNodeDescriptors.iterator(); it.hasNext();) {
+ createNode(view, (UMLNodeDescriptor)it.next());
+ }
+ createProtocolStateMachineStructure_7065Children(getCompartment(view, ProtocolStateMachineCompositeCompartmentEditPart.VISUAL_ID));
+
+ }
+
+ /**
+ * @generated
+ */
+ private void createStateMachine_2063Children(View view) {
+ myDomain2NotationMap.put(view.getElement(), view);
+ myLinkDescriptors.addAll(UMLDiagramUpdater.getStateMachine_2063OutgoingLinks(view));
+ Collection childNodeDescriptors = UMLDiagramUpdater.getStateMachine_2063SemanticChildren(view);
+ for(Iterator it = childNodeDescriptors.iterator(); it.hasNext();) {
+ createNode(view, (UMLNodeDescriptor)it.next());
+ }
+ createStateMachineStructure_7066Children(getCompartment(view, StateMachineCompositeCompartmentEditPart.VISUAL_ID));
+
+ }
+
+ /**
+ * @generated
+ */
+ private void createFunctionBehavior_2064Children(View view) {
+ myDomain2NotationMap.put(view.getElement(), view);
+ myLinkDescriptors.addAll(UMLDiagramUpdater.getFunctionBehavior_2064OutgoingLinks(view));
+ Collection childNodeDescriptors = UMLDiagramUpdater.getFunctionBehavior_2064SemanticChildren(view);
+ for(Iterator it = childNodeDescriptors.iterator(); it.hasNext();) {
+ createNode(view, (UMLNodeDescriptor)it.next());
+ }
+ createFunctionBehaviorStructure_7067Children(getCompartment(view, FunctionBehaviorCompositeCompartmentEditPart.VISUAL_ID));
+
+ }
+
+ /**
+ * @generated
+ */
+ private void createOpaqueBehavior_2065Children(View view) {
+ myDomain2NotationMap.put(view.getElement(), view);
+ myLinkDescriptors.addAll(UMLDiagramUpdater.getOpaqueBehavior_2065OutgoingLinks(view));
+ Collection childNodeDescriptors = UMLDiagramUpdater.getOpaqueBehavior_2065SemanticChildren(view);
+ for(Iterator it = childNodeDescriptors.iterator(); it.hasNext();) {
+ createNode(view, (UMLNodeDescriptor)it.next());
+ }
+ createOpaqueBehaviorStructure_7068Children(getCompartment(view, OpaqueBehaviorCompositeCompartmentEditPart.VISUAL_ID));
+
+ }
+
+ /**
+ * @generated
+ */
+ private void createComponent_2069Children(View view) {
+ myDomain2NotationMap.put(view.getElement(), view);
+ myLinkDescriptors.addAll(UMLDiagramUpdater.getComponent_2069OutgoingLinks(view));
+ Collection childNodeDescriptors = UMLDiagramUpdater.getComponent_2069SemanticChildren(view);
+ for(Iterator it = childNodeDescriptors.iterator(); it.hasNext();) {
+ createNode(view, (UMLNodeDescriptor)it.next());
+ }
+ createComponentStructure_7069Children(getCompartment(view, ComponentCompositeCompartmentEditPart.VISUAL_ID));
+
+ }
+
+ /**
+ * @generated
+ */
+ private void createDevice_2070Children(View view) {
+ myDomain2NotationMap.put(view.getElement(), view);
+ myLinkDescriptors.addAll(UMLDiagramUpdater.getDevice_2070OutgoingLinks(view));
+ Collection childNodeDescriptors = UMLDiagramUpdater.getDevice_2070SemanticChildren(view);
+ for(Iterator it = childNodeDescriptors.iterator(); it.hasNext();) {
+ createNode(view, (UMLNodeDescriptor)it.next());
+ }
+ createDeviceStructure_7070Children(getCompartment(view, DeviceCompositeCompartmentEditPart.VISUAL_ID));
+
+ }
+
+ /**
+ * @generated
+ */
+ private void createExecutionEnvironment_2071Children(View view) {
+ myDomain2NotationMap.put(view.getElement(), view);
+ myLinkDescriptors.addAll(UMLDiagramUpdater.getExecutionEnvironment_2071OutgoingLinks(view));
+ Collection childNodeDescriptors = UMLDiagramUpdater.getExecutionEnvironment_2071SemanticChildren(view);
+ for(Iterator it = childNodeDescriptors.iterator(); it.hasNext();) {
+ createNode(view, (UMLNodeDescriptor)it.next());
+ }
+ createExecutionEnvironmentStructure_7071Children(getCompartment(view, ExecutionEnvironmentCompositeCompartmentEditPart.VISUAL_ID));
+
+ }
+
+ /**
+ * @generated
+ */
+ private void createNode_2072Children(View view) {
+ myDomain2NotationMap.put(view.getElement(), view);
+ myLinkDescriptors.addAll(UMLDiagramUpdater.getNode_2072OutgoingLinks(view));
+ Collection childNodeDescriptors = UMLDiagramUpdater.getNode_2072SemanticChildren(view);
+ for(Iterator it = childNodeDescriptors.iterator(); it.hasNext();) {
+ createNode(view, (UMLNodeDescriptor)it.next());
+ }
+ createNodeStructure_7072Children(getCompartment(view, NodeCompositeCompartmentEditPart.VISUAL_ID));
+
+ }
+
+ /**
+ * @generated
+ */
+ private void createClass_2073Children(View view) {
+ myDomain2NotationMap.put(view.getElement(), view);
+ myLinkDescriptors.addAll(UMLDiagramUpdater.getClass_2073OutgoingLinks(view));
+ Collection childNodeDescriptors = UMLDiagramUpdater.getClass_2073SemanticChildren(view);
+ for(Iterator it = childNodeDescriptors.iterator(); it.hasNext();) {
+ createNode(view, (UMLNodeDescriptor)it.next());
+ }
+ createClassStructure_7073Children(getCompartment(view, ClassCompositeCompartmentEditPart.VISUAL_ID));
+
+ }
+
+ /**
+ * @generated
+ */
+ private void createCollaboration_2075Children(View view) {
+ myDomain2NotationMap.put(view.getElement(), view);
+ myLinkDescriptors.addAll(UMLDiagramUpdater.getCollaboration_2075OutgoingLinks(view));
+ createCollaborationStructure_7075Children(getCompartment(view, CollaborationCompositeCompartmentEditPart.VISUAL_ID));
+
+ }
+
+ /**
+ * @generated
+ */
+ private void createInterface_2076Children(View view) {
+ myDomain2NotationMap.put(view.getElement(), view);
+ myLinkDescriptors.addAll(UMLDiagramUpdater.getInterface_2076OutgoingLinks(view));
+
+ }
+
+ /**
+ * @generated
+ */
+ private void createPrimitiveType_2066Children(View view) {
+ myDomain2NotationMap.put(view.getElement(), view);
+ myLinkDescriptors.addAll(UMLDiagramUpdater.getPrimitiveType_2066OutgoingLinks(view));
+
+ }
+
+ /**
+ * @generated
+ */
+ private void createEnumeration_2067Children(View view) {
+ myDomain2NotationMap.put(view.getElement(), view);
+ myLinkDescriptors.addAll(UMLDiagramUpdater.getEnumeration_2067OutgoingLinks(view));
+ Collection childNodeDescriptors = UMLDiagramUpdater.getEnumeration_2067SemanticChildren(view);
+ for(Iterator it = childNodeDescriptors.iterator(); it.hasNext();) {
+ createNode(view, (UMLNodeDescriptor)it.next());
+ }
+ createEnumerationLiterals_7048Children(getCompartment(view, EnumerationEnumerationLiteralCompartmentEditPart.VISUAL_ID));
+
+ }
+
+ /**
+ * @generated
+ */
+ private void createDataType_2068Children(View view) {
+ myDomain2NotationMap.put(view.getElement(), view);
+ myLinkDescriptors.addAll(UMLDiagramUpdater.getDataType_2068OutgoingLinks(view));
+ createDataTypeProperties_7033Children(getCompartment(view, DataTypeAttributeCompartmentEditPart.VISUAL_ID));
+ createDataTypeOperations_7034Children(getCompartment(view, DataTypeOperationCompartmentEditPart.VISUAL_ID));
+
+ }
+
+ /**
+ * @generated
+ */
+ private void createActor_2077Children(View view) {
+ myDomain2NotationMap.put(view.getElement(), view);
+ myLinkDescriptors.addAll(UMLDiagramUpdater.getActor_2077OutgoingLinks(view));
+
+ }
+
+ /**
+ * @generated
+ */
+ private void createDeploymentSpecification_2078Children(View view) {
+ myDomain2NotationMap.put(view.getElement(), view);
+ myLinkDescriptors.addAll(UMLDiagramUpdater.getDeploymentSpecification_2078OutgoingLinks(view));
+
+ }
+
+ /**
+ * @generated
+ */
+ private void createArtifact_2079Children(View view) {
+ myDomain2NotationMap.put(view.getElement(), view);
+ myLinkDescriptors.addAll(UMLDiagramUpdater.getArtifact_2079OutgoingLinks(view));
+
+ }
+
+ /**
+ * @generated
+ */
+ private void createInformationItem_2080Children(View view) {
+ myDomain2NotationMap.put(view.getElement(), view);
+ myLinkDescriptors.addAll(UMLDiagramUpdater.getInformationItem_2080OutgoingLinks(view));
+
+ }
+
+ /**
+ * @generated
+ */
+ private void createSignal_2081Children(View view) {
+ myDomain2NotationMap.put(view.getElement(), view);
+ myLinkDescriptors.addAll(UMLDiagramUpdater.getSignal_2081OutgoingLinks(view));
+
+ }
+
+ /**
+ * @generated
+ */
+ private void createUseCase_2082Children(View view) {
+ myDomain2NotationMap.put(view.getElement(), view);
+ myLinkDescriptors.addAll(UMLDiagramUpdater.getUseCase_2082OutgoingLinks(view));
+
+ }
+
+ /**
+ * @generated
+ */
+ private void createSignalEvent_2083Children(View view) {
+ myDomain2NotationMap.put(view.getElement(), view);
+ myLinkDescriptors.addAll(UMLDiagramUpdater.getSignalEvent_2083OutgoingLinks(view));
+
+ }
+
+ /**
+ * @generated
+ */
+ private void createCallEvent_2084Children(View view) {
+ myDomain2NotationMap.put(view.getElement(), view);
+ myLinkDescriptors.addAll(UMLDiagramUpdater.getCallEvent_2084OutgoingLinks(view));
+
+ }
+
+ /**
+ * @generated
+ */
+ private void createAnyReceiveEvent_2085Children(View view) {
+ myDomain2NotationMap.put(view.getElement(), view);
+ myLinkDescriptors.addAll(UMLDiagramUpdater.getAnyReceiveEvent_2085OutgoingLinks(view));
+
+ }
+
+ /**
+ * @generated
+ */
+ private void createSendSignalEvent_2086Children(View view) {
+ myDomain2NotationMap.put(view.getElement(), view);
+ myLinkDescriptors.addAll(UMLDiagramUpdater.getSendSignalEvent_2086OutgoingLinks(view));
+
+ }
+
+ /**
+ * @generated
+ */
+ private void createSendOperationEvent_2087Children(View view) {
+ myDomain2NotationMap.put(view.getElement(), view);
+ myLinkDescriptors.addAll(UMLDiagramUpdater.getSendOperationEvent_2087OutgoingLinks(view));
+
+ }
+
+ /**
+ * @generated
+ */
+ private void createChangeEvent_2088Children(View view) {
+ myDomain2NotationMap.put(view.getElement(), view);
+ myLinkDescriptors.addAll(UMLDiagramUpdater.getChangeEvent_2088OutgoingLinks(view));
+
+ }
+
+ /**
+ * @generated
+ */
+ private void createTimeEvent_2089Children(View view) {
+ myDomain2NotationMap.put(view.getElement(), view);
+ myLinkDescriptors.addAll(UMLDiagramUpdater.getTimeEvent_2089OutgoingLinks(view));
+
+ }
+
+ /**
+ * @generated
+ */
+ private void createCreationEvent_2090Children(View view) {
+ myDomain2NotationMap.put(view.getElement(), view);
+ myLinkDescriptors.addAll(UMLDiagramUpdater.getCreationEvent_2090OutgoingLinks(view));
+
+ }
+
+ /**
+ * @generated
+ */
+ private void createDestructionEvent_2091Children(View view) {
+ myDomain2NotationMap.put(view.getElement(), view);
+ myLinkDescriptors.addAll(UMLDiagramUpdater.getDestructionEvent_2091OutgoingLinks(view));
+
+ }
+
+ /**
+ * @generated
+ */
+ private void createExecutionEvent_2092Children(View view) {
+ myDomain2NotationMap.put(view.getElement(), view);
+ myLinkDescriptors.addAll(UMLDiagramUpdater.getExecutionEvent_2092OutgoingLinks(view));
+
+ }
+
+ /**
+ * @generated
+ */
+ private void createDurationObservation_2093Children(View view) {
+ myDomain2NotationMap.put(view.getElement(), view);
+ myLinkDescriptors.addAll(UMLDiagramUpdater.getDurationObservation_2093OutgoingLinks(view));
+
+ }
+
+ /**
+ * @generated
+ */
+ private void createTimeObservation_2094Children(View view) {
+ myDomain2NotationMap.put(view.getElement(), view);
+ myLinkDescriptors.addAll(UMLDiagramUpdater.getTimeObservation_2094OutgoingLinks(view));
+
+ }
+
+ /**
+ * @generated
+ */
+ private void createLiteralBoolean_2095Children(View view) {
+ myDomain2NotationMap.put(view.getElement(), view);
+ myLinkDescriptors.addAll(UMLDiagramUpdater.getLiteralBoolean_2095OutgoingLinks(view));
+
+ }
+
+ /**
+ * @generated
+ */
+ private void createLiteralInteger_2096Children(View view) {
+ myDomain2NotationMap.put(view.getElement(), view);
+ myLinkDescriptors.addAll(UMLDiagramUpdater.getLiteralInteger_2096OutgoingLinks(view));
+
+ }
+
+ /**
+ * @generated
+ */
+ private void createLiteralNull_2097Children(View view) {
+ myDomain2NotationMap.put(view.getElement(), view);
+ myLinkDescriptors.addAll(UMLDiagramUpdater.getLiteralNull_2097OutgoingLinks(view));
+
+ }
+
+ /**
+ * @generated
+ */
+ private void createLiteralString_2098Children(View view) {
+ myDomain2NotationMap.put(view.getElement(), view);
+ myLinkDescriptors.addAll(UMLDiagramUpdater.getLiteralString_2098OutgoingLinks(view));
+
+ }
+
+ /**
+ * @generated
+ */
+ private void createLiteralUnlimitedNatural_2099Children(View view) {
+ myDomain2NotationMap.put(view.getElement(), view);
+ myLinkDescriptors.addAll(UMLDiagramUpdater.getLiteralUnlimitedNatural_2099OutgoingLinks(view));
+
+ }
+
+ /**
+ * @generated
+ */
+ private void createStringExpression_2100Children(View view) {
+ myDomain2NotationMap.put(view.getElement(), view);
+ myLinkDescriptors.addAll(UMLDiagramUpdater.getStringExpression_2100OutgoingLinks(view));
+
+ }
+
+ /**
+ * @generated
+ */
+ private void createOpaqueExpression_2101Children(View view) {
+ myDomain2NotationMap.put(view.getElement(), view);
+ myLinkDescriptors.addAll(UMLDiagramUpdater.getOpaqueExpression_2101OutgoingLinks(view));
+
+ }
+
+ /**
+ * @generated
+ */
+ private void createTimeExpression_2102Children(View view) {
+ myDomain2NotationMap.put(view.getElement(), view);
+ myLinkDescriptors.addAll(UMLDiagramUpdater.getTimeExpression_2102OutgoingLinks(view));
+
+ }
+
+ /**
+ * @generated
+ */
+ private void createExpression_2103Children(View view) {
+ myDomain2NotationMap.put(view.getElement(), view);
+ myLinkDescriptors.addAll(UMLDiagramUpdater.getExpression_2103OutgoingLinks(view));
+
+ }
+
+ /**
+ * @generated
+ */
+ private void createDuration_2104Children(View view) {
+ myDomain2NotationMap.put(view.getElement(), view);
+ myLinkDescriptors.addAll(UMLDiagramUpdater.getDuration_2104OutgoingLinks(view));
+
+ }
+
+ /**
+ * @generated
+ */
+ private void createTimeInterval_2105Children(View view) {
+ myDomain2NotationMap.put(view.getElement(), view);
+ myLinkDescriptors.addAll(UMLDiagramUpdater.getTimeInterval_2105OutgoingLinks(view));
+
+ }
+
+ /**
+ * @generated
+ */
+ private void createDurationInterval_2106Children(View view) {
+ myDomain2NotationMap.put(view.getElement(), view);
+ myLinkDescriptors.addAll(UMLDiagramUpdater.getDurationInterval_2106OutgoingLinks(view));
+
+ }
+
+ /**
+ * @generated
+ */
+ private void createInterval_2107Children(View view) {
+ myDomain2NotationMap.put(view.getElement(), view);
+ myLinkDescriptors.addAll(UMLDiagramUpdater.getInterval_2107OutgoingLinks(view));
+
+ }
+
+ /**
+ * @generated
+ */
+ private void createInstanceValue_2108Children(View view) {
+ myDomain2NotationMap.put(view.getElement(), view);
+ myLinkDescriptors.addAll(UMLDiagramUpdater.getInstanceValue_2108OutgoingLinks(view));
+
+ }
+
+ /**
+ * @generated
+ */
+ private void createComment_2109Children(View view) {
+ myDomain2NotationMap.put(view.getElement(), view);
+ myLinkDescriptors.addAll(UMLDiagramUpdater.getComment_2109OutgoingLinks(view));
+
+ }
+
+ /**
+ * @generated
+ */
+ private void createDurationConstraint_2110Children(View view) {
+ myDomain2NotationMap.put(view.getElement(), view);
+ myLinkDescriptors.addAll(UMLDiagramUpdater.getDurationConstraint_2110OutgoingLinks(view));
+
+ }
+
+ /**
+ * @generated
+ */
+ private void createTimeConstraint_2111Children(View view) {
+ myDomain2NotationMap.put(view.getElement(), view);
+ myLinkDescriptors.addAll(UMLDiagramUpdater.getTimeConstraint_2111OutgoingLinks(view));
+
+ }
+
+ /**
+ * @generated
+ */
+ private void createIntervalConstraint_2112Children(View view) {
+ myDomain2NotationMap.put(view.getElement(), view);
+ myLinkDescriptors.addAll(UMLDiagramUpdater.getIntervalConstraint_2112OutgoingLinks(view));
+
+ }
+
+ /**
+ * @generated
+ */
+ private void createInteractionConstraint_2113Children(View view) {
+ myDomain2NotationMap.put(view.getElement(), view);
+ myLinkDescriptors.addAll(UMLDiagramUpdater.getInteractionConstraint_2113OutgoingLinks(view));
+
+ }
+
+ /**
+ * @generated
+ */
+ private void createConstraint_2114Children(View view) {
+ myDomain2NotationMap.put(view.getElement(), view);
+ myLinkDescriptors.addAll(UMLDiagramUpdater.getConstraint_2114OutgoingLinks(view));
+
+ }
+
+ /**
+ * @generated
+ */
+ private void createPort_3069Children(View view) {
+ myDomain2NotationMap.put(view.getElement(), view);
+ myLinkDescriptors.addAll(UMLDiagramUpdater.getPort_3069OutgoingLinks(view));
+
+ }
+
+ /**
+ * @generated
+ */
+ private void createParameter_3088Children(View view) {
+ myDomain2NotationMap.put(view.getElement(), view);
+ myLinkDescriptors.addAll(UMLDiagramUpdater.getParameter_3088OutgoingLinks(view));
+
+ }
+
+ /**
+ * @generated
+ */
+ private void createProperty_3070Children(View view) {
+ myDomain2NotationMap.put(view.getElement(), view);
+ myLinkDescriptors.addAll(UMLDiagramUpdater.getProperty_3070OutgoingLinks(view));
+ Collection childNodeDescriptors = UMLDiagramUpdater.getProperty_3070SemanticChildren(view);
+ for(Iterator it = childNodeDescriptors.iterator(); it.hasNext();) {
+ createNode(view, (UMLNodeDescriptor)it.next());
+ }
+ createPropertyStructure_7077Children(getCompartment(view, PropertyPartCompartmentEditPartCN.VISUAL_ID));
+
+ }
+
+ /**
+ * @generated
+ */
+ private void createConnectableElement_3115Children(View view) {
+ myDomain2NotationMap.put(view.getElement(), view);
+ myLinkDescriptors.addAll(UMLDiagramUpdater.getConnectableElement_3115OutgoingLinks(view));
+
+ }
+
+ /**
+ * @generated
+ */
+ private void createCollaborationUse_3071Children(View view) {
+ myDomain2NotationMap.put(view.getElement(), view);
+ myLinkDescriptors.addAll(UMLDiagramUpdater.getCollaborationUse_3071OutgoingLinks(view));
+
+ }
+
+ /**
+ * @generated
+ */
+ private void createActivity_3072Children(View view) {
+ myDomain2NotationMap.put(view.getElement(), view);
+ myLinkDescriptors.addAll(UMLDiagramUpdater.getActivity_3072OutgoingLinks(view));
+ Collection childNodeDescriptors = UMLDiagramUpdater.getActivity_3072SemanticChildren(view);
+ for(Iterator it = childNodeDescriptors.iterator(); it.hasNext();) {
+ createNode(view, (UMLNodeDescriptor)it.next());
+ }
+ createActivityStructure_7050Children(getCompartment(view, ActivityCompositeCompartmentEditPartCN.VISUAL_ID));
+
+ }
+
+ /**
+ * @generated
+ */
+ private void createInteraction_3073Children(View view) {
+ myDomain2NotationMap.put(view.getElement(), view);
+ myLinkDescriptors.addAll(UMLDiagramUpdater.getInteraction_3073OutgoingLinks(view));
+ Collection childNodeDescriptors = UMLDiagramUpdater.getInteraction_3073SemanticChildren(view);
+ for(Iterator it = childNodeDescriptors.iterator(); it.hasNext();) {
+ createNode(view, (UMLNodeDescriptor)it.next());
+ }
+ createInteractionStructure_7051Children(getCompartment(view, InteractionCompositeCompartmentEditPartCN.VISUAL_ID));
+
+ }
+
+ /**
+ * @generated
+ */
+ private void createProtocolStateMachine_3074Children(View view) {
+ myDomain2NotationMap.put(view.getElement(), view);
+ myLinkDescriptors.addAll(UMLDiagramUpdater.getProtocolStateMachine_3074OutgoingLinks(view));
+ Collection childNodeDescriptors = UMLDiagramUpdater.getProtocolStateMachine_3074SemanticChildren(view);
+ for(Iterator it = childNodeDescriptors.iterator(); it.hasNext();) {
+ createNode(view, (UMLNodeDescriptor)it.next());
+ }
+ createProtocolStateMachineStructure_7052Children(getCompartment(view, ProtocolStateMachineCompositeCompartmentEditPartCN.VISUAL_ID));
+
+ }
+
+ /**
+ * @generated
+ */
+ private void createStateMachine_3075Children(View view) {
+ myDomain2NotationMap.put(view.getElement(), view);
+ myLinkDescriptors.addAll(UMLDiagramUpdater.getStateMachine_3075OutgoingLinks(view));
+ Collection childNodeDescriptors = UMLDiagramUpdater.getStateMachine_3075SemanticChildren(view);
+ for(Iterator it = childNodeDescriptors.iterator(); it.hasNext();) {
+ createNode(view, (UMLNodeDescriptor)it.next());
+ }
+ createStateMachineStructure_7053Children(getCompartment(view, StateMachineCompositeCompartmentEditPartCN.VISUAL_ID));
+
+ }
+
+ /**
+ * @generated
+ */
+ private void createFunctionBehavior_3076Children(View view) {
+ myDomain2NotationMap.put(view.getElement(), view);
+ myLinkDescriptors.addAll(UMLDiagramUpdater.getFunctionBehavior_3076OutgoingLinks(view));
+ Collection childNodeDescriptors = UMLDiagramUpdater.getFunctionBehavior_3076SemanticChildren(view);
+ for(Iterator it = childNodeDescriptors.iterator(); it.hasNext();) {
+ createNode(view, (UMLNodeDescriptor)it.next());
+ }
+ createFunctionBehaviorStructure_7054Children(getCompartment(view, FunctionBehaviorCompositeCompartmentEditPartCN.VISUAL_ID));
+
+ }
+
+ /**
+ * @generated
+ */
+ private void createOpaqueBehavior_3077Children(View view) {
+ myDomain2NotationMap.put(view.getElement(), view);
+ myLinkDescriptors.addAll(UMLDiagramUpdater.getOpaqueBehavior_3077OutgoingLinks(view));
+ Collection childNodeDescriptors = UMLDiagramUpdater.getOpaqueBehavior_3077SemanticChildren(view);
+ for(Iterator it = childNodeDescriptors.iterator(); it.hasNext();) {
+ createNode(view, (UMLNodeDescriptor)it.next());
+ }
+ createOpaqueBehaviorStructure_7055Children(getCompartment(view, OpaqueBehaviorCompositeCompartmentEditPartCN.VISUAL_ID));
+
+ }
+
+ /**
+ * @generated
+ */
+ private void createComponent_3081Children(View view) {
+ myDomain2NotationMap.put(view.getElement(), view);
+ myLinkDescriptors.addAll(UMLDiagramUpdater.getComponent_3081OutgoingLinks(view));
+ Collection childNodeDescriptors = UMLDiagramUpdater.getComponent_3081SemanticChildren(view);
+ for(Iterator it = childNodeDescriptors.iterator(); it.hasNext();) {
+ createNode(view, (UMLNodeDescriptor)it.next());
+ }
+ createComponentStructure_7056Children(getCompartment(view, ComponentCompositeCompartmentEditPartCN.VISUAL_ID));
+
+ }
+
+ /**
+ * @generated
+ */
+ private void createDevice_3082Children(View view) {
+ myDomain2NotationMap.put(view.getElement(), view);
+ myLinkDescriptors.addAll(UMLDiagramUpdater.getDevice_3082OutgoingLinks(view));
+ Collection childNodeDescriptors = UMLDiagramUpdater.getDevice_3082SemanticChildren(view);
+ for(Iterator it = childNodeDescriptors.iterator(); it.hasNext();) {
+ createNode(view, (UMLNodeDescriptor)it.next());
+ }
+ createDeviceStructure_7057Children(getCompartment(view, DeviceCompositeCompartmentEditPartCN.VISUAL_ID));
+
+ }
+
+ /**
+ * @generated
+ */
+ private void createExecutionEnvironment_3083Children(View view) {
+ myDomain2NotationMap.put(view.getElement(), view);
+ myLinkDescriptors.addAll(UMLDiagramUpdater.getExecutionEnvironment_3083OutgoingLinks(view));
+ Collection childNodeDescriptors = UMLDiagramUpdater.getExecutionEnvironment_3083SemanticChildren(view);
+ for(Iterator it = childNodeDescriptors.iterator(); it.hasNext();) {
+ createNode(view, (UMLNodeDescriptor)it.next());
+ }
+ createExecutionEnvironmentStructure_7058Children(getCompartment(view, ExecutionEnvironmentCompositeCompartmentEditPartCN.VISUAL_ID));
+
+ }
+
+ /**
+ * @generated
+ */
+ private void createNode_3084Children(View view) {
+ myDomain2NotationMap.put(view.getElement(), view);
+ myLinkDescriptors.addAll(UMLDiagramUpdater.getNode_3084OutgoingLinks(view));
+ Collection childNodeDescriptors = UMLDiagramUpdater.getNode_3084SemanticChildren(view);
+ for(Iterator it = childNodeDescriptors.iterator(); it.hasNext();) {
+ createNode(view, (UMLNodeDescriptor)it.next());
+ }
+ createNodeStructure_7059Children(getCompartment(view, NodeCompositeCompartmentEditPartCN.VISUAL_ID));
+
+ }
+
+ /**
+ * @generated
+ */
+ private void createClass_3085Children(View view) {
+ myDomain2NotationMap.put(view.getElement(), view);
+ myLinkDescriptors.addAll(UMLDiagramUpdater.getClass_3085OutgoingLinks(view));
+ Collection childNodeDescriptors = UMLDiagramUpdater.getClass_3085SemanticChildren(view);
+ for(Iterator it = childNodeDescriptors.iterator(); it.hasNext();) {
+ createNode(view, (UMLNodeDescriptor)it.next());
+ }
+ createClassStructure_7060Children(getCompartment(view, ClassCompositeCompartmentEditPartCN.VISUAL_ID));
+
+ }
+
+ /**
+ * @generated
+ */
+ private void createCollaboration_3086Children(View view) {
+ myDomain2NotationMap.put(view.getElement(), view);
+ myLinkDescriptors.addAll(UMLDiagramUpdater.getCollaboration_3086OutgoingLinks(view));
+ createCollaborationStructure_7061Children(getCompartment(view, CollaborationCompositeCompartmentEditPartCN.VISUAL_ID));
+
+ }
+
+ /**
+ * @generated
+ */
+ private void createInterface_3087Children(View view) {
+ myDomain2NotationMap.put(view.getElement(), view);
+ myLinkDescriptors.addAll(UMLDiagramUpdater.getInterface_3087OutgoingLinks(view));
+
+ }
+
+ /**
+ * @generated
+ */
+ private void createPrimitiveType_3078Children(View view) {
+ myDomain2NotationMap.put(view.getElement(), view);
+ myLinkDescriptors.addAll(UMLDiagramUpdater.getPrimitiveType_3078OutgoingLinks(view));
+
+ }
+
+ /**
+ * @generated
+ */
+ private void createEnumeration_3079Children(View view) {
+ myDomain2NotationMap.put(view.getElement(), view);
+ myLinkDescriptors.addAll(UMLDiagramUpdater.getEnumeration_3079OutgoingLinks(view));
+ Collection childNodeDescriptors = UMLDiagramUpdater.getEnumeration_3079SemanticChildren(view);
+ for(Iterator it = childNodeDescriptors.iterator(); it.hasNext();) {
+ createNode(view, (UMLNodeDescriptor)it.next());
+ }
+ createEnumerationLiterals_7049Children(getCompartment(view, EnumerationEnumerationLiteralCompartmentEditPartCN.VISUAL_ID));
+
+ }
+
+ /**
+ * @generated
+ */
+ private void createDataType_3080Children(View view) {
+ myDomain2NotationMap.put(view.getElement(), view);
+ myLinkDescriptors.addAll(UMLDiagramUpdater.getDataType_3080OutgoingLinks(view));
+ createDataTypeProperties_7036Children(getCompartment(view, DataTypeAttributeCompartmentEditPartCN.VISUAL_ID));
+ createDataTypeOperations_7037Children(getCompartment(view, DataTypeOperationCompartmentEditPartCN.VISUAL_ID));
+
+ }
+
+ /**
+ * @generated
+ */
+ private void createActor_3091Children(View view) {
+ myDomain2NotationMap.put(view.getElement(), view);
+ myLinkDescriptors.addAll(UMLDiagramUpdater.getActor_3091OutgoingLinks(view));
+
+ }
+
+ /**
+ * @generated
+ */
+ private void createDeploymentSpecification_3092Children(View view) {
+ myDomain2NotationMap.put(view.getElement(), view);
+ myLinkDescriptors.addAll(UMLDiagramUpdater.getDeploymentSpecification_3092OutgoingLinks(view));
+
+ }
+
+ /**
+ * @generated
+ */
+ private void createArtifact_3093Children(View view) {
+ myDomain2NotationMap.put(view.getElement(), view);
+ myLinkDescriptors.addAll(UMLDiagramUpdater.getArtifact_3093OutgoingLinks(view));
+
+ }
+
+ /**
+ * @generated
+ */
+ private void createInformationItem_3094Children(View view) {
+ myDomain2NotationMap.put(view.getElement(), view);
+ myLinkDescriptors.addAll(UMLDiagramUpdater.getInformationItem_3094OutgoingLinks(view));
+
+ }
+
+ /**
+ * @generated
+ */
+ private void createSignal_3095Children(View view) {
+ myDomain2NotationMap.put(view.getElement(), view);
+ myLinkDescriptors.addAll(UMLDiagramUpdater.getSignal_3095OutgoingLinks(view));
+
+ }
+
+ /**
+ * @generated
+ */
+ private void createUseCase_3096Children(View view) {
+ myDomain2NotationMap.put(view.getElement(), view);
+ myLinkDescriptors.addAll(UMLDiagramUpdater.getUseCase_3096OutgoingLinks(view));
+
+ }
+
+ /**
+ * @generated
+ */
+ private void createComment_3097Children(View view) {
+ myDomain2NotationMap.put(view.getElement(), view);
+ myLinkDescriptors.addAll(UMLDiagramUpdater.getComment_3097OutgoingLinks(view));
+
+ }
+
+ /**
+ * @generated
+ */
+ private void createDurationConstraint_3116Children(View view) {
+ myDomain2NotationMap.put(view.getElement(), view);
+ myLinkDescriptors.addAll(UMLDiagramUpdater.getDurationConstraint_3116OutgoingLinks(view));
+
+ }
+
+ /**
+ * @generated
+ */
+ private void createTimeConstraint_3117Children(View view) {
+ myDomain2NotationMap.put(view.getElement(), view);
+ myLinkDescriptors.addAll(UMLDiagramUpdater.getTimeConstraint_3117OutgoingLinks(view));
+
+ }
+
+ /**
+ * @generated
+ */
+ private void createIntervalConstraint_3118Children(View view) {
+ myDomain2NotationMap.put(view.getElement(), view);
+ myLinkDescriptors.addAll(UMLDiagramUpdater.getIntervalConstraint_3118OutgoingLinks(view));
+
+ }
+
+ /**
+ * @generated
+ */
+ private void createInteractionConstraint_3119Children(View view) {
+ myDomain2NotationMap.put(view.getElement(), view);
+ myLinkDescriptors.addAll(UMLDiagramUpdater.getInteractionConstraint_3119OutgoingLinks(view));
+
+ }
+
+ /**
+ * @generated
+ */
+ private void createConstraint_3120Children(View view) {
+ myDomain2NotationMap.put(view.getElement(), view);
+ myLinkDescriptors.addAll(UMLDiagramUpdater.getConstraint_3120OutgoingLinks(view));
+
+ }
+
+ /**
+ * @generated
+ */
+ private void createProperty_3101Children(View view) {
+ myDomain2NotationMap.put(view.getElement(), view);
+ myLinkDescriptors.addAll(UMLDiagramUpdater.getProperty_3101OutgoingLinks(view));
+
+ }
+
+ /**
+ * @generated
+ */
+ private void createOperation_3102Children(View view) {
+ myDomain2NotationMap.put(view.getElement(), view);
+ myLinkDescriptors.addAll(UMLDiagramUpdater.getOperation_3102OutgoingLinks(view));
+
+ }
+
+ /**
+ * @generated
+ */
+ private void createReception_3100Children(View view) {
+ myDomain2NotationMap.put(view.getElement(), view);
+ myLinkDescriptors.addAll(UMLDiagramUpdater.getReception_3100OutgoingLinks(view));
+
+ }
+
+ /**
+ * @generated
+ */
+ private void createEnumerationLiteral_3066Children(View view) {
+ myDomain2NotationMap.put(view.getElement(), view);
+ myLinkDescriptors.addAll(UMLDiagramUpdater.getEnumerationLiteral_3066OutgoingLinks(view));
+
+ }
+
+ /**
+ * @generated
+ */
+ private void createActivity_3103Children(View view) {
+ myDomain2NotationMap.put(view.getElement(), view);
+ myLinkDescriptors.addAll(UMLDiagramUpdater.getActivity_3103OutgoingLinks(view));
+
+ }
+
+ /**
+ * @generated
+ */
+ private void createInteraction_3104Children(View view) {
+ myDomain2NotationMap.put(view.getElement(), view);
+ myLinkDescriptors.addAll(UMLDiagramUpdater.getInteraction_3104OutgoingLinks(view));
+
+ }
+
+ /**
+ * @generated
+ */
+ private void createProtocolStateMachine_3105Children(View view) {
+ myDomain2NotationMap.put(view.getElement(), view);
+ myLinkDescriptors.addAll(UMLDiagramUpdater.getProtocolStateMachine_3105OutgoingLinks(view));
+
+ }
+
+ /**
+ * @generated
+ */
+ private void createStateMachine_3106Children(View view) {
+ myDomain2NotationMap.put(view.getElement(), view);
+ myLinkDescriptors.addAll(UMLDiagramUpdater.getStateMachine_3106OutgoingLinks(view));
+
+ }
+
+ /**
+ * @generated
+ */
+ private void createFunctionBehavior_3107Children(View view) {
+ myDomain2NotationMap.put(view.getElement(), view);
+ myLinkDescriptors.addAll(UMLDiagramUpdater.getFunctionBehavior_3107OutgoingLinks(view));
+
+ }
+
+ /**
+ * @generated
+ */
+ private void createOpaqueBehavior_3108Children(View view) {
+ myDomain2NotationMap.put(view.getElement(), view);
+ myLinkDescriptors.addAll(UMLDiagramUpdater.getOpaqueBehavior_3108OutgoingLinks(view));
+
+ }
+
+ /**
+ * @generated
+ */
+ private void createCollaboration_3109Children(View view) {
+ myDomain2NotationMap.put(view.getElement(), view);
+ myLinkDescriptors.addAll(UMLDiagramUpdater.getCollaboration_3109OutgoingLinks(view));
+
+ }
+
+ /**
+ * @generated
+ */
+ private void createInterface_3110Children(View view) {
+ myDomain2NotationMap.put(view.getElement(), view);
+ myLinkDescriptors.addAll(UMLDiagramUpdater.getInterface_3110OutgoingLinks(view));
+
+ }
+
+ /**
+ * @generated
+ */
+ private void createEnumeration_3111Children(View view) {
+ myDomain2NotationMap.put(view.getElement(), view);
+ myLinkDescriptors.addAll(UMLDiagramUpdater.getEnumeration_3111OutgoingLinks(view));
+
+ }
+
+ /**
+ * @generated
+ */
+ private void createPrimitiveType_3112Children(View view) {
+ myDomain2NotationMap.put(view.getElement(), view);
+ myLinkDescriptors.addAll(UMLDiagramUpdater.getPrimitiveType_3112OutgoingLinks(view));
+
+ }
+
+ /**
+ * @generated
+ */
+ private void createDataType_3113Children(View view) {
+ myDomain2NotationMap.put(view.getElement(), view);
+ myLinkDescriptors.addAll(UMLDiagramUpdater.getDataType_3113OutgoingLinks(view));
+
+ }
+
+ /**
+ * @generated
+ */
+ private void createClass_3114Children(View view) {
+ myDomain2NotationMap.put(view.getElement(), view);
+ myLinkDescriptors.addAll(UMLDiagramUpdater.getClass_3114OutgoingLinks(view));
+
+ }
+
+ /**
+ * @generated
+ */
+ private void createDataTypeProperties_7033Children(View view) {
+ Collection childNodeDescriptors = UMLDiagramUpdater.getDataTypeProperties_7033SemanticChildren(view);
+ for(Iterator it = childNodeDescriptors.iterator(); it.hasNext();) {
+ createNode(view, (UMLNodeDescriptor)it.next());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void createDataTypeOperations_7034Children(View view) {
+ Collection childNodeDescriptors = UMLDiagramUpdater.getDataTypeOperations_7034SemanticChildren(view);
+ for(Iterator it = childNodeDescriptors.iterator(); it.hasNext();) {
+ createNode(view, (UMLNodeDescriptor)it.next());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void createDataTypeProperties_7036Children(View view) {
+ Collection childNodeDescriptors = UMLDiagramUpdater.getDataTypeProperties_7036SemanticChildren(view);
+ for(Iterator it = childNodeDescriptors.iterator(); it.hasNext();) {
+ createNode(view, (UMLNodeDescriptor)it.next());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void createDataTypeOperations_7037Children(View view) {
+ Collection childNodeDescriptors = UMLDiagramUpdater.getDataTypeOperations_7037SemanticChildren(view);
+ for(Iterator it = childNodeDescriptors.iterator(); it.hasNext();) {
+ createNode(view, (UMLNodeDescriptor)it.next());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void createEnumerationLiterals_7048Children(View view) {
+ Collection childNodeDescriptors = UMLDiagramUpdater.getEnumerationLiterals_7048SemanticChildren(view);
+ for(Iterator it = childNodeDescriptors.iterator(); it.hasNext();) {
+ createNode(view, (UMLNodeDescriptor)it.next());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void createEnumerationLiterals_7049Children(View view) {
+ Collection childNodeDescriptors = UMLDiagramUpdater.getEnumerationLiterals_7049SemanticChildren(view);
+ for(Iterator it = childNodeDescriptors.iterator(); it.hasNext();) {
+ createNode(view, (UMLNodeDescriptor)it.next());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void createActivityStructure_7050Children(View view) {
+ Collection childNodeDescriptors = UMLDiagramUpdater.getActivityStructure_7050SemanticChildren(view);
+ for(Iterator it = childNodeDescriptors.iterator(); it.hasNext();) {
+ createNode(view, (UMLNodeDescriptor)it.next());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void createInteractionStructure_7051Children(View view) {
+ Collection childNodeDescriptors = UMLDiagramUpdater.getInteractionStructure_7051SemanticChildren(view);
+ for(Iterator it = childNodeDescriptors.iterator(); it.hasNext();) {
+ createNode(view, (UMLNodeDescriptor)it.next());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void createProtocolStateMachineStructure_7052Children(View view) {
+ Collection childNodeDescriptors = UMLDiagramUpdater.getProtocolStateMachineStructure_7052SemanticChildren(view);
+ for(Iterator it = childNodeDescriptors.iterator(); it.hasNext();) {
+ createNode(view, (UMLNodeDescriptor)it.next());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void createStateMachineStructure_7053Children(View view) {
+ Collection childNodeDescriptors = UMLDiagramUpdater.getStateMachineStructure_7053SemanticChildren(view);
+ for(Iterator it = childNodeDescriptors.iterator(); it.hasNext();) {
+ createNode(view, (UMLNodeDescriptor)it.next());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void createFunctionBehaviorStructure_7054Children(View view) {
+ Collection childNodeDescriptors = UMLDiagramUpdater.getFunctionBehaviorStructure_7054SemanticChildren(view);
+ for(Iterator it = childNodeDescriptors.iterator(); it.hasNext();) {
+ createNode(view, (UMLNodeDescriptor)it.next());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void createOpaqueBehaviorStructure_7055Children(View view) {
+ Collection childNodeDescriptors = UMLDiagramUpdater.getOpaqueBehaviorStructure_7055SemanticChildren(view);
+ for(Iterator it = childNodeDescriptors.iterator(); it.hasNext();) {
+ createNode(view, (UMLNodeDescriptor)it.next());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void createComponentStructure_7056Children(View view) {
+ Collection childNodeDescriptors = UMLDiagramUpdater.getComponentStructure_7056SemanticChildren(view);
+ for(Iterator it = childNodeDescriptors.iterator(); it.hasNext();) {
+ createNode(view, (UMLNodeDescriptor)it.next());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void createDeviceStructure_7057Children(View view) {
+ Collection childNodeDescriptors = UMLDiagramUpdater.getDeviceStructure_7057SemanticChildren(view);
+ for(Iterator it = childNodeDescriptors.iterator(); it.hasNext();) {
+ createNode(view, (UMLNodeDescriptor)it.next());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void createExecutionEnvironmentStructure_7058Children(View view) {
+ Collection childNodeDescriptors = UMLDiagramUpdater.getExecutionEnvironmentStructure_7058SemanticChildren(view);
+ for(Iterator it = childNodeDescriptors.iterator(); it.hasNext();) {
+ createNode(view, (UMLNodeDescriptor)it.next());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void createNodeStructure_7059Children(View view) {
+ Collection childNodeDescriptors = UMLDiagramUpdater.getNodeStructure_7059SemanticChildren(view);
+ for(Iterator it = childNodeDescriptors.iterator(); it.hasNext();) {
+ createNode(view, (UMLNodeDescriptor)it.next());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void createClassStructure_7060Children(View view) {
+ Collection childNodeDescriptors = UMLDiagramUpdater.getClassStructure_7060SemanticChildren(view);
+ for(Iterator it = childNodeDescriptors.iterator(); it.hasNext();) {
+ createNode(view, (UMLNodeDescriptor)it.next());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void createCollaborationStructure_7061Children(View view) {
+ Collection childNodeDescriptors = UMLDiagramUpdater.getCollaborationStructure_7061SemanticChildren(view);
+ for(Iterator it = childNodeDescriptors.iterator(); it.hasNext();) {
+ createNode(view, (UMLNodeDescriptor)it.next());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void createActivityStructure_7063Children(View view) {
+ Collection childNodeDescriptors = UMLDiagramUpdater.getActivityStructure_7063SemanticChildren(view);
+ for(Iterator it = childNodeDescriptors.iterator(); it.hasNext();) {
+ createNode(view, (UMLNodeDescriptor)it.next());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void createInteractionStructure_7064Children(View view) {
+ Collection childNodeDescriptors = UMLDiagramUpdater.getInteractionStructure_7064SemanticChildren(view);
+ for(Iterator it = childNodeDescriptors.iterator(); it.hasNext();) {
+ createNode(view, (UMLNodeDescriptor)it.next());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void createProtocolStateMachineStructure_7065Children(View view) {
+ Collection childNodeDescriptors = UMLDiagramUpdater.getProtocolStateMachineStructure_7065SemanticChildren(view);
+ for(Iterator it = childNodeDescriptors.iterator(); it.hasNext();) {
+ createNode(view, (UMLNodeDescriptor)it.next());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void createStateMachineStructure_7066Children(View view) {
+ Collection childNodeDescriptors = UMLDiagramUpdater.getStateMachineStructure_7066SemanticChildren(view);
+ for(Iterator it = childNodeDescriptors.iterator(); it.hasNext();) {
+ createNode(view, (UMLNodeDescriptor)it.next());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void createFunctionBehaviorStructure_7067Children(View view) {
+ Collection childNodeDescriptors = UMLDiagramUpdater.getFunctionBehaviorStructure_7067SemanticChildren(view);
+ for(Iterator it = childNodeDescriptors.iterator(); it.hasNext();) {
+ createNode(view, (UMLNodeDescriptor)it.next());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void createOpaqueBehaviorStructure_7068Children(View view) {
+ Collection childNodeDescriptors = UMLDiagramUpdater.getOpaqueBehaviorStructure_7068SemanticChildren(view);
+ for(Iterator it = childNodeDescriptors.iterator(); it.hasNext();) {
+ createNode(view, (UMLNodeDescriptor)it.next());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void createComponentStructure_7069Children(View view) {
+ Collection childNodeDescriptors = UMLDiagramUpdater.getComponentStructure_7069SemanticChildren(view);
+ for(Iterator it = childNodeDescriptors.iterator(); it.hasNext();) {
+ createNode(view, (UMLNodeDescriptor)it.next());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void createDeviceStructure_7070Children(View view) {
+ Collection childNodeDescriptors = UMLDiagramUpdater.getDeviceStructure_7070SemanticChildren(view);
+ for(Iterator it = childNodeDescriptors.iterator(); it.hasNext();) {
+ createNode(view, (UMLNodeDescriptor)it.next());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void createExecutionEnvironmentStructure_7071Children(View view) {
+ Collection childNodeDescriptors = UMLDiagramUpdater.getExecutionEnvironmentStructure_7071SemanticChildren(view);
+ for(Iterator it = childNodeDescriptors.iterator(); it.hasNext();) {
+ createNode(view, (UMLNodeDescriptor)it.next());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void createNodeStructure_7072Children(View view) {
+ Collection childNodeDescriptors = UMLDiagramUpdater.getNodeStructure_7072SemanticChildren(view);
+ for(Iterator it = childNodeDescriptors.iterator(); it.hasNext();) {
+ createNode(view, (UMLNodeDescriptor)it.next());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void createClassStructure_7073Children(View view) {
+ Collection childNodeDescriptors = UMLDiagramUpdater.getClassStructure_7073SemanticChildren(view);
+ for(Iterator it = childNodeDescriptors.iterator(); it.hasNext();) {
+ createNode(view, (UMLNodeDescriptor)it.next());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void createCollaborationStructure_7075Children(View view) {
+ Collection childNodeDescriptors = UMLDiagramUpdater.getCollaborationStructure_7075SemanticChildren(view);
+ for(Iterator it = childNodeDescriptors.iterator(); it.hasNext();) {
+ createNode(view, (UMLNodeDescriptor)it.next());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void createPropertyStructure_7077Children(View view) {
+ Collection childNodeDescriptors = UMLDiagramUpdater.getPropertyStructure_7077SemanticChildren(view);
+ for(Iterator it = childNodeDescriptors.iterator(); it.hasNext();) {
+ createNode(view, (UMLNodeDescriptor)it.next());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void createNode(View parentView, UMLNodeDescriptor nodeDescriptor) {
+ final String nodeType = UMLVisualIDRegistry.getType(nodeDescriptor.getVisualID());
+ Node node = ViewService.createNode(parentView, nodeDescriptor.getModelElement(), nodeType, UMLDiagramEditorPlugin.DIAGRAM_PREFERENCES_HINT);
+ switch(nodeDescriptor.getVisualID()) {
+ case ActivityCompositeEditPart.VISUAL_ID:
+ createActivity_2060Children(node);
+ return;
+ case InteractionCompositeEditPart.VISUAL_ID:
+ createInteraction_2061Children(node);
+ return;
+ case ProtocolStateMachineCompositeEditPart.VISUAL_ID:
+ createProtocolStateMachine_2062Children(node);
+ return;
+ case StateMachineCompositeEditPart.VISUAL_ID:
+ createStateMachine_2063Children(node);
+ return;
+ case FunctionBehaviorCompositeEditPart.VISUAL_ID:
+ createFunctionBehavior_2064Children(node);
+ return;
+ case OpaqueBehaviorCompositeEditPart.VISUAL_ID:
+ createOpaqueBehavior_2065Children(node);
+ return;
+ case ComponentCompositeEditPart.VISUAL_ID:
+ createComponent_2069Children(node);
+ return;
+ case DeviceCompositeEditPart.VISUAL_ID:
+ createDevice_2070Children(node);
+ return;
+ case ExecutionEnvironmentCompositeEditPart.VISUAL_ID:
+ createExecutionEnvironment_2071Children(node);
+ return;
+ case NodeCompositeEditPart.VISUAL_ID:
+ createNode_2072Children(node);
+ return;
+ case ClassCompositeEditPart.VISUAL_ID:
+ createClass_2073Children(node);
+ return;
+ case CollaborationCompositeEditPart.VISUAL_ID:
+ createCollaboration_2075Children(node);
+ return;
+ case InterfaceEditPart.VISUAL_ID:
+ createInterface_2076Children(node);
+ return;
+ case PrimitiveTypeEditPart.VISUAL_ID:
+ createPrimitiveType_2066Children(node);
+ return;
+ case EnumerationEditPart.VISUAL_ID:
+ createEnumeration_2067Children(node);
+ return;
+ case DataTypeEditPart.VISUAL_ID:
+ createDataType_2068Children(node);
+ return;
+ case ActorEditPart.VISUAL_ID:
+ createActor_2077Children(node);
+ return;
+ case DeploymentSpecificationEditPart.VISUAL_ID:
+ createDeploymentSpecification_2078Children(node);
+ return;
+ case ArtifactEditPart.VISUAL_ID:
+ createArtifact_2079Children(node);
+ return;
+ case InformationItemEditPart.VISUAL_ID:
+ createInformationItem_2080Children(node);
+ return;
+ case SignalEditPart.VISUAL_ID:
+ createSignal_2081Children(node);
+ return;
+ case UseCaseEditPart.VISUAL_ID:
+ createUseCase_2082Children(node);
+ return;
+ case SignalEventEditPart.VISUAL_ID:
+ createSignalEvent_2083Children(node);
+ return;
+ case CallEventEditPart.VISUAL_ID:
+ createCallEvent_2084Children(node);
+ return;
+ case AnyReceiveEventEditPart.VISUAL_ID:
+ createAnyReceiveEvent_2085Children(node);
+ return;
+ case SendSignalEventEditPart.VISUAL_ID:
+ createSendSignalEvent_2086Children(node);
+ return;
+ case SendOperationEventEditPart.VISUAL_ID:
+ createSendOperationEvent_2087Children(node);
+ return;
+ case ChangeEventEditPart.VISUAL_ID:
+ createChangeEvent_2088Children(node);
+ return;
+ case TimeEventEditPart.VISUAL_ID:
+ createTimeEvent_2089Children(node);
+ return;
+ case CreationEventEditPart.VISUAL_ID:
+ createCreationEvent_2090Children(node);
+ return;
+ case DestructionEventEditPart.VISUAL_ID:
+ createDestructionEvent_2091Children(node);
+ return;
+ case ExecutionEventEditPart.VISUAL_ID:
+ createExecutionEvent_2092Children(node);
+ return;
+ case DurationObservationEditPart.VISUAL_ID:
+ createDurationObservation_2093Children(node);
+ return;
+ case TimeObservationEditPart.VISUAL_ID:
+ createTimeObservation_2094Children(node);
+ return;
+ case LiteralBooleanEditPart.VISUAL_ID:
+ createLiteralBoolean_2095Children(node);
+ return;
+ case LiteralIntegerEditPart.VISUAL_ID:
+ createLiteralInteger_2096Children(node);
+ return;
+ case LiteralNullEditPart.VISUAL_ID:
+ createLiteralNull_2097Children(node);
+ return;
+ case LiteralStringEditPart.VISUAL_ID:
+ createLiteralString_2098Children(node);
+ return;
+ case LiteralUnlimitedNaturalEditPart.VISUAL_ID:
+ createLiteralUnlimitedNatural_2099Children(node);
+ return;
+ case StringExpressionEditPart.VISUAL_ID:
+ createStringExpression_2100Children(node);
+ return;
+ case OpaqueExpressionEditPart.VISUAL_ID:
+ createOpaqueExpression_2101Children(node);
+ return;
+ case TimeExpressionEditPart.VISUAL_ID:
+ createTimeExpression_2102Children(node);
+ return;
+ case ExpressionEditPart.VISUAL_ID:
+ createExpression_2103Children(node);
+ return;
+ case DurationEditPart.VISUAL_ID:
+ createDuration_2104Children(node);
+ return;
+ case TimeIntervalEditPart.VISUAL_ID:
+ createTimeInterval_2105Children(node);
+ return;
+ case DurationIntervalEditPart.VISUAL_ID:
+ createDurationInterval_2106Children(node);
+ return;
+ case IntervalEditPart.VISUAL_ID:
+ createInterval_2107Children(node);
+ return;
+ case InstanceValueEditPart.VISUAL_ID:
+ createInstanceValue_2108Children(node);
+ return;
+ case CommentEditPart.VISUAL_ID:
+ createComment_2109Children(node);
+ return;
+ case DurationConstraintEditPart.VISUAL_ID:
+ createDurationConstraint_2110Children(node);
+ return;
+ case TimeConstraintEditPart.VISUAL_ID:
+ createTimeConstraint_2111Children(node);
+ return;
+ case IntervalConstraintEditPart.VISUAL_ID:
+ createIntervalConstraint_2112Children(node);
+ return;
+ case InteractionConstraintEditPart.VISUAL_ID:
+ createInteractionConstraint_2113Children(node);
+ return;
+ case ConstraintEditPart.VISUAL_ID:
+ createConstraint_2114Children(node);
+ return;
+ case PortEditPart.VISUAL_ID:
+ createPort_3069Children(node);
+ return;
+ case ParameterEditPart.VISUAL_ID:
+ createParameter_3088Children(node);
+ return;
+ case PropertyPartEditPartCN.VISUAL_ID:
+ createProperty_3070Children(node);
+ return;
+ case CollaborationRoleEditPartCN.VISUAL_ID:
+ createConnectableElement_3115Children(node);
+ return;
+ case CollaborationUseEditPartCN.VISUAL_ID:
+ createCollaborationUse_3071Children(node);
+ return;
+ case ActivityCompositeEditPartCN.VISUAL_ID:
+ createActivity_3072Children(node);
+ return;
+ case InteractionCompositeEditPartCN.VISUAL_ID:
+ createInteraction_3073Children(node);
+ return;
+ case ProtocolStateMachineCompositeEditPartCN.VISUAL_ID:
+ createProtocolStateMachine_3074Children(node);
+ return;
+ case StateMachineCompositeEditPartCN.VISUAL_ID:
+ createStateMachine_3075Children(node);
+ return;
+ case FunctionBehaviorCompositeEditPartCN.VISUAL_ID:
+ createFunctionBehavior_3076Children(node);
+ return;
+ case OpaqueBehaviorCompositeEditPartCN.VISUAL_ID:
+ createOpaqueBehavior_3077Children(node);
+ return;
+ case ComponentCompositeEditPartCN.VISUAL_ID:
+ createComponent_3081Children(node);
+ return;
+ case DeviceCompositeEditPartCN.VISUAL_ID:
+ createDevice_3082Children(node);
+ return;
+ case ExecutionEnvironmentCompositeEditPartCN.VISUAL_ID:
+ createExecutionEnvironment_3083Children(node);
+ return;
+ case NodeCompositeEditPartCN.VISUAL_ID:
+ createNode_3084Children(node);
+ return;
+ case ClassCompositeEditPartCN.VISUAL_ID:
+ createClass_3085Children(node);
+ return;
+ case CollaborationCompositeEditPartCN.VISUAL_ID:
+ createCollaboration_3086Children(node);
+ return;
+ case InterfaceEditPartCN.VISUAL_ID:
+ createInterface_3087Children(node);
+ return;
+ case PrimitiveTypeEditPartCN.VISUAL_ID:
+ createPrimitiveType_3078Children(node);
+ return;
+ case EnumerationEditPartCN.VISUAL_ID:
+ createEnumeration_3079Children(node);
+ return;
+ case DataTypeEditPartCN.VISUAL_ID:
+ createDataType_3080Children(node);
+ return;
+ case ActorEditPartCN.VISUAL_ID:
+ createActor_3091Children(node);
+ return;
+ case DeploymentSpecificationEditPartCN.VISUAL_ID:
+ createDeploymentSpecification_3092Children(node);
+ return;
+ case ArtifactEditPartCN.VISUAL_ID:
+ createArtifact_3093Children(node);
+ return;
+ case InformationItemEditPartCN.VISUAL_ID:
+ createInformationItem_3094Children(node);
+ return;
+ case SignalEditPartCN.VISUAL_ID:
+ createSignal_3095Children(node);
+ return;
+ case UseCaseEditPartCN.VISUAL_ID:
+ createUseCase_3096Children(node);
+ return;
+ case CommentEditPartCN.VISUAL_ID:
+ createComment_3097Children(node);
+ return;
+ case DurationConstraintEditPartCN.VISUAL_ID:
+ createDurationConstraint_3116Children(node);
+ return;
+ case TimeConstraintEditPartCN.VISUAL_ID:
+ createTimeConstraint_3117Children(node);
+ return;
+ case IntervalConstraintEditPartCN.VISUAL_ID:
+ createIntervalConstraint_3118Children(node);
+ return;
+ case InteractionConstraintEditPartCN.VISUAL_ID:
+ createInteractionConstraint_3119Children(node);
+ return;
+ case ConstraintEditPartCN.VISUAL_ID:
+ createConstraint_3120Children(node);
+ return;
+ case PropertyEditPartCLN.VISUAL_ID:
+ createProperty_3101Children(node);
+ return;
+ case OperationEditPartCLN.VISUAL_ID:
+ createOperation_3102Children(node);
+ return;
+ case ReceptionEditPartCLN.VISUAL_ID:
+ createReception_3100Children(node);
+ return;
+ case EnumerationLiteralEditPartCLN.VISUAL_ID:
+ createEnumerationLiteral_3066Children(node);
+ return;
+ case ActivityEditPartCLN.VISUAL_ID:
+ createActivity_3103Children(node);
+ return;
+ case InteractionEditPartCLN.VISUAL_ID:
+ createInteraction_3104Children(node);
+ return;
+ case ProtocolStateMachineEditPartCLN.VISUAL_ID:
+ createProtocolStateMachine_3105Children(node);
+ return;
+ case StateMachineEditPartCLN.VISUAL_ID:
+ createStateMachine_3106Children(node);
+ return;
+ case FunctionBehaviorEditPartCLN.VISUAL_ID:
+ createFunctionBehavior_3107Children(node);
+ return;
+ case OpaqueBehaviorEditPartCLN.VISUAL_ID:
+ createOpaqueBehavior_3108Children(node);
+ return;
+ case CollaborationEditPartCLN.VISUAL_ID:
+ createCollaboration_3109Children(node);
+ return;
+ case InterfaceEditPartCLN.VISUAL_ID:
+ createInterface_3110Children(node);
+ return;
+ case EnumerationEditPartCLN.VISUAL_ID:
+ createEnumeration_3111Children(node);
+ return;
+ case PrimitiveTypeEditPartCLN.VISUAL_ID:
+ createPrimitiveType_3112Children(node);
+ return;
+ case DataTypeEditPartCLN.VISUAL_ID:
+ createDataType_3113Children(node);
+ return;
+ case ClassEditPartCLN.VISUAL_ID:
+ createClass_3114Children(node);
+ return;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void createLinks(Diagram diagram) {
+ for(boolean continueLinkCreation = true; continueLinkCreation;) {
+ continueLinkCreation = false;
+ Collection additionalDescriptors = new LinkedList();
+ for(Iterator it = myLinkDescriptors.iterator(); it.hasNext();) {
+ UMLLinkDescriptor nextLinkDescriptor = (UMLLinkDescriptor)it.next();
+ if(!myDomain2NotationMap.containsKey(nextLinkDescriptor.getSource()) || !myDomain2NotationMap.containsKey(nextLinkDescriptor.getDestination())) {
+ continue;
+ }
+ final String linkType = UMLVisualIDRegistry.getType(nextLinkDescriptor.getVisualID());
+ Edge edge = ViewService.getInstance().createEdge(nextLinkDescriptor.getSemanticAdapter(), diagram, linkType, ViewUtil.APPEND, true, UMLDiagramEditorPlugin.DIAGRAM_PREFERENCES_HINT);
+ if(edge != null) {
+ edge.setSource((View)myDomain2NotationMap.get(nextLinkDescriptor.getSource()));
+ edge.setTarget((View)myDomain2NotationMap.get(nextLinkDescriptor.getDestination()));
+ it.remove();
+ if(nextLinkDescriptor.getModelElement() != null) {
+ myDomain2NotationMap.put(nextLinkDescriptor.getModelElement(), edge);
+ }
+ continueLinkCreation = true;
+ switch(nextLinkDescriptor.getVisualID()) {
+ case ComponentRealizationEditPart.VISUAL_ID:
+ additionalDescriptors.addAll(UMLDiagramUpdater.getComponentRealization_4004OutgoingLinks(edge));
+ break;
+ case InterfaceRealizationEditPart.VISUAL_ID:
+ additionalDescriptors.addAll(UMLDiagramUpdater.getInterfaceRealization_4005OutgoingLinks(edge));
+ break;
+ case SubstitutionEditPart.VISUAL_ID:
+ additionalDescriptors.addAll(UMLDiagramUpdater.getSubstitution_4011OutgoingLinks(edge));
+ break;
+ case RealizationEditPart.VISUAL_ID:
+ additionalDescriptors.addAll(UMLDiagramUpdater.getRealization_4006OutgoingLinks(edge));
+ break;
+ case ManifestationEditPart.VISUAL_ID:
+ additionalDescriptors.addAll(UMLDiagramUpdater.getManifestation_4012OutgoingLinks(edge));
+ break;
+ case AbstractionEditPart.VISUAL_ID:
+ additionalDescriptors.addAll(UMLDiagramUpdater.getAbstraction_4007OutgoingLinks(edge));
+ break;
+ case UsageEditPart.VISUAL_ID:
+ additionalDescriptors.addAll(UMLDiagramUpdater.getUsage_4008OutgoingLinks(edge));
+ break;
+ case DeploymentEditPart.VISUAL_ID:
+ additionalDescriptors.addAll(UMLDiagramUpdater.getDeployment_4009OutgoingLinks(edge));
+ break;
+ case RoleBindingEditPart.VISUAL_ID:
+ additionalDescriptors.addAll(UMLDiagramUpdater.getDependency_4017OutgoingLinks(edge));
+ break;
+ case DependencyEditPart.VISUAL_ID:
+ additionalDescriptors.addAll(UMLDiagramUpdater.getDependency_4010OutgoingLinks(edge));
+ break;
+ case ConnectorEditPart.VISUAL_ID:
+ additionalDescriptors.addAll(UMLDiagramUpdater.getConnector_4013OutgoingLinks(edge));
+ break;
+ case GeneralizationEditPart.VISUAL_ID:
+ additionalDescriptors.addAll(UMLDiagramUpdater.getGeneralization_4015OutgoingLinks(edge));
+ break;
+ case InformationFlowEditPart.VISUAL_ID:
+ additionalDescriptors.addAll(UMLDiagramUpdater.getInformationFlow_4021OutgoingLinks(edge));
+ break;
+ }
+ }
+ }
+ myLinkDescriptors.addAll(additionalDescriptors);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private Node getCompartment(View node, int visualID) {
+ String type = UMLVisualIDRegistry.getType(visualID);
+ for(Iterator it = node.getChildren().iterator(); it.hasNext();) {
+ View nextView = (View)it.next();
+ if(nextView instanceof Node && type.equals(nextView.getType())) {
+ return (Node)nextView;
+ }
+ }
+ return null;
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/part/UMLDiagramEditor.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/part/UMLDiagramEditor.java
new file mode 100644
index 00000000000..b3bb28d629a
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/part/UMLDiagramEditor.java
@@ -0,0 +1,492 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.part;
+
+import java.util.EventObject;
+
+import org.eclipse.core.commands.operations.IUndoableOperation;
+import org.eclipse.core.resources.IMarker;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.core.runtime.NullProgressMonitor;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.GraphicalViewer;
+import org.eclipse.gef.KeyHandler;
+import org.eclipse.gef.Tool;
+import org.eclipse.gef.commands.CommandStackListener;
+import org.eclipse.gef.palette.PaletteRoot;
+import org.eclipse.gef.ui.palette.PaletteViewer;
+import org.eclipse.gef.ui.palette.PaletteViewerProvider;
+import org.eclipse.gmf.runtime.common.core.service.IProviderChangeListener;
+import org.eclipse.gmf.runtime.common.core.service.ProviderChangeEvent;
+import org.eclipse.gmf.runtime.common.ui.services.marker.MarkerNavigationService;
+import org.eclipse.gmf.runtime.diagram.core.preferences.PreferencesHint;
+import org.eclipse.gmf.runtime.diagram.ui.actions.ActionIds;
+import org.eclipse.gmf.runtime.diagram.ui.internal.parts.PaletteToolTransferDragSourceListener;
+import org.eclipse.gmf.runtime.diagram.ui.resources.editor.document.IDocumentProvider;
+import org.eclipse.gmf.runtime.notation.Diagram;
+import org.eclipse.jface.util.LocalSelectionTransfer;
+import org.eclipse.jface.viewers.ISelection;
+import org.eclipse.papyrus.core.adaptor.gmf.GmfMultiDiagramDocumentProvider;
+import org.eclipse.papyrus.core.editor.IMultiDiagramEditor;
+import org.eclipse.papyrus.core.services.ServiceException;
+import org.eclipse.papyrus.core.services.ServicesRegistry;
+import org.eclipse.papyrus.diagram.common.listeners.DropTargetListener;
+import org.eclipse.papyrus.diagram.common.part.PapyrusPaletteContextMenuProvider;
+import org.eclipse.papyrus.diagram.common.part.PapyrusPaletteViewer;
+import org.eclipse.papyrus.diagram.common.part.UmlGmfDiagramEditor;
+import org.eclipse.papyrus.diagram.common.service.PapyrusPaletteService;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.dnd.TransferData;
+import org.eclipse.swt.events.KeyEvent;
+import org.eclipse.swt.events.MouseEvent;
+import org.eclipse.swt.events.MouseListener;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.ui.IEditorInput;
+import org.eclipse.ui.IEditorPart;
+import org.eclipse.ui.IWorkbenchPart;
+import org.eclipse.ui.ide.IGotoMarker;
+import org.eclipse.ui.part.ShowInContext;
+
+/**
+ * @generated
+ */
+public class UMLDiagramEditor extends UmlGmfDiagramEditor implements IProviderChangeListener, IGotoMarker {
+
+ /**
+ * @generated
+ */
+ public static final String ID = "org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorID"; //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ public static final String CONTEXT_ID = "org.eclipse.papyrus.diagram.composite.ui.diagramContext"; //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ private KeyHandler paletteKeyHandler = null;
+
+ /**
+ * @generated
+ */
+ private MouseListener paletteMouseListener = null;
+
+ /**
+ * @generated
+ */
+ private IUndoableOperation savedOperation = null;
+
+ /**
+ * @generated
+ */
+ private TransactionalEditingDomain editingDomain;
+
+ /**
+ * @generated
+ */
+ private IDocumentProvider documentProvider;
+
+ /**
+ * @generated
+ */
+ public UMLDiagramEditor(ServicesRegistry servicesRegistry, Diagram diagram) throws ServiceException {
+ super(servicesRegistry, diagram);
+
+ // adds a listener to the palette service, which reacts to palette customizations
+ PapyrusPaletteService.getInstance().addProviderChangeListener(this);
+
+ // Share the same editing provider
+ editingDomain = servicesRegistry.getService(TransactionalEditingDomain.class);
+ documentProvider = new GmfMultiDiagramDocumentProvider(editingDomain);
+
+ // overrides editing domain created by super constructor
+ setDocumentProvider(documentProvider);
+
+ }
+
+ /**
+ * @generated
+ */
+ protected String getContextID() {
+ return CONTEXT_ID;
+ }
+
+ /**
+ * @generated
+ */
+ protected PaletteRoot createPaletteRoot(PaletteRoot existingPaletteRoot) {
+ PaletteRoot paletteRoot;
+ if(existingPaletteRoot == null) {
+ paletteRoot = PapyrusPaletteService.getInstance().createPalette(this, getDefaultPaletteContent());
+ } else {
+ PapyrusPaletteService.getInstance().updatePalette(existingPaletteRoot, this, getDefaultPaletteContent());
+ paletteRoot = existingPaletteRoot;
+ }
+ applyCustomizationsToPalette(paletteRoot);
+ return paletteRoot;
+ }
+
+ /**
+ * @generated
+ */
+ protected PreferencesHint getPreferencesHint() {
+ return UMLDiagramEditorPlugin.DIAGRAM_PREFERENCES_HINT;
+ }
+
+ /**
+ * @generated
+ */
+ public String getContributorId() {
+ return UMLDiagramEditorPlugin.ID;
+ }
+
+ /**
+ * @generated
+ */
+ protected final IDocumentProvider getDocumentProvider(IEditorInput input) {
+ return documentProvider;
+ }
+
+ /**
+ * @generated
+ */
+ public TransactionalEditingDomain getEditingDomain() {
+ return editingDomain;
+ }
+
+ /**
+ * @generated
+ */
+ protected final void setDocumentProvider(IEditorInput input) {
+ // Already set in the constructor
+ }
+
+ /**
+ * @generated
+ */
+ public void gotoMarker(IMarker marker) {
+ MarkerNavigationService.getInstance().gotoMarker(this, marker);
+ }
+
+ /**
+ * @generated
+ */
+ public boolean isSaveAsAllowed() {
+ return true;
+ }
+
+ /**
+ * @generated
+ */
+ public void doSaveAs() {
+ performSaveAs(new NullProgressMonitor());
+ }
+
+ /**
+ * @generated
+ */
+ protected void performSaveAs(IProgressMonitor progressMonitor) {
+ // Nothing
+ }
+
+ /**
+ * @generated
+ */
+ public ShowInContext getShowInContext() {
+ return new ShowInContext(getEditorInput(), getGraphicalViewer().getSelection());
+ }
+
+ /**
+ * @generated
+ */
+ protected void configureGraphicalViewer() {
+ super.configureGraphicalViewer();
+ DiagramEditorContextMenuProvider provider = new DiagramEditorContextMenuProvider(this, getDiagramGraphicalViewer());
+ getDiagramGraphicalViewer().setContextMenu(provider);
+ getSite().registerContextMenu(ActionIds.DIAGRAM_EDITOR_CONTEXT_MENU, provider, getDiagramGraphicalViewer());
+ }
+
+ /**
+ * @generated
+ */
+ protected TransactionalEditingDomain createEditingDomain() {
+ // Already configured
+ return editingDomain;
+ }
+
+ /**
+ * @generated
+ */
+ protected void configureDiagramEditDomain() {
+ super.configureDiagramEditDomain();
+ getDiagramEditDomain().getDiagramCommandStack().addCommandStackListener(new CommandStackListener() {
+
+ public void commandStackChanged(EventObject event) {
+ firePropertyChange(IEditorPart.PROP_DIRTY);
+ }
+ });
+ }
+
+ /**
+ * @generated
+ */
+ public void doSave(IProgressMonitor progressMonitor) {
+ // The saving of the resource is done by the CoreMultiDiagramEditor
+ savedOperation = getOperationHistory().getUndoOperation(getUndoContext());
+ }
+
+ /**
+ * @generated
+ */
+ public boolean isDirty() {
+ IUndoableOperation op = getOperationHistory().getUndoOperation(getUndoContext());
+ return savedOperation != op;
+ }
+
+ /**
+ * @generated
+ */
+ public void providerChanged(ProviderChangeEvent event) {
+ // update the palette if the palette service has changed
+ if(PapyrusPaletteService.getInstance().equals(event.getSource())) {
+ PapyrusPaletteService.getInstance().updatePalette(getPaletteViewer().getPaletteRoot(), this, getDefaultPaletteContent());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void dispose() {
+ // remove palette service listener
+ // remove preference listener
+ PapyrusPaletteService.getInstance().removeProviderChangeListener(this);
+
+ super.dispose();
+ }
+
+ /**
+ * @generated
+ */
+ protected PaletteViewer getPaletteViewer() {
+ return getEditDomain().getPaletteViewer();
+ }
+
+ /**
+ * @generated
+ */
+ protected PaletteViewer constructPaletteViewer() {
+ return new PapyrusPaletteViewer();
+ }
+
+ /**
+ * @generated
+ */
+ protected PaletteViewerProvider createPaletteViewerProvider() {
+ getEditDomain().setPaletteRoot(createPaletteRoot(null));
+ return new PaletteViewerProvider(getEditDomain()) {
+
+ /**
+ * Override to provide the additional behavior for the tools. Will intialize with a
+ * PaletteEditPartFactory that has a TrackDragger that understand how to handle the
+ * mouseDoubleClick event for shape creation tools. Also will initialize the palette
+ * with a defaultTool that is the SelectToolEx that undestands how to handle the enter
+ * key which will result in the creation of the shape also.
+ */
+ protected void configurePaletteViewer(PaletteViewer viewer) {
+ super.configurePaletteViewer(viewer);
+
+ // customize menu...
+ viewer.setContextMenu(new PapyrusPaletteContextMenuProvider(viewer));
+
+ viewer.getKeyHandler().setParent(getPaletteKeyHandler());
+ viewer.getControl().addMouseListener(getPaletteMouseListener());
+
+ // Add a transfer drag target listener that is supported on
+ // palette template entries whose template is a creation tool.
+ // This will enable drag and drop of the palette shape creation
+ // tools.
+ viewer.addDragSourceListener(new PaletteToolTransferDragSourceListener(viewer));
+ viewer.setCustomizer(createPaletteCustomizer());
+ }
+
+ public PaletteViewer createPaletteViewer(Composite parent) {
+ PaletteViewer pViewer = constructPaletteViewer();
+ pViewer.createControl(parent);
+ configurePaletteViewer(pViewer);
+ hookPaletteViewer(pViewer);
+ return pViewer;
+ }
+
+ /**
+ * @return Palette Key Handler for the palette
+ */
+ private KeyHandler getPaletteKeyHandler() {
+
+ if(paletteKeyHandler == null) {
+
+ paletteKeyHandler = new KeyHandler() {
+
+ /**
+ * Processes a <i>key released </i> event. This method is called by the Tool
+ * whenever a key is released, and the Tool is in the proper state. Override
+ * to support pressing the enter key to create a shape or connection
+ * (between two selected shapes)
+ *
+ * @param event
+ * the KeyEvent
+ * @return <code>true</code> if KeyEvent was handled in some way
+ */
+ public boolean keyReleased(KeyEvent event) {
+
+ if(event.keyCode == SWT.Selection) {
+
+ Tool tool = getPaletteViewer().getActiveTool().createTool();
+
+ if(toolSupportsAccessibility(tool)) {
+
+ tool.keyUp(event, getDiagramGraphicalViewer());
+
+ // deactivate current selection
+ getPaletteViewer().setActiveTool(null);
+
+ return true;
+ }
+
+ }
+ return super.keyReleased(event);
+ }
+
+ };
+
+ }
+ return paletteKeyHandler;
+ }
+
+ /**
+ * @return Palette Mouse listener for the palette
+ */
+ private MouseListener getPaletteMouseListener() {
+
+ if(paletteMouseListener == null) {
+
+ paletteMouseListener = new MouseListener() {
+
+ /**
+ * Flag to indicate that the current active tool should be cleared after a
+ * mouse double-click event.
+ */
+ private boolean clearActiveTool = false;
+
+ /**
+ * Override to support double-clicking a palette tool entry to create a
+ * shape or connection (between two selected shapes).
+ *
+ * @see MouseListener#mouseDoubleClick(MouseEvent)
+ */
+ public void mouseDoubleClick(MouseEvent e) {
+ Tool tool = getPaletteViewer().getActiveTool().createTool();
+
+ if(toolSupportsAccessibility(tool)) {
+
+ tool.setViewer(getDiagramGraphicalViewer());
+ tool.setEditDomain(getDiagramGraphicalViewer().getEditDomain());
+ tool.mouseDoubleClick(e, getDiagramGraphicalViewer());
+
+ // Current active tool should be deactivated,
+ // but if it is down here it will get
+ // reactivated deep in GEF palette code after
+ // receiving mouse up events.
+ clearActiveTool = true;
+ }
+ }
+
+ public void mouseDown(MouseEvent e) {
+ // do nothing
+ }
+
+ public void mouseUp(MouseEvent e) {
+ // Deactivate current active tool here if a
+ // double-click was handled.
+ if(clearActiveTool) {
+ getPaletteViewer().setActiveTool(null);
+ clearActiveTool = false;
+ }
+
+ }
+ };
+
+ }
+ return paletteMouseListener;
+ }
+
+ };
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public GraphicalViewer getGraphicalViewer() {
+ return super.getGraphicalViewer();
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void initializeGraphicalViewer() {
+ super.initializeGraphicalViewer();
+
+ // Enable Drop
+ getDiagramGraphicalViewer().addDropTargetListener(new DropTargetListener(getDiagramGraphicalViewer(), LocalSelectionTransfer.getTransfer()) {
+
+ @Override
+ protected Object getJavaObject(TransferData data) {
+ return LocalSelectionTransfer.getTransfer().nativeToJava(data);
+ }
+
+ @Override
+ protected TransactionalEditingDomain getTransactionalEditingDomain() {
+ return getEditingDomain();
+ }
+ });
+
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public void selectionChanged(IWorkbenchPart part, ISelection selection) {
+ if(getSite().getPage().getActiveEditor() instanceof IMultiDiagramEditor) {
+ IMultiDiagramEditor editor = (IMultiDiagramEditor)getSite().getPage().getActiveEditor();
+ // If not the active editor, ignore selection changed.
+ if(this.equals(editor.getActiveEditor())) {
+ updateActions(getSelectionActions());
+ super.selectionChanged(part, selection);
+ } else {
+ super.selectionChanged(part, selection);
+ }
+ } else {
+ super.selectionChanged(part, selection);
+ }
+ // from
+ // org.eclipse.gmf.runtime.diagram.ui.resources.editor.parts.DiagramDocumentEditor.selectionChanged(IWorkbenchPart,
+ // ISelection)
+ if(part == this) {
+ rebuildStatusLine();
+ }
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/part/UMLDiagramEditorPlugin.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/part/UMLDiagramEditorPlugin.java
new file mode 100644
index 00000000000..d05abbecbe8
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/part/UMLDiagramEditorPlugin.java
@@ -0,0 +1,312 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.part;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import org.eclipse.core.runtime.IPath;
+import org.eclipse.core.runtime.IStatus;
+import org.eclipse.core.runtime.Path;
+import org.eclipse.core.runtime.Platform;
+import org.eclipse.core.runtime.Status;
+import org.eclipse.emf.common.notify.AdapterFactory;
+import org.eclipse.emf.ecore.provider.EcoreItemProviderAdapterFactory;
+import org.eclipse.emf.edit.provider.ComposedAdapterFactory;
+import org.eclipse.emf.edit.provider.IItemLabelProvider;
+import org.eclipse.emf.edit.provider.ReflectiveItemProviderAdapterFactory;
+import org.eclipse.emf.edit.provider.resource.ResourceItemProviderAdapterFactory;
+import org.eclipse.emf.edit.ui.provider.ExtendedImageRegistry;
+import org.eclipse.gmf.runtime.diagram.core.preferences.PreferencesHint;
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.jface.resource.ImageDescriptor;
+import org.eclipse.papyrus.diagram.composite.edit.policies.UMLBaseItemSemanticEditPolicy;
+import org.eclipse.papyrus.diagram.composite.preferences.DiagramPreferenceInitializer;
+import org.eclipse.papyrus.diagram.composite.providers.ElementInitializers;
+import org.eclipse.papyrus.preferences.Activator;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.ui.plugin.AbstractUIPlugin;
+import org.eclipse.uml2.uml.edit.providers.UMLItemProviderAdapterFactory;
+import org.osgi.framework.BundleContext;
+
+/**
+ * @generated
+ */
+public class UMLDiagramEditorPlugin extends AbstractUIPlugin {
+
+ /**
+ * @generated
+ */
+ public static final String ID = "org.eclipse.papyrus.diagram.composite"; //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ public static final PreferencesHint DIAGRAM_PREFERENCES_HINT = new PreferencesHint(ID);
+
+ /**
+ * @generated
+ */
+ private static UMLDiagramEditorPlugin instance;
+
+ /**
+ * @generated
+ */
+ private ComposedAdapterFactory adapterFactory;
+
+ /**
+ * @generated
+ */
+ private UMLDocumentProvider documentProvider;
+
+ /**
+ * @generated
+ */
+ private UMLBaseItemSemanticEditPolicy.LinkConstraints linkConstraints;
+
+ /**
+ * @generated
+ */
+ private ElementInitializers initializers;
+
+ /**
+ * @generated
+ */
+ public UMLDiagramEditorPlugin() {
+ }
+
+ /**
+ * @generated
+ */
+ public void start(BundleContext context) throws Exception {
+ super.start(context);
+ instance = this;
+ PreferencesHint.registerPreferenceStore(DIAGRAM_PREFERENCES_HINT, getPreferenceStore());
+ adapterFactory = createAdapterFactory();
+ DiagramPreferenceInitializer diagramPreferenceInitializer = new DiagramPreferenceInitializer();
+ diagramPreferenceInitializer.initializeDefaultPreferences();
+ }
+
+ /**
+ * @generated
+ */
+ public void stop(BundleContext context) throws Exception {
+ adapterFactory.dispose();
+ adapterFactory = null;
+ linkConstraints = null;
+ initializers = null;
+ instance = null;
+ super.stop(context);
+ }
+
+ /**
+ * @generated
+ */
+ public static UMLDiagramEditorPlugin getInstance() {
+ return instance;
+ }
+
+ /**
+ * @generated
+ */
+ public IPreferenceStore getPreferenceStore() {
+ IPreferenceStore store = Activator.getDefault().getPreferenceStore();
+ return store;
+ }
+
+ /**
+ * @generated
+ */
+ protected ComposedAdapterFactory createAdapterFactory() {
+ ArrayList<AdapterFactory> factories = new ArrayList<AdapterFactory>();
+ fillItemProviderFactories(factories);
+ return new ComposedAdapterFactory(factories);
+ }
+
+ /**
+ * @generated
+ */
+ protected void fillItemProviderFactories(List<AdapterFactory> factories) {
+ factories.add(new UMLItemProviderAdapterFactory());
+ factories.add(new EcoreItemProviderAdapterFactory());
+ factories.add(new ResourceItemProviderAdapterFactory());
+ factories.add(new ReflectiveItemProviderAdapterFactory());
+ }
+
+ /**
+ * @generated
+ */
+ public AdapterFactory getItemProvidersAdapterFactory() {
+ return adapterFactory;
+ }
+
+ /**
+ * @generated
+ */
+ public ImageDescriptor getItemImageDescriptor(Object item) {
+ IItemLabelProvider labelProvider = (IItemLabelProvider)adapterFactory.adapt(item, IItemLabelProvider.class);
+ if(labelProvider != null) {
+ return ExtendedImageRegistry.getInstance().getImageDescriptor(labelProvider.getImage(item));
+ }
+ return null;
+ }
+
+ /**
+ * Returns an image descriptor for the image file at the given
+ * plug-in relative path.
+ *
+ * @generated
+ * @param path
+ * the path
+ * @return the image descriptor
+ */
+ public static ImageDescriptor getBundledImageDescriptor(String path) {
+ return AbstractUIPlugin.imageDescriptorFromPlugin(ID, path);
+ }
+
+ /**
+ * Respects images residing in any plug-in. If path is relative,
+ * then this bundle is looked up for the image, otherwise, for absolute
+ * path, first segment is taken as id of plug-in with image
+ *
+ * @generated
+ * @param path
+ * the path to image, either absolute (with plug-in id as first segment), or relative for bundled images
+ * @return the image descriptor
+ */
+ public static ImageDescriptor findImageDescriptor(String path) {
+ final IPath p = new Path(path);
+ if(p.isAbsolute() && p.segmentCount() > 1) {
+ return AbstractUIPlugin.imageDescriptorFromPlugin(p.segment(0), p.removeFirstSegments(1).makeAbsolute().toString());
+ } else {
+ return getBundledImageDescriptor(p.makeAbsolute().toString());
+ }
+ }
+
+ /**
+ * Returns an image for the image file at the given plug-in relative path.
+ * Client do not need to dispose this image. Images will be disposed automatically.
+ *
+ * @generated
+ * @param path
+ * the path
+ * @return image instance
+ */
+ public Image getBundledImage(String path) {
+ Image image = getImageRegistry().get(path);
+ if(image == null) {
+ getImageRegistry().put(path, getBundledImageDescriptor(path));
+ image = getImageRegistry().get(path);
+ }
+ return image;
+ }
+
+ /**
+ * Returns string from plug-in's resource bundle
+ *
+ * @generated
+ */
+ public static String getString(String key) {
+ return Platform.getResourceString(getInstance().getBundle(), "%" + key); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ public UMLDocumentProvider getDocumentProvider() {
+ if(documentProvider == null) {
+ documentProvider = new UMLDocumentProvider();
+ }
+ return documentProvider;
+ }
+
+ /**
+ * @generated
+ */
+ public UMLBaseItemSemanticEditPolicy.LinkConstraints getLinkConstraints() {
+ return linkConstraints;
+ }
+
+ /**
+ * @generated
+ */
+ public void setLinkConstraints(UMLBaseItemSemanticEditPolicy.LinkConstraints lc) {
+ this.linkConstraints = lc;
+ }
+
+ /**
+ * @generated
+ */
+ public ElementInitializers getElementInitializers() {
+ return initializers;
+ }
+
+ /**
+ * @generated
+ */
+ public void setElementInitializers(ElementInitializers i) {
+ this.initializers = i;
+ }
+
+ /**
+ * @generated
+ */
+ public void logError(String error) {
+ logError(error, null);
+ }
+
+ /**
+ * @generated
+ */
+ public void logError(String error, Throwable throwable) {
+ if(error == null && throwable != null) {
+ error = throwable.getMessage();
+ }
+ getLog().log(new Status(IStatus.ERROR, UMLDiagramEditorPlugin.ID, IStatus.OK, error, throwable));
+ debug(error, throwable);
+ }
+
+ /**
+ * @generated
+ */
+ public void logInfo(String message) {
+ logInfo(message, null);
+ }
+
+ /**
+ * @generated
+ */
+ public void logInfo(String message, Throwable throwable) {
+ if(message == null && throwable != null) {
+ message = throwable.getMessage();
+ }
+ getLog().log(new Status(IStatus.INFO, UMLDiagramEditorPlugin.ID, IStatus.OK, message, throwable));
+ debug(message, throwable);
+ }
+
+ /**
+ * @generated
+ */
+ private void debug(String message, Throwable throwable) {
+ if(!isDebugging()) {
+ return;
+ }
+ if(message != null) {
+ System.err.println(message);
+ }
+ if(throwable != null) {
+ throwable.printStackTrace();
+ }
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/part/UMLDiagramEditorUtil.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/part/UMLDiagramEditorUtil.java
new file mode 100644
index 00000000000..412156ab62e
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/part/UMLDiagramEditorUtil.java
@@ -0,0 +1,381 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.part;
+
+import java.io.IOException;
+import java.util.Collections;
+import java.util.HashMap;
+import java.util.Iterator;
+import java.util.LinkedList;
+import java.util.List;
+import java.util.Map;
+import java.util.Set;
+
+import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.core.commands.operations.OperationHistoryFactory;
+import org.eclipse.core.resources.IFile;
+import org.eclipse.core.resources.IResource;
+import org.eclipse.core.resources.ResourcesPlugin;
+import org.eclipse.core.runtime.CoreException;
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.core.runtime.IPath;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.core.runtime.NullProgressMonitor;
+import org.eclipse.core.runtime.Path;
+import org.eclipse.core.runtime.SubProgressMonitor;
+import org.eclipse.emf.common.util.URI;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.ecore.resource.Resource;
+import org.eclipse.emf.ecore.xmi.XMLResource;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.emf.workspace.util.WorkspaceSynchronizer;
+import org.eclipse.gef.EditPart;
+import org.eclipse.gmf.runtime.common.core.command.CommandResult;
+import org.eclipse.gmf.runtime.diagram.core.services.ViewService;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.DiagramEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IPrimaryEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.parts.IDiagramGraphicalViewer;
+import org.eclipse.gmf.runtime.diagram.ui.parts.IDiagramWorkbenchPart;
+import org.eclipse.gmf.runtime.emf.commands.core.command.AbstractTransactionalCommand;
+import org.eclipse.gmf.runtime.emf.core.GMFEditingDomainFactory;
+import org.eclipse.gmf.runtime.emf.core.util.EMFCoreUtil;
+import org.eclipse.gmf.runtime.notation.Diagram;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.dialogs.IDialogSettings;
+import org.eclipse.jface.wizard.Wizard;
+import org.eclipse.jface.wizard.WizardDialog;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CompositeStructureDiagramEditPart;
+import org.eclipse.swt.widgets.Shell;
+import org.eclipse.ui.IWorkbenchPage;
+import org.eclipse.ui.PartInitException;
+import org.eclipse.ui.PlatformUI;
+import org.eclipse.ui.part.FileEditorInput;
+import org.eclipse.uml2.uml.Package;
+import org.eclipse.uml2.uml.UMLFactory;
+
+/**
+ * @generated
+ */
+public class UMLDiagramEditorUtil {
+
+ /**
+ * @generated
+ */
+ public static Map<?, ?> getSaveOptions() {
+ HashMap<String, Object> saveOptions = new HashMap<String, Object>();
+ saveOptions.put(XMLResource.OPTION_ENCODING, "UTF-8"); //$NON-NLS-1$
+ saveOptions.put(Resource.OPTION_SAVE_ONLY_IF_CHANGED, Resource.OPTION_SAVE_ONLY_IF_CHANGED_MEMORY_BUFFER);
+ return saveOptions;
+ }
+
+ /**
+ * @generated
+ */
+ public static boolean openDiagram(Resource diagram) throws PartInitException {
+ String path = diagram.getURI().toPlatformString(true);
+ IResource workspaceResource = ResourcesPlugin.getWorkspace().getRoot().findMember(new Path(path));
+ if(workspaceResource instanceof IFile) {
+ IWorkbenchPage page = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage();
+ return null != page.openEditor(new FileEditorInput((IFile)workspaceResource), UMLDiagramEditor.ID);
+ }
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ public static void setCharset(IFile file) {
+ if(file == null) {
+ return;
+ }
+ try {
+ file.setCharset("UTF-8", new NullProgressMonitor()); //$NON-NLS-1$
+ } catch (CoreException e) {
+ UMLDiagramEditorPlugin.getInstance().logError("Unable to set charset for file " + file.getFullPath(), e); //$NON-NLS-1$
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public static String getUniqueFileName(IPath containerFullPath, String fileName, String extension) {
+ if(containerFullPath == null) {
+ containerFullPath = new Path(""); //$NON-NLS-1$
+ }
+ if(fileName == null || fileName.trim().length() == 0) {
+ fileName = "default"; //$NON-NLS-1$
+ }
+ IPath filePath = containerFullPath.append(fileName);
+ if(extension != null && !extension.equals(filePath.getFileExtension())) {
+ filePath = filePath.addFileExtension(extension);
+ }
+ extension = filePath.getFileExtension();
+ fileName = filePath.removeFileExtension().lastSegment();
+ int i = 1;
+ while(ResourcesPlugin.getWorkspace().getRoot().exists(filePath)) {
+ i++;
+ filePath = containerFullPath.append(fileName + i);
+ if(extension != null) {
+ filePath = filePath.addFileExtension(extension);
+ }
+ }
+ return filePath.lastSegment();
+ }
+
+ /**
+ * Runs the wizard in a dialog.
+ *
+ * @generated
+ */
+ public static void runWizard(Shell shell, Wizard wizard, String settingsKey) {
+ IDialogSettings pluginDialogSettings = UMLDiagramEditorPlugin.getInstance().getDialogSettings();
+ IDialogSettings wizardDialogSettings = pluginDialogSettings.getSection(settingsKey);
+ if(wizardDialogSettings == null) {
+ wizardDialogSettings = pluginDialogSettings.addNewSection(settingsKey);
+ }
+ wizard.setDialogSettings(wizardDialogSettings);
+ WizardDialog dialog = new WizardDialog(shell, wizard);
+ dialog.create();
+ dialog.getShell().setSize(Math.max(500, dialog.getShell().getSize().x), 500);
+ dialog.open();
+ }
+
+ /**
+ * This method should be called within a workspace modify operation since it creates resources.
+ *
+ * @generated
+ */
+ public static Resource createDiagram(URI diagramURI, URI modelURI, IProgressMonitor progressMonitor) {
+ TransactionalEditingDomain editingDomain = GMFEditingDomainFactory.INSTANCE.createEditingDomain();
+ progressMonitor.beginTask(Messages.UMLDiagramEditorUtil_CreateDiagramProgressTask, 3);
+ final Resource diagramResource = editingDomain.getResourceSet().createResource(diagramURI);
+ final Resource modelResource = editingDomain.getResourceSet().createResource(modelURI);
+ final String diagramName = diagramURI.lastSegment();
+ AbstractTransactionalCommand command = new AbstractTransactionalCommand(editingDomain, Messages.UMLDiagramEditorUtil_CreateDiagramCommandLabel, Collections.EMPTY_LIST) {
+
+ protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+ Package model = createInitialModel();
+ attachModelToResource(model, modelResource);
+
+ Diagram diagram = ViewService.createDiagram(model, CompositeStructureDiagramEditPart.MODEL_ID, UMLDiagramEditorPlugin.DIAGRAM_PREFERENCES_HINT);
+ if(diagram != null) {
+ diagramResource.getContents().add(diagram);
+ diagram.setName(diagramName);
+ diagram.setElement(model);
+ }
+
+ try {
+ modelResource.save(org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorUtil.getSaveOptions());
+ diagramResource.save(org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorUtil.getSaveOptions());
+ } catch (IOException e) {
+
+ UMLDiagramEditorPlugin.getInstance().logError("Unable to store model and diagram resources", e); //$NON-NLS-1$
+ }
+ return CommandResult.newOKCommandResult();
+ }
+ };
+ try {
+ OperationHistoryFactory.getOperationHistory().execute(command, new SubProgressMonitor(progressMonitor, 1), null);
+ } catch (ExecutionException e) {
+ UMLDiagramEditorPlugin.getInstance().logError("Unable to create model and diagram", e); //$NON-NLS-1$
+ }
+ setCharset(WorkspaceSynchronizer.getFile(modelResource));
+ setCharset(WorkspaceSynchronizer.getFile(diagramResource));
+ return diagramResource;
+ }
+
+ /**
+ * Create a new instance of domain element associated with canvas.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ private static Package createInitialModel() {
+ return UMLFactory.eINSTANCE.createPackage();
+ }
+
+ /**
+ * Store model element in the resource.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ private static void attachModelToResource(Package model, Resource resource) {
+ resource.getContents().add(model);
+ }
+
+ /**
+ * @generated
+ */
+ public static void selectElementsInDiagram(IDiagramWorkbenchPart diagramPart, List<EditPart> editParts) {
+ diagramPart.getDiagramGraphicalViewer().deselectAll();
+
+ EditPart firstPrimary = null;
+ for(EditPart nextPart : editParts) {
+ diagramPart.getDiagramGraphicalViewer().appendSelection(nextPart);
+ if(firstPrimary == null && nextPart instanceof IPrimaryEditPart) {
+ firstPrimary = nextPart;
+ }
+ }
+
+ if(!editParts.isEmpty()) {
+ diagramPart.getDiagramGraphicalViewer().reveal(firstPrimary != null ? firstPrimary : (EditPart)editParts.get(0));
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private static int findElementsInDiagramByID(DiagramEditPart diagramPart, EObject element, List<EditPart> editPartCollector) {
+ IDiagramGraphicalViewer viewer = (IDiagramGraphicalViewer)diagramPart.getViewer();
+ final int intialNumOfEditParts = editPartCollector.size();
+
+ if(element instanceof View) { // support notation element lookup
+ EditPart editPart = (EditPart)viewer.getEditPartRegistry().get(element);
+ if(editPart != null) {
+ editPartCollector.add(editPart);
+ return 1;
+ }
+ }
+
+ String elementID = EMFCoreUtil.getProxyID(element);
+ @SuppressWarnings("unchecked")
+ List<EditPart> associatedParts = viewer.findEditPartsForElement(elementID, IGraphicalEditPart.class);
+ // perform the possible hierarchy disjoint -> take the top-most parts only
+ for(EditPart nextPart : associatedParts) {
+ EditPart parentPart = nextPart.getParent();
+ while(parentPart != null && !associatedParts.contains(parentPart)) {
+ parentPart = parentPart.getParent();
+ }
+ if(parentPart == null) {
+ editPartCollector.add(nextPart);
+ }
+ }
+
+ if(intialNumOfEditParts == editPartCollector.size()) {
+ if(!associatedParts.isEmpty()) {
+ editPartCollector.add(associatedParts.get(0));
+ } else {
+ if(element.eContainer() != null) {
+ return findElementsInDiagramByID(diagramPart, element.eContainer(), editPartCollector);
+ }
+ }
+ }
+ return editPartCollector.size() - intialNumOfEditParts;
+ }
+
+ /**
+ * @generated
+ */
+ public static View findView(DiagramEditPart diagramEditPart, EObject targetElement, LazyElement2ViewMap lazyElement2ViewMap) {
+ boolean hasStructuralURI = false;
+ if(targetElement.eResource() instanceof XMLResource) {
+ hasStructuralURI = ((XMLResource)targetElement.eResource()).getID(targetElement) == null;
+ }
+
+ View view = null;
+ LinkedList<EditPart> editPartHolder = new LinkedList<EditPart>();
+ if(hasStructuralURI && !lazyElement2ViewMap.getElement2ViewMap().isEmpty()) {
+ view = lazyElement2ViewMap.getElement2ViewMap().get(targetElement);
+ } else if(findElementsInDiagramByID(diagramEditPart, targetElement, editPartHolder) > 0) {
+ EditPart editPart = editPartHolder.get(0);
+ view = editPart.getModel() instanceof View ? (View)editPart.getModel() : null;
+ }
+
+ return (view == null) ? diagramEditPart.getDiagramView() : view;
+ }
+
+ /**
+ * XXX This is quite suspicious code (especially editPartTmpHolder) and likely to be removed soon
+ *
+ * @generated
+ */
+ public static class LazyElement2ViewMap {
+
+ /**
+ * @generated
+ */
+ private Map<EObject, View> element2ViewMap;
+
+ /**
+ * @generated
+ */
+ private View scope;
+
+ /**
+ * @generated
+ */
+ private Set<? extends EObject> elementSet;
+
+ /**
+ * @generated
+ */
+ public LazyElement2ViewMap(View scope, Set<? extends EObject> elements) {
+ this.scope = scope;
+ this.elementSet = elements;
+ }
+
+ /**
+ * @generated
+ */
+ public final Map<EObject, View> getElement2ViewMap() {
+ if(element2ViewMap == null) {
+ element2ViewMap = new HashMap<EObject, View>();
+ // map possible notation elements to itself as these can't be found by view.getElement()
+ for(EObject element : elementSet) {
+ if(element instanceof View) {
+ View view = (View)element;
+ if(view.getDiagram() == scope.getDiagram()) {
+ element2ViewMap.put(element, view); // take only those that part of our diagram
+ }
+ }
+ }
+
+ buildElement2ViewMap(scope, element2ViewMap, elementSet);
+ }
+ return element2ViewMap;
+ }
+
+ /**
+ * @generated
+ */
+ private static boolean buildElement2ViewMap(View parentView, Map<EObject, View> element2ViewMap, Set<? extends EObject> elements) {
+ if(elements.size() == element2ViewMap.size()) {
+ return true;
+ }
+
+ if(parentView.isSetElement() && !element2ViewMap.containsKey(parentView.getElement()) && elements.contains(parentView.getElement())) {
+ element2ViewMap.put(parentView.getElement(), parentView);
+ if(elements.size() == element2ViewMap.size()) {
+ return true;
+ }
+ }
+ boolean complete = false;
+ for(Iterator<?> it = parentView.getChildren().iterator(); it.hasNext() && !complete;) {
+ complete = buildElement2ViewMap((View)it.next(), element2ViewMap, elements);
+ }
+ for(Iterator<?> it = parentView.getSourceEdges().iterator(); it.hasNext() && !complete;) {
+ complete = buildElement2ViewMap((View)it.next(), element2ViewMap, elements);
+ }
+ for(Iterator<?> it = parentView.getTargetEdges().iterator(); it.hasNext() && !complete;) {
+ complete = buildElement2ViewMap((View)it.next(), element2ViewMap, elements);
+ }
+ return complete;
+ }
+ } //LazyElement2ViewMap
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/part/UMLDiagramUpdateCommand.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/part/UMLDiagramUpdateCommand.java
new file mode 100644
index 00000000000..894f7bde19e
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/part/UMLDiagramUpdateCommand.java
@@ -0,0 +1,91 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.part;
+
+import java.util.Iterator;
+import java.util.List;
+
+import org.eclipse.core.commands.ExecutionEvent;
+import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.core.commands.IHandler;
+import org.eclipse.core.commands.IHandlerListener;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gef.EditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.CanonicalEditPolicy;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.viewers.ISelection;
+import org.eclipse.jface.viewers.IStructuredSelection;
+import org.eclipse.ui.PlatformUI;
+
+/**
+ * @generated
+ */
+public class UMLDiagramUpdateCommand implements IHandler {
+
+ /**
+ * @generated
+ */
+ public void addHandlerListener(IHandlerListener handlerListener) {
+ }
+
+ /**
+ * @generated
+ */
+ public void dispose() {
+ }
+
+ /**
+ * @generated
+ */
+ public Object execute(ExecutionEvent event) throws ExecutionException {
+ ISelection selection = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getSelectionService().getSelection();
+ if(selection instanceof IStructuredSelection) {
+ IStructuredSelection structuredSelection = (IStructuredSelection)selection;
+ if(structuredSelection.size() != 1) {
+ return null;
+ }
+ if(structuredSelection.getFirstElement() instanceof EditPart && ((EditPart)structuredSelection.getFirstElement()).getModel() instanceof View) {
+ EObject modelElement = ((View)((EditPart)structuredSelection.getFirstElement()).getModel()).getElement();
+ List editPolicies = CanonicalEditPolicy.getRegisteredEditPolicies(modelElement);
+ for(Iterator it = editPolicies.iterator(); it.hasNext();) {
+ CanonicalEditPolicy nextEditPolicy = (CanonicalEditPolicy)it.next();
+ nextEditPolicy.refresh();
+ }
+
+ }
+ }
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ public boolean isEnabled() {
+ return true;
+ }
+
+ /**
+ * @generated
+ */
+ public boolean isHandled() {
+ return true;
+ }
+
+ /**
+ * @generated
+ */
+ public void removeHandlerListener(IHandlerListener handlerListener) {
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/part/UMLDiagramUpdater.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/part/UMLDiagramUpdater.java
new file mode 100644
index 00000000000..118599797fa
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/part/UMLDiagramUpdater.java
@@ -0,0 +1,13050 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.part;
+
+import java.util.Collection;
+import java.util.Collections;
+import java.util.Iterator;
+import java.util.LinkedList;
+import java.util.List;
+import java.util.Map;
+
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.ecore.EStructuralFeature;
+import org.eclipse.emf.ecore.util.EcoreUtil;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.diagram.common.part.ICustomDiagramUpdater;
+import org.eclipse.papyrus.diagram.composite.custom.parts.PropertyDiagramUpdater;
+import org.eclipse.papyrus.diagram.composite.edit.parts.*;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.uml2.uml.Abstraction;
+import org.eclipse.uml2.uml.Activity;
+import org.eclipse.uml2.uml.Actor;
+import org.eclipse.uml2.uml.AnyReceiveEvent;
+import org.eclipse.uml2.uml.Artifact;
+import org.eclipse.uml2.uml.CallEvent;
+import org.eclipse.uml2.uml.ChangeEvent;
+import org.eclipse.uml2.uml.Class;
+import org.eclipse.uml2.uml.Classifier;
+import org.eclipse.uml2.uml.Collaboration;
+import org.eclipse.uml2.uml.CollaborationUse;
+import org.eclipse.uml2.uml.Comment;
+import org.eclipse.uml2.uml.Component;
+import org.eclipse.uml2.uml.ComponentRealization;
+import org.eclipse.uml2.uml.ConnectableElement;
+import org.eclipse.uml2.uml.Connector;
+import org.eclipse.uml2.uml.ConnectorEnd;
+import org.eclipse.uml2.uml.Constraint;
+import org.eclipse.uml2.uml.CreationEvent;
+import org.eclipse.uml2.uml.DataType;
+import org.eclipse.uml2.uml.Dependency;
+import org.eclipse.uml2.uml.Deployment;
+import org.eclipse.uml2.uml.DeploymentSpecification;
+import org.eclipse.uml2.uml.DestructionEvent;
+import org.eclipse.uml2.uml.Device;
+import org.eclipse.uml2.uml.Duration;
+import org.eclipse.uml2.uml.DurationConstraint;
+import org.eclipse.uml2.uml.DurationInterval;
+import org.eclipse.uml2.uml.DurationObservation;
+import org.eclipse.uml2.uml.Element;
+import org.eclipse.uml2.uml.Enumeration;
+import org.eclipse.uml2.uml.EnumerationLiteral;
+import org.eclipse.uml2.uml.ExecutionEnvironment;
+import org.eclipse.uml2.uml.ExecutionEvent;
+import org.eclipse.uml2.uml.Expression;
+import org.eclipse.uml2.uml.FunctionBehavior;
+import org.eclipse.uml2.uml.Generalization;
+import org.eclipse.uml2.uml.InformationFlow;
+import org.eclipse.uml2.uml.InformationItem;
+import org.eclipse.uml2.uml.InstanceValue;
+import org.eclipse.uml2.uml.Interaction;
+import org.eclipse.uml2.uml.InteractionConstraint;
+import org.eclipse.uml2.uml.Interface;
+import org.eclipse.uml2.uml.InterfaceRealization;
+import org.eclipse.uml2.uml.Interval;
+import org.eclipse.uml2.uml.IntervalConstraint;
+import org.eclipse.uml2.uml.LiteralBoolean;
+import org.eclipse.uml2.uml.LiteralInteger;
+import org.eclipse.uml2.uml.LiteralNull;
+import org.eclipse.uml2.uml.LiteralString;
+import org.eclipse.uml2.uml.LiteralUnlimitedNatural;
+import org.eclipse.uml2.uml.Manifestation;
+import org.eclipse.uml2.uml.NamedElement;
+import org.eclipse.uml2.uml.Node;
+import org.eclipse.uml2.uml.OpaqueBehavior;
+import org.eclipse.uml2.uml.OpaqueExpression;
+import org.eclipse.uml2.uml.Operation;
+import org.eclipse.uml2.uml.Package;
+import org.eclipse.uml2.uml.PackageableElement;
+import org.eclipse.uml2.uml.Parameter;
+import org.eclipse.uml2.uml.Port;
+import org.eclipse.uml2.uml.PrimitiveType;
+import org.eclipse.uml2.uml.Property;
+import org.eclipse.uml2.uml.ProtocolStateMachine;
+import org.eclipse.uml2.uml.Realization;
+import org.eclipse.uml2.uml.SendOperationEvent;
+import org.eclipse.uml2.uml.SendSignalEvent;
+import org.eclipse.uml2.uml.Signal;
+import org.eclipse.uml2.uml.SignalEvent;
+import org.eclipse.uml2.uml.StateMachine;
+import org.eclipse.uml2.uml.StringExpression;
+import org.eclipse.uml2.uml.StructuredClassifier;
+import org.eclipse.uml2.uml.Substitution;
+import org.eclipse.uml2.uml.TimeConstraint;
+import org.eclipse.uml2.uml.TimeEvent;
+import org.eclipse.uml2.uml.TimeExpression;
+import org.eclipse.uml2.uml.TimeInterval;
+import org.eclipse.uml2.uml.TimeObservation;
+import org.eclipse.uml2.uml.UMLPackage;
+import org.eclipse.uml2.uml.Usage;
+import org.eclipse.uml2.uml.UseCase;
+
+/**
+ * @generated
+ */
+public class UMLDiagramUpdater {
+
+ /**
+ * @generated
+ */
+ public static List<UMLNodeDescriptor> getSemanticChildren(View view) {
+ switch(UMLVisualIDRegistry.getVisualID(view)) {
+ case CompositeStructureDiagramEditPart.VISUAL_ID:
+ return getPackage_1000SemanticChildren(view);
+ case ActivityCompositeEditPart.VISUAL_ID:
+ return getActivity_2060SemanticChildren(view);
+ case InteractionCompositeEditPart.VISUAL_ID:
+ return getInteraction_2061SemanticChildren(view);
+ case ProtocolStateMachineCompositeEditPart.VISUAL_ID:
+ return getProtocolStateMachine_2062SemanticChildren(view);
+ case StateMachineCompositeEditPart.VISUAL_ID:
+ return getStateMachine_2063SemanticChildren(view);
+ case FunctionBehaviorCompositeEditPart.VISUAL_ID:
+ return getFunctionBehavior_2064SemanticChildren(view);
+ case OpaqueBehaviorCompositeEditPart.VISUAL_ID:
+ return getOpaqueBehavior_2065SemanticChildren(view);
+ case ComponentCompositeEditPart.VISUAL_ID:
+ return getComponent_2069SemanticChildren(view);
+ case DeviceCompositeEditPart.VISUAL_ID:
+ return getDevice_2070SemanticChildren(view);
+ case ExecutionEnvironmentCompositeEditPart.VISUAL_ID:
+ return getExecutionEnvironment_2071SemanticChildren(view);
+ case NodeCompositeEditPart.VISUAL_ID:
+ return getNode_2072SemanticChildren(view);
+ case ClassCompositeEditPart.VISUAL_ID:
+ return getClass_2073SemanticChildren(view);
+ case EnumerationEditPart.VISUAL_ID:
+ return getEnumeration_2067SemanticChildren(view);
+ case PropertyPartEditPartCN.VISUAL_ID:
+ return getProperty_3070SemanticChildren(view);
+ case ActivityCompositeEditPartCN.VISUAL_ID:
+ return getActivity_3072SemanticChildren(view);
+ case InteractionCompositeEditPartCN.VISUAL_ID:
+ return getInteraction_3073SemanticChildren(view);
+ case ProtocolStateMachineCompositeEditPartCN.VISUAL_ID:
+ return getProtocolStateMachine_3074SemanticChildren(view);
+ case StateMachineCompositeEditPartCN.VISUAL_ID:
+ return getStateMachine_3075SemanticChildren(view);
+ case FunctionBehaviorCompositeEditPartCN.VISUAL_ID:
+ return getFunctionBehavior_3076SemanticChildren(view);
+ case OpaqueBehaviorCompositeEditPartCN.VISUAL_ID:
+ return getOpaqueBehavior_3077SemanticChildren(view);
+ case ComponentCompositeEditPartCN.VISUAL_ID:
+ return getComponent_3081SemanticChildren(view);
+ case DeviceCompositeEditPartCN.VISUAL_ID:
+ return getDevice_3082SemanticChildren(view);
+ case ExecutionEnvironmentCompositeEditPartCN.VISUAL_ID:
+ return getExecutionEnvironment_3083SemanticChildren(view);
+ case NodeCompositeEditPartCN.VISUAL_ID:
+ return getNode_3084SemanticChildren(view);
+ case ClassCompositeEditPartCN.VISUAL_ID:
+ return getClass_3085SemanticChildren(view);
+ case EnumerationEditPartCN.VISUAL_ID:
+ return getEnumeration_3079SemanticChildren(view);
+ case DataTypeAttributeCompartmentEditPart.VISUAL_ID:
+ return getDataTypeProperties_7033SemanticChildren(view);
+ case DataTypeOperationCompartmentEditPart.VISUAL_ID:
+ return getDataTypeOperations_7034SemanticChildren(view);
+ case DataTypeAttributeCompartmentEditPartCN.VISUAL_ID:
+ return getDataTypeProperties_7036SemanticChildren(view);
+ case DataTypeOperationCompartmentEditPartCN.VISUAL_ID:
+ return getDataTypeOperations_7037SemanticChildren(view);
+ case EnumerationEnumerationLiteralCompartmentEditPart.VISUAL_ID:
+ return getEnumerationLiterals_7048SemanticChildren(view);
+ case EnumerationEnumerationLiteralCompartmentEditPartCN.VISUAL_ID:
+ return getEnumerationLiterals_7049SemanticChildren(view);
+ case ActivityCompositeCompartmentEditPartCN.VISUAL_ID:
+ return getActivityStructure_7050SemanticChildren(view);
+ case InteractionCompositeCompartmentEditPartCN.VISUAL_ID:
+ return getInteractionStructure_7051SemanticChildren(view);
+ case ProtocolStateMachineCompositeCompartmentEditPartCN.VISUAL_ID:
+ return getProtocolStateMachineStructure_7052SemanticChildren(view);
+ case StateMachineCompositeCompartmentEditPartCN.VISUAL_ID:
+ return getStateMachineStructure_7053SemanticChildren(view);
+ case FunctionBehaviorCompositeCompartmentEditPartCN.VISUAL_ID:
+ return getFunctionBehaviorStructure_7054SemanticChildren(view);
+ case OpaqueBehaviorCompositeCompartmentEditPartCN.VISUAL_ID:
+ return getOpaqueBehaviorStructure_7055SemanticChildren(view);
+ case ComponentCompositeCompartmentEditPartCN.VISUAL_ID:
+ return getComponentStructure_7056SemanticChildren(view);
+ case DeviceCompositeCompartmentEditPartCN.VISUAL_ID:
+ return getDeviceStructure_7057SemanticChildren(view);
+ case ExecutionEnvironmentCompositeCompartmentEditPartCN.VISUAL_ID:
+ return getExecutionEnvironmentStructure_7058SemanticChildren(view);
+ case NodeCompositeCompartmentEditPartCN.VISUAL_ID:
+ return getNodeStructure_7059SemanticChildren(view);
+ case ClassCompositeCompartmentEditPartCN.VISUAL_ID:
+ return getClassStructure_7060SemanticChildren(view);
+ case CollaborationCompositeCompartmentEditPartCN.VISUAL_ID:
+ return getCollaborationStructure_7061SemanticChildren(view);
+ case ActivityCompositeCompartmentEditPart.VISUAL_ID:
+ return getActivityStructure_7063SemanticChildren(view);
+ case InteractionCompositeCompartmentEditPart.VISUAL_ID:
+ return getInteractionStructure_7064SemanticChildren(view);
+ case ProtocolStateMachineCompositeCompartmentEditPart.VISUAL_ID:
+ return getProtocolStateMachineStructure_7065SemanticChildren(view);
+ case StateMachineCompositeCompartmentEditPart.VISUAL_ID:
+ return getStateMachineStructure_7066SemanticChildren(view);
+ case FunctionBehaviorCompositeCompartmentEditPart.VISUAL_ID:
+ return getFunctionBehaviorStructure_7067SemanticChildren(view);
+ case OpaqueBehaviorCompositeCompartmentEditPart.VISUAL_ID:
+ return getOpaqueBehaviorStructure_7068SemanticChildren(view);
+ case ComponentCompositeCompartmentEditPart.VISUAL_ID:
+ return getComponentStructure_7069SemanticChildren(view);
+ case DeviceCompositeCompartmentEditPart.VISUAL_ID:
+ return getDeviceStructure_7070SemanticChildren(view);
+ case ExecutionEnvironmentCompositeCompartmentEditPart.VISUAL_ID:
+ return getExecutionEnvironmentStructure_7071SemanticChildren(view);
+ case NodeCompositeCompartmentEditPart.VISUAL_ID:
+ return getNodeStructure_7072SemanticChildren(view);
+ case ClassCompositeCompartmentEditPart.VISUAL_ID:
+ return getClassStructure_7073SemanticChildren(view);
+ case CollaborationCompositeCompartmentEditPart.VISUAL_ID:
+ return getCollaborationStructure_7075SemanticChildren(view);
+ case PropertyPartCompartmentEditPartCN.VISUAL_ID:
+ return getPropertyStructure_7077SemanticChildren(view);
+ }
+ return Collections.emptyList();
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLNodeDescriptor> getPackage_1000SemanticChildren(View view) {
+ if(!view.isSetElement()) {
+ return Collections.EMPTY_LIST;
+ }
+ Package modelElement = (Package)view.getElement();
+ LinkedList<UMLNodeDescriptor> result = new LinkedList<UMLNodeDescriptor>();
+ for(Iterator<?> it = modelElement.getPackagedElements().iterator(); it.hasNext();) {
+ PackageableElement childElement = (PackageableElement)it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if(visualID == ActivityCompositeEditPart.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == InteractionCompositeEditPart.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == ProtocolStateMachineCompositeEditPart.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == StateMachineCompositeEditPart.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == FunctionBehaviorCompositeEditPart.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == OpaqueBehaviorCompositeEditPart.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == ComponentCompositeEditPart.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == DeviceCompositeEditPart.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == ExecutionEnvironmentCompositeEditPart.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == NodeCompositeEditPart.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == ClassCompositeEditPart.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == CollaborationCompositeEditPart.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == InterfaceEditPart.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == PrimitiveTypeEditPart.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == EnumerationEditPart.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == DataTypeEditPart.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == ActorEditPart.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == DeploymentSpecificationEditPart.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == ArtifactEditPart.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == InformationItemEditPart.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == SignalEditPart.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == UseCaseEditPart.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == SignalEventEditPart.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == CallEventEditPart.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == AnyReceiveEventEditPart.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == SendSignalEventEditPart.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == SendOperationEventEditPart.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == ChangeEventEditPart.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == TimeEventEditPart.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == CreationEventEditPart.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == DestructionEventEditPart.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == ExecutionEventEditPart.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == DurationObservationEditPart.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == TimeObservationEditPart.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == LiteralBooleanEditPart.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == LiteralIntegerEditPart.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == LiteralNullEditPart.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == LiteralStringEditPart.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == LiteralUnlimitedNaturalEditPart.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == StringExpressionEditPart.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == OpaqueExpressionEditPart.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == TimeExpressionEditPart.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == ExpressionEditPart.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == DurationEditPart.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == TimeIntervalEditPart.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == DurationIntervalEditPart.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == IntervalEditPart.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == InstanceValueEditPart.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ for(Iterator<?> it = modelElement.getOwnedComments().iterator(); it.hasNext();) {
+ Comment childElement = (Comment)it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if(visualID == CommentEditPart.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ for(Iterator<?> it = modelElement.getOwnedRules().iterator(); it.hasNext();) {
+ Constraint childElement = (Constraint)it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if(visualID == DurationConstraintEditPart.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == TimeConstraintEditPart.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == IntervalConstraintEditPart.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == InteractionConstraintEditPart.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == ConstraintEditPart.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLNodeDescriptor> getActivity_2060SemanticChildren(View view) {
+ if(!view.isSetElement()) {
+ return Collections.EMPTY_LIST;
+ }
+ Activity modelElement = (Activity)view.getElement();
+ LinkedList<UMLNodeDescriptor> result = new LinkedList<UMLNodeDescriptor>();
+ for(Iterator<?> it = modelElement.getOwnedAttributes().iterator(); it.hasNext();) {
+ Property childElement = (Property)it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if(visualID == PortEditPart.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ for(Iterator<?> it = modelElement.getOwnedParameters().iterator(); it.hasNext();) {
+ Parameter childElement = (Parameter)it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if(visualID == ParameterEditPart.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLNodeDescriptor> getInteraction_2061SemanticChildren(View view) {
+ if(!view.isSetElement()) {
+ return Collections.EMPTY_LIST;
+ }
+ Interaction modelElement = (Interaction)view.getElement();
+ LinkedList<UMLNodeDescriptor> result = new LinkedList<UMLNodeDescriptor>();
+ for(Iterator<?> it = modelElement.getOwnedAttributes().iterator(); it.hasNext();) {
+ Property childElement = (Property)it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if(visualID == PortEditPart.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ for(Iterator<?> it = modelElement.getOwnedParameters().iterator(); it.hasNext();) {
+ Parameter childElement = (Parameter)it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if(visualID == ParameterEditPart.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLNodeDescriptor> getProtocolStateMachine_2062SemanticChildren(View view) {
+ if(!view.isSetElement()) {
+ return Collections.EMPTY_LIST;
+ }
+ ProtocolStateMachine modelElement = (ProtocolStateMachine)view.getElement();
+ LinkedList<UMLNodeDescriptor> result = new LinkedList<UMLNodeDescriptor>();
+ for(Iterator<?> it = modelElement.getOwnedAttributes().iterator(); it.hasNext();) {
+ Property childElement = (Property)it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if(visualID == PortEditPart.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ for(Iterator<?> it = modelElement.getOwnedParameters().iterator(); it.hasNext();) {
+ Parameter childElement = (Parameter)it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if(visualID == ParameterEditPart.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLNodeDescriptor> getStateMachine_2063SemanticChildren(View view) {
+ if(!view.isSetElement()) {
+ return Collections.EMPTY_LIST;
+ }
+ StateMachine modelElement = (StateMachine)view.getElement();
+ LinkedList<UMLNodeDescriptor> result = new LinkedList<UMLNodeDescriptor>();
+ for(Iterator<?> it = modelElement.getOwnedAttributes().iterator(); it.hasNext();) {
+ Property childElement = (Property)it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if(visualID == PortEditPart.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ for(Iterator<?> it = modelElement.getOwnedParameters().iterator(); it.hasNext();) {
+ Parameter childElement = (Parameter)it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if(visualID == ParameterEditPart.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLNodeDescriptor> getFunctionBehavior_2064SemanticChildren(View view) {
+ if(!view.isSetElement()) {
+ return Collections.EMPTY_LIST;
+ }
+ FunctionBehavior modelElement = (FunctionBehavior)view.getElement();
+ LinkedList<UMLNodeDescriptor> result = new LinkedList<UMLNodeDescriptor>();
+ for(Iterator<?> it = modelElement.getOwnedAttributes().iterator(); it.hasNext();) {
+ Property childElement = (Property)it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if(visualID == PortEditPart.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ for(Iterator<?> it = modelElement.getOwnedParameters().iterator(); it.hasNext();) {
+ Parameter childElement = (Parameter)it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if(visualID == ParameterEditPart.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLNodeDescriptor> getOpaqueBehavior_2065SemanticChildren(View view) {
+ if(!view.isSetElement()) {
+ return Collections.EMPTY_LIST;
+ }
+ OpaqueBehavior modelElement = (OpaqueBehavior)view.getElement();
+ LinkedList<UMLNodeDescriptor> result = new LinkedList<UMLNodeDescriptor>();
+ for(Iterator<?> it = modelElement.getOwnedAttributes().iterator(); it.hasNext();) {
+ Property childElement = (Property)it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if(visualID == PortEditPart.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ for(Iterator<?> it = modelElement.getOwnedParameters().iterator(); it.hasNext();) {
+ Parameter childElement = (Parameter)it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if(visualID == ParameterEditPart.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLNodeDescriptor> getComponent_2069SemanticChildren(View view) {
+ if(!view.isSetElement()) {
+ return Collections.EMPTY_LIST;
+ }
+ Component modelElement = (Component)view.getElement();
+ LinkedList<UMLNodeDescriptor> result = new LinkedList<UMLNodeDescriptor>();
+ for(Iterator<?> it = modelElement.getOwnedAttributes().iterator(); it.hasNext();) {
+ Property childElement = (Property)it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if(visualID == PortEditPart.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLNodeDescriptor> getDevice_2070SemanticChildren(View view) {
+ if(!view.isSetElement()) {
+ return Collections.EMPTY_LIST;
+ }
+ Device modelElement = (Device)view.getElement();
+ LinkedList<UMLNodeDescriptor> result = new LinkedList<UMLNodeDescriptor>();
+ for(Iterator<?> it = modelElement.getOwnedAttributes().iterator(); it.hasNext();) {
+ Property childElement = (Property)it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if(visualID == PortEditPart.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLNodeDescriptor> getExecutionEnvironment_2071SemanticChildren(View view) {
+ if(!view.isSetElement()) {
+ return Collections.EMPTY_LIST;
+ }
+ ExecutionEnvironment modelElement = (ExecutionEnvironment)view.getElement();
+ LinkedList<UMLNodeDescriptor> result = new LinkedList<UMLNodeDescriptor>();
+ for(Iterator<?> it = modelElement.getOwnedAttributes().iterator(); it.hasNext();) {
+ Property childElement = (Property)it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if(visualID == PortEditPart.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLNodeDescriptor> getNode_2072SemanticChildren(View view) {
+ if(!view.isSetElement()) {
+ return Collections.EMPTY_LIST;
+ }
+ Node modelElement = (Node)view.getElement();
+ LinkedList<UMLNodeDescriptor> result = new LinkedList<UMLNodeDescriptor>();
+ for(Iterator<?> it = modelElement.getOwnedAttributes().iterator(); it.hasNext();) {
+ Property childElement = (Property)it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if(visualID == PortEditPart.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLNodeDescriptor> getClass_2073SemanticChildren(View view) {
+ if(!view.isSetElement()) {
+ return Collections.EMPTY_LIST;
+ }
+ Class modelElement = (Class)view.getElement();
+ LinkedList<UMLNodeDescriptor> result = new LinkedList<UMLNodeDescriptor>();
+ for(Iterator<?> it = modelElement.getOwnedAttributes().iterator(); it.hasNext();) {
+ Property childElement = (Property)it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if(visualID == PortEditPart.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLNodeDescriptor> getEnumeration_2067SemanticChildren(View view) {
+ if(!view.isSetElement()) {
+ return Collections.EMPTY_LIST;
+ }
+ Enumeration modelElement = (Enumeration)view.getElement();
+ LinkedList<UMLNodeDescriptor> result = new LinkedList<UMLNodeDescriptor>();
+ for(Iterator<?> it = modelElement.getOwnedLiterals().iterator(); it.hasNext();) {
+ EnumerationLiteral childElement = (EnumerationLiteral)it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if(visualID == EnumerationLiteralEditPartCLN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ return result;
+ }
+
+ public static List getProperty_3070SemanticChildren(View view) {
+ ICustomDiagramUpdater customUpdater = new PropertyDiagramUpdater();
+ return customUpdater.getSemanticChildren(view);
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLNodeDescriptor> getActivity_3072SemanticChildren(View view) {
+ if(!view.isSetElement()) {
+ return Collections.EMPTY_LIST;
+ }
+ Activity modelElement = (Activity)view.getElement();
+ LinkedList<UMLNodeDescriptor> result = new LinkedList<UMLNodeDescriptor>();
+ for(Iterator<?> it = modelElement.getOwnedAttributes().iterator(); it.hasNext();) {
+ Property childElement = (Property)it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if(visualID == PortEditPart.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ for(Iterator<?> it = modelElement.getOwnedParameters().iterator(); it.hasNext();) {
+ Parameter childElement = (Parameter)it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if(visualID == ParameterEditPart.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLNodeDescriptor> getInteraction_3073SemanticChildren(View view) {
+ if(!view.isSetElement()) {
+ return Collections.EMPTY_LIST;
+ }
+ Interaction modelElement = (Interaction)view.getElement();
+ LinkedList<UMLNodeDescriptor> result = new LinkedList<UMLNodeDescriptor>();
+ for(Iterator<?> it = modelElement.getOwnedAttributes().iterator(); it.hasNext();) {
+ Property childElement = (Property)it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if(visualID == PortEditPart.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ for(Iterator<?> it = modelElement.getOwnedParameters().iterator(); it.hasNext();) {
+ Parameter childElement = (Parameter)it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if(visualID == ParameterEditPart.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLNodeDescriptor> getProtocolStateMachine_3074SemanticChildren(View view) {
+ if(!view.isSetElement()) {
+ return Collections.EMPTY_LIST;
+ }
+ ProtocolStateMachine modelElement = (ProtocolStateMachine)view.getElement();
+ LinkedList<UMLNodeDescriptor> result = new LinkedList<UMLNodeDescriptor>();
+ for(Iterator<?> it = modelElement.getOwnedAttributes().iterator(); it.hasNext();) {
+ Property childElement = (Property)it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if(visualID == PortEditPart.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ for(Iterator<?> it = modelElement.getOwnedParameters().iterator(); it.hasNext();) {
+ Parameter childElement = (Parameter)it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if(visualID == ParameterEditPart.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLNodeDescriptor> getStateMachine_3075SemanticChildren(View view) {
+ if(!view.isSetElement()) {
+ return Collections.EMPTY_LIST;
+ }
+ StateMachine modelElement = (StateMachine)view.getElement();
+ LinkedList<UMLNodeDescriptor> result = new LinkedList<UMLNodeDescriptor>();
+ for(Iterator<?> it = modelElement.getOwnedAttributes().iterator(); it.hasNext();) {
+ Property childElement = (Property)it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if(visualID == PortEditPart.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ for(Iterator<?> it = modelElement.getOwnedParameters().iterator(); it.hasNext();) {
+ Parameter childElement = (Parameter)it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if(visualID == ParameterEditPart.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLNodeDescriptor> getFunctionBehavior_3076SemanticChildren(View view) {
+ if(!view.isSetElement()) {
+ return Collections.EMPTY_LIST;
+ }
+ FunctionBehavior modelElement = (FunctionBehavior)view.getElement();
+ LinkedList<UMLNodeDescriptor> result = new LinkedList<UMLNodeDescriptor>();
+ for(Iterator<?> it = modelElement.getOwnedAttributes().iterator(); it.hasNext();) {
+ Property childElement = (Property)it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if(visualID == PortEditPart.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ for(Iterator<?> it = modelElement.getOwnedParameters().iterator(); it.hasNext();) {
+ Parameter childElement = (Parameter)it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if(visualID == ParameterEditPart.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLNodeDescriptor> getOpaqueBehavior_3077SemanticChildren(View view) {
+ if(!view.isSetElement()) {
+ return Collections.EMPTY_LIST;
+ }
+ OpaqueBehavior modelElement = (OpaqueBehavior)view.getElement();
+ LinkedList<UMLNodeDescriptor> result = new LinkedList<UMLNodeDescriptor>();
+ for(Iterator<?> it = modelElement.getOwnedAttributes().iterator(); it.hasNext();) {
+ Property childElement = (Property)it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if(visualID == PortEditPart.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ for(Iterator<?> it = modelElement.getOwnedParameters().iterator(); it.hasNext();) {
+ Parameter childElement = (Parameter)it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if(visualID == ParameterEditPart.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLNodeDescriptor> getComponent_3081SemanticChildren(View view) {
+ if(!view.isSetElement()) {
+ return Collections.EMPTY_LIST;
+ }
+ Component modelElement = (Component)view.getElement();
+ LinkedList<UMLNodeDescriptor> result = new LinkedList<UMLNodeDescriptor>();
+ for(Iterator<?> it = modelElement.getOwnedAttributes().iterator(); it.hasNext();) {
+ Property childElement = (Property)it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if(visualID == PortEditPart.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLNodeDescriptor> getDevice_3082SemanticChildren(View view) {
+ if(!view.isSetElement()) {
+ return Collections.EMPTY_LIST;
+ }
+ Device modelElement = (Device)view.getElement();
+ LinkedList<UMLNodeDescriptor> result = new LinkedList<UMLNodeDescriptor>();
+ for(Iterator<?> it = modelElement.getOwnedAttributes().iterator(); it.hasNext();) {
+ Property childElement = (Property)it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if(visualID == PortEditPart.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLNodeDescriptor> getExecutionEnvironment_3083SemanticChildren(View view) {
+ if(!view.isSetElement()) {
+ return Collections.EMPTY_LIST;
+ }
+ ExecutionEnvironment modelElement = (ExecutionEnvironment)view.getElement();
+ LinkedList<UMLNodeDescriptor> result = new LinkedList<UMLNodeDescriptor>();
+ for(Iterator<?> it = modelElement.getOwnedAttributes().iterator(); it.hasNext();) {
+ Property childElement = (Property)it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if(visualID == PortEditPart.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLNodeDescriptor> getNode_3084SemanticChildren(View view) {
+ if(!view.isSetElement()) {
+ return Collections.EMPTY_LIST;
+ }
+ Node modelElement = (Node)view.getElement();
+ LinkedList<UMLNodeDescriptor> result = new LinkedList<UMLNodeDescriptor>();
+ for(Iterator<?> it = modelElement.getOwnedAttributes().iterator(); it.hasNext();) {
+ Property childElement = (Property)it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if(visualID == PortEditPart.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLNodeDescriptor> getClass_3085SemanticChildren(View view) {
+ if(!view.isSetElement()) {
+ return Collections.EMPTY_LIST;
+ }
+ Class modelElement = (Class)view.getElement();
+ LinkedList<UMLNodeDescriptor> result = new LinkedList<UMLNodeDescriptor>();
+ for(Iterator<?> it = modelElement.getOwnedAttributes().iterator(); it.hasNext();) {
+ Property childElement = (Property)it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if(visualID == PortEditPart.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLNodeDescriptor> getEnumeration_3079SemanticChildren(View view) {
+ if(!view.isSetElement()) {
+ return Collections.EMPTY_LIST;
+ }
+ Enumeration modelElement = (Enumeration)view.getElement();
+ LinkedList<UMLNodeDescriptor> result = new LinkedList<UMLNodeDescriptor>();
+ for(Iterator<?> it = modelElement.getOwnedLiterals().iterator(); it.hasNext();) {
+ EnumerationLiteral childElement = (EnumerationLiteral)it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if(visualID == EnumerationLiteralEditPartCLN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLNodeDescriptor> getDataTypeProperties_7033SemanticChildren(View view) {
+ if(false == view.eContainer() instanceof View) {
+ return Collections.emptyList();
+ }
+ View containerView = (View)view.eContainer();
+ if(!containerView.isSetElement()) {
+ return Collections.emptyList();
+ }
+ DataType modelElement = (DataType)containerView.getElement();
+ LinkedList<UMLNodeDescriptor> result = new LinkedList<UMLNodeDescriptor>();
+ for(Iterator<?> it = modelElement.getOwnedAttributes().iterator(); it.hasNext();) {
+ Property childElement = (Property)it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if(visualID == PropertyEditPartCLN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLNodeDescriptor> getDataTypeOperations_7034SemanticChildren(View view) {
+ if(false == view.eContainer() instanceof View) {
+ return Collections.emptyList();
+ }
+ View containerView = (View)view.eContainer();
+ if(!containerView.isSetElement()) {
+ return Collections.emptyList();
+ }
+ DataType modelElement = (DataType)containerView.getElement();
+ LinkedList<UMLNodeDescriptor> result = new LinkedList<UMLNodeDescriptor>();
+ for(Iterator<?> it = modelElement.getOwnedOperations().iterator(); it.hasNext();) {
+ Operation childElement = (Operation)it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if(visualID == OperationEditPartCLN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLNodeDescriptor> getDataTypeProperties_7036SemanticChildren(View view) {
+ if(false == view.eContainer() instanceof View) {
+ return Collections.emptyList();
+ }
+ View containerView = (View)view.eContainer();
+ if(!containerView.isSetElement()) {
+ return Collections.emptyList();
+ }
+ DataType modelElement = (DataType)containerView.getElement();
+ LinkedList<UMLNodeDescriptor> result = new LinkedList<UMLNodeDescriptor>();
+ for(Iterator<?> it = modelElement.getOwnedAttributes().iterator(); it.hasNext();) {
+ Property childElement = (Property)it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if(visualID == PropertyEditPartCLN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLNodeDescriptor> getDataTypeOperations_7037SemanticChildren(View view) {
+ if(false == view.eContainer() instanceof View) {
+ return Collections.emptyList();
+ }
+ View containerView = (View)view.eContainer();
+ if(!containerView.isSetElement()) {
+ return Collections.emptyList();
+ }
+ DataType modelElement = (DataType)containerView.getElement();
+ LinkedList<UMLNodeDescriptor> result = new LinkedList<UMLNodeDescriptor>();
+ for(Iterator<?> it = modelElement.getOwnedOperations().iterator(); it.hasNext();) {
+ Operation childElement = (Operation)it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if(visualID == OperationEditPartCLN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLNodeDescriptor> getEnumerationLiterals_7048SemanticChildren(View view) {
+ if(false == view.eContainer() instanceof View) {
+ return Collections.emptyList();
+ }
+ View containerView = (View)view.eContainer();
+ if(!containerView.isSetElement()) {
+ return Collections.emptyList();
+ }
+ Enumeration modelElement = (Enumeration)containerView.getElement();
+ LinkedList<UMLNodeDescriptor> result = new LinkedList<UMLNodeDescriptor>();
+ for(Iterator<?> it = modelElement.getOwnedLiterals().iterator(); it.hasNext();) {
+ EnumerationLiteral childElement = (EnumerationLiteral)it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if(visualID == EnumerationLiteralEditPartCLN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLNodeDescriptor> getEnumerationLiterals_7049SemanticChildren(View view) {
+ if(false == view.eContainer() instanceof View) {
+ return Collections.emptyList();
+ }
+ View containerView = (View)view.eContainer();
+ if(!containerView.isSetElement()) {
+ return Collections.emptyList();
+ }
+ Enumeration modelElement = (Enumeration)containerView.getElement();
+ LinkedList<UMLNodeDescriptor> result = new LinkedList<UMLNodeDescriptor>();
+ for(Iterator<?> it = modelElement.getOwnedLiterals().iterator(); it.hasNext();) {
+ EnumerationLiteral childElement = (EnumerationLiteral)it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if(visualID == EnumerationLiteralEditPartCLN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLNodeDescriptor> getActivityStructure_7050SemanticChildren(View view) {
+ if(false == view.eContainer() instanceof View) {
+ return Collections.emptyList();
+ }
+ View containerView = (View)view.eContainer();
+ if(!containerView.isSetElement()) {
+ return Collections.emptyList();
+ }
+ Activity modelElement = (Activity)containerView.getElement();
+ LinkedList<UMLNodeDescriptor> result = new LinkedList<UMLNodeDescriptor>();
+ for(Iterator<?> it = modelElement.getOwnedAttributes().iterator(); it.hasNext();) {
+ Property childElement = (Property)it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if(visualID == PortEditPart.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == PropertyPartEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ for(Iterator<?> it = modelElement.getOwnedParameters().iterator(); it.hasNext();) {
+ Parameter childElement = (Parameter)it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if(visualID == ParameterEditPart.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ for(Iterator<?> it = modelElement.getCollaborationUses().iterator(); it.hasNext();) {
+ CollaborationUse childElement = (CollaborationUse)it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if(visualID == CollaborationUseEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ for(Iterator<?> it = modelElement.getNestedClassifiers().iterator(); it.hasNext();) {
+ Classifier childElement = (Classifier)it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if(visualID == ActivityCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == InteractionCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == ProtocolStateMachineCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == StateMachineCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == FunctionBehaviorCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == OpaqueBehaviorCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == ComponentCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == DeviceCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == ExecutionEnvironmentCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == NodeCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == ClassCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == CollaborationCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == InterfaceEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == PrimitiveTypeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == EnumerationEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == DataTypeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == ActorEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == DeploymentSpecificationEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == ArtifactEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == InformationItemEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == SignalEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == UseCaseEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ for(Iterator<?> it = modelElement.getOwnedComments().iterator(); it.hasNext();) {
+ Comment childElement = (Comment)it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if(visualID == CommentEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ for(Iterator<?> it = modelElement.getOwnedRules().iterator(); it.hasNext();) {
+ Constraint childElement = (Constraint)it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if(visualID == DurationConstraintEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == TimeConstraintEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == IntervalConstraintEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == InteractionConstraintEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == ConstraintEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLNodeDescriptor> getInteractionStructure_7051SemanticChildren(View view) {
+ if(false == view.eContainer() instanceof View) {
+ return Collections.emptyList();
+ }
+ View containerView = (View)view.eContainer();
+ if(!containerView.isSetElement()) {
+ return Collections.emptyList();
+ }
+ Interaction modelElement = (Interaction)containerView.getElement();
+ LinkedList<UMLNodeDescriptor> result = new LinkedList<UMLNodeDescriptor>();
+ for(Iterator<?> it = modelElement.getOwnedAttributes().iterator(); it.hasNext();) {
+ Property childElement = (Property)it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if(visualID == PortEditPart.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == PropertyPartEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ for(Iterator<?> it = modelElement.getOwnedParameters().iterator(); it.hasNext();) {
+ Parameter childElement = (Parameter)it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if(visualID == ParameterEditPart.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ for(Iterator<?> it = modelElement.getCollaborationUses().iterator(); it.hasNext();) {
+ CollaborationUse childElement = (CollaborationUse)it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if(visualID == CollaborationUseEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ for(Iterator<?> it = modelElement.getNestedClassifiers().iterator(); it.hasNext();) {
+ Classifier childElement = (Classifier)it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if(visualID == ActivityCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == InteractionCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == ProtocolStateMachineCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == StateMachineCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == FunctionBehaviorCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == OpaqueBehaviorCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == ComponentCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == DeviceCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == ExecutionEnvironmentCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == NodeCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == ClassCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == CollaborationCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == InterfaceEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == PrimitiveTypeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == EnumerationEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == DataTypeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == ActorEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == DeploymentSpecificationEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == ArtifactEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == InformationItemEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == SignalEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == UseCaseEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ for(Iterator<?> it = modelElement.getOwnedComments().iterator(); it.hasNext();) {
+ Comment childElement = (Comment)it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if(visualID == CommentEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ for(Iterator<?> it = modelElement.getOwnedRules().iterator(); it.hasNext();) {
+ Constraint childElement = (Constraint)it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if(visualID == DurationConstraintEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == TimeConstraintEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == IntervalConstraintEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == InteractionConstraintEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == ConstraintEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLNodeDescriptor> getProtocolStateMachineStructure_7052SemanticChildren(View view) {
+ if(false == view.eContainer() instanceof View) {
+ return Collections.emptyList();
+ }
+ View containerView = (View)view.eContainer();
+ if(!containerView.isSetElement()) {
+ return Collections.emptyList();
+ }
+ ProtocolStateMachine modelElement = (ProtocolStateMachine)containerView.getElement();
+ LinkedList<UMLNodeDescriptor> result = new LinkedList<UMLNodeDescriptor>();
+ for(Iterator<?> it = modelElement.getOwnedAttributes().iterator(); it.hasNext();) {
+ Property childElement = (Property)it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if(visualID == PortEditPart.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == PropertyPartEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ for(Iterator<?> it = modelElement.getOwnedParameters().iterator(); it.hasNext();) {
+ Parameter childElement = (Parameter)it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if(visualID == ParameterEditPart.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ for(Iterator<?> it = modelElement.getCollaborationUses().iterator(); it.hasNext();) {
+ CollaborationUse childElement = (CollaborationUse)it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if(visualID == CollaborationUseEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ for(Iterator<?> it = modelElement.getNestedClassifiers().iterator(); it.hasNext();) {
+ Classifier childElement = (Classifier)it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if(visualID == ActivityCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == InteractionCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == ProtocolStateMachineCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == StateMachineCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == FunctionBehaviorCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == OpaqueBehaviorCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == ComponentCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == DeviceCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == ExecutionEnvironmentCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == NodeCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == ClassCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == CollaborationCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == InterfaceEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == PrimitiveTypeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == EnumerationEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == DataTypeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == ActorEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == DeploymentSpecificationEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == ArtifactEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == InformationItemEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == SignalEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == UseCaseEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ for(Iterator<?> it = modelElement.getOwnedComments().iterator(); it.hasNext();) {
+ Comment childElement = (Comment)it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if(visualID == CommentEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ for(Iterator<?> it = modelElement.getOwnedRules().iterator(); it.hasNext();) {
+ Constraint childElement = (Constraint)it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if(visualID == DurationConstraintEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == TimeConstraintEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == IntervalConstraintEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == InteractionConstraintEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == ConstraintEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLNodeDescriptor> getStateMachineStructure_7053SemanticChildren(View view) {
+ if(false == view.eContainer() instanceof View) {
+ return Collections.emptyList();
+ }
+ View containerView = (View)view.eContainer();
+ if(!containerView.isSetElement()) {
+ return Collections.emptyList();
+ }
+ StateMachine modelElement = (StateMachine)containerView.getElement();
+ LinkedList<UMLNodeDescriptor> result = new LinkedList<UMLNodeDescriptor>();
+ for(Iterator<?> it = modelElement.getOwnedAttributes().iterator(); it.hasNext();) {
+ Property childElement = (Property)it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if(visualID == PortEditPart.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == PropertyPartEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ for(Iterator<?> it = modelElement.getOwnedParameters().iterator(); it.hasNext();) {
+ Parameter childElement = (Parameter)it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if(visualID == ParameterEditPart.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ for(Iterator<?> it = modelElement.getCollaborationUses().iterator(); it.hasNext();) {
+ CollaborationUse childElement = (CollaborationUse)it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if(visualID == CollaborationUseEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ for(Iterator<?> it = modelElement.getNestedClassifiers().iterator(); it.hasNext();) {
+ Classifier childElement = (Classifier)it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if(visualID == ActivityCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == InteractionCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == ProtocolStateMachineCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == StateMachineCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == FunctionBehaviorCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == OpaqueBehaviorCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == ComponentCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == DeviceCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == ExecutionEnvironmentCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == NodeCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == ClassCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == CollaborationCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == InterfaceEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == PrimitiveTypeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == EnumerationEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == DataTypeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == ActorEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == DeploymentSpecificationEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == ArtifactEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == InformationItemEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == SignalEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == UseCaseEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ for(Iterator<?> it = modelElement.getOwnedComments().iterator(); it.hasNext();) {
+ Comment childElement = (Comment)it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if(visualID == CommentEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ for(Iterator<?> it = modelElement.getOwnedRules().iterator(); it.hasNext();) {
+ Constraint childElement = (Constraint)it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if(visualID == DurationConstraintEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == TimeConstraintEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == IntervalConstraintEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == InteractionConstraintEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == ConstraintEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLNodeDescriptor> getFunctionBehaviorStructure_7054SemanticChildren(View view) {
+ if(false == view.eContainer() instanceof View) {
+ return Collections.emptyList();
+ }
+ View containerView = (View)view.eContainer();
+ if(!containerView.isSetElement()) {
+ return Collections.emptyList();
+ }
+ FunctionBehavior modelElement = (FunctionBehavior)containerView.getElement();
+ LinkedList<UMLNodeDescriptor> result = new LinkedList<UMLNodeDescriptor>();
+ for(Iterator<?> it = modelElement.getOwnedAttributes().iterator(); it.hasNext();) {
+ Property childElement = (Property)it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if(visualID == PortEditPart.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == PropertyPartEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ for(Iterator<?> it = modelElement.getOwnedParameters().iterator(); it.hasNext();) {
+ Parameter childElement = (Parameter)it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if(visualID == ParameterEditPart.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ for(Iterator<?> it = modelElement.getCollaborationUses().iterator(); it.hasNext();) {
+ CollaborationUse childElement = (CollaborationUse)it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if(visualID == CollaborationUseEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ for(Iterator<?> it = modelElement.getNestedClassifiers().iterator(); it.hasNext();) {
+ Classifier childElement = (Classifier)it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if(visualID == ActivityCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == InteractionCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == ProtocolStateMachineCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == StateMachineCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == FunctionBehaviorCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == OpaqueBehaviorCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == ComponentCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == DeviceCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == ExecutionEnvironmentCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == NodeCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == ClassCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == CollaborationCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == InterfaceEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == PrimitiveTypeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == EnumerationEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == DataTypeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == ActorEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == DeploymentSpecificationEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == ArtifactEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == InformationItemEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == SignalEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == UseCaseEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ for(Iterator<?> it = modelElement.getOwnedComments().iterator(); it.hasNext();) {
+ Comment childElement = (Comment)it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if(visualID == CommentEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ for(Iterator<?> it = modelElement.getOwnedRules().iterator(); it.hasNext();) {
+ Constraint childElement = (Constraint)it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if(visualID == DurationConstraintEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == TimeConstraintEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == IntervalConstraintEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == InteractionConstraintEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == ConstraintEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLNodeDescriptor> getOpaqueBehaviorStructure_7055SemanticChildren(View view) {
+ if(false == view.eContainer() instanceof View) {
+ return Collections.emptyList();
+ }
+ View containerView = (View)view.eContainer();
+ if(!containerView.isSetElement()) {
+ return Collections.emptyList();
+ }
+ OpaqueBehavior modelElement = (OpaqueBehavior)containerView.getElement();
+ LinkedList<UMLNodeDescriptor> result = new LinkedList<UMLNodeDescriptor>();
+ for(Iterator<?> it = modelElement.getOwnedAttributes().iterator(); it.hasNext();) {
+ Property childElement = (Property)it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if(visualID == PortEditPart.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == PropertyPartEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ for(Iterator<?> it = modelElement.getOwnedParameters().iterator(); it.hasNext();) {
+ Parameter childElement = (Parameter)it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if(visualID == ParameterEditPart.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ for(Iterator<?> it = modelElement.getCollaborationUses().iterator(); it.hasNext();) {
+ CollaborationUse childElement = (CollaborationUse)it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if(visualID == CollaborationUseEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ for(Iterator<?> it = modelElement.getNestedClassifiers().iterator(); it.hasNext();) {
+ Classifier childElement = (Classifier)it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if(visualID == ActivityCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == InteractionCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == ProtocolStateMachineCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == StateMachineCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == FunctionBehaviorCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == OpaqueBehaviorCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == ComponentCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == DeviceCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == ExecutionEnvironmentCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == NodeCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == ClassCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == CollaborationCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == InterfaceEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == PrimitiveTypeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == EnumerationEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == DataTypeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == ActorEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == DeploymentSpecificationEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == ArtifactEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == InformationItemEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == SignalEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == UseCaseEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ for(Iterator<?> it = modelElement.getOwnedComments().iterator(); it.hasNext();) {
+ Comment childElement = (Comment)it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if(visualID == CommentEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ for(Iterator<?> it = modelElement.getOwnedRules().iterator(); it.hasNext();) {
+ Constraint childElement = (Constraint)it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if(visualID == DurationConstraintEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == TimeConstraintEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == IntervalConstraintEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == InteractionConstraintEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == ConstraintEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLNodeDescriptor> getComponentStructure_7056SemanticChildren(View view) {
+ if(false == view.eContainer() instanceof View) {
+ return Collections.emptyList();
+ }
+ View containerView = (View)view.eContainer();
+ if(!containerView.isSetElement()) {
+ return Collections.emptyList();
+ }
+ Component modelElement = (Component)containerView.getElement();
+ LinkedList<UMLNodeDescriptor> result = new LinkedList<UMLNodeDescriptor>();
+ for(Iterator<?> it = modelElement.getOwnedAttributes().iterator(); it.hasNext();) {
+ Property childElement = (Property)it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if(visualID == PortEditPart.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == PropertyPartEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ for(Iterator<?> it = modelElement.getCollaborationUses().iterator(); it.hasNext();) {
+ CollaborationUse childElement = (CollaborationUse)it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if(visualID == CollaborationUseEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ for(Iterator<?> it = modelElement.getNestedClassifiers().iterator(); it.hasNext();) {
+ Classifier childElement = (Classifier)it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if(visualID == ActivityCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == InteractionCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == ProtocolStateMachineCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == StateMachineCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == FunctionBehaviorCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == OpaqueBehaviorCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == ComponentCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == DeviceCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == ExecutionEnvironmentCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == NodeCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == ClassCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == CollaborationCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == InterfaceEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == PrimitiveTypeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == EnumerationEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == DataTypeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == ActorEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == DeploymentSpecificationEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == ArtifactEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == InformationItemEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == SignalEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == UseCaseEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ for(Iterator<?> it = modelElement.getOwnedComments().iterator(); it.hasNext();) {
+ Comment childElement = (Comment)it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if(visualID == CommentEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ for(Iterator<?> it = modelElement.getOwnedRules().iterator(); it.hasNext();) {
+ Constraint childElement = (Constraint)it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if(visualID == DurationConstraintEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == TimeConstraintEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == IntervalConstraintEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == InteractionConstraintEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == ConstraintEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLNodeDescriptor> getDeviceStructure_7057SemanticChildren(View view) {
+ if(false == view.eContainer() instanceof View) {
+ return Collections.emptyList();
+ }
+ View containerView = (View)view.eContainer();
+ if(!containerView.isSetElement()) {
+ return Collections.emptyList();
+ }
+ Device modelElement = (Device)containerView.getElement();
+ LinkedList<UMLNodeDescriptor> result = new LinkedList<UMLNodeDescriptor>();
+ for(Iterator<?> it = modelElement.getOwnedAttributes().iterator(); it.hasNext();) {
+ Property childElement = (Property)it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if(visualID == PortEditPart.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == PropertyPartEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ for(Iterator<?> it = modelElement.getCollaborationUses().iterator(); it.hasNext();) {
+ CollaborationUse childElement = (CollaborationUse)it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if(visualID == CollaborationUseEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ for(Iterator<?> it = modelElement.getNestedClassifiers().iterator(); it.hasNext();) {
+ Classifier childElement = (Classifier)it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if(visualID == ActivityCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == InteractionCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == ProtocolStateMachineCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == StateMachineCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == FunctionBehaviorCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == OpaqueBehaviorCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == ComponentCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == DeviceCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == ExecutionEnvironmentCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == NodeCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == ClassCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == CollaborationCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == InterfaceEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == PrimitiveTypeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == EnumerationEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == DataTypeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == ActorEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == DeploymentSpecificationEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == ArtifactEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == InformationItemEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == SignalEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == UseCaseEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ for(Iterator<?> it = modelElement.getOwnedComments().iterator(); it.hasNext();) {
+ Comment childElement = (Comment)it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if(visualID == CommentEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ for(Iterator<?> it = modelElement.getOwnedRules().iterator(); it.hasNext();) {
+ Constraint childElement = (Constraint)it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if(visualID == DurationConstraintEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == TimeConstraintEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == IntervalConstraintEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == InteractionConstraintEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == ConstraintEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLNodeDescriptor> getExecutionEnvironmentStructure_7058SemanticChildren(View view) {
+ if(false == view.eContainer() instanceof View) {
+ return Collections.emptyList();
+ }
+ View containerView = (View)view.eContainer();
+ if(!containerView.isSetElement()) {
+ return Collections.emptyList();
+ }
+ ExecutionEnvironment modelElement = (ExecutionEnvironment)containerView.getElement();
+ LinkedList<UMLNodeDescriptor> result = new LinkedList<UMLNodeDescriptor>();
+ for(Iterator<?> it = modelElement.getOwnedAttributes().iterator(); it.hasNext();) {
+ Property childElement = (Property)it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if(visualID == PortEditPart.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == PropertyPartEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ for(Iterator<?> it = modelElement.getCollaborationUses().iterator(); it.hasNext();) {
+ CollaborationUse childElement = (CollaborationUse)it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if(visualID == CollaborationUseEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ for(Iterator<?> it = modelElement.getNestedClassifiers().iterator(); it.hasNext();) {
+ Classifier childElement = (Classifier)it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if(visualID == ActivityCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == InteractionCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == ProtocolStateMachineCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == StateMachineCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == FunctionBehaviorCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == OpaqueBehaviorCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == ComponentCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == DeviceCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == ExecutionEnvironmentCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == NodeCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == ClassCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == CollaborationCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == InterfaceEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == PrimitiveTypeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == EnumerationEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == DataTypeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == ActorEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == DeploymentSpecificationEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == ArtifactEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == InformationItemEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == SignalEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == UseCaseEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ for(Iterator<?> it = modelElement.getOwnedComments().iterator(); it.hasNext();) {
+ Comment childElement = (Comment)it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if(visualID == CommentEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ for(Iterator<?> it = modelElement.getOwnedRules().iterator(); it.hasNext();) {
+ Constraint childElement = (Constraint)it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if(visualID == DurationConstraintEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == TimeConstraintEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == IntervalConstraintEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == InteractionConstraintEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == ConstraintEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLNodeDescriptor> getNodeStructure_7059SemanticChildren(View view) {
+ if(false == view.eContainer() instanceof View) {
+ return Collections.emptyList();
+ }
+ View containerView = (View)view.eContainer();
+ if(!containerView.isSetElement()) {
+ return Collections.emptyList();
+ }
+ Node modelElement = (Node)containerView.getElement();
+ LinkedList<UMLNodeDescriptor> result = new LinkedList<UMLNodeDescriptor>();
+ for(Iterator<?> it = modelElement.getOwnedAttributes().iterator(); it.hasNext();) {
+ Property childElement = (Property)it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if(visualID == PortEditPart.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == PropertyPartEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ for(Iterator<?> it = modelElement.getCollaborationUses().iterator(); it.hasNext();) {
+ CollaborationUse childElement = (CollaborationUse)it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if(visualID == CollaborationUseEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ for(Iterator<?> it = modelElement.getNestedClassifiers().iterator(); it.hasNext();) {
+ Classifier childElement = (Classifier)it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if(visualID == ActivityCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == InteractionCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == ProtocolStateMachineCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == StateMachineCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == FunctionBehaviorCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == OpaqueBehaviorCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == ComponentCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == DeviceCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == ExecutionEnvironmentCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == NodeCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == ClassCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == CollaborationCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == InterfaceEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == PrimitiveTypeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == EnumerationEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == DataTypeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == ActorEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == DeploymentSpecificationEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == ArtifactEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == InformationItemEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == SignalEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == UseCaseEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ for(Iterator<?> it = modelElement.getOwnedComments().iterator(); it.hasNext();) {
+ Comment childElement = (Comment)it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if(visualID == CommentEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ for(Iterator<?> it = modelElement.getOwnedRules().iterator(); it.hasNext();) {
+ Constraint childElement = (Constraint)it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if(visualID == DurationConstraintEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == TimeConstraintEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == IntervalConstraintEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == InteractionConstraintEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == ConstraintEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLNodeDescriptor> getClassStructure_7060SemanticChildren(View view) {
+ if(false == view.eContainer() instanceof View) {
+ return Collections.emptyList();
+ }
+ View containerView = (View)view.eContainer();
+ if(!containerView.isSetElement()) {
+ return Collections.emptyList();
+ }
+ Class modelElement = (Class)containerView.getElement();
+ LinkedList<UMLNodeDescriptor> result = new LinkedList<UMLNodeDescriptor>();
+ for(Iterator<?> it = modelElement.getOwnedAttributes().iterator(); it.hasNext();) {
+ Property childElement = (Property)it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if(visualID == PortEditPart.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == PropertyPartEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ for(Iterator<?> it = modelElement.getCollaborationUses().iterator(); it.hasNext();) {
+ CollaborationUse childElement = (CollaborationUse)it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if(visualID == CollaborationUseEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ for(Iterator<?> it = modelElement.getNestedClassifiers().iterator(); it.hasNext();) {
+ Classifier childElement = (Classifier)it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if(visualID == ActivityCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == InteractionCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == ProtocolStateMachineCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == StateMachineCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == FunctionBehaviorCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == OpaqueBehaviorCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == ComponentCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == DeviceCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == ExecutionEnvironmentCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == NodeCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == ClassCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == CollaborationCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == InterfaceEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == PrimitiveTypeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == EnumerationEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == DataTypeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == ActorEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == DeploymentSpecificationEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == ArtifactEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == InformationItemEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == SignalEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == UseCaseEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ for(Iterator<?> it = modelElement.getOwnedComments().iterator(); it.hasNext();) {
+ Comment childElement = (Comment)it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if(visualID == CommentEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ for(Iterator<?> it = modelElement.getOwnedRules().iterator(); it.hasNext();) {
+ Constraint childElement = (Constraint)it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if(visualID == DurationConstraintEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == TimeConstraintEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == IntervalConstraintEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == InteractionConstraintEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == ConstraintEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLNodeDescriptor> getCollaborationStructure_7061SemanticChildren(View view) {
+ if(false == view.eContainer() instanceof View) {
+ return Collections.emptyList();
+ }
+ View containerView = (View)view.eContainer();
+ if(!containerView.isSetElement()) {
+ return Collections.emptyList();
+ }
+ Collaboration modelElement = (Collaboration)containerView.getElement();
+ LinkedList<UMLNodeDescriptor> result = new LinkedList<UMLNodeDescriptor>();
+ for(Iterator<?> it = modelElement.getOwnedAttributes().iterator(); it.hasNext();) {
+ Property childElement = (Property)it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if(visualID == PropertyPartEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ for(Iterator<?> it = modelElement.getCollaborationUses().iterator(); it.hasNext();) {
+ CollaborationUse childElement = (CollaborationUse)it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if(visualID == CollaborationUseEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ for(Iterator<?> it = modelElement.getOwnedComments().iterator(); it.hasNext();) {
+ Comment childElement = (Comment)it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if(visualID == CommentEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ for(Iterator<?> it = modelElement.getRoles().iterator(); it.hasNext();) {
+ ConnectableElement childElement = (ConnectableElement)it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if(visualID == CollaborationRoleEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ for(Iterator<?> it = modelElement.getOwnedRules().iterator(); it.hasNext();) {
+ Constraint childElement = (Constraint)it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if(visualID == DurationConstraintEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == TimeConstraintEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == IntervalConstraintEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == InteractionConstraintEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == ConstraintEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLNodeDescriptor> getActivityStructure_7063SemanticChildren(View view) {
+ if(false == view.eContainer() instanceof View) {
+ return Collections.emptyList();
+ }
+ View containerView = (View)view.eContainer();
+ if(!containerView.isSetElement()) {
+ return Collections.emptyList();
+ }
+ Activity modelElement = (Activity)containerView.getElement();
+ LinkedList<UMLNodeDescriptor> result = new LinkedList<UMLNodeDescriptor>();
+ for(Iterator<?> it = modelElement.getOwnedAttributes().iterator(); it.hasNext();) {
+ Property childElement = (Property)it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if(visualID == PortEditPart.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == PropertyPartEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ for(Iterator<?> it = modelElement.getOwnedParameters().iterator(); it.hasNext();) {
+ Parameter childElement = (Parameter)it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if(visualID == ParameterEditPart.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ for(Iterator<?> it = modelElement.getCollaborationUses().iterator(); it.hasNext();) {
+ CollaborationUse childElement = (CollaborationUse)it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if(visualID == CollaborationUseEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ for(Iterator<?> it = modelElement.getNestedClassifiers().iterator(); it.hasNext();) {
+ Classifier childElement = (Classifier)it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if(visualID == ActivityCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == InteractionCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == ProtocolStateMachineCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == StateMachineCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == FunctionBehaviorCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == OpaqueBehaviorCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == ComponentCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == DeviceCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == ExecutionEnvironmentCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == NodeCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == ClassCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == CollaborationCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == InterfaceEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == PrimitiveTypeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == EnumerationEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == DataTypeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == ActorEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == DeploymentSpecificationEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == ArtifactEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == InformationItemEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == SignalEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == UseCaseEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ for(Iterator<?> it = modelElement.getOwnedComments().iterator(); it.hasNext();) {
+ Comment childElement = (Comment)it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if(visualID == CommentEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ for(Iterator<?> it = modelElement.getOwnedRules().iterator(); it.hasNext();) {
+ Constraint childElement = (Constraint)it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if(visualID == DurationConstraintEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == TimeConstraintEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == IntervalConstraintEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == InteractionConstraintEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == ConstraintEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLNodeDescriptor> getInteractionStructure_7064SemanticChildren(View view) {
+ if(false == view.eContainer() instanceof View) {
+ return Collections.emptyList();
+ }
+ View containerView = (View)view.eContainer();
+ if(!containerView.isSetElement()) {
+ return Collections.emptyList();
+ }
+ Interaction modelElement = (Interaction)containerView.getElement();
+ LinkedList<UMLNodeDescriptor> result = new LinkedList<UMLNodeDescriptor>();
+ for(Iterator<?> it = modelElement.getOwnedAttributes().iterator(); it.hasNext();) {
+ Property childElement = (Property)it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if(visualID == PortEditPart.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == PropertyPartEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ for(Iterator<?> it = modelElement.getOwnedParameters().iterator(); it.hasNext();) {
+ Parameter childElement = (Parameter)it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if(visualID == ParameterEditPart.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ for(Iterator<?> it = modelElement.getCollaborationUses().iterator(); it.hasNext();) {
+ CollaborationUse childElement = (CollaborationUse)it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if(visualID == CollaborationUseEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ for(Iterator<?> it = modelElement.getNestedClassifiers().iterator(); it.hasNext();) {
+ Classifier childElement = (Classifier)it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if(visualID == ActivityCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == InteractionCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == ProtocolStateMachineCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == StateMachineCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == FunctionBehaviorCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == OpaqueBehaviorCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == ComponentCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == DeviceCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == ExecutionEnvironmentCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == NodeCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == ClassCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == CollaborationCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == InterfaceEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == PrimitiveTypeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == EnumerationEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == DataTypeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == ActorEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == DeploymentSpecificationEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == ArtifactEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == InformationItemEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == SignalEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == UseCaseEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ for(Iterator<?> it = modelElement.getOwnedComments().iterator(); it.hasNext();) {
+ Comment childElement = (Comment)it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if(visualID == CommentEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ for(Iterator<?> it = modelElement.getOwnedRules().iterator(); it.hasNext();) {
+ Constraint childElement = (Constraint)it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if(visualID == DurationConstraintEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == TimeConstraintEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == IntervalConstraintEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == InteractionConstraintEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == ConstraintEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLNodeDescriptor> getProtocolStateMachineStructure_7065SemanticChildren(View view) {
+ if(false == view.eContainer() instanceof View) {
+ return Collections.emptyList();
+ }
+ View containerView = (View)view.eContainer();
+ if(!containerView.isSetElement()) {
+ return Collections.emptyList();
+ }
+ ProtocolStateMachine modelElement = (ProtocolStateMachine)containerView.getElement();
+ LinkedList<UMLNodeDescriptor> result = new LinkedList<UMLNodeDescriptor>();
+ for(Iterator<?> it = modelElement.getOwnedAttributes().iterator(); it.hasNext();) {
+ Property childElement = (Property)it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if(visualID == PortEditPart.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == PropertyPartEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ for(Iterator<?> it = modelElement.getOwnedParameters().iterator(); it.hasNext();) {
+ Parameter childElement = (Parameter)it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if(visualID == ParameterEditPart.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ for(Iterator<?> it = modelElement.getCollaborationUses().iterator(); it.hasNext();) {
+ CollaborationUse childElement = (CollaborationUse)it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if(visualID == CollaborationUseEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ for(Iterator<?> it = modelElement.getNestedClassifiers().iterator(); it.hasNext();) {
+ Classifier childElement = (Classifier)it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if(visualID == ActivityCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == InteractionCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == ProtocolStateMachineCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == StateMachineCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == FunctionBehaviorCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == OpaqueBehaviorCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == ComponentCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == DeviceCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == ExecutionEnvironmentCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == NodeCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == ClassCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == CollaborationCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == InterfaceEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == PrimitiveTypeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == EnumerationEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == DataTypeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == ActorEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == DeploymentSpecificationEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == ArtifactEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == InformationItemEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == SignalEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == UseCaseEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ for(Iterator<?> it = modelElement.getOwnedComments().iterator(); it.hasNext();) {
+ Comment childElement = (Comment)it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if(visualID == CommentEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ for(Iterator<?> it = modelElement.getOwnedRules().iterator(); it.hasNext();) {
+ Constraint childElement = (Constraint)it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if(visualID == DurationConstraintEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == TimeConstraintEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == IntervalConstraintEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == InteractionConstraintEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == ConstraintEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLNodeDescriptor> getStateMachineStructure_7066SemanticChildren(View view) {
+ if(false == view.eContainer() instanceof View) {
+ return Collections.emptyList();
+ }
+ View containerView = (View)view.eContainer();
+ if(!containerView.isSetElement()) {
+ return Collections.emptyList();
+ }
+ StateMachine modelElement = (StateMachine)containerView.getElement();
+ LinkedList<UMLNodeDescriptor> result = new LinkedList<UMLNodeDescriptor>();
+ for(Iterator<?> it = modelElement.getOwnedAttributes().iterator(); it.hasNext();) {
+ Property childElement = (Property)it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if(visualID == PortEditPart.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == PropertyPartEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ for(Iterator<?> it = modelElement.getOwnedParameters().iterator(); it.hasNext();) {
+ Parameter childElement = (Parameter)it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if(visualID == ParameterEditPart.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ for(Iterator<?> it = modelElement.getCollaborationUses().iterator(); it.hasNext();) {
+ CollaborationUse childElement = (CollaborationUse)it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if(visualID == CollaborationUseEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ for(Iterator<?> it = modelElement.getNestedClassifiers().iterator(); it.hasNext();) {
+ Classifier childElement = (Classifier)it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if(visualID == ActivityCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == InteractionCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == ProtocolStateMachineCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == StateMachineCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == FunctionBehaviorCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == OpaqueBehaviorCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == ComponentCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == DeviceCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == ExecutionEnvironmentCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == NodeCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == ClassCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == CollaborationCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == InterfaceEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == PrimitiveTypeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == EnumerationEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == DataTypeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == ActorEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == DeploymentSpecificationEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == ArtifactEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == InformationItemEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == SignalEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == UseCaseEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ for(Iterator<?> it = modelElement.getOwnedComments().iterator(); it.hasNext();) {
+ Comment childElement = (Comment)it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if(visualID == CommentEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ for(Iterator<?> it = modelElement.getOwnedRules().iterator(); it.hasNext();) {
+ Constraint childElement = (Constraint)it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if(visualID == DurationConstraintEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == TimeConstraintEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == IntervalConstraintEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == InteractionConstraintEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == ConstraintEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLNodeDescriptor> getFunctionBehaviorStructure_7067SemanticChildren(View view) {
+ if(false == view.eContainer() instanceof View) {
+ return Collections.emptyList();
+ }
+ View containerView = (View)view.eContainer();
+ if(!containerView.isSetElement()) {
+ return Collections.emptyList();
+ }
+ FunctionBehavior modelElement = (FunctionBehavior)containerView.getElement();
+ LinkedList<UMLNodeDescriptor> result = new LinkedList<UMLNodeDescriptor>();
+ for(Iterator<?> it = modelElement.getOwnedAttributes().iterator(); it.hasNext();) {
+ Property childElement = (Property)it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if(visualID == PortEditPart.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == PropertyPartEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ for(Iterator<?> it = modelElement.getOwnedParameters().iterator(); it.hasNext();) {
+ Parameter childElement = (Parameter)it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if(visualID == ParameterEditPart.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ for(Iterator<?> it = modelElement.getCollaborationUses().iterator(); it.hasNext();) {
+ CollaborationUse childElement = (CollaborationUse)it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if(visualID == CollaborationUseEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ for(Iterator<?> it = modelElement.getNestedClassifiers().iterator(); it.hasNext();) {
+ Classifier childElement = (Classifier)it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if(visualID == ActivityCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == InteractionCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == ProtocolStateMachineCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == StateMachineCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == FunctionBehaviorCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == OpaqueBehaviorCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == ComponentCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == DeviceCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == ExecutionEnvironmentCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == NodeCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == ClassCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == CollaborationCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == InterfaceEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == PrimitiveTypeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == EnumerationEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == DataTypeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == ActorEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == DeploymentSpecificationEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == ArtifactEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == InformationItemEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == SignalEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == UseCaseEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ for(Iterator<?> it = modelElement.getOwnedComments().iterator(); it.hasNext();) {
+ Comment childElement = (Comment)it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if(visualID == CommentEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ for(Iterator<?> it = modelElement.getOwnedRules().iterator(); it.hasNext();) {
+ Constraint childElement = (Constraint)it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if(visualID == DurationConstraintEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == TimeConstraintEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == IntervalConstraintEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == InteractionConstraintEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == ConstraintEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLNodeDescriptor> getOpaqueBehaviorStructure_7068SemanticChildren(View view) {
+ if(false == view.eContainer() instanceof View) {
+ return Collections.emptyList();
+ }
+ View containerView = (View)view.eContainer();
+ if(!containerView.isSetElement()) {
+ return Collections.emptyList();
+ }
+ OpaqueBehavior modelElement = (OpaqueBehavior)containerView.getElement();
+ LinkedList<UMLNodeDescriptor> result = new LinkedList<UMLNodeDescriptor>();
+ for(Iterator<?> it = modelElement.getOwnedAttributes().iterator(); it.hasNext();) {
+ Property childElement = (Property)it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if(visualID == PortEditPart.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == PropertyPartEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ for(Iterator<?> it = modelElement.getOwnedParameters().iterator(); it.hasNext();) {
+ Parameter childElement = (Parameter)it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if(visualID == ParameterEditPart.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ for(Iterator<?> it = modelElement.getCollaborationUses().iterator(); it.hasNext();) {
+ CollaborationUse childElement = (CollaborationUse)it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if(visualID == CollaborationUseEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ for(Iterator<?> it = modelElement.getNestedClassifiers().iterator(); it.hasNext();) {
+ Classifier childElement = (Classifier)it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if(visualID == ActivityCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == InteractionCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == ProtocolStateMachineCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == StateMachineCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == FunctionBehaviorCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == OpaqueBehaviorCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == ComponentCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == DeviceCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == ExecutionEnvironmentCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == NodeCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == ClassCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == CollaborationCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == InterfaceEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == PrimitiveTypeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == EnumerationEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == DataTypeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == ActorEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == DeploymentSpecificationEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == ArtifactEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == InformationItemEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == SignalEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == UseCaseEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ for(Iterator<?> it = modelElement.getOwnedComments().iterator(); it.hasNext();) {
+ Comment childElement = (Comment)it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if(visualID == CommentEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ for(Iterator<?> it = modelElement.getOwnedRules().iterator(); it.hasNext();) {
+ Constraint childElement = (Constraint)it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if(visualID == DurationConstraintEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == TimeConstraintEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == IntervalConstraintEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == InteractionConstraintEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == ConstraintEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLNodeDescriptor> getComponentStructure_7069SemanticChildren(View view) {
+ if(false == view.eContainer() instanceof View) {
+ return Collections.emptyList();
+ }
+ View containerView = (View)view.eContainer();
+ if(!containerView.isSetElement()) {
+ return Collections.emptyList();
+ }
+ Component modelElement = (Component)containerView.getElement();
+ LinkedList<UMLNodeDescriptor> result = new LinkedList<UMLNodeDescriptor>();
+ for(Iterator<?> it = modelElement.getOwnedAttributes().iterator(); it.hasNext();) {
+ Property childElement = (Property)it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if(visualID == PortEditPart.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == PropertyPartEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ for(Iterator<?> it = modelElement.getCollaborationUses().iterator(); it.hasNext();) {
+ CollaborationUse childElement = (CollaborationUse)it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if(visualID == CollaborationUseEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ for(Iterator<?> it = modelElement.getNestedClassifiers().iterator(); it.hasNext();) {
+ Classifier childElement = (Classifier)it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if(visualID == ActivityCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == InteractionCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == ProtocolStateMachineCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == StateMachineCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == FunctionBehaviorCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == OpaqueBehaviorCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == ComponentCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == DeviceCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == ExecutionEnvironmentCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == NodeCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == ClassCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == CollaborationCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == InterfaceEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == PrimitiveTypeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == EnumerationEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == DataTypeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == ActorEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == DeploymentSpecificationEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == ArtifactEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == InformationItemEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == SignalEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == UseCaseEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ for(Iterator<?> it = modelElement.getOwnedComments().iterator(); it.hasNext();) {
+ Comment childElement = (Comment)it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if(visualID == CommentEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ for(Iterator<?> it = modelElement.getOwnedRules().iterator(); it.hasNext();) {
+ Constraint childElement = (Constraint)it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if(visualID == DurationConstraintEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == TimeConstraintEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == IntervalConstraintEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == InteractionConstraintEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == ConstraintEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLNodeDescriptor> getDeviceStructure_7070SemanticChildren(View view) {
+ if(false == view.eContainer() instanceof View) {
+ return Collections.emptyList();
+ }
+ View containerView = (View)view.eContainer();
+ if(!containerView.isSetElement()) {
+ return Collections.emptyList();
+ }
+ Device modelElement = (Device)containerView.getElement();
+ LinkedList<UMLNodeDescriptor> result = new LinkedList<UMLNodeDescriptor>();
+ for(Iterator<?> it = modelElement.getOwnedAttributes().iterator(); it.hasNext();) {
+ Property childElement = (Property)it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if(visualID == PortEditPart.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == PropertyPartEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ for(Iterator<?> it = modelElement.getCollaborationUses().iterator(); it.hasNext();) {
+ CollaborationUse childElement = (CollaborationUse)it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if(visualID == CollaborationUseEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ for(Iterator<?> it = modelElement.getNestedClassifiers().iterator(); it.hasNext();) {
+ Classifier childElement = (Classifier)it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if(visualID == ActivityCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == InteractionCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == ProtocolStateMachineCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == StateMachineCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == FunctionBehaviorCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == OpaqueBehaviorCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == ComponentCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == DeviceCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == ExecutionEnvironmentCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == NodeCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == ClassCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == CollaborationCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == InterfaceEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == PrimitiveTypeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == EnumerationEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == DataTypeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == ActorEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == DeploymentSpecificationEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == ArtifactEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == InformationItemEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == SignalEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == UseCaseEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ for(Iterator<?> it = modelElement.getOwnedComments().iterator(); it.hasNext();) {
+ Comment childElement = (Comment)it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if(visualID == CommentEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ for(Iterator<?> it = modelElement.getOwnedRules().iterator(); it.hasNext();) {
+ Constraint childElement = (Constraint)it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if(visualID == DurationConstraintEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == TimeConstraintEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == IntervalConstraintEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == InteractionConstraintEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == ConstraintEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLNodeDescriptor> getExecutionEnvironmentStructure_7071SemanticChildren(View view) {
+ if(false == view.eContainer() instanceof View) {
+ return Collections.emptyList();
+ }
+ View containerView = (View)view.eContainer();
+ if(!containerView.isSetElement()) {
+ return Collections.emptyList();
+ }
+ ExecutionEnvironment modelElement = (ExecutionEnvironment)containerView.getElement();
+ LinkedList<UMLNodeDescriptor> result = new LinkedList<UMLNodeDescriptor>();
+ for(Iterator<?> it = modelElement.getOwnedAttributes().iterator(); it.hasNext();) {
+ Property childElement = (Property)it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if(visualID == PortEditPart.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == PropertyPartEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ for(Iterator<?> it = modelElement.getCollaborationUses().iterator(); it.hasNext();) {
+ CollaborationUse childElement = (CollaborationUse)it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if(visualID == CollaborationUseEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ for(Iterator<?> it = modelElement.getNestedClassifiers().iterator(); it.hasNext();) {
+ Classifier childElement = (Classifier)it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if(visualID == ActivityCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == InteractionCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == ProtocolStateMachineCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == StateMachineCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == FunctionBehaviorCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == OpaqueBehaviorCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == ComponentCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == DeviceCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == ExecutionEnvironmentCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == NodeCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == ClassCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == CollaborationCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == InterfaceEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == PrimitiveTypeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == EnumerationEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == DataTypeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == ActorEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == DeploymentSpecificationEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == ArtifactEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == InformationItemEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == SignalEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == UseCaseEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ for(Iterator<?> it = modelElement.getOwnedComments().iterator(); it.hasNext();) {
+ Comment childElement = (Comment)it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if(visualID == CommentEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ for(Iterator<?> it = modelElement.getOwnedRules().iterator(); it.hasNext();) {
+ Constraint childElement = (Constraint)it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if(visualID == DurationConstraintEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == TimeConstraintEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == IntervalConstraintEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == InteractionConstraintEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == ConstraintEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLNodeDescriptor> getNodeStructure_7072SemanticChildren(View view) {
+ if(false == view.eContainer() instanceof View) {
+ return Collections.emptyList();
+ }
+ View containerView = (View)view.eContainer();
+ if(!containerView.isSetElement()) {
+ return Collections.emptyList();
+ }
+ Node modelElement = (Node)containerView.getElement();
+ LinkedList<UMLNodeDescriptor> result = new LinkedList<UMLNodeDescriptor>();
+ for(Iterator<?> it = modelElement.getOwnedAttributes().iterator(); it.hasNext();) {
+ Property childElement = (Property)it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if(visualID == PortEditPart.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == PropertyPartEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ for(Iterator<?> it = modelElement.getCollaborationUses().iterator(); it.hasNext();) {
+ CollaborationUse childElement = (CollaborationUse)it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if(visualID == CollaborationUseEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ for(Iterator<?> it = modelElement.getNestedClassifiers().iterator(); it.hasNext();) {
+ Classifier childElement = (Classifier)it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if(visualID == ActivityCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == InteractionCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == ProtocolStateMachineCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == StateMachineCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == FunctionBehaviorCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == OpaqueBehaviorCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == ComponentCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == DeviceCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == ExecutionEnvironmentCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == NodeCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == ClassCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == CollaborationCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == InterfaceEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == PrimitiveTypeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == EnumerationEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == DataTypeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == ActorEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == DeploymentSpecificationEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == ArtifactEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == InformationItemEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == SignalEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == UseCaseEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ for(Iterator<?> it = modelElement.getOwnedComments().iterator(); it.hasNext();) {
+ Comment childElement = (Comment)it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if(visualID == CommentEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ for(Iterator<?> it = modelElement.getOwnedRules().iterator(); it.hasNext();) {
+ Constraint childElement = (Constraint)it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if(visualID == DurationConstraintEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == TimeConstraintEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == IntervalConstraintEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == InteractionConstraintEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == ConstraintEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLNodeDescriptor> getClassStructure_7073SemanticChildren(View view) {
+ if(false == view.eContainer() instanceof View) {
+ return Collections.emptyList();
+ }
+ View containerView = (View)view.eContainer();
+ if(!containerView.isSetElement()) {
+ return Collections.emptyList();
+ }
+ Class modelElement = (Class)containerView.getElement();
+ LinkedList<UMLNodeDescriptor> result = new LinkedList<UMLNodeDescriptor>();
+ for(Iterator<?> it = modelElement.getOwnedAttributes().iterator(); it.hasNext();) {
+ Property childElement = (Property)it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if(visualID == PortEditPart.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == PropertyPartEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ for(Iterator<?> it = modelElement.getCollaborationUses().iterator(); it.hasNext();) {
+ CollaborationUse childElement = (CollaborationUse)it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if(visualID == CollaborationUseEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ for(Iterator<?> it = modelElement.getNestedClassifiers().iterator(); it.hasNext();) {
+ Classifier childElement = (Classifier)it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if(visualID == ActivityCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == InteractionCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == ProtocolStateMachineCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == StateMachineCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == FunctionBehaviorCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == OpaqueBehaviorCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == ComponentCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == DeviceCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == ExecutionEnvironmentCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == NodeCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == ClassCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == CollaborationCompositeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == InterfaceEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == PrimitiveTypeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == EnumerationEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == DataTypeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == ActorEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == DeploymentSpecificationEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == ArtifactEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == InformationItemEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == SignalEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == UseCaseEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ for(Iterator<?> it = modelElement.getOwnedComments().iterator(); it.hasNext();) {
+ Comment childElement = (Comment)it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if(visualID == CommentEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ for(Iterator<?> it = modelElement.getOwnedRules().iterator(); it.hasNext();) {
+ Constraint childElement = (Constraint)it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if(visualID == ConstraintEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == DurationConstraintEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == TimeConstraintEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == IntervalConstraintEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == InteractionConstraintEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLNodeDescriptor> getCollaborationStructure_7075SemanticChildren(View view) {
+ if(false == view.eContainer() instanceof View) {
+ return Collections.emptyList();
+ }
+ View containerView = (View)view.eContainer();
+ if(!containerView.isSetElement()) {
+ return Collections.emptyList();
+ }
+ Collaboration modelElement = (Collaboration)containerView.getElement();
+ LinkedList<UMLNodeDescriptor> result = new LinkedList<UMLNodeDescriptor>();
+ for(Iterator<?> it = modelElement.getOwnedAttributes().iterator(); it.hasNext();) {
+ Property childElement = (Property)it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if(visualID == PropertyPartEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ for(Iterator<?> it = modelElement.getCollaborationUses().iterator(); it.hasNext();) {
+ CollaborationUse childElement = (CollaborationUse)it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if(visualID == CollaborationUseEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ for(Iterator<?> it = modelElement.getOwnedComments().iterator(); it.hasNext();) {
+ Comment childElement = (Comment)it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if(visualID == CommentEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ for(Iterator<?> it = modelElement.getRoles().iterator(); it.hasNext();) {
+ ConnectableElement childElement = (ConnectableElement)it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if(visualID == CollaborationRoleEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ for(Iterator<?> it = modelElement.getOwnedRules().iterator(); it.hasNext();) {
+ Constraint childElement = (Constraint)it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if(visualID == DurationConstraintEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == TimeConstraintEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == IntervalConstraintEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == InteractionConstraintEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if(visualID == ConstraintEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ return result;
+ }
+
+ public static List getPropertyStructure_7077SemanticChildren(View view) {
+ ICustomDiagramUpdater customUpdater = new PropertyDiagramUpdater();
+ return customUpdater.getSemanticChildren(view);
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getContainedLinks(View view) {
+ switch(UMLVisualIDRegistry.getVisualID(view)) {
+ case CompositeStructureDiagramEditPart.VISUAL_ID:
+ return getPackage_1000ContainedLinks(view);
+ case ActivityCompositeEditPart.VISUAL_ID:
+ return getActivity_2060ContainedLinks(view);
+ case InteractionCompositeEditPart.VISUAL_ID:
+ return getInteraction_2061ContainedLinks(view);
+ case ProtocolStateMachineCompositeEditPart.VISUAL_ID:
+ return getProtocolStateMachine_2062ContainedLinks(view);
+ case StateMachineCompositeEditPart.VISUAL_ID:
+ return getStateMachine_2063ContainedLinks(view);
+ case FunctionBehaviorCompositeEditPart.VISUAL_ID:
+ return getFunctionBehavior_2064ContainedLinks(view);
+ case OpaqueBehaviorCompositeEditPart.VISUAL_ID:
+ return getOpaqueBehavior_2065ContainedLinks(view);
+ case ComponentCompositeEditPart.VISUAL_ID:
+ return getComponent_2069ContainedLinks(view);
+ case DeviceCompositeEditPart.VISUAL_ID:
+ return getDevice_2070ContainedLinks(view);
+ case ExecutionEnvironmentCompositeEditPart.VISUAL_ID:
+ return getExecutionEnvironment_2071ContainedLinks(view);
+ case NodeCompositeEditPart.VISUAL_ID:
+ return getNode_2072ContainedLinks(view);
+ case ClassCompositeEditPart.VISUAL_ID:
+ return getClass_2073ContainedLinks(view);
+ case CollaborationCompositeEditPart.VISUAL_ID:
+ return getCollaboration_2075ContainedLinks(view);
+ case InterfaceEditPart.VISUAL_ID:
+ return getInterface_2076ContainedLinks(view);
+ case PrimitiveTypeEditPart.VISUAL_ID:
+ return getPrimitiveType_2066ContainedLinks(view);
+ case EnumerationEditPart.VISUAL_ID:
+ return getEnumeration_2067ContainedLinks(view);
+ case DataTypeEditPart.VISUAL_ID:
+ return getDataType_2068ContainedLinks(view);
+ case ActorEditPart.VISUAL_ID:
+ return getActor_2077ContainedLinks(view);
+ case DeploymentSpecificationEditPart.VISUAL_ID:
+ return getDeploymentSpecification_2078ContainedLinks(view);
+ case ArtifactEditPart.VISUAL_ID:
+ return getArtifact_2079ContainedLinks(view);
+ case InformationItemEditPart.VISUAL_ID:
+ return getInformationItem_2080ContainedLinks(view);
+ case SignalEditPart.VISUAL_ID:
+ return getSignal_2081ContainedLinks(view);
+ case UseCaseEditPart.VISUAL_ID:
+ return getUseCase_2082ContainedLinks(view);
+ case SignalEventEditPart.VISUAL_ID:
+ return getSignalEvent_2083ContainedLinks(view);
+ case CallEventEditPart.VISUAL_ID:
+ return getCallEvent_2084ContainedLinks(view);
+ case AnyReceiveEventEditPart.VISUAL_ID:
+ return getAnyReceiveEvent_2085ContainedLinks(view);
+ case SendSignalEventEditPart.VISUAL_ID:
+ return getSendSignalEvent_2086ContainedLinks(view);
+ case SendOperationEventEditPart.VISUAL_ID:
+ return getSendOperationEvent_2087ContainedLinks(view);
+ case ChangeEventEditPart.VISUAL_ID:
+ return getChangeEvent_2088ContainedLinks(view);
+ case TimeEventEditPart.VISUAL_ID:
+ return getTimeEvent_2089ContainedLinks(view);
+ case CreationEventEditPart.VISUAL_ID:
+ return getCreationEvent_2090ContainedLinks(view);
+ case DestructionEventEditPart.VISUAL_ID:
+ return getDestructionEvent_2091ContainedLinks(view);
+ case ExecutionEventEditPart.VISUAL_ID:
+ return getExecutionEvent_2092ContainedLinks(view);
+ case DurationObservationEditPart.VISUAL_ID:
+ return getDurationObservation_2093ContainedLinks(view);
+ case TimeObservationEditPart.VISUAL_ID:
+ return getTimeObservation_2094ContainedLinks(view);
+ case LiteralBooleanEditPart.VISUAL_ID:
+ return getLiteralBoolean_2095ContainedLinks(view);
+ case LiteralIntegerEditPart.VISUAL_ID:
+ return getLiteralInteger_2096ContainedLinks(view);
+ case LiteralNullEditPart.VISUAL_ID:
+ return getLiteralNull_2097ContainedLinks(view);
+ case LiteralStringEditPart.VISUAL_ID:
+ return getLiteralString_2098ContainedLinks(view);
+ case LiteralUnlimitedNaturalEditPart.VISUAL_ID:
+ return getLiteralUnlimitedNatural_2099ContainedLinks(view);
+ case StringExpressionEditPart.VISUAL_ID:
+ return getStringExpression_2100ContainedLinks(view);
+ case OpaqueExpressionEditPart.VISUAL_ID:
+ return getOpaqueExpression_2101ContainedLinks(view);
+ case TimeExpressionEditPart.VISUAL_ID:
+ return getTimeExpression_2102ContainedLinks(view);
+ case ExpressionEditPart.VISUAL_ID:
+ return getExpression_2103ContainedLinks(view);
+ case DurationEditPart.VISUAL_ID:
+ return getDuration_2104ContainedLinks(view);
+ case TimeIntervalEditPart.VISUAL_ID:
+ return getTimeInterval_2105ContainedLinks(view);
+ case DurationIntervalEditPart.VISUAL_ID:
+ return getDurationInterval_2106ContainedLinks(view);
+ case IntervalEditPart.VISUAL_ID:
+ return getInterval_2107ContainedLinks(view);
+ case InstanceValueEditPart.VISUAL_ID:
+ return getInstanceValue_2108ContainedLinks(view);
+ case CommentEditPart.VISUAL_ID:
+ return getComment_2109ContainedLinks(view);
+ case DurationConstraintEditPart.VISUAL_ID:
+ return getDurationConstraint_2110ContainedLinks(view);
+ case TimeConstraintEditPart.VISUAL_ID:
+ return getTimeConstraint_2111ContainedLinks(view);
+ case IntervalConstraintEditPart.VISUAL_ID:
+ return getIntervalConstraint_2112ContainedLinks(view);
+ case InteractionConstraintEditPart.VISUAL_ID:
+ return getInteractionConstraint_2113ContainedLinks(view);
+ case ConstraintEditPart.VISUAL_ID:
+ return getConstraint_2114ContainedLinks(view);
+ case PortEditPart.VISUAL_ID:
+ return getPort_3069ContainedLinks(view);
+ case ParameterEditPart.VISUAL_ID:
+ return getParameter_3088ContainedLinks(view);
+ case PropertyPartEditPartCN.VISUAL_ID:
+ return getProperty_3070ContainedLinks(view);
+ case CollaborationRoleEditPartCN.VISUAL_ID:
+ return getConnectableElement_3115ContainedLinks(view);
+ case CollaborationUseEditPartCN.VISUAL_ID:
+ return getCollaborationUse_3071ContainedLinks(view);
+ case ActivityCompositeEditPartCN.VISUAL_ID:
+ return getActivity_3072ContainedLinks(view);
+ case InteractionCompositeEditPartCN.VISUAL_ID:
+ return getInteraction_3073ContainedLinks(view);
+ case ProtocolStateMachineCompositeEditPartCN.VISUAL_ID:
+ return getProtocolStateMachine_3074ContainedLinks(view);
+ case StateMachineCompositeEditPartCN.VISUAL_ID:
+ return getStateMachine_3075ContainedLinks(view);
+ case FunctionBehaviorCompositeEditPartCN.VISUAL_ID:
+ return getFunctionBehavior_3076ContainedLinks(view);
+ case OpaqueBehaviorCompositeEditPartCN.VISUAL_ID:
+ return getOpaqueBehavior_3077ContainedLinks(view);
+ case ComponentCompositeEditPartCN.VISUAL_ID:
+ return getComponent_3081ContainedLinks(view);
+ case DeviceCompositeEditPartCN.VISUAL_ID:
+ return getDevice_3082ContainedLinks(view);
+ case ExecutionEnvironmentCompositeEditPartCN.VISUAL_ID:
+ return getExecutionEnvironment_3083ContainedLinks(view);
+ case NodeCompositeEditPartCN.VISUAL_ID:
+ return getNode_3084ContainedLinks(view);
+ case ClassCompositeEditPartCN.VISUAL_ID:
+ return getClass_3085ContainedLinks(view);
+ case CollaborationCompositeEditPartCN.VISUAL_ID:
+ return getCollaboration_3086ContainedLinks(view);
+ case InterfaceEditPartCN.VISUAL_ID:
+ return getInterface_3087ContainedLinks(view);
+ case PrimitiveTypeEditPartCN.VISUAL_ID:
+ return getPrimitiveType_3078ContainedLinks(view);
+ case EnumerationEditPartCN.VISUAL_ID:
+ return getEnumeration_3079ContainedLinks(view);
+ case DataTypeEditPartCN.VISUAL_ID:
+ return getDataType_3080ContainedLinks(view);
+ case ActorEditPartCN.VISUAL_ID:
+ return getActor_3091ContainedLinks(view);
+ case DeploymentSpecificationEditPartCN.VISUAL_ID:
+ return getDeploymentSpecification_3092ContainedLinks(view);
+ case ArtifactEditPartCN.VISUAL_ID:
+ return getArtifact_3093ContainedLinks(view);
+ case InformationItemEditPartCN.VISUAL_ID:
+ return getInformationItem_3094ContainedLinks(view);
+ case SignalEditPartCN.VISUAL_ID:
+ return getSignal_3095ContainedLinks(view);
+ case UseCaseEditPartCN.VISUAL_ID:
+ return getUseCase_3096ContainedLinks(view);
+ case CommentEditPartCN.VISUAL_ID:
+ return getComment_3097ContainedLinks(view);
+ case DurationConstraintEditPartCN.VISUAL_ID:
+ return getDurationConstraint_3116ContainedLinks(view);
+ case TimeConstraintEditPartCN.VISUAL_ID:
+ return getTimeConstraint_3117ContainedLinks(view);
+ case IntervalConstraintEditPartCN.VISUAL_ID:
+ return getIntervalConstraint_3118ContainedLinks(view);
+ case InteractionConstraintEditPartCN.VISUAL_ID:
+ return getInteractionConstraint_3119ContainedLinks(view);
+ case ConstraintEditPartCN.VISUAL_ID:
+ return getConstraint_3120ContainedLinks(view);
+ case PropertyEditPartCLN.VISUAL_ID:
+ return getProperty_3101ContainedLinks(view);
+ case OperationEditPartCLN.VISUAL_ID:
+ return getOperation_3102ContainedLinks(view);
+ case ReceptionEditPartCLN.VISUAL_ID:
+ return getReception_3100ContainedLinks(view);
+ case EnumerationLiteralEditPartCLN.VISUAL_ID:
+ return getEnumerationLiteral_3066ContainedLinks(view);
+ case ActivityEditPartCLN.VISUAL_ID:
+ return getActivity_3103ContainedLinks(view);
+ case InteractionEditPartCLN.VISUAL_ID:
+ return getInteraction_3104ContainedLinks(view);
+ case ProtocolStateMachineEditPartCLN.VISUAL_ID:
+ return getProtocolStateMachine_3105ContainedLinks(view);
+ case StateMachineEditPartCLN.VISUAL_ID:
+ return getStateMachine_3106ContainedLinks(view);
+ case FunctionBehaviorEditPartCLN.VISUAL_ID:
+ return getFunctionBehavior_3107ContainedLinks(view);
+ case OpaqueBehaviorEditPartCLN.VISUAL_ID:
+ return getOpaqueBehavior_3108ContainedLinks(view);
+ case CollaborationEditPartCLN.VISUAL_ID:
+ return getCollaboration_3109ContainedLinks(view);
+ case InterfaceEditPartCLN.VISUAL_ID:
+ return getInterface_3110ContainedLinks(view);
+ case EnumerationEditPartCLN.VISUAL_ID:
+ return getEnumeration_3111ContainedLinks(view);
+ case PrimitiveTypeEditPartCLN.VISUAL_ID:
+ return getPrimitiveType_3112ContainedLinks(view);
+ case DataTypeEditPartCLN.VISUAL_ID:
+ return getDataType_3113ContainedLinks(view);
+ case ClassEditPartCLN.VISUAL_ID:
+ return getClass_3114ContainedLinks(view);
+ case ComponentRealizationEditPart.VISUAL_ID:
+ return getComponentRealization_4004ContainedLinks(view);
+ case InterfaceRealizationEditPart.VISUAL_ID:
+ return getInterfaceRealization_4005ContainedLinks(view);
+ case SubstitutionEditPart.VISUAL_ID:
+ return getSubstitution_4011ContainedLinks(view);
+ case RealizationEditPart.VISUAL_ID:
+ return getRealization_4006ContainedLinks(view);
+ case ManifestationEditPart.VISUAL_ID:
+ return getManifestation_4012ContainedLinks(view);
+ case AbstractionEditPart.VISUAL_ID:
+ return getAbstraction_4007ContainedLinks(view);
+ case UsageEditPart.VISUAL_ID:
+ return getUsage_4008ContainedLinks(view);
+ case DeploymentEditPart.VISUAL_ID:
+ return getDeployment_4009ContainedLinks(view);
+ case RoleBindingEditPart.VISUAL_ID:
+ return getDependency_4017ContainedLinks(view);
+ case DependencyEditPart.VISUAL_ID:
+ return getDependency_4010ContainedLinks(view);
+ case ConnectorEditPart.VISUAL_ID:
+ return getConnector_4013ContainedLinks(view);
+ case GeneralizationEditPart.VISUAL_ID:
+ return getGeneralization_4015ContainedLinks(view);
+ case InformationFlowEditPart.VISUAL_ID:
+ return getInformationFlow_4021ContainedLinks(view);
+ }
+ return Collections.emptyList();
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getIncomingLinks(View view) {
+ switch(UMLVisualIDRegistry.getVisualID(view)) {
+ case ActivityCompositeEditPart.VISUAL_ID:
+ return getActivity_2060IncomingLinks(view);
+ case InteractionCompositeEditPart.VISUAL_ID:
+ return getInteraction_2061IncomingLinks(view);
+ case ProtocolStateMachineCompositeEditPart.VISUAL_ID:
+ return getProtocolStateMachine_2062IncomingLinks(view);
+ case StateMachineCompositeEditPart.VISUAL_ID:
+ return getStateMachine_2063IncomingLinks(view);
+ case FunctionBehaviorCompositeEditPart.VISUAL_ID:
+ return getFunctionBehavior_2064IncomingLinks(view);
+ case OpaqueBehaviorCompositeEditPart.VISUAL_ID:
+ return getOpaqueBehavior_2065IncomingLinks(view);
+ case ComponentCompositeEditPart.VISUAL_ID:
+ return getComponent_2069IncomingLinks(view);
+ case DeviceCompositeEditPart.VISUAL_ID:
+ return getDevice_2070IncomingLinks(view);
+ case ExecutionEnvironmentCompositeEditPart.VISUAL_ID:
+ return getExecutionEnvironment_2071IncomingLinks(view);
+ case NodeCompositeEditPart.VISUAL_ID:
+ return getNode_2072IncomingLinks(view);
+ case ClassCompositeEditPart.VISUAL_ID:
+ return getClass_2073IncomingLinks(view);
+ case CollaborationCompositeEditPart.VISUAL_ID:
+ return getCollaboration_2075IncomingLinks(view);
+ case InterfaceEditPart.VISUAL_ID:
+ return getInterface_2076IncomingLinks(view);
+ case PrimitiveTypeEditPart.VISUAL_ID:
+ return getPrimitiveType_2066IncomingLinks(view);
+ case EnumerationEditPart.VISUAL_ID:
+ return getEnumeration_2067IncomingLinks(view);
+ case DataTypeEditPart.VISUAL_ID:
+ return getDataType_2068IncomingLinks(view);
+ case ActorEditPart.VISUAL_ID:
+ return getActor_2077IncomingLinks(view);
+ case DeploymentSpecificationEditPart.VISUAL_ID:
+ return getDeploymentSpecification_2078IncomingLinks(view);
+ case ArtifactEditPart.VISUAL_ID:
+ return getArtifact_2079IncomingLinks(view);
+ case InformationItemEditPart.VISUAL_ID:
+ return getInformationItem_2080IncomingLinks(view);
+ case SignalEditPart.VISUAL_ID:
+ return getSignal_2081IncomingLinks(view);
+ case UseCaseEditPart.VISUAL_ID:
+ return getUseCase_2082IncomingLinks(view);
+ case SignalEventEditPart.VISUAL_ID:
+ return getSignalEvent_2083IncomingLinks(view);
+ case CallEventEditPart.VISUAL_ID:
+ return getCallEvent_2084IncomingLinks(view);
+ case AnyReceiveEventEditPart.VISUAL_ID:
+ return getAnyReceiveEvent_2085IncomingLinks(view);
+ case SendSignalEventEditPart.VISUAL_ID:
+ return getSendSignalEvent_2086IncomingLinks(view);
+ case SendOperationEventEditPart.VISUAL_ID:
+ return getSendOperationEvent_2087IncomingLinks(view);
+ case ChangeEventEditPart.VISUAL_ID:
+ return getChangeEvent_2088IncomingLinks(view);
+ case TimeEventEditPart.VISUAL_ID:
+ return getTimeEvent_2089IncomingLinks(view);
+ case CreationEventEditPart.VISUAL_ID:
+ return getCreationEvent_2090IncomingLinks(view);
+ case DestructionEventEditPart.VISUAL_ID:
+ return getDestructionEvent_2091IncomingLinks(view);
+ case ExecutionEventEditPart.VISUAL_ID:
+ return getExecutionEvent_2092IncomingLinks(view);
+ case DurationObservationEditPart.VISUAL_ID:
+ return getDurationObservation_2093IncomingLinks(view);
+ case TimeObservationEditPart.VISUAL_ID:
+ return getTimeObservation_2094IncomingLinks(view);
+ case LiteralBooleanEditPart.VISUAL_ID:
+ return getLiteralBoolean_2095IncomingLinks(view);
+ case LiteralIntegerEditPart.VISUAL_ID:
+ return getLiteralInteger_2096IncomingLinks(view);
+ case LiteralNullEditPart.VISUAL_ID:
+ return getLiteralNull_2097IncomingLinks(view);
+ case LiteralStringEditPart.VISUAL_ID:
+ return getLiteralString_2098IncomingLinks(view);
+ case LiteralUnlimitedNaturalEditPart.VISUAL_ID:
+ return getLiteralUnlimitedNatural_2099IncomingLinks(view);
+ case StringExpressionEditPart.VISUAL_ID:
+ return getStringExpression_2100IncomingLinks(view);
+ case OpaqueExpressionEditPart.VISUAL_ID:
+ return getOpaqueExpression_2101IncomingLinks(view);
+ case TimeExpressionEditPart.VISUAL_ID:
+ return getTimeExpression_2102IncomingLinks(view);
+ case ExpressionEditPart.VISUAL_ID:
+ return getExpression_2103IncomingLinks(view);
+ case DurationEditPart.VISUAL_ID:
+ return getDuration_2104IncomingLinks(view);
+ case TimeIntervalEditPart.VISUAL_ID:
+ return getTimeInterval_2105IncomingLinks(view);
+ case DurationIntervalEditPart.VISUAL_ID:
+ return getDurationInterval_2106IncomingLinks(view);
+ case IntervalEditPart.VISUAL_ID:
+ return getInterval_2107IncomingLinks(view);
+ case InstanceValueEditPart.VISUAL_ID:
+ return getInstanceValue_2108IncomingLinks(view);
+ case CommentEditPart.VISUAL_ID:
+ return getComment_2109IncomingLinks(view);
+ case DurationConstraintEditPart.VISUAL_ID:
+ return getDurationConstraint_2110IncomingLinks(view);
+ case TimeConstraintEditPart.VISUAL_ID:
+ return getTimeConstraint_2111IncomingLinks(view);
+ case IntervalConstraintEditPart.VISUAL_ID:
+ return getIntervalConstraint_2112IncomingLinks(view);
+ case InteractionConstraintEditPart.VISUAL_ID:
+ return getInteractionConstraint_2113IncomingLinks(view);
+ case ConstraintEditPart.VISUAL_ID:
+ return getConstraint_2114IncomingLinks(view);
+ case PortEditPart.VISUAL_ID:
+ return getPort_3069IncomingLinks(view);
+ case ParameterEditPart.VISUAL_ID:
+ return getParameter_3088IncomingLinks(view);
+ case PropertyPartEditPartCN.VISUAL_ID:
+ return getProperty_3070IncomingLinks(view);
+ case CollaborationRoleEditPartCN.VISUAL_ID:
+ return getConnectableElement_3115IncomingLinks(view);
+ case CollaborationUseEditPartCN.VISUAL_ID:
+ return getCollaborationUse_3071IncomingLinks(view);
+ case ActivityCompositeEditPartCN.VISUAL_ID:
+ return getActivity_3072IncomingLinks(view);
+ case InteractionCompositeEditPartCN.VISUAL_ID:
+ return getInteraction_3073IncomingLinks(view);
+ case ProtocolStateMachineCompositeEditPartCN.VISUAL_ID:
+ return getProtocolStateMachine_3074IncomingLinks(view);
+ case StateMachineCompositeEditPartCN.VISUAL_ID:
+ return getStateMachine_3075IncomingLinks(view);
+ case FunctionBehaviorCompositeEditPartCN.VISUAL_ID:
+ return getFunctionBehavior_3076IncomingLinks(view);
+ case OpaqueBehaviorCompositeEditPartCN.VISUAL_ID:
+ return getOpaqueBehavior_3077IncomingLinks(view);
+ case ComponentCompositeEditPartCN.VISUAL_ID:
+ return getComponent_3081IncomingLinks(view);
+ case DeviceCompositeEditPartCN.VISUAL_ID:
+ return getDevice_3082IncomingLinks(view);
+ case ExecutionEnvironmentCompositeEditPartCN.VISUAL_ID:
+ return getExecutionEnvironment_3083IncomingLinks(view);
+ case NodeCompositeEditPartCN.VISUAL_ID:
+ return getNode_3084IncomingLinks(view);
+ case ClassCompositeEditPartCN.VISUAL_ID:
+ return getClass_3085IncomingLinks(view);
+ case CollaborationCompositeEditPartCN.VISUAL_ID:
+ return getCollaboration_3086IncomingLinks(view);
+ case InterfaceEditPartCN.VISUAL_ID:
+ return getInterface_3087IncomingLinks(view);
+ case PrimitiveTypeEditPartCN.VISUAL_ID:
+ return getPrimitiveType_3078IncomingLinks(view);
+ case EnumerationEditPartCN.VISUAL_ID:
+ return getEnumeration_3079IncomingLinks(view);
+ case DataTypeEditPartCN.VISUAL_ID:
+ return getDataType_3080IncomingLinks(view);
+ case ActorEditPartCN.VISUAL_ID:
+ return getActor_3091IncomingLinks(view);
+ case DeploymentSpecificationEditPartCN.VISUAL_ID:
+ return getDeploymentSpecification_3092IncomingLinks(view);
+ case ArtifactEditPartCN.VISUAL_ID:
+ return getArtifact_3093IncomingLinks(view);
+ case InformationItemEditPartCN.VISUAL_ID:
+ return getInformationItem_3094IncomingLinks(view);
+ case SignalEditPartCN.VISUAL_ID:
+ return getSignal_3095IncomingLinks(view);
+ case UseCaseEditPartCN.VISUAL_ID:
+ return getUseCase_3096IncomingLinks(view);
+ case CommentEditPartCN.VISUAL_ID:
+ return getComment_3097IncomingLinks(view);
+ case DurationConstraintEditPartCN.VISUAL_ID:
+ return getDurationConstraint_3116IncomingLinks(view);
+ case TimeConstraintEditPartCN.VISUAL_ID:
+ return getTimeConstraint_3117IncomingLinks(view);
+ case IntervalConstraintEditPartCN.VISUAL_ID:
+ return getIntervalConstraint_3118IncomingLinks(view);
+ case InteractionConstraintEditPartCN.VISUAL_ID:
+ return getInteractionConstraint_3119IncomingLinks(view);
+ case ConstraintEditPartCN.VISUAL_ID:
+ return getConstraint_3120IncomingLinks(view);
+ case PropertyEditPartCLN.VISUAL_ID:
+ return getProperty_3101IncomingLinks(view);
+ case OperationEditPartCLN.VISUAL_ID:
+ return getOperation_3102IncomingLinks(view);
+ case ReceptionEditPartCLN.VISUAL_ID:
+ return getReception_3100IncomingLinks(view);
+ case EnumerationLiteralEditPartCLN.VISUAL_ID:
+ return getEnumerationLiteral_3066IncomingLinks(view);
+ case ActivityEditPartCLN.VISUAL_ID:
+ return getActivity_3103IncomingLinks(view);
+ case InteractionEditPartCLN.VISUAL_ID:
+ return getInteraction_3104IncomingLinks(view);
+ case ProtocolStateMachineEditPartCLN.VISUAL_ID:
+ return getProtocolStateMachine_3105IncomingLinks(view);
+ case StateMachineEditPartCLN.VISUAL_ID:
+ return getStateMachine_3106IncomingLinks(view);
+ case FunctionBehaviorEditPartCLN.VISUAL_ID:
+ return getFunctionBehavior_3107IncomingLinks(view);
+ case OpaqueBehaviorEditPartCLN.VISUAL_ID:
+ return getOpaqueBehavior_3108IncomingLinks(view);
+ case CollaborationEditPartCLN.VISUAL_ID:
+ return getCollaboration_3109IncomingLinks(view);
+ case InterfaceEditPartCLN.VISUAL_ID:
+ return getInterface_3110IncomingLinks(view);
+ case EnumerationEditPartCLN.VISUAL_ID:
+ return getEnumeration_3111IncomingLinks(view);
+ case PrimitiveTypeEditPartCLN.VISUAL_ID:
+ return getPrimitiveType_3112IncomingLinks(view);
+ case DataTypeEditPartCLN.VISUAL_ID:
+ return getDataType_3113IncomingLinks(view);
+ case ClassEditPartCLN.VISUAL_ID:
+ return getClass_3114IncomingLinks(view);
+ case ComponentRealizationEditPart.VISUAL_ID:
+ return getComponentRealization_4004IncomingLinks(view);
+ case InterfaceRealizationEditPart.VISUAL_ID:
+ return getInterfaceRealization_4005IncomingLinks(view);
+ case SubstitutionEditPart.VISUAL_ID:
+ return getSubstitution_4011IncomingLinks(view);
+ case RealizationEditPart.VISUAL_ID:
+ return getRealization_4006IncomingLinks(view);
+ case ManifestationEditPart.VISUAL_ID:
+ return getManifestation_4012IncomingLinks(view);
+ case AbstractionEditPart.VISUAL_ID:
+ return getAbstraction_4007IncomingLinks(view);
+ case UsageEditPart.VISUAL_ID:
+ return getUsage_4008IncomingLinks(view);
+ case DeploymentEditPart.VISUAL_ID:
+ return getDeployment_4009IncomingLinks(view);
+ case RoleBindingEditPart.VISUAL_ID:
+ return getDependency_4017IncomingLinks(view);
+ case DependencyEditPart.VISUAL_ID:
+ return getDependency_4010IncomingLinks(view);
+ case ConnectorEditPart.VISUAL_ID:
+ return getConnector_4013IncomingLinks(view);
+ case GeneralizationEditPart.VISUAL_ID:
+ return getGeneralization_4015IncomingLinks(view);
+ case InformationFlowEditPart.VISUAL_ID:
+ return getInformationFlow_4021IncomingLinks(view);
+ }
+ return Collections.emptyList();
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getOutgoingLinks(View view) {
+ switch(UMLVisualIDRegistry.getVisualID(view)) {
+ case ActivityCompositeEditPart.VISUAL_ID:
+ return getActivity_2060OutgoingLinks(view);
+ case InteractionCompositeEditPart.VISUAL_ID:
+ return getInteraction_2061OutgoingLinks(view);
+ case ProtocolStateMachineCompositeEditPart.VISUAL_ID:
+ return getProtocolStateMachine_2062OutgoingLinks(view);
+ case StateMachineCompositeEditPart.VISUAL_ID:
+ return getStateMachine_2063OutgoingLinks(view);
+ case FunctionBehaviorCompositeEditPart.VISUAL_ID:
+ return getFunctionBehavior_2064OutgoingLinks(view);
+ case OpaqueBehaviorCompositeEditPart.VISUAL_ID:
+ return getOpaqueBehavior_2065OutgoingLinks(view);
+ case ComponentCompositeEditPart.VISUAL_ID:
+ return getComponent_2069OutgoingLinks(view);
+ case DeviceCompositeEditPart.VISUAL_ID:
+ return getDevice_2070OutgoingLinks(view);
+ case ExecutionEnvironmentCompositeEditPart.VISUAL_ID:
+ return getExecutionEnvironment_2071OutgoingLinks(view);
+ case NodeCompositeEditPart.VISUAL_ID:
+ return getNode_2072OutgoingLinks(view);
+ case ClassCompositeEditPart.VISUAL_ID:
+ return getClass_2073OutgoingLinks(view);
+ case CollaborationCompositeEditPart.VISUAL_ID:
+ return getCollaboration_2075OutgoingLinks(view);
+ case InterfaceEditPart.VISUAL_ID:
+ return getInterface_2076OutgoingLinks(view);
+ case PrimitiveTypeEditPart.VISUAL_ID:
+ return getPrimitiveType_2066OutgoingLinks(view);
+ case EnumerationEditPart.VISUAL_ID:
+ return getEnumeration_2067OutgoingLinks(view);
+ case DataTypeEditPart.VISUAL_ID:
+ return getDataType_2068OutgoingLinks(view);
+ case ActorEditPart.VISUAL_ID:
+ return getActor_2077OutgoingLinks(view);
+ case DeploymentSpecificationEditPart.VISUAL_ID:
+ return getDeploymentSpecification_2078OutgoingLinks(view);
+ case ArtifactEditPart.VISUAL_ID:
+ return getArtifact_2079OutgoingLinks(view);
+ case InformationItemEditPart.VISUAL_ID:
+ return getInformationItem_2080OutgoingLinks(view);
+ case SignalEditPart.VISUAL_ID:
+ return getSignal_2081OutgoingLinks(view);
+ case UseCaseEditPart.VISUAL_ID:
+ return getUseCase_2082OutgoingLinks(view);
+ case SignalEventEditPart.VISUAL_ID:
+ return getSignalEvent_2083OutgoingLinks(view);
+ case CallEventEditPart.VISUAL_ID:
+ return getCallEvent_2084OutgoingLinks(view);
+ case AnyReceiveEventEditPart.VISUAL_ID:
+ return getAnyReceiveEvent_2085OutgoingLinks(view);
+ case SendSignalEventEditPart.VISUAL_ID:
+ return getSendSignalEvent_2086OutgoingLinks(view);
+ case SendOperationEventEditPart.VISUAL_ID:
+ return getSendOperationEvent_2087OutgoingLinks(view);
+ case ChangeEventEditPart.VISUAL_ID:
+ return getChangeEvent_2088OutgoingLinks(view);
+ case TimeEventEditPart.VISUAL_ID:
+ return getTimeEvent_2089OutgoingLinks(view);
+ case CreationEventEditPart.VISUAL_ID:
+ return getCreationEvent_2090OutgoingLinks(view);
+ case DestructionEventEditPart.VISUAL_ID:
+ return getDestructionEvent_2091OutgoingLinks(view);
+ case ExecutionEventEditPart.VISUAL_ID:
+ return getExecutionEvent_2092OutgoingLinks(view);
+ case DurationObservationEditPart.VISUAL_ID:
+ return getDurationObservation_2093OutgoingLinks(view);
+ case TimeObservationEditPart.VISUAL_ID:
+ return getTimeObservation_2094OutgoingLinks(view);
+ case LiteralBooleanEditPart.VISUAL_ID:
+ return getLiteralBoolean_2095OutgoingLinks(view);
+ case LiteralIntegerEditPart.VISUAL_ID:
+ return getLiteralInteger_2096OutgoingLinks(view);
+ case LiteralNullEditPart.VISUAL_ID:
+ return getLiteralNull_2097OutgoingLinks(view);
+ case LiteralStringEditPart.VISUAL_ID:
+ return getLiteralString_2098OutgoingLinks(view);
+ case LiteralUnlimitedNaturalEditPart.VISUAL_ID:
+ return getLiteralUnlimitedNatural_2099OutgoingLinks(view);
+ case StringExpressionEditPart.VISUAL_ID:
+ return getStringExpression_2100OutgoingLinks(view);
+ case OpaqueExpressionEditPart.VISUAL_ID:
+ return getOpaqueExpression_2101OutgoingLinks(view);
+ case TimeExpressionEditPart.VISUAL_ID:
+ return getTimeExpression_2102OutgoingLinks(view);
+ case ExpressionEditPart.VISUAL_ID:
+ return getExpression_2103OutgoingLinks(view);
+ case DurationEditPart.VISUAL_ID:
+ return getDuration_2104OutgoingLinks(view);
+ case TimeIntervalEditPart.VISUAL_ID:
+ return getTimeInterval_2105OutgoingLinks(view);
+ case DurationIntervalEditPart.VISUAL_ID:
+ return getDurationInterval_2106OutgoingLinks(view);
+ case IntervalEditPart.VISUAL_ID:
+ return getInterval_2107OutgoingLinks(view);
+ case InstanceValueEditPart.VISUAL_ID:
+ return getInstanceValue_2108OutgoingLinks(view);
+ case CommentEditPart.VISUAL_ID:
+ return getComment_2109OutgoingLinks(view);
+ case DurationConstraintEditPart.VISUAL_ID:
+ return getDurationConstraint_2110OutgoingLinks(view);
+ case TimeConstraintEditPart.VISUAL_ID:
+ return getTimeConstraint_2111OutgoingLinks(view);
+ case IntervalConstraintEditPart.VISUAL_ID:
+ return getIntervalConstraint_2112OutgoingLinks(view);
+ case InteractionConstraintEditPart.VISUAL_ID:
+ return getInteractionConstraint_2113OutgoingLinks(view);
+ case ConstraintEditPart.VISUAL_ID:
+ return getConstraint_2114OutgoingLinks(view);
+ case PortEditPart.VISUAL_ID:
+ return getPort_3069OutgoingLinks(view);
+ case ParameterEditPart.VISUAL_ID:
+ return getParameter_3088OutgoingLinks(view);
+ case PropertyPartEditPartCN.VISUAL_ID:
+ return getProperty_3070OutgoingLinks(view);
+ case CollaborationRoleEditPartCN.VISUAL_ID:
+ return getConnectableElement_3115OutgoingLinks(view);
+ case CollaborationUseEditPartCN.VISUAL_ID:
+ return getCollaborationUse_3071OutgoingLinks(view);
+ case ActivityCompositeEditPartCN.VISUAL_ID:
+ return getActivity_3072OutgoingLinks(view);
+ case InteractionCompositeEditPartCN.VISUAL_ID:
+ return getInteraction_3073OutgoingLinks(view);
+ case ProtocolStateMachineCompositeEditPartCN.VISUAL_ID:
+ return getProtocolStateMachine_3074OutgoingLinks(view);
+ case StateMachineCompositeEditPartCN.VISUAL_ID:
+ return getStateMachine_3075OutgoingLinks(view);
+ case FunctionBehaviorCompositeEditPartCN.VISUAL_ID:
+ return getFunctionBehavior_3076OutgoingLinks(view);
+ case OpaqueBehaviorCompositeEditPartCN.VISUAL_ID:
+ return getOpaqueBehavior_3077OutgoingLinks(view);
+ case ComponentCompositeEditPartCN.VISUAL_ID:
+ return getComponent_3081OutgoingLinks(view);
+ case DeviceCompositeEditPartCN.VISUAL_ID:
+ return getDevice_3082OutgoingLinks(view);
+ case ExecutionEnvironmentCompositeEditPartCN.VISUAL_ID:
+ return getExecutionEnvironment_3083OutgoingLinks(view);
+ case NodeCompositeEditPartCN.VISUAL_ID:
+ return getNode_3084OutgoingLinks(view);
+ case ClassCompositeEditPartCN.VISUAL_ID:
+ return getClass_3085OutgoingLinks(view);
+ case CollaborationCompositeEditPartCN.VISUAL_ID:
+ return getCollaboration_3086OutgoingLinks(view);
+ case InterfaceEditPartCN.VISUAL_ID:
+ return getInterface_3087OutgoingLinks(view);
+ case PrimitiveTypeEditPartCN.VISUAL_ID:
+ return getPrimitiveType_3078OutgoingLinks(view);
+ case EnumerationEditPartCN.VISUAL_ID:
+ return getEnumeration_3079OutgoingLinks(view);
+ case DataTypeEditPartCN.VISUAL_ID:
+ return getDataType_3080OutgoingLinks(view);
+ case ActorEditPartCN.VISUAL_ID:
+ return getActor_3091OutgoingLinks(view);
+ case DeploymentSpecificationEditPartCN.VISUAL_ID:
+ return getDeploymentSpecification_3092OutgoingLinks(view);
+ case ArtifactEditPartCN.VISUAL_ID:
+ return getArtifact_3093OutgoingLinks(view);
+ case InformationItemEditPartCN.VISUAL_ID:
+ return getInformationItem_3094OutgoingLinks(view);
+ case SignalEditPartCN.VISUAL_ID:
+ return getSignal_3095OutgoingLinks(view);
+ case UseCaseEditPartCN.VISUAL_ID:
+ return getUseCase_3096OutgoingLinks(view);
+ case CommentEditPartCN.VISUAL_ID:
+ return getComment_3097OutgoingLinks(view);
+ case DurationConstraintEditPartCN.VISUAL_ID:
+ return getDurationConstraint_3116OutgoingLinks(view);
+ case TimeConstraintEditPartCN.VISUAL_ID:
+ return getTimeConstraint_3117OutgoingLinks(view);
+ case IntervalConstraintEditPartCN.VISUAL_ID:
+ return getIntervalConstraint_3118OutgoingLinks(view);
+ case InteractionConstraintEditPartCN.VISUAL_ID:
+ return getInteractionConstraint_3119OutgoingLinks(view);
+ case ConstraintEditPartCN.VISUAL_ID:
+ return getConstraint_3120OutgoingLinks(view);
+ case PropertyEditPartCLN.VISUAL_ID:
+ return getProperty_3101OutgoingLinks(view);
+ case OperationEditPartCLN.VISUAL_ID:
+ return getOperation_3102OutgoingLinks(view);
+ case ReceptionEditPartCLN.VISUAL_ID:
+ return getReception_3100OutgoingLinks(view);
+ case EnumerationLiteralEditPartCLN.VISUAL_ID:
+ return getEnumerationLiteral_3066OutgoingLinks(view);
+ case ActivityEditPartCLN.VISUAL_ID:
+ return getActivity_3103OutgoingLinks(view);
+ case InteractionEditPartCLN.VISUAL_ID:
+ return getInteraction_3104OutgoingLinks(view);
+ case ProtocolStateMachineEditPartCLN.VISUAL_ID:
+ return getProtocolStateMachine_3105OutgoingLinks(view);
+ case StateMachineEditPartCLN.VISUAL_ID:
+ return getStateMachine_3106OutgoingLinks(view);
+ case FunctionBehaviorEditPartCLN.VISUAL_ID:
+ return getFunctionBehavior_3107OutgoingLinks(view);
+ case OpaqueBehaviorEditPartCLN.VISUAL_ID:
+ return getOpaqueBehavior_3108OutgoingLinks(view);
+ case CollaborationEditPartCLN.VISUAL_ID:
+ return getCollaboration_3109OutgoingLinks(view);
+ case InterfaceEditPartCLN.VISUAL_ID:
+ return getInterface_3110OutgoingLinks(view);
+ case EnumerationEditPartCLN.VISUAL_ID:
+ return getEnumeration_3111OutgoingLinks(view);
+ case PrimitiveTypeEditPartCLN.VISUAL_ID:
+ return getPrimitiveType_3112OutgoingLinks(view);
+ case DataTypeEditPartCLN.VISUAL_ID:
+ return getDataType_3113OutgoingLinks(view);
+ case ClassEditPartCLN.VISUAL_ID:
+ return getClass_3114OutgoingLinks(view);
+ case ComponentRealizationEditPart.VISUAL_ID:
+ return getComponentRealization_4004OutgoingLinks(view);
+ case InterfaceRealizationEditPart.VISUAL_ID:
+ return getInterfaceRealization_4005OutgoingLinks(view);
+ case SubstitutionEditPart.VISUAL_ID:
+ return getSubstitution_4011OutgoingLinks(view);
+ case RealizationEditPart.VISUAL_ID:
+ return getRealization_4006OutgoingLinks(view);
+ case ManifestationEditPart.VISUAL_ID:
+ return getManifestation_4012OutgoingLinks(view);
+ case AbstractionEditPart.VISUAL_ID:
+ return getAbstraction_4007OutgoingLinks(view);
+ case UsageEditPart.VISUAL_ID:
+ return getUsage_4008OutgoingLinks(view);
+ case DeploymentEditPart.VISUAL_ID:
+ return getDeployment_4009OutgoingLinks(view);
+ case RoleBindingEditPart.VISUAL_ID:
+ return getDependency_4017OutgoingLinks(view);
+ case DependencyEditPart.VISUAL_ID:
+ return getDependency_4010OutgoingLinks(view);
+ case ConnectorEditPart.VISUAL_ID:
+ return getConnector_4013OutgoingLinks(view);
+ case GeneralizationEditPart.VISUAL_ID:
+ return getGeneralization_4015OutgoingLinks(view);
+ case InformationFlowEditPart.VISUAL_ID:
+ return getInformationFlow_4021OutgoingLinks(view);
+ }
+ return Collections.emptyList();
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getPackage_1000ContainedLinks(View view) {
+ Package modelElement = (Package)view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getContainedTypeModelFacetLinks_ComponentRealization_4004(modelElement));
+ result.addAll(getContainedTypeModelFacetLinks_InterfaceRealization_4005(modelElement));
+ result.addAll(getContainedTypeModelFacetLinks_Substitution_4011(modelElement));
+ result.addAll(getContainedTypeModelFacetLinks_Realization_4006(modelElement));
+ result.addAll(getContainedTypeModelFacetLinks_Manifestation_4012(modelElement));
+ result.addAll(getContainedTypeModelFacetLinks_Abstraction_4007(modelElement));
+ result.addAll(getContainedTypeModelFacetLinks_Usage_4008(modelElement));
+ result.addAll(getContainedTypeModelFacetLinks_Deployment_4009(modelElement));
+ result.addAll(getContainedTypeModelFacetLinks_Dependency_4017(modelElement));
+ result.addAll(getContainedTypeModelFacetLinks_Dependency_4010(modelElement));
+ result.addAll(getContainedTypeModelFacetLinks_InformationFlow_4021(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getActivity_2060ContainedLinks(View view) {
+ Activity modelElement = (Activity)view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getContainedTypeModelFacetLinks_Connector_4013(modelElement));
+ result.addAll(getContainedTypeModelFacetLinks_Generalization_4015(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getInteraction_2061ContainedLinks(View view) {
+ Interaction modelElement = (Interaction)view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getContainedTypeModelFacetLinks_Connector_4013(modelElement));
+ result.addAll(getContainedTypeModelFacetLinks_Generalization_4015(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getProtocolStateMachine_2062ContainedLinks(View view) {
+ ProtocolStateMachine modelElement = (ProtocolStateMachine)view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getContainedTypeModelFacetLinks_Connector_4013(modelElement));
+ result.addAll(getContainedTypeModelFacetLinks_Generalization_4015(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getStateMachine_2063ContainedLinks(View view) {
+ StateMachine modelElement = (StateMachine)view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getContainedTypeModelFacetLinks_Connector_4013(modelElement));
+ result.addAll(getContainedTypeModelFacetLinks_Generalization_4015(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getFunctionBehavior_2064ContainedLinks(View view) {
+ FunctionBehavior modelElement = (FunctionBehavior)view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getContainedTypeModelFacetLinks_Connector_4013(modelElement));
+ result.addAll(getContainedTypeModelFacetLinks_Generalization_4015(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getOpaqueBehavior_2065ContainedLinks(View view) {
+ OpaqueBehavior modelElement = (OpaqueBehavior)view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getContainedTypeModelFacetLinks_Connector_4013(modelElement));
+ result.addAll(getContainedTypeModelFacetLinks_Generalization_4015(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getComponent_2069ContainedLinks(View view) {
+ Component modelElement = (Component)view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getContainedTypeModelFacetLinks_Connector_4013(modelElement));
+ result.addAll(getContainedTypeModelFacetLinks_Generalization_4015(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getDevice_2070ContainedLinks(View view) {
+ Device modelElement = (Device)view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getContainedTypeModelFacetLinks_Connector_4013(modelElement));
+ result.addAll(getContainedTypeModelFacetLinks_Generalization_4015(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getExecutionEnvironment_2071ContainedLinks(View view) {
+ ExecutionEnvironment modelElement = (ExecutionEnvironment)view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getContainedTypeModelFacetLinks_Connector_4013(modelElement));
+ result.addAll(getContainedTypeModelFacetLinks_Generalization_4015(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getNode_2072ContainedLinks(View view) {
+ Node modelElement = (Node)view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getContainedTypeModelFacetLinks_Connector_4013(modelElement));
+ result.addAll(getContainedTypeModelFacetLinks_Generalization_4015(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getClass_2073ContainedLinks(View view) {
+ Class modelElement = (Class)view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getContainedTypeModelFacetLinks_Connector_4013(modelElement));
+ result.addAll(getContainedTypeModelFacetLinks_Generalization_4015(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getCollaboration_2075ContainedLinks(View view) {
+ Collaboration modelElement = (Collaboration)view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getContainedTypeModelFacetLinks_Connector_4013(modelElement));
+ result.addAll(getContainedTypeModelFacetLinks_Generalization_4015(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getInterface_2076ContainedLinks(View view) {
+ Interface modelElement = (Interface)view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getContainedTypeModelFacetLinks_Generalization_4015(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getPrimitiveType_2066ContainedLinks(View view) {
+ PrimitiveType modelElement = (PrimitiveType)view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getContainedTypeModelFacetLinks_Generalization_4015(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getEnumeration_2067ContainedLinks(View view) {
+ Enumeration modelElement = (Enumeration)view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getContainedTypeModelFacetLinks_Generalization_4015(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getDataType_2068ContainedLinks(View view) {
+ DataType modelElement = (DataType)view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getContainedTypeModelFacetLinks_Generalization_4015(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getActor_2077ContainedLinks(View view) {
+ Actor modelElement = (Actor)view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getContainedTypeModelFacetLinks_Generalization_4015(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getDeploymentSpecification_2078ContainedLinks(View view) {
+ DeploymentSpecification modelElement = (DeploymentSpecification)view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getContainedTypeModelFacetLinks_Generalization_4015(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getArtifact_2079ContainedLinks(View view) {
+ Artifact modelElement = (Artifact)view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getContainedTypeModelFacetLinks_Generalization_4015(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getInformationItem_2080ContainedLinks(View view) {
+ InformationItem modelElement = (InformationItem)view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getContainedTypeModelFacetLinks_Generalization_4015(modelElement));
+ result.addAll(getOutgoingFeatureModelFacetLinks_InformationItem_Represented_4020(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getSignal_2081ContainedLinks(View view) {
+ Signal modelElement = (Signal)view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getContainedTypeModelFacetLinks_Generalization_4015(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getUseCase_2082ContainedLinks(View view) {
+ UseCase modelElement = (UseCase)view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getContainedTypeModelFacetLinks_Generalization_4015(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getSignalEvent_2083ContainedLinks(View view) {
+ return Collections.emptyList();
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getCallEvent_2084ContainedLinks(View view) {
+ return Collections.emptyList();
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getAnyReceiveEvent_2085ContainedLinks(View view) {
+ return Collections.emptyList();
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getSendSignalEvent_2086ContainedLinks(View view) {
+ return Collections.emptyList();
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getSendOperationEvent_2087ContainedLinks(View view) {
+ return Collections.emptyList();
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getChangeEvent_2088ContainedLinks(View view) {
+ return Collections.emptyList();
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getTimeEvent_2089ContainedLinks(View view) {
+ return Collections.emptyList();
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getCreationEvent_2090ContainedLinks(View view) {
+ return Collections.emptyList();
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getDestructionEvent_2091ContainedLinks(View view) {
+ return Collections.emptyList();
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getExecutionEvent_2092ContainedLinks(View view) {
+ return Collections.emptyList();
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getDurationObservation_2093ContainedLinks(View view) {
+ DurationObservation modelElement = (DurationObservation)view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getOutgoingFeatureModelFacetLinks_DurationObservation_Event_4019(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getTimeObservation_2094ContainedLinks(View view) {
+ TimeObservation modelElement = (TimeObservation)view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getOutgoingFeatureModelFacetLinks_TimeObservation_Event_4018(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getLiteralBoolean_2095ContainedLinks(View view) {
+ return Collections.emptyList();
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getLiteralInteger_2096ContainedLinks(View view) {
+ return Collections.emptyList();
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getLiteralNull_2097ContainedLinks(View view) {
+ return Collections.emptyList();
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getLiteralString_2098ContainedLinks(View view) {
+ return Collections.emptyList();
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getLiteralUnlimitedNatural_2099ContainedLinks(View view) {
+ return Collections.emptyList();
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getStringExpression_2100ContainedLinks(View view) {
+ return Collections.emptyList();
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getOpaqueExpression_2101ContainedLinks(View view) {
+ return Collections.emptyList();
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getTimeExpression_2102ContainedLinks(View view) {
+ return Collections.emptyList();
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getExpression_2103ContainedLinks(View view) {
+ return Collections.emptyList();
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getDuration_2104ContainedLinks(View view) {
+ return Collections.emptyList();
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getTimeInterval_2105ContainedLinks(View view) {
+ return Collections.emptyList();
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getDurationInterval_2106ContainedLinks(View view) {
+ return Collections.emptyList();
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getInterval_2107ContainedLinks(View view) {
+ return Collections.emptyList();
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getInstanceValue_2108ContainedLinks(View view) {
+ return Collections.emptyList();
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getComment_2109ContainedLinks(View view) {
+ Comment modelElement = (Comment)view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getOutgoingFeatureModelFacetLinks_Comment_AnnotatedElement_4002(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getDurationConstraint_2110ContainedLinks(View view) {
+ DurationConstraint modelElement = (DurationConstraint)view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getOutgoingFeatureModelFacetLinks_Constraint_ConstrainedElement_4003(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getTimeConstraint_2111ContainedLinks(View view) {
+ TimeConstraint modelElement = (TimeConstraint)view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getOutgoingFeatureModelFacetLinks_Constraint_ConstrainedElement_4003(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getIntervalConstraint_2112ContainedLinks(View view) {
+ IntervalConstraint modelElement = (IntervalConstraint)view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getOutgoingFeatureModelFacetLinks_Constraint_ConstrainedElement_4003(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getInteractionConstraint_2113ContainedLinks(View view) {
+ InteractionConstraint modelElement = (InteractionConstraint)view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getOutgoingFeatureModelFacetLinks_Constraint_ConstrainedElement_4003(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getConstraint_2114ContainedLinks(View view) {
+ Constraint modelElement = (Constraint)view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getOutgoingFeatureModelFacetLinks_Constraint_ConstrainedElement_4003(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getPort_3069ContainedLinks(View view) {
+ return Collections.emptyList();
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getParameter_3088ContainedLinks(View view) {
+ return Collections.emptyList();
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getProperty_3070ContainedLinks(View view) {
+ return Collections.emptyList();
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getConnectableElement_3115ContainedLinks(View view) {
+ return Collections.emptyList();
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getCollaborationUse_3071ContainedLinks(View view) {
+ return Collections.emptyList();
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getActivity_3072ContainedLinks(View view) {
+ Activity modelElement = (Activity)view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getContainedTypeModelFacetLinks_Connector_4013(modelElement));
+ result.addAll(getContainedTypeModelFacetLinks_Generalization_4015(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getInteraction_3073ContainedLinks(View view) {
+ Interaction modelElement = (Interaction)view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getContainedTypeModelFacetLinks_Connector_4013(modelElement));
+ result.addAll(getContainedTypeModelFacetLinks_Generalization_4015(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getProtocolStateMachine_3074ContainedLinks(View view) {
+ ProtocolStateMachine modelElement = (ProtocolStateMachine)view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getContainedTypeModelFacetLinks_Connector_4013(modelElement));
+ result.addAll(getContainedTypeModelFacetLinks_Generalization_4015(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getStateMachine_3075ContainedLinks(View view) {
+ StateMachine modelElement = (StateMachine)view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getContainedTypeModelFacetLinks_Connector_4013(modelElement));
+ result.addAll(getContainedTypeModelFacetLinks_Generalization_4015(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getFunctionBehavior_3076ContainedLinks(View view) {
+ FunctionBehavior modelElement = (FunctionBehavior)view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getContainedTypeModelFacetLinks_Connector_4013(modelElement));
+ result.addAll(getContainedTypeModelFacetLinks_Generalization_4015(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getOpaqueBehavior_3077ContainedLinks(View view) {
+ OpaqueBehavior modelElement = (OpaqueBehavior)view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getContainedTypeModelFacetLinks_Connector_4013(modelElement));
+ result.addAll(getContainedTypeModelFacetLinks_Generalization_4015(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getComponent_3081ContainedLinks(View view) {
+ Component modelElement = (Component)view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getContainedTypeModelFacetLinks_Connector_4013(modelElement));
+ result.addAll(getContainedTypeModelFacetLinks_Generalization_4015(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getDevice_3082ContainedLinks(View view) {
+ Device modelElement = (Device)view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getContainedTypeModelFacetLinks_Connector_4013(modelElement));
+ result.addAll(getContainedTypeModelFacetLinks_Generalization_4015(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getExecutionEnvironment_3083ContainedLinks(View view) {
+ ExecutionEnvironment modelElement = (ExecutionEnvironment)view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getContainedTypeModelFacetLinks_Connector_4013(modelElement));
+ result.addAll(getContainedTypeModelFacetLinks_Generalization_4015(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getNode_3084ContainedLinks(View view) {
+ Node modelElement = (Node)view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getContainedTypeModelFacetLinks_Connector_4013(modelElement));
+ result.addAll(getContainedTypeModelFacetLinks_Generalization_4015(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getClass_3085ContainedLinks(View view) {
+ Class modelElement = (Class)view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getContainedTypeModelFacetLinks_Connector_4013(modelElement));
+ result.addAll(getContainedTypeModelFacetLinks_Generalization_4015(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getCollaboration_3086ContainedLinks(View view) {
+ Collaboration modelElement = (Collaboration)view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getContainedTypeModelFacetLinks_Connector_4013(modelElement));
+ result.addAll(getContainedTypeModelFacetLinks_Generalization_4015(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getInterface_3087ContainedLinks(View view) {
+ Interface modelElement = (Interface)view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getContainedTypeModelFacetLinks_Generalization_4015(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getPrimitiveType_3078ContainedLinks(View view) {
+ PrimitiveType modelElement = (PrimitiveType)view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getContainedTypeModelFacetLinks_Generalization_4015(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getEnumeration_3079ContainedLinks(View view) {
+ Enumeration modelElement = (Enumeration)view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getContainedTypeModelFacetLinks_Generalization_4015(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getDataType_3080ContainedLinks(View view) {
+ DataType modelElement = (DataType)view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getContainedTypeModelFacetLinks_Generalization_4015(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getActor_3091ContainedLinks(View view) {
+ Actor modelElement = (Actor)view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getContainedTypeModelFacetLinks_Generalization_4015(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getDeploymentSpecification_3092ContainedLinks(View view) {
+ DeploymentSpecification modelElement = (DeploymentSpecification)view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getContainedTypeModelFacetLinks_Generalization_4015(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getArtifact_3093ContainedLinks(View view) {
+ Artifact modelElement = (Artifact)view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getContainedTypeModelFacetLinks_Generalization_4015(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getInformationItem_3094ContainedLinks(View view) {
+ InformationItem modelElement = (InformationItem)view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getContainedTypeModelFacetLinks_Generalization_4015(modelElement));
+ result.addAll(getOutgoingFeatureModelFacetLinks_InformationItem_Represented_4020(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getSignal_3095ContainedLinks(View view) {
+ Signal modelElement = (Signal)view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getContainedTypeModelFacetLinks_Generalization_4015(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getUseCase_3096ContainedLinks(View view) {
+ UseCase modelElement = (UseCase)view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getContainedTypeModelFacetLinks_Generalization_4015(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getComment_3097ContainedLinks(View view) {
+ Comment modelElement = (Comment)view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getOutgoingFeatureModelFacetLinks_Comment_AnnotatedElement_4002(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getDurationConstraint_3116ContainedLinks(View view) {
+ DurationConstraint modelElement = (DurationConstraint)view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getOutgoingFeatureModelFacetLinks_Constraint_ConstrainedElement_4003(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getTimeConstraint_3117ContainedLinks(View view) {
+ TimeConstraint modelElement = (TimeConstraint)view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getOutgoingFeatureModelFacetLinks_Constraint_ConstrainedElement_4003(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getIntervalConstraint_3118ContainedLinks(View view) {
+ IntervalConstraint modelElement = (IntervalConstraint)view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getOutgoingFeatureModelFacetLinks_Constraint_ConstrainedElement_4003(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getInteractionConstraint_3119ContainedLinks(View view) {
+ InteractionConstraint modelElement = (InteractionConstraint)view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getOutgoingFeatureModelFacetLinks_Constraint_ConstrainedElement_4003(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getConstraint_3120ContainedLinks(View view) {
+ Constraint modelElement = (Constraint)view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getOutgoingFeatureModelFacetLinks_Constraint_ConstrainedElement_4003(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getProperty_3101ContainedLinks(View view) {
+ return Collections.emptyList();
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getOperation_3102ContainedLinks(View view) {
+ return Collections.emptyList();
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getReception_3100ContainedLinks(View view) {
+ return Collections.emptyList();
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getEnumerationLiteral_3066ContainedLinks(View view) {
+ return Collections.emptyList();
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getActivity_3103ContainedLinks(View view) {
+ Activity modelElement = (Activity)view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getContainedTypeModelFacetLinks_Connector_4013(modelElement));
+ result.addAll(getContainedTypeModelFacetLinks_Generalization_4015(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getInteraction_3104ContainedLinks(View view) {
+ Interaction modelElement = (Interaction)view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getContainedTypeModelFacetLinks_Connector_4013(modelElement));
+ result.addAll(getContainedTypeModelFacetLinks_Generalization_4015(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getProtocolStateMachine_3105ContainedLinks(View view) {
+ ProtocolStateMachine modelElement = (ProtocolStateMachine)view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getContainedTypeModelFacetLinks_Connector_4013(modelElement));
+ result.addAll(getContainedTypeModelFacetLinks_Generalization_4015(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getStateMachine_3106ContainedLinks(View view) {
+ StateMachine modelElement = (StateMachine)view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getContainedTypeModelFacetLinks_Connector_4013(modelElement));
+ result.addAll(getContainedTypeModelFacetLinks_Generalization_4015(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getFunctionBehavior_3107ContainedLinks(View view) {
+ FunctionBehavior modelElement = (FunctionBehavior)view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getContainedTypeModelFacetLinks_Connector_4013(modelElement));
+ result.addAll(getContainedTypeModelFacetLinks_Generalization_4015(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getOpaqueBehavior_3108ContainedLinks(View view) {
+ OpaqueBehavior modelElement = (OpaqueBehavior)view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getContainedTypeModelFacetLinks_Connector_4013(modelElement));
+ result.addAll(getContainedTypeModelFacetLinks_Generalization_4015(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getCollaboration_3109ContainedLinks(View view) {
+ Collaboration modelElement = (Collaboration)view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getContainedTypeModelFacetLinks_Connector_4013(modelElement));
+ result.addAll(getContainedTypeModelFacetLinks_Generalization_4015(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getInterface_3110ContainedLinks(View view) {
+ Interface modelElement = (Interface)view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getContainedTypeModelFacetLinks_Generalization_4015(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getEnumeration_3111ContainedLinks(View view) {
+ Enumeration modelElement = (Enumeration)view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getContainedTypeModelFacetLinks_Generalization_4015(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getPrimitiveType_3112ContainedLinks(View view) {
+ PrimitiveType modelElement = (PrimitiveType)view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getContainedTypeModelFacetLinks_Generalization_4015(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getDataType_3113ContainedLinks(View view) {
+ DataType modelElement = (DataType)view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getContainedTypeModelFacetLinks_Generalization_4015(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getClass_3114ContainedLinks(View view) {
+ Class modelElement = (Class)view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getContainedTypeModelFacetLinks_Connector_4013(modelElement));
+ result.addAll(getContainedTypeModelFacetLinks_Generalization_4015(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getComponentRealization_4004ContainedLinks(View view) {
+ return Collections.emptyList();
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getInterfaceRealization_4005ContainedLinks(View view) {
+ return Collections.emptyList();
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getSubstitution_4011ContainedLinks(View view) {
+ return Collections.emptyList();
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getRealization_4006ContainedLinks(View view) {
+ return Collections.emptyList();
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getManifestation_4012ContainedLinks(View view) {
+ return Collections.emptyList();
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getAbstraction_4007ContainedLinks(View view) {
+ return Collections.emptyList();
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getUsage_4008ContainedLinks(View view) {
+ return Collections.emptyList();
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getDeployment_4009ContainedLinks(View view) {
+ return Collections.emptyList();
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getDependency_4017ContainedLinks(View view) {
+ return Collections.emptyList();
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getDependency_4010ContainedLinks(View view) {
+ return Collections.emptyList();
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getConnector_4013ContainedLinks(View view) {
+ return Collections.emptyList();
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getGeneralization_4015ContainedLinks(View view) {
+ return Collections.emptyList();
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getInformationFlow_4021ContainedLinks(View view) {
+ return Collections.emptyList();
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getActivity_2060IncomingLinks(View view) {
+ Activity modelElement = (Activity)view.getElement();
+ Map<EObject, Collection<EStructuralFeature.Setting>> crossReferences = EcoreUtil.CrossReferencer.find(view.eResource().getResourceSet().getResources());
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElement_4002(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElement_4003(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_ComponentRealization_4004(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InterfaceRealization_4005(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Substitution_4011(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Realization_4006(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Manifestation_4012(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Abstraction_4007(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Usage_4008(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Deployment_4009(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4017(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4010(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Generalization_4015(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_TimeObservation_Event_4018(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_DurationObservation_Event_4019(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_InformationItem_Represented_4020(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InformationFlow_4021(modelElement, crossReferences));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getInteraction_2061IncomingLinks(View view) {
+ Interaction modelElement = (Interaction)view.getElement();
+ Map<EObject, Collection<EStructuralFeature.Setting>> crossReferences = EcoreUtil.CrossReferencer.find(view.eResource().getResourceSet().getResources());
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElement_4002(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElement_4003(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_ComponentRealization_4004(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InterfaceRealization_4005(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Substitution_4011(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Realization_4006(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Manifestation_4012(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Abstraction_4007(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Usage_4008(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Deployment_4009(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4017(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4010(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Generalization_4015(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_TimeObservation_Event_4018(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_DurationObservation_Event_4019(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_InformationItem_Represented_4020(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InformationFlow_4021(modelElement, crossReferences));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getProtocolStateMachine_2062IncomingLinks(View view) {
+ ProtocolStateMachine modelElement = (ProtocolStateMachine)view.getElement();
+ Map<EObject, Collection<EStructuralFeature.Setting>> crossReferences = EcoreUtil.CrossReferencer.find(view.eResource().getResourceSet().getResources());
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElement_4002(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElement_4003(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_ComponentRealization_4004(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InterfaceRealization_4005(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Substitution_4011(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Realization_4006(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Manifestation_4012(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Abstraction_4007(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Usage_4008(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Deployment_4009(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4017(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4010(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Generalization_4015(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_TimeObservation_Event_4018(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_DurationObservation_Event_4019(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_InformationItem_Represented_4020(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InformationFlow_4021(modelElement, crossReferences));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getStateMachine_2063IncomingLinks(View view) {
+ StateMachine modelElement = (StateMachine)view.getElement();
+ Map<EObject, Collection<EStructuralFeature.Setting>> crossReferences = EcoreUtil.CrossReferencer.find(view.eResource().getResourceSet().getResources());
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElement_4002(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElement_4003(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_ComponentRealization_4004(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InterfaceRealization_4005(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Substitution_4011(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Realization_4006(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Manifestation_4012(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Abstraction_4007(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Usage_4008(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Deployment_4009(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4017(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4010(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Generalization_4015(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_TimeObservation_Event_4018(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_DurationObservation_Event_4019(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_InformationItem_Represented_4020(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InformationFlow_4021(modelElement, crossReferences));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getFunctionBehavior_2064IncomingLinks(View view) {
+ FunctionBehavior modelElement = (FunctionBehavior)view.getElement();
+ Map<EObject, Collection<EStructuralFeature.Setting>> crossReferences = EcoreUtil.CrossReferencer.find(view.eResource().getResourceSet().getResources());
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElement_4002(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElement_4003(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_ComponentRealization_4004(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InterfaceRealization_4005(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Substitution_4011(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Realization_4006(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Manifestation_4012(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Abstraction_4007(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Usage_4008(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Deployment_4009(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4017(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4010(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Generalization_4015(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_TimeObservation_Event_4018(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_DurationObservation_Event_4019(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_InformationItem_Represented_4020(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InformationFlow_4021(modelElement, crossReferences));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getOpaqueBehavior_2065IncomingLinks(View view) {
+ OpaqueBehavior modelElement = (OpaqueBehavior)view.getElement();
+ Map<EObject, Collection<EStructuralFeature.Setting>> crossReferences = EcoreUtil.CrossReferencer.find(view.eResource().getResourceSet().getResources());
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElement_4002(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElement_4003(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_ComponentRealization_4004(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InterfaceRealization_4005(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Substitution_4011(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Realization_4006(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Manifestation_4012(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Abstraction_4007(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Usage_4008(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Deployment_4009(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4017(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4010(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Generalization_4015(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_TimeObservation_Event_4018(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_DurationObservation_Event_4019(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_InformationItem_Represented_4020(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InformationFlow_4021(modelElement, crossReferences));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getComponent_2069IncomingLinks(View view) {
+ Component modelElement = (Component)view.getElement();
+ Map<EObject, Collection<EStructuralFeature.Setting>> crossReferences = EcoreUtil.CrossReferencer.find(view.eResource().getResourceSet().getResources());
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElement_4002(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElement_4003(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_ComponentRealization_4004(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InterfaceRealization_4005(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Substitution_4011(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Realization_4006(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Manifestation_4012(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Abstraction_4007(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Usage_4008(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Deployment_4009(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4017(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4010(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Generalization_4015(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_TimeObservation_Event_4018(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_DurationObservation_Event_4019(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_InformationItem_Represented_4020(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InformationFlow_4021(modelElement, crossReferences));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getDevice_2070IncomingLinks(View view) {
+ Device modelElement = (Device)view.getElement();
+ Map<EObject, Collection<EStructuralFeature.Setting>> crossReferences = EcoreUtil.CrossReferencer.find(view.eResource().getResourceSet().getResources());
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElement_4002(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElement_4003(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_ComponentRealization_4004(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InterfaceRealization_4005(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Substitution_4011(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Realization_4006(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Manifestation_4012(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Abstraction_4007(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Usage_4008(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Deployment_4009(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4017(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4010(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Generalization_4015(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_TimeObservation_Event_4018(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_DurationObservation_Event_4019(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_InformationItem_Represented_4020(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InformationFlow_4021(modelElement, crossReferences));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getExecutionEnvironment_2071IncomingLinks(View view) {
+ ExecutionEnvironment modelElement = (ExecutionEnvironment)view.getElement();
+ Map<EObject, Collection<EStructuralFeature.Setting>> crossReferences = EcoreUtil.CrossReferencer.find(view.eResource().getResourceSet().getResources());
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElement_4002(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElement_4003(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_ComponentRealization_4004(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InterfaceRealization_4005(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Substitution_4011(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Realization_4006(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Manifestation_4012(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Abstraction_4007(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Usage_4008(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Deployment_4009(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4017(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4010(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Generalization_4015(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_TimeObservation_Event_4018(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_DurationObservation_Event_4019(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_InformationItem_Represented_4020(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InformationFlow_4021(modelElement, crossReferences));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getNode_2072IncomingLinks(View view) {
+ Node modelElement = (Node)view.getElement();
+ Map<EObject, Collection<EStructuralFeature.Setting>> crossReferences = EcoreUtil.CrossReferencer.find(view.eResource().getResourceSet().getResources());
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElement_4002(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElement_4003(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_ComponentRealization_4004(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InterfaceRealization_4005(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Substitution_4011(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Realization_4006(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Manifestation_4012(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Abstraction_4007(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Usage_4008(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Deployment_4009(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4017(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4010(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Generalization_4015(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_TimeObservation_Event_4018(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_DurationObservation_Event_4019(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_InformationItem_Represented_4020(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InformationFlow_4021(modelElement, crossReferences));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getClass_2073IncomingLinks(View view) {
+ Class modelElement = (Class)view.getElement();
+ Map<EObject, Collection<EStructuralFeature.Setting>> crossReferences = EcoreUtil.CrossReferencer.find(view.eResource().getResourceSet().getResources());
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElement_4002(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElement_4003(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_ComponentRealization_4004(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InterfaceRealization_4005(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Substitution_4011(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Realization_4006(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Manifestation_4012(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Abstraction_4007(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Usage_4008(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Deployment_4009(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4017(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4010(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Generalization_4015(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_TimeObservation_Event_4018(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_DurationObservation_Event_4019(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_InformationItem_Represented_4020(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InformationFlow_4021(modelElement, crossReferences));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getCollaboration_2075IncomingLinks(View view) {
+ Collaboration modelElement = (Collaboration)view.getElement();
+ Map<EObject, Collection<EStructuralFeature.Setting>> crossReferences = EcoreUtil.CrossReferencer.find(view.eResource().getResourceSet().getResources());
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElement_4002(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElement_4003(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_ComponentRealization_4004(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InterfaceRealization_4005(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Substitution_4011(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Realization_4006(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Manifestation_4012(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Abstraction_4007(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Usage_4008(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Deployment_4009(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4017(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4010(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Generalization_4015(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_TimeObservation_Event_4018(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_DurationObservation_Event_4019(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_InformationItem_Represented_4020(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InformationFlow_4021(modelElement, crossReferences));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getInterface_2076IncomingLinks(View view) {
+ Interface modelElement = (Interface)view.getElement();
+ Map<EObject, Collection<EStructuralFeature.Setting>> crossReferences = EcoreUtil.CrossReferencer.find(view.eResource().getResourceSet().getResources());
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElement_4002(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElement_4003(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_ComponentRealization_4004(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InterfaceRealization_4005(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Substitution_4011(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Realization_4006(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Manifestation_4012(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Abstraction_4007(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Usage_4008(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Deployment_4009(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4017(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4010(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Generalization_4015(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_TimeObservation_Event_4018(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_DurationObservation_Event_4019(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_InformationItem_Represented_4020(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InformationFlow_4021(modelElement, crossReferences));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getPrimitiveType_2066IncomingLinks(View view) {
+ PrimitiveType modelElement = (PrimitiveType)view.getElement();
+ Map<EObject, Collection<EStructuralFeature.Setting>> crossReferences = EcoreUtil.CrossReferencer.find(view.eResource().getResourceSet().getResources());
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElement_4002(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElement_4003(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_ComponentRealization_4004(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InterfaceRealization_4005(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Substitution_4011(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Realization_4006(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Manifestation_4012(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Abstraction_4007(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Usage_4008(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Deployment_4009(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4017(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4010(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Generalization_4015(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_TimeObservation_Event_4018(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_DurationObservation_Event_4019(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_InformationItem_Represented_4020(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InformationFlow_4021(modelElement, crossReferences));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getEnumeration_2067IncomingLinks(View view) {
+ Enumeration modelElement = (Enumeration)view.getElement();
+ Map<EObject, Collection<EStructuralFeature.Setting>> crossReferences = EcoreUtil.CrossReferencer.find(view.eResource().getResourceSet().getResources());
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElement_4002(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElement_4003(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_ComponentRealization_4004(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InterfaceRealization_4005(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Substitution_4011(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Realization_4006(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Manifestation_4012(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Abstraction_4007(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Usage_4008(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Deployment_4009(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4017(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4010(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Generalization_4015(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_TimeObservation_Event_4018(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_DurationObservation_Event_4019(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_InformationItem_Represented_4020(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InformationFlow_4021(modelElement, crossReferences));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getDataType_2068IncomingLinks(View view) {
+ DataType modelElement = (DataType)view.getElement();
+ Map<EObject, Collection<EStructuralFeature.Setting>> crossReferences = EcoreUtil.CrossReferencer.find(view.eResource().getResourceSet().getResources());
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElement_4002(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElement_4003(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_ComponentRealization_4004(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InterfaceRealization_4005(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Substitution_4011(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Realization_4006(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Manifestation_4012(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Abstraction_4007(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Usage_4008(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Deployment_4009(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4017(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4010(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Generalization_4015(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_TimeObservation_Event_4018(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_DurationObservation_Event_4019(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_InformationItem_Represented_4020(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InformationFlow_4021(modelElement, crossReferences));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getActor_2077IncomingLinks(View view) {
+ Actor modelElement = (Actor)view.getElement();
+ Map<EObject, Collection<EStructuralFeature.Setting>> crossReferences = EcoreUtil.CrossReferencer.find(view.eResource().getResourceSet().getResources());
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElement_4002(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElement_4003(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_ComponentRealization_4004(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InterfaceRealization_4005(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Substitution_4011(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Realization_4006(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Manifestation_4012(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Abstraction_4007(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Usage_4008(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Deployment_4009(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4017(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4010(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Generalization_4015(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_TimeObservation_Event_4018(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_DurationObservation_Event_4019(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_InformationItem_Represented_4020(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InformationFlow_4021(modelElement, crossReferences));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getDeploymentSpecification_2078IncomingLinks(View view) {
+ DeploymentSpecification modelElement = (DeploymentSpecification)view.getElement();
+ Map<EObject, Collection<EStructuralFeature.Setting>> crossReferences = EcoreUtil.CrossReferencer.find(view.eResource().getResourceSet().getResources());
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElement_4002(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElement_4003(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_ComponentRealization_4004(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InterfaceRealization_4005(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Substitution_4011(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Realization_4006(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Manifestation_4012(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Abstraction_4007(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Usage_4008(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Deployment_4009(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4017(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4010(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Generalization_4015(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_TimeObservation_Event_4018(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_DurationObservation_Event_4019(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_InformationItem_Represented_4020(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InformationFlow_4021(modelElement, crossReferences));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getArtifact_2079IncomingLinks(View view) {
+ Artifact modelElement = (Artifact)view.getElement();
+ Map<EObject, Collection<EStructuralFeature.Setting>> crossReferences = EcoreUtil.CrossReferencer.find(view.eResource().getResourceSet().getResources());
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElement_4002(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElement_4003(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_ComponentRealization_4004(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InterfaceRealization_4005(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Substitution_4011(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Realization_4006(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Manifestation_4012(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Abstraction_4007(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Usage_4008(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Deployment_4009(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4017(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4010(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Generalization_4015(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_TimeObservation_Event_4018(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_DurationObservation_Event_4019(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_InformationItem_Represented_4020(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InformationFlow_4021(modelElement, crossReferences));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getInformationItem_2080IncomingLinks(View view) {
+ InformationItem modelElement = (InformationItem)view.getElement();
+ Map<EObject, Collection<EStructuralFeature.Setting>> crossReferences = EcoreUtil.CrossReferencer.find(view.eResource().getResourceSet().getResources());
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElement_4002(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElement_4003(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_ComponentRealization_4004(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InterfaceRealization_4005(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Substitution_4011(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Realization_4006(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Manifestation_4012(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Abstraction_4007(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Usage_4008(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Deployment_4009(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4017(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4010(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Generalization_4015(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_TimeObservation_Event_4018(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_DurationObservation_Event_4019(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_InformationItem_Represented_4020(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InformationFlow_4021(modelElement, crossReferences));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getSignal_2081IncomingLinks(View view) {
+ Signal modelElement = (Signal)view.getElement();
+ Map<EObject, Collection<EStructuralFeature.Setting>> crossReferences = EcoreUtil.CrossReferencer.find(view.eResource().getResourceSet().getResources());
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElement_4002(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElement_4003(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_ComponentRealization_4004(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InterfaceRealization_4005(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Substitution_4011(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Realization_4006(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Manifestation_4012(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Abstraction_4007(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Usage_4008(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Deployment_4009(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4017(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4010(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Generalization_4015(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_TimeObservation_Event_4018(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_DurationObservation_Event_4019(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_InformationItem_Represented_4020(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InformationFlow_4021(modelElement, crossReferences));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getUseCase_2082IncomingLinks(View view) {
+ UseCase modelElement = (UseCase)view.getElement();
+ Map<EObject, Collection<EStructuralFeature.Setting>> crossReferences = EcoreUtil.CrossReferencer.find(view.eResource().getResourceSet().getResources());
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElement_4002(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElement_4003(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_ComponentRealization_4004(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InterfaceRealization_4005(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Substitution_4011(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Realization_4006(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Manifestation_4012(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Abstraction_4007(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Usage_4008(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Deployment_4009(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4017(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4010(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Generalization_4015(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_TimeObservation_Event_4018(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_DurationObservation_Event_4019(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_InformationItem_Represented_4020(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InformationFlow_4021(modelElement, crossReferences));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getSignalEvent_2083IncomingLinks(View view) {
+ SignalEvent modelElement = (SignalEvent)view.getElement();
+ Map<EObject, Collection<EStructuralFeature.Setting>> crossReferences = EcoreUtil.CrossReferencer.find(view.eResource().getResourceSet().getResources());
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElement_4002(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElement_4003(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_ComponentRealization_4004(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InterfaceRealization_4005(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Substitution_4011(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Realization_4006(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Manifestation_4012(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Abstraction_4007(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Usage_4008(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Deployment_4009(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4017(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4010(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_TimeObservation_Event_4018(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_DurationObservation_Event_4019(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InformationFlow_4021(modelElement, crossReferences));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getCallEvent_2084IncomingLinks(View view) {
+ CallEvent modelElement = (CallEvent)view.getElement();
+ Map<EObject, Collection<EStructuralFeature.Setting>> crossReferences = EcoreUtil.CrossReferencer.find(view.eResource().getResourceSet().getResources());
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElement_4002(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElement_4003(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_ComponentRealization_4004(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InterfaceRealization_4005(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Substitution_4011(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Realization_4006(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Manifestation_4012(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Abstraction_4007(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Usage_4008(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Deployment_4009(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4017(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4010(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_TimeObservation_Event_4018(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_DurationObservation_Event_4019(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InformationFlow_4021(modelElement, crossReferences));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getAnyReceiveEvent_2085IncomingLinks(View view) {
+ AnyReceiveEvent modelElement = (AnyReceiveEvent)view.getElement();
+ Map<EObject, Collection<EStructuralFeature.Setting>> crossReferences = EcoreUtil.CrossReferencer.find(view.eResource().getResourceSet().getResources());
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElement_4002(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElement_4003(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_ComponentRealization_4004(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InterfaceRealization_4005(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Substitution_4011(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Realization_4006(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Manifestation_4012(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Abstraction_4007(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Usage_4008(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Deployment_4009(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4017(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4010(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_TimeObservation_Event_4018(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_DurationObservation_Event_4019(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InformationFlow_4021(modelElement, crossReferences));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getSendSignalEvent_2086IncomingLinks(View view) {
+ SendSignalEvent modelElement = (SendSignalEvent)view.getElement();
+ Map<EObject, Collection<EStructuralFeature.Setting>> crossReferences = EcoreUtil.CrossReferencer.find(view.eResource().getResourceSet().getResources());
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElement_4002(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElement_4003(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_ComponentRealization_4004(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InterfaceRealization_4005(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Substitution_4011(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Realization_4006(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Manifestation_4012(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Abstraction_4007(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Usage_4008(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Deployment_4009(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4017(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4010(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_TimeObservation_Event_4018(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_DurationObservation_Event_4019(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InformationFlow_4021(modelElement, crossReferences));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getSendOperationEvent_2087IncomingLinks(View view) {
+ SendOperationEvent modelElement = (SendOperationEvent)view.getElement();
+ Map<EObject, Collection<EStructuralFeature.Setting>> crossReferences = EcoreUtil.CrossReferencer.find(view.eResource().getResourceSet().getResources());
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElement_4002(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElement_4003(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_ComponentRealization_4004(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InterfaceRealization_4005(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Substitution_4011(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Realization_4006(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Manifestation_4012(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Abstraction_4007(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Usage_4008(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Deployment_4009(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4017(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4010(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_TimeObservation_Event_4018(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_DurationObservation_Event_4019(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InformationFlow_4021(modelElement, crossReferences));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getChangeEvent_2088IncomingLinks(View view) {
+ ChangeEvent modelElement = (ChangeEvent)view.getElement();
+ Map<EObject, Collection<EStructuralFeature.Setting>> crossReferences = EcoreUtil.CrossReferencer.find(view.eResource().getResourceSet().getResources());
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElement_4002(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElement_4003(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_ComponentRealization_4004(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InterfaceRealization_4005(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Substitution_4011(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Realization_4006(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Manifestation_4012(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Abstraction_4007(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Usage_4008(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Deployment_4009(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4017(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4010(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_TimeObservation_Event_4018(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_DurationObservation_Event_4019(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InformationFlow_4021(modelElement, crossReferences));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getTimeEvent_2089IncomingLinks(View view) {
+ TimeEvent modelElement = (TimeEvent)view.getElement();
+ Map<EObject, Collection<EStructuralFeature.Setting>> crossReferences = EcoreUtil.CrossReferencer.find(view.eResource().getResourceSet().getResources());
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElement_4002(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElement_4003(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_ComponentRealization_4004(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InterfaceRealization_4005(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Substitution_4011(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Realization_4006(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Manifestation_4012(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Abstraction_4007(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Usage_4008(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Deployment_4009(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4017(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4010(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_TimeObservation_Event_4018(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_DurationObservation_Event_4019(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InformationFlow_4021(modelElement, crossReferences));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getCreationEvent_2090IncomingLinks(View view) {
+ CreationEvent modelElement = (CreationEvent)view.getElement();
+ Map<EObject, Collection<EStructuralFeature.Setting>> crossReferences = EcoreUtil.CrossReferencer.find(view.eResource().getResourceSet().getResources());
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElement_4002(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElement_4003(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_ComponentRealization_4004(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InterfaceRealization_4005(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Substitution_4011(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Realization_4006(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Manifestation_4012(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Abstraction_4007(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Usage_4008(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Deployment_4009(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4017(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4010(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_TimeObservation_Event_4018(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_DurationObservation_Event_4019(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InformationFlow_4021(modelElement, crossReferences));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getDestructionEvent_2091IncomingLinks(View view) {
+ DestructionEvent modelElement = (DestructionEvent)view.getElement();
+ Map<EObject, Collection<EStructuralFeature.Setting>> crossReferences = EcoreUtil.CrossReferencer.find(view.eResource().getResourceSet().getResources());
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElement_4002(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElement_4003(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_ComponentRealization_4004(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InterfaceRealization_4005(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Substitution_4011(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Realization_4006(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Manifestation_4012(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Abstraction_4007(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Usage_4008(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Deployment_4009(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4017(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4010(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_TimeObservation_Event_4018(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_DurationObservation_Event_4019(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InformationFlow_4021(modelElement, crossReferences));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getExecutionEvent_2092IncomingLinks(View view) {
+ ExecutionEvent modelElement = (ExecutionEvent)view.getElement();
+ Map<EObject, Collection<EStructuralFeature.Setting>> crossReferences = EcoreUtil.CrossReferencer.find(view.eResource().getResourceSet().getResources());
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElement_4002(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElement_4003(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_ComponentRealization_4004(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InterfaceRealization_4005(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Substitution_4011(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Realization_4006(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Manifestation_4012(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Abstraction_4007(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Usage_4008(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Deployment_4009(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4017(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4010(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_TimeObservation_Event_4018(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_DurationObservation_Event_4019(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InformationFlow_4021(modelElement, crossReferences));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getDurationObservation_2093IncomingLinks(View view) {
+ DurationObservation modelElement = (DurationObservation)view.getElement();
+ Map<EObject, Collection<EStructuralFeature.Setting>> crossReferences = EcoreUtil.CrossReferencer.find(view.eResource().getResourceSet().getResources());
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElement_4002(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElement_4003(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_ComponentRealization_4004(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InterfaceRealization_4005(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Substitution_4011(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Realization_4006(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Manifestation_4012(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Abstraction_4007(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Usage_4008(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Deployment_4009(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4017(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4010(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_TimeObservation_Event_4018(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_DurationObservation_Event_4019(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InformationFlow_4021(modelElement, crossReferences));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getTimeObservation_2094IncomingLinks(View view) {
+ TimeObservation modelElement = (TimeObservation)view.getElement();
+ Map<EObject, Collection<EStructuralFeature.Setting>> crossReferences = EcoreUtil.CrossReferencer.find(view.eResource().getResourceSet().getResources());
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElement_4002(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElement_4003(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_ComponentRealization_4004(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InterfaceRealization_4005(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Substitution_4011(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Realization_4006(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Manifestation_4012(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Abstraction_4007(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Usage_4008(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Deployment_4009(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4017(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4010(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_TimeObservation_Event_4018(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_DurationObservation_Event_4019(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InformationFlow_4021(modelElement, crossReferences));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getLiteralBoolean_2095IncomingLinks(View view) {
+ LiteralBoolean modelElement = (LiteralBoolean)view.getElement();
+ Map<EObject, Collection<EStructuralFeature.Setting>> crossReferences = EcoreUtil.CrossReferencer.find(view.eResource().getResourceSet().getResources());
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElement_4002(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElement_4003(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_ComponentRealization_4004(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InterfaceRealization_4005(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Substitution_4011(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Realization_4006(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Manifestation_4012(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Abstraction_4007(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Usage_4008(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Deployment_4009(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4017(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4010(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_TimeObservation_Event_4018(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_DurationObservation_Event_4019(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InformationFlow_4021(modelElement, crossReferences));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getLiteralInteger_2096IncomingLinks(View view) {
+ LiteralInteger modelElement = (LiteralInteger)view.getElement();
+ Map<EObject, Collection<EStructuralFeature.Setting>> crossReferences = EcoreUtil.CrossReferencer.find(view.eResource().getResourceSet().getResources());
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElement_4002(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElement_4003(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_ComponentRealization_4004(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InterfaceRealization_4005(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Substitution_4011(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Realization_4006(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Manifestation_4012(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Abstraction_4007(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Usage_4008(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Deployment_4009(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4017(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4010(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_TimeObservation_Event_4018(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_DurationObservation_Event_4019(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InformationFlow_4021(modelElement, crossReferences));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getLiteralNull_2097IncomingLinks(View view) {
+ LiteralNull modelElement = (LiteralNull)view.getElement();
+ Map<EObject, Collection<EStructuralFeature.Setting>> crossReferences = EcoreUtil.CrossReferencer.find(view.eResource().getResourceSet().getResources());
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElement_4002(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElement_4003(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_ComponentRealization_4004(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InterfaceRealization_4005(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Substitution_4011(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Realization_4006(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Manifestation_4012(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Abstraction_4007(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Usage_4008(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Deployment_4009(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4017(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4010(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_TimeObservation_Event_4018(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_DurationObservation_Event_4019(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InformationFlow_4021(modelElement, crossReferences));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getLiteralString_2098IncomingLinks(View view) {
+ LiteralString modelElement = (LiteralString)view.getElement();
+ Map<EObject, Collection<EStructuralFeature.Setting>> crossReferences = EcoreUtil.CrossReferencer.find(view.eResource().getResourceSet().getResources());
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElement_4002(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElement_4003(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_ComponentRealization_4004(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InterfaceRealization_4005(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Substitution_4011(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Realization_4006(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Manifestation_4012(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Abstraction_4007(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Usage_4008(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Deployment_4009(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4017(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4010(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_TimeObservation_Event_4018(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_DurationObservation_Event_4019(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InformationFlow_4021(modelElement, crossReferences));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getLiteralUnlimitedNatural_2099IncomingLinks(View view) {
+ LiteralUnlimitedNatural modelElement = (LiteralUnlimitedNatural)view.getElement();
+ Map<EObject, Collection<EStructuralFeature.Setting>> crossReferences = EcoreUtil.CrossReferencer.find(view.eResource().getResourceSet().getResources());
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElement_4002(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElement_4003(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_ComponentRealization_4004(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InterfaceRealization_4005(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Substitution_4011(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Realization_4006(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Manifestation_4012(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Abstraction_4007(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Usage_4008(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Deployment_4009(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4017(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4010(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_TimeObservation_Event_4018(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_DurationObservation_Event_4019(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InformationFlow_4021(modelElement, crossReferences));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getStringExpression_2100IncomingLinks(View view) {
+ StringExpression modelElement = (StringExpression)view.getElement();
+ Map<EObject, Collection<EStructuralFeature.Setting>> crossReferences = EcoreUtil.CrossReferencer.find(view.eResource().getResourceSet().getResources());
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElement_4002(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElement_4003(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_ComponentRealization_4004(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InterfaceRealization_4005(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Substitution_4011(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Realization_4006(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Manifestation_4012(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Abstraction_4007(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Usage_4008(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Deployment_4009(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4017(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4010(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_TimeObservation_Event_4018(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_DurationObservation_Event_4019(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InformationFlow_4021(modelElement, crossReferences));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getOpaqueExpression_2101IncomingLinks(View view) {
+ OpaqueExpression modelElement = (OpaqueExpression)view.getElement();
+ Map<EObject, Collection<EStructuralFeature.Setting>> crossReferences = EcoreUtil.CrossReferencer.find(view.eResource().getResourceSet().getResources());
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElement_4002(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElement_4003(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_ComponentRealization_4004(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InterfaceRealization_4005(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Substitution_4011(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Realization_4006(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Manifestation_4012(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Abstraction_4007(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Usage_4008(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Deployment_4009(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4017(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4010(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_TimeObservation_Event_4018(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_DurationObservation_Event_4019(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InformationFlow_4021(modelElement, crossReferences));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getTimeExpression_2102IncomingLinks(View view) {
+ TimeExpression modelElement = (TimeExpression)view.getElement();
+ Map<EObject, Collection<EStructuralFeature.Setting>> crossReferences = EcoreUtil.CrossReferencer.find(view.eResource().getResourceSet().getResources());
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElement_4002(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElement_4003(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_ComponentRealization_4004(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InterfaceRealization_4005(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Substitution_4011(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Realization_4006(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Manifestation_4012(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Abstraction_4007(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Usage_4008(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Deployment_4009(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4017(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4010(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_TimeObservation_Event_4018(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_DurationObservation_Event_4019(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InformationFlow_4021(modelElement, crossReferences));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getExpression_2103IncomingLinks(View view) {
+ Expression modelElement = (Expression)view.getElement();
+ Map<EObject, Collection<EStructuralFeature.Setting>> crossReferences = EcoreUtil.CrossReferencer.find(view.eResource().getResourceSet().getResources());
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElement_4002(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElement_4003(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_ComponentRealization_4004(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InterfaceRealization_4005(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Substitution_4011(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Realization_4006(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Manifestation_4012(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Abstraction_4007(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Usage_4008(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Deployment_4009(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4017(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4010(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_TimeObservation_Event_4018(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_DurationObservation_Event_4019(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InformationFlow_4021(modelElement, crossReferences));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getDuration_2104IncomingLinks(View view) {
+ Duration modelElement = (Duration)view.getElement();
+ Map<EObject, Collection<EStructuralFeature.Setting>> crossReferences = EcoreUtil.CrossReferencer.find(view.eResource().getResourceSet().getResources());
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElement_4002(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElement_4003(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_ComponentRealization_4004(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InterfaceRealization_4005(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Substitution_4011(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Realization_4006(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Manifestation_4012(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Abstraction_4007(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Usage_4008(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Deployment_4009(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4017(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4010(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_TimeObservation_Event_4018(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_DurationObservation_Event_4019(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InformationFlow_4021(modelElement, crossReferences));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getTimeInterval_2105IncomingLinks(View view) {
+ TimeInterval modelElement = (TimeInterval)view.getElement();
+ Map<EObject, Collection<EStructuralFeature.Setting>> crossReferences = EcoreUtil.CrossReferencer.find(view.eResource().getResourceSet().getResources());
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElement_4002(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElement_4003(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_ComponentRealization_4004(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InterfaceRealization_4005(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Substitution_4011(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Realization_4006(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Manifestation_4012(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Abstraction_4007(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Usage_4008(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Deployment_4009(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4017(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4010(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_TimeObservation_Event_4018(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_DurationObservation_Event_4019(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InformationFlow_4021(modelElement, crossReferences));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getDurationInterval_2106IncomingLinks(View view) {
+ DurationInterval modelElement = (DurationInterval)view.getElement();
+ Map<EObject, Collection<EStructuralFeature.Setting>> crossReferences = EcoreUtil.CrossReferencer.find(view.eResource().getResourceSet().getResources());
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElement_4002(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElement_4003(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_ComponentRealization_4004(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InterfaceRealization_4005(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Substitution_4011(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Realization_4006(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Manifestation_4012(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Abstraction_4007(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Usage_4008(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Deployment_4009(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4017(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4010(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_TimeObservation_Event_4018(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_DurationObservation_Event_4019(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InformationFlow_4021(modelElement, crossReferences));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getInterval_2107IncomingLinks(View view) {
+ Interval modelElement = (Interval)view.getElement();
+ Map<EObject, Collection<EStructuralFeature.Setting>> crossReferences = EcoreUtil.CrossReferencer.find(view.eResource().getResourceSet().getResources());
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElement_4002(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElement_4003(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_ComponentRealization_4004(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InterfaceRealization_4005(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Substitution_4011(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Realization_4006(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Manifestation_4012(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Abstraction_4007(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Usage_4008(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Deployment_4009(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4017(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4010(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_TimeObservation_Event_4018(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_DurationObservation_Event_4019(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InformationFlow_4021(modelElement, crossReferences));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getInstanceValue_2108IncomingLinks(View view) {
+ InstanceValue modelElement = (InstanceValue)view.getElement();
+ Map<EObject, Collection<EStructuralFeature.Setting>> crossReferences = EcoreUtil.CrossReferencer.find(view.eResource().getResourceSet().getResources());
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElement_4002(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElement_4003(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_ComponentRealization_4004(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InterfaceRealization_4005(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Substitution_4011(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Realization_4006(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Manifestation_4012(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Abstraction_4007(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Usage_4008(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Deployment_4009(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4017(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4010(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_TimeObservation_Event_4018(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_DurationObservation_Event_4019(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InformationFlow_4021(modelElement, crossReferences));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getComment_2109IncomingLinks(View view) {
+ Comment modelElement = (Comment)view.getElement();
+ Map<EObject, Collection<EStructuralFeature.Setting>> crossReferences = EcoreUtil.CrossReferencer.find(view.eResource().getResourceSet().getResources());
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElement_4002(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElement_4003(modelElement, crossReferences));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getDurationConstraint_2110IncomingLinks(View view) {
+ DurationConstraint modelElement = (DurationConstraint)view.getElement();
+ Map<EObject, Collection<EStructuralFeature.Setting>> crossReferences = EcoreUtil.CrossReferencer.find(view.eResource().getResourceSet().getResources());
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElement_4002(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElement_4003(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_ComponentRealization_4004(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InterfaceRealization_4005(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Substitution_4011(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Realization_4006(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Manifestation_4012(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Abstraction_4007(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Usage_4008(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Deployment_4009(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4017(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4010(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_TimeObservation_Event_4018(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_DurationObservation_Event_4019(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InformationFlow_4021(modelElement, crossReferences));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getTimeConstraint_2111IncomingLinks(View view) {
+ TimeConstraint modelElement = (TimeConstraint)view.getElement();
+ Map<EObject, Collection<EStructuralFeature.Setting>> crossReferences = EcoreUtil.CrossReferencer.find(view.eResource().getResourceSet().getResources());
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElement_4002(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElement_4003(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_ComponentRealization_4004(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InterfaceRealization_4005(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Substitution_4011(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Realization_4006(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Manifestation_4012(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Abstraction_4007(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Usage_4008(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Deployment_4009(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4017(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4010(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_TimeObservation_Event_4018(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_DurationObservation_Event_4019(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InformationFlow_4021(modelElement, crossReferences));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getIntervalConstraint_2112IncomingLinks(View view) {
+ IntervalConstraint modelElement = (IntervalConstraint)view.getElement();
+ Map<EObject, Collection<EStructuralFeature.Setting>> crossReferences = EcoreUtil.CrossReferencer.find(view.eResource().getResourceSet().getResources());
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElement_4002(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElement_4003(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_ComponentRealization_4004(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InterfaceRealization_4005(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Substitution_4011(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Realization_4006(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Manifestation_4012(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Abstraction_4007(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Usage_4008(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Deployment_4009(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4017(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4010(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_TimeObservation_Event_4018(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_DurationObservation_Event_4019(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InformationFlow_4021(modelElement, crossReferences));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getInteractionConstraint_2113IncomingLinks(View view) {
+ InteractionConstraint modelElement = (InteractionConstraint)view.getElement();
+ Map<EObject, Collection<EStructuralFeature.Setting>> crossReferences = EcoreUtil.CrossReferencer.find(view.eResource().getResourceSet().getResources());
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElement_4002(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElement_4003(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_ComponentRealization_4004(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InterfaceRealization_4005(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Substitution_4011(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Realization_4006(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Manifestation_4012(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Abstraction_4007(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Usage_4008(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Deployment_4009(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4017(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4010(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_TimeObservation_Event_4018(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_DurationObservation_Event_4019(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InformationFlow_4021(modelElement, crossReferences));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getConstraint_2114IncomingLinks(View view) {
+ Constraint modelElement = (Constraint)view.getElement();
+ Map<EObject, Collection<EStructuralFeature.Setting>> crossReferences = EcoreUtil.CrossReferencer.find(view.eResource().getResourceSet().getResources());
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElement_4002(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElement_4003(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_ComponentRealization_4004(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InterfaceRealization_4005(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Substitution_4011(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Realization_4006(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Manifestation_4012(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Abstraction_4007(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Usage_4008(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Deployment_4009(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4017(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4010(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_TimeObservation_Event_4018(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_DurationObservation_Event_4019(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InformationFlow_4021(modelElement, crossReferences));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getPort_3069IncomingLinks(View view) {
+ Port modelElement = (Port)view.getElement();
+ Map<EObject, Collection<EStructuralFeature.Setting>> crossReferences = EcoreUtil.CrossReferencer.find(view.eResource().getResourceSet().getResources());
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElement_4002(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElement_4003(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_ComponentRealization_4004(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InterfaceRealization_4005(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Substitution_4011(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Realization_4006(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Manifestation_4012(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Abstraction_4007(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Usage_4008(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Deployment_4009(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4017(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4010(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_TimeObservation_Event_4018(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_DurationObservation_Event_4019(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InformationFlow_4021(modelElement, crossReferences));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getParameter_3088IncomingLinks(View view) {
+ Parameter modelElement = (Parameter)view.getElement();
+ Map<EObject, Collection<EStructuralFeature.Setting>> crossReferences = EcoreUtil.CrossReferencer.find(view.eResource().getResourceSet().getResources());
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElement_4002(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElement_4003(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_ComponentRealization_4004(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InterfaceRealization_4005(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Substitution_4011(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Realization_4006(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Manifestation_4012(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Abstraction_4007(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Usage_4008(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Deployment_4009(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4017(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4010(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_TimeObservation_Event_4018(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_DurationObservation_Event_4019(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InformationFlow_4021(modelElement, crossReferences));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getProperty_3070IncomingLinks(View view) {
+ Property modelElement = (Property)view.getElement();
+ Map<EObject, Collection<EStructuralFeature.Setting>> crossReferences = EcoreUtil.CrossReferencer.find(view.eResource().getResourceSet().getResources());
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElement_4002(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElement_4003(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_ComponentRealization_4004(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InterfaceRealization_4005(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Substitution_4011(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Realization_4006(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Manifestation_4012(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Abstraction_4007(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Usage_4008(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Deployment_4009(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4017(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4010(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_TimeObservation_Event_4018(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_DurationObservation_Event_4019(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InformationFlow_4021(modelElement, crossReferences));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getConnectableElement_3115IncomingLinks(View view) {
+ ConnectableElement modelElement = (ConnectableElement)view.getElement();
+ Map<EObject, Collection<EStructuralFeature.Setting>> crossReferences = EcoreUtil.CrossReferencer.find(view.eResource().getResourceSet().getResources());
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElement_4002(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElement_4003(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_ComponentRealization_4004(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InterfaceRealization_4005(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Substitution_4011(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Realization_4006(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Manifestation_4012(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Abstraction_4007(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Usage_4008(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Deployment_4009(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4017(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4010(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_TimeObservation_Event_4018(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_DurationObservation_Event_4019(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InformationFlow_4021(modelElement, crossReferences));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getCollaborationUse_3071IncomingLinks(View view) {
+ CollaborationUse modelElement = (CollaborationUse)view.getElement();
+ Map<EObject, Collection<EStructuralFeature.Setting>> crossReferences = EcoreUtil.CrossReferencer.find(view.eResource().getResourceSet().getResources());
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElement_4002(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElement_4003(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_ComponentRealization_4004(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InterfaceRealization_4005(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Substitution_4011(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Realization_4006(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Manifestation_4012(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Abstraction_4007(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Usage_4008(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Deployment_4009(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4017(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4010(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_TimeObservation_Event_4018(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_DurationObservation_Event_4019(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InformationFlow_4021(modelElement, crossReferences));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getActivity_3072IncomingLinks(View view) {
+ Activity modelElement = (Activity)view.getElement();
+ Map<EObject, Collection<EStructuralFeature.Setting>> crossReferences = EcoreUtil.CrossReferencer.find(view.eResource().getResourceSet().getResources());
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElement_4002(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElement_4003(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_ComponentRealization_4004(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InterfaceRealization_4005(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Substitution_4011(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Realization_4006(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Manifestation_4012(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Abstraction_4007(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Usage_4008(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Deployment_4009(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4017(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4010(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Generalization_4015(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_TimeObservation_Event_4018(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_DurationObservation_Event_4019(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_InformationItem_Represented_4020(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InformationFlow_4021(modelElement, crossReferences));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getInteraction_3073IncomingLinks(View view) {
+ Interaction modelElement = (Interaction)view.getElement();
+ Map<EObject, Collection<EStructuralFeature.Setting>> crossReferences = EcoreUtil.CrossReferencer.find(view.eResource().getResourceSet().getResources());
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElement_4002(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElement_4003(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_ComponentRealization_4004(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InterfaceRealization_4005(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Substitution_4011(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Realization_4006(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Manifestation_4012(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Abstraction_4007(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Usage_4008(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Deployment_4009(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4017(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4010(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Generalization_4015(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_TimeObservation_Event_4018(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_DurationObservation_Event_4019(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_InformationItem_Represented_4020(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InformationFlow_4021(modelElement, crossReferences));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getProtocolStateMachine_3074IncomingLinks(View view) {
+ ProtocolStateMachine modelElement = (ProtocolStateMachine)view.getElement();
+ Map<EObject, Collection<EStructuralFeature.Setting>> crossReferences = EcoreUtil.CrossReferencer.find(view.eResource().getResourceSet().getResources());
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElement_4002(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElement_4003(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_ComponentRealization_4004(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InterfaceRealization_4005(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Substitution_4011(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Realization_4006(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Manifestation_4012(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Abstraction_4007(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Usage_4008(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Deployment_4009(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4017(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4010(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Generalization_4015(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_TimeObservation_Event_4018(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_DurationObservation_Event_4019(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_InformationItem_Represented_4020(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InformationFlow_4021(modelElement, crossReferences));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getStateMachine_3075IncomingLinks(View view) {
+ StateMachine modelElement = (StateMachine)view.getElement();
+ Map<EObject, Collection<EStructuralFeature.Setting>> crossReferences = EcoreUtil.CrossReferencer.find(view.eResource().getResourceSet().getResources());
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElement_4002(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElement_4003(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_ComponentRealization_4004(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InterfaceRealization_4005(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Substitution_4011(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Realization_4006(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Manifestation_4012(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Abstraction_4007(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Usage_4008(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Deployment_4009(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4017(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4010(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Generalization_4015(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_TimeObservation_Event_4018(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_DurationObservation_Event_4019(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_InformationItem_Represented_4020(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InformationFlow_4021(modelElement, crossReferences));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getFunctionBehavior_3076IncomingLinks(View view) {
+ FunctionBehavior modelElement = (FunctionBehavior)view.getElement();
+ Map<EObject, Collection<EStructuralFeature.Setting>> crossReferences = EcoreUtil.CrossReferencer.find(view.eResource().getResourceSet().getResources());
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElement_4002(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElement_4003(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_ComponentRealization_4004(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InterfaceRealization_4005(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Substitution_4011(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Realization_4006(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Manifestation_4012(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Abstraction_4007(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Usage_4008(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Deployment_4009(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4017(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4010(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Generalization_4015(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_TimeObservation_Event_4018(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_DurationObservation_Event_4019(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_InformationItem_Represented_4020(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InformationFlow_4021(modelElement, crossReferences));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getOpaqueBehavior_3077IncomingLinks(View view) {
+ OpaqueBehavior modelElement = (OpaqueBehavior)view.getElement();
+ Map<EObject, Collection<EStructuralFeature.Setting>> crossReferences = EcoreUtil.CrossReferencer.find(view.eResource().getResourceSet().getResources());
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElement_4002(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElement_4003(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_ComponentRealization_4004(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InterfaceRealization_4005(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Substitution_4011(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Realization_4006(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Manifestation_4012(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Abstraction_4007(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Usage_4008(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Deployment_4009(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4017(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4010(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Generalization_4015(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_TimeObservation_Event_4018(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_DurationObservation_Event_4019(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_InformationItem_Represented_4020(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InformationFlow_4021(modelElement, crossReferences));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getComponent_3081IncomingLinks(View view) {
+ Component modelElement = (Component)view.getElement();
+ Map<EObject, Collection<EStructuralFeature.Setting>> crossReferences = EcoreUtil.CrossReferencer.find(view.eResource().getResourceSet().getResources());
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElement_4002(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElement_4003(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_ComponentRealization_4004(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InterfaceRealization_4005(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Substitution_4011(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Realization_4006(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Manifestation_4012(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Abstraction_4007(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Usage_4008(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Deployment_4009(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4017(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4010(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Generalization_4015(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_TimeObservation_Event_4018(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_DurationObservation_Event_4019(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_InformationItem_Represented_4020(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InformationFlow_4021(modelElement, crossReferences));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getDevice_3082IncomingLinks(View view) {
+ Device modelElement = (Device)view.getElement();
+ Map<EObject, Collection<EStructuralFeature.Setting>> crossReferences = EcoreUtil.CrossReferencer.find(view.eResource().getResourceSet().getResources());
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElement_4002(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElement_4003(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_ComponentRealization_4004(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InterfaceRealization_4005(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Substitution_4011(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Realization_4006(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Manifestation_4012(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Abstraction_4007(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Usage_4008(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Deployment_4009(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4017(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4010(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Generalization_4015(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_TimeObservation_Event_4018(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_DurationObservation_Event_4019(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_InformationItem_Represented_4020(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InformationFlow_4021(modelElement, crossReferences));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getExecutionEnvironment_3083IncomingLinks(View view) {
+ ExecutionEnvironment modelElement = (ExecutionEnvironment)view.getElement();
+ Map<EObject, Collection<EStructuralFeature.Setting>> crossReferences = EcoreUtil.CrossReferencer.find(view.eResource().getResourceSet().getResources());
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElement_4002(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElement_4003(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_ComponentRealization_4004(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InterfaceRealization_4005(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Substitution_4011(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Realization_4006(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Manifestation_4012(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Abstraction_4007(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Usage_4008(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Deployment_4009(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4017(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4010(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Generalization_4015(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_TimeObservation_Event_4018(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_DurationObservation_Event_4019(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_InformationItem_Represented_4020(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InformationFlow_4021(modelElement, crossReferences));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getNode_3084IncomingLinks(View view) {
+ Node modelElement = (Node)view.getElement();
+ Map<EObject, Collection<EStructuralFeature.Setting>> crossReferences = EcoreUtil.CrossReferencer.find(view.eResource().getResourceSet().getResources());
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElement_4002(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElement_4003(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_ComponentRealization_4004(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InterfaceRealization_4005(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Substitution_4011(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Realization_4006(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Manifestation_4012(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Abstraction_4007(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Usage_4008(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Deployment_4009(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4017(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4010(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Generalization_4015(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_TimeObservation_Event_4018(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_DurationObservation_Event_4019(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_InformationItem_Represented_4020(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InformationFlow_4021(modelElement, crossReferences));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getClass_3085IncomingLinks(View view) {
+ Class modelElement = (Class)view.getElement();
+ Map<EObject, Collection<EStructuralFeature.Setting>> crossReferences = EcoreUtil.CrossReferencer.find(view.eResource().getResourceSet().getResources());
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElement_4002(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElement_4003(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_ComponentRealization_4004(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InterfaceRealization_4005(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Substitution_4011(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Realization_4006(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Manifestation_4012(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Abstraction_4007(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Usage_4008(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Deployment_4009(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4017(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4010(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Generalization_4015(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_TimeObservation_Event_4018(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_DurationObservation_Event_4019(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_InformationItem_Represented_4020(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InformationFlow_4021(modelElement, crossReferences));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getCollaboration_3086IncomingLinks(View view) {
+ Collaboration modelElement = (Collaboration)view.getElement();
+ Map<EObject, Collection<EStructuralFeature.Setting>> crossReferences = EcoreUtil.CrossReferencer.find(view.eResource().getResourceSet().getResources());
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElement_4002(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElement_4003(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_ComponentRealization_4004(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InterfaceRealization_4005(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Substitution_4011(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Realization_4006(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Manifestation_4012(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Abstraction_4007(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Usage_4008(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Deployment_4009(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4017(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4010(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Generalization_4015(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_TimeObservation_Event_4018(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_DurationObservation_Event_4019(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_InformationItem_Represented_4020(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InformationFlow_4021(modelElement, crossReferences));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getInterface_3087IncomingLinks(View view) {
+ Interface modelElement = (Interface)view.getElement();
+ Map<EObject, Collection<EStructuralFeature.Setting>> crossReferences = EcoreUtil.CrossReferencer.find(view.eResource().getResourceSet().getResources());
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElement_4002(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElement_4003(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_ComponentRealization_4004(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InterfaceRealization_4005(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Substitution_4011(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Realization_4006(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Manifestation_4012(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Abstraction_4007(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Usage_4008(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Deployment_4009(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4017(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4010(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Generalization_4015(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_TimeObservation_Event_4018(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_DurationObservation_Event_4019(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_InformationItem_Represented_4020(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InformationFlow_4021(modelElement, crossReferences));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getPrimitiveType_3078IncomingLinks(View view) {
+ PrimitiveType modelElement = (PrimitiveType)view.getElement();
+ Map<EObject, Collection<EStructuralFeature.Setting>> crossReferences = EcoreUtil.CrossReferencer.find(view.eResource().getResourceSet().getResources());
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElement_4002(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElement_4003(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_ComponentRealization_4004(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InterfaceRealization_4005(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Substitution_4011(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Realization_4006(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Manifestation_4012(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Abstraction_4007(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Usage_4008(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Deployment_4009(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4017(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4010(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Generalization_4015(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_TimeObservation_Event_4018(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_DurationObservation_Event_4019(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_InformationItem_Represented_4020(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InformationFlow_4021(modelElement, crossReferences));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getEnumeration_3079IncomingLinks(View view) {
+ Enumeration modelElement = (Enumeration)view.getElement();
+ Map<EObject, Collection<EStructuralFeature.Setting>> crossReferences = EcoreUtil.CrossReferencer.find(view.eResource().getResourceSet().getResources());
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElement_4002(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElement_4003(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_ComponentRealization_4004(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InterfaceRealization_4005(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Substitution_4011(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Realization_4006(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Manifestation_4012(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Abstraction_4007(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Usage_4008(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Deployment_4009(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4017(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4010(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Generalization_4015(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_TimeObservation_Event_4018(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_DurationObservation_Event_4019(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_InformationItem_Represented_4020(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InformationFlow_4021(modelElement, crossReferences));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getDataType_3080IncomingLinks(View view) {
+ DataType modelElement = (DataType)view.getElement();
+ Map<EObject, Collection<EStructuralFeature.Setting>> crossReferences = EcoreUtil.CrossReferencer.find(view.eResource().getResourceSet().getResources());
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElement_4002(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElement_4003(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_ComponentRealization_4004(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InterfaceRealization_4005(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Substitution_4011(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Realization_4006(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Manifestation_4012(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Abstraction_4007(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Usage_4008(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Deployment_4009(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4017(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4010(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Generalization_4015(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_TimeObservation_Event_4018(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_DurationObservation_Event_4019(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_InformationItem_Represented_4020(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InformationFlow_4021(modelElement, crossReferences));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getActor_3091IncomingLinks(View view) {
+ Actor modelElement = (Actor)view.getElement();
+ Map<EObject, Collection<EStructuralFeature.Setting>> crossReferences = EcoreUtil.CrossReferencer.find(view.eResource().getResourceSet().getResources());
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElement_4002(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElement_4003(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_ComponentRealization_4004(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InterfaceRealization_4005(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Substitution_4011(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Realization_4006(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Manifestation_4012(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Abstraction_4007(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Usage_4008(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Deployment_4009(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4017(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4010(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Generalization_4015(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_TimeObservation_Event_4018(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_DurationObservation_Event_4019(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_InformationItem_Represented_4020(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InformationFlow_4021(modelElement, crossReferences));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getDeploymentSpecification_3092IncomingLinks(View view) {
+ DeploymentSpecification modelElement = (DeploymentSpecification)view.getElement();
+ Map<EObject, Collection<EStructuralFeature.Setting>> crossReferences = EcoreUtil.CrossReferencer.find(view.eResource().getResourceSet().getResources());
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElement_4002(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElement_4003(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_ComponentRealization_4004(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InterfaceRealization_4005(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Substitution_4011(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Realization_4006(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Manifestation_4012(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Abstraction_4007(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Usage_4008(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Deployment_4009(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4017(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4010(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Generalization_4015(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_TimeObservation_Event_4018(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_DurationObservation_Event_4019(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_InformationItem_Represented_4020(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InformationFlow_4021(modelElement, crossReferences));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getArtifact_3093IncomingLinks(View view) {
+ Artifact modelElement = (Artifact)view.getElement();
+ Map<EObject, Collection<EStructuralFeature.Setting>> crossReferences = EcoreUtil.CrossReferencer.find(view.eResource().getResourceSet().getResources());
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElement_4002(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElement_4003(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_ComponentRealization_4004(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InterfaceRealization_4005(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Substitution_4011(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Realization_4006(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Manifestation_4012(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Abstraction_4007(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Usage_4008(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Deployment_4009(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4017(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4010(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Generalization_4015(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_TimeObservation_Event_4018(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_DurationObservation_Event_4019(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_InformationItem_Represented_4020(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InformationFlow_4021(modelElement, crossReferences));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getInformationItem_3094IncomingLinks(View view) {
+ InformationItem modelElement = (InformationItem)view.getElement();
+ Map<EObject, Collection<EStructuralFeature.Setting>> crossReferences = EcoreUtil.CrossReferencer.find(view.eResource().getResourceSet().getResources());
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElement_4002(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElement_4003(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_ComponentRealization_4004(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InterfaceRealization_4005(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Substitution_4011(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Realization_4006(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Manifestation_4012(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Abstraction_4007(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Usage_4008(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Deployment_4009(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4017(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4010(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Generalization_4015(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_TimeObservation_Event_4018(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_DurationObservation_Event_4019(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_InformationItem_Represented_4020(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InformationFlow_4021(modelElement, crossReferences));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getSignal_3095IncomingLinks(View view) {
+ Signal modelElement = (Signal)view.getElement();
+ Map<EObject, Collection<EStructuralFeature.Setting>> crossReferences = EcoreUtil.CrossReferencer.find(view.eResource().getResourceSet().getResources());
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElement_4002(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElement_4003(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_ComponentRealization_4004(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InterfaceRealization_4005(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Substitution_4011(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Realization_4006(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Manifestation_4012(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Abstraction_4007(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Usage_4008(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Deployment_4009(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4017(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4010(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Generalization_4015(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_TimeObservation_Event_4018(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_DurationObservation_Event_4019(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_InformationItem_Represented_4020(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InformationFlow_4021(modelElement, crossReferences));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getUseCase_3096IncomingLinks(View view) {
+ UseCase modelElement = (UseCase)view.getElement();
+ Map<EObject, Collection<EStructuralFeature.Setting>> crossReferences = EcoreUtil.CrossReferencer.find(view.eResource().getResourceSet().getResources());
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElement_4002(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElement_4003(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_ComponentRealization_4004(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InterfaceRealization_4005(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Substitution_4011(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Realization_4006(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Manifestation_4012(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Abstraction_4007(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Usage_4008(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Deployment_4009(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4017(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4010(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Generalization_4015(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_TimeObservation_Event_4018(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_DurationObservation_Event_4019(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_InformationItem_Represented_4020(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InformationFlow_4021(modelElement, crossReferences));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getComment_3097IncomingLinks(View view) {
+ Comment modelElement = (Comment)view.getElement();
+ Map<EObject, Collection<EStructuralFeature.Setting>> crossReferences = EcoreUtil.CrossReferencer.find(view.eResource().getResourceSet().getResources());
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElement_4002(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElement_4003(modelElement, crossReferences));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getDurationConstraint_3116IncomingLinks(View view) {
+ DurationConstraint modelElement = (DurationConstraint)view.getElement();
+ Map<EObject, Collection<EStructuralFeature.Setting>> crossReferences = EcoreUtil.CrossReferencer.find(view.eResource().getResourceSet().getResources());
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElement_4002(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElement_4003(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_ComponentRealization_4004(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InterfaceRealization_4005(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Substitution_4011(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Realization_4006(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Manifestation_4012(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Abstraction_4007(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Usage_4008(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Deployment_4009(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4017(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4010(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_TimeObservation_Event_4018(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_DurationObservation_Event_4019(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InformationFlow_4021(modelElement, crossReferences));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getTimeConstraint_3117IncomingLinks(View view) {
+ TimeConstraint modelElement = (TimeConstraint)view.getElement();
+ Map<EObject, Collection<EStructuralFeature.Setting>> crossReferences = EcoreUtil.CrossReferencer.find(view.eResource().getResourceSet().getResources());
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElement_4002(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElement_4003(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_ComponentRealization_4004(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InterfaceRealization_4005(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Substitution_4011(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Realization_4006(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Manifestation_4012(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Abstraction_4007(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Usage_4008(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Deployment_4009(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4017(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4010(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_TimeObservation_Event_4018(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_DurationObservation_Event_4019(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InformationFlow_4021(modelElement, crossReferences));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getIntervalConstraint_3118IncomingLinks(View view) {
+ IntervalConstraint modelElement = (IntervalConstraint)view.getElement();
+ Map<EObject, Collection<EStructuralFeature.Setting>> crossReferences = EcoreUtil.CrossReferencer.find(view.eResource().getResourceSet().getResources());
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElement_4002(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElement_4003(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_ComponentRealization_4004(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InterfaceRealization_4005(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Substitution_4011(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Realization_4006(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Manifestation_4012(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Abstraction_4007(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Usage_4008(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Deployment_4009(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4017(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4010(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_TimeObservation_Event_4018(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_DurationObservation_Event_4019(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InformationFlow_4021(modelElement, crossReferences));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getInteractionConstraint_3119IncomingLinks(View view) {
+ InteractionConstraint modelElement = (InteractionConstraint)view.getElement();
+ Map<EObject, Collection<EStructuralFeature.Setting>> crossReferences = EcoreUtil.CrossReferencer.find(view.eResource().getResourceSet().getResources());
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElement_4002(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElement_4003(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_ComponentRealization_4004(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InterfaceRealization_4005(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Substitution_4011(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Realization_4006(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Manifestation_4012(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Abstraction_4007(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Usage_4008(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Deployment_4009(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4017(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4010(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_TimeObservation_Event_4018(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_DurationObservation_Event_4019(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InformationFlow_4021(modelElement, crossReferences));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getConstraint_3120IncomingLinks(View view) {
+ Constraint modelElement = (Constraint)view.getElement();
+ Map<EObject, Collection<EStructuralFeature.Setting>> crossReferences = EcoreUtil.CrossReferencer.find(view.eResource().getResourceSet().getResources());
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElement_4002(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElement_4003(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_ComponentRealization_4004(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InterfaceRealization_4005(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Substitution_4011(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Realization_4006(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Manifestation_4012(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Abstraction_4007(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Usage_4008(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Deployment_4009(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4017(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4010(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_TimeObservation_Event_4018(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_DurationObservation_Event_4019(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InformationFlow_4021(modelElement, crossReferences));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getProperty_3101IncomingLinks(View view) {
+ return Collections.emptyList();
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getOperation_3102IncomingLinks(View view) {
+ return Collections.emptyList();
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getReception_3100IncomingLinks(View view) {
+ return Collections.emptyList();
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getEnumerationLiteral_3066IncomingLinks(View view) {
+ return Collections.emptyList();
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getActivity_3103IncomingLinks(View view) {
+ return Collections.emptyList();
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getInteraction_3104IncomingLinks(View view) {
+ return Collections.emptyList();
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getProtocolStateMachine_3105IncomingLinks(View view) {
+ return Collections.emptyList();
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getStateMachine_3106IncomingLinks(View view) {
+ return Collections.emptyList();
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getFunctionBehavior_3107IncomingLinks(View view) {
+ return Collections.emptyList();
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getOpaqueBehavior_3108IncomingLinks(View view) {
+ return Collections.emptyList();
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getCollaboration_3109IncomingLinks(View view) {
+ return Collections.emptyList();
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getInterface_3110IncomingLinks(View view) {
+ return Collections.emptyList();
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getEnumeration_3111IncomingLinks(View view) {
+ return Collections.emptyList();
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getPrimitiveType_3112IncomingLinks(View view) {
+ return Collections.emptyList();
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getDataType_3113IncomingLinks(View view) {
+ return Collections.emptyList();
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getClass_3114IncomingLinks(View view) {
+ return Collections.emptyList();
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getComponentRealization_4004IncomingLinks(View view) {
+ ComponentRealization modelElement = (ComponentRealization)view.getElement();
+ Map<EObject, Collection<EStructuralFeature.Setting>> crossReferences = EcoreUtil.CrossReferencer.find(view.eResource().getResourceSet().getResources());
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElement_4002(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElement_4003(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_ComponentRealization_4004(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InterfaceRealization_4005(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Substitution_4011(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Realization_4006(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Manifestation_4012(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Abstraction_4007(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Usage_4008(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Deployment_4009(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4017(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4010(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_TimeObservation_Event_4018(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_DurationObservation_Event_4019(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InformationFlow_4021(modelElement, crossReferences));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getInterfaceRealization_4005IncomingLinks(View view) {
+ InterfaceRealization modelElement = (InterfaceRealization)view.getElement();
+ Map<EObject, Collection<EStructuralFeature.Setting>> crossReferences = EcoreUtil.CrossReferencer.find(view.eResource().getResourceSet().getResources());
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElement_4002(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElement_4003(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_ComponentRealization_4004(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InterfaceRealization_4005(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Substitution_4011(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Realization_4006(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Manifestation_4012(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Abstraction_4007(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Usage_4008(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Deployment_4009(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4017(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4010(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_TimeObservation_Event_4018(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_DurationObservation_Event_4019(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InformationFlow_4021(modelElement, crossReferences));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getSubstitution_4011IncomingLinks(View view) {
+ Substitution modelElement = (Substitution)view.getElement();
+ Map<EObject, Collection<EStructuralFeature.Setting>> crossReferences = EcoreUtil.CrossReferencer.find(view.eResource().getResourceSet().getResources());
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElement_4002(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElement_4003(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_ComponentRealization_4004(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InterfaceRealization_4005(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Substitution_4011(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Realization_4006(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Manifestation_4012(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Abstraction_4007(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Usage_4008(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Deployment_4009(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4017(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4010(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_TimeObservation_Event_4018(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_DurationObservation_Event_4019(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InformationFlow_4021(modelElement, crossReferences));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getRealization_4006IncomingLinks(View view) {
+ Realization modelElement = (Realization)view.getElement();
+ Map<EObject, Collection<EStructuralFeature.Setting>> crossReferences = EcoreUtil.CrossReferencer.find(view.eResource().getResourceSet().getResources());
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElement_4002(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElement_4003(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_ComponentRealization_4004(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InterfaceRealization_4005(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Substitution_4011(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Realization_4006(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Manifestation_4012(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Abstraction_4007(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Usage_4008(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Deployment_4009(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4017(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4010(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_TimeObservation_Event_4018(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_DurationObservation_Event_4019(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InformationFlow_4021(modelElement, crossReferences));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getManifestation_4012IncomingLinks(View view) {
+ Manifestation modelElement = (Manifestation)view.getElement();
+ Map<EObject, Collection<EStructuralFeature.Setting>> crossReferences = EcoreUtil.CrossReferencer.find(view.eResource().getResourceSet().getResources());
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElement_4002(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElement_4003(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_ComponentRealization_4004(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InterfaceRealization_4005(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Substitution_4011(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Realization_4006(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Manifestation_4012(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Abstraction_4007(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Usage_4008(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Deployment_4009(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4017(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4010(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_TimeObservation_Event_4018(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_DurationObservation_Event_4019(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InformationFlow_4021(modelElement, crossReferences));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getAbstraction_4007IncomingLinks(View view) {
+ Abstraction modelElement = (Abstraction)view.getElement();
+ Map<EObject, Collection<EStructuralFeature.Setting>> crossReferences = EcoreUtil.CrossReferencer.find(view.eResource().getResourceSet().getResources());
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElement_4002(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElement_4003(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_ComponentRealization_4004(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InterfaceRealization_4005(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Substitution_4011(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Realization_4006(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Manifestation_4012(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Abstraction_4007(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Usage_4008(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Deployment_4009(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4017(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4010(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_TimeObservation_Event_4018(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_DurationObservation_Event_4019(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InformationFlow_4021(modelElement, crossReferences));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getUsage_4008IncomingLinks(View view) {
+ Usage modelElement = (Usage)view.getElement();
+ Map<EObject, Collection<EStructuralFeature.Setting>> crossReferences = EcoreUtil.CrossReferencer.find(view.eResource().getResourceSet().getResources());
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElement_4002(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElement_4003(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_ComponentRealization_4004(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InterfaceRealization_4005(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Substitution_4011(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Realization_4006(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Manifestation_4012(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Abstraction_4007(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Usage_4008(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Deployment_4009(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4017(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4010(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_TimeObservation_Event_4018(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_DurationObservation_Event_4019(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InformationFlow_4021(modelElement, crossReferences));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getDeployment_4009IncomingLinks(View view) {
+ Deployment modelElement = (Deployment)view.getElement();
+ Map<EObject, Collection<EStructuralFeature.Setting>> crossReferences = EcoreUtil.CrossReferencer.find(view.eResource().getResourceSet().getResources());
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElement_4002(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElement_4003(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_ComponentRealization_4004(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InterfaceRealization_4005(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Substitution_4011(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Realization_4006(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Manifestation_4012(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Abstraction_4007(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Usage_4008(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Deployment_4009(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4017(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4010(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_TimeObservation_Event_4018(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_DurationObservation_Event_4019(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InformationFlow_4021(modelElement, crossReferences));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getDependency_4017IncomingLinks(View view) {
+ Dependency modelElement = (Dependency)view.getElement();
+ Map<EObject, Collection<EStructuralFeature.Setting>> crossReferences = EcoreUtil.CrossReferencer.find(view.eResource().getResourceSet().getResources());
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElement_4002(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElement_4003(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_ComponentRealization_4004(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InterfaceRealization_4005(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Substitution_4011(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Realization_4006(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Manifestation_4012(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Abstraction_4007(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Usage_4008(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Deployment_4009(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4017(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4010(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_TimeObservation_Event_4018(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_DurationObservation_Event_4019(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InformationFlow_4021(modelElement, crossReferences));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getDependency_4010IncomingLinks(View view) {
+ Dependency modelElement = (Dependency)view.getElement();
+ Map<EObject, Collection<EStructuralFeature.Setting>> crossReferences = EcoreUtil.CrossReferencer.find(view.eResource().getResourceSet().getResources());
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElement_4002(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElement_4003(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_ComponentRealization_4004(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InterfaceRealization_4005(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Substitution_4011(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Realization_4006(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Manifestation_4012(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Abstraction_4007(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Usage_4008(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Deployment_4009(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4017(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4010(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_TimeObservation_Event_4018(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_DurationObservation_Event_4019(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InformationFlow_4021(modelElement, crossReferences));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getConnector_4013IncomingLinks(View view) {
+ Connector modelElement = (Connector)view.getElement();
+ Map<EObject, Collection<EStructuralFeature.Setting>> crossReferences = EcoreUtil.CrossReferencer.find(view.eResource().getResourceSet().getResources());
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElement_4002(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElement_4003(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_ComponentRealization_4004(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InterfaceRealization_4005(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Substitution_4011(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Realization_4006(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Manifestation_4012(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Abstraction_4007(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Usage_4008(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Deployment_4009(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4017(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4010(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_TimeObservation_Event_4018(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_DurationObservation_Event_4019(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InformationFlow_4021(modelElement, crossReferences));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getGeneralization_4015IncomingLinks(View view) {
+ Generalization modelElement = (Generalization)view.getElement();
+ Map<EObject, Collection<EStructuralFeature.Setting>> crossReferences = EcoreUtil.CrossReferencer.find(view.eResource().getResourceSet().getResources());
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElement_4002(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElement_4003(modelElement, crossReferences));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getInformationFlow_4021IncomingLinks(View view) {
+ InformationFlow modelElement = (InformationFlow)view.getElement();
+ Map<EObject, Collection<EStructuralFeature.Setting>> crossReferences = EcoreUtil.CrossReferencer.find(view.eResource().getResourceSet().getResources());
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElement_4002(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElement_4003(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_ComponentRealization_4004(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InterfaceRealization_4005(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Substitution_4011(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Realization_4006(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Manifestation_4012(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Abstraction_4007(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Usage_4008(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Deployment_4009(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4017(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4010(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_TimeObservation_Event_4018(modelElement, crossReferences));
+ result.addAll(getIncomingFeatureModelFacetLinks_DurationObservation_Event_4019(modelElement, crossReferences));
+ result.addAll(getIncomingTypeModelFacetLinks_InformationFlow_4021(modelElement, crossReferences));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getActivity_2060OutgoingLinks(View view) {
+ Activity modelElement = (Activity)view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getOutgoingTypeModelFacetLinks_ComponentRealization_4004(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InterfaceRealization_4005(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Substitution_4011(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Realization_4006(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Manifestation_4012(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Abstraction_4007(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Usage_4008(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Deployment_4009(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4017(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4010(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Generalization_4015(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InformationFlow_4021(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getInteraction_2061OutgoingLinks(View view) {
+ Interaction modelElement = (Interaction)view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getOutgoingTypeModelFacetLinks_ComponentRealization_4004(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InterfaceRealization_4005(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Substitution_4011(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Realization_4006(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Manifestation_4012(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Abstraction_4007(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Usage_4008(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Deployment_4009(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4017(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4010(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Generalization_4015(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InformationFlow_4021(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getProtocolStateMachine_2062OutgoingLinks(View view) {
+ ProtocolStateMachine modelElement = (ProtocolStateMachine)view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getOutgoingTypeModelFacetLinks_ComponentRealization_4004(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InterfaceRealization_4005(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Substitution_4011(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Realization_4006(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Manifestation_4012(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Abstraction_4007(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Usage_4008(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Deployment_4009(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4017(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4010(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Generalization_4015(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InformationFlow_4021(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getStateMachine_2063OutgoingLinks(View view) {
+ StateMachine modelElement = (StateMachine)view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getOutgoingTypeModelFacetLinks_ComponentRealization_4004(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InterfaceRealization_4005(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Substitution_4011(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Realization_4006(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Manifestation_4012(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Abstraction_4007(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Usage_4008(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Deployment_4009(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4017(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4010(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Generalization_4015(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InformationFlow_4021(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getFunctionBehavior_2064OutgoingLinks(View view) {
+ FunctionBehavior modelElement = (FunctionBehavior)view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getOutgoingTypeModelFacetLinks_ComponentRealization_4004(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InterfaceRealization_4005(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Substitution_4011(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Realization_4006(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Manifestation_4012(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Abstraction_4007(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Usage_4008(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Deployment_4009(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4017(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4010(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Generalization_4015(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InformationFlow_4021(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getOpaqueBehavior_2065OutgoingLinks(View view) {
+ OpaqueBehavior modelElement = (OpaqueBehavior)view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getOutgoingTypeModelFacetLinks_ComponentRealization_4004(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InterfaceRealization_4005(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Substitution_4011(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Realization_4006(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Manifestation_4012(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Abstraction_4007(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Usage_4008(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Deployment_4009(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4017(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4010(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Generalization_4015(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InformationFlow_4021(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getComponent_2069OutgoingLinks(View view) {
+ Component modelElement = (Component)view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getOutgoingTypeModelFacetLinks_ComponentRealization_4004(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InterfaceRealization_4005(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Substitution_4011(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Realization_4006(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Manifestation_4012(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Abstraction_4007(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Usage_4008(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Deployment_4009(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4017(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4010(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Generalization_4015(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InformationFlow_4021(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getDevice_2070OutgoingLinks(View view) {
+ Device modelElement = (Device)view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getOutgoingTypeModelFacetLinks_ComponentRealization_4004(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InterfaceRealization_4005(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Substitution_4011(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Realization_4006(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Manifestation_4012(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Abstraction_4007(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Usage_4008(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Deployment_4009(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4017(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4010(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Generalization_4015(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InformationFlow_4021(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getExecutionEnvironment_2071OutgoingLinks(View view) {
+ ExecutionEnvironment modelElement = (ExecutionEnvironment)view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getOutgoingTypeModelFacetLinks_ComponentRealization_4004(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InterfaceRealization_4005(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Substitution_4011(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Realization_4006(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Manifestation_4012(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Abstraction_4007(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Usage_4008(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Deployment_4009(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4017(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4010(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Generalization_4015(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InformationFlow_4021(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getNode_2072OutgoingLinks(View view) {
+ Node modelElement = (Node)view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getOutgoingTypeModelFacetLinks_ComponentRealization_4004(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InterfaceRealization_4005(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Substitution_4011(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Realization_4006(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Manifestation_4012(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Abstraction_4007(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Usage_4008(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Deployment_4009(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4017(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4010(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Generalization_4015(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InformationFlow_4021(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getClass_2073OutgoingLinks(View view) {
+ Class modelElement = (Class)view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getOutgoingTypeModelFacetLinks_ComponentRealization_4004(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InterfaceRealization_4005(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Substitution_4011(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Realization_4006(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Manifestation_4012(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Abstraction_4007(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Usage_4008(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Deployment_4009(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4017(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4010(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Generalization_4015(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InformationFlow_4021(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getCollaboration_2075OutgoingLinks(View view) {
+ Collaboration modelElement = (Collaboration)view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getOutgoingTypeModelFacetLinks_ComponentRealization_4004(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InterfaceRealization_4005(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Substitution_4011(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Realization_4006(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Manifestation_4012(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Abstraction_4007(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Usage_4008(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Deployment_4009(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4017(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4010(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Generalization_4015(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InformationFlow_4021(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getInterface_2076OutgoingLinks(View view) {
+ Interface modelElement = (Interface)view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getOutgoingTypeModelFacetLinks_ComponentRealization_4004(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InterfaceRealization_4005(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Substitution_4011(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Realization_4006(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Manifestation_4012(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Abstraction_4007(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Usage_4008(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Deployment_4009(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4017(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4010(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Generalization_4015(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InformationFlow_4021(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getPrimitiveType_2066OutgoingLinks(View view) {
+ PrimitiveType modelElement = (PrimitiveType)view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getOutgoingTypeModelFacetLinks_ComponentRealization_4004(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InterfaceRealization_4005(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Substitution_4011(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Realization_4006(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Manifestation_4012(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Abstraction_4007(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Usage_4008(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Deployment_4009(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4017(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4010(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Generalization_4015(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InformationFlow_4021(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getEnumeration_2067OutgoingLinks(View view) {
+ Enumeration modelElement = (Enumeration)view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getOutgoingTypeModelFacetLinks_ComponentRealization_4004(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InterfaceRealization_4005(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Substitution_4011(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Realization_4006(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Manifestation_4012(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Abstraction_4007(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Usage_4008(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Deployment_4009(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4017(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4010(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Generalization_4015(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InformationFlow_4021(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getDataType_2068OutgoingLinks(View view) {
+ DataType modelElement = (DataType)view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getOutgoingTypeModelFacetLinks_ComponentRealization_4004(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InterfaceRealization_4005(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Substitution_4011(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Realization_4006(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Manifestation_4012(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Abstraction_4007(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Usage_4008(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Deployment_4009(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4017(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4010(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Generalization_4015(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InformationFlow_4021(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getActor_2077OutgoingLinks(View view) {
+ Actor modelElement = (Actor)view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getOutgoingTypeModelFacetLinks_ComponentRealization_4004(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InterfaceRealization_4005(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Substitution_4011(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Realization_4006(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Manifestation_4012(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Abstraction_4007(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Usage_4008(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Deployment_4009(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4017(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4010(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Generalization_4015(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InformationFlow_4021(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getDeploymentSpecification_2078OutgoingLinks(View view) {
+ DeploymentSpecification modelElement = (DeploymentSpecification)view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getOutgoingTypeModelFacetLinks_ComponentRealization_4004(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InterfaceRealization_4005(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Substitution_4011(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Realization_4006(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Manifestation_4012(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Abstraction_4007(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Usage_4008(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Deployment_4009(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4017(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4010(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Generalization_4015(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InformationFlow_4021(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getArtifact_2079OutgoingLinks(View view) {
+ Artifact modelElement = (Artifact)view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getOutgoingTypeModelFacetLinks_ComponentRealization_4004(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InterfaceRealization_4005(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Substitution_4011(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Realization_4006(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Manifestation_4012(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Abstraction_4007(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Usage_4008(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Deployment_4009(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4017(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4010(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Generalization_4015(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InformationFlow_4021(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getInformationItem_2080OutgoingLinks(View view) {
+ InformationItem modelElement = (InformationItem)view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getOutgoingTypeModelFacetLinks_ComponentRealization_4004(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InterfaceRealization_4005(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Substitution_4011(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Realization_4006(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Manifestation_4012(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Abstraction_4007(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Usage_4008(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Deployment_4009(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4017(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4010(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Generalization_4015(modelElement));
+ result.addAll(getOutgoingFeatureModelFacetLinks_InformationItem_Represented_4020(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InformationFlow_4021(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getSignal_2081OutgoingLinks(View view) {
+ Signal modelElement = (Signal)view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getOutgoingTypeModelFacetLinks_ComponentRealization_4004(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InterfaceRealization_4005(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Substitution_4011(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Realization_4006(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Manifestation_4012(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Abstraction_4007(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Usage_4008(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Deployment_4009(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4017(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4010(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Generalization_4015(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InformationFlow_4021(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getUseCase_2082OutgoingLinks(View view) {
+ UseCase modelElement = (UseCase)view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getOutgoingTypeModelFacetLinks_ComponentRealization_4004(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InterfaceRealization_4005(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Substitution_4011(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Realization_4006(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Manifestation_4012(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Abstraction_4007(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Usage_4008(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Deployment_4009(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4017(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4010(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Generalization_4015(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InformationFlow_4021(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getSignalEvent_2083OutgoingLinks(View view) {
+ SignalEvent modelElement = (SignalEvent)view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getOutgoingTypeModelFacetLinks_ComponentRealization_4004(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InterfaceRealization_4005(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Substitution_4011(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Realization_4006(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Manifestation_4012(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Abstraction_4007(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Usage_4008(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Deployment_4009(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4017(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4010(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InformationFlow_4021(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getCallEvent_2084OutgoingLinks(View view) {
+ CallEvent modelElement = (CallEvent)view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getOutgoingTypeModelFacetLinks_ComponentRealization_4004(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InterfaceRealization_4005(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Substitution_4011(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Realization_4006(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Manifestation_4012(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Abstraction_4007(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Usage_4008(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Deployment_4009(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4017(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4010(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InformationFlow_4021(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getAnyReceiveEvent_2085OutgoingLinks(View view) {
+ AnyReceiveEvent modelElement = (AnyReceiveEvent)view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getOutgoingTypeModelFacetLinks_ComponentRealization_4004(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InterfaceRealization_4005(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Substitution_4011(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Realization_4006(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Manifestation_4012(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Abstraction_4007(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Usage_4008(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Deployment_4009(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4017(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4010(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InformationFlow_4021(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getSendSignalEvent_2086OutgoingLinks(View view) {
+ SendSignalEvent modelElement = (SendSignalEvent)view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getOutgoingTypeModelFacetLinks_ComponentRealization_4004(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InterfaceRealization_4005(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Substitution_4011(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Realization_4006(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Manifestation_4012(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Abstraction_4007(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Usage_4008(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Deployment_4009(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4017(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4010(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InformationFlow_4021(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getSendOperationEvent_2087OutgoingLinks(View view) {
+ SendOperationEvent modelElement = (SendOperationEvent)view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getOutgoingTypeModelFacetLinks_ComponentRealization_4004(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InterfaceRealization_4005(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Substitution_4011(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Realization_4006(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Manifestation_4012(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Abstraction_4007(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Usage_4008(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Deployment_4009(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4017(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4010(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InformationFlow_4021(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getChangeEvent_2088OutgoingLinks(View view) {
+ ChangeEvent modelElement = (ChangeEvent)view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getOutgoingTypeModelFacetLinks_ComponentRealization_4004(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InterfaceRealization_4005(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Substitution_4011(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Realization_4006(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Manifestation_4012(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Abstraction_4007(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Usage_4008(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Deployment_4009(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4017(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4010(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InformationFlow_4021(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getTimeEvent_2089OutgoingLinks(View view) {
+ TimeEvent modelElement = (TimeEvent)view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getOutgoingTypeModelFacetLinks_ComponentRealization_4004(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InterfaceRealization_4005(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Substitution_4011(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Realization_4006(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Manifestation_4012(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Abstraction_4007(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Usage_4008(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Deployment_4009(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4017(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4010(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InformationFlow_4021(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getCreationEvent_2090OutgoingLinks(View view) {
+ CreationEvent modelElement = (CreationEvent)view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getOutgoingTypeModelFacetLinks_ComponentRealization_4004(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InterfaceRealization_4005(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Substitution_4011(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Realization_4006(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Manifestation_4012(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Abstraction_4007(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Usage_4008(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Deployment_4009(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4017(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4010(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InformationFlow_4021(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getDestructionEvent_2091OutgoingLinks(View view) {
+ DestructionEvent modelElement = (DestructionEvent)view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getOutgoingTypeModelFacetLinks_ComponentRealization_4004(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InterfaceRealization_4005(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Substitution_4011(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Realization_4006(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Manifestation_4012(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Abstraction_4007(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Usage_4008(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Deployment_4009(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4017(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4010(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InformationFlow_4021(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getExecutionEvent_2092OutgoingLinks(View view) {
+ ExecutionEvent modelElement = (ExecutionEvent)view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getOutgoingTypeModelFacetLinks_ComponentRealization_4004(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InterfaceRealization_4005(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Substitution_4011(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Realization_4006(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Manifestation_4012(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Abstraction_4007(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Usage_4008(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Deployment_4009(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4017(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4010(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InformationFlow_4021(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getDurationObservation_2093OutgoingLinks(View view) {
+ DurationObservation modelElement = (DurationObservation)view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getOutgoingTypeModelFacetLinks_ComponentRealization_4004(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InterfaceRealization_4005(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Substitution_4011(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Realization_4006(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Manifestation_4012(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Abstraction_4007(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Usage_4008(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Deployment_4009(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4017(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4010(modelElement));
+ result.addAll(getOutgoingFeatureModelFacetLinks_DurationObservation_Event_4019(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InformationFlow_4021(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getTimeObservation_2094OutgoingLinks(View view) {
+ TimeObservation modelElement = (TimeObservation)view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getOutgoingTypeModelFacetLinks_ComponentRealization_4004(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InterfaceRealization_4005(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Substitution_4011(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Realization_4006(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Manifestation_4012(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Abstraction_4007(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Usage_4008(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Deployment_4009(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4017(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4010(modelElement));
+ result.addAll(getOutgoingFeatureModelFacetLinks_TimeObservation_Event_4018(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InformationFlow_4021(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getLiteralBoolean_2095OutgoingLinks(View view) {
+ LiteralBoolean modelElement = (LiteralBoolean)view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getOutgoingTypeModelFacetLinks_ComponentRealization_4004(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InterfaceRealization_4005(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Substitution_4011(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Realization_4006(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Manifestation_4012(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Abstraction_4007(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Usage_4008(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Deployment_4009(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4017(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4010(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InformationFlow_4021(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getLiteralInteger_2096OutgoingLinks(View view) {
+ LiteralInteger modelElement = (LiteralInteger)view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getOutgoingTypeModelFacetLinks_ComponentRealization_4004(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InterfaceRealization_4005(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Substitution_4011(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Realization_4006(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Manifestation_4012(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Abstraction_4007(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Usage_4008(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Deployment_4009(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4017(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4010(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InformationFlow_4021(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getLiteralNull_2097OutgoingLinks(View view) {
+ LiteralNull modelElement = (LiteralNull)view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getOutgoingTypeModelFacetLinks_ComponentRealization_4004(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InterfaceRealization_4005(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Substitution_4011(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Realization_4006(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Manifestation_4012(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Abstraction_4007(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Usage_4008(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Deployment_4009(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4017(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4010(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InformationFlow_4021(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getLiteralString_2098OutgoingLinks(View view) {
+ LiteralString modelElement = (LiteralString)view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getOutgoingTypeModelFacetLinks_ComponentRealization_4004(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InterfaceRealization_4005(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Substitution_4011(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Realization_4006(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Manifestation_4012(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Abstraction_4007(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Usage_4008(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Deployment_4009(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4017(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4010(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InformationFlow_4021(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getLiteralUnlimitedNatural_2099OutgoingLinks(View view) {
+ LiteralUnlimitedNatural modelElement = (LiteralUnlimitedNatural)view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getOutgoingTypeModelFacetLinks_ComponentRealization_4004(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InterfaceRealization_4005(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Substitution_4011(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Realization_4006(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Manifestation_4012(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Abstraction_4007(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Usage_4008(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Deployment_4009(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4017(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4010(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InformationFlow_4021(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getStringExpression_2100OutgoingLinks(View view) {
+ StringExpression modelElement = (StringExpression)view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getOutgoingTypeModelFacetLinks_ComponentRealization_4004(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InterfaceRealization_4005(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Substitution_4011(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Realization_4006(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Manifestation_4012(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Abstraction_4007(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Usage_4008(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Deployment_4009(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4017(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4010(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InformationFlow_4021(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getOpaqueExpression_2101OutgoingLinks(View view) {
+ OpaqueExpression modelElement = (OpaqueExpression)view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getOutgoingTypeModelFacetLinks_ComponentRealization_4004(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InterfaceRealization_4005(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Substitution_4011(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Realization_4006(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Manifestation_4012(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Abstraction_4007(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Usage_4008(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Deployment_4009(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4017(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4010(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InformationFlow_4021(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getTimeExpression_2102OutgoingLinks(View view) {
+ TimeExpression modelElement = (TimeExpression)view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getOutgoingTypeModelFacetLinks_ComponentRealization_4004(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InterfaceRealization_4005(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Substitution_4011(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Realization_4006(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Manifestation_4012(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Abstraction_4007(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Usage_4008(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Deployment_4009(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4017(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4010(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InformationFlow_4021(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getExpression_2103OutgoingLinks(View view) {
+ Expression modelElement = (Expression)view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getOutgoingTypeModelFacetLinks_ComponentRealization_4004(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InterfaceRealization_4005(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Substitution_4011(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Realization_4006(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Manifestation_4012(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Abstraction_4007(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Usage_4008(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Deployment_4009(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4017(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4010(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InformationFlow_4021(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getDuration_2104OutgoingLinks(View view) {
+ Duration modelElement = (Duration)view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getOutgoingTypeModelFacetLinks_ComponentRealization_4004(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InterfaceRealization_4005(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Substitution_4011(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Realization_4006(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Manifestation_4012(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Abstraction_4007(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Usage_4008(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Deployment_4009(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4017(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4010(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InformationFlow_4021(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getTimeInterval_2105OutgoingLinks(View view) {
+ TimeInterval modelElement = (TimeInterval)view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getOutgoingTypeModelFacetLinks_ComponentRealization_4004(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InterfaceRealization_4005(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Substitution_4011(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Realization_4006(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Manifestation_4012(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Abstraction_4007(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Usage_4008(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Deployment_4009(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4017(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4010(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InformationFlow_4021(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getDurationInterval_2106OutgoingLinks(View view) {
+ DurationInterval modelElement = (DurationInterval)view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getOutgoingTypeModelFacetLinks_ComponentRealization_4004(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InterfaceRealization_4005(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Substitution_4011(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Realization_4006(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Manifestation_4012(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Abstraction_4007(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Usage_4008(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Deployment_4009(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4017(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4010(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InformationFlow_4021(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getInterval_2107OutgoingLinks(View view) {
+ Interval modelElement = (Interval)view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getOutgoingTypeModelFacetLinks_ComponentRealization_4004(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InterfaceRealization_4005(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Substitution_4011(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Realization_4006(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Manifestation_4012(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Abstraction_4007(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Usage_4008(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Deployment_4009(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4017(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4010(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InformationFlow_4021(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getInstanceValue_2108OutgoingLinks(View view) {
+ InstanceValue modelElement = (InstanceValue)view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getOutgoingTypeModelFacetLinks_ComponentRealization_4004(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InterfaceRealization_4005(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Substitution_4011(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Realization_4006(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Manifestation_4012(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Abstraction_4007(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Usage_4008(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Deployment_4009(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4017(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4010(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InformationFlow_4021(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getComment_2109OutgoingLinks(View view) {
+ Comment modelElement = (Comment)view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getOutgoingFeatureModelFacetLinks_Comment_AnnotatedElement_4002(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getDurationConstraint_2110OutgoingLinks(View view) {
+ DurationConstraint modelElement = (DurationConstraint)view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getOutgoingFeatureModelFacetLinks_Constraint_ConstrainedElement_4003(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_ComponentRealization_4004(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InterfaceRealization_4005(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Substitution_4011(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Realization_4006(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Manifestation_4012(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Abstraction_4007(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Usage_4008(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Deployment_4009(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4017(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4010(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InformationFlow_4021(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getTimeConstraint_2111OutgoingLinks(View view) {
+ TimeConstraint modelElement = (TimeConstraint)view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getOutgoingFeatureModelFacetLinks_Constraint_ConstrainedElement_4003(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_ComponentRealization_4004(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InterfaceRealization_4005(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Substitution_4011(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Realization_4006(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Manifestation_4012(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Abstraction_4007(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Usage_4008(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Deployment_4009(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4017(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4010(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InformationFlow_4021(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getIntervalConstraint_2112OutgoingLinks(View view) {
+ IntervalConstraint modelElement = (IntervalConstraint)view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getOutgoingFeatureModelFacetLinks_Constraint_ConstrainedElement_4003(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_ComponentRealization_4004(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InterfaceRealization_4005(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Substitution_4011(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Realization_4006(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Manifestation_4012(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Abstraction_4007(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Usage_4008(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Deployment_4009(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4017(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4010(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InformationFlow_4021(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getInteractionConstraint_2113OutgoingLinks(View view) {
+ InteractionConstraint modelElement = (InteractionConstraint)view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getOutgoingFeatureModelFacetLinks_Constraint_ConstrainedElement_4003(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_ComponentRealization_4004(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InterfaceRealization_4005(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Substitution_4011(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Realization_4006(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Manifestation_4012(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Abstraction_4007(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Usage_4008(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Deployment_4009(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4017(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4010(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InformationFlow_4021(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getConstraint_2114OutgoingLinks(View view) {
+ Constraint modelElement = (Constraint)view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getOutgoingFeatureModelFacetLinks_Constraint_ConstrainedElement_4003(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_ComponentRealization_4004(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InterfaceRealization_4005(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Substitution_4011(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Realization_4006(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Manifestation_4012(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Abstraction_4007(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Usage_4008(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Deployment_4009(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4017(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4010(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InformationFlow_4021(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getPort_3069OutgoingLinks(View view) {
+ Port modelElement = (Port)view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getOutgoingTypeModelFacetLinks_ComponentRealization_4004(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InterfaceRealization_4005(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Substitution_4011(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Realization_4006(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Manifestation_4012(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Abstraction_4007(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Usage_4008(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Deployment_4009(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4017(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4010(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InformationFlow_4021(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getParameter_3088OutgoingLinks(View view) {
+ Parameter modelElement = (Parameter)view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getOutgoingTypeModelFacetLinks_ComponentRealization_4004(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InterfaceRealization_4005(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Substitution_4011(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Realization_4006(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Manifestation_4012(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Abstraction_4007(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Usage_4008(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Deployment_4009(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4017(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4010(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InformationFlow_4021(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getProperty_3070OutgoingLinks(View view) {
+ Property modelElement = (Property)view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getOutgoingTypeModelFacetLinks_ComponentRealization_4004(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InterfaceRealization_4005(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Substitution_4011(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Realization_4006(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Manifestation_4012(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Abstraction_4007(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Usage_4008(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Deployment_4009(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4017(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4010(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InformationFlow_4021(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getConnectableElement_3115OutgoingLinks(View view) {
+ ConnectableElement modelElement = (ConnectableElement)view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getOutgoingTypeModelFacetLinks_ComponentRealization_4004(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InterfaceRealization_4005(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Substitution_4011(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Realization_4006(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Manifestation_4012(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Abstraction_4007(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Usage_4008(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Deployment_4009(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4017(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4010(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InformationFlow_4021(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getCollaborationUse_3071OutgoingLinks(View view) {
+ CollaborationUse modelElement = (CollaborationUse)view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getOutgoingTypeModelFacetLinks_ComponentRealization_4004(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InterfaceRealization_4005(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Substitution_4011(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Realization_4006(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Manifestation_4012(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Abstraction_4007(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Usage_4008(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Deployment_4009(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4017(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4010(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InformationFlow_4021(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getActivity_3072OutgoingLinks(View view) {
+ Activity modelElement = (Activity)view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getOutgoingTypeModelFacetLinks_ComponentRealization_4004(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InterfaceRealization_4005(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Substitution_4011(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Realization_4006(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Manifestation_4012(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Abstraction_4007(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Usage_4008(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Deployment_4009(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4017(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4010(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Generalization_4015(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InformationFlow_4021(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getInteraction_3073OutgoingLinks(View view) {
+ Interaction modelElement = (Interaction)view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getOutgoingTypeModelFacetLinks_ComponentRealization_4004(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InterfaceRealization_4005(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Substitution_4011(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Realization_4006(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Manifestation_4012(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Abstraction_4007(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Usage_4008(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Deployment_4009(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4017(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4010(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Generalization_4015(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InformationFlow_4021(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getProtocolStateMachine_3074OutgoingLinks(View view) {
+ ProtocolStateMachine modelElement = (ProtocolStateMachine)view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getOutgoingTypeModelFacetLinks_ComponentRealization_4004(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InterfaceRealization_4005(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Substitution_4011(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Realization_4006(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Manifestation_4012(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Abstraction_4007(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Usage_4008(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Deployment_4009(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4017(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4010(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Generalization_4015(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InformationFlow_4021(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getStateMachine_3075OutgoingLinks(View view) {
+ StateMachine modelElement = (StateMachine)view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getOutgoingTypeModelFacetLinks_ComponentRealization_4004(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InterfaceRealization_4005(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Substitution_4011(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Realization_4006(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Manifestation_4012(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Abstraction_4007(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Usage_4008(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Deployment_4009(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4017(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4010(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Generalization_4015(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InformationFlow_4021(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getFunctionBehavior_3076OutgoingLinks(View view) {
+ FunctionBehavior modelElement = (FunctionBehavior)view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getOutgoingTypeModelFacetLinks_ComponentRealization_4004(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InterfaceRealization_4005(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Substitution_4011(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Realization_4006(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Manifestation_4012(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Abstraction_4007(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Usage_4008(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Deployment_4009(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4017(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4010(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Generalization_4015(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InformationFlow_4021(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getOpaqueBehavior_3077OutgoingLinks(View view) {
+ OpaqueBehavior modelElement = (OpaqueBehavior)view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getOutgoingTypeModelFacetLinks_ComponentRealization_4004(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InterfaceRealization_4005(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Substitution_4011(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Realization_4006(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Manifestation_4012(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Abstraction_4007(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Usage_4008(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Deployment_4009(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4017(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4010(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Generalization_4015(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InformationFlow_4021(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getComponent_3081OutgoingLinks(View view) {
+ Component modelElement = (Component)view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getOutgoingTypeModelFacetLinks_ComponentRealization_4004(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InterfaceRealization_4005(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Substitution_4011(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Realization_4006(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Manifestation_4012(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Abstraction_4007(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Usage_4008(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Deployment_4009(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4017(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4010(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Generalization_4015(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InformationFlow_4021(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getDevice_3082OutgoingLinks(View view) {
+ Device modelElement = (Device)view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getOutgoingTypeModelFacetLinks_ComponentRealization_4004(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InterfaceRealization_4005(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Substitution_4011(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Realization_4006(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Manifestation_4012(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Abstraction_4007(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Usage_4008(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Deployment_4009(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4017(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4010(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Generalization_4015(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InformationFlow_4021(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getExecutionEnvironment_3083OutgoingLinks(View view) {
+ ExecutionEnvironment modelElement = (ExecutionEnvironment)view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getOutgoingTypeModelFacetLinks_ComponentRealization_4004(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InterfaceRealization_4005(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Substitution_4011(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Realization_4006(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Manifestation_4012(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Abstraction_4007(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Usage_4008(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Deployment_4009(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4017(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4010(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Generalization_4015(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InformationFlow_4021(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getNode_3084OutgoingLinks(View view) {
+ Node modelElement = (Node)view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getOutgoingTypeModelFacetLinks_ComponentRealization_4004(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InterfaceRealization_4005(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Substitution_4011(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Realization_4006(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Manifestation_4012(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Abstraction_4007(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Usage_4008(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Deployment_4009(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4017(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4010(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Generalization_4015(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InformationFlow_4021(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getClass_3085OutgoingLinks(View view) {
+ Class modelElement = (Class)view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getOutgoingTypeModelFacetLinks_ComponentRealization_4004(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InterfaceRealization_4005(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Substitution_4011(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Realization_4006(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Manifestation_4012(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Abstraction_4007(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Usage_4008(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Deployment_4009(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4017(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4010(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Generalization_4015(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InformationFlow_4021(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getCollaboration_3086OutgoingLinks(View view) {
+ Collaboration modelElement = (Collaboration)view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getOutgoingTypeModelFacetLinks_ComponentRealization_4004(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InterfaceRealization_4005(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Substitution_4011(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Realization_4006(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Manifestation_4012(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Abstraction_4007(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Usage_4008(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Deployment_4009(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4017(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4010(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Generalization_4015(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InformationFlow_4021(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getInterface_3087OutgoingLinks(View view) {
+ Interface modelElement = (Interface)view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getOutgoingTypeModelFacetLinks_ComponentRealization_4004(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InterfaceRealization_4005(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Substitution_4011(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Realization_4006(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Manifestation_4012(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Abstraction_4007(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Usage_4008(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Deployment_4009(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4017(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4010(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Generalization_4015(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InformationFlow_4021(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getPrimitiveType_3078OutgoingLinks(View view) {
+ PrimitiveType modelElement = (PrimitiveType)view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getOutgoingTypeModelFacetLinks_ComponentRealization_4004(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InterfaceRealization_4005(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Substitution_4011(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Realization_4006(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Manifestation_4012(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Abstraction_4007(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Usage_4008(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Deployment_4009(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4017(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4010(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Generalization_4015(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InformationFlow_4021(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getEnumeration_3079OutgoingLinks(View view) {
+ Enumeration modelElement = (Enumeration)view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getOutgoingTypeModelFacetLinks_ComponentRealization_4004(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InterfaceRealization_4005(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Substitution_4011(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Realization_4006(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Manifestation_4012(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Abstraction_4007(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Usage_4008(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Deployment_4009(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4017(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4010(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Generalization_4015(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InformationFlow_4021(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getDataType_3080OutgoingLinks(View view) {
+ DataType modelElement = (DataType)view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getOutgoingTypeModelFacetLinks_ComponentRealization_4004(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InterfaceRealization_4005(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Substitution_4011(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Realization_4006(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Manifestation_4012(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Abstraction_4007(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Usage_4008(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Deployment_4009(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4017(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4010(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Generalization_4015(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InformationFlow_4021(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getActor_3091OutgoingLinks(View view) {
+ Actor modelElement = (Actor)view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getOutgoingTypeModelFacetLinks_ComponentRealization_4004(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InterfaceRealization_4005(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Substitution_4011(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Realization_4006(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Manifestation_4012(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Abstraction_4007(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Usage_4008(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Deployment_4009(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4017(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4010(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Generalization_4015(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InformationFlow_4021(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getDeploymentSpecification_3092OutgoingLinks(View view) {
+ DeploymentSpecification modelElement = (DeploymentSpecification)view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getOutgoingTypeModelFacetLinks_ComponentRealization_4004(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InterfaceRealization_4005(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Substitution_4011(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Realization_4006(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Manifestation_4012(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Abstraction_4007(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Usage_4008(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Deployment_4009(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4017(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4010(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Generalization_4015(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InformationFlow_4021(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getArtifact_3093OutgoingLinks(View view) {
+ Artifact modelElement = (Artifact)view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getOutgoingTypeModelFacetLinks_ComponentRealization_4004(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InterfaceRealization_4005(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Substitution_4011(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Realization_4006(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Manifestation_4012(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Abstraction_4007(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Usage_4008(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Deployment_4009(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4017(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4010(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Generalization_4015(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InformationFlow_4021(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getInformationItem_3094OutgoingLinks(View view) {
+ InformationItem modelElement = (InformationItem)view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getOutgoingTypeModelFacetLinks_ComponentRealization_4004(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InterfaceRealization_4005(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Substitution_4011(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Realization_4006(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Manifestation_4012(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Abstraction_4007(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Usage_4008(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Deployment_4009(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4017(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4010(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Generalization_4015(modelElement));
+ result.addAll(getOutgoingFeatureModelFacetLinks_InformationItem_Represented_4020(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InformationFlow_4021(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getSignal_3095OutgoingLinks(View view) {
+ Signal modelElement = (Signal)view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getOutgoingTypeModelFacetLinks_ComponentRealization_4004(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InterfaceRealization_4005(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Substitution_4011(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Realization_4006(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Manifestation_4012(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Abstraction_4007(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Usage_4008(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Deployment_4009(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4017(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4010(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Generalization_4015(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InformationFlow_4021(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getUseCase_3096OutgoingLinks(View view) {
+ UseCase modelElement = (UseCase)view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getOutgoingTypeModelFacetLinks_ComponentRealization_4004(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InterfaceRealization_4005(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Substitution_4011(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Realization_4006(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Manifestation_4012(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Abstraction_4007(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Usage_4008(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Deployment_4009(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4017(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4010(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Generalization_4015(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InformationFlow_4021(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getComment_3097OutgoingLinks(View view) {
+ Comment modelElement = (Comment)view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getOutgoingFeatureModelFacetLinks_Comment_AnnotatedElement_4002(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getDurationConstraint_3116OutgoingLinks(View view) {
+ DurationConstraint modelElement = (DurationConstraint)view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getOutgoingFeatureModelFacetLinks_Constraint_ConstrainedElement_4003(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_ComponentRealization_4004(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InterfaceRealization_4005(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Substitution_4011(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Realization_4006(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Manifestation_4012(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Abstraction_4007(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Usage_4008(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Deployment_4009(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4017(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4010(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InformationFlow_4021(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getTimeConstraint_3117OutgoingLinks(View view) {
+ TimeConstraint modelElement = (TimeConstraint)view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getOutgoingFeatureModelFacetLinks_Constraint_ConstrainedElement_4003(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_ComponentRealization_4004(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InterfaceRealization_4005(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Substitution_4011(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Realization_4006(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Manifestation_4012(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Abstraction_4007(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Usage_4008(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Deployment_4009(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4017(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4010(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InformationFlow_4021(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getIntervalConstraint_3118OutgoingLinks(View view) {
+ IntervalConstraint modelElement = (IntervalConstraint)view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getOutgoingFeatureModelFacetLinks_Constraint_ConstrainedElement_4003(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_ComponentRealization_4004(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InterfaceRealization_4005(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Substitution_4011(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Realization_4006(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Manifestation_4012(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Abstraction_4007(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Usage_4008(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Deployment_4009(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4017(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4010(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InformationFlow_4021(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getInteractionConstraint_3119OutgoingLinks(View view) {
+ InteractionConstraint modelElement = (InteractionConstraint)view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getOutgoingFeatureModelFacetLinks_Constraint_ConstrainedElement_4003(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_ComponentRealization_4004(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InterfaceRealization_4005(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Substitution_4011(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Realization_4006(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Manifestation_4012(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Abstraction_4007(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Usage_4008(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Deployment_4009(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4017(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4010(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InformationFlow_4021(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getConstraint_3120OutgoingLinks(View view) {
+ Constraint modelElement = (Constraint)view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getOutgoingFeatureModelFacetLinks_Constraint_ConstrainedElement_4003(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_ComponentRealization_4004(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InterfaceRealization_4005(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Substitution_4011(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Realization_4006(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Manifestation_4012(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Abstraction_4007(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Usage_4008(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Deployment_4009(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4017(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4010(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InformationFlow_4021(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getProperty_3101OutgoingLinks(View view) {
+ return Collections.emptyList();
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getOperation_3102OutgoingLinks(View view) {
+ return Collections.emptyList();
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getReception_3100OutgoingLinks(View view) {
+ return Collections.emptyList();
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getEnumerationLiteral_3066OutgoingLinks(View view) {
+ return Collections.emptyList();
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getActivity_3103OutgoingLinks(View view) {
+ return Collections.emptyList();
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getInteraction_3104OutgoingLinks(View view) {
+ return Collections.emptyList();
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getProtocolStateMachine_3105OutgoingLinks(View view) {
+ return Collections.emptyList();
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getStateMachine_3106OutgoingLinks(View view) {
+ return Collections.emptyList();
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getFunctionBehavior_3107OutgoingLinks(View view) {
+ return Collections.emptyList();
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getOpaqueBehavior_3108OutgoingLinks(View view) {
+ return Collections.emptyList();
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getCollaboration_3109OutgoingLinks(View view) {
+ return Collections.emptyList();
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getInterface_3110OutgoingLinks(View view) {
+ return Collections.emptyList();
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getEnumeration_3111OutgoingLinks(View view) {
+ return Collections.emptyList();
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getPrimitiveType_3112OutgoingLinks(View view) {
+ return Collections.emptyList();
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getDataType_3113OutgoingLinks(View view) {
+ return Collections.emptyList();
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getClass_3114OutgoingLinks(View view) {
+ return Collections.emptyList();
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getComponentRealization_4004OutgoingLinks(View view) {
+ ComponentRealization modelElement = (ComponentRealization)view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getOutgoingTypeModelFacetLinks_ComponentRealization_4004(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InterfaceRealization_4005(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Substitution_4011(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Realization_4006(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Manifestation_4012(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Abstraction_4007(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Usage_4008(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Deployment_4009(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4017(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4010(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InformationFlow_4021(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getInterfaceRealization_4005OutgoingLinks(View view) {
+ InterfaceRealization modelElement = (InterfaceRealization)view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getOutgoingTypeModelFacetLinks_ComponentRealization_4004(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InterfaceRealization_4005(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Substitution_4011(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Realization_4006(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Manifestation_4012(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Abstraction_4007(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Usage_4008(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Deployment_4009(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4017(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4010(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InformationFlow_4021(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getSubstitution_4011OutgoingLinks(View view) {
+ Substitution modelElement = (Substitution)view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getOutgoingTypeModelFacetLinks_ComponentRealization_4004(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InterfaceRealization_4005(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Substitution_4011(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Realization_4006(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Manifestation_4012(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Abstraction_4007(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Usage_4008(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Deployment_4009(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4017(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4010(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InformationFlow_4021(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getRealization_4006OutgoingLinks(View view) {
+ Realization modelElement = (Realization)view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getOutgoingTypeModelFacetLinks_ComponentRealization_4004(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InterfaceRealization_4005(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Substitution_4011(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Realization_4006(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Manifestation_4012(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Abstraction_4007(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Usage_4008(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Deployment_4009(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4017(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4010(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InformationFlow_4021(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getManifestation_4012OutgoingLinks(View view) {
+ Manifestation modelElement = (Manifestation)view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getOutgoingTypeModelFacetLinks_ComponentRealization_4004(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InterfaceRealization_4005(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Substitution_4011(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Realization_4006(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Manifestation_4012(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Abstraction_4007(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Usage_4008(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Deployment_4009(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4017(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4010(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InformationFlow_4021(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getAbstraction_4007OutgoingLinks(View view) {
+ Abstraction modelElement = (Abstraction)view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getOutgoingTypeModelFacetLinks_ComponentRealization_4004(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InterfaceRealization_4005(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Substitution_4011(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Realization_4006(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Manifestation_4012(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Abstraction_4007(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Usage_4008(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Deployment_4009(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4017(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4010(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InformationFlow_4021(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getUsage_4008OutgoingLinks(View view) {
+ Usage modelElement = (Usage)view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getOutgoingTypeModelFacetLinks_ComponentRealization_4004(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InterfaceRealization_4005(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Substitution_4011(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Realization_4006(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Manifestation_4012(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Abstraction_4007(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Usage_4008(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Deployment_4009(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4017(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4010(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InformationFlow_4021(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getDeployment_4009OutgoingLinks(View view) {
+ Deployment modelElement = (Deployment)view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getOutgoingTypeModelFacetLinks_ComponentRealization_4004(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InterfaceRealization_4005(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Substitution_4011(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Realization_4006(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Manifestation_4012(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Abstraction_4007(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Usage_4008(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Deployment_4009(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4017(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4010(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InformationFlow_4021(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getDependency_4017OutgoingLinks(View view) {
+ Dependency modelElement = (Dependency)view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getOutgoingTypeModelFacetLinks_ComponentRealization_4004(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InterfaceRealization_4005(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Substitution_4011(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Realization_4006(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Manifestation_4012(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Abstraction_4007(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Usage_4008(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Deployment_4009(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4017(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4010(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InformationFlow_4021(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getDependency_4010OutgoingLinks(View view) {
+ Dependency modelElement = (Dependency)view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getOutgoingTypeModelFacetLinks_ComponentRealization_4004(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InterfaceRealization_4005(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Substitution_4011(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Realization_4006(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Manifestation_4012(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Abstraction_4007(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Usage_4008(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Deployment_4009(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4017(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4010(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InformationFlow_4021(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getConnector_4013OutgoingLinks(View view) {
+ Connector modelElement = (Connector)view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getOutgoingTypeModelFacetLinks_ComponentRealization_4004(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InterfaceRealization_4005(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Substitution_4011(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Realization_4006(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Manifestation_4012(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Abstraction_4007(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Usage_4008(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Deployment_4009(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4017(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4010(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InformationFlow_4021(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getGeneralization_4015OutgoingLinks(View view) {
+ return Collections.emptyList();
+ }
+
+ /**
+ * @generated
+ */
+ public static List<UMLLinkDescriptor> getInformationFlow_4021OutgoingLinks(View view) {
+ InformationFlow modelElement = (InformationFlow)view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getOutgoingTypeModelFacetLinks_ComponentRealization_4004(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InterfaceRealization_4005(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Substitution_4011(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Realization_4006(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Manifestation_4012(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Abstraction_4007(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Usage_4008(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Deployment_4009(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4017(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4010(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_InformationFlow_4021(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ private static Collection<UMLLinkDescriptor> getContainedTypeModelFacetLinks_ComponentRealization_4004(Package container) {
+ Collection result = new LinkedList();
+ for(Iterator links = container.getPackagedElements().iterator(); links.hasNext();) {
+ EObject linkObject = (EObject)links.next();
+ if(false == linkObject instanceof ComponentRealization) {
+ continue;
+ }
+ ComponentRealization link = (ComponentRealization)linkObject;
+ if(ComponentRealizationEditPart.VISUAL_ID != UMLVisualIDRegistry.getLinkWithClassVisualID(link)) {
+ continue;
+ }
+
+ List targets = link.getSuppliers();
+ Object theTarget = targets.size() == 1 ? targets.get(0) : null;
+ if(false == theTarget instanceof NamedElement) {
+ continue;
+ }
+ NamedElement dst = (NamedElement)theTarget;
+ List sources = link.getClients();
+
+ Object theSource = sources.size() >= 1 ? sources.get(0) : null;
+
+ if(false == theSource instanceof NamedElement) {
+ continue;
+ }
+ NamedElement src = (NamedElement)theSource;
+ result.add(new UMLLinkDescriptor(src, dst, link, UMLElementTypes.ComponentRealization_4004, ComponentRealizationEditPart.VISUAL_ID));
+
+ }
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ private static Collection<UMLLinkDescriptor> getContainedTypeModelFacetLinks_InterfaceRealization_4005(Package container) {
+ Collection result = new LinkedList();
+ for(Iterator links = container.getPackagedElements().iterator(); links.hasNext();) {
+ EObject linkObject = (EObject)links.next();
+ if(false == linkObject instanceof InterfaceRealization) {
+ continue;
+ }
+ InterfaceRealization link = (InterfaceRealization)linkObject;
+ if(InterfaceRealizationEditPart.VISUAL_ID != UMLVisualIDRegistry.getLinkWithClassVisualID(link)) {
+ continue;
+ }
+
+ List targets = link.getSuppliers();
+ Object theTarget = targets.size() == 1 ? targets.get(0) : null;
+ if(false == theTarget instanceof NamedElement) {
+ continue;
+ }
+ NamedElement dst = (NamedElement)theTarget;
+ List sources = link.getClients();
+
+ Object theSource = sources.size() >= 1 ? sources.get(0) : null;
+
+ if(false == theSource instanceof NamedElement) {
+ continue;
+ }
+ NamedElement src = (NamedElement)theSource;
+ result.add(new UMLLinkDescriptor(src, dst, link, UMLElementTypes.InterfaceRealization_4005, InterfaceRealizationEditPart.VISUAL_ID));
+
+ }
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ private static Collection<UMLLinkDescriptor> getContainedTypeModelFacetLinks_Substitution_4011(Package container) {
+ Collection result = new LinkedList();
+ for(Iterator links = container.getPackagedElements().iterator(); links.hasNext();) {
+ EObject linkObject = (EObject)links.next();
+ if(false == linkObject instanceof Substitution) {
+ continue;
+ }
+ Substitution link = (Substitution)linkObject;
+ if(SubstitutionEditPart.VISUAL_ID != UMLVisualIDRegistry.getLinkWithClassVisualID(link)) {
+ continue;
+ }
+
+ List targets = link.getSuppliers();
+ Object theTarget = targets.size() == 1 ? targets.get(0) : null;
+ if(false == theTarget instanceof NamedElement) {
+ continue;
+ }
+ NamedElement dst = (NamedElement)theTarget;
+ List sources = link.getClients();
+
+ Object theSource = sources.size() >= 1 ? sources.get(0) : null;
+
+ if(false == theSource instanceof NamedElement) {
+ continue;
+ }
+ NamedElement src = (NamedElement)theSource;
+ result.add(new UMLLinkDescriptor(src, dst, link, UMLElementTypes.Substitution_4011, SubstitutionEditPart.VISUAL_ID));
+
+ }
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ private static Collection<UMLLinkDescriptor> getContainedTypeModelFacetLinks_Realization_4006(Package container) {
+ Collection result = new LinkedList();
+ for(Iterator links = container.getPackagedElements().iterator(); links.hasNext();) {
+ EObject linkObject = (EObject)links.next();
+ if(false == linkObject instanceof Realization) {
+ continue;
+ }
+ Realization link = (Realization)linkObject;
+ if(RealizationEditPart.VISUAL_ID != UMLVisualIDRegistry.getLinkWithClassVisualID(link)) {
+ continue;
+ }
+
+ List targets = link.getSuppliers();
+ Object theTarget = targets.size() == 1 ? targets.get(0) : null;
+ if(false == theTarget instanceof NamedElement) {
+ continue;
+ }
+ NamedElement dst = (NamedElement)theTarget;
+ List sources = link.getClients();
+
+ Object theSource = sources.size() >= 1 ? sources.get(0) : null;
+
+ if(false == theSource instanceof NamedElement) {
+ continue;
+ }
+ NamedElement src = (NamedElement)theSource;
+ result.add(new UMLLinkDescriptor(src, dst, link, UMLElementTypes.Realization_4006, RealizationEditPart.VISUAL_ID));
+
+ }
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ private static Collection<UMLLinkDescriptor> getContainedTypeModelFacetLinks_Manifestation_4012(Package container) {
+ Collection result = new LinkedList();
+ for(Iterator links = container.getPackagedElements().iterator(); links.hasNext();) {
+ EObject linkObject = (EObject)links.next();
+ if(false == linkObject instanceof Manifestation) {
+ continue;
+ }
+ Manifestation link = (Manifestation)linkObject;
+ if(ManifestationEditPart.VISUAL_ID != UMLVisualIDRegistry.getLinkWithClassVisualID(link)) {
+ continue;
+ }
+
+ List targets = link.getSuppliers();
+ Object theTarget = targets.size() == 1 ? targets.get(0) : null;
+ if(false == theTarget instanceof NamedElement) {
+ continue;
+ }
+ NamedElement dst = (NamedElement)theTarget;
+ List sources = link.getClients();
+
+ Object theSource = sources.size() >= 1 ? sources.get(0) : null;
+
+ if(false == theSource instanceof NamedElement) {
+ continue;
+ }
+ NamedElement src = (NamedElement)theSource;
+ result.add(new UMLLinkDescriptor(src, dst, link, UMLElementTypes.Manifestation_4012, ManifestationEditPart.VISUAL_ID));
+
+ }
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ private static Collection<UMLLinkDescriptor> getContainedTypeModelFacetLinks_Abstraction_4007(Package container) {
+ Collection result = new LinkedList();
+ for(Iterator links = container.getPackagedElements().iterator(); links.hasNext();) {
+ EObject linkObject = (EObject)links.next();
+ if(false == linkObject instanceof Abstraction) {
+ continue;
+ }
+ Abstraction link = (Abstraction)linkObject;
+ if(AbstractionEditPart.VISUAL_ID != UMLVisualIDRegistry.getLinkWithClassVisualID(link)) {
+ continue;
+ }
+
+ List targets = link.getSuppliers();
+ Object theTarget = targets.size() == 1 ? targets.get(0) : null;
+ if(false == theTarget instanceof NamedElement) {
+ continue;
+ }
+ NamedElement dst = (NamedElement)theTarget;
+ List sources = link.getClients();
+
+ Object theSource = sources.size() >= 1 ? sources.get(0) : null;
+
+ if(false == theSource instanceof NamedElement) {
+ continue;
+ }
+ NamedElement src = (NamedElement)theSource;
+ result.add(new UMLLinkDescriptor(src, dst, link, UMLElementTypes.Abstraction_4007, AbstractionEditPart.VISUAL_ID));
+
+ }
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ private static Collection<UMLLinkDescriptor> getContainedTypeModelFacetLinks_Usage_4008(Package container) {
+ Collection result = new LinkedList();
+ for(Iterator links = container.getPackagedElements().iterator(); links.hasNext();) {
+ EObject linkObject = (EObject)links.next();
+ if(false == linkObject instanceof Usage) {
+ continue;
+ }
+ Usage link = (Usage)linkObject;
+ if(UsageEditPart.VISUAL_ID != UMLVisualIDRegistry.getLinkWithClassVisualID(link)) {
+ continue;
+ }
+
+ List targets = link.getSuppliers();
+ Object theTarget = targets.size() == 1 ? targets.get(0) : null;
+ if(false == theTarget instanceof NamedElement) {
+ continue;
+ }
+ NamedElement dst = (NamedElement)theTarget;
+ List sources = link.getClients();
+
+ Object theSource = sources.size() >= 1 ? sources.get(0) : null;
+
+ if(false == theSource instanceof NamedElement) {
+ continue;
+ }
+ NamedElement src = (NamedElement)theSource;
+ result.add(new UMLLinkDescriptor(src, dst, link, UMLElementTypes.Usage_4008, UsageEditPart.VISUAL_ID));
+
+ }
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ private static Collection<UMLLinkDescriptor> getContainedTypeModelFacetLinks_Deployment_4009(Package container) {
+ Collection result = new LinkedList();
+ for(Iterator links = container.getPackagedElements().iterator(); links.hasNext();) {
+ EObject linkObject = (EObject)links.next();
+ if(false == linkObject instanceof Deployment) {
+ continue;
+ }
+ Deployment link = (Deployment)linkObject;
+ if(DeploymentEditPart.VISUAL_ID != UMLVisualIDRegistry.getLinkWithClassVisualID(link)) {
+ continue;
+ }
+
+ List targets = link.getSuppliers();
+ Object theTarget = targets.size() == 1 ? targets.get(0) : null;
+ if(false == theTarget instanceof NamedElement) {
+ continue;
+ }
+ NamedElement dst = (NamedElement)theTarget;
+ List sources = link.getClients();
+
+ Object theSource = sources.size() >= 1 ? sources.get(0) : null;
+
+ if(false == theSource instanceof NamedElement) {
+ continue;
+ }
+ NamedElement src = (NamedElement)theSource;
+ result.add(new UMLLinkDescriptor(src, dst, link, UMLElementTypes.Deployment_4009, DeploymentEditPart.VISUAL_ID));
+
+ }
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ private static Collection<UMLLinkDescriptor> getContainedTypeModelFacetLinks_Dependency_4017(Package container) {
+ Collection result = new LinkedList();
+ for(Iterator links = container.getPackagedElements().iterator(); links.hasNext();) {
+ EObject linkObject = (EObject)links.next();
+ if(false == linkObject instanceof Dependency) {
+ continue;
+ }
+ Dependency link = (Dependency)linkObject;
+ if(RoleBindingEditPart.VISUAL_ID != UMLVisualIDRegistry.getLinkWithClassVisualID(link)) {
+ continue;
+ }
+
+ List targets = link.getSuppliers();
+ Object theTarget = targets.size() == 1 ? targets.get(0) : null;
+ if(false == theTarget instanceof NamedElement) {
+ continue;
+ }
+ NamedElement dst = (NamedElement)theTarget;
+ List sources = link.getClients();
+
+ Object theSource = sources.size() >= 1 ? sources.get(0) : null;
+
+ if(false == theSource instanceof NamedElement) {
+ continue;
+ }
+ NamedElement src = (NamedElement)theSource;
+ result.add(new UMLLinkDescriptor(src, dst, link, UMLElementTypes.Dependency_4017, RoleBindingEditPart.VISUAL_ID));
+
+ }
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ private static Collection<UMLLinkDescriptor> getContainedTypeModelFacetLinks_Dependency_4010(Package container) {
+ Collection result = new LinkedList();
+ for(Iterator links = container.getPackagedElements().iterator(); links.hasNext();) {
+ EObject linkObject = (EObject)links.next();
+ if(false == linkObject instanceof Dependency) {
+ continue;
+ }
+ Dependency link = (Dependency)linkObject;
+ if(DependencyEditPart.VISUAL_ID != UMLVisualIDRegistry.getLinkWithClassVisualID(link)) {
+ continue;
+ }
+
+ List targets = link.getSuppliers();
+ Object theTarget = targets.size() == 1 ? targets.get(0) : null;
+ if(false == theTarget instanceof NamedElement) {
+ continue;
+ }
+ NamedElement dst = (NamedElement)theTarget;
+ List sources = link.getClients();
+
+ Object theSource = sources.size() >= 1 ? sources.get(0) : null;
+
+ if(false == theSource instanceof NamedElement) {
+ continue;
+ }
+ NamedElement src = (NamedElement)theSource;
+ result.add(new UMLLinkDescriptor(src, dst, link, UMLElementTypes.Dependency_4010, DependencyEditPart.VISUAL_ID));
+
+ }
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ private static Collection<UMLLinkDescriptor> getContainedTypeModelFacetLinks_Connector_4013(StructuredClassifier container) {
+ Collection result = new LinkedList();
+ for(Iterator links = container.getOwnedConnectors().iterator(); links.hasNext();) {
+ EObject linkObject = (EObject)links.next();
+ if(false == linkObject instanceof Connector) {
+ continue;
+ }
+ Connector link = (Connector)linkObject;
+ if(ConnectorEditPart.VISUAL_ID != UMLVisualIDRegistry.getLinkWithClassVisualID(link)) {
+ continue;
+ }
+
+ //Papyrus GenCode
+ List targets = link.getEnds();
+ Object theTarget = targets.size() >= 2 ? targets.get(1) : null;
+ if(false == theTarget instanceof ConnectorEnd) {
+ continue;
+ }
+ ConnectorEnd dst = (ConnectorEnd)theTarget;
+ List sources = link.getEnds();
+
+ Object theSource = sources.size() >= 1 ? sources.get(0) : null;
+
+ if(false == theSource instanceof ConnectorEnd) {
+ continue;
+ }
+ ConnectorEnd src = (ConnectorEnd)theSource;
+ result.add(new UMLLinkDescriptor(src, dst, link, UMLElementTypes.Connector_4013, ConnectorEditPart.VISUAL_ID));
+
+ }
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ private static Collection<UMLLinkDescriptor> getContainedTypeModelFacetLinks_Generalization_4015(Classifier container) {
+ Collection result = new LinkedList();
+ for(Iterator links = container.getGeneralizations().iterator(); links.hasNext();) {
+ EObject linkObject = (EObject)links.next();
+ if(false == linkObject instanceof Generalization) {
+ continue;
+ }
+ Generalization link = (Generalization)linkObject;
+ if(GeneralizationEditPart.VISUAL_ID != UMLVisualIDRegistry.getLinkWithClassVisualID(link)) {
+ continue;
+ }
+
+ Classifier dst = link.getGeneral();
+ Classifier src = link.getSpecific();
+ result.add(new UMLLinkDescriptor(src, dst, link, UMLElementTypes.Generalization_4015, GeneralizationEditPart.VISUAL_ID));
+
+ }
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ private static Collection<UMLLinkDescriptor> getContainedTypeModelFacetLinks_InformationFlow_4021(Package container) {
+ Collection result = new LinkedList();
+ for(Iterator links = container.getPackagedElements().iterator(); links.hasNext();) {
+ EObject linkObject = (EObject)links.next();
+ if(false == linkObject instanceof InformationFlow) {
+ continue;
+ }
+ InformationFlow link = (InformationFlow)linkObject;
+ if(InformationFlowEditPart.VISUAL_ID != UMLVisualIDRegistry.getLinkWithClassVisualID(link)) {
+ continue;
+ }
+
+ List targets = link.getInformationTargets();
+ Object theTarget = targets.size() == 1 ? targets.get(0) : null;
+ if(false == theTarget instanceof NamedElement) {
+ continue;
+ }
+ NamedElement dst = (NamedElement)theTarget;
+ List sources = link.getInformationSources();
+
+ Object theSource = sources.size() >= 1 ? sources.get(0) : null;
+
+ if(false == theSource instanceof NamedElement) {
+ continue;
+ }
+ NamedElement src = (NamedElement)theSource;
+ result.add(new UMLLinkDescriptor(src, dst, link, UMLElementTypes.InformationFlow_4021, InformationFlowEditPart.VISUAL_ID));
+
+ }
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ private static Collection<UMLLinkDescriptor> getIncomingFeatureModelFacetLinks_Comment_AnnotatedElement_4002(Element target, Map<EObject, Collection<EStructuralFeature.Setting>> crossReferences) {
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ Collection<EStructuralFeature.Setting> settings = crossReferences.get(target);
+ for(EStructuralFeature.Setting setting : settings) {
+ if(setting.getEStructuralFeature() == UMLPackage.eINSTANCE.getComment_AnnotatedElement()) {
+ result.add(new UMLLinkDescriptor(setting.getEObject(), target, UMLElementTypes.CommentAnnotatedElement_4002, CommentAnnotatedElementEditPart.VISUAL_ID));
+ }
+ }
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ private static Collection<UMLLinkDescriptor> getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElement_4003(Element target, Map<EObject, Collection<EStructuralFeature.Setting>> crossReferences) {
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ Collection<EStructuralFeature.Setting> settings = crossReferences.get(target);
+ for(EStructuralFeature.Setting setting : settings) {
+ if(setting.getEStructuralFeature() == UMLPackage.eINSTANCE.getConstraint_ConstrainedElement()) {
+ result.add(new UMLLinkDescriptor(setting.getEObject(), target, UMLElementTypes.ConstraintConstrainedElement_4003, ConstraintConstrainedElementEditPart.VISUAL_ID));
+ }
+ }
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ private static Collection<UMLLinkDescriptor> getIncomingTypeModelFacetLinks_ComponentRealization_4004(NamedElement target, Map<EObject, Collection<EStructuralFeature.Setting>> crossReferences) {
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ Collection<EStructuralFeature.Setting> settings = crossReferences.get(target);
+ for(EStructuralFeature.Setting setting : settings) {
+ if(setting.getEStructuralFeature() != UMLPackage.eINSTANCE.getDependency_Supplier() || false == setting.getEObject() instanceof ComponentRealization) {
+ continue;
+ }
+ ComponentRealization link = (ComponentRealization)setting.getEObject();
+ if(ComponentRealizationEditPart.VISUAL_ID != UMLVisualIDRegistry.getLinkWithClassVisualID(link)) {
+ continue;
+ }
+ List sources = link.getClients();
+
+ Object theSource = sources.size() >= 1 ? sources.get(0) : null;
+
+ if(false == theSource instanceof NamedElement) {
+ continue;
+ }
+ NamedElement src = (NamedElement)theSource;
+ result.add(new UMLLinkDescriptor(src, target, link, UMLElementTypes.ComponentRealization_4004, ComponentRealizationEditPart.VISUAL_ID));
+ }
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ private static Collection<UMLLinkDescriptor> getIncomingTypeModelFacetLinks_InterfaceRealization_4005(NamedElement target, Map<EObject, Collection<EStructuralFeature.Setting>> crossReferences) {
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ Collection<EStructuralFeature.Setting> settings = crossReferences.get(target);
+ for(EStructuralFeature.Setting setting : settings) {
+ if(setting.getEStructuralFeature() != UMLPackage.eINSTANCE.getDependency_Supplier() || false == setting.getEObject() instanceof InterfaceRealization) {
+ continue;
+ }
+ InterfaceRealization link = (InterfaceRealization)setting.getEObject();
+ if(InterfaceRealizationEditPart.VISUAL_ID != UMLVisualIDRegistry.getLinkWithClassVisualID(link)) {
+ continue;
+ }
+ List sources = link.getClients();
+
+ Object theSource = sources.size() >= 1 ? sources.get(0) : null;
+
+ if(false == theSource instanceof NamedElement) {
+ continue;
+ }
+ NamedElement src = (NamedElement)theSource;
+ result.add(new UMLLinkDescriptor(src, target, link, UMLElementTypes.InterfaceRealization_4005, InterfaceRealizationEditPart.VISUAL_ID));
+ }
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ private static Collection<UMLLinkDescriptor> getIncomingTypeModelFacetLinks_Substitution_4011(NamedElement target, Map<EObject, Collection<EStructuralFeature.Setting>> crossReferences) {
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ Collection<EStructuralFeature.Setting> settings = crossReferences.get(target);
+ for(EStructuralFeature.Setting setting : settings) {
+ if(setting.getEStructuralFeature() != UMLPackage.eINSTANCE.getDependency_Supplier() || false == setting.getEObject() instanceof Substitution) {
+ continue;
+ }
+ Substitution link = (Substitution)setting.getEObject();
+ if(SubstitutionEditPart.VISUAL_ID != UMLVisualIDRegistry.getLinkWithClassVisualID(link)) {
+ continue;
+ }
+ List sources = link.getClients();
+
+ Object theSource = sources.size() >= 1 ? sources.get(0) : null;
+
+ if(false == theSource instanceof NamedElement) {
+ continue;
+ }
+ NamedElement src = (NamedElement)theSource;
+ result.add(new UMLLinkDescriptor(src, target, link, UMLElementTypes.Substitution_4011, SubstitutionEditPart.VISUAL_ID));
+ }
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ private static Collection<UMLLinkDescriptor> getIncomingTypeModelFacetLinks_Realization_4006(NamedElement target, Map<EObject, Collection<EStructuralFeature.Setting>> crossReferences) {
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ Collection<EStructuralFeature.Setting> settings = crossReferences.get(target);
+ for(EStructuralFeature.Setting setting : settings) {
+ if(setting.getEStructuralFeature() != UMLPackage.eINSTANCE.getDependency_Supplier() || false == setting.getEObject() instanceof Realization) {
+ continue;
+ }
+ Realization link = (Realization)setting.getEObject();
+ if(RealizationEditPart.VISUAL_ID != UMLVisualIDRegistry.getLinkWithClassVisualID(link)) {
+ continue;
+ }
+ List sources = link.getClients();
+
+ Object theSource = sources.size() >= 1 ? sources.get(0) : null;
+
+ if(false == theSource instanceof NamedElement) {
+ continue;
+ }
+ NamedElement src = (NamedElement)theSource;
+ result.add(new UMLLinkDescriptor(src, target, link, UMLElementTypes.Realization_4006, RealizationEditPart.VISUAL_ID));
+ }
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ private static Collection<UMLLinkDescriptor> getIncomingTypeModelFacetLinks_Manifestation_4012(NamedElement target, Map<EObject, Collection<EStructuralFeature.Setting>> crossReferences) {
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ Collection<EStructuralFeature.Setting> settings = crossReferences.get(target);
+ for(EStructuralFeature.Setting setting : settings) {
+ if(setting.getEStructuralFeature() != UMLPackage.eINSTANCE.getDependency_Supplier() || false == setting.getEObject() instanceof Manifestation) {
+ continue;
+ }
+ Manifestation link = (Manifestation)setting.getEObject();
+ if(ManifestationEditPart.VISUAL_ID != UMLVisualIDRegistry.getLinkWithClassVisualID(link)) {
+ continue;
+ }
+ List sources = link.getClients();
+
+ Object theSource = sources.size() >= 1 ? sources.get(0) : null;
+
+ if(false == theSource instanceof NamedElement) {
+ continue;
+ }
+ NamedElement src = (NamedElement)theSource;
+ result.add(new UMLLinkDescriptor(src, target, link, UMLElementTypes.Manifestation_4012, ManifestationEditPart.VISUAL_ID));
+ }
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ private static Collection<UMLLinkDescriptor> getIncomingTypeModelFacetLinks_Abstraction_4007(NamedElement target, Map<EObject, Collection<EStructuralFeature.Setting>> crossReferences) {
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ Collection<EStructuralFeature.Setting> settings = crossReferences.get(target);
+ for(EStructuralFeature.Setting setting : settings) {
+ if(setting.getEStructuralFeature() != UMLPackage.eINSTANCE.getDependency_Supplier() || false == setting.getEObject() instanceof Abstraction) {
+ continue;
+ }
+ Abstraction link = (Abstraction)setting.getEObject();
+ if(AbstractionEditPart.VISUAL_ID != UMLVisualIDRegistry.getLinkWithClassVisualID(link)) {
+ continue;
+ }
+ List sources = link.getClients();
+
+ Object theSource = sources.size() >= 1 ? sources.get(0) : null;
+
+ if(false == theSource instanceof NamedElement) {
+ continue;
+ }
+ NamedElement src = (NamedElement)theSource;
+ result.add(new UMLLinkDescriptor(src, target, link, UMLElementTypes.Abstraction_4007, AbstractionEditPart.VISUAL_ID));
+ }
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ private static Collection<UMLLinkDescriptor> getIncomingTypeModelFacetLinks_Usage_4008(NamedElement target, Map<EObject, Collection<EStructuralFeature.Setting>> crossReferences) {
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ Collection<EStructuralFeature.Setting> settings = crossReferences.get(target);
+ for(EStructuralFeature.Setting setting : settings) {
+ if(setting.getEStructuralFeature() != UMLPackage.eINSTANCE.getDependency_Supplier() || false == setting.getEObject() instanceof Usage) {
+ continue;
+ }
+ Usage link = (Usage)setting.getEObject();
+ if(UsageEditPart.VISUAL_ID != UMLVisualIDRegistry.getLinkWithClassVisualID(link)) {
+ continue;
+ }
+ List sources = link.getClients();
+
+ Object theSource = sources.size() >= 1 ? sources.get(0) : null;
+
+ if(false == theSource instanceof NamedElement) {
+ continue;
+ }
+ NamedElement src = (NamedElement)theSource;
+ result.add(new UMLLinkDescriptor(src, target, link, UMLElementTypes.Usage_4008, UsageEditPart.VISUAL_ID));
+ }
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ private static Collection<UMLLinkDescriptor> getIncomingTypeModelFacetLinks_Deployment_4009(NamedElement target, Map<EObject, Collection<EStructuralFeature.Setting>> crossReferences) {
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ Collection<EStructuralFeature.Setting> settings = crossReferences.get(target);
+ for(EStructuralFeature.Setting setting : settings) {
+ if(setting.getEStructuralFeature() != UMLPackage.eINSTANCE.getDependency_Supplier() || false == setting.getEObject() instanceof Deployment) {
+ continue;
+ }
+ Deployment link = (Deployment)setting.getEObject();
+ if(DeploymentEditPart.VISUAL_ID != UMLVisualIDRegistry.getLinkWithClassVisualID(link)) {
+ continue;
+ }
+ List sources = link.getClients();
+
+ Object theSource = sources.size() >= 1 ? sources.get(0) : null;
+
+ if(false == theSource instanceof NamedElement) {
+ continue;
+ }
+ NamedElement src = (NamedElement)theSource;
+ result.add(new UMLLinkDescriptor(src, target, link, UMLElementTypes.Deployment_4009, DeploymentEditPart.VISUAL_ID));
+ }
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ private static Collection<UMLLinkDescriptor> getIncomingTypeModelFacetLinks_Dependency_4017(NamedElement target, Map<EObject, Collection<EStructuralFeature.Setting>> crossReferences) {
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ Collection<EStructuralFeature.Setting> settings = crossReferences.get(target);
+ for(EStructuralFeature.Setting setting : settings) {
+ if(setting.getEStructuralFeature() != UMLPackage.eINSTANCE.getDependency_Supplier() || false == setting.getEObject() instanceof Dependency) {
+ continue;
+ }
+ Dependency link = (Dependency)setting.getEObject();
+ if(RoleBindingEditPart.VISUAL_ID != UMLVisualIDRegistry.getLinkWithClassVisualID(link)) {
+ continue;
+ }
+ List sources = link.getClients();
+
+ Object theSource = sources.size() >= 1 ? sources.get(0) : null;
+
+ if(false == theSource instanceof NamedElement) {
+ continue;
+ }
+ NamedElement src = (NamedElement)theSource;
+ result.add(new UMLLinkDescriptor(src, target, link, UMLElementTypes.Dependency_4017, RoleBindingEditPart.VISUAL_ID));
+ }
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ private static Collection<UMLLinkDescriptor> getIncomingTypeModelFacetLinks_Dependency_4010(NamedElement target, Map<EObject, Collection<EStructuralFeature.Setting>> crossReferences) {
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ Collection<EStructuralFeature.Setting> settings = crossReferences.get(target);
+ for(EStructuralFeature.Setting setting : settings) {
+ if(setting.getEStructuralFeature() != UMLPackage.eINSTANCE.getDependency_Supplier() || false == setting.getEObject() instanceof Dependency) {
+ continue;
+ }
+ Dependency link = (Dependency)setting.getEObject();
+ if(DependencyEditPart.VISUAL_ID != UMLVisualIDRegistry.getLinkWithClassVisualID(link)) {
+ continue;
+ }
+ List sources = link.getClients();
+
+ Object theSource = sources.size() >= 1 ? sources.get(0) : null;
+
+ if(false == theSource instanceof NamedElement) {
+ continue;
+ }
+ NamedElement src = (NamedElement)theSource;
+ result.add(new UMLLinkDescriptor(src, target, link, UMLElementTypes.Dependency_4010, DependencyEditPart.VISUAL_ID));
+ }
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ private static Collection<UMLLinkDescriptor> getIncomingTypeModelFacetLinks_Generalization_4015(Classifier target, Map<EObject, Collection<EStructuralFeature.Setting>> crossReferences) {
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ Collection<EStructuralFeature.Setting> settings = crossReferences.get(target);
+ for(EStructuralFeature.Setting setting : settings) {
+ if(setting.getEStructuralFeature() != UMLPackage.eINSTANCE.getGeneralization_General() || false == setting.getEObject() instanceof Generalization) {
+ continue;
+ }
+ Generalization link = (Generalization)setting.getEObject();
+ if(GeneralizationEditPart.VISUAL_ID != UMLVisualIDRegistry.getLinkWithClassVisualID(link)) {
+ continue;
+ }
+ Classifier src = link.getSpecific();
+ result.add(new UMLLinkDescriptor(src, target, link, UMLElementTypes.Generalization_4015, GeneralizationEditPart.VISUAL_ID));
+ }
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ private static Collection<UMLLinkDescriptor> getIncomingFeatureModelFacetLinks_TimeObservation_Event_4018(NamedElement target, Map<EObject, Collection<EStructuralFeature.Setting>> crossReferences) {
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ Collection<EStructuralFeature.Setting> settings = crossReferences.get(target);
+ for(EStructuralFeature.Setting setting : settings) {
+ if(setting.getEStructuralFeature() == UMLPackage.eINSTANCE.getTimeObservation_Event()) {
+ result.add(new UMLLinkDescriptor(setting.getEObject(), target, UMLElementTypes.TimeObservationEvent_4018, TimeObservationEventEditPart.VISUAL_ID));
+ }
+ }
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ private static Collection<UMLLinkDescriptor> getIncomingFeatureModelFacetLinks_DurationObservation_Event_4019(NamedElement target, Map<EObject, Collection<EStructuralFeature.Setting>> crossReferences) {
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ Collection<EStructuralFeature.Setting> settings = crossReferences.get(target);
+ for(EStructuralFeature.Setting setting : settings) {
+ if(setting.getEStructuralFeature() == UMLPackage.eINSTANCE.getDurationObservation_Event()) {
+ result.add(new UMLLinkDescriptor(setting.getEObject(), target, UMLElementTypes.DurationObservationEvent_4019, DurationObservationEventEditPart.VISUAL_ID));
+ }
+ }
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ private static Collection<UMLLinkDescriptor> getIncomingFeatureModelFacetLinks_InformationItem_Represented_4020(Classifier target, Map<EObject, Collection<EStructuralFeature.Setting>> crossReferences) {
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ Collection<EStructuralFeature.Setting> settings = crossReferences.get(target);
+ for(EStructuralFeature.Setting setting : settings) {
+ if(setting.getEStructuralFeature() == UMLPackage.eINSTANCE.getInformationItem_Represented()) {
+ result.add(new UMLLinkDescriptor(setting.getEObject(), target, UMLElementTypes.InformationItemRepresented_4020, RepresentationEditPart.VISUAL_ID));
+ }
+ }
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ private static Collection<UMLLinkDescriptor> getIncomingTypeModelFacetLinks_InformationFlow_4021(NamedElement target, Map<EObject, Collection<EStructuralFeature.Setting>> crossReferences) {
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ Collection<EStructuralFeature.Setting> settings = crossReferences.get(target);
+ for(EStructuralFeature.Setting setting : settings) {
+ if(setting.getEStructuralFeature() != UMLPackage.eINSTANCE.getInformationFlow_InformationTarget() || false == setting.getEObject() instanceof InformationFlow) {
+ continue;
+ }
+ InformationFlow link = (InformationFlow)setting.getEObject();
+ if(InformationFlowEditPart.VISUAL_ID != UMLVisualIDRegistry.getLinkWithClassVisualID(link)) {
+ continue;
+ }
+ List sources = link.getInformationSources();
+
+ Object theSource = sources.size() >= 1 ? sources.get(0) : null;
+
+ if(false == theSource instanceof NamedElement) {
+ continue;
+ }
+ NamedElement src = (NamedElement)theSource;
+ result.add(new UMLLinkDescriptor(src, target, link, UMLElementTypes.InformationFlow_4021, InformationFlowEditPart.VISUAL_ID));
+ }
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ private static Collection<UMLLinkDescriptor> getOutgoingFeatureModelFacetLinks_Comment_AnnotatedElement_4002(Comment source) {
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ for(Iterator<?> destinations = source.getAnnotatedElements().iterator(); destinations.hasNext();) {
+ Element destination = (Element)destinations.next();
+ result.add(new UMLLinkDescriptor(source, destination, UMLElementTypes.CommentAnnotatedElement_4002, CommentAnnotatedElementEditPart.VISUAL_ID));
+ }
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ private static Collection<UMLLinkDescriptor> getOutgoingFeatureModelFacetLinks_Constraint_ConstrainedElement_4003(Constraint source) {
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ for(Iterator<?> destinations = source.getConstrainedElements().iterator(); destinations.hasNext();) {
+ Element destination = (Element)destinations.next();
+ result.add(new UMLLinkDescriptor(source, destination, UMLElementTypes.ConstraintConstrainedElement_4003, ConstraintConstrainedElementEditPart.VISUAL_ID));
+ }
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ private static Collection<UMLLinkDescriptor> getOutgoingTypeModelFacetLinks_ComponentRealization_4004(NamedElement source) {
+ Package container = null;
+ // Find container element for the link.
+ // Climb up by containment hierarchy starting from the source
+ // and return the first element that is instance of the container class.
+ for(EObject element = source; element != null && container == null; element = element.eContainer()) {
+ if(element instanceof Package) {
+ container = (Package)element;
+ }
+ }
+ if(container == null) {
+ return Collections.emptyList();
+ }
+ Collection result = new LinkedList();
+ for(Iterator links = container.getPackagedElements().iterator(); links.hasNext();) {
+ EObject linkObject = (EObject)links.next();
+ if(false == linkObject instanceof ComponentRealization) {
+ continue;
+ }
+ ComponentRealization link = (ComponentRealization)linkObject;
+ if(ComponentRealizationEditPart.VISUAL_ID != UMLVisualIDRegistry.getLinkWithClassVisualID(link)) {
+ continue;
+ }
+
+ List targets = link.getSuppliers();
+ Object theTarget = targets.size() == 1 ? targets.get(0) : null;
+ if(false == theTarget instanceof NamedElement) {
+ continue;
+ }
+ NamedElement dst = (NamedElement)theTarget;
+ List sources = link.getClients();
+
+ Object theSource = sources.size() >= 1 ? sources.get(0) : null;
+
+ if(false == theSource instanceof NamedElement) {
+ continue;
+ }
+ NamedElement src = (NamedElement)theSource;
+ if(src != source) {
+ continue;
+ }
+ result.add(new UMLLinkDescriptor(src, dst, link, UMLElementTypes.ComponentRealization_4004, ComponentRealizationEditPart.VISUAL_ID));
+
+ }
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ private static Collection<UMLLinkDescriptor> getOutgoingTypeModelFacetLinks_InterfaceRealization_4005(NamedElement source) {
+ Package container = null;
+ // Find container element for the link.
+ // Climb up by containment hierarchy starting from the source
+ // and return the first element that is instance of the container class.
+ for(EObject element = source; element != null && container == null; element = element.eContainer()) {
+ if(element instanceof Package) {
+ container = (Package)element;
+ }
+ }
+ if(container == null) {
+ return Collections.emptyList();
+ }
+ Collection result = new LinkedList();
+ for(Iterator links = container.getPackagedElements().iterator(); links.hasNext();) {
+ EObject linkObject = (EObject)links.next();
+ if(false == linkObject instanceof InterfaceRealization) {
+ continue;
+ }
+ InterfaceRealization link = (InterfaceRealization)linkObject;
+ if(InterfaceRealizationEditPart.VISUAL_ID != UMLVisualIDRegistry.getLinkWithClassVisualID(link)) {
+ continue;
+ }
+
+ List targets = link.getSuppliers();
+ Object theTarget = targets.size() == 1 ? targets.get(0) : null;
+ if(false == theTarget instanceof NamedElement) {
+ continue;
+ }
+ NamedElement dst = (NamedElement)theTarget;
+ List sources = link.getClients();
+
+ Object theSource = sources.size() >= 1 ? sources.get(0) : null;
+
+ if(false == theSource instanceof NamedElement) {
+ continue;
+ }
+ NamedElement src = (NamedElement)theSource;
+ if(src != source) {
+ continue;
+ }
+ result.add(new UMLLinkDescriptor(src, dst, link, UMLElementTypes.InterfaceRealization_4005, InterfaceRealizationEditPart.VISUAL_ID));
+
+ }
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ private static Collection<UMLLinkDescriptor> getOutgoingTypeModelFacetLinks_Substitution_4011(NamedElement source) {
+ Package container = null;
+ // Find container element for the link.
+ // Climb up by containment hierarchy starting from the source
+ // and return the first element that is instance of the container class.
+ for(EObject element = source; element != null && container == null; element = element.eContainer()) {
+ if(element instanceof Package) {
+ container = (Package)element;
+ }
+ }
+ if(container == null) {
+ return Collections.emptyList();
+ }
+ Collection result = new LinkedList();
+ for(Iterator links = container.getPackagedElements().iterator(); links.hasNext();) {
+ EObject linkObject = (EObject)links.next();
+ if(false == linkObject instanceof Substitution) {
+ continue;
+ }
+ Substitution link = (Substitution)linkObject;
+ if(SubstitutionEditPart.VISUAL_ID != UMLVisualIDRegistry.getLinkWithClassVisualID(link)) {
+ continue;
+ }
+
+ List targets = link.getSuppliers();
+ Object theTarget = targets.size() == 1 ? targets.get(0) : null;
+ if(false == theTarget instanceof NamedElement) {
+ continue;
+ }
+ NamedElement dst = (NamedElement)theTarget;
+ List sources = link.getClients();
+
+ Object theSource = sources.size() >= 1 ? sources.get(0) : null;
+
+ if(false == theSource instanceof NamedElement) {
+ continue;
+ }
+ NamedElement src = (NamedElement)theSource;
+ if(src != source) {
+ continue;
+ }
+ result.add(new UMLLinkDescriptor(src, dst, link, UMLElementTypes.Substitution_4011, SubstitutionEditPart.VISUAL_ID));
+
+ }
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ private static Collection<UMLLinkDescriptor> getOutgoingTypeModelFacetLinks_Realization_4006(NamedElement source) {
+ Package container = null;
+ // Find container element for the link.
+ // Climb up by containment hierarchy starting from the source
+ // and return the first element that is instance of the container class.
+ for(EObject element = source; element != null && container == null; element = element.eContainer()) {
+ if(element instanceof Package) {
+ container = (Package)element;
+ }
+ }
+ if(container == null) {
+ return Collections.emptyList();
+ }
+ Collection result = new LinkedList();
+ for(Iterator links = container.getPackagedElements().iterator(); links.hasNext();) {
+ EObject linkObject = (EObject)links.next();
+ if(false == linkObject instanceof Realization) {
+ continue;
+ }
+ Realization link = (Realization)linkObject;
+ if(RealizationEditPart.VISUAL_ID != UMLVisualIDRegistry.getLinkWithClassVisualID(link)) {
+ continue;
+ }
+
+ List targets = link.getSuppliers();
+ Object theTarget = targets.size() == 1 ? targets.get(0) : null;
+ if(false == theTarget instanceof NamedElement) {
+ continue;
+ }
+ NamedElement dst = (NamedElement)theTarget;
+ List sources = link.getClients();
+
+ Object theSource = sources.size() >= 1 ? sources.get(0) : null;
+
+ if(false == theSource instanceof NamedElement) {
+ continue;
+ }
+ NamedElement src = (NamedElement)theSource;
+ if(src != source) {
+ continue;
+ }
+ result.add(new UMLLinkDescriptor(src, dst, link, UMLElementTypes.Realization_4006, RealizationEditPart.VISUAL_ID));
+
+ }
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ private static Collection<UMLLinkDescriptor> getOutgoingTypeModelFacetLinks_Manifestation_4012(NamedElement source) {
+ Package container = null;
+ // Find container element for the link.
+ // Climb up by containment hierarchy starting from the source
+ // and return the first element that is instance of the container class.
+ for(EObject element = source; element != null && container == null; element = element.eContainer()) {
+ if(element instanceof Package) {
+ container = (Package)element;
+ }
+ }
+ if(container == null) {
+ return Collections.emptyList();
+ }
+ Collection result = new LinkedList();
+ for(Iterator links = container.getPackagedElements().iterator(); links.hasNext();) {
+ EObject linkObject = (EObject)links.next();
+ if(false == linkObject instanceof Manifestation) {
+ continue;
+ }
+ Manifestation link = (Manifestation)linkObject;
+ if(ManifestationEditPart.VISUAL_ID != UMLVisualIDRegistry.getLinkWithClassVisualID(link)) {
+ continue;
+ }
+
+ List targets = link.getSuppliers();
+ Object theTarget = targets.size() == 1 ? targets.get(0) : null;
+ if(false == theTarget instanceof NamedElement) {
+ continue;
+ }
+ NamedElement dst = (NamedElement)theTarget;
+ List sources = link.getClients();
+
+ Object theSource = sources.size() >= 1 ? sources.get(0) : null;
+
+ if(false == theSource instanceof NamedElement) {
+ continue;
+ }
+ NamedElement src = (NamedElement)theSource;
+ if(src != source) {
+ continue;
+ }
+ result.add(new UMLLinkDescriptor(src, dst, link, UMLElementTypes.Manifestation_4012, ManifestationEditPart.VISUAL_ID));
+
+ }
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ private static Collection<UMLLinkDescriptor> getOutgoingTypeModelFacetLinks_Abstraction_4007(NamedElement source) {
+ Package container = null;
+ // Find container element for the link.
+ // Climb up by containment hierarchy starting from the source
+ // and return the first element that is instance of the container class.
+ for(EObject element = source; element != null && container == null; element = element.eContainer()) {
+ if(element instanceof Package) {
+ container = (Package)element;
+ }
+ }
+ if(container == null) {
+ return Collections.emptyList();
+ }
+ Collection result = new LinkedList();
+ for(Iterator links = container.getPackagedElements().iterator(); links.hasNext();) {
+ EObject linkObject = (EObject)links.next();
+ if(false == linkObject instanceof Abstraction) {
+ continue;
+ }
+ Abstraction link = (Abstraction)linkObject;
+ if(AbstractionEditPart.VISUAL_ID != UMLVisualIDRegistry.getLinkWithClassVisualID(link)) {
+ continue;
+ }
+
+ List targets = link.getSuppliers();
+ Object theTarget = targets.size() == 1 ? targets.get(0) : null;
+ if(false == theTarget instanceof NamedElement) {
+ continue;
+ }
+ NamedElement dst = (NamedElement)theTarget;
+ List sources = link.getClients();
+
+ Object theSource = sources.size() >= 1 ? sources.get(0) : null;
+
+ if(false == theSource instanceof NamedElement) {
+ continue;
+ }
+ NamedElement src = (NamedElement)theSource;
+ if(src != source) {
+ continue;
+ }
+ result.add(new UMLLinkDescriptor(src, dst, link, UMLElementTypes.Abstraction_4007, AbstractionEditPart.VISUAL_ID));
+
+ }
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ private static Collection<UMLLinkDescriptor> getOutgoingTypeModelFacetLinks_Usage_4008(NamedElement source) {
+ Package container = null;
+ // Find container element for the link.
+ // Climb up by containment hierarchy starting from the source
+ // and return the first element that is instance of the container class.
+ for(EObject element = source; element != null && container == null; element = element.eContainer()) {
+ if(element instanceof Package) {
+ container = (Package)element;
+ }
+ }
+ if(container == null) {
+ return Collections.emptyList();
+ }
+ Collection result = new LinkedList();
+ for(Iterator links = container.getPackagedElements().iterator(); links.hasNext();) {
+ EObject linkObject = (EObject)links.next();
+ if(false == linkObject instanceof Usage) {
+ continue;
+ }
+ Usage link = (Usage)linkObject;
+ if(UsageEditPart.VISUAL_ID != UMLVisualIDRegistry.getLinkWithClassVisualID(link)) {
+ continue;
+ }
+
+ List targets = link.getSuppliers();
+ Object theTarget = targets.size() == 1 ? targets.get(0) : null;
+ if(false == theTarget instanceof NamedElement) {
+ continue;
+ }
+ NamedElement dst = (NamedElement)theTarget;
+ List sources = link.getClients();
+
+ Object theSource = sources.size() >= 1 ? sources.get(0) : null;
+
+ if(false == theSource instanceof NamedElement) {
+ continue;
+ }
+ NamedElement src = (NamedElement)theSource;
+ if(src != source) {
+ continue;
+ }
+ result.add(new UMLLinkDescriptor(src, dst, link, UMLElementTypes.Usage_4008, UsageEditPart.VISUAL_ID));
+
+ }
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ private static Collection<UMLLinkDescriptor> getOutgoingTypeModelFacetLinks_Deployment_4009(NamedElement source) {
+ Package container = null;
+ // Find container element for the link.
+ // Climb up by containment hierarchy starting from the source
+ // and return the first element that is instance of the container class.
+ for(EObject element = source; element != null && container == null; element = element.eContainer()) {
+ if(element instanceof Package) {
+ container = (Package)element;
+ }
+ }
+ if(container == null) {
+ return Collections.emptyList();
+ }
+ Collection result = new LinkedList();
+ for(Iterator links = container.getPackagedElements().iterator(); links.hasNext();) {
+ EObject linkObject = (EObject)links.next();
+ if(false == linkObject instanceof Deployment) {
+ continue;
+ }
+ Deployment link = (Deployment)linkObject;
+ if(DeploymentEditPart.VISUAL_ID != UMLVisualIDRegistry.getLinkWithClassVisualID(link)) {
+ continue;
+ }
+
+ List targets = link.getSuppliers();
+ Object theTarget = targets.size() == 1 ? targets.get(0) : null;
+ if(false == theTarget instanceof NamedElement) {
+ continue;
+ }
+ NamedElement dst = (NamedElement)theTarget;
+ List sources = link.getClients();
+
+ Object theSource = sources.size() >= 1 ? sources.get(0) : null;
+
+ if(false == theSource instanceof NamedElement) {
+ continue;
+ }
+ NamedElement src = (NamedElement)theSource;
+ if(src != source) {
+ continue;
+ }
+ result.add(new UMLLinkDescriptor(src, dst, link, UMLElementTypes.Deployment_4009, DeploymentEditPart.VISUAL_ID));
+
+ }
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ private static Collection<UMLLinkDescriptor> getOutgoingTypeModelFacetLinks_Dependency_4017(NamedElement source) {
+ Package container = null;
+ // Find container element for the link.
+ // Climb up by containment hierarchy starting from the source
+ // and return the first element that is instance of the container class.
+ for(EObject element = source; element != null && container == null; element = element.eContainer()) {
+ if(element instanceof Package) {
+ container = (Package)element;
+ }
+ }
+ if(container == null) {
+ return Collections.emptyList();
+ }
+ Collection result = new LinkedList();
+ for(Iterator links = container.getPackagedElements().iterator(); links.hasNext();) {
+ EObject linkObject = (EObject)links.next();
+ if(false == linkObject instanceof Dependency) {
+ continue;
+ }
+ Dependency link = (Dependency)linkObject;
+ if(RoleBindingEditPart.VISUAL_ID != UMLVisualIDRegistry.getLinkWithClassVisualID(link)) {
+ continue;
+ }
+
+ List targets = link.getSuppliers();
+ Object theTarget = targets.size() == 1 ? targets.get(0) : null;
+ if(false == theTarget instanceof NamedElement) {
+ continue;
+ }
+ NamedElement dst = (NamedElement)theTarget;
+ List sources = link.getClients();
+
+ Object theSource = sources.size() >= 1 ? sources.get(0) : null;
+
+ if(false == theSource instanceof NamedElement) {
+ continue;
+ }
+ NamedElement src = (NamedElement)theSource;
+ if(src != source) {
+ continue;
+ }
+ result.add(new UMLLinkDescriptor(src, dst, link, UMLElementTypes.Dependency_4017, RoleBindingEditPart.VISUAL_ID));
+
+ }
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ private static Collection<UMLLinkDescriptor> getOutgoingTypeModelFacetLinks_Dependency_4010(NamedElement source) {
+ Package container = null;
+ // Find container element for the link.
+ // Climb up by containment hierarchy starting from the source
+ // and return the first element that is instance of the container class.
+ for(EObject element = source; element != null && container == null; element = element.eContainer()) {
+ if(element instanceof Package) {
+ container = (Package)element;
+ }
+ }
+ if(container == null) {
+ return Collections.emptyList();
+ }
+ Collection result = new LinkedList();
+ for(Iterator links = container.getPackagedElements().iterator(); links.hasNext();) {
+ EObject linkObject = (EObject)links.next();
+ if(false == linkObject instanceof Dependency) {
+ continue;
+ }
+ Dependency link = (Dependency)linkObject;
+ if(DependencyEditPart.VISUAL_ID != UMLVisualIDRegistry.getLinkWithClassVisualID(link)) {
+ continue;
+ }
+
+ List targets = link.getSuppliers();
+ Object theTarget = targets.size() == 1 ? targets.get(0) : null;
+ if(false == theTarget instanceof NamedElement) {
+ continue;
+ }
+ NamedElement dst = (NamedElement)theTarget;
+ List sources = link.getClients();
+
+ Object theSource = sources.size() >= 1 ? sources.get(0) : null;
+
+ if(false == theSource instanceof NamedElement) {
+ continue;
+ }
+ NamedElement src = (NamedElement)theSource;
+ if(src != source) {
+ continue;
+ }
+ result.add(new UMLLinkDescriptor(src, dst, link, UMLElementTypes.Dependency_4010, DependencyEditPart.VISUAL_ID));
+
+ }
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ private static Collection<UMLLinkDescriptor> getOutgoingTypeModelFacetLinks_Generalization_4015(Classifier source) {
+ Classifier container = null;
+ // Find container element for the link.
+ // Climb up by containment hierarchy starting from the source
+ // and return the first element that is instance of the container class.
+ for(EObject element = source; element != null && container == null; element = element.eContainer()) {
+ if(element instanceof Classifier) {
+ container = (Classifier)element;
+ }
+ }
+ if(container == null) {
+ return Collections.emptyList();
+ }
+ Collection result = new LinkedList();
+ for(Iterator links = container.getGeneralizations().iterator(); links.hasNext();) {
+ EObject linkObject = (EObject)links.next();
+ if(false == linkObject instanceof Generalization) {
+ continue;
+ }
+ Generalization link = (Generalization)linkObject;
+ if(GeneralizationEditPart.VISUAL_ID != UMLVisualIDRegistry.getLinkWithClassVisualID(link)) {
+ continue;
+ }
+
+ Classifier dst = link.getGeneral();
+ Classifier src = link.getSpecific();
+ if(src != source) {
+ continue;
+ }
+ result.add(new UMLLinkDescriptor(src, dst, link, UMLElementTypes.Generalization_4015, GeneralizationEditPart.VISUAL_ID));
+
+ }
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ private static Collection<UMLLinkDescriptor> getOutgoingFeatureModelFacetLinks_TimeObservation_Event_4018(TimeObservation source) {
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ NamedElement destination = source.getEvent();
+ if(destination == null) {
+ return result;
+ }
+ result.add(new UMLLinkDescriptor(source, destination, UMLElementTypes.TimeObservationEvent_4018, TimeObservationEventEditPart.VISUAL_ID));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ private static Collection<UMLLinkDescriptor> getOutgoingFeatureModelFacetLinks_DurationObservation_Event_4019(DurationObservation source) {
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ for(Iterator<?> destinations = source.getEvents().iterator(); destinations.hasNext();) {
+ NamedElement destination = (NamedElement)destinations.next();
+ result.add(new UMLLinkDescriptor(source, destination, UMLElementTypes.DurationObservationEvent_4019, DurationObservationEventEditPart.VISUAL_ID));
+ }
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ private static Collection<UMLLinkDescriptor> getOutgoingFeatureModelFacetLinks_InformationItem_Represented_4020(InformationItem source) {
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ for(Iterator<?> destinations = source.getRepresenteds().iterator(); destinations.hasNext();) {
+ Classifier destination = (Classifier)destinations.next();
+ result.add(new UMLLinkDescriptor(source, destination, UMLElementTypes.InformationItemRepresented_4020, RepresentationEditPart.VISUAL_ID));
+ }
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ private static Collection<UMLLinkDescriptor> getOutgoingTypeModelFacetLinks_InformationFlow_4021(NamedElement source) {
+ Package container = null;
+ // Find container element for the link.
+ // Climb up by containment hierarchy starting from the source
+ // and return the first element that is instance of the container class.
+ for(EObject element = source; element != null && container == null; element = element.eContainer()) {
+ if(element instanceof Package) {
+ container = (Package)element;
+ }
+ }
+ if(container == null) {
+ return Collections.emptyList();
+ }
+ Collection result = new LinkedList();
+ for(Iterator links = container.getPackagedElements().iterator(); links.hasNext();) {
+ EObject linkObject = (EObject)links.next();
+ if(false == linkObject instanceof InformationFlow) {
+ continue;
+ }
+ InformationFlow link = (InformationFlow)linkObject;
+ if(InformationFlowEditPart.VISUAL_ID != UMLVisualIDRegistry.getLinkWithClassVisualID(link)) {
+ continue;
+ }
+
+ List targets = link.getInformationTargets();
+ Object theTarget = targets.size() == 1 ? targets.get(0) : null;
+ if(false == theTarget instanceof NamedElement) {
+ continue;
+ }
+ NamedElement dst = (NamedElement)theTarget;
+ List sources = link.getInformationSources();
+
+ Object theSource = sources.size() >= 1 ? sources.get(0) : null;
+
+ if(false == theSource instanceof NamedElement) {
+ continue;
+ }
+ NamedElement src = (NamedElement)theSource;
+ if(src != source) {
+ continue;
+ }
+ result.add(new UMLLinkDescriptor(src, dst, link, UMLElementTypes.InformationFlow_4021, InformationFlowEditPart.VISUAL_ID));
+
+ }
+ return result;
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/part/UMLDocumentProvider.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/part/UMLDocumentProvider.java
new file mode 100644
index 00000000000..24b6297393e
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/part/UMLDocumentProvider.java
@@ -0,0 +1,989 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.part;
+
+import java.io.IOException;
+import java.util.ArrayList;
+import java.util.Collections;
+import java.util.HashMap;
+import java.util.Iterator;
+import java.util.LinkedList;
+import java.util.List;
+import java.util.Map;
+
+import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.core.resources.IFile;
+import org.eclipse.core.resources.IResource;
+import org.eclipse.core.resources.IResourceStatus;
+import org.eclipse.core.resources.IStorage;
+import org.eclipse.core.resources.ResourcesPlugin;
+import org.eclipse.core.runtime.CoreException;
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.core.runtime.IStatus;
+import org.eclipse.core.runtime.Path;
+import org.eclipse.core.runtime.Status;
+import org.eclipse.core.runtime.jobs.ISchedulingRule;
+import org.eclipse.core.runtime.jobs.MultiRule;
+import org.eclipse.emf.common.notify.Adapter;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.common.notify.Notifier;
+import org.eclipse.emf.common.ui.URIEditorInput;
+import org.eclipse.emf.common.util.URI;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.ecore.resource.Resource;
+import org.eclipse.emf.ecore.resource.ResourceSet;
+import org.eclipse.emf.ecore.util.EContentAdapter;
+import org.eclipse.emf.ecore.util.EcoreUtil;
+import org.eclipse.emf.transaction.NotificationFilter;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.emf.workspace.util.WorkspaceSynchronizer;
+import org.eclipse.gmf.runtime.common.core.command.CommandResult;
+import org.eclipse.gmf.runtime.diagram.core.DiagramEditingDomainFactory;
+import org.eclipse.gmf.runtime.diagram.ui.resources.editor.document.AbstractDocumentProvider;
+import org.eclipse.gmf.runtime.diagram.ui.resources.editor.document.DiagramDocument;
+import org.eclipse.gmf.runtime.diagram.ui.resources.editor.document.IDiagramDocument;
+import org.eclipse.gmf.runtime.diagram.ui.resources.editor.document.IDiagramDocumentProvider;
+import org.eclipse.gmf.runtime.diagram.ui.resources.editor.document.IDocument;
+import org.eclipse.gmf.runtime.diagram.ui.resources.editor.internal.EditorStatusCodes;
+import org.eclipse.gmf.runtime.diagram.ui.resources.editor.internal.util.DiagramIOUtil;
+import org.eclipse.gmf.runtime.emf.commands.core.command.AbstractTransactionalCommand;
+import org.eclipse.gmf.runtime.emf.core.resources.GMFResourceFactory;
+import org.eclipse.gmf.runtime.notation.Diagram;
+import org.eclipse.jface.operation.IRunnableContext;
+import org.eclipse.osgi.util.NLS;
+import org.eclipse.swt.widgets.Display;
+import org.eclipse.ui.IEditorInput;
+import org.eclipse.ui.part.FileEditorInput;
+
+/**
+ * @generated
+ */
+public class UMLDocumentProvider extends AbstractDocumentProvider implements IDiagramDocumentProvider {
+
+ /**
+ * @generated
+ */
+ protected ElementInfo createElementInfo(Object element) throws CoreException {
+ if(false == element instanceof FileEditorInput && false == element instanceof URIEditorInput) {
+ throw new CoreException(new Status(IStatus.ERROR, UMLDiagramEditorPlugin.ID, 0, NLS.bind(Messages.UMLDocumentProvider_IncorrectInputError, new Object[]{ element, "org.eclipse.ui.part.FileEditorInput", "org.eclipse.emf.common.ui.URIEditorInput" }), //$NON-NLS-1$ //$NON-NLS-2$
+ null));
+ }
+ IEditorInput editorInput = (IEditorInput)element;
+ IDiagramDocument document = (IDiagramDocument)createDocument(editorInput);
+
+ ResourceSetInfo info = new ResourceSetInfo(document, editorInput);
+ info.setModificationStamp(computeModificationStamp(info));
+ info.fStatus = null;
+ return info;
+ }
+
+ /**
+ * @generated
+ */
+ protected IDocument createDocument(Object element) throws CoreException {
+ if(false == element instanceof FileEditorInput && false == element instanceof URIEditorInput) {
+ throw new CoreException(new Status(IStatus.ERROR, UMLDiagramEditorPlugin.ID, 0, NLS.bind(Messages.UMLDocumentProvider_IncorrectInputError, new Object[]{ element, "org.eclipse.ui.part.FileEditorInput", "org.eclipse.emf.common.ui.URIEditorInput" }), //$NON-NLS-1$ //$NON-NLS-2$
+ null));
+ }
+ IDocument document = createEmptyDocument();
+ setDocumentContent(document, (IEditorInput)element);
+ setupDocument(element, document);
+ return document;
+ }
+
+ /**
+ * Sets up the given document as it would be provided for the given element. The
+ * content of the document is not changed. This default implementation is empty.
+ * Subclasses may reimplement.
+ *
+ * @param element
+ * the blue-print element
+ * @param document
+ * the document to set up
+ * @generated
+ */
+ protected void setupDocument(Object element, IDocument document) {
+ // for subclasses
+ }
+
+ /**
+ * @generated
+ */
+ private long computeModificationStamp(ResourceSetInfo info) {
+ int result = 0;
+ for(Iterator<Resource> it = info.getLoadedResourcesIterator(); it.hasNext();) {
+ Resource nextResource = it.next();
+ IFile file = WorkspaceSynchronizer.getFile(nextResource);
+ if(file != null) {
+ if(file.getLocation() != null) {
+ result += file.getLocation().toFile().lastModified();
+ } else {
+ result += file.getModificationStamp();
+ }
+ }
+ }
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ protected IDocument createEmptyDocument() {
+ DiagramDocument document = new DiagramDocument();
+ document.setEditingDomain(createEditingDomain());
+ return document;
+ }
+
+ /**
+ * @generated
+ */
+ private TransactionalEditingDomain createEditingDomain() {
+ TransactionalEditingDomain editingDomain = DiagramEditingDomainFactory.getInstance().createEditingDomain();
+ editingDomain.setID("org.eclipse.papyrus.diagram.composite.EditingDomain"); //$NON-NLS-1$
+ final NotificationFilter diagramResourceModifiedFilter = NotificationFilter.createNotifierFilter(editingDomain.getResourceSet()).and(NotificationFilter.createEventTypeFilter(Notification.ADD)).and(NotificationFilter.createFeatureFilter(ResourceSet.class, ResourceSet.RESOURCE_SET__RESOURCES));
+ editingDomain.getResourceSet().eAdapters().add(new Adapter() {
+
+ private Notifier myTarger;
+
+ public Notifier getTarget() {
+ return myTarger;
+ }
+
+ public boolean isAdapterForType(Object type) {
+ return false;
+ }
+
+ public void notifyChanged(Notification notification) {
+ if(diagramResourceModifiedFilter.matches(notification)) {
+ Object value = notification.getNewValue();
+ if(value instanceof Resource) {
+ ((Resource)value).setTrackingModification(true);
+ }
+ }
+ }
+
+ public void setTarget(Notifier newTarget) {
+ myTarger = newTarget;
+ }
+
+ });
+
+ return editingDomain;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setDocumentContent(IDocument document, IEditorInput element) throws CoreException {
+ IDiagramDocument diagramDocument = (IDiagramDocument)document;
+ TransactionalEditingDomain domain = diagramDocument.getEditingDomain();
+ if(element instanceof FileEditorInput) {
+ IStorage storage = ((FileEditorInput)element).getStorage();
+ Diagram diagram = DiagramIOUtil.load(domain, storage, true, getProgressMonitor());
+ document.setContent(diagram);
+ } else if(element instanceof URIEditorInput) {
+ URI uri = ((URIEditorInput)element).getURI();
+ Resource resource = null;
+ try {
+ resource = domain.getResourceSet().getResource(uri.trimFragment(), false);
+ if(resource == null) {
+ resource = domain.getResourceSet().createResource(uri.trimFragment());
+ }
+ if(!resource.isLoaded()) {
+ try {
+ Map options = new HashMap(GMFResourceFactory.getDefaultLoadOptions());
+ // @see 171060
+ // options.put(org.eclipse.emf.ecore.xmi.XMLResource.OPTION_RECORD_UNKNOWN_FEATURE, Boolean.TRUE);
+ resource.load(options);
+ } catch (IOException e) {
+ resource.unload();
+ throw e;
+ }
+ }
+ if(uri.fragment() != null) {
+ EObject rootElement = resource.getEObject(uri.fragment());
+ if(rootElement instanceof Diagram) {
+ document.setContent((Diagram)rootElement);
+ return;
+ }
+ } else {
+ for(Iterator it = resource.getContents().iterator(); it.hasNext();) {
+ Object rootElement = it.next();
+ if(rootElement instanceof Diagram) {
+ document.setContent((Diagram)rootElement);
+ return;
+ }
+ }
+ }
+ throw new RuntimeException(Messages.UMLDocumentProvider_NoDiagramInResourceError);
+ } catch (Exception e) {
+ CoreException thrownExcp = null;
+ if(e instanceof CoreException) {
+ thrownExcp = (CoreException)e;
+ } else {
+ String msg = e.getLocalizedMessage();
+ thrownExcp = new CoreException(new Status(IStatus.ERROR, UMLDiagramEditorPlugin.ID, 0, msg != null ? msg : Messages.UMLDocumentProvider_DiagramLoadingError, e));
+ }
+ throw thrownExcp;
+ }
+ } else {
+ throw new CoreException(new Status(IStatus.ERROR, UMLDiagramEditorPlugin.ID, 0, NLS.bind(Messages.UMLDocumentProvider_IncorrectInputError, new Object[]{ element, "org.eclipse.ui.part.FileEditorInput", "org.eclipse.emf.common.ui.URIEditorInput" }), //$NON-NLS-1$ //$NON-NLS-2$
+ null));
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public long getModificationStamp(Object element) {
+ ResourceSetInfo info = getResourceSetInfo(element);
+ if(info != null) {
+ return computeModificationStamp(info);
+ }
+ return super.getModificationStamp(element);
+ }
+
+ /**
+ * @generated
+ */
+ public boolean isDeleted(Object element) {
+ IDiagramDocument document = getDiagramDocument(element);
+ if(document != null) {
+ Resource diagramResource = document.getDiagram().eResource();
+ if(diagramResource != null) {
+ IFile file = WorkspaceSynchronizer.getFile(diagramResource);
+ return file == null || file.getLocation() == null || !file.getLocation().toFile().exists();
+ }
+ }
+ return super.isDeleted(element);
+ }
+
+ /**
+ * @generated
+ */
+ public ResourceSetInfo getResourceSetInfo(Object editorInput) {
+ return (ResourceSetInfo)super.getElementInfo(editorInput);
+ }
+
+ /**
+ * @generated
+ */
+ protected void disposeElementInfo(Object element, ElementInfo info) {
+ if(info instanceof ResourceSetInfo) {
+ ResourceSetInfo resourceSetInfo = (ResourceSetInfo)info;
+ resourceSetInfo.dispose();
+ }
+ super.disposeElementInfo(element, info);
+ }
+
+ /**
+ * @generated
+ */
+ protected void doValidateState(Object element, Object computationContext) throws CoreException {
+ ResourceSetInfo info = getResourceSetInfo(element);
+ if(info != null) {
+ LinkedList<IFile> files2Validate = new LinkedList<IFile>();
+ for(Iterator<Resource> it = info.getLoadedResourcesIterator(); it.hasNext();) {
+ Resource nextResource = it.next();
+ IFile file = WorkspaceSynchronizer.getFile(nextResource);
+ if(file != null && file.isReadOnly()) {
+ files2Validate.add(file);
+ }
+ }
+ ResourcesPlugin.getWorkspace().validateEdit((IFile[])files2Validate.toArray(new IFile[files2Validate.size()]), computationContext);
+ }
+
+ super.doValidateState(element, computationContext);
+ }
+
+ /**
+ * @generated
+ */
+ public boolean isReadOnly(Object element) {
+ ResourceSetInfo info = getResourceSetInfo(element);
+ if(info != null) {
+ if(info.isUpdateCache()) {
+ try {
+ updateCache(element);
+ } catch (CoreException ex) {
+ UMLDiagramEditorPlugin.getInstance().logError(Messages.UMLDocumentProvider_isModifiable, ex);
+ // Error message to log was initially taken from org.eclipse.gmf.runtime.diagram.ui.resources.editor.ide.internal.l10n.EditorMessages.StorageDocumentProvider_isModifiable
+ }
+ }
+ return info.isReadOnly();
+ }
+ return super.isReadOnly(element);
+ }
+
+ /**
+ * @generated
+ */
+ public boolean isModifiable(Object element) {
+ if(!isStateValidated(element)) {
+ if(element instanceof FileEditorInput || element instanceof URIEditorInput) {
+ return true;
+ }
+ }
+ ResourceSetInfo info = getResourceSetInfo(element);
+ if(info != null) {
+ if(info.isUpdateCache()) {
+ try {
+ updateCache(element);
+ } catch (CoreException ex) {
+ UMLDiagramEditorPlugin.getInstance().logError(Messages.UMLDocumentProvider_isModifiable, ex);
+ // Error message to log was initially taken from org.eclipse.gmf.runtime.diagram.ui.resources.editor.ide.internal.l10n.EditorMessages.StorageDocumentProvider_isModifiable
+ }
+ }
+ return info.isModifiable();
+ }
+ return super.isModifiable(element);
+ }
+
+ /**
+ * @generated
+ */
+ protected void updateCache(Object element) throws CoreException {
+ ResourceSetInfo info = getResourceSetInfo(element);
+ if(info != null) {
+ for(Iterator<Resource> it = info.getLoadedResourcesIterator(); it.hasNext();) {
+ Resource nextResource = it.next();
+ IFile file = WorkspaceSynchronizer.getFile(nextResource);
+ if(file != null && file.isReadOnly()) {
+ info.setReadOnly(true);
+ info.setModifiable(false);
+ return;
+ }
+ }
+ info.setReadOnly(false);
+ info.setModifiable(true);
+ return;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void doUpdateStateCache(Object element) throws CoreException {
+ ResourceSetInfo info = getResourceSetInfo(element);
+ if(info != null) {
+ info.setUpdateCache(true);
+ }
+ super.doUpdateStateCache(element);
+ }
+
+ /**
+ * @generated
+ */
+ public boolean isSynchronized(Object element) {
+ ResourceSetInfo info = getResourceSetInfo(element);
+ if(info != null) {
+ return info.isSynchronized();
+ }
+ return super.isSynchronized(element);
+ }
+
+ /**
+ * @generated
+ */
+ protected ISchedulingRule getResetRule(Object element) {
+ ResourceSetInfo info = getResourceSetInfo(element);
+ if(info != null) {
+ LinkedList<ISchedulingRule> rules = new LinkedList<ISchedulingRule>();
+ for(Iterator<Resource> it = info.getLoadedResourcesIterator(); it.hasNext();) {
+ Resource nextResource = it.next();
+ IFile file = WorkspaceSynchronizer.getFile(nextResource);
+ if(file != null) {
+ rules.add(ResourcesPlugin.getWorkspace().getRuleFactory().modifyRule(file));
+ }
+ }
+ return new MultiRule((ISchedulingRule[])rules.toArray(new ISchedulingRule[rules.size()]));
+ }
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected ISchedulingRule getSaveRule(Object element) {
+ ResourceSetInfo info = getResourceSetInfo(element);
+ if(info != null) {
+ LinkedList<ISchedulingRule> rules = new LinkedList<ISchedulingRule>();
+ for(Iterator<Resource> it = info.getLoadedResourcesIterator(); it.hasNext();) {
+ Resource nextResource = it.next();
+ IFile file = WorkspaceSynchronizer.getFile(nextResource);
+ if(file != null) {
+ rules.add(computeSchedulingRule(file));
+ }
+ }
+ return new MultiRule((ISchedulingRule[])rules.toArray(new ISchedulingRule[rules.size()]));
+ }
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected ISchedulingRule getSynchronizeRule(Object element) {
+ ResourceSetInfo info = getResourceSetInfo(element);
+ if(info != null) {
+ LinkedList<ISchedulingRule> rules = new LinkedList<ISchedulingRule>();
+ for(Iterator<Resource> it = info.getLoadedResourcesIterator(); it.hasNext();) {
+ Resource nextResource = it.next();
+ IFile file = WorkspaceSynchronizer.getFile(nextResource);
+ if(file != null) {
+ rules.add(ResourcesPlugin.getWorkspace().getRuleFactory().refreshRule(file));
+ }
+ }
+ return new MultiRule((ISchedulingRule[])rules.toArray(new ISchedulingRule[rules.size()]));
+ }
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected ISchedulingRule getValidateStateRule(Object element) {
+ ResourceSetInfo info = getResourceSetInfo(element);
+ if(info != null) {
+ LinkedList<ISchedulingRule> files = new LinkedList<ISchedulingRule>();
+ for(Iterator<Resource> it = info.getLoadedResourcesIterator(); it.hasNext();) {
+ Resource nextResource = it.next();
+ IFile file = WorkspaceSynchronizer.getFile(nextResource);
+ if(file != null) {
+ files.add(file);
+ }
+ }
+ return ResourcesPlugin.getWorkspace().getRuleFactory().validateEditRule((IFile[])files.toArray(new IFile[files.size()]));
+ }
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ private ISchedulingRule computeSchedulingRule(IResource toCreateOrModify) {
+ if(toCreateOrModify.exists())
+ return ResourcesPlugin.getWorkspace().getRuleFactory().modifyRule(toCreateOrModify);
+
+ IResource parent = toCreateOrModify;
+ do {
+ /*
+ * XXX This is a workaround for
+ * https://bugs.eclipse.org/bugs/show_bug.cgi?id=67601
+ * IResourceRuleFactory.createRule should iterate the hierarchy
+ * itself.
+ */
+ toCreateOrModify = parent;
+ parent = toCreateOrModify.getParent();
+ } while(parent != null && !parent.exists());
+
+ return ResourcesPlugin.getWorkspace().getRuleFactory().createRule(toCreateOrModify);
+ }
+
+ /**
+ * @generated
+ */
+ protected void doSynchronize(Object element, IProgressMonitor monitor) throws CoreException {
+ ResourceSetInfo info = getResourceSetInfo(element);
+ if(info != null) {
+ for(Iterator<Resource> it = info.getLoadedResourcesIterator(); it.hasNext();) {
+ Resource nextResource = it.next();
+ handleElementChanged(info, nextResource, monitor);
+ }
+ return;
+ }
+ super.doSynchronize(element, monitor);
+ }
+
+ /**
+ * @generated
+ */
+ protected void doSaveDocument(IProgressMonitor monitor, Object element, IDocument document, boolean overwrite) throws CoreException {
+ ResourceSetInfo info = getResourceSetInfo(element);
+ if(info != null) {
+ if(!overwrite && !info.isSynchronized()) {
+ throw new CoreException(new Status(IStatus.ERROR, UMLDiagramEditorPlugin.ID, IResourceStatus.OUT_OF_SYNC_LOCAL, Messages.UMLDocumentProvider_UnsynchronizedFileSaveError, null));
+ }
+ info.stopResourceListening();
+ fireElementStateChanging(element);
+ try {
+ monitor.beginTask(Messages.UMLDocumentProvider_SaveDiagramTask, info.getResourceSet().getResources().size() + 1); //"Saving diagram"
+ for(Iterator<Resource> it = info.getLoadedResourcesIterator(); it.hasNext();) {
+ Resource nextResource = it.next();
+ monitor.setTaskName(NLS.bind(Messages.UMLDocumentProvider_SaveNextResourceTask, nextResource.getURI()));
+ if(nextResource.isLoaded() && !info.getEditingDomain().isReadOnly(nextResource)) {
+ try {
+ nextResource.save(UMLDiagramEditorUtil.getSaveOptions());
+ } catch (IOException e) {
+ fireElementStateChangeFailed(element);
+ throw new CoreException(new Status(IStatus.ERROR, UMLDiagramEditorPlugin.ID, EditorStatusCodes.RESOURCE_FAILURE, e.getLocalizedMessage(), null));
+ }
+ }
+ monitor.worked(1);
+ }
+ monitor.done();
+ info.setModificationStamp(computeModificationStamp(info));
+ } catch (RuntimeException x) {
+ fireElementStateChangeFailed(element);
+ throw x;
+ } finally {
+ info.startResourceListening();
+ }
+ } else {
+ URI newResoruceURI;
+ List<IFile> affectedFiles = null;
+ if(element instanceof FileEditorInput) {
+ IFile newFile = ((FileEditorInput)element).getFile();
+ affectedFiles = Collections.singletonList(newFile);
+ newResoruceURI = URI.createPlatformResourceURI(newFile.getFullPath().toString(), true);
+ } else if(element instanceof URIEditorInput) {
+ newResoruceURI = ((URIEditorInput)element).getURI();
+ } else {
+ fireElementStateChangeFailed(element);
+ throw new CoreException(new Status(IStatus.ERROR, UMLDiagramEditorPlugin.ID, 0, NLS.bind(Messages.UMLDocumentProvider_IncorrectInputError, new Object[]{ element, "org.eclipse.ui.part.FileEditorInput", "org.eclipse.emf.common.ui.URIEditorInput" }), //$NON-NLS-1$ //$NON-NLS-2$
+ null));
+ }
+ if(false == document instanceof IDiagramDocument) {
+ fireElementStateChangeFailed(element);
+ throw new CoreException(new Status(IStatus.ERROR, UMLDiagramEditorPlugin.ID, 0, "Incorrect document used: " + document + " instead of org.eclipse.gmf.runtime.diagram.ui.resources.editor.document.IDiagramDocument", null)); //$NON-NLS-1$ //$NON-NLS-2$
+ }
+ IDiagramDocument diagramDocument = (IDiagramDocument)document;
+ final Resource newResource = diagramDocument.getEditingDomain().getResourceSet().createResource(newResoruceURI);
+ final Diagram diagramCopy = (Diagram)EcoreUtil.copy(diagramDocument.getDiagram());
+ try {
+ new AbstractTransactionalCommand(diagramDocument.getEditingDomain(), NLS.bind(Messages.UMLDocumentProvider_SaveAsOperation, diagramCopy.getName()), affectedFiles) {
+
+ protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+ newResource.getContents().add(diagramCopy);
+ return CommandResult.newOKCommandResult();
+ }
+ }.execute(monitor, null);
+ newResource.save(UMLDiagramEditorUtil.getSaveOptions());
+ } catch (ExecutionException e) {
+ fireElementStateChangeFailed(element);
+ throw new CoreException(new Status(IStatus.ERROR, UMLDiagramEditorPlugin.ID, 0, e.getLocalizedMessage(), null));
+ } catch (IOException e) {
+ fireElementStateChangeFailed(element);
+ throw new CoreException(new Status(IStatus.ERROR, UMLDiagramEditorPlugin.ID, 0, e.getLocalizedMessage(), null));
+ }
+ newResource.unload();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void handleElementChanged(ResourceSetInfo info, Resource changedResource, IProgressMonitor monitor) {
+ IFile file = WorkspaceSynchronizer.getFile(changedResource);
+ if(file != null) {
+ try {
+ file.refreshLocal(IResource.DEPTH_INFINITE, monitor);
+ } catch (CoreException ex) {
+ UMLDiagramEditorPlugin.getInstance().logError(Messages.UMLDocumentProvider_handleElementContentChanged, ex);
+ // Error message to log was initially taken from org.eclipse.gmf.runtime.diagram.ui.resources.editor.ide.internal.l10n.EditorMessages.FileDocumentProvider_handleElementContentChanged
+ }
+ }
+ changedResource.unload();
+
+ fireElementContentAboutToBeReplaced(info.getEditorInput());
+ removeUnchangedElementListeners(info.getEditorInput(), info);
+ info.fStatus = null;
+ try {
+ setDocumentContent(info.fDocument, info.getEditorInput());
+ } catch (CoreException e) {
+ info.fStatus = e.getStatus();
+ }
+ if(!info.fCanBeSaved) {
+ info.setModificationStamp(computeModificationStamp(info));
+ }
+ addUnchangedElementListeners(info.getEditorInput(), info);
+ fireElementContentReplaced(info.getEditorInput());
+ }
+
+ /**
+ * @generated
+ */
+ protected void handleElementMoved(IEditorInput input, URI uri) {
+ if(input instanceof FileEditorInput) {
+ IFile newFile = ResourcesPlugin.getWorkspace().getRoot().getFile(new Path(URI.decode(uri.path())).removeFirstSegments(1));
+ fireElementMoved(input, newFile == null ? null : new FileEditorInput(newFile));
+ return;
+ }
+ // TODO: append suffix to the URI! (use diagram as a parameter)
+ fireElementMoved(input, new URIEditorInput(uri));
+ }
+
+ /**
+ * @generated
+ */
+ public IEditorInput createInputWithEditingDomain(IEditorInput editorInput, TransactionalEditingDomain domain) {
+ return editorInput;
+ }
+
+ /**
+ * @generated
+ */
+ public IDiagramDocument getDiagramDocument(Object element) {
+ IDocument doc = getDocument(element);
+ if(doc instanceof IDiagramDocument) {
+ return (IDiagramDocument)doc;
+ }
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected IRunnableContext getOperationRunner(IProgressMonitor monitor) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected class ResourceSetInfo extends ElementInfo {
+
+ /**
+ * @generated
+ */
+ private long myModificationStamp = IResource.NULL_STAMP;
+
+ /**
+ * @generated
+ */
+ private WorkspaceSynchronizer mySynchronizer;
+
+ /**
+ * @generated
+ */
+ private LinkedList<Resource> myUnSynchronizedResources = new LinkedList<Resource>();
+
+ /**
+ * @generated
+ */
+ private IDiagramDocument myDocument;
+
+ /**
+ * @generated
+ */
+ private IEditorInput myEditorInput;
+
+ /**
+ * @generated
+ */
+ private boolean myUpdateCache = true;
+
+ /**
+ * @generated
+ */
+ private boolean myModifiable = false;
+
+ /**
+ * @generated
+ */
+ private boolean myReadOnly = true;
+
+ /**
+ * @generated
+ */
+ private ResourceSetModificationListener myResourceSetListener;
+
+ /**
+ * @generated
+ */
+ public ResourceSetInfo(IDiagramDocument document, IEditorInput editorInput) {
+ super(document);
+ myDocument = document;
+ myEditorInput = editorInput;
+ startResourceListening();
+ myResourceSetListener = new ResourceSetModificationListener(this);
+ getResourceSet().eAdapters().add(myResourceSetListener);
+ }
+
+ /**
+ * @generated
+ */
+ public long getModificationStamp() {
+ return myModificationStamp;
+ }
+
+ /**
+ * @generated
+ */
+ public void setModificationStamp(long modificationStamp) {
+ myModificationStamp = modificationStamp;
+ }
+
+ /**
+ * @generated
+ */
+ public TransactionalEditingDomain getEditingDomain() {
+ return myDocument.getEditingDomain();
+ }
+
+ /**
+ * @generated
+ */
+ public ResourceSet getResourceSet() {
+ return getEditingDomain().getResourceSet();
+ }
+
+ /**
+ * @generated
+ */
+ public Iterator<Resource> getLoadedResourcesIterator() {
+ return new ArrayList<Resource>(getResourceSet().getResources()).iterator();
+ }
+
+ /**
+ * @generated
+ */
+ public IEditorInput getEditorInput() {
+ return myEditorInput;
+ }
+
+ /**
+ * @generated
+ */
+ public void dispose() {
+ stopResourceListening();
+ getResourceSet().eAdapters().remove(myResourceSetListener);
+ for(Iterator<Resource> it = getLoadedResourcesIterator(); it.hasNext();) {
+ Resource resource = it.next();
+ resource.unload();
+ }
+ getEditingDomain().dispose();
+ }
+
+ /**
+ * @generated
+ */
+ public boolean isSynchronized() {
+ return myUnSynchronizedResources.size() == 0;
+ }
+
+ /**
+ * @generated
+ */
+ public void setUnSynchronized(Resource resource) {
+ myUnSynchronizedResources.add(resource);
+ }
+
+ /**
+ * @generated
+ */
+ public void setSynchronized(Resource resource) {
+ myUnSynchronizedResources.remove(resource);
+ }
+
+ /**
+ * @generated
+ */
+ public final void stopResourceListening() {
+ mySynchronizer.dispose();
+ mySynchronizer = null;
+ }
+
+ /**
+ * @generated
+ */
+ public final void startResourceListening() {
+ mySynchronizer = new WorkspaceSynchronizer(getEditingDomain(), new SynchronizerDelegate());
+ }
+
+ /**
+ * @generated
+ */
+ public boolean isUpdateCache() {
+ return myUpdateCache;
+ }
+
+ /**
+ * @generated
+ */
+ public void setUpdateCache(boolean update) {
+ myUpdateCache = update;
+ }
+
+ /**
+ * @generated
+ */
+ public boolean isModifiable() {
+ return myModifiable;
+ }
+
+ /**
+ * @generated
+ */
+ public void setModifiable(boolean modifiable) {
+ myModifiable = modifiable;
+ }
+
+ /**
+ * @generated
+ */
+ public boolean isReadOnly() {
+ return myReadOnly;
+ }
+
+ /**
+ * @generated
+ */
+ public void setReadOnly(boolean readOnly) {
+ myReadOnly = readOnly;
+ }
+
+ /**
+ * @generated
+ */
+ private class SynchronizerDelegate implements WorkspaceSynchronizer.Delegate {
+
+ /**
+ * @generated
+ */
+ public void dispose() {
+ }
+
+ /**
+ * @generated
+ */
+ public boolean handleResourceChanged(final Resource resource) {
+ synchronized(ResourceSetInfo.this) {
+ if(ResourceSetInfo.this.fCanBeSaved) {
+ ResourceSetInfo.this.setUnSynchronized(resource);
+ return true;
+ }
+ }
+ Display.getDefault().asyncExec(new Runnable() {
+
+ public void run() {
+ handleElementChanged(ResourceSetInfo.this, resource, null);
+ }
+ });
+ return true;
+ }
+
+ /**
+ * @generated
+ */
+ public boolean handleResourceDeleted(Resource resource) {
+ synchronized(ResourceSetInfo.this) {
+ if(ResourceSetInfo.this.fCanBeSaved) {
+ ResourceSetInfo.this.setUnSynchronized(resource);
+ return true;
+ }
+ }
+ Display.getDefault().asyncExec(new Runnable() {
+
+ public void run() {
+ fireElementDeleted(ResourceSetInfo.this.getEditorInput());
+ }
+ });
+ return true;
+ }
+
+ /**
+ * @generated
+ */
+ public boolean handleResourceMoved(Resource resource, final URI newURI) {
+ synchronized(ResourceSetInfo.this) {
+ if(ResourceSetInfo.this.fCanBeSaved) {
+ ResourceSetInfo.this.setUnSynchronized(resource);
+ return true;
+ }
+ }
+ if(myDocument.getDiagram().eResource() == resource) {
+ Display.getDefault().asyncExec(new Runnable() {
+
+ public void run() {
+ handleElementMoved(ResourceSetInfo.this.getEditorInput(), newURI);
+ }
+ });
+ } else {
+ handleResourceDeleted(resource);
+ }
+ return true;
+ }
+
+ }
+
+ }
+
+ /**
+ * @generated
+ */
+ private class ResourceSetModificationListener extends EContentAdapter {
+
+ /**
+ * @generated
+ */
+ private NotificationFilter myModifiedFilter;
+
+ /**
+ * @generated
+ */
+ private ResourceSetInfo myInfo;
+
+ /**
+ * @generated
+ */
+ public ResourceSetModificationListener(ResourceSetInfo info) {
+ myInfo = info;
+ myModifiedFilter = NotificationFilter.createEventTypeFilter(Notification.SET).or(NotificationFilter.createEventTypeFilter(Notification.UNSET)).and(NotificationFilter.createFeatureFilter(Resource.class, Resource.RESOURCE__IS_MODIFIED));
+ }
+
+ /**
+ * @generated
+ */
+ public void notifyChanged(Notification notification) {
+ if(notification.getNotifier() instanceof ResourceSet) {
+ super.notifyChanged(notification);
+ }
+ if(!notification.isTouch() && myModifiedFilter.matches(notification)) {
+ if(notification.getNotifier() instanceof Resource) {
+ Resource resource = (Resource)notification.getNotifier();
+ if(resource.isLoaded()) {
+ boolean modified = false;
+ for(Iterator/* <org.eclipse.emf.ecore.resource.Resource> */it = myInfo.getLoadedResourcesIterator(); it.hasNext() && !modified;) {
+ Resource nextResource = (Resource)it.next();
+ if(nextResource.isLoaded()) {
+ modified = nextResource.isModified();
+ }
+ }
+ boolean dirtyStateChanged = false;
+ synchronized(myInfo) {
+ if(modified != myInfo.fCanBeSaved) {
+ myInfo.fCanBeSaved = modified;
+ dirtyStateChanged = true;
+ }
+ if(!resource.isModified()) {
+ myInfo.setSynchronized(resource);
+ }
+ }
+ if(dirtyStateChanged) {
+ fireElementDirtyStateChanged(myInfo.getEditorInput(), modified);
+
+ if(!modified) {
+ myInfo.setModificationStamp(computeModificationStamp(myInfo));
+ }
+ }
+ }
+ }
+ }
+ }
+
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/part/UMLInitDiagramFileAction.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/part/UMLInitDiagramFileAction.java
new file mode 100644
index 00000000000..abda6e14e4b
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/part/UMLInitDiagramFileAction.java
@@ -0,0 +1,99 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.part;
+
+import org.eclipse.core.resources.IFile;
+import org.eclipse.emf.common.util.URI;
+import org.eclipse.emf.common.util.WrappedException;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.ecore.resource.Resource;
+import org.eclipse.emf.ecore.resource.ResourceSet;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gmf.runtime.emf.core.GMFEditingDomainFactory;
+import org.eclipse.jface.action.IAction;
+import org.eclipse.jface.dialogs.MessageDialog;
+import org.eclipse.jface.viewers.ISelection;
+import org.eclipse.jface.viewers.IStructuredSelection;
+import org.eclipse.jface.wizard.Wizard;
+import org.eclipse.osgi.util.NLS;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CompositeStructureDiagramEditPart;
+import org.eclipse.swt.widgets.Shell;
+import org.eclipse.ui.IObjectActionDelegate;
+import org.eclipse.ui.IWorkbenchPart;
+
+/**
+ * @generated
+ */
+public class UMLInitDiagramFileAction implements IObjectActionDelegate {
+
+ /**
+ * @generated
+ */
+ private IWorkbenchPart targetPart;
+
+ /**
+ * @generated
+ */
+ private URI domainModelURI;
+
+ /**
+ * @generated
+ */
+ public void setActivePart(IAction action, IWorkbenchPart targetPart) {
+ this.targetPart = targetPart;
+ }
+
+ /**
+ * @generated
+ */
+ public void selectionChanged(IAction action, ISelection selection) {
+ domainModelURI = null;
+ action.setEnabled(false);
+ if(selection instanceof IStructuredSelection == false || selection.isEmpty()) {
+ return;
+ }
+ IFile file = (IFile)((IStructuredSelection)selection).getFirstElement();
+ domainModelURI = URI.createPlatformResourceURI(file.getFullPath().toString(), true);
+ action.setEnabled(true);
+ }
+
+ /**
+ * @generated
+ */
+ private Shell getShell() {
+ return targetPart.getSite().getShell();
+ }
+
+ /**
+ * @generated
+ */
+ public void run(IAction action) {
+ TransactionalEditingDomain editingDomain = GMFEditingDomainFactory.INSTANCE.createEditingDomain();
+ ResourceSet resourceSet = editingDomain.getResourceSet();
+ EObject diagramRoot = null;
+ try {
+ Resource resource = resourceSet.getResource(domainModelURI, true);
+ diagramRoot = (EObject)resource.getContents().get(0);
+ } catch (WrappedException ex) {
+ UMLDiagramEditorPlugin.getInstance().logError("Unable to load resource: " + domainModelURI, ex); //$NON-NLS-1$
+ }
+ if(diagramRoot == null) {
+ MessageDialog.openError(getShell(), Messages.InitDiagramFile_ResourceErrorDialogTitle, Messages.InitDiagramFile_ResourceErrorDialogMessage);
+ return;
+ }
+ Wizard wizard = new UMLNewDiagramFileWizard(domainModelURI, diagramRoot, editingDomain);
+ wizard.setWindowTitle(NLS.bind(Messages.InitDiagramFile_WizardTitle, CompositeStructureDiagramEditPart.MODEL_ID));
+ UMLDiagramEditorUtil.runWizard(getShell(), wizard, "InitDiagramFile"); //$NON-NLS-1$
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/part/UMLLinkDescriptor.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/part/UMLLinkDescriptor.java
new file mode 100644
index 00000000000..06abf5ae519
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/part/UMLLinkDescriptor.java
@@ -0,0 +1,105 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.part;
+
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+
+/**
+ * @generated
+ */
+public class UMLLinkDescriptor extends UMLNodeDescriptor {
+
+ /**
+ * @generated
+ */
+ private EObject mySource;
+
+ /**
+ * @generated
+ */
+ private EObject myDestination;
+
+ /**
+ * @generated
+ */
+ private IAdaptable mySemanticAdapter;
+
+ /**
+ * @generated
+ */
+ private UMLLinkDescriptor(EObject source, EObject destination, EObject linkElement, int linkVID) {
+ super(linkElement, linkVID);
+ mySource = source;
+ myDestination = destination;
+ }
+
+ /**
+ * @generated
+ */
+ public UMLLinkDescriptor(EObject source, EObject destination, IElementType elementType, int linkVID) {
+ this(source, destination, (EObject)null, linkVID);
+ final IElementType elementTypeCopy = elementType;
+ mySemanticAdapter = new IAdaptable() {
+
+ public Object getAdapter(Class adapter) {
+ if(IElementType.class.equals(adapter)) {
+ return elementTypeCopy;
+ }
+ return null;
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ public UMLLinkDescriptor(EObject source, EObject destination, EObject linkElement, IElementType elementType, int linkVID) {
+ this(source, destination, linkElement, linkVID);
+ final IElementType elementTypeCopy = elementType;
+ mySemanticAdapter = new EObjectAdapter(linkElement) {
+
+ public Object getAdapter(Class adapter) {
+ if(IElementType.class.equals(adapter)) {
+ return elementTypeCopy;
+ }
+ return super.getAdapter(adapter);
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ public EObject getSource() {
+ return mySource;
+ }
+
+ /**
+ * @generated
+ */
+ public EObject getDestination() {
+ return myDestination;
+ }
+
+ /**
+ * @generated
+ */
+ public IAdaptable getSemanticAdapter() {
+ return mySemanticAdapter;
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/part/UMLMatchingStrategy.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/part/UMLMatchingStrategy.java
new file mode 100644
index 00000000000..5cec4aac4bb
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/part/UMLMatchingStrategy.java
@@ -0,0 +1,47 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.part;
+
+import org.eclipse.emf.common.ui.URIEditorInput;
+import org.eclipse.ui.IEditorInput;
+import org.eclipse.ui.IEditorMatchingStrategy;
+import org.eclipse.ui.IEditorReference;
+import org.eclipse.ui.PartInitException;
+
+/**
+ * @generated
+ */
+public class UMLMatchingStrategy implements IEditorMatchingStrategy {
+
+ /**
+ * @generated
+ */
+ public boolean matches(IEditorReference editorRef, IEditorInput input) {
+ IEditorInput editorInput;
+ try {
+ editorInput = editorRef.getEditorInput();
+ } catch (PartInitException e) {
+ return false;
+ }
+
+ if(editorInput.equals(input)) {
+ return true;
+ }
+ if(editorInput instanceof URIEditorInput && input instanceof URIEditorInput) {
+ return ((URIEditorInput)editorInput).getURI().equals(((URIEditorInput)input).getURI());
+ }
+ return false;
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/part/UMLNewDiagramFileWizard.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/part/UMLNewDiagramFileWizard.java
new file mode 100644
index 00000000000..12366e60ad4
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/part/UMLNewDiagramFileWizard.java
@@ -0,0 +1,175 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.part;
+
+import java.io.IOException;
+import java.util.LinkedList;
+
+import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.core.commands.operations.OperationHistoryFactory;
+import org.eclipse.core.resources.IFile;
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.core.runtime.IPath;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.core.runtime.NullProgressMonitor;
+import org.eclipse.core.runtime.Path;
+import org.eclipse.emf.common.util.URI;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.ecore.resource.Resource;
+import org.eclipse.emf.ecore.resource.ResourceSet;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gmf.runtime.common.core.command.CommandResult;
+import org.eclipse.gmf.runtime.diagram.core.services.ViewService;
+import org.eclipse.gmf.runtime.diagram.core.services.view.CreateDiagramViewOperation;
+import org.eclipse.gmf.runtime.emf.commands.core.command.AbstractTransactionalCommand;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.notation.Diagram;
+import org.eclipse.jface.viewers.StructuredSelection;
+import org.eclipse.jface.wizard.Wizard;
+import org.eclipse.osgi.util.NLS;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CompositeStructureDiagramEditPart;
+import org.eclipse.ui.PartInitException;
+import org.eclipse.ui.dialogs.WizardNewFileCreationPage;
+
+/**
+ * @generated
+ */
+public class UMLNewDiagramFileWizard extends Wizard {
+
+ /**
+ * @generated
+ */
+ private WizardNewFileCreationPage myFileCreationPage;
+
+ /**
+ * @generated
+ */
+ private ModelElementSelectionPage diagramRootElementSelectionPage;
+
+ /**
+ * @generated
+ */
+ private TransactionalEditingDomain myEditingDomain;
+
+ /**
+ * @generated
+ */
+ public UMLNewDiagramFileWizard(URI domainModelURI, EObject diagramRoot, TransactionalEditingDomain editingDomain) {
+ assert domainModelURI != null : "Domain model uri must be specified"; //$NON-NLS-1$
+ assert diagramRoot != null : "Doagram root element must be specified"; //$NON-NLS-1$
+ assert editingDomain != null : "Editing domain must be specified"; //$NON-NLS-1$
+
+ myFileCreationPage = new WizardNewFileCreationPage(Messages.UMLNewDiagramFileWizard_CreationPageName, StructuredSelection.EMPTY);
+ myFileCreationPage.setTitle(Messages.UMLNewDiagramFileWizard_CreationPageTitle);
+ myFileCreationPage.setDescription(NLS.bind(Messages.UMLNewDiagramFileWizard_CreationPageDescription, CompositeStructureDiagramEditPart.MODEL_ID));
+ IPath filePath;
+ String fileName = URI.decode(domainModelURI.trimFileExtension().lastSegment());
+ if(domainModelURI.isPlatformResource()) {
+ filePath = new Path(domainModelURI.trimSegments(1).toPlatformString(true));
+ } else if(domainModelURI.isFile()) {
+ filePath = new Path(domainModelURI.trimSegments(1).toFileString());
+ } else {
+ // TODO : use some default path
+ throw new IllegalArgumentException("Unsupported URI: " + domainModelURI); //$NON-NLS-1$
+ }
+ myFileCreationPage.setContainerFullPath(filePath);
+ myFileCreationPage.setFileName(UMLDiagramEditorUtil.getUniqueFileName(filePath, fileName, "uml_csd")); //$NON-NLS-1$
+
+ diagramRootElementSelectionPage = new DiagramRootElementSelectionPage(Messages.UMLNewDiagramFileWizard_RootSelectionPageName);
+ diagramRootElementSelectionPage.setTitle(Messages.UMLNewDiagramFileWizard_RootSelectionPageTitle);
+ diagramRootElementSelectionPage.setDescription(Messages.UMLNewDiagramFileWizard_RootSelectionPageDescription);
+ diagramRootElementSelectionPage.setModelElement(diagramRoot);
+
+ myEditingDomain = editingDomain;
+ }
+
+ /**
+ * @generated
+ */
+ public void addPages() {
+ addPage(myFileCreationPage);
+ addPage(diagramRootElementSelectionPage);
+ }
+
+ /**
+ * @generated
+ */
+ public boolean performFinish() {
+ LinkedList<IFile> affectedFiles = new LinkedList<IFile>();
+ IFile diagramFile = myFileCreationPage.createNewFile();
+ UMLDiagramEditorUtil.setCharset(diagramFile);
+ affectedFiles.add(diagramFile);
+ URI diagramModelURI = URI.createPlatformResourceURI(diagramFile.getFullPath().toString(), true);
+ ResourceSet resourceSet = myEditingDomain.getResourceSet();
+ final Resource diagramResource = resourceSet.createResource(diagramModelURI);
+ AbstractTransactionalCommand command = new AbstractTransactionalCommand(myEditingDomain, Messages.UMLNewDiagramFileWizard_InitDiagramCommand, affectedFiles) {
+
+ protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+ int diagramVID = UMLVisualIDRegistry.getDiagramVisualID(diagramRootElementSelectionPage.getModelElement());
+ if(diagramVID != CompositeStructureDiagramEditPart.VISUAL_ID) {
+ return CommandResult.newErrorCommandResult(Messages.UMLNewDiagramFileWizard_IncorrectRootError);
+ }
+ Diagram diagram = ViewService.createDiagram(diagramRootElementSelectionPage.getModelElement(), CompositeStructureDiagramEditPart.MODEL_ID, UMLDiagramEditorPlugin.DIAGRAM_PREFERENCES_HINT);
+ diagramResource.getContents().add(diagram);
+ new UMLDiagramContentInitializer().initDiagramContent(diagram);
+ return CommandResult.newOKCommandResult();
+ }
+ };
+ try {
+ OperationHistoryFactory.getOperationHistory().execute(command, new NullProgressMonitor(), null);
+ diagramResource.save(UMLDiagramEditorUtil.getSaveOptions());
+ UMLDiagramEditorUtil.openDiagram(diagramResource);
+ } catch (ExecutionException e) {
+ UMLDiagramEditorPlugin.getInstance().logError("Unable to create model and diagram", e); //$NON-NLS-1$
+ } catch (IOException ex) {
+ UMLDiagramEditorPlugin.getInstance().logError("Save operation failed for: " + diagramModelURI, ex); //$NON-NLS-1$
+ } catch (PartInitException ex) {
+ UMLDiagramEditorPlugin.getInstance().logError("Unable to open editor", ex); //$NON-NLS-1$
+ }
+ return true;
+ }
+
+ /**
+ * @generated
+ */
+ private static class DiagramRootElementSelectionPage extends ModelElementSelectionPage {
+
+ /**
+ * @generated
+ */
+ protected DiagramRootElementSelectionPage(String pageName) {
+ super(pageName);
+ }
+
+ /**
+ * @generated
+ */
+ protected String getSelectionTitle() {
+ return Messages.UMLNewDiagramFileWizard_RootSelectionPageSelectionTitle;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean validatePage() {
+ if(selectedModelElement == null) {
+ setErrorMessage(Messages.UMLNewDiagramFileWizard_RootSelectionPageNoSelectionMessage);
+ return false;
+ }
+ boolean result = ViewService.getInstance().provides(new CreateDiagramViewOperation(new EObjectAdapter(selectedModelElement), CompositeStructureDiagramEditPart.MODEL_ID, UMLDiagramEditorPlugin.DIAGRAM_PREFERENCES_HINT));
+ setErrorMessage(result ? null : Messages.UMLNewDiagramFileWizard_RootSelectionPageInvalidSelectionMessage);
+ return result;
+ }
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/part/UMLNodeDescriptor.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/part/UMLNodeDescriptor.java
new file mode 100644
index 00000000000..6d61fbd8fe3
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/part/UMLNodeDescriptor.java
@@ -0,0 +1,55 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.part;
+
+import org.eclipse.emf.ecore.EObject;
+
+/**
+ * @generated
+ */
+public class UMLNodeDescriptor {
+
+ /**
+ * @generated
+ */
+ private final EObject myModelElement;
+
+ /**
+ * @generated
+ */
+ private final int myVisualID;
+
+ /**
+ * @generated
+ */
+ public UMLNodeDescriptor(EObject modelElement, int visualID) {
+ myModelElement = modelElement;
+ myVisualID = visualID;
+ }
+
+ /**
+ * @generated
+ */
+ public EObject getModelElement() {
+ return myModelElement;
+ }
+
+ /**
+ * @generated
+ */
+ public int getVisualID() {
+ return myVisualID;
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/part/UMLPaletteFactory.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/part/UMLPaletteFactory.java
new file mode 100644
index 00000000000..fa33426a153
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/part/UMLPaletteFactory.java
@@ -0,0 +1,621 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.part;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import org.eclipse.gef.Tool;
+import org.eclipse.gmf.runtime.diagram.ui.services.palette.PaletteFactory;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.papyrus.diagram.common.service.AspectUnspecifiedTypeConnectionTool;
+import org.eclipse.papyrus.diagram.common.service.AspectUnspecifiedTypeCreationTool;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+
+/**
+ * @generated
+ */
+public class UMLPaletteFactory extends PaletteFactory.Adapter {
+
+ /**
+ * @generated
+ */
+ private final static String COMPOSITE_TOOL_CLASS = "composite.tool.class"; //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ private final static String COMPOSITE_TOOL_PROPERTY = "composite.tool.property"; //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ private final static String COMPOSITE_TOOL_PORT = "composite.tool.port"; //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ private final static String COMPOSITE_TOOL_COLLABORATION = "composite.tool.collaboration"; //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ private final static String COMPOSITE_TOOL_COLLABORATIONROLE = "composite.tool.collaborationrole"; //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ private final static String COMPOSITE_TOOL_COLLABORATIONUSE = "composite.tool.collaborationuse"; //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ private final static String COMPOSITE_TOOL_COMMENT = "composite.tool.comment"; //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ private final static String COMPOSITE_TOOL_CONSTRAINT = "composite.tool.constraint"; //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ private final static String COMPOSITE_TOOL_TIMEOBSERVATION = "composite.tool.timeobservation"; //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ private final static String COMPOSITE_TOOL_DURATIONOBSERVATION = "composite.tool.durationobservation"; //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ private final static String COMPOSITE_TOOL_INFORMATIONITEM = "composite.tool.informationitem"; //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ private final static String COMPOSITE_TOOL_PARAMETER = "composite.tool.parameter"; //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ private final static String COMPOSITE_TOOL_ACTIVITY = "composite.tool.activity"; //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ private final static String COMPOSITE_TOOL_INTERACTION = "composite.tool.interaction"; //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ private final static String COMPOSITE_TOOL_PROTOCOLSTATEMACHINE = "composite.tool.protocolstatemachine"; //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ private final static String COMPOSITE_TOOL_STATEMACHINE = "composite.tool.statemachine"; //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ private final static String COMPOSITE_TOOL_FUNCTIONBEHAVIOR = "composite.tool.functionbehavior"; //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ private final static String COMPOSITE_TOOL_OPAQUEBEHAVIOR = "composite.tool.opaquebehavior"; //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ private final static String COMPOSITE_TOOL_LINK = "composite.tool.link"; //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ private final static String COMPOSITE_TOOL_CONNECTOR = "composite.tool.connector"; //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ private final static String COMPOSITE_TOOL_ROLEBINDING = "composite.tool.rolebinding"; //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ private final static String COMPOSITE_TOOL_GENERALIZATION = "composite.tool.generalization"; //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ private final static String COMPOSITE_TOOL_REALIZATION = "composite.tool.realization"; //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ private final static String COMPOSITE_TOOL_SUBSTITUTION = "composite.tool.substitution"; //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ private final static String COMPOSITE_TOOL_ABSTRACTION = "composite.tool.abstraction"; //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ private final static String COMPOSITE_TOOL_USAGE = "composite.tool.usage"; //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ private final static String COMPOSITE_TOOL_DEPENDENCY = "composite.tool.dependency"; //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ private final static String COMPOSITE_TOOL_REPRESENTATION = "composite.tool.representation"; //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ private final static String COMPOSITE_TOOL_INFORMATIONFLOW = "composite.tool.informationflow"; //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ public UMLPaletteFactory() {
+
+ }
+
+ /**
+ * @generated
+ */
+ public Tool createTool(String toolId) {
+ if(toolId.equals(COMPOSITE_TOOL_CLASS)) {
+ return createClassCreationTool();
+ }
+ if(toolId.equals(COMPOSITE_TOOL_PROPERTY)) {
+ return createPropertyCreationTool();
+ }
+ if(toolId.equals(COMPOSITE_TOOL_PORT)) {
+ return createPortCreationTool();
+ }
+ if(toolId.equals(COMPOSITE_TOOL_COLLABORATION)) {
+ return createCollaborationCreationTool();
+ }
+ if(toolId.equals(COMPOSITE_TOOL_COLLABORATIONROLE)) {
+ return createCollaborationRoleCreationTool();
+ }
+ if(toolId.equals(COMPOSITE_TOOL_COLLABORATIONUSE)) {
+ return createCollaborationUseCreationTool();
+ }
+ if(toolId.equals(COMPOSITE_TOOL_COMMENT)) {
+ return createCommentCreationTool();
+ }
+ if(toolId.equals(COMPOSITE_TOOL_CONSTRAINT)) {
+ return createConstraintCreationTool();
+ }
+ if(toolId.equals(COMPOSITE_TOOL_TIMEOBSERVATION)) {
+ return createTimeObservationCreationTool();
+ }
+ if(toolId.equals(COMPOSITE_TOOL_DURATIONOBSERVATION)) {
+ return createDurationObservationCreationTool();
+ }
+ if(toolId.equals(COMPOSITE_TOOL_INFORMATIONITEM)) {
+ return createInformationItemCreationTool();
+ }
+ if(toolId.equals(COMPOSITE_TOOL_PARAMETER)) {
+ return createParameterCreationTool();
+ }
+ if(toolId.equals(COMPOSITE_TOOL_ACTIVITY)) {
+ return createActivityCreationTool();
+ }
+ if(toolId.equals(COMPOSITE_TOOL_INTERACTION)) {
+ return createInteractionCreationTool();
+ }
+ if(toolId.equals(COMPOSITE_TOOL_PROTOCOLSTATEMACHINE)) {
+ return createProtocolStateMachineCreationTool();
+ }
+ if(toolId.equals(COMPOSITE_TOOL_STATEMACHINE)) {
+ return createStateMachineCreationTool();
+ }
+ if(toolId.equals(COMPOSITE_TOOL_FUNCTIONBEHAVIOR)) {
+ return createFunctionBehaviorCreationTool();
+ }
+ if(toolId.equals(COMPOSITE_TOOL_OPAQUEBEHAVIOR)) {
+ return createOpaqueBehaviorCreationTool();
+ }
+ if(toolId.equals(COMPOSITE_TOOL_LINK)) {
+ return createLinkCreationTool();
+ }
+ if(toolId.equals(COMPOSITE_TOOL_CONNECTOR)) {
+ return createConnectorCreationTool();
+ }
+ if(toolId.equals(COMPOSITE_TOOL_ROLEBINDING)) {
+ return createRoleBindingCreationTool();
+ }
+ if(toolId.equals(COMPOSITE_TOOL_GENERALIZATION)) {
+ return createGeneralizationCreationTool();
+ }
+ if(toolId.equals(COMPOSITE_TOOL_REALIZATION)) {
+ return createRealizationCreationTool();
+ }
+ if(toolId.equals(COMPOSITE_TOOL_SUBSTITUTION)) {
+ return createSubstitutionCreationTool();
+ }
+ if(toolId.equals(COMPOSITE_TOOL_ABSTRACTION)) {
+ return createAbstractionCreationTool();
+ }
+ if(toolId.equals(COMPOSITE_TOOL_USAGE)) {
+ return createUsageCreationTool();
+ }
+ if(toolId.equals(COMPOSITE_TOOL_DEPENDENCY)) {
+ return createDependencyCreationTool();
+ }
+ if(toolId.equals(COMPOSITE_TOOL_REPRESENTATION)) {
+ return createRepresentationCreationTool();
+ }
+ if(toolId.equals(COMPOSITE_TOOL_INFORMATIONFLOW)) {
+ return createInformationFlowCreationTool();
+ }
+
+ // default return: null
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ public Object getTemplate(String templateId) {
+
+ // default return: null
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ private Tool createClassCreationTool() {
+ List<IElementType> types = new ArrayList<IElementType>(2);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Class_3085);
+
+ Tool tool = new AspectUnspecifiedTypeCreationTool(types);
+ return tool;
+ }
+
+ /**
+ * @generated
+ */
+ private Tool createPropertyCreationTool() {
+ List<IElementType> types = new ArrayList<IElementType>(1);
+ types.add(UMLElementTypes.Property_3070);
+
+ Tool tool = new AspectUnspecifiedTypeCreationTool(types);
+ return tool;
+ }
+
+ /**
+ * @generated
+ */
+ private Tool createPortCreationTool() {
+ List<IElementType> types = new ArrayList<IElementType>(1);
+ types.add(UMLElementTypes.Port_3069);
+
+ Tool tool = new AspectUnspecifiedTypeCreationTool(types);
+ return tool;
+ }
+
+ /**
+ * @generated
+ */
+ private Tool createCollaborationCreationTool() {
+ List<IElementType> types = new ArrayList<IElementType>(2);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Collaboration_2075);
+
+ Tool tool = new AspectUnspecifiedTypeCreationTool(types);
+ return tool;
+ }
+
+ /**
+ * @generated
+ */
+ private Tool createCollaborationRoleCreationTool() {
+ List<IElementType> types = new ArrayList<IElementType>(1);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+
+ Tool tool = new AspectUnspecifiedTypeCreationTool(types);
+ return tool;
+ }
+
+ /**
+ * @generated
+ */
+ private Tool createCollaborationUseCreationTool() {
+ List<IElementType> types = new ArrayList<IElementType>(1);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+
+ Tool tool = new AspectUnspecifiedTypeCreationTool(types);
+ return tool;
+ }
+
+ /**
+ * @generated
+ */
+ private Tool createCommentCreationTool() {
+ List<IElementType> types = new ArrayList<IElementType>(2);
+ types.add(UMLElementTypes.Comment_3097);
+ types.add(UMLElementTypes.Comment_2109);
+
+ Tool tool = new AspectUnspecifiedTypeCreationTool(types);
+ return tool;
+ }
+
+ /**
+ * @generated
+ */
+ private Tool createConstraintCreationTool() {
+ List<IElementType> types = new ArrayList<IElementType>(2);
+ types.add(UMLElementTypes.Constraint_2114);
+ types.add(UMLElementTypes.Constraint_3120);
+
+ Tool tool = new AspectUnspecifiedTypeCreationTool(types);
+ return tool;
+ }
+
+ /**
+ * @generated
+ */
+ private Tool createTimeObservationCreationTool() {
+ List<IElementType> types = new ArrayList<IElementType>(1);
+ types.add(UMLElementTypes.TimeObservation_2094);
+
+ Tool tool = new AspectUnspecifiedTypeCreationTool(types);
+ return tool;
+ }
+
+ /**
+ * @generated
+ */
+ private Tool createDurationObservationCreationTool() {
+ List<IElementType> types = new ArrayList<IElementType>(1);
+ types.add(UMLElementTypes.DurationObservation_2093);
+
+ Tool tool = new AspectUnspecifiedTypeCreationTool(types);
+ return tool;
+ }
+
+ /**
+ * @generated
+ */
+ private Tool createInformationItemCreationTool() {
+ List<IElementType> types = new ArrayList<IElementType>(2);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.InformationItem_2080);
+
+ Tool tool = new AspectUnspecifiedTypeCreationTool(types);
+ return tool;
+ }
+
+ /**
+ * @generated
+ */
+ private Tool createParameterCreationTool() {
+ List<IElementType> types = new ArrayList<IElementType>(1);
+ types.add(UMLElementTypes.Parameter_3088);
+
+ Tool tool = new AspectUnspecifiedTypeCreationTool(types);
+ return tool;
+ }
+
+ /**
+ * @generated
+ */
+ private Tool createActivityCreationTool() {
+ List<IElementType> types = new ArrayList<IElementType>(2);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Activity_2060);
+
+ Tool tool = new AspectUnspecifiedTypeCreationTool(types);
+ return tool;
+ }
+
+ /**
+ * @generated
+ */
+ private Tool createInteractionCreationTool() {
+ List<IElementType> types = new ArrayList<IElementType>(2);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.Interaction_2061);
+
+ Tool tool = new AspectUnspecifiedTypeCreationTool(types);
+ return tool;
+ }
+
+ /**
+ * @generated
+ */
+ private Tool createProtocolStateMachineCreationTool() {
+ List<IElementType> types = new ArrayList<IElementType>(2);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+
+ Tool tool = new AspectUnspecifiedTypeCreationTool(types);
+ return tool;
+ }
+
+ /**
+ * @generated
+ */
+ private Tool createStateMachineCreationTool() {
+ List<IElementType> types = new ArrayList<IElementType>(2);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.StateMachine_2063);
+
+ Tool tool = new AspectUnspecifiedTypeCreationTool(types);
+ return tool;
+ }
+
+ /**
+ * @generated
+ */
+ private Tool createFunctionBehaviorCreationTool() {
+ List<IElementType> types = new ArrayList<IElementType>(2);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+
+ Tool tool = new AspectUnspecifiedTypeCreationTool(types);
+ return tool;
+ }
+
+ /**
+ * @generated
+ */
+ private Tool createOpaqueBehaviorCreationTool() {
+ List<IElementType> types = new ArrayList<IElementType>(2);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+
+ Tool tool = new AspectUnspecifiedTypeCreationTool(types);
+ return tool;
+ }
+
+ /**
+ * @generated
+ */
+ private Tool createLinkCreationTool() {
+ List<IElementType> types = new ArrayList<IElementType>(4);
+ types.add(UMLElementTypes.CommentAnnotatedElement_4002);
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4003);
+ types.add(UMLElementTypes.TimeObservationEvent_4018);
+ types.add(UMLElementTypes.DurationObservationEvent_4019);
+
+ Tool tool = new AspectUnspecifiedTypeConnectionTool(types);
+ return tool;
+ }
+
+ /**
+ * @generated
+ */
+ private Tool createConnectorCreationTool() {
+ List<IElementType> types = new ArrayList<IElementType>(1);
+ types.add(UMLElementTypes.Connector_4013);
+
+ Tool tool = new AspectUnspecifiedTypeConnectionTool(types);
+ return tool;
+ }
+
+ /**
+ * @generated
+ */
+ private Tool createRoleBindingCreationTool() {
+ List<IElementType> types = new ArrayList<IElementType>(1);
+ types.add(UMLElementTypes.Dependency_4017);
+
+ Tool tool = new AspectUnspecifiedTypeConnectionTool(types);
+ return tool;
+ }
+
+ /**
+ * @generated
+ */
+ private Tool createGeneralizationCreationTool() {
+ List<IElementType> types = new ArrayList<IElementType>(1);
+ types.add(UMLElementTypes.Generalization_4015);
+
+ Tool tool = new AspectUnspecifiedTypeConnectionTool(types);
+ return tool;
+ }
+
+ /**
+ * @generated
+ */
+ private Tool createRealizationCreationTool() {
+ List<IElementType> types = new ArrayList<IElementType>(1);
+ types.add(UMLElementTypes.Realization_4006);
+
+ Tool tool = new AspectUnspecifiedTypeConnectionTool(types);
+ return tool;
+ }
+
+ /**
+ * @generated
+ */
+ private Tool createSubstitutionCreationTool() {
+ List<IElementType> types = new ArrayList<IElementType>(1);
+ types.add(UMLElementTypes.Substitution_4011);
+
+ Tool tool = new AspectUnspecifiedTypeConnectionTool(types);
+ return tool;
+ }
+
+ /**
+ * @generated
+ */
+ private Tool createAbstractionCreationTool() {
+ List<IElementType> types = new ArrayList<IElementType>(1);
+ types.add(UMLElementTypes.Abstraction_4007);
+
+ Tool tool = new AspectUnspecifiedTypeConnectionTool(types);
+ return tool;
+ }
+
+ /**
+ * @generated
+ */
+ private Tool createUsageCreationTool() {
+ List<IElementType> types = new ArrayList<IElementType>(1);
+ types.add(UMLElementTypes.Usage_4008);
+
+ Tool tool = new AspectUnspecifiedTypeConnectionTool(types);
+ return tool;
+ }
+
+ /**
+ * @generated
+ */
+ private Tool createDependencyCreationTool() {
+ List<IElementType> types = new ArrayList<IElementType>(1);
+ types.add(UMLElementTypes.Dependency_4010);
+
+ Tool tool = new AspectUnspecifiedTypeConnectionTool(types);
+ return tool;
+ }
+
+ /**
+ * @generated
+ */
+ private Tool createRepresentationCreationTool() {
+ List<IElementType> types = new ArrayList<IElementType>(1);
+ types.add(UMLElementTypes.InformationItemRepresented_4020);
+
+ Tool tool = new AspectUnspecifiedTypeConnectionTool(types);
+ return tool;
+ }
+
+ /**
+ * @generated
+ */
+ private Tool createInformationFlowCreationTool() {
+ List<IElementType> types = new ArrayList<IElementType>(1);
+ types.add(UMLElementTypes.InformationFlow_4021);
+
+ Tool tool = new AspectUnspecifiedTypeConnectionTool(types);
+ return tool;
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/part/UMLVisualIDRegistry.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/part/UMLVisualIDRegistry.java
new file mode 100644
index 00000000000..c49dcd6ecdc
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/part/UMLVisualIDRegistry.java
@@ -0,0 +1,9550 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.part;
+
+import org.eclipse.core.runtime.Platform;
+import org.eclipse.emf.ecore.EAnnotation;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gmf.runtime.notation.Diagram;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.diagram.common.providers.BaseViewInfo;
+import org.eclipse.papyrus.diagram.common.providers.ViewInfo;
+import org.eclipse.papyrus.diagram.composite.edit.parts.*;
+import org.eclipse.uml2.uml.Collaboration;
+import org.eclipse.uml2.uml.CollaborationUse;
+import org.eclipse.uml2.uml.Dependency;
+import org.eclipse.uml2.uml.Package;
+import org.eclipse.uml2.uml.Property;
+import org.eclipse.uml2.uml.UMLPackage;
+
+/**
+ * This registry is used to determine which type of visual object should be
+ * created for the corresponding Diagram, Node, ChildNode or Link represented
+ * by a domain model object.
+ *
+ * @generated
+ */
+public class UMLVisualIDRegistry {
+
+ /**
+ * @generated
+ */
+ private static final String DEBUG_KEY = "org.eclipse.papyrus.diagram.composite/debug/visualID"; //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ public static int getVisualID(View view) {
+ if(view instanceof Diagram) {
+ if(CompositeStructureDiagramEditPart.MODEL_ID.equals(view.getType())) {
+ return CompositeStructureDiagramEditPart.VISUAL_ID;
+ } else {
+ return -1;
+ }
+ }
+ return org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry.getVisualID(view.getType());
+ }
+
+ /**
+ * @generated
+ */
+ public static String getModelID(View view) {
+ View diagram = view.getDiagram();
+ while(view != diagram) {
+ EAnnotation annotation = view.getEAnnotation("Shortcut"); //$NON-NLS-1$
+ if(annotation != null) {
+ return (String)annotation.getDetails().get("modelID"); //$NON-NLS-1$
+ }
+ view = (View)view.eContainer();
+ }
+ return diagram != null ? diagram.getType() : null;
+ }
+
+ /**
+ * @generated
+ */
+ public static int getVisualID(String type) {
+ try {
+ return Integer.parseInt(type);
+ } catch (NumberFormatException e) {
+ if(Boolean.TRUE.toString().equalsIgnoreCase(Platform.getDebugOption(DEBUG_KEY))) {
+ UMLDiagramEditorPlugin.getInstance().logError("Unable to parse view type as a visualID number: " + type);
+ }
+ }
+ return -1;
+ }
+
+ /**
+ * @generated
+ */
+ public static String getType(int visualID) {
+ return Integer.toString(visualID);
+ }
+
+ /**
+ * @generated
+ */
+ public static int getDiagramVisualID(EObject domainElement) {
+ if(domainElement == null) {
+ return -1;
+ }
+ if(UMLPackage.eINSTANCE.getPackage().isSuperTypeOf(domainElement.eClass()) && isDiagram((Package)domainElement)) {
+ return CompositeStructureDiagramEditPart.VISUAL_ID;
+ }
+
+ return -1;
+ }
+
+ /**
+ * @generated
+ */
+ public static int getNodeVisualID(View containerView, EObject domainElement) {
+ if(domainElement == null) {
+ return -1;
+ }
+ String containerModelID = org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry.getModelID(containerView);
+ if(!CompositeStructureDiagramEditPart.MODEL_ID.equals(containerModelID)) {
+ return -1;
+ }
+ int containerVisualID;
+ if(CompositeStructureDiagramEditPart.MODEL_ID.equals(containerModelID)) {
+ containerVisualID = org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry.getVisualID(containerView);
+ } else {
+ if(containerView instanceof Diagram) {
+ containerVisualID = CompositeStructureDiagramEditPart.VISUAL_ID;
+ } else {
+ return -1;
+ }
+ }
+ switch(containerVisualID) {
+ case CompositeStructureDiagramEditPart.VISUAL_ID:
+ if(UMLPackage.eINSTANCE.getActivity().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ActivityCompositeEditPart.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getInteraction().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return InteractionCompositeEditPart.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getProtocolStateMachine().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ProtocolStateMachineCompositeEditPart.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getStateMachine().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return StateMachineCompositeEditPart.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getFunctionBehavior().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return FunctionBehaviorCompositeEditPart.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getOpaqueBehavior().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return OpaqueBehaviorCompositeEditPart.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getComponent().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ComponentCompositeEditPart.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getDevice().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return DeviceCompositeEditPart.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getExecutionEnvironment().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ExecutionEnvironmentCompositeEditPart.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getNode().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return NodeCompositeEditPart.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getClass_().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ClassCompositeEditPart.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getCollaboration().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return CollaborationCompositeEditPart.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getInterface().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return InterfaceEditPart.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getPrimitiveType().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return PrimitiveTypeEditPart.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getEnumeration().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return EnumerationEditPart.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getDataType().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return DataTypeEditPart.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getActor().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ActorEditPart.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getDeploymentSpecification().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return DeploymentSpecificationEditPart.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getArtifact().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ArtifactEditPart.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getInformationItem().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return InformationItemEditPart.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getSignal().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return SignalEditPart.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getUseCase().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return UseCaseEditPart.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getSignalEvent().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return SignalEventEditPart.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getCallEvent().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return CallEventEditPart.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getAnyReceiveEvent().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return AnyReceiveEventEditPart.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getSendSignalEvent().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return SendSignalEventEditPart.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getSendOperationEvent().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return SendOperationEventEditPart.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getChangeEvent().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ChangeEventEditPart.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getTimeEvent().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return TimeEventEditPart.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getCreationEvent().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return CreationEventEditPart.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getDestructionEvent().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return DestructionEventEditPart.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getExecutionEvent().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ExecutionEventEditPart.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getDurationObservation().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return DurationObservationEditPart.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getTimeObservation().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return TimeObservationEditPart.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getLiteralBoolean().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return LiteralBooleanEditPart.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getLiteralInteger().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return LiteralIntegerEditPart.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getLiteralNull().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return LiteralNullEditPart.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getLiteralString().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return LiteralStringEditPart.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getLiteralUnlimitedNatural().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return LiteralUnlimitedNaturalEditPart.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getStringExpression().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return StringExpressionEditPart.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getOpaqueExpression().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return OpaqueExpressionEditPart.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getTimeExpression().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return TimeExpressionEditPart.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getExpression().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ExpressionEditPart.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getDuration().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return DurationEditPart.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getTimeInterval().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return TimeIntervalEditPart.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getDurationInterval().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return DurationIntervalEditPart.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getInterval().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return IntervalEditPart.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getInstanceValue().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return InstanceValueEditPart.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getComment().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return CommentEditPart.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getDurationConstraint().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return DurationConstraintEditPart.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getTimeConstraint().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return TimeConstraintEditPart.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getIntervalConstraint().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return IntervalConstraintEditPart.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getInteractionConstraint().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return InteractionConstraintEditPart.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getConstraint().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ConstraintEditPart.VISUAL_ID;
+ }
+ break;
+ case ActivityCompositeEditPart.VISUAL_ID:
+ if(UMLPackage.eINSTANCE.getPort().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return PortEditPart.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getParameter().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ParameterEditPart.VISUAL_ID;
+ }
+ break;
+ case InteractionCompositeEditPart.VISUAL_ID:
+ if(UMLPackage.eINSTANCE.getPort().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return PortEditPart.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getParameter().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ParameterEditPart.VISUAL_ID;
+ }
+ break;
+ case ProtocolStateMachineCompositeEditPart.VISUAL_ID:
+ if(UMLPackage.eINSTANCE.getPort().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return PortEditPart.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getParameter().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ParameterEditPart.VISUAL_ID;
+ }
+ break;
+ case StateMachineCompositeEditPart.VISUAL_ID:
+ if(UMLPackage.eINSTANCE.getPort().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return PortEditPart.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getParameter().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ParameterEditPart.VISUAL_ID;
+ }
+ break;
+ case FunctionBehaviorCompositeEditPart.VISUAL_ID:
+ if(UMLPackage.eINSTANCE.getPort().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return PortEditPart.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getParameter().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ParameterEditPart.VISUAL_ID;
+ }
+ break;
+ case OpaqueBehaviorCompositeEditPart.VISUAL_ID:
+ if(UMLPackage.eINSTANCE.getPort().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return PortEditPart.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getParameter().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ParameterEditPart.VISUAL_ID;
+ }
+ break;
+ case ComponentCompositeEditPart.VISUAL_ID:
+ if(UMLPackage.eINSTANCE.getPort().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return PortEditPart.VISUAL_ID;
+ }
+ break;
+ case DeviceCompositeEditPart.VISUAL_ID:
+ if(UMLPackage.eINSTANCE.getPort().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return PortEditPart.VISUAL_ID;
+ }
+ break;
+ case ExecutionEnvironmentCompositeEditPart.VISUAL_ID:
+ if(UMLPackage.eINSTANCE.getPort().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return PortEditPart.VISUAL_ID;
+ }
+ break;
+ case NodeCompositeEditPart.VISUAL_ID:
+ if(UMLPackage.eINSTANCE.getPort().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return PortEditPart.VISUAL_ID;
+ }
+ break;
+ case ClassCompositeEditPart.VISUAL_ID:
+ if(UMLPackage.eINSTANCE.getPort().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return PortEditPart.VISUAL_ID;
+ }
+ break;
+ case EnumerationEditPart.VISUAL_ID:
+ if(UMLPackage.eINSTANCE.getEnumerationLiteral().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return EnumerationLiteralEditPartCLN.VISUAL_ID;
+ }
+ break;
+ case PropertyPartEditPartCN.VISUAL_ID:
+ if(UMLPackage.eINSTANCE.getPort().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return PortEditPart.VISUAL_ID;
+ }
+ break;
+ case ActivityCompositeEditPartCN.VISUAL_ID:
+ if(UMLPackage.eINSTANCE.getPort().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return PortEditPart.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getParameter().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ParameterEditPart.VISUAL_ID;
+ }
+ break;
+ case InteractionCompositeEditPartCN.VISUAL_ID:
+ if(UMLPackage.eINSTANCE.getPort().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return PortEditPart.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getParameter().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ParameterEditPart.VISUAL_ID;
+ }
+ break;
+ case ProtocolStateMachineCompositeEditPartCN.VISUAL_ID:
+ if(UMLPackage.eINSTANCE.getPort().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return PortEditPart.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getParameter().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ParameterEditPart.VISUAL_ID;
+ }
+ break;
+ case StateMachineCompositeEditPartCN.VISUAL_ID:
+ if(UMLPackage.eINSTANCE.getPort().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return PortEditPart.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getParameter().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ParameterEditPart.VISUAL_ID;
+ }
+ break;
+ case FunctionBehaviorCompositeEditPartCN.VISUAL_ID:
+ if(UMLPackage.eINSTANCE.getPort().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return PortEditPart.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getParameter().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ParameterEditPart.VISUAL_ID;
+ }
+ break;
+ case OpaqueBehaviorCompositeEditPartCN.VISUAL_ID:
+ if(UMLPackage.eINSTANCE.getPort().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return PortEditPart.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getParameter().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ParameterEditPart.VISUAL_ID;
+ }
+ break;
+ case ComponentCompositeEditPartCN.VISUAL_ID:
+ if(UMLPackage.eINSTANCE.getPort().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return PortEditPart.VISUAL_ID;
+ }
+ break;
+ case DeviceCompositeEditPartCN.VISUAL_ID:
+ if(UMLPackage.eINSTANCE.getPort().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return PortEditPart.VISUAL_ID;
+ }
+ break;
+ case ExecutionEnvironmentCompositeEditPartCN.VISUAL_ID:
+ if(UMLPackage.eINSTANCE.getPort().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return PortEditPart.VISUAL_ID;
+ }
+ break;
+ case NodeCompositeEditPartCN.VISUAL_ID:
+ if(UMLPackage.eINSTANCE.getPort().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return PortEditPart.VISUAL_ID;
+ }
+ break;
+ case ClassCompositeEditPartCN.VISUAL_ID:
+ if(UMLPackage.eINSTANCE.getPort().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return PortEditPart.VISUAL_ID;
+ }
+ break;
+ case EnumerationEditPartCN.VISUAL_ID:
+ if(UMLPackage.eINSTANCE.getEnumerationLiteral().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return EnumerationLiteralEditPartCLN.VISUAL_ID;
+ }
+ break;
+ case DataTypeAttributeCompartmentEditPart.VISUAL_ID:
+ if(UMLPackage.eINSTANCE.getProperty().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return PropertyEditPartCLN.VISUAL_ID;
+ }
+ break;
+ case DataTypeOperationCompartmentEditPart.VISUAL_ID:
+ if(UMLPackage.eINSTANCE.getOperation().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return OperationEditPartCLN.VISUAL_ID;
+ }
+ break;
+ case DataTypeAttributeCompartmentEditPartCN.VISUAL_ID:
+ if(UMLPackage.eINSTANCE.getProperty().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return PropertyEditPartCLN.VISUAL_ID;
+ }
+ break;
+ case DataTypeOperationCompartmentEditPartCN.VISUAL_ID:
+ if(UMLPackage.eINSTANCE.getOperation().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return OperationEditPartCLN.VISUAL_ID;
+ }
+ break;
+ case EnumerationEnumerationLiteralCompartmentEditPart.VISUAL_ID:
+ if(UMLPackage.eINSTANCE.getEnumerationLiteral().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return EnumerationLiteralEditPartCLN.VISUAL_ID;
+ }
+ break;
+ case EnumerationEnumerationLiteralCompartmentEditPartCN.VISUAL_ID:
+ if(UMLPackage.eINSTANCE.getEnumerationLiteral().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return EnumerationLiteralEditPartCLN.VISUAL_ID;
+ }
+ break;
+ case ActivityCompositeCompartmentEditPartCN.VISUAL_ID:
+ if(UMLPackage.eINSTANCE.getPort().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return PortEditPart.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getParameter().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ParameterEditPart.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getProperty().isSuperTypeOf(domainElement.eClass()) && isProperty_3070(containerView, (Property)domainElement)) {
+ return PropertyPartEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getCollaborationUse().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return CollaborationUseEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getActivity().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ActivityCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getInteraction().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return InteractionCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getProtocolStateMachine().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ProtocolStateMachineCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getStateMachine().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return StateMachineCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getFunctionBehavior().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return FunctionBehaviorCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getOpaqueBehavior().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return OpaqueBehaviorCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getComponent().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ComponentCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getDevice().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return DeviceCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getExecutionEnvironment().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ExecutionEnvironmentCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getNode().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return NodeCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getClass_().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ClassCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getCollaboration().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return CollaborationCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getInterface().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return InterfaceEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getPrimitiveType().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return PrimitiveTypeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getEnumeration().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return EnumerationEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getDataType().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return DataTypeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getActor().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ActorEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getDeploymentSpecification().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return DeploymentSpecificationEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getArtifact().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ArtifactEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getInformationItem().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return InformationItemEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getSignal().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return SignalEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getUseCase().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return UseCaseEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getComment().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return CommentEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getDurationConstraint().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return DurationConstraintEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getTimeConstraint().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return TimeConstraintEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getIntervalConstraint().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return IntervalConstraintEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getInteractionConstraint().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return InteractionConstraintEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getConstraint().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ConstraintEditPartCN.VISUAL_ID;
+ }
+ break;
+ case InteractionCompositeCompartmentEditPartCN.VISUAL_ID:
+ if(UMLPackage.eINSTANCE.getPort().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return PortEditPart.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getParameter().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ParameterEditPart.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getProperty().isSuperTypeOf(domainElement.eClass()) && isProperty_3070(containerView, (Property)domainElement)) {
+ return PropertyPartEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getCollaborationUse().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return CollaborationUseEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getActivity().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ActivityCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getInteraction().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return InteractionCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getProtocolStateMachine().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ProtocolStateMachineCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getStateMachine().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return StateMachineCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getFunctionBehavior().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return FunctionBehaviorCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getOpaqueBehavior().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return OpaqueBehaviorCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getComponent().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ComponentCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getDevice().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return DeviceCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getExecutionEnvironment().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ExecutionEnvironmentCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getNode().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return NodeCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getClass_().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ClassCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getCollaboration().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return CollaborationCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getInterface().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return InterfaceEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getPrimitiveType().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return PrimitiveTypeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getEnumeration().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return EnumerationEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getDataType().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return DataTypeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getActor().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ActorEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getDeploymentSpecification().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return DeploymentSpecificationEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getArtifact().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ArtifactEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getInformationItem().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return InformationItemEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getSignal().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return SignalEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getUseCase().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return UseCaseEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getComment().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return CommentEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getDurationConstraint().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return DurationConstraintEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getTimeConstraint().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return TimeConstraintEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getIntervalConstraint().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return IntervalConstraintEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getInteractionConstraint().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return InteractionConstraintEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getConstraint().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ConstraintEditPartCN.VISUAL_ID;
+ }
+ break;
+ case ProtocolStateMachineCompositeCompartmentEditPartCN.VISUAL_ID:
+ if(UMLPackage.eINSTANCE.getPort().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return PortEditPart.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getParameter().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ParameterEditPart.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getProperty().isSuperTypeOf(domainElement.eClass()) && isProperty_3070(containerView, (Property)domainElement)) {
+ return PropertyPartEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getCollaborationUse().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return CollaborationUseEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getActivity().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ActivityCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getInteraction().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return InteractionCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getProtocolStateMachine().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ProtocolStateMachineCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getStateMachine().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return StateMachineCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getFunctionBehavior().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return FunctionBehaviorCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getOpaqueBehavior().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return OpaqueBehaviorCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getComponent().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ComponentCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getDevice().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return DeviceCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getExecutionEnvironment().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ExecutionEnvironmentCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getNode().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return NodeCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getClass_().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ClassCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getCollaboration().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return CollaborationCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getInterface().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return InterfaceEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getPrimitiveType().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return PrimitiveTypeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getEnumeration().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return EnumerationEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getDataType().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return DataTypeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getActor().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ActorEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getDeploymentSpecification().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return DeploymentSpecificationEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getArtifact().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ArtifactEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getInformationItem().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return InformationItemEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getSignal().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return SignalEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getUseCase().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return UseCaseEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getComment().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return CommentEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getDurationConstraint().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return DurationConstraintEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getTimeConstraint().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return TimeConstraintEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getIntervalConstraint().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return IntervalConstraintEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getInteractionConstraint().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return InteractionConstraintEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getConstraint().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ConstraintEditPartCN.VISUAL_ID;
+ }
+ break;
+ case StateMachineCompositeCompartmentEditPartCN.VISUAL_ID:
+ if(UMLPackage.eINSTANCE.getPort().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return PortEditPart.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getParameter().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ParameterEditPart.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getProperty().isSuperTypeOf(domainElement.eClass()) && isProperty_3070(containerView, (Property)domainElement)) {
+ return PropertyPartEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getCollaborationUse().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return CollaborationUseEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getActivity().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ActivityCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getInteraction().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return InteractionCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getProtocolStateMachine().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ProtocolStateMachineCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getStateMachine().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return StateMachineCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getFunctionBehavior().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return FunctionBehaviorCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getOpaqueBehavior().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return OpaqueBehaviorCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getComponent().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ComponentCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getDevice().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return DeviceCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getExecutionEnvironment().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ExecutionEnvironmentCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getNode().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return NodeCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getClass_().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ClassCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getCollaboration().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return CollaborationCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getInterface().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return InterfaceEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getPrimitiveType().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return PrimitiveTypeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getEnumeration().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return EnumerationEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getDataType().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return DataTypeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getActor().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ActorEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getDeploymentSpecification().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return DeploymentSpecificationEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getArtifact().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ArtifactEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getInformationItem().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return InformationItemEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getSignal().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return SignalEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getUseCase().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return UseCaseEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getComment().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return CommentEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getDurationConstraint().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return DurationConstraintEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getTimeConstraint().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return TimeConstraintEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getIntervalConstraint().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return IntervalConstraintEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getInteractionConstraint().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return InteractionConstraintEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getConstraint().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ConstraintEditPartCN.VISUAL_ID;
+ }
+ break;
+ case FunctionBehaviorCompositeCompartmentEditPartCN.VISUAL_ID:
+ if(UMLPackage.eINSTANCE.getPort().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return PortEditPart.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getParameter().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ParameterEditPart.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getProperty().isSuperTypeOf(domainElement.eClass()) && isProperty_3070(containerView, (Property)domainElement)) {
+ return PropertyPartEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getCollaborationUse().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return CollaborationUseEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getActivity().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ActivityCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getInteraction().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return InteractionCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getProtocolStateMachine().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ProtocolStateMachineCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getStateMachine().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return StateMachineCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getFunctionBehavior().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return FunctionBehaviorCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getOpaqueBehavior().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return OpaqueBehaviorCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getComponent().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ComponentCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getDevice().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return DeviceCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getExecutionEnvironment().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ExecutionEnvironmentCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getNode().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return NodeCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getClass_().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ClassCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getCollaboration().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return CollaborationCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getInterface().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return InterfaceEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getPrimitiveType().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return PrimitiveTypeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getEnumeration().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return EnumerationEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getDataType().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return DataTypeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getActor().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ActorEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getDeploymentSpecification().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return DeploymentSpecificationEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getArtifact().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ArtifactEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getInformationItem().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return InformationItemEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getSignal().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return SignalEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getUseCase().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return UseCaseEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getComment().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return CommentEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getDurationConstraint().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return DurationConstraintEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getTimeConstraint().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return TimeConstraintEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getIntervalConstraint().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return IntervalConstraintEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getInteractionConstraint().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return InteractionConstraintEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getConstraint().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ConstraintEditPartCN.VISUAL_ID;
+ }
+ break;
+ case OpaqueBehaviorCompositeCompartmentEditPartCN.VISUAL_ID:
+ if(UMLPackage.eINSTANCE.getPort().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return PortEditPart.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getParameter().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ParameterEditPart.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getProperty().isSuperTypeOf(domainElement.eClass()) && isProperty_3070(containerView, (Property)domainElement)) {
+ return PropertyPartEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getCollaborationUse().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return CollaborationUseEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getActivity().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ActivityCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getInteraction().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return InteractionCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getProtocolStateMachine().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ProtocolStateMachineCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getStateMachine().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return StateMachineCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getFunctionBehavior().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return FunctionBehaviorCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getOpaqueBehavior().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return OpaqueBehaviorCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getComponent().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ComponentCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getDevice().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return DeviceCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getExecutionEnvironment().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ExecutionEnvironmentCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getNode().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return NodeCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getClass_().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ClassCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getCollaboration().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return CollaborationCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getInterface().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return InterfaceEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getPrimitiveType().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return PrimitiveTypeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getEnumeration().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return EnumerationEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getDataType().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return DataTypeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getActor().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ActorEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getDeploymentSpecification().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return DeploymentSpecificationEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getArtifact().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ArtifactEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getInformationItem().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return InformationItemEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getSignal().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return SignalEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getUseCase().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return UseCaseEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getComment().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return CommentEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getDurationConstraint().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return DurationConstraintEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getTimeConstraint().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return TimeConstraintEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getIntervalConstraint().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return IntervalConstraintEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getInteractionConstraint().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return InteractionConstraintEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getConstraint().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ConstraintEditPartCN.VISUAL_ID;
+ }
+ break;
+ case ComponentCompositeCompartmentEditPartCN.VISUAL_ID:
+ if(UMLPackage.eINSTANCE.getPort().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return PortEditPart.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getProperty().isSuperTypeOf(domainElement.eClass()) && isProperty_3070(containerView, (Property)domainElement)) {
+ return PropertyPartEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getCollaborationUse().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return CollaborationUseEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getActivity().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ActivityCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getInteraction().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return InteractionCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getProtocolStateMachine().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ProtocolStateMachineCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getStateMachine().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return StateMachineCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getFunctionBehavior().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return FunctionBehaviorCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getOpaqueBehavior().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return OpaqueBehaviorCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getComponent().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ComponentCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getDevice().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return DeviceCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getExecutionEnvironment().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ExecutionEnvironmentCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getNode().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return NodeCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getClass_().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ClassCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getCollaboration().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return CollaborationCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getInterface().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return InterfaceEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getPrimitiveType().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return PrimitiveTypeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getEnumeration().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return EnumerationEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getDataType().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return DataTypeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getActor().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ActorEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getDeploymentSpecification().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return DeploymentSpecificationEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getArtifact().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ArtifactEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getInformationItem().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return InformationItemEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getSignal().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return SignalEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getUseCase().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return UseCaseEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getComment().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return CommentEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getDurationConstraint().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return DurationConstraintEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getTimeConstraint().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return TimeConstraintEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getIntervalConstraint().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return IntervalConstraintEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getInteractionConstraint().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return InteractionConstraintEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getConstraint().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ConstraintEditPartCN.VISUAL_ID;
+ }
+ break;
+ case DeviceCompositeCompartmentEditPartCN.VISUAL_ID:
+ if(UMLPackage.eINSTANCE.getPort().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return PortEditPart.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getProperty().isSuperTypeOf(domainElement.eClass()) && isProperty_3070(containerView, (Property)domainElement)) {
+ return PropertyPartEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getCollaborationUse().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return CollaborationUseEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getActivity().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ActivityCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getInteraction().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return InteractionCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getProtocolStateMachine().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ProtocolStateMachineCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getStateMachine().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return StateMachineCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getFunctionBehavior().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return FunctionBehaviorCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getOpaqueBehavior().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return OpaqueBehaviorCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getComponent().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ComponentCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getDevice().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return DeviceCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getExecutionEnvironment().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ExecutionEnvironmentCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getNode().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return NodeCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getClass_().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ClassCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getCollaboration().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return CollaborationCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getInterface().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return InterfaceEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getPrimitiveType().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return PrimitiveTypeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getEnumeration().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return EnumerationEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getDataType().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return DataTypeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getActor().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ActorEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getDeploymentSpecification().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return DeploymentSpecificationEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getArtifact().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ArtifactEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getInformationItem().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return InformationItemEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getSignal().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return SignalEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getUseCase().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return UseCaseEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getComment().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return CommentEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getDurationConstraint().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return DurationConstraintEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getTimeConstraint().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return TimeConstraintEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getIntervalConstraint().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return IntervalConstraintEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getInteractionConstraint().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return InteractionConstraintEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getConstraint().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ConstraintEditPartCN.VISUAL_ID;
+ }
+ break;
+ case ExecutionEnvironmentCompositeCompartmentEditPartCN.VISUAL_ID:
+ if(UMLPackage.eINSTANCE.getPort().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return PortEditPart.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getProperty().isSuperTypeOf(domainElement.eClass()) && isProperty_3070(containerView, (Property)domainElement)) {
+ return PropertyPartEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getCollaborationUse().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return CollaborationUseEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getActivity().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ActivityCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getInteraction().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return InteractionCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getProtocolStateMachine().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ProtocolStateMachineCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getStateMachine().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return StateMachineCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getFunctionBehavior().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return FunctionBehaviorCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getOpaqueBehavior().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return OpaqueBehaviorCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getComponent().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ComponentCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getDevice().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return DeviceCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getExecutionEnvironment().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ExecutionEnvironmentCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getNode().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return NodeCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getClass_().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ClassCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getCollaboration().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return CollaborationCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getInterface().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return InterfaceEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getPrimitiveType().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return PrimitiveTypeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getEnumeration().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return EnumerationEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getDataType().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return DataTypeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getActor().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ActorEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getDeploymentSpecification().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return DeploymentSpecificationEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getArtifact().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ArtifactEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getInformationItem().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return InformationItemEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getSignal().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return SignalEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getUseCase().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return UseCaseEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getComment().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return CommentEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getDurationConstraint().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return DurationConstraintEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getTimeConstraint().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return TimeConstraintEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getIntervalConstraint().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return IntervalConstraintEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getInteractionConstraint().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return InteractionConstraintEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getConstraint().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ConstraintEditPartCN.VISUAL_ID;
+ }
+ break;
+ case NodeCompositeCompartmentEditPartCN.VISUAL_ID:
+ if(UMLPackage.eINSTANCE.getPort().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return PortEditPart.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getProperty().isSuperTypeOf(domainElement.eClass()) && isProperty_3070(containerView, (Property)domainElement)) {
+ return PropertyPartEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getCollaborationUse().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return CollaborationUseEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getActivity().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ActivityCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getInteraction().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return InteractionCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getProtocolStateMachine().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ProtocolStateMachineCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getStateMachine().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return StateMachineCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getFunctionBehavior().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return FunctionBehaviorCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getOpaqueBehavior().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return OpaqueBehaviorCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getComponent().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ComponentCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getDevice().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return DeviceCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getExecutionEnvironment().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ExecutionEnvironmentCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getNode().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return NodeCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getClass_().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ClassCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getCollaboration().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return CollaborationCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getInterface().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return InterfaceEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getPrimitiveType().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return PrimitiveTypeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getEnumeration().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return EnumerationEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getDataType().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return DataTypeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getActor().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ActorEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getDeploymentSpecification().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return DeploymentSpecificationEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getArtifact().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ArtifactEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getInformationItem().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return InformationItemEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getSignal().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return SignalEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getUseCase().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return UseCaseEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getComment().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return CommentEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getDurationConstraint().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return DurationConstraintEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getTimeConstraint().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return TimeConstraintEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getIntervalConstraint().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return IntervalConstraintEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getInteractionConstraint().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return InteractionConstraintEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getConstraint().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ConstraintEditPartCN.VISUAL_ID;
+ }
+ break;
+ case ClassCompositeCompartmentEditPartCN.VISUAL_ID:
+ if(UMLPackage.eINSTANCE.getPort().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return PortEditPart.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getProperty().isSuperTypeOf(domainElement.eClass()) && isProperty_3070(containerView, (Property)domainElement)) {
+ return PropertyPartEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getCollaborationUse().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return CollaborationUseEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getActivity().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ActivityCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getInteraction().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return InteractionCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getProtocolStateMachine().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ProtocolStateMachineCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getStateMachine().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return StateMachineCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getFunctionBehavior().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return FunctionBehaviorCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getOpaqueBehavior().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return OpaqueBehaviorCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getComponent().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ComponentCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getDevice().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return DeviceCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getExecutionEnvironment().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ExecutionEnvironmentCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getNode().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return NodeCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getClass_().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ClassCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getCollaboration().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return CollaborationCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getInterface().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return InterfaceEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getPrimitiveType().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return PrimitiveTypeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getEnumeration().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return EnumerationEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getDataType().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return DataTypeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getActor().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ActorEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getDeploymentSpecification().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return DeploymentSpecificationEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getArtifact().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ArtifactEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getInformationItem().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return InformationItemEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getSignal().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return SignalEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getUseCase().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return UseCaseEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getComment().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return CommentEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getDurationConstraint().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return DurationConstraintEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getTimeConstraint().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return TimeConstraintEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getIntervalConstraint().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return IntervalConstraintEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getInteractionConstraint().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return InteractionConstraintEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getConstraint().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ConstraintEditPartCN.VISUAL_ID;
+ }
+ break;
+ case CollaborationCompositeCompartmentEditPartCN.VISUAL_ID:
+ if(UMLPackage.eINSTANCE.getProperty().isSuperTypeOf(domainElement.eClass()) && isProperty_3070(containerView, (Property)domainElement)) {
+ return PropertyPartEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getCollaborationUse().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return CollaborationUseEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getComment().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return CommentEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getConnectableElement().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return CollaborationRoleEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getDurationConstraint().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return DurationConstraintEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getTimeConstraint().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return TimeConstraintEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getIntervalConstraint().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return IntervalConstraintEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getInteractionConstraint().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return InteractionConstraintEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getConstraint().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ConstraintEditPartCN.VISUAL_ID;
+ }
+ break;
+ case ActivityCompositeCompartmentEditPart.VISUAL_ID:
+ if(UMLPackage.eINSTANCE.getPort().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return PortEditPart.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getParameter().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ParameterEditPart.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getProperty().isSuperTypeOf(domainElement.eClass()) && isProperty_3070(containerView, (Property)domainElement)) {
+ return PropertyPartEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getCollaborationUse().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return CollaborationUseEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getActivity().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ActivityCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getInteraction().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return InteractionCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getProtocolStateMachine().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ProtocolStateMachineCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getStateMachine().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return StateMachineCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getFunctionBehavior().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return FunctionBehaviorCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getOpaqueBehavior().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return OpaqueBehaviorCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getComponent().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ComponentCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getDevice().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return DeviceCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getExecutionEnvironment().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ExecutionEnvironmentCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getNode().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return NodeCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getClass_().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ClassCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getCollaboration().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return CollaborationCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getInterface().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return InterfaceEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getPrimitiveType().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return PrimitiveTypeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getEnumeration().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return EnumerationEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getDataType().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return DataTypeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getActor().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ActorEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getDeploymentSpecification().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return DeploymentSpecificationEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getArtifact().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ArtifactEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getInformationItem().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return InformationItemEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getSignal().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return SignalEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getUseCase().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return UseCaseEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getComment().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return CommentEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getDurationConstraint().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return DurationConstraintEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getTimeConstraint().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return TimeConstraintEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getIntervalConstraint().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return IntervalConstraintEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getInteractionConstraint().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return InteractionConstraintEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getConstraint().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ConstraintEditPartCN.VISUAL_ID;
+ }
+ break;
+ case InteractionCompositeCompartmentEditPart.VISUAL_ID:
+ if(UMLPackage.eINSTANCE.getPort().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return PortEditPart.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getParameter().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ParameterEditPart.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getProperty().isSuperTypeOf(domainElement.eClass()) && isProperty_3070(containerView, (Property)domainElement)) {
+ return PropertyPartEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getCollaborationUse().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return CollaborationUseEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getActivity().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ActivityCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getInteraction().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return InteractionCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getProtocolStateMachine().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ProtocolStateMachineCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getStateMachine().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return StateMachineCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getFunctionBehavior().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return FunctionBehaviorCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getOpaqueBehavior().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return OpaqueBehaviorCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getComponent().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ComponentCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getDevice().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return DeviceCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getExecutionEnvironment().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ExecutionEnvironmentCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getNode().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return NodeCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getClass_().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ClassCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getCollaboration().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return CollaborationCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getInterface().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return InterfaceEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getPrimitiveType().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return PrimitiveTypeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getEnumeration().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return EnumerationEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getDataType().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return DataTypeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getActor().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ActorEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getDeploymentSpecification().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return DeploymentSpecificationEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getArtifact().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ArtifactEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getInformationItem().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return InformationItemEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getSignal().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return SignalEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getUseCase().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return UseCaseEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getComment().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return CommentEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getDurationConstraint().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return DurationConstraintEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getTimeConstraint().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return TimeConstraintEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getIntervalConstraint().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return IntervalConstraintEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getInteractionConstraint().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return InteractionConstraintEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getConstraint().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ConstraintEditPartCN.VISUAL_ID;
+ }
+ break;
+ case ProtocolStateMachineCompositeCompartmentEditPart.VISUAL_ID:
+ if(UMLPackage.eINSTANCE.getPort().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return PortEditPart.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getParameter().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ParameterEditPart.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getProperty().isSuperTypeOf(domainElement.eClass()) && isProperty_3070(containerView, (Property)domainElement)) {
+ return PropertyPartEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getCollaborationUse().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return CollaborationUseEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getActivity().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ActivityCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getInteraction().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return InteractionCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getProtocolStateMachine().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ProtocolStateMachineCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getStateMachine().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return StateMachineCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getFunctionBehavior().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return FunctionBehaviorCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getOpaqueBehavior().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return OpaqueBehaviorCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getComponent().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ComponentCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getDevice().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return DeviceCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getExecutionEnvironment().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ExecutionEnvironmentCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getNode().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return NodeCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getClass_().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ClassCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getCollaboration().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return CollaborationCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getInterface().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return InterfaceEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getPrimitiveType().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return PrimitiveTypeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getEnumeration().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return EnumerationEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getDataType().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return DataTypeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getActor().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ActorEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getDeploymentSpecification().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return DeploymentSpecificationEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getArtifact().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ArtifactEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getInformationItem().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return InformationItemEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getSignal().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return SignalEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getUseCase().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return UseCaseEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getComment().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return CommentEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getDurationConstraint().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return DurationConstraintEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getTimeConstraint().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return TimeConstraintEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getIntervalConstraint().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return IntervalConstraintEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getInteractionConstraint().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return InteractionConstraintEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getConstraint().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ConstraintEditPartCN.VISUAL_ID;
+ }
+ break;
+ case StateMachineCompositeCompartmentEditPart.VISUAL_ID:
+ if(UMLPackage.eINSTANCE.getPort().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return PortEditPart.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getParameter().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ParameterEditPart.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getProperty().isSuperTypeOf(domainElement.eClass()) && isProperty_3070(containerView, (Property)domainElement)) {
+ return PropertyPartEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getCollaborationUse().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return CollaborationUseEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getActivity().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ActivityCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getInteraction().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return InteractionCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getProtocolStateMachine().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ProtocolStateMachineCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getStateMachine().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return StateMachineCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getFunctionBehavior().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return FunctionBehaviorCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getOpaqueBehavior().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return OpaqueBehaviorCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getComponent().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ComponentCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getDevice().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return DeviceCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getExecutionEnvironment().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ExecutionEnvironmentCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getNode().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return NodeCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getClass_().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ClassCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getCollaboration().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return CollaborationCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getInterface().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return InterfaceEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getPrimitiveType().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return PrimitiveTypeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getEnumeration().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return EnumerationEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getDataType().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return DataTypeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getActor().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ActorEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getDeploymentSpecification().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return DeploymentSpecificationEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getArtifact().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ArtifactEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getInformationItem().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return InformationItemEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getSignal().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return SignalEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getUseCase().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return UseCaseEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getComment().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return CommentEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getDurationConstraint().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return DurationConstraintEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getTimeConstraint().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return TimeConstraintEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getIntervalConstraint().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return IntervalConstraintEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getInteractionConstraint().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return InteractionConstraintEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getConstraint().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ConstraintEditPartCN.VISUAL_ID;
+ }
+ break;
+ case FunctionBehaviorCompositeCompartmentEditPart.VISUAL_ID:
+ if(UMLPackage.eINSTANCE.getPort().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return PortEditPart.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getParameter().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ParameterEditPart.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getProperty().isSuperTypeOf(domainElement.eClass()) && isProperty_3070(containerView, (Property)domainElement)) {
+ return PropertyPartEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getCollaborationUse().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return CollaborationUseEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getActivity().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ActivityCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getInteraction().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return InteractionCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getProtocolStateMachine().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ProtocolStateMachineCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getStateMachine().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return StateMachineCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getFunctionBehavior().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return FunctionBehaviorCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getOpaqueBehavior().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return OpaqueBehaviorCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getComponent().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ComponentCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getDevice().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return DeviceCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getExecutionEnvironment().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ExecutionEnvironmentCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getNode().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return NodeCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getClass_().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ClassCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getCollaboration().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return CollaborationCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getInterface().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return InterfaceEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getPrimitiveType().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return PrimitiveTypeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getEnumeration().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return EnumerationEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getDataType().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return DataTypeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getActor().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ActorEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getDeploymentSpecification().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return DeploymentSpecificationEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getArtifact().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ArtifactEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getInformationItem().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return InformationItemEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getSignal().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return SignalEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getUseCase().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return UseCaseEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getComment().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return CommentEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getDurationConstraint().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return DurationConstraintEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getTimeConstraint().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return TimeConstraintEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getIntervalConstraint().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return IntervalConstraintEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getInteractionConstraint().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return InteractionConstraintEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getConstraint().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ConstraintEditPartCN.VISUAL_ID;
+ }
+ break;
+ case OpaqueBehaviorCompositeCompartmentEditPart.VISUAL_ID:
+ if(UMLPackage.eINSTANCE.getPort().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return PortEditPart.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getParameter().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ParameterEditPart.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getProperty().isSuperTypeOf(domainElement.eClass()) && isProperty_3070(containerView, (Property)domainElement)) {
+ return PropertyPartEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getCollaborationUse().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return CollaborationUseEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getActivity().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ActivityCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getInteraction().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return InteractionCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getProtocolStateMachine().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ProtocolStateMachineCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getStateMachine().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return StateMachineCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getFunctionBehavior().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return FunctionBehaviorCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getOpaqueBehavior().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return OpaqueBehaviorCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getComponent().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ComponentCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getDevice().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return DeviceCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getExecutionEnvironment().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ExecutionEnvironmentCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getNode().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return NodeCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getClass_().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ClassCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getCollaboration().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return CollaborationCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getInterface().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return InterfaceEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getPrimitiveType().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return PrimitiveTypeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getEnumeration().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return EnumerationEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getDataType().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return DataTypeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getActor().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ActorEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getDeploymentSpecification().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return DeploymentSpecificationEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getArtifact().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ArtifactEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getInformationItem().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return InformationItemEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getSignal().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return SignalEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getUseCase().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return UseCaseEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getComment().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return CommentEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getDurationConstraint().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return DurationConstraintEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getTimeConstraint().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return TimeConstraintEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getIntervalConstraint().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return IntervalConstraintEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getInteractionConstraint().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return InteractionConstraintEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getConstraint().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ConstraintEditPartCN.VISUAL_ID;
+ }
+ break;
+ case ComponentCompositeCompartmentEditPart.VISUAL_ID:
+ if(UMLPackage.eINSTANCE.getPort().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return PortEditPart.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getProperty().isSuperTypeOf(domainElement.eClass()) && isProperty_3070(containerView, (Property)domainElement)) {
+ return PropertyPartEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getCollaborationUse().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return CollaborationUseEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getActivity().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ActivityCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getInteraction().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return InteractionCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getProtocolStateMachine().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ProtocolStateMachineCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getStateMachine().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return StateMachineCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getFunctionBehavior().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return FunctionBehaviorCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getOpaqueBehavior().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return OpaqueBehaviorCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getComponent().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ComponentCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getDevice().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return DeviceCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getExecutionEnvironment().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ExecutionEnvironmentCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getNode().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return NodeCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getClass_().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ClassCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getCollaboration().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return CollaborationCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getInterface().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return InterfaceEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getPrimitiveType().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return PrimitiveTypeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getEnumeration().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return EnumerationEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getDataType().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return DataTypeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getActor().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ActorEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getDeploymentSpecification().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return DeploymentSpecificationEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getArtifact().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ArtifactEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getInformationItem().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return InformationItemEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getSignal().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return SignalEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getUseCase().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return UseCaseEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getComment().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return CommentEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getDurationConstraint().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return DurationConstraintEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getTimeConstraint().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return TimeConstraintEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getIntervalConstraint().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return IntervalConstraintEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getInteractionConstraint().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return InteractionConstraintEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getConstraint().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ConstraintEditPartCN.VISUAL_ID;
+ }
+ break;
+ case DeviceCompositeCompartmentEditPart.VISUAL_ID:
+ if(UMLPackage.eINSTANCE.getPort().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return PortEditPart.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getProperty().isSuperTypeOf(domainElement.eClass()) && isProperty_3070(containerView, (Property)domainElement)) {
+ return PropertyPartEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getCollaborationUse().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return CollaborationUseEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getActivity().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ActivityCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getInteraction().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return InteractionCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getProtocolStateMachine().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ProtocolStateMachineCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getStateMachine().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return StateMachineCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getFunctionBehavior().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return FunctionBehaviorCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getOpaqueBehavior().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return OpaqueBehaviorCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getComponent().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ComponentCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getDevice().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return DeviceCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getExecutionEnvironment().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ExecutionEnvironmentCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getNode().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return NodeCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getClass_().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ClassCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getCollaboration().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return CollaborationCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getInterface().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return InterfaceEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getPrimitiveType().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return PrimitiveTypeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getEnumeration().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return EnumerationEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getDataType().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return DataTypeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getActor().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ActorEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getDeploymentSpecification().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return DeploymentSpecificationEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getArtifact().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ArtifactEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getInformationItem().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return InformationItemEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getSignal().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return SignalEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getUseCase().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return UseCaseEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getComment().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return CommentEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getDurationConstraint().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return DurationConstraintEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getTimeConstraint().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return TimeConstraintEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getIntervalConstraint().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return IntervalConstraintEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getInteractionConstraint().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return InteractionConstraintEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getConstraint().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ConstraintEditPartCN.VISUAL_ID;
+ }
+ break;
+ case ExecutionEnvironmentCompositeCompartmentEditPart.VISUAL_ID:
+ if(UMLPackage.eINSTANCE.getPort().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return PortEditPart.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getProperty().isSuperTypeOf(domainElement.eClass()) && isProperty_3070(containerView, (Property)domainElement)) {
+ return PropertyPartEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getCollaborationUse().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return CollaborationUseEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getActivity().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ActivityCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getInteraction().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return InteractionCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getProtocolStateMachine().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ProtocolStateMachineCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getStateMachine().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return StateMachineCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getFunctionBehavior().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return FunctionBehaviorCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getOpaqueBehavior().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return OpaqueBehaviorCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getComponent().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ComponentCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getDevice().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return DeviceCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getExecutionEnvironment().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ExecutionEnvironmentCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getNode().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return NodeCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getClass_().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ClassCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getCollaboration().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return CollaborationCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getInterface().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return InterfaceEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getPrimitiveType().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return PrimitiveTypeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getEnumeration().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return EnumerationEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getDataType().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return DataTypeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getActor().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ActorEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getDeploymentSpecification().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return DeploymentSpecificationEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getArtifact().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ArtifactEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getInformationItem().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return InformationItemEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getSignal().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return SignalEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getUseCase().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return UseCaseEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getComment().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return CommentEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getDurationConstraint().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return DurationConstraintEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getTimeConstraint().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return TimeConstraintEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getIntervalConstraint().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return IntervalConstraintEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getInteractionConstraint().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return InteractionConstraintEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getConstraint().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ConstraintEditPartCN.VISUAL_ID;
+ }
+ break;
+ case NodeCompositeCompartmentEditPart.VISUAL_ID:
+ if(UMLPackage.eINSTANCE.getPort().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return PortEditPart.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getProperty().isSuperTypeOf(domainElement.eClass()) && isProperty_3070(containerView, (Property)domainElement)) {
+ return PropertyPartEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getCollaborationUse().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return CollaborationUseEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getActivity().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ActivityCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getInteraction().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return InteractionCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getProtocolStateMachine().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ProtocolStateMachineCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getStateMachine().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return StateMachineCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getFunctionBehavior().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return FunctionBehaviorCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getOpaqueBehavior().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return OpaqueBehaviorCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getComponent().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ComponentCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getDevice().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return DeviceCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getExecutionEnvironment().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ExecutionEnvironmentCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getNode().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return NodeCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getClass_().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ClassCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getCollaboration().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return CollaborationCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getInterface().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return InterfaceEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getPrimitiveType().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return PrimitiveTypeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getEnumeration().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return EnumerationEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getDataType().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return DataTypeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getActor().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ActorEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getDeploymentSpecification().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return DeploymentSpecificationEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getArtifact().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ArtifactEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getInformationItem().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return InformationItemEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getSignal().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return SignalEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getUseCase().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return UseCaseEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getComment().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return CommentEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getDurationConstraint().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return DurationConstraintEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getTimeConstraint().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return TimeConstraintEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getIntervalConstraint().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return IntervalConstraintEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getInteractionConstraint().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return InteractionConstraintEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getConstraint().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ConstraintEditPartCN.VISUAL_ID;
+ }
+ break;
+ case ClassCompositeCompartmentEditPart.VISUAL_ID:
+ if(UMLPackage.eINSTANCE.getPort().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return PortEditPart.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getProperty().isSuperTypeOf(domainElement.eClass()) && isProperty_3070(containerView, (Property)domainElement)) {
+ return PropertyPartEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getCollaborationUse().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return CollaborationUseEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getActivity().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ActivityCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getInteraction().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return InteractionCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getProtocolStateMachine().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ProtocolStateMachineCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getStateMachine().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return StateMachineCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getFunctionBehavior().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return FunctionBehaviorCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getOpaqueBehavior().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return OpaqueBehaviorCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getComponent().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ComponentCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getDevice().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return DeviceCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getExecutionEnvironment().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ExecutionEnvironmentCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getNode().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return NodeCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getClass_().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ClassCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getCollaboration().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return CollaborationCompositeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getInterface().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return InterfaceEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getPrimitiveType().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return PrimitiveTypeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getEnumeration().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return EnumerationEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getDataType().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return DataTypeEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getActor().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ActorEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getDeploymentSpecification().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return DeploymentSpecificationEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getArtifact().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ArtifactEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getInformationItem().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return InformationItemEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getSignal().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return SignalEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getUseCase().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return UseCaseEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getComment().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return CommentEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getConstraint().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ConstraintEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getDurationConstraint().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return DurationConstraintEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getTimeConstraint().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return TimeConstraintEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getIntervalConstraint().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return IntervalConstraintEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getInteractionConstraint().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return InteractionConstraintEditPartCN.VISUAL_ID;
+ }
+ break;
+ case CollaborationCompositeCompartmentEditPart.VISUAL_ID:
+ if(UMLPackage.eINSTANCE.getProperty().isSuperTypeOf(domainElement.eClass()) && isProperty_3070(containerView, (Property)domainElement)) {
+ return PropertyPartEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getCollaborationUse().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return CollaborationUseEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getComment().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return CommentEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getConnectableElement().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return CollaborationRoleEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getDurationConstraint().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return DurationConstraintEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getTimeConstraint().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return TimeConstraintEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getIntervalConstraint().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return IntervalConstraintEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getInteractionConstraint().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return InteractionConstraintEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getConstraint().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ConstraintEditPartCN.VISUAL_ID;
+ }
+ break;
+ case PropertyPartCompartmentEditPartCN.VISUAL_ID:
+ if(UMLPackage.eINSTANCE.getPort().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return PortEditPart.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getProperty().isSuperTypeOf(domainElement.eClass()) && isProperty_3070(containerView, (Property)domainElement)) {
+ return PropertyPartEditPartCN.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getComment().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return CommentEditPartCN.VISUAL_ID;
+ }
+ break;
+ }
+ return -1;
+ }
+
+ /**
+ * @generated
+ */
+ public static boolean canCreateNode(View containerView, int nodeVisualID) {
+ String containerModelID = org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry.getModelID(containerView);
+ if(!CompositeStructureDiagramEditPart.MODEL_ID.equals(containerModelID)) {
+ return false;
+ }
+ int containerVisualID;
+ if(CompositeStructureDiagramEditPart.MODEL_ID.equals(containerModelID)) {
+ containerVisualID = org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry.getVisualID(containerView);
+ } else {
+ if(containerView instanceof Diagram) {
+ containerVisualID = CompositeStructureDiagramEditPart.VISUAL_ID;
+ } else {
+ return false;
+ }
+ }
+ switch(containerVisualID) {
+ case CompositeStructureDiagramEditPart.VISUAL_ID:
+ if(ActivityCompositeEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(InteractionCompositeEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ProtocolStateMachineCompositeEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(StateMachineCompositeEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(FunctionBehaviorCompositeEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(OpaqueBehaviorCompositeEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ComponentCompositeEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(DeviceCompositeEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ExecutionEnvironmentCompositeEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(NodeCompositeEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ClassCompositeEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(CollaborationCompositeEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(InterfaceEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(PrimitiveTypeEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(EnumerationEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(DataTypeEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ActorEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(DeploymentSpecificationEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ArtifactEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(InformationItemEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(SignalEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(UseCaseEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(SignalEventEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(CallEventEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(AnyReceiveEventEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(SendSignalEventEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(SendOperationEventEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ChangeEventEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(TimeEventEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(CreationEventEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(DestructionEventEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ExecutionEventEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(DurationObservationEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(TimeObservationEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(LiteralBooleanEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(LiteralIntegerEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(LiteralNullEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(LiteralStringEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(LiteralUnlimitedNaturalEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(StringExpressionEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(OpaqueExpressionEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(TimeExpressionEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ExpressionEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(DurationEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(TimeIntervalEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(DurationIntervalEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(IntervalEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(InstanceValueEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(CommentEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(DurationConstraintEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(TimeConstraintEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(IntervalConstraintEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(InteractionConstraintEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ConstraintEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ break;
+ case ActivityCompositeEditPart.VISUAL_ID:
+ if(ActivityCompositeNameEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ActivityCompositeCompartmentEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(PortEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ParameterEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ break;
+ case InteractionCompositeEditPart.VISUAL_ID:
+ if(InteractionCompositeNameEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(InteractionCompositeCompartmentEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(PortEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ParameterEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ break;
+ case ProtocolStateMachineCompositeEditPart.VISUAL_ID:
+ if(ProtocolStateMachineCompositeNameEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ProtocolStateMachineCompositeCompartmentEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(PortEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ParameterEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ break;
+ case StateMachineCompositeEditPart.VISUAL_ID:
+ if(StateMachineCompositeNameEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(StateMachineCompositeCompartmentEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(PortEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ParameterEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ break;
+ case FunctionBehaviorCompositeEditPart.VISUAL_ID:
+ if(FunctionBehaviorCompositeNameEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(FunctionBehaviorCompositeCompartmentEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(PortEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ParameterEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ break;
+ case OpaqueBehaviorCompositeEditPart.VISUAL_ID:
+ if(OpaqueBehaviorCompositeNameEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(OpaqueBehaviorCompositeCompartmentEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(PortEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ParameterEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ break;
+ case ComponentCompositeEditPart.VISUAL_ID:
+ if(ComponentCompositeNameEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ComponentCompositeCompartmentEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(PortEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ break;
+ case DeviceCompositeEditPart.VISUAL_ID:
+ if(DeviceCompositeNameEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(DeviceCompositeCompartmentEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(PortEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ break;
+ case ExecutionEnvironmentCompositeEditPart.VISUAL_ID:
+ if(ExecutionEnvironmentCompositeNameEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ExecutionEnvironmentCompositeCompartmentEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(PortEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ break;
+ case NodeCompositeEditPart.VISUAL_ID:
+ if(NodeCompositeNameEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(NodeCompositeCompartmentEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(PortEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ break;
+ case ClassCompositeEditPart.VISUAL_ID:
+ if(ClassCompositeNameEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ClassCompositeCompartmentEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(PortEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ break;
+ case CollaborationCompositeEditPart.VISUAL_ID:
+ if(CollaborationCompositeNameEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(CollaborationCompositeCompartmentEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ break;
+ case InterfaceEditPart.VISUAL_ID:
+ if(InterfaceNameEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ break;
+ case PrimitiveTypeEditPart.VISUAL_ID:
+ if(PrimitiveTypeNameEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ break;
+ case EnumerationEditPart.VISUAL_ID:
+ if(EnumerationNameEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(EnumerationEnumerationLiteralCompartmentEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(EnumerationLiteralEditPartCLN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ break;
+ case DataTypeEditPart.VISUAL_ID:
+ if(DataTypeNameEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(DataTypeAttributeCompartmentEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(DataTypeOperationCompartmentEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ break;
+ case ActorEditPart.VISUAL_ID:
+ if(ActorNameEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ break;
+ case DeploymentSpecificationEditPart.VISUAL_ID:
+ if(DeploymentSpecificationNameEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ break;
+ case ArtifactEditPart.VISUAL_ID:
+ if(ArtifactNameEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ break;
+ case InformationItemEditPart.VISUAL_ID:
+ if(InformationItemNameEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ break;
+ case SignalEditPart.VISUAL_ID:
+ if(SignalNameEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ break;
+ case UseCaseEditPart.VISUAL_ID:
+ if(UseCaseNameEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ break;
+ case SignalEventEditPart.VISUAL_ID:
+ if(SignalEventNameEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ break;
+ case CallEventEditPart.VISUAL_ID:
+ if(CallEventNameEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ break;
+ case AnyReceiveEventEditPart.VISUAL_ID:
+ if(AnyReceiveEventNameEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ break;
+ case SendSignalEventEditPart.VISUAL_ID:
+ if(SendSignalEventNameEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ break;
+ case SendOperationEventEditPart.VISUAL_ID:
+ if(SendOperationEventNameEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ break;
+ case ChangeEventEditPart.VISUAL_ID:
+ if(ChangeEventNameEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ break;
+ case TimeEventEditPart.VISUAL_ID:
+ if(TimeEventNameEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ break;
+ case CreationEventEditPart.VISUAL_ID:
+ if(CreationEventNameEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ break;
+ case DestructionEventEditPart.VISUAL_ID:
+ if(DestructionEventNameEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ break;
+ case ExecutionEventEditPart.VISUAL_ID:
+ if(ExecutionEventNameEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ break;
+ case DurationObservationEditPart.VISUAL_ID:
+ if(DurationObservationNameEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(DurationObservationStereotypeLabelEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ break;
+ case TimeObservationEditPart.VISUAL_ID:
+ if(TimeObservationNameEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(TimeObservationStereotypeLabelEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ break;
+ case LiteralBooleanEditPart.VISUAL_ID:
+ if(LiteralBooleanNameEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ break;
+ case LiteralIntegerEditPart.VISUAL_ID:
+ if(LiteralIntegerNameEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ break;
+ case LiteralNullEditPart.VISUAL_ID:
+ if(LiteralNullNameEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ break;
+ case LiteralStringEditPart.VISUAL_ID:
+ if(LiteralStringNameEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ break;
+ case LiteralUnlimitedNaturalEditPart.VISUAL_ID:
+ if(LiteralUnlimitedNaturalNameEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ break;
+ case StringExpressionEditPart.VISUAL_ID:
+ if(StringExpressionNameEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ break;
+ case OpaqueExpressionEditPart.VISUAL_ID:
+ if(OpaqueExpressionNameEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ break;
+ case TimeExpressionEditPart.VISUAL_ID:
+ if(TimeExpressionNameEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ break;
+ case ExpressionEditPart.VISUAL_ID:
+ if(ExpressionNameEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ break;
+ case DurationEditPart.VISUAL_ID:
+ if(DurationNameEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ break;
+ case TimeIntervalEditPart.VISUAL_ID:
+ if(TimeIntervalNameEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ break;
+ case DurationIntervalEditPart.VISUAL_ID:
+ if(DurationIntervalNameEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ break;
+ case IntervalEditPart.VISUAL_ID:
+ if(IntervalNameEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ break;
+ case InstanceValueEditPart.VISUAL_ID:
+ if(InstanceValueNameEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ break;
+ case CommentEditPart.VISUAL_ID:
+ if(CommentBodyEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ break;
+ case DurationConstraintEditPart.VISUAL_ID:
+ if(DurationConstraintNameEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(DurationConstraintSpecificationEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ break;
+ case TimeConstraintEditPart.VISUAL_ID:
+ if(TimeConstraintNameEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(TimeConstraintSpecificationEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ break;
+ case IntervalConstraintEditPart.VISUAL_ID:
+ if(IntervalConstraintNameEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(IntervalConstraintSpecificationEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ break;
+ case InteractionConstraintEditPart.VISUAL_ID:
+ if(InteractionConstraintNameEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(InteractionConstraintSpecificationEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ break;
+ case ConstraintEditPart.VISUAL_ID:
+ if(ConstraintNameEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ConstraintSpecificationEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ break;
+ case PortEditPart.VISUAL_ID:
+ if(PortNameEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(PortAppliedStereotypeEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ break;
+ case ParameterEditPart.VISUAL_ID:
+ if(ParameterNameEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ParameterAppliedStereotypeEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ break;
+ case PropertyPartEditPartCN.VISUAL_ID:
+ if(PropertyPartNameEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(PropertyPartCompartmentEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(PortEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ break;
+ case CollaborationRoleEditPartCN.VISUAL_ID:
+ if(CollaborationRoleNameEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ break;
+ case CollaborationUseEditPartCN.VISUAL_ID:
+ if(CollaborationUseNameEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ break;
+ case ActivityCompositeEditPartCN.VISUAL_ID:
+ if(ActivityCompositeNameEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ActivityCompositeCompartmentEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(PortEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ParameterEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ break;
+ case InteractionCompositeEditPartCN.VISUAL_ID:
+ if(InteractionCompositeNameEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(InteractionCompositeCompartmentEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(PortEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ParameterEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ break;
+ case ProtocolStateMachineCompositeEditPartCN.VISUAL_ID:
+ if(ProtocolStateMachineCompositeNameEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ProtocolStateMachineCompositeCompartmentEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(PortEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ParameterEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ break;
+ case StateMachineCompositeEditPartCN.VISUAL_ID:
+ if(StateMachineCompositeNameEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(StateMachineCompositeCompartmentEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(PortEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ParameterEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ break;
+ case FunctionBehaviorCompositeEditPartCN.VISUAL_ID:
+ if(FunctionBehaviorCompositeNameEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(FunctionBehaviorCompositeCompartmentEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(PortEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ParameterEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ break;
+ case OpaqueBehaviorCompositeEditPartCN.VISUAL_ID:
+ if(OpaqueBehaviorCompositeNameEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(OpaqueBehaviorCompositeCompartmentEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(PortEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ParameterEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ break;
+ case ComponentCompositeEditPartCN.VISUAL_ID:
+ if(ComponentCompositeNameEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ComponentCompositeCompartmentEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(PortEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ break;
+ case DeviceCompositeEditPartCN.VISUAL_ID:
+ if(DeviceCompositeNameEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(DeviceCompositeCompartmentEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(PortEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ break;
+ case ExecutionEnvironmentCompositeEditPartCN.VISUAL_ID:
+ if(ExecutionEnvironmentCompositeNameEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ExecutionEnvironmentCompositeCompartmentEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(PortEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ break;
+ case NodeCompositeEditPartCN.VISUAL_ID:
+ if(NodeCompositeNameEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(NodeCompositeCompartmentEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(PortEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ break;
+ case ClassCompositeEditPartCN.VISUAL_ID:
+ if(ClassCompositeNameEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ClassCompositeCompartmentEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(PortEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ break;
+ case CollaborationCompositeEditPartCN.VISUAL_ID:
+ if(CollaborationCompositeNameEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(CollaborationCompositeCompartmentEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ break;
+ case InterfaceEditPartCN.VISUAL_ID:
+ if(InterfaceNameEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ break;
+ case PrimitiveTypeEditPartCN.VISUAL_ID:
+ if(PrimitiveTypeNameEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ break;
+ case EnumerationEditPartCN.VISUAL_ID:
+ if(EnumerationNameEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(EnumerationEnumerationLiteralCompartmentEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(EnumerationLiteralEditPartCLN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ break;
+ case DataTypeEditPartCN.VISUAL_ID:
+ if(DataTypeNameEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(DataTypeAttributeCompartmentEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(DataTypeOperationCompartmentEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ break;
+ case ActorEditPartCN.VISUAL_ID:
+ if(ActorNameEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ break;
+ case DeploymentSpecificationEditPartCN.VISUAL_ID:
+ if(DeploymentSpecificationNameEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ break;
+ case ArtifactEditPartCN.VISUAL_ID:
+ if(ArtifactNameEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ break;
+ case InformationItemEditPartCN.VISUAL_ID:
+ if(InformationItemNameEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ break;
+ case SignalEditPartCN.VISUAL_ID:
+ if(SignalNameEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ break;
+ case UseCaseEditPartCN.VISUAL_ID:
+ if(UseCaseNameEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ break;
+ case CommentEditPartCN.VISUAL_ID:
+ if(CommentBodyEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ break;
+ case DurationConstraintEditPartCN.VISUAL_ID:
+ if(DurationConstraintNameEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(DurationConstraintSpecificationEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ break;
+ case TimeConstraintEditPartCN.VISUAL_ID:
+ if(TimeConstraintNameEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(TimeConstraintSpecificationEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ break;
+ case IntervalConstraintEditPartCN.VISUAL_ID:
+ if(IntervalConstraintNameEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(IntervalConstraintSpecificationEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ break;
+ case InteractionConstraintEditPartCN.VISUAL_ID:
+ if(InteractionConstraintNameEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(InteractionConstraintSpecificationEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ break;
+ case ConstraintEditPartCN.VISUAL_ID:
+ if(ConstraintNameEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ConstraintSpecificationEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ break;
+ case DataTypeAttributeCompartmentEditPart.VISUAL_ID:
+ if(PropertyEditPartCLN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ break;
+ case DataTypeOperationCompartmentEditPart.VISUAL_ID:
+ if(OperationEditPartCLN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ break;
+ case DataTypeAttributeCompartmentEditPartCN.VISUAL_ID:
+ if(PropertyEditPartCLN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ break;
+ case DataTypeOperationCompartmentEditPartCN.VISUAL_ID:
+ if(OperationEditPartCLN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ break;
+ case EnumerationEnumerationLiteralCompartmentEditPart.VISUAL_ID:
+ if(EnumerationLiteralEditPartCLN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ break;
+ case EnumerationEnumerationLiteralCompartmentEditPartCN.VISUAL_ID:
+ if(EnumerationLiteralEditPartCLN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ break;
+ case ActivityCompositeCompartmentEditPartCN.VISUAL_ID:
+ if(PortEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ParameterEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(PropertyPartEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(CollaborationUseEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ActivityCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(InteractionCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ProtocolStateMachineCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(StateMachineCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(FunctionBehaviorCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(OpaqueBehaviorCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ComponentCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(DeviceCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ExecutionEnvironmentCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(NodeCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ClassCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(CollaborationCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(InterfaceEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(PrimitiveTypeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(EnumerationEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(DataTypeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ActorEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(DeploymentSpecificationEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ArtifactEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(InformationItemEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(SignalEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(UseCaseEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(CommentEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(DurationConstraintEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(TimeConstraintEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(IntervalConstraintEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(InteractionConstraintEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ConstraintEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ break;
+ case InteractionCompositeCompartmentEditPartCN.VISUAL_ID:
+ if(PortEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ParameterEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(PropertyPartEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(CollaborationUseEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ActivityCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(InteractionCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ProtocolStateMachineCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(StateMachineCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(FunctionBehaviorCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(OpaqueBehaviorCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ComponentCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(DeviceCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ExecutionEnvironmentCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(NodeCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ClassCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(CollaborationCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(InterfaceEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(PrimitiveTypeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(EnumerationEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(DataTypeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ActorEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(DeploymentSpecificationEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ArtifactEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(InformationItemEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(SignalEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(UseCaseEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(CommentEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(DurationConstraintEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(TimeConstraintEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(IntervalConstraintEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(InteractionConstraintEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ConstraintEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ break;
+ case ProtocolStateMachineCompositeCompartmentEditPartCN.VISUAL_ID:
+ if(PortEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ParameterEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(PropertyPartEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(CollaborationUseEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ActivityCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(InteractionCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ProtocolStateMachineCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(StateMachineCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(FunctionBehaviorCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(OpaqueBehaviorCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ComponentCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(DeviceCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ExecutionEnvironmentCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(NodeCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ClassCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(CollaborationCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(InterfaceEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(PrimitiveTypeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(EnumerationEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(DataTypeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ActorEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(DeploymentSpecificationEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ArtifactEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(InformationItemEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(SignalEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(UseCaseEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(CommentEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(DurationConstraintEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(TimeConstraintEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(IntervalConstraintEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(InteractionConstraintEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ConstraintEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ break;
+ case StateMachineCompositeCompartmentEditPartCN.VISUAL_ID:
+ if(PortEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ParameterEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(PropertyPartEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(CollaborationUseEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ActivityCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(InteractionCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ProtocolStateMachineCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(StateMachineCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(FunctionBehaviorCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(OpaqueBehaviorCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ComponentCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(DeviceCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ExecutionEnvironmentCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(NodeCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ClassCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(CollaborationCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(InterfaceEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(PrimitiveTypeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(EnumerationEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(DataTypeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ActorEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(DeploymentSpecificationEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ArtifactEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(InformationItemEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(SignalEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(UseCaseEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(CommentEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(DurationConstraintEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(TimeConstraintEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(IntervalConstraintEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(InteractionConstraintEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ConstraintEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ break;
+ case FunctionBehaviorCompositeCompartmentEditPartCN.VISUAL_ID:
+ if(PortEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ParameterEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(PropertyPartEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(CollaborationUseEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ActivityCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(InteractionCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ProtocolStateMachineCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(StateMachineCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(FunctionBehaviorCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(OpaqueBehaviorCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ComponentCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(DeviceCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ExecutionEnvironmentCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(NodeCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ClassCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(CollaborationCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(InterfaceEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(PrimitiveTypeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(EnumerationEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(DataTypeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ActorEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(DeploymentSpecificationEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ArtifactEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(InformationItemEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(SignalEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(UseCaseEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(CommentEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(DurationConstraintEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(TimeConstraintEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(IntervalConstraintEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(InteractionConstraintEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ConstraintEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ break;
+ case OpaqueBehaviorCompositeCompartmentEditPartCN.VISUAL_ID:
+ if(PortEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ParameterEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(PropertyPartEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(CollaborationUseEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ActivityCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(InteractionCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ProtocolStateMachineCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(StateMachineCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(FunctionBehaviorCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(OpaqueBehaviorCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ComponentCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(DeviceCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ExecutionEnvironmentCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(NodeCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ClassCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(CollaborationCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(InterfaceEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(PrimitiveTypeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(EnumerationEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(DataTypeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ActorEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(DeploymentSpecificationEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ArtifactEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(InformationItemEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(SignalEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(UseCaseEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(CommentEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(DurationConstraintEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(TimeConstraintEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(IntervalConstraintEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(InteractionConstraintEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ConstraintEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ break;
+ case ComponentCompositeCompartmentEditPartCN.VISUAL_ID:
+ if(PortEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(PropertyPartEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(CollaborationUseEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ActivityCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(InteractionCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ProtocolStateMachineCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(StateMachineCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(FunctionBehaviorCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(OpaqueBehaviorCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ComponentCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(DeviceCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ExecutionEnvironmentCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(NodeCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ClassCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(CollaborationCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(InterfaceEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(PrimitiveTypeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(EnumerationEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(DataTypeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ActorEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(DeploymentSpecificationEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ArtifactEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(InformationItemEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(SignalEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(UseCaseEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(CommentEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(DurationConstraintEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(TimeConstraintEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(IntervalConstraintEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(InteractionConstraintEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ConstraintEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ break;
+ case DeviceCompositeCompartmentEditPartCN.VISUAL_ID:
+ if(PortEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(PropertyPartEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(CollaborationUseEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ActivityCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(InteractionCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ProtocolStateMachineCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(StateMachineCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(FunctionBehaviorCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(OpaqueBehaviorCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ComponentCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(DeviceCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ExecutionEnvironmentCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(NodeCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ClassCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(CollaborationCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(InterfaceEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(PrimitiveTypeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(EnumerationEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(DataTypeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ActorEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(DeploymentSpecificationEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ArtifactEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(InformationItemEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(SignalEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(UseCaseEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(CommentEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(DurationConstraintEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(TimeConstraintEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(IntervalConstraintEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(InteractionConstraintEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ConstraintEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ break;
+ case ExecutionEnvironmentCompositeCompartmentEditPartCN.VISUAL_ID:
+ if(PortEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(PropertyPartEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(CollaborationUseEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ActivityCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(InteractionCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ProtocolStateMachineCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(StateMachineCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(FunctionBehaviorCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(OpaqueBehaviorCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ComponentCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(DeviceCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ExecutionEnvironmentCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(NodeCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ClassCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(CollaborationCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(InterfaceEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(PrimitiveTypeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(EnumerationEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(DataTypeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ActorEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(DeploymentSpecificationEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ArtifactEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(InformationItemEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(SignalEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(UseCaseEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(CommentEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(DurationConstraintEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(TimeConstraintEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(IntervalConstraintEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(InteractionConstraintEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ConstraintEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ break;
+ case NodeCompositeCompartmentEditPartCN.VISUAL_ID:
+ if(PortEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(PropertyPartEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(CollaborationUseEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ActivityCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(InteractionCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ProtocolStateMachineCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(StateMachineCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(FunctionBehaviorCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(OpaqueBehaviorCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ComponentCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(DeviceCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ExecutionEnvironmentCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(NodeCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ClassCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(CollaborationCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(InterfaceEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(PrimitiveTypeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(EnumerationEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(DataTypeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ActorEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(DeploymentSpecificationEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ArtifactEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(InformationItemEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(SignalEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(UseCaseEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(CommentEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(DurationConstraintEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(TimeConstraintEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(IntervalConstraintEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(InteractionConstraintEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ConstraintEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ break;
+ case ClassCompositeCompartmentEditPartCN.VISUAL_ID:
+ if(PortEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(PropertyPartEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(CollaborationUseEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ActivityCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(InteractionCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ProtocolStateMachineCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(StateMachineCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(FunctionBehaviorCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(OpaqueBehaviorCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ComponentCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(DeviceCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ExecutionEnvironmentCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(NodeCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ClassCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(CollaborationCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(InterfaceEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(PrimitiveTypeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(EnumerationEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(DataTypeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ActorEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(DeploymentSpecificationEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ArtifactEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(InformationItemEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(SignalEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(UseCaseEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(CommentEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(DurationConstraintEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(TimeConstraintEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(IntervalConstraintEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(InteractionConstraintEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ConstraintEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ break;
+ case CollaborationCompositeCompartmentEditPartCN.VISUAL_ID:
+ if(PropertyPartEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(CollaborationUseEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(CommentEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(CollaborationRoleEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(DurationConstraintEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(TimeConstraintEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(IntervalConstraintEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(InteractionConstraintEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ConstraintEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ break;
+ case ActivityCompositeCompartmentEditPart.VISUAL_ID:
+ if(PortEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ParameterEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(PropertyPartEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(CollaborationUseEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ActivityCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(InteractionCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ProtocolStateMachineCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(StateMachineCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(FunctionBehaviorCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(OpaqueBehaviorCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ComponentCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(DeviceCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ExecutionEnvironmentCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(NodeCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ClassCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(CollaborationCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(InterfaceEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(PrimitiveTypeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(EnumerationEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(DataTypeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ActorEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(DeploymentSpecificationEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ArtifactEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(InformationItemEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(SignalEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(UseCaseEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(CommentEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(DurationConstraintEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(TimeConstraintEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(IntervalConstraintEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(InteractionConstraintEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ConstraintEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ break;
+ case InteractionCompositeCompartmentEditPart.VISUAL_ID:
+ if(PortEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ParameterEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(PropertyPartEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(CollaborationUseEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ActivityCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(InteractionCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ProtocolStateMachineCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(StateMachineCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(FunctionBehaviorCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(OpaqueBehaviorCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ComponentCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(DeviceCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ExecutionEnvironmentCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(NodeCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ClassCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(CollaborationCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(InterfaceEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(PrimitiveTypeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(EnumerationEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(DataTypeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ActorEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(DeploymentSpecificationEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ArtifactEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(InformationItemEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(SignalEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(UseCaseEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(CommentEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(DurationConstraintEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(TimeConstraintEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(IntervalConstraintEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(InteractionConstraintEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ConstraintEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ break;
+ case ProtocolStateMachineCompositeCompartmentEditPart.VISUAL_ID:
+ if(PortEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ParameterEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(PropertyPartEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(CollaborationUseEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ActivityCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(InteractionCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ProtocolStateMachineCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(StateMachineCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(FunctionBehaviorCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(OpaqueBehaviorCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ComponentCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(DeviceCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ExecutionEnvironmentCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(NodeCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ClassCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(CollaborationCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(InterfaceEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(PrimitiveTypeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(EnumerationEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(DataTypeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ActorEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(DeploymentSpecificationEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ArtifactEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(InformationItemEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(SignalEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(UseCaseEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(CommentEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(DurationConstraintEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(TimeConstraintEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(IntervalConstraintEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(InteractionConstraintEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ConstraintEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ break;
+ case StateMachineCompositeCompartmentEditPart.VISUAL_ID:
+ if(PortEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ParameterEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(PropertyPartEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(CollaborationUseEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ActivityCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(InteractionCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ProtocolStateMachineCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(StateMachineCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(FunctionBehaviorCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(OpaqueBehaviorCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ComponentCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(DeviceCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ExecutionEnvironmentCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(NodeCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ClassCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(CollaborationCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(InterfaceEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(PrimitiveTypeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(EnumerationEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(DataTypeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ActorEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(DeploymentSpecificationEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ArtifactEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(InformationItemEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(SignalEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(UseCaseEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(CommentEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(DurationConstraintEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(TimeConstraintEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(IntervalConstraintEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(InteractionConstraintEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ConstraintEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ break;
+ case FunctionBehaviorCompositeCompartmentEditPart.VISUAL_ID:
+ if(PortEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ParameterEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(PropertyPartEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(CollaborationUseEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ActivityCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(InteractionCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ProtocolStateMachineCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(StateMachineCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(FunctionBehaviorCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(OpaqueBehaviorCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ComponentCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(DeviceCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ExecutionEnvironmentCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(NodeCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ClassCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(CollaborationCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(InterfaceEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(PrimitiveTypeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(EnumerationEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(DataTypeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ActorEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(DeploymentSpecificationEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ArtifactEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(InformationItemEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(SignalEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(UseCaseEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(CommentEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(DurationConstraintEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(TimeConstraintEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(IntervalConstraintEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(InteractionConstraintEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ConstraintEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ break;
+ case OpaqueBehaviorCompositeCompartmentEditPart.VISUAL_ID:
+ if(PortEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ParameterEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(PropertyPartEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(CollaborationUseEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ActivityCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(InteractionCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ProtocolStateMachineCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(StateMachineCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(FunctionBehaviorCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(OpaqueBehaviorCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ComponentCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(DeviceCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ExecutionEnvironmentCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(NodeCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ClassCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(CollaborationCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(InterfaceEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(PrimitiveTypeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(EnumerationEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(DataTypeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ActorEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(DeploymentSpecificationEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ArtifactEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(InformationItemEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(SignalEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(UseCaseEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(CommentEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(DurationConstraintEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(TimeConstraintEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(IntervalConstraintEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(InteractionConstraintEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ConstraintEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ break;
+ case ComponentCompositeCompartmentEditPart.VISUAL_ID:
+ if(PortEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(PropertyPartEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(CollaborationUseEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ActivityCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(InteractionCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ProtocolStateMachineCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(StateMachineCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(FunctionBehaviorCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(OpaqueBehaviorCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ComponentCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(DeviceCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ExecutionEnvironmentCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(NodeCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ClassCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(CollaborationCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(InterfaceEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(PrimitiveTypeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(EnumerationEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(DataTypeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ActorEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(DeploymentSpecificationEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ArtifactEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(InformationItemEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(SignalEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(UseCaseEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(CommentEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(DurationConstraintEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(TimeConstraintEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(IntervalConstraintEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(InteractionConstraintEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ConstraintEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ break;
+ case DeviceCompositeCompartmentEditPart.VISUAL_ID:
+ if(PortEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(PropertyPartEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(CollaborationUseEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ActivityCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(InteractionCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ProtocolStateMachineCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(StateMachineCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(FunctionBehaviorCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(OpaqueBehaviorCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ComponentCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(DeviceCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ExecutionEnvironmentCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(NodeCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ClassCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(CollaborationCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(InterfaceEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(PrimitiveTypeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(EnumerationEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(DataTypeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ActorEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(DeploymentSpecificationEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ArtifactEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(InformationItemEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(SignalEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(UseCaseEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(CommentEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(DurationConstraintEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(TimeConstraintEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(IntervalConstraintEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(InteractionConstraintEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ConstraintEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ break;
+ case ExecutionEnvironmentCompositeCompartmentEditPart.VISUAL_ID:
+ if(PortEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(PropertyPartEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(CollaborationUseEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ActivityCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(InteractionCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ProtocolStateMachineCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(StateMachineCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(FunctionBehaviorCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(OpaqueBehaviorCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ComponentCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(DeviceCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ExecutionEnvironmentCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(NodeCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ClassCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(CollaborationCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(InterfaceEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(PrimitiveTypeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(EnumerationEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(DataTypeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ActorEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(DeploymentSpecificationEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ArtifactEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(InformationItemEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(SignalEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(UseCaseEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(CommentEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(DurationConstraintEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(TimeConstraintEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(IntervalConstraintEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(InteractionConstraintEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ConstraintEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ break;
+ case NodeCompositeCompartmentEditPart.VISUAL_ID:
+ if(PortEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(PropertyPartEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(CollaborationUseEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ActivityCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(InteractionCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ProtocolStateMachineCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(StateMachineCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(FunctionBehaviorCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(OpaqueBehaviorCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ComponentCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(DeviceCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ExecutionEnvironmentCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(NodeCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ClassCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(CollaborationCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(InterfaceEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(PrimitiveTypeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(EnumerationEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(DataTypeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ActorEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(DeploymentSpecificationEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ArtifactEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(InformationItemEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(SignalEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(UseCaseEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(CommentEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(DurationConstraintEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(TimeConstraintEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(IntervalConstraintEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(InteractionConstraintEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ConstraintEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ break;
+ case ClassCompositeCompartmentEditPart.VISUAL_ID:
+ if(PortEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(PropertyPartEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(CollaborationUseEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ActivityCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(InteractionCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ProtocolStateMachineCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(StateMachineCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(FunctionBehaviorCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(OpaqueBehaviorCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ComponentCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(DeviceCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ExecutionEnvironmentCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(NodeCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ClassCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(CollaborationCompositeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(InterfaceEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(PrimitiveTypeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(EnumerationEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(DataTypeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ActorEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(DeploymentSpecificationEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ArtifactEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(InformationItemEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(SignalEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(UseCaseEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(CommentEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ConstraintEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(DurationConstraintEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(TimeConstraintEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(IntervalConstraintEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(InteractionConstraintEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ break;
+ case CollaborationCompositeCompartmentEditPart.VISUAL_ID:
+ if(PropertyPartEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(CollaborationUseEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(CommentEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(CollaborationRoleEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(DurationConstraintEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(TimeConstraintEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(IntervalConstraintEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(InteractionConstraintEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ConstraintEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ break;
+ case PropertyPartCompartmentEditPartCN.VISUAL_ID:
+ if(PortEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(PropertyPartEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(CommentEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ break;
+ case ComponentRealizationEditPart.VISUAL_ID:
+ if(ComponentRealizationNameEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ComponentRealizationAppliedStereotypeEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ break;
+ case InterfaceRealizationEditPart.VISUAL_ID:
+ if(InterfaceRealizationNameEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(InterfaceRealizationAppliedStereotypeEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ break;
+ case SubstitutionEditPart.VISUAL_ID:
+ if(SubstitutionNameEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(SubstitutionAppliedStereotypeEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ break;
+ case RealizationEditPart.VISUAL_ID:
+ if(RealizationNameEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(RealizationAppliedStereotypeEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ break;
+ case ManifestationEditPart.VISUAL_ID:
+ if(ManifestationNameEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ManifestationAppliedStereotypeEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ break;
+ case AbstractionEditPart.VISUAL_ID:
+ if(AbstractionNameEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(AbstractionAppliedStereotypeEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ break;
+ case UsageEditPart.VISUAL_ID:
+ if(UsageNameEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(UsageAppliedStereotypeEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ break;
+ case DeploymentEditPart.VISUAL_ID:
+ if(DeploymentNameEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(DeploymentAppliedStereotypeEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ break;
+ case RoleBindingEditPart.VISUAL_ID:
+ if(RoleBindingRoleNameEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(RoleBindingAppliedStereotypeEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ break;
+ case DependencyEditPart.VISUAL_ID:
+ if(DependencyNameEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(DependencyAppliedStereotypeEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ break;
+ case ConnectorEditPart.VISUAL_ID:
+ if(ConnectorAppliedStereotypeEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ConnectorNameEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ConnectorMultiplicitySourceEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(ConnectorMultiplicityTargetEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ break;
+ case GeneralizationEditPart.VISUAL_ID:
+ if(GeneralizationAppliedStereotypeEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ break;
+ case RepresentationEditPart.VISUAL_ID:
+ if(RepresentationTagLabelEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ break;
+ case InformationFlowEditPart.VISUAL_ID:
+ if(InformationFlowConveyedLabelEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if(InformationFlowAppliedStereotypeEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ break;
+ }
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ public static int getLinkWithClassVisualID(EObject domainElement) {
+ if(domainElement == null) {
+ return -1;
+ }
+ if(UMLPackage.eINSTANCE.getComponentRealization().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ComponentRealizationEditPart.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getInterfaceRealization().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return InterfaceRealizationEditPart.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getSubstitution().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return SubstitutionEditPart.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getRealization().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return RealizationEditPart.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getManifestation().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ManifestationEditPart.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getAbstraction().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return AbstractionEditPart.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getUsage().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return UsageEditPart.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getDeployment().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return DeploymentEditPart.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getDependency().isSuperTypeOf(domainElement.eClass())
+
+ && isDependency_4017((Dependency)domainElement)
+
+ ) {
+ return RoleBindingEditPart.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getDependency().isSuperTypeOf(domainElement.eClass())
+
+ && isDependency_4010((Dependency)domainElement)
+
+ ) {
+ return DependencyEditPart.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getConnector().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return ConnectorEditPart.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getGeneralization().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return GeneralizationEditPart.VISUAL_ID;
+ }
+ if(UMLPackage.eINSTANCE.getInformationFlow().isSuperTypeOf(domainElement.eClass())
+
+ ) {
+ return InformationFlowEditPart.VISUAL_ID;
+ }
+ return -1;
+ }
+
+ /**
+ * "User can change implementation of this method to handle some specific\n""situations not covered by default logic.\n"
+ *
+ * @generated
+ */
+ private static boolean isDiagram(Package element) {
+ return true;
+ }
+
+ /**
+ * @generated
+ */
+
+ private static boolean isProperty_3070(View containerView, Property domainElement) {
+
+ // Property / CollaborationRole constraint
+ // Restriction for the case where domainElement owner is a Collaboration
+ // If the domainElement is not referenced as one of its owner role
+ // then it should be considered as a Property creation on Collaboration,
+ // else the test should return false and be considered as a representation of
+ // a collaboration role (ConnectableElement).
+ if(containerView.getElement() instanceof Collaboration) {
+ Collaboration graphicalParent = (Collaboration)containerView.getElement();
+ if(graphicalParent.getCollaborationRoles().contains(domainElement)) {
+ return false;
+ }
+ }
+
+ // General case : no restriction
+ return true;
+ }
+
+ /**
+ * @generated
+ */
+
+ private static boolean isDependency_4017(Dependency domainElement) {
+
+ // Test if the dependency is a RoleBinding
+ if(domainElement.getOwner() instanceof CollaborationUse) {
+ CollaborationUse owner = (CollaborationUse)domainElement.getOwner();
+ if(owner.getRoleBindings().contains(domainElement)) {
+ return true;
+ }
+ }
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+
+ private static boolean isDependency_4010(Dependency domainElement) {
+
+ // Test if the dependency is not a RoleBinding
+ if(domainElement.getOwner() instanceof CollaborationUse) {
+ CollaborationUse owner = (CollaborationUse)domainElement.getOwner();
+ if(owner.getRoleBindings().contains(domainElement)) {
+ return false;
+ }
+ }
+ return true;
+ }
+
+ /**
+ * @generated
+ */
+ private static ViewInfo diagramViewInfo = null;
+
+ /**
+ * @generated
+ */
+ public static ViewInfo getDiagramViewInfo() {
+ if(diagramViewInfo == null) {
+ diagramViewInfo = getPackage_1000ViewInfo();
+ }
+ return diagramViewInfo;
+ }
+
+ /**
+ * @generated
+ */
+ protected static ViewInfo getPackage_1000ViewInfo() {
+ ViewInfo root = new BaseViewInfo(1000, ViewInfo.Head, "", null, null);
+ ViewInfo viewInfo = null;
+ ViewInfo labelInfo = null;
+
+ viewInfo = new BaseViewInfo(2060, ViewInfo.Node, "Activity");
+ root.addNode(1000, viewInfo);
+
+ viewInfo = new BaseViewInfo(2061, ViewInfo.Node, "Interaction");
+ root.addNode(1000, viewInfo);
+
+ viewInfo = new BaseViewInfo(2062, ViewInfo.Node, "ProtocolStateMachine");
+ root.addNode(1000, viewInfo);
+
+ viewInfo = new BaseViewInfo(2063, ViewInfo.Node, "StateMachine");
+ root.addNode(1000, viewInfo);
+
+ viewInfo = new BaseViewInfo(2064, ViewInfo.Node, "FunctionBehavior");
+ root.addNode(1000, viewInfo);
+
+ viewInfo = new BaseViewInfo(2065, ViewInfo.Node, "OpaqueBehavior");
+ root.addNode(1000, viewInfo);
+
+ viewInfo = new BaseViewInfo(2069, ViewInfo.Node, "Component");
+ root.addNode(1000, viewInfo);
+
+ viewInfo = new BaseViewInfo(2070, ViewInfo.Node, "Device");
+ root.addNode(1000, viewInfo);
+
+ viewInfo = new BaseViewInfo(2071, ViewInfo.Node, "ExecutionEnvironment");
+ root.addNode(1000, viewInfo);
+
+ viewInfo = new BaseViewInfo(2072, ViewInfo.Node, "Node");
+ root.addNode(1000, viewInfo);
+
+ viewInfo = new BaseViewInfo(2073, ViewInfo.Node, "Class");
+ root.addNode(1000, viewInfo);
+
+ viewInfo = new BaseViewInfo(2075, ViewInfo.Node, "Collaboration");
+ root.addNode(1000, viewInfo);
+
+ viewInfo = new BaseViewInfo(2076, ViewInfo.Node, "Interface");
+ root.addNode(1000, viewInfo);
+
+ viewInfo = new BaseViewInfo(2066, ViewInfo.Node, "PrimitiveType");
+ root.addNode(1000, viewInfo);
+
+ viewInfo = new BaseViewInfo(2067, ViewInfo.Node, "Enumeration");
+ root.addNode(1000, viewInfo);
+
+ viewInfo = new BaseViewInfo(2068, ViewInfo.Node, "DataType");
+ root.addNode(1000, viewInfo);
+
+ viewInfo = new BaseViewInfo(2077, ViewInfo.Node, "Actor");
+ root.addNode(1000, viewInfo);
+
+ viewInfo = new BaseViewInfo(2078, ViewInfo.Node, "DeploymentSpecification");
+ root.addNode(1000, viewInfo);
+
+ viewInfo = new BaseViewInfo(2079, ViewInfo.Node, "Artifact");
+ root.addNode(1000, viewInfo);
+
+ viewInfo = new BaseViewInfo(2080, ViewInfo.Node, "InformationItem");
+ root.addNode(1000, viewInfo);
+
+ viewInfo = new BaseViewInfo(2081, ViewInfo.Node, "Signal");
+ root.addNode(1000, viewInfo);
+
+ viewInfo = new BaseViewInfo(2082, ViewInfo.Node, "UseCase");
+ root.addNode(1000, viewInfo);
+
+ viewInfo = new BaseViewInfo(2083, ViewInfo.Node, "SignalEvent");
+ root.addNode(1000, viewInfo);
+
+ viewInfo = new BaseViewInfo(2084, ViewInfo.Node, "CallEvent");
+ root.addNode(1000, viewInfo);
+
+ viewInfo = new BaseViewInfo(2085, ViewInfo.Node, "AnyReceiveEvent");
+ root.addNode(1000, viewInfo);
+
+ viewInfo = new BaseViewInfo(2086, ViewInfo.Node, "SendSignalEvent");
+ root.addNode(1000, viewInfo);
+
+ viewInfo = new BaseViewInfo(2087, ViewInfo.Node, "SendOperationEvent");
+ root.addNode(1000, viewInfo);
+
+ viewInfo = new BaseViewInfo(2088, ViewInfo.Node, "ChangeEvent");
+ root.addNode(1000, viewInfo);
+
+ viewInfo = new BaseViewInfo(2089, ViewInfo.Node, "TimeEvent");
+ root.addNode(1000, viewInfo);
+
+ viewInfo = new BaseViewInfo(2090, ViewInfo.Node, "CreationEvent");
+ root.addNode(1000, viewInfo);
+
+ viewInfo = new BaseViewInfo(2091, ViewInfo.Node, "DestructionEvent");
+ root.addNode(1000, viewInfo);
+
+ viewInfo = new BaseViewInfo(2092, ViewInfo.Node, "ExecutionEvent");
+ root.addNode(1000, viewInfo);
+
+ viewInfo = new BaseViewInfo(2093, ViewInfo.Node, "DurationObservation");
+ root.addNode(1000, viewInfo);
+
+ viewInfo = new BaseViewInfo(2094, ViewInfo.Node, "TimeObservation");
+ root.addNode(1000, viewInfo);
+
+ viewInfo = new BaseViewInfo(2095, ViewInfo.Node, "LiteralBoolean");
+ root.addNode(1000, viewInfo);
+
+ viewInfo = new BaseViewInfo(2096, ViewInfo.Node, "LiteralInteger");
+ root.addNode(1000, viewInfo);
+
+ viewInfo = new BaseViewInfo(2097, ViewInfo.Node, "LiteralNull");
+ root.addNode(1000, viewInfo);
+
+ viewInfo = new BaseViewInfo(2098, ViewInfo.Node, "LiteralString");
+ root.addNode(1000, viewInfo);
+
+ viewInfo = new BaseViewInfo(2099, ViewInfo.Node, "LiteralUnlimitedNatural");
+ root.addNode(1000, viewInfo);
+
+ viewInfo = new BaseViewInfo(2100, ViewInfo.Node, "StringExpression");
+ root.addNode(1000, viewInfo);
+
+ viewInfo = new BaseViewInfo(2101, ViewInfo.Node, "OpaqueExpression");
+ root.addNode(1000, viewInfo);
+
+ viewInfo = new BaseViewInfo(2102, ViewInfo.Node, "TimeExpression");
+ root.addNode(1000, viewInfo);
+
+ viewInfo = new BaseViewInfo(2103, ViewInfo.Node, "Expression");
+ root.addNode(1000, viewInfo);
+
+ viewInfo = new BaseViewInfo(2104, ViewInfo.Node, "Duration");
+ root.addNode(1000, viewInfo);
+
+ viewInfo = new BaseViewInfo(2105, ViewInfo.Node, "TimeInterval");
+ root.addNode(1000, viewInfo);
+
+ viewInfo = new BaseViewInfo(2106, ViewInfo.Node, "DurationInterval");
+ root.addNode(1000, viewInfo);
+
+ viewInfo = new BaseViewInfo(2107, ViewInfo.Node, "Interval");
+ root.addNode(1000, viewInfo);
+
+ viewInfo = new BaseViewInfo(2108, ViewInfo.Node, "InstanceValue");
+ root.addNode(1000, viewInfo);
+
+ viewInfo = new BaseViewInfo(2109, ViewInfo.Node, "Comment");
+ root.addNode(1000, viewInfo);
+
+ viewInfo = new BaseViewInfo(2110, ViewInfo.Node, "DurationConstraint");
+ root.addNode(1000, viewInfo);
+
+ viewInfo = new BaseViewInfo(2111, ViewInfo.Node, "TimeConstraint");
+ root.addNode(1000, viewInfo);
+
+ viewInfo = new BaseViewInfo(2112, ViewInfo.Node, "IntervalConstraint");
+ root.addNode(1000, viewInfo);
+
+ viewInfo = new BaseViewInfo(2113, ViewInfo.Node, "InteractionConstraint");
+ root.addNode(1000, viewInfo);
+
+ viewInfo = new BaseViewInfo(2114, ViewInfo.Node, "Constraint");
+ root.addNode(1000, viewInfo);
+
+ viewInfo = new BaseViewInfo(4001, ViewInfo.Edge, "");
+ root.addNode(1000, viewInfo);
+
+ viewInfo = new BaseViewInfo(4002, ViewInfo.Edge, "");
+ root.addNode(1000, viewInfo);
+
+ viewInfo = new BaseViewInfo(4003, ViewInfo.Edge, "");
+ root.addNode(1000, viewInfo);
+
+ viewInfo = new BaseViewInfo(4004, ViewInfo.Edge, "");
+ root.addNode(1000, viewInfo);
+
+ labelInfo = new BaseViewInfo(6001, ViewInfo.Label, "", null, viewInfo);
+ viewInfo.getChildren().add(labelInfo);
+
+ labelInfo = new BaseViewInfo(6015, ViewInfo.Label, "", null, viewInfo);
+ viewInfo.getChildren().add(labelInfo);
+
+ viewInfo = new BaseViewInfo(4005, ViewInfo.Edge, "");
+ root.addNode(1000, viewInfo);
+
+ labelInfo = new BaseViewInfo(6002, ViewInfo.Label, "", null, viewInfo);
+ viewInfo.getChildren().add(labelInfo);
+
+ labelInfo = new BaseViewInfo(6016, ViewInfo.Label, "", null, viewInfo);
+ viewInfo.getChildren().add(labelInfo);
+
+ viewInfo = new BaseViewInfo(4011, ViewInfo.Edge, "");
+ root.addNode(1000, viewInfo);
+
+ labelInfo = new BaseViewInfo(6003, ViewInfo.Label, "", null, viewInfo);
+ viewInfo.getChildren().add(labelInfo);
+
+ labelInfo = new BaseViewInfo(6017, ViewInfo.Label, "", null, viewInfo);
+ viewInfo.getChildren().add(labelInfo);
+
+ viewInfo = new BaseViewInfo(4006, ViewInfo.Edge, "");
+ root.addNode(1000, viewInfo);
+
+ labelInfo = new BaseViewInfo(6004, ViewInfo.Label, "", null, viewInfo);
+ viewInfo.getChildren().add(labelInfo);
+
+ labelInfo = new BaseViewInfo(6018, ViewInfo.Label, "", null, viewInfo);
+ viewInfo.getChildren().add(labelInfo);
+
+ viewInfo = new BaseViewInfo(4012, ViewInfo.Edge, "");
+ root.addNode(1000, viewInfo);
+
+ labelInfo = new BaseViewInfo(6005, ViewInfo.Label, "", null, viewInfo);
+ viewInfo.getChildren().add(labelInfo);
+
+ labelInfo = new BaseViewInfo(6019, ViewInfo.Label, "", null, viewInfo);
+ viewInfo.getChildren().add(labelInfo);
+
+ viewInfo = new BaseViewInfo(4007, ViewInfo.Edge, "");
+ root.addNode(1000, viewInfo);
+
+ labelInfo = new BaseViewInfo(6006, ViewInfo.Label, "", null, viewInfo);
+ viewInfo.getChildren().add(labelInfo);
+
+ labelInfo = new BaseViewInfo(6020, ViewInfo.Label, "", null, viewInfo);
+ viewInfo.getChildren().add(labelInfo);
+
+ viewInfo = new BaseViewInfo(4008, ViewInfo.Edge, "");
+ root.addNode(1000, viewInfo);
+
+ labelInfo = new BaseViewInfo(6007, ViewInfo.Label, "", null, viewInfo);
+ viewInfo.getChildren().add(labelInfo);
+
+ labelInfo = new BaseViewInfo(6021, ViewInfo.Label, "", null, viewInfo);
+ viewInfo.getChildren().add(labelInfo);
+
+ viewInfo = new BaseViewInfo(4009, ViewInfo.Edge, "");
+ root.addNode(1000, viewInfo);
+
+ labelInfo = new BaseViewInfo(6008, ViewInfo.Label, "", null, viewInfo);
+ viewInfo.getChildren().add(labelInfo);
+
+ labelInfo = new BaseViewInfo(6022, ViewInfo.Label, "", null, viewInfo);
+ viewInfo.getChildren().add(labelInfo);
+
+ viewInfo = new BaseViewInfo(4017, ViewInfo.Edge, "");
+ root.addNode(1000, viewInfo);
+
+ labelInfo = new BaseViewInfo(6027, ViewInfo.Label, "", null, viewInfo);
+ viewInfo.getChildren().add(labelInfo);
+
+ labelInfo = new BaseViewInfo(6028, ViewInfo.Label, "", null, viewInfo);
+ viewInfo.getChildren().add(labelInfo);
+
+ viewInfo = new BaseViewInfo(4010, ViewInfo.Edge, "");
+ root.addNode(1000, viewInfo);
+
+ labelInfo = new BaseViewInfo(6009, ViewInfo.Label, "", null, viewInfo);
+ viewInfo.getChildren().add(labelInfo);
+
+ labelInfo = new BaseViewInfo(6023, ViewInfo.Label, "", null, viewInfo);
+ viewInfo.getChildren().add(labelInfo);
+
+ viewInfo = new BaseViewInfo(4013, ViewInfo.Edge, "");
+ root.addNode(1000, viewInfo);
+
+ labelInfo = new BaseViewInfo(6025, ViewInfo.Label, "", null, viewInfo);
+ viewInfo.getChildren().add(labelInfo);
+
+ labelInfo = new BaseViewInfo(6050, ViewInfo.Label, "", null, viewInfo);
+ viewInfo.getChildren().add(labelInfo);
+
+ labelInfo = new BaseViewInfo(6051, ViewInfo.Label, "", null, viewInfo);
+ viewInfo.getChildren().add(labelInfo);
+
+ labelInfo = new BaseViewInfo(6052, ViewInfo.Label, "", null, viewInfo);
+ viewInfo.getChildren().add(labelInfo);
+
+ viewInfo = new BaseViewInfo(4015, ViewInfo.Edge, "");
+ root.addNode(1000, viewInfo);
+
+ labelInfo = new BaseViewInfo(6024, ViewInfo.Label, "", null, viewInfo);
+ viewInfo.getChildren().add(labelInfo);
+
+ viewInfo = new BaseViewInfo(4018, ViewInfo.Edge, "");
+ root.addNode(1000, viewInfo);
+
+ viewInfo = new BaseViewInfo(4019, ViewInfo.Edge, "");
+ root.addNode(1000, viewInfo);
+
+ viewInfo = new BaseViewInfo(4020, ViewInfo.Edge, "");
+ root.addNode(1000, viewInfo);
+
+ labelInfo = new BaseViewInfo(6030, ViewInfo.Label, "", null, viewInfo);
+ viewInfo.getChildren().add(labelInfo);
+
+ viewInfo = new BaseViewInfo(4021, ViewInfo.Edge, "");
+ root.addNode(1000, viewInfo);
+
+ labelInfo = new BaseViewInfo(6031, ViewInfo.Label, "", null, viewInfo);
+ viewInfo.getChildren().add(labelInfo);
+
+ labelInfo = new BaseViewInfo(6032, ViewInfo.Label, "", null, viewInfo);
+ viewInfo.getChildren().add(labelInfo);
+
+ viewInfo = new BaseViewInfo(3069, ViewInfo.Node, "Port");
+
+ root.addNode(2073, viewInfo);
+
+ root.addNode(3085, viewInfo);
+
+ root.addNode(3070, viewInfo);
+
+ root.addNode(3072, viewInfo);
+
+ root.addNode(2060, viewInfo);
+
+ root.addNode(3073, viewInfo);
+
+ root.addNode(3074, viewInfo);
+
+ root.addNode(3075, viewInfo);
+
+ root.addNode(3076, viewInfo);
+
+ root.addNode(3077, viewInfo);
+
+ root.addNode(2061, viewInfo);
+
+ root.addNode(2062, viewInfo);
+
+ root.addNode(2063, viewInfo);
+
+ root.addNode(2064, viewInfo);
+
+ root.addNode(2065, viewInfo);
+
+ root.addNode(3081, viewInfo);
+
+ root.addNode(3082, viewInfo);
+
+ root.addNode(3083, viewInfo);
+
+ root.addNode(3084, viewInfo);
+
+ root.addNode(2072, viewInfo);
+
+ root.addNode(2071, viewInfo);
+
+ root.addNode(2070, viewInfo);
+
+ root.addNode(2069, viewInfo);
+
+ root.addNode(7050, viewInfo);
+
+ root.addNode(7051, viewInfo);
+
+ root.addNode(7052, viewInfo);
+
+ root.addNode(7053, viewInfo);
+
+ root.addNode(7054, viewInfo);
+
+ root.addNode(7055, viewInfo);
+
+ root.addNode(7056, viewInfo);
+
+ root.addNode(7057, viewInfo);
+
+ root.addNode(7058, viewInfo);
+
+ root.addNode(7059, viewInfo);
+
+ root.addNode(7060, viewInfo);
+
+ root.addNode(7063, viewInfo);
+
+ root.addNode(7064, viewInfo);
+
+ root.addNode(7065, viewInfo);
+
+ root.addNode(7066, viewInfo);
+
+ root.addNode(7067, viewInfo);
+
+ root.addNode(7068, viewInfo);
+
+ root.addNode(7069, viewInfo);
+
+ root.addNode(7070, viewInfo);
+
+ root.addNode(7071, viewInfo);
+
+ root.addNode(7072, viewInfo);
+
+ root.addNode(7073, viewInfo);
+
+ root.addNode(7077, viewInfo);
+
+ viewInfo = new BaseViewInfo(3088, ViewInfo.Node, "Parameter");
+
+ root.addNode(3072, viewInfo);
+
+ root.addNode(3073, viewInfo);
+
+ root.addNode(3074, viewInfo);
+
+ root.addNode(3075, viewInfo);
+
+ root.addNode(3076, viewInfo);
+
+ root.addNode(3077, viewInfo);
+
+ root.addNode(7050, viewInfo);
+
+ root.addNode(7051, viewInfo);
+
+ root.addNode(7052, viewInfo);
+
+ root.addNode(7053, viewInfo);
+
+ root.addNode(7054, viewInfo);
+
+ root.addNode(7055, viewInfo);
+
+ root.addNode(7063, viewInfo);
+
+ root.addNode(7064, viewInfo);
+
+ root.addNode(7065, viewInfo);
+
+ root.addNode(7066, viewInfo);
+
+ root.addNode(7067, viewInfo);
+
+ root.addNode(7068, viewInfo);
+
+ root.addNode(2060, viewInfo);
+
+ root.addNode(2061, viewInfo);
+
+ root.addNode(2062, viewInfo);
+
+ root.addNode(2063, viewInfo);
+
+ root.addNode(2064, viewInfo);
+
+ root.addNode(2065, viewInfo);
+
+ viewInfo = new BaseViewInfo(3070, ViewInfo.Node, "Property");
+
+ root.addNode(7050, viewInfo);
+
+ root.addNode(7051, viewInfo);
+
+ root.addNode(7052, viewInfo);
+
+ root.addNode(7053, viewInfo);
+
+ root.addNode(7054, viewInfo);
+
+ root.addNode(7055, viewInfo);
+
+ root.addNode(7056, viewInfo);
+
+ root.addNode(7057, viewInfo);
+
+ root.addNode(7058, viewInfo);
+
+ root.addNode(7059, viewInfo);
+
+ root.addNode(7060, viewInfo);
+
+ root.addNode(7061, viewInfo);
+
+ root.addNode(7063, viewInfo);
+
+ root.addNode(7064, viewInfo);
+
+ root.addNode(7065, viewInfo);
+
+ root.addNode(7066, viewInfo);
+
+ root.addNode(7067, viewInfo);
+
+ root.addNode(7068, viewInfo);
+
+ root.addNode(7069, viewInfo);
+
+ root.addNode(7070, viewInfo);
+
+ root.addNode(7071, viewInfo);
+
+ root.addNode(7072, viewInfo);
+
+ root.addNode(7073, viewInfo);
+
+ root.addNode(7075, viewInfo);
+
+ root.addNode(7077, viewInfo);
+
+ viewInfo = new BaseViewInfo(3115, ViewInfo.Node, "ConnectableElement");
+
+ root.addNode(7061, viewInfo);
+
+ root.addNode(7075, viewInfo);
+
+ viewInfo = new BaseViewInfo(3071, ViewInfo.Node, "CollaborationUse");
+
+ root.addNode(7050, viewInfo);
+
+ root.addNode(7051, viewInfo);
+
+ root.addNode(7052, viewInfo);
+
+ root.addNode(7053, viewInfo);
+
+ root.addNode(7054, viewInfo);
+
+ root.addNode(7055, viewInfo);
+
+ root.addNode(7056, viewInfo);
+
+ root.addNode(7057, viewInfo);
+
+ root.addNode(7058, viewInfo);
+
+ root.addNode(7059, viewInfo);
+
+ root.addNode(7060, viewInfo);
+
+ root.addNode(7061, viewInfo);
+
+ root.addNode(7063, viewInfo);
+
+ root.addNode(7064, viewInfo);
+
+ root.addNode(7065, viewInfo);
+
+ root.addNode(7066, viewInfo);
+
+ root.addNode(7067, viewInfo);
+
+ root.addNode(7068, viewInfo);
+
+ root.addNode(7069, viewInfo);
+
+ root.addNode(7070, viewInfo);
+
+ root.addNode(7071, viewInfo);
+
+ root.addNode(7072, viewInfo);
+
+ root.addNode(7073, viewInfo);
+
+ root.addNode(7075, viewInfo);
+
+ viewInfo = new BaseViewInfo(3072, ViewInfo.Node, "Activity");
+
+ root.addNode(7050, viewInfo);
+
+ root.addNode(7051, viewInfo);
+
+ root.addNode(7052, viewInfo);
+
+ root.addNode(7053, viewInfo);
+
+ root.addNode(7054, viewInfo);
+
+ root.addNode(7055, viewInfo);
+
+ root.addNode(7056, viewInfo);
+
+ root.addNode(7057, viewInfo);
+
+ root.addNode(7058, viewInfo);
+
+ root.addNode(7059, viewInfo);
+
+ root.addNode(7060, viewInfo);
+
+ root.addNode(7063, viewInfo);
+
+ root.addNode(7064, viewInfo);
+
+ root.addNode(7065, viewInfo);
+
+ root.addNode(7066, viewInfo);
+
+ root.addNode(7067, viewInfo);
+
+ root.addNode(7068, viewInfo);
+
+ root.addNode(7069, viewInfo);
+
+ root.addNode(7070, viewInfo);
+
+ root.addNode(7071, viewInfo);
+
+ root.addNode(7072, viewInfo);
+
+ root.addNode(7073, viewInfo);
+
+ viewInfo = new BaseViewInfo(3073, ViewInfo.Node, "Interaction");
+
+ root.addNode(7050, viewInfo);
+
+ root.addNode(7051, viewInfo);
+
+ root.addNode(7052, viewInfo);
+
+ root.addNode(7053, viewInfo);
+
+ root.addNode(7054, viewInfo);
+
+ root.addNode(7055, viewInfo);
+
+ root.addNode(7056, viewInfo);
+
+ root.addNode(7057, viewInfo);
+
+ root.addNode(7058, viewInfo);
+
+ root.addNode(7059, viewInfo);
+
+ root.addNode(7060, viewInfo);
+
+ root.addNode(7063, viewInfo);
+
+ root.addNode(7064, viewInfo);
+
+ root.addNode(7065, viewInfo);
+
+ root.addNode(7066, viewInfo);
+
+ root.addNode(7067, viewInfo);
+
+ root.addNode(7068, viewInfo);
+
+ root.addNode(7069, viewInfo);
+
+ root.addNode(7070, viewInfo);
+
+ root.addNode(7071, viewInfo);
+
+ root.addNode(7072, viewInfo);
+
+ root.addNode(7073, viewInfo);
+
+ viewInfo = new BaseViewInfo(3074, ViewInfo.Node, "ProtocolStateMachine");
+
+ root.addNode(7050, viewInfo);
+
+ root.addNode(7051, viewInfo);
+
+ root.addNode(7052, viewInfo);
+
+ root.addNode(7053, viewInfo);
+
+ root.addNode(7054, viewInfo);
+
+ root.addNode(7055, viewInfo);
+
+ root.addNode(7056, viewInfo);
+
+ root.addNode(7057, viewInfo);
+
+ root.addNode(7058, viewInfo);
+
+ root.addNode(7059, viewInfo);
+
+ root.addNode(7060, viewInfo);
+
+ root.addNode(7063, viewInfo);
+
+ root.addNode(7064, viewInfo);
+
+ root.addNode(7065, viewInfo);
+
+ root.addNode(7066, viewInfo);
+
+ root.addNode(7067, viewInfo);
+
+ root.addNode(7068, viewInfo);
+
+ root.addNode(7069, viewInfo);
+
+ root.addNode(7070, viewInfo);
+
+ root.addNode(7071, viewInfo);
+
+ root.addNode(7072, viewInfo);
+
+ root.addNode(7073, viewInfo);
+
+ viewInfo = new BaseViewInfo(3075, ViewInfo.Node, "StateMachine");
+
+ root.addNode(7050, viewInfo);
+
+ root.addNode(7051, viewInfo);
+
+ root.addNode(7052, viewInfo);
+
+ root.addNode(7053, viewInfo);
+
+ root.addNode(7054, viewInfo);
+
+ root.addNode(7055, viewInfo);
+
+ root.addNode(7056, viewInfo);
+
+ root.addNode(7057, viewInfo);
+
+ root.addNode(7058, viewInfo);
+
+ root.addNode(7059, viewInfo);
+
+ root.addNode(7060, viewInfo);
+
+ root.addNode(7063, viewInfo);
+
+ root.addNode(7064, viewInfo);
+
+ root.addNode(7065, viewInfo);
+
+ root.addNode(7066, viewInfo);
+
+ root.addNode(7067, viewInfo);
+
+ root.addNode(7068, viewInfo);
+
+ root.addNode(7069, viewInfo);
+
+ root.addNode(7070, viewInfo);
+
+ root.addNode(7071, viewInfo);
+
+ root.addNode(7072, viewInfo);
+
+ root.addNode(7073, viewInfo);
+
+ viewInfo = new BaseViewInfo(3076, ViewInfo.Node, "FunctionBehavior");
+
+ root.addNode(7050, viewInfo);
+
+ root.addNode(7051, viewInfo);
+
+ root.addNode(7052, viewInfo);
+
+ root.addNode(7053, viewInfo);
+
+ root.addNode(7054, viewInfo);
+
+ root.addNode(7055, viewInfo);
+
+ root.addNode(7056, viewInfo);
+
+ root.addNode(7057, viewInfo);
+
+ root.addNode(7058, viewInfo);
+
+ root.addNode(7059, viewInfo);
+
+ root.addNode(7060, viewInfo);
+
+ root.addNode(7063, viewInfo);
+
+ root.addNode(7064, viewInfo);
+
+ root.addNode(7065, viewInfo);
+
+ root.addNode(7066, viewInfo);
+
+ root.addNode(7067, viewInfo);
+
+ root.addNode(7068, viewInfo);
+
+ root.addNode(7069, viewInfo);
+
+ root.addNode(7070, viewInfo);
+
+ root.addNode(7071, viewInfo);
+
+ root.addNode(7072, viewInfo);
+
+ root.addNode(7073, viewInfo);
+
+ viewInfo = new BaseViewInfo(3077, ViewInfo.Node, "OpaqueBehavior");
+
+ root.addNode(7050, viewInfo);
+
+ root.addNode(7051, viewInfo);
+
+ root.addNode(7052, viewInfo);
+
+ root.addNode(7053, viewInfo);
+
+ root.addNode(7054, viewInfo);
+
+ root.addNode(7055, viewInfo);
+
+ root.addNode(7056, viewInfo);
+
+ root.addNode(7057, viewInfo);
+
+ root.addNode(7058, viewInfo);
+
+ root.addNode(7059, viewInfo);
+
+ root.addNode(7060, viewInfo);
+
+ root.addNode(7063, viewInfo);
+
+ root.addNode(7064, viewInfo);
+
+ root.addNode(7065, viewInfo);
+
+ root.addNode(7066, viewInfo);
+
+ root.addNode(7067, viewInfo);
+
+ root.addNode(7068, viewInfo);
+
+ root.addNode(7069, viewInfo);
+
+ root.addNode(7070, viewInfo);
+
+ root.addNode(7071, viewInfo);
+
+ root.addNode(7072, viewInfo);
+
+ root.addNode(7073, viewInfo);
+
+ viewInfo = new BaseViewInfo(3081, ViewInfo.Node, "Component");
+
+ root.addNode(7050, viewInfo);
+
+ root.addNode(7051, viewInfo);
+
+ root.addNode(7052, viewInfo);
+
+ root.addNode(7053, viewInfo);
+
+ root.addNode(7054, viewInfo);
+
+ root.addNode(7055, viewInfo);
+
+ root.addNode(7056, viewInfo);
+
+ root.addNode(7057, viewInfo);
+
+ root.addNode(7058, viewInfo);
+
+ root.addNode(7059, viewInfo);
+
+ root.addNode(7060, viewInfo);
+
+ root.addNode(7063, viewInfo);
+
+ root.addNode(7064, viewInfo);
+
+ root.addNode(7065, viewInfo);
+
+ root.addNode(7066, viewInfo);
+
+ root.addNode(7067, viewInfo);
+
+ root.addNode(7068, viewInfo);
+
+ root.addNode(7069, viewInfo);
+
+ root.addNode(7070, viewInfo);
+
+ root.addNode(7071, viewInfo);
+
+ root.addNode(7072, viewInfo);
+
+ root.addNode(7073, viewInfo);
+
+ viewInfo = new BaseViewInfo(3082, ViewInfo.Node, "Device");
+
+ root.addNode(7050, viewInfo);
+
+ root.addNode(7051, viewInfo);
+
+ root.addNode(7052, viewInfo);
+
+ root.addNode(7053, viewInfo);
+
+ root.addNode(7054, viewInfo);
+
+ root.addNode(7055, viewInfo);
+
+ root.addNode(7056, viewInfo);
+
+ root.addNode(7057, viewInfo);
+
+ root.addNode(7058, viewInfo);
+
+ root.addNode(7059, viewInfo);
+
+ root.addNode(7060, viewInfo);
+
+ root.addNode(7063, viewInfo);
+
+ root.addNode(7064, viewInfo);
+
+ root.addNode(7065, viewInfo);
+
+ root.addNode(7066, viewInfo);
+
+ root.addNode(7067, viewInfo);
+
+ root.addNode(7068, viewInfo);
+
+ root.addNode(7069, viewInfo);
+
+ root.addNode(7070, viewInfo);
+
+ root.addNode(7071, viewInfo);
+
+ root.addNode(7072, viewInfo);
+
+ root.addNode(7073, viewInfo);
+
+ viewInfo = new BaseViewInfo(3083, ViewInfo.Node, "ExecutionEnvironment");
+
+ root.addNode(7050, viewInfo);
+
+ root.addNode(7051, viewInfo);
+
+ root.addNode(7052, viewInfo);
+
+ root.addNode(7053, viewInfo);
+
+ root.addNode(7054, viewInfo);
+
+ root.addNode(7055, viewInfo);
+
+ root.addNode(7056, viewInfo);
+
+ root.addNode(7057, viewInfo);
+
+ root.addNode(7058, viewInfo);
+
+ root.addNode(7059, viewInfo);
+
+ root.addNode(7060, viewInfo);
+
+ root.addNode(7063, viewInfo);
+
+ root.addNode(7064, viewInfo);
+
+ root.addNode(7065, viewInfo);
+
+ root.addNode(7066, viewInfo);
+
+ root.addNode(7067, viewInfo);
+
+ root.addNode(7068, viewInfo);
+
+ root.addNode(7069, viewInfo);
+
+ root.addNode(7070, viewInfo);
+
+ root.addNode(7071, viewInfo);
+
+ root.addNode(7072, viewInfo);
+
+ root.addNode(7073, viewInfo);
+
+ viewInfo = new BaseViewInfo(3084, ViewInfo.Node, "Node");
+
+ root.addNode(7050, viewInfo);
+
+ root.addNode(7051, viewInfo);
+
+ root.addNode(7052, viewInfo);
+
+ root.addNode(7053, viewInfo);
+
+ root.addNode(7054, viewInfo);
+
+ root.addNode(7055, viewInfo);
+
+ root.addNode(7056, viewInfo);
+
+ root.addNode(7057, viewInfo);
+
+ root.addNode(7058, viewInfo);
+
+ root.addNode(7059, viewInfo);
+
+ root.addNode(7060, viewInfo);
+
+ root.addNode(7063, viewInfo);
+
+ root.addNode(7064, viewInfo);
+
+ root.addNode(7065, viewInfo);
+
+ root.addNode(7066, viewInfo);
+
+ root.addNode(7067, viewInfo);
+
+ root.addNode(7068, viewInfo);
+
+ root.addNode(7069, viewInfo);
+
+ root.addNode(7070, viewInfo);
+
+ root.addNode(7071, viewInfo);
+
+ root.addNode(7072, viewInfo);
+
+ root.addNode(7073, viewInfo);
+
+ viewInfo = new BaseViewInfo(3085, ViewInfo.Node, "Class");
+
+ root.addNode(7050, viewInfo);
+
+ root.addNode(7051, viewInfo);
+
+ root.addNode(7052, viewInfo);
+
+ root.addNode(7053, viewInfo);
+
+ root.addNode(7054, viewInfo);
+
+ root.addNode(7055, viewInfo);
+
+ root.addNode(7056, viewInfo);
+
+ root.addNode(7057, viewInfo);
+
+ root.addNode(7058, viewInfo);
+
+ root.addNode(7059, viewInfo);
+
+ root.addNode(7060, viewInfo);
+
+ root.addNode(7063, viewInfo);
+
+ root.addNode(7064, viewInfo);
+
+ root.addNode(7065, viewInfo);
+
+ root.addNode(7066, viewInfo);
+
+ root.addNode(7067, viewInfo);
+
+ root.addNode(7068, viewInfo);
+
+ root.addNode(7069, viewInfo);
+
+ root.addNode(7070, viewInfo);
+
+ root.addNode(7071, viewInfo);
+
+ root.addNode(7072, viewInfo);
+
+ root.addNode(7073, viewInfo);
+
+ viewInfo = new BaseViewInfo(3086, ViewInfo.Node, "Collaboration");
+
+ root.addNode(7050, viewInfo);
+
+ root.addNode(7051, viewInfo);
+
+ root.addNode(7052, viewInfo);
+
+ root.addNode(7053, viewInfo);
+
+ root.addNode(7054, viewInfo);
+
+ root.addNode(7055, viewInfo);
+
+ root.addNode(7056, viewInfo);
+
+ root.addNode(7057, viewInfo);
+
+ root.addNode(7058, viewInfo);
+
+ root.addNode(7059, viewInfo);
+
+ root.addNode(7060, viewInfo);
+
+ root.addNode(7063, viewInfo);
+
+ root.addNode(7064, viewInfo);
+
+ root.addNode(7065, viewInfo);
+
+ root.addNode(7066, viewInfo);
+
+ root.addNode(7067, viewInfo);
+
+ root.addNode(7068, viewInfo);
+
+ root.addNode(7069, viewInfo);
+
+ root.addNode(7070, viewInfo);
+
+ root.addNode(7071, viewInfo);
+
+ root.addNode(7072, viewInfo);
+
+ root.addNode(7073, viewInfo);
+
+ viewInfo = new BaseViewInfo(3087, ViewInfo.Node, "Interface");
+
+ root.addNode(7050, viewInfo);
+
+ root.addNode(7051, viewInfo);
+
+ root.addNode(7052, viewInfo);
+
+ root.addNode(7053, viewInfo);
+
+ root.addNode(7054, viewInfo);
+
+ root.addNode(7055, viewInfo);
+
+ root.addNode(7056, viewInfo);
+
+ root.addNode(7057, viewInfo);
+
+ root.addNode(7058, viewInfo);
+
+ root.addNode(7059, viewInfo);
+
+ root.addNode(7060, viewInfo);
+
+ root.addNode(7063, viewInfo);
+
+ root.addNode(7064, viewInfo);
+
+ root.addNode(7065, viewInfo);
+
+ root.addNode(7066, viewInfo);
+
+ root.addNode(7067, viewInfo);
+
+ root.addNode(7068, viewInfo);
+
+ root.addNode(7069, viewInfo);
+
+ root.addNode(7070, viewInfo);
+
+ root.addNode(7071, viewInfo);
+
+ root.addNode(7072, viewInfo);
+
+ root.addNode(7073, viewInfo);
+
+ viewInfo = new BaseViewInfo(3078, ViewInfo.Node, "PrimitiveType");
+
+ root.addNode(7050, viewInfo);
+
+ root.addNode(7051, viewInfo);
+
+ root.addNode(7052, viewInfo);
+
+ root.addNode(7053, viewInfo);
+
+ root.addNode(7054, viewInfo);
+
+ root.addNode(7055, viewInfo);
+
+ root.addNode(7056, viewInfo);
+
+ root.addNode(7057, viewInfo);
+
+ root.addNode(7058, viewInfo);
+
+ root.addNode(7059, viewInfo);
+
+ root.addNode(7060, viewInfo);
+
+ root.addNode(7063, viewInfo);
+
+ root.addNode(7064, viewInfo);
+
+ root.addNode(7065, viewInfo);
+
+ root.addNode(7066, viewInfo);
+
+ root.addNode(7067, viewInfo);
+
+ root.addNode(7068, viewInfo);
+
+ root.addNode(7069, viewInfo);
+
+ root.addNode(7070, viewInfo);
+
+ root.addNode(7071, viewInfo);
+
+ root.addNode(7072, viewInfo);
+
+ root.addNode(7073, viewInfo);
+
+ viewInfo = new BaseViewInfo(3079, ViewInfo.Node, "Enumeration");
+
+ root.addNode(7050, viewInfo);
+
+ root.addNode(7051, viewInfo);
+
+ root.addNode(7052, viewInfo);
+
+ root.addNode(7053, viewInfo);
+
+ root.addNode(7054, viewInfo);
+
+ root.addNode(7055, viewInfo);
+
+ root.addNode(7056, viewInfo);
+
+ root.addNode(7057, viewInfo);
+
+ root.addNode(7058, viewInfo);
+
+ root.addNode(7059, viewInfo);
+
+ root.addNode(7060, viewInfo);
+
+ root.addNode(7063, viewInfo);
+
+ root.addNode(7064, viewInfo);
+
+ root.addNode(7065, viewInfo);
+
+ root.addNode(7066, viewInfo);
+
+ root.addNode(7067, viewInfo);
+
+ root.addNode(7068, viewInfo);
+
+ root.addNode(7069, viewInfo);
+
+ root.addNode(7070, viewInfo);
+
+ root.addNode(7071, viewInfo);
+
+ root.addNode(7072, viewInfo);
+
+ root.addNode(7073, viewInfo);
+
+ viewInfo = new BaseViewInfo(3080, ViewInfo.Node, "DataType");
+
+ root.addNode(7050, viewInfo);
+
+ root.addNode(7051, viewInfo);
+
+ root.addNode(7052, viewInfo);
+
+ root.addNode(7053, viewInfo);
+
+ root.addNode(7054, viewInfo);
+
+ root.addNode(7055, viewInfo);
+
+ root.addNode(7056, viewInfo);
+
+ root.addNode(7057, viewInfo);
+
+ root.addNode(7058, viewInfo);
+
+ root.addNode(7059, viewInfo);
+
+ root.addNode(7060, viewInfo);
+
+ root.addNode(7063, viewInfo);
+
+ root.addNode(7064, viewInfo);
+
+ root.addNode(7065, viewInfo);
+
+ root.addNode(7066, viewInfo);
+
+ root.addNode(7067, viewInfo);
+
+ root.addNode(7068, viewInfo);
+
+ root.addNode(7069, viewInfo);
+
+ root.addNode(7070, viewInfo);
+
+ root.addNode(7071, viewInfo);
+
+ root.addNode(7072, viewInfo);
+
+ root.addNode(7073, viewInfo);
+
+ viewInfo = new BaseViewInfo(3091, ViewInfo.Node, "Actor");
+
+ root.addNode(7050, viewInfo);
+
+ root.addNode(7051, viewInfo);
+
+ root.addNode(7052, viewInfo);
+
+ root.addNode(7053, viewInfo);
+
+ root.addNode(7054, viewInfo);
+
+ root.addNode(7055, viewInfo);
+
+ root.addNode(7056, viewInfo);
+
+ root.addNode(7057, viewInfo);
+
+ root.addNode(7058, viewInfo);
+
+ root.addNode(7059, viewInfo);
+
+ root.addNode(7060, viewInfo);
+
+ root.addNode(7063, viewInfo);
+
+ root.addNode(7064, viewInfo);
+
+ root.addNode(7065, viewInfo);
+
+ root.addNode(7066, viewInfo);
+
+ root.addNode(7067, viewInfo);
+
+ root.addNode(7068, viewInfo);
+
+ root.addNode(7069, viewInfo);
+
+ root.addNode(7070, viewInfo);
+
+ root.addNode(7071, viewInfo);
+
+ root.addNode(7072, viewInfo);
+
+ root.addNode(7073, viewInfo);
+
+ viewInfo = new BaseViewInfo(3092, ViewInfo.Node, "DeploymentSpecification");
+
+ root.addNode(7050, viewInfo);
+
+ root.addNode(7051, viewInfo);
+
+ root.addNode(7052, viewInfo);
+
+ root.addNode(7053, viewInfo);
+
+ root.addNode(7054, viewInfo);
+
+ root.addNode(7055, viewInfo);
+
+ root.addNode(7056, viewInfo);
+
+ root.addNode(7057, viewInfo);
+
+ root.addNode(7058, viewInfo);
+
+ root.addNode(7059, viewInfo);
+
+ root.addNode(7060, viewInfo);
+
+ root.addNode(7063, viewInfo);
+
+ root.addNode(7064, viewInfo);
+
+ root.addNode(7065, viewInfo);
+
+ root.addNode(7066, viewInfo);
+
+ root.addNode(7067, viewInfo);
+
+ root.addNode(7068, viewInfo);
+
+ root.addNode(7069, viewInfo);
+
+ root.addNode(7070, viewInfo);
+
+ root.addNode(7071, viewInfo);
+
+ root.addNode(7072, viewInfo);
+
+ root.addNode(7073, viewInfo);
+
+ viewInfo = new BaseViewInfo(3093, ViewInfo.Node, "Artifact");
+
+ root.addNode(7050, viewInfo);
+
+ root.addNode(7051, viewInfo);
+
+ root.addNode(7052, viewInfo);
+
+ root.addNode(7053, viewInfo);
+
+ root.addNode(7054, viewInfo);
+
+ root.addNode(7055, viewInfo);
+
+ root.addNode(7056, viewInfo);
+
+ root.addNode(7057, viewInfo);
+
+ root.addNode(7058, viewInfo);
+
+ root.addNode(7059, viewInfo);
+
+ root.addNode(7060, viewInfo);
+
+ root.addNode(7063, viewInfo);
+
+ root.addNode(7064, viewInfo);
+
+ root.addNode(7065, viewInfo);
+
+ root.addNode(7066, viewInfo);
+
+ root.addNode(7067, viewInfo);
+
+ root.addNode(7068, viewInfo);
+
+ root.addNode(7069, viewInfo);
+
+ root.addNode(7070, viewInfo);
+
+ root.addNode(7071, viewInfo);
+
+ root.addNode(7072, viewInfo);
+
+ root.addNode(7073, viewInfo);
+
+ viewInfo = new BaseViewInfo(3094, ViewInfo.Node, "InformationItem");
+
+ root.addNode(7050, viewInfo);
+
+ root.addNode(7051, viewInfo);
+
+ root.addNode(7052, viewInfo);
+
+ root.addNode(7053, viewInfo);
+
+ root.addNode(7054, viewInfo);
+
+ root.addNode(7055, viewInfo);
+
+ root.addNode(7056, viewInfo);
+
+ root.addNode(7057, viewInfo);
+
+ root.addNode(7058, viewInfo);
+
+ root.addNode(7059, viewInfo);
+
+ root.addNode(7060, viewInfo);
+
+ root.addNode(7063, viewInfo);
+
+ root.addNode(7064, viewInfo);
+
+ root.addNode(7065, viewInfo);
+
+ root.addNode(7066, viewInfo);
+
+ root.addNode(7067, viewInfo);
+
+ root.addNode(7068, viewInfo);
+
+ root.addNode(7069, viewInfo);
+
+ root.addNode(7070, viewInfo);
+
+ root.addNode(7071, viewInfo);
+
+ root.addNode(7072, viewInfo);
+
+ root.addNode(7073, viewInfo);
+
+ viewInfo = new BaseViewInfo(3095, ViewInfo.Node, "Signal");
+
+ root.addNode(7050, viewInfo);
+
+ root.addNode(7051, viewInfo);
+
+ root.addNode(7052, viewInfo);
+
+ root.addNode(7053, viewInfo);
+
+ root.addNode(7054, viewInfo);
+
+ root.addNode(7055, viewInfo);
+
+ root.addNode(7056, viewInfo);
+
+ root.addNode(7057, viewInfo);
+
+ root.addNode(7058, viewInfo);
+
+ root.addNode(7059, viewInfo);
+
+ root.addNode(7060, viewInfo);
+
+ root.addNode(7063, viewInfo);
+
+ root.addNode(7064, viewInfo);
+
+ root.addNode(7065, viewInfo);
+
+ root.addNode(7066, viewInfo);
+
+ root.addNode(7067, viewInfo);
+
+ root.addNode(7068, viewInfo);
+
+ root.addNode(7069, viewInfo);
+
+ root.addNode(7070, viewInfo);
+
+ root.addNode(7071, viewInfo);
+
+ root.addNode(7072, viewInfo);
+
+ root.addNode(7073, viewInfo);
+
+ viewInfo = new BaseViewInfo(3096, ViewInfo.Node, "UseCase");
+
+ root.addNode(7050, viewInfo);
+
+ root.addNode(7051, viewInfo);
+
+ root.addNode(7052, viewInfo);
+
+ root.addNode(7053, viewInfo);
+
+ root.addNode(7054, viewInfo);
+
+ root.addNode(7055, viewInfo);
+
+ root.addNode(7056, viewInfo);
+
+ root.addNode(7057, viewInfo);
+
+ root.addNode(7058, viewInfo);
+
+ root.addNode(7059, viewInfo);
+
+ root.addNode(7060, viewInfo);
+
+ root.addNode(7063, viewInfo);
+
+ root.addNode(7064, viewInfo);
+
+ root.addNode(7065, viewInfo);
+
+ root.addNode(7066, viewInfo);
+
+ root.addNode(7067, viewInfo);
+
+ root.addNode(7068, viewInfo);
+
+ root.addNode(7069, viewInfo);
+
+ root.addNode(7070, viewInfo);
+
+ root.addNode(7071, viewInfo);
+
+ root.addNode(7072, viewInfo);
+
+ root.addNode(7073, viewInfo);
+
+ viewInfo = new BaseViewInfo(3097, ViewInfo.Node, "Comment");
+
+ root.addNode(7050, viewInfo);
+
+ root.addNode(7051, viewInfo);
+
+ root.addNode(7052, viewInfo);
+
+ root.addNode(7053, viewInfo);
+
+ root.addNode(7054, viewInfo);
+
+ root.addNode(7055, viewInfo);
+
+ root.addNode(7056, viewInfo);
+
+ root.addNode(7057, viewInfo);
+
+ root.addNode(7058, viewInfo);
+
+ root.addNode(7059, viewInfo);
+
+ root.addNode(7060, viewInfo);
+
+ root.addNode(7061, viewInfo);
+
+ root.addNode(7063, viewInfo);
+
+ root.addNode(7064, viewInfo);
+
+ root.addNode(7065, viewInfo);
+
+ root.addNode(7066, viewInfo);
+
+ root.addNode(7067, viewInfo);
+
+ root.addNode(7068, viewInfo);
+
+ root.addNode(7069, viewInfo);
+
+ root.addNode(7070, viewInfo);
+
+ root.addNode(7071, viewInfo);
+
+ root.addNode(7072, viewInfo);
+
+ root.addNode(7073, viewInfo);
+
+ root.addNode(7075, viewInfo);
+
+ root.addNode(7077, viewInfo);
+
+ viewInfo = new BaseViewInfo(3116, ViewInfo.Node, "DurationConstraint");
+
+ root.addNode(7050, viewInfo);
+
+ root.addNode(7051, viewInfo);
+
+ root.addNode(7052, viewInfo);
+
+ root.addNode(7053, viewInfo);
+
+ root.addNode(7054, viewInfo);
+
+ root.addNode(7055, viewInfo);
+
+ root.addNode(7056, viewInfo);
+
+ root.addNode(7057, viewInfo);
+
+ root.addNode(7058, viewInfo);
+
+ root.addNode(7059, viewInfo);
+
+ root.addNode(7060, viewInfo);
+
+ root.addNode(7061, viewInfo);
+
+ root.addNode(7063, viewInfo);
+
+ root.addNode(7064, viewInfo);
+
+ root.addNode(7065, viewInfo);
+
+ root.addNode(7066, viewInfo);
+
+ root.addNode(7067, viewInfo);
+
+ root.addNode(7068, viewInfo);
+
+ root.addNode(7069, viewInfo);
+
+ root.addNode(7070, viewInfo);
+
+ root.addNode(7071, viewInfo);
+
+ root.addNode(7072, viewInfo);
+
+ root.addNode(7073, viewInfo);
+
+ root.addNode(7075, viewInfo);
+
+ viewInfo = new BaseViewInfo(3117, ViewInfo.Node, "TimeConstraint");
+
+ root.addNode(7050, viewInfo);
+
+ root.addNode(7051, viewInfo);
+
+ root.addNode(7052, viewInfo);
+
+ root.addNode(7053, viewInfo);
+
+ root.addNode(7054, viewInfo);
+
+ root.addNode(7055, viewInfo);
+
+ root.addNode(7056, viewInfo);
+
+ root.addNode(7057, viewInfo);
+
+ root.addNode(7058, viewInfo);
+
+ root.addNode(7059, viewInfo);
+
+ root.addNode(7060, viewInfo);
+
+ root.addNode(7061, viewInfo);
+
+ root.addNode(7063, viewInfo);
+
+ root.addNode(7064, viewInfo);
+
+ root.addNode(7065, viewInfo);
+
+ root.addNode(7066, viewInfo);
+
+ root.addNode(7067, viewInfo);
+
+ root.addNode(7068, viewInfo);
+
+ root.addNode(7069, viewInfo);
+
+ root.addNode(7070, viewInfo);
+
+ root.addNode(7071, viewInfo);
+
+ root.addNode(7072, viewInfo);
+
+ root.addNode(7073, viewInfo);
+
+ root.addNode(7075, viewInfo);
+
+ viewInfo = new BaseViewInfo(3118, ViewInfo.Node, "IntervalConstraint");
+
+ root.addNode(7050, viewInfo);
+
+ root.addNode(7051, viewInfo);
+
+ root.addNode(7052, viewInfo);
+
+ root.addNode(7053, viewInfo);
+
+ root.addNode(7054, viewInfo);
+
+ root.addNode(7055, viewInfo);
+
+ root.addNode(7056, viewInfo);
+
+ root.addNode(7057, viewInfo);
+
+ root.addNode(7058, viewInfo);
+
+ root.addNode(7059, viewInfo);
+
+ root.addNode(7060, viewInfo);
+
+ root.addNode(7061, viewInfo);
+
+ root.addNode(7063, viewInfo);
+
+ root.addNode(7064, viewInfo);
+
+ root.addNode(7065, viewInfo);
+
+ root.addNode(7066, viewInfo);
+
+ root.addNode(7067, viewInfo);
+
+ root.addNode(7068, viewInfo);
+
+ root.addNode(7069, viewInfo);
+
+ root.addNode(7070, viewInfo);
+
+ root.addNode(7071, viewInfo);
+
+ root.addNode(7072, viewInfo);
+
+ root.addNode(7073, viewInfo);
+
+ root.addNode(7075, viewInfo);
+
+ viewInfo = new BaseViewInfo(3119, ViewInfo.Node, "InteractionConstraint");
+
+ root.addNode(7050, viewInfo);
+
+ root.addNode(7051, viewInfo);
+
+ root.addNode(7052, viewInfo);
+
+ root.addNode(7053, viewInfo);
+
+ root.addNode(7054, viewInfo);
+
+ root.addNode(7055, viewInfo);
+
+ root.addNode(7056, viewInfo);
+
+ root.addNode(7057, viewInfo);
+
+ root.addNode(7058, viewInfo);
+
+ root.addNode(7059, viewInfo);
+
+ root.addNode(7060, viewInfo);
+
+ root.addNode(7061, viewInfo);
+
+ root.addNode(7063, viewInfo);
+
+ root.addNode(7064, viewInfo);
+
+ root.addNode(7065, viewInfo);
+
+ root.addNode(7066, viewInfo);
+
+ root.addNode(7067, viewInfo);
+
+ root.addNode(7068, viewInfo);
+
+ root.addNode(7069, viewInfo);
+
+ root.addNode(7070, viewInfo);
+
+ root.addNode(7071, viewInfo);
+
+ root.addNode(7072, viewInfo);
+
+ root.addNode(7073, viewInfo);
+
+ root.addNode(7075, viewInfo);
+
+ viewInfo = new BaseViewInfo(3120, ViewInfo.Node, "Constraint");
+
+ root.addNode(7073, viewInfo);
+
+ root.addNode(7050, viewInfo);
+
+ root.addNode(7051, viewInfo);
+
+ root.addNode(7052, viewInfo);
+
+ root.addNode(7053, viewInfo);
+
+ root.addNode(7054, viewInfo);
+
+ root.addNode(7055, viewInfo);
+
+ root.addNode(7056, viewInfo);
+
+ root.addNode(7057, viewInfo);
+
+ root.addNode(7058, viewInfo);
+
+ root.addNode(7059, viewInfo);
+
+ root.addNode(7060, viewInfo);
+
+ root.addNode(7061, viewInfo);
+
+ root.addNode(7063, viewInfo);
+
+ root.addNode(7064, viewInfo);
+
+ root.addNode(7065, viewInfo);
+
+ root.addNode(7066, viewInfo);
+
+ root.addNode(7067, viewInfo);
+
+ root.addNode(7068, viewInfo);
+
+ root.addNode(7069, viewInfo);
+
+ root.addNode(7070, viewInfo);
+
+ root.addNode(7071, viewInfo);
+
+ root.addNode(7072, viewInfo);
+
+ root.addNode(7075, viewInfo);
+
+ viewInfo = new BaseViewInfo(3101, ViewInfo.Node, "Property");
+
+ root.addNode(7033, viewInfo);
+
+ root.addNode(7036, viewInfo);
+
+ viewInfo = new BaseViewInfo(3102, ViewInfo.Node, "Operation");
+
+ root.addNode(7034, viewInfo);
+
+ root.addNode(7037, viewInfo);
+
+ viewInfo = new BaseViewInfo(3100, ViewInfo.Node, "Reception");
+
+ viewInfo = new BaseViewInfo(3066, ViewInfo.Node, "EnumerationLiteral");
+
+ root.addNode(2067, viewInfo);
+
+ root.addNode(3079, viewInfo);
+
+ root.addNode(7049, viewInfo);
+
+ root.addNode(7048, viewInfo);
+
+ viewInfo = new BaseViewInfo(3103, ViewInfo.Node, "Activity");
+
+ viewInfo = new BaseViewInfo(3104, ViewInfo.Node, "Interaction");
+
+ viewInfo = new BaseViewInfo(3105, ViewInfo.Node, "ProtocolStateMachine");
+
+ viewInfo = new BaseViewInfo(3106, ViewInfo.Node, "StateMachine");
+
+ viewInfo = new BaseViewInfo(3107, ViewInfo.Node, "FunctionBehavior");
+
+ viewInfo = new BaseViewInfo(3108, ViewInfo.Node, "OpaqueBehavior");
+
+ viewInfo = new BaseViewInfo(3109, ViewInfo.Node, "Collaboration");
+
+ viewInfo = new BaseViewInfo(3110, ViewInfo.Node, "Interface");
+
+ viewInfo = new BaseViewInfo(3111, ViewInfo.Node, "Enumeration");
+
+ viewInfo = new BaseViewInfo(3112, ViewInfo.Node, "PrimitiveType");
+
+ viewInfo = new BaseViewInfo(3113, ViewInfo.Node, "DataType");
+
+ viewInfo = new BaseViewInfo(3114, ViewInfo.Node, "Class");
+
+ return root;
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/part/ValidateAction.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/part/ValidateAction.java
new file mode 100644
index 00000000000..17a603e7165
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/part/ValidateAction.java
@@ -0,0 +1,264 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.part;
+
+import java.lang.reflect.InvocationTargetException;
+import java.util.ArrayList;
+import java.util.HashSet;
+import java.util.Iterator;
+import java.util.List;
+import java.util.Set;
+
+import org.eclipse.core.resources.IFile;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.core.runtime.IStatus;
+import org.eclipse.core.runtime.NullProgressMonitor;
+import org.eclipse.emf.common.util.Diagnostic;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.ecore.util.Diagnostician;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.emf.transaction.util.TransactionUtil;
+import org.eclipse.emf.validation.model.EvaluationMode;
+import org.eclipse.emf.validation.model.IConstraintStatus;
+import org.eclipse.emf.validation.service.IBatchValidator;
+import org.eclipse.emf.validation.service.ModelValidationService;
+import org.eclipse.emf.workspace.util.WorkspaceSynchronizer;
+import org.eclipse.gef.EditPartViewer;
+import org.eclipse.gmf.runtime.diagram.ui.OffscreenEditPartFactory;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.DiagramEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.parts.IDiagramWorkbenchPart;
+import org.eclipse.gmf.runtime.emf.core.util.EMFCoreUtil;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.action.Action;
+import org.eclipse.jface.operation.IRunnableWithProgress;
+import org.eclipse.papyrus.diagram.composite.providers.UMLMarkerNavigationProvider;
+import org.eclipse.papyrus.diagram.composite.providers.UMLValidationProvider;
+import org.eclipse.ui.IEditorPart;
+import org.eclipse.ui.IWorkbenchPage;
+import org.eclipse.ui.IWorkbenchPart;
+import org.eclipse.ui.PlatformUI;
+import org.eclipse.ui.actions.WorkspaceModifyDelegatingOperation;
+
+/**
+ * @generated
+ */
+public class ValidateAction extends Action {
+
+ /**
+ * @generated
+ */
+ private IWorkbenchPage page;
+
+ /**
+ * @generated
+ */
+ public ValidateAction(IWorkbenchPage page) {
+ setText(Messages.ValidateActionMessage);
+ this.page = page;
+ }
+
+ /**
+ * @generated
+ */
+ public void run() {
+ IWorkbenchPart workbenchPart = page.getActivePart();
+ if(workbenchPart instanceof IDiagramWorkbenchPart) {
+ final IDiagramWorkbenchPart part = (IDiagramWorkbenchPart)workbenchPart;
+ try {
+ new WorkspaceModifyDelegatingOperation(new IRunnableWithProgress() {
+
+ public void run(IProgressMonitor monitor) throws InterruptedException, InvocationTargetException {
+ runValidation(part.getDiagramEditPart(), part.getDiagram());
+ }
+ }).run(new NullProgressMonitor());
+ } catch (Exception e) {
+ UMLDiagramEditorPlugin.getInstance().logError("Validation action failed", e); //$NON-NLS-1$
+ }
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public static void runValidation(View view) {
+ try {
+ if(UMLDiagramEditorUtil.openDiagram(view.eResource())) {
+ IEditorPart editorPart = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().getActiveEditor();
+ if(editorPart instanceof IDiagramWorkbenchPart) {
+ runValidation(((IDiagramWorkbenchPart)editorPart).getDiagramEditPart(), view);
+ } else {
+ runNonUIValidation(view);
+ }
+ }
+ } catch (Exception e) {
+ UMLDiagramEditorPlugin.getInstance().logError("Validation action failed", e); //$NON-NLS-1$
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public static void runNonUIValidation(View view) {
+ DiagramEditPart diagramEditPart = OffscreenEditPartFactory.getInstance().createDiagramEditPart(view.getDiagram());
+ runValidation(diagramEditPart, view);
+ }
+
+ /**
+ * @generated
+ */
+ public static void runValidation(DiagramEditPart diagramEditPart, View view) {
+ final DiagramEditPart fpart = diagramEditPart;
+ final View fview = view;
+ TransactionalEditingDomain txDomain = TransactionUtil.getEditingDomain(view);
+ UMLValidationProvider.runWithConstraints(txDomain, new Runnable() {
+
+ public void run() {
+ validate(fpart, fview);
+ }
+ });
+ }
+
+ /**
+ * @generated
+ */
+ private static Diagnostic runEMFValidator(View target) {
+ if(target.isSetElement() && target.getElement() != null) {
+ return new Diagnostician() {
+
+ public String getObjectLabel(EObject eObject) {
+ return EMFCoreUtil.getQualifiedName(eObject, true);
+ }
+ }.validate(target.getElement());
+ }
+ return Diagnostic.OK_INSTANCE;
+ }
+
+ /**
+ * @generated
+ */
+ private static void validate(DiagramEditPart diagramEditPart, View view) {
+ IFile target = view.eResource() != null ? WorkspaceSynchronizer.getFile(view.eResource()) : null;
+ if(target != null) {
+ UMLMarkerNavigationProvider.deleteMarkers(target);
+ }
+ Diagnostic diagnostic = runEMFValidator(view);
+ createMarkers(target, diagnostic, diagramEditPart);
+ IBatchValidator validator = (IBatchValidator)ModelValidationService.getInstance().newValidator(EvaluationMode.BATCH);
+ validator.setIncludeLiveConstraints(true);
+ if(view.isSetElement() && view.getElement() != null) {
+ IStatus status = validator.validate(view.getElement());
+ createMarkers(target, status, diagramEditPart);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private static void createMarkers(IFile target, IStatus validationStatus, DiagramEditPart diagramEditPart) {
+ if(validationStatus.isOK()) {
+ return;
+ }
+ final IStatus rootStatus = validationStatus;
+ List allStatuses = new ArrayList();
+ UMLDiagramEditorUtil.LazyElement2ViewMap element2ViewMap = new UMLDiagramEditorUtil.LazyElement2ViewMap(diagramEditPart.getDiagramView(), collectTargetElements(rootStatus, new HashSet<EObject>(), allStatuses));
+ for(Iterator it = allStatuses.iterator(); it.hasNext();) {
+ IConstraintStatus nextStatus = (IConstraintStatus)it.next();
+ View view = UMLDiagramEditorUtil.findView(diagramEditPart, nextStatus.getTarget(), element2ViewMap);
+ addMarker(diagramEditPart.getViewer(), target, view.eResource().getURIFragment(view), EMFCoreUtil.getQualifiedName(nextStatus.getTarget(), true), nextStatus.getMessage(), nextStatus.getSeverity());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private static void createMarkers(IFile target, Diagnostic emfValidationStatus, DiagramEditPart diagramEditPart) {
+ if(emfValidationStatus.getSeverity() == Diagnostic.OK) {
+ return;
+ }
+ final Diagnostic rootStatus = emfValidationStatus;
+ List allDiagnostics = new ArrayList();
+ UMLDiagramEditorUtil.LazyElement2ViewMap element2ViewMap = new UMLDiagramEditorUtil.LazyElement2ViewMap(diagramEditPart.getDiagramView(), collectTargetElements(rootStatus, new HashSet<EObject>(), allDiagnostics));
+ for(Iterator it = emfValidationStatus.getChildren().iterator(); it.hasNext();) {
+ Diagnostic nextDiagnostic = (Diagnostic)it.next();
+ List data = nextDiagnostic.getData();
+ if(data != null && !data.isEmpty() && data.get(0) instanceof EObject) {
+ EObject element = (EObject)data.get(0);
+ View view = UMLDiagramEditorUtil.findView(diagramEditPart, element, element2ViewMap);
+ addMarker(diagramEditPart.getViewer(), target, view.eResource().getURIFragment(view), EMFCoreUtil.getQualifiedName(element, true), nextDiagnostic.getMessage(), diagnosticToStatusSeverity(nextDiagnostic.getSeverity()));
+ }
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private static void addMarker(EditPartViewer viewer, IFile target, String elementId, String location, String message, int statusSeverity) {
+ if(target == null) {
+ return;
+ }
+ UMLMarkerNavigationProvider.addMarker(target, elementId, location, message, statusSeverity);
+ }
+
+ /**
+ * @generated
+ */
+ private static int diagnosticToStatusSeverity(int diagnosticSeverity) {
+ if(diagnosticSeverity == Diagnostic.OK) {
+ return IStatus.OK;
+ } else if(diagnosticSeverity == Diagnostic.INFO) {
+ return IStatus.INFO;
+ } else if(diagnosticSeverity == Diagnostic.WARNING) {
+ return IStatus.WARNING;
+ } else if(diagnosticSeverity == Diagnostic.ERROR || diagnosticSeverity == Diagnostic.CANCEL) {
+ return IStatus.ERROR;
+ }
+ return IStatus.INFO;
+ }
+
+ /**
+ * @generated
+ */
+ private static Set<EObject> collectTargetElements(IStatus status, Set<EObject> targetElementCollector, List allConstraintStatuses) {
+ if(status instanceof IConstraintStatus) {
+ targetElementCollector.add(((IConstraintStatus)status).getTarget());
+ allConstraintStatuses.add(status);
+ }
+ if(status.isMultiStatus()) {
+ IStatus[] children = status.getChildren();
+ for(int i = 0; i < children.length; i++) {
+ collectTargetElements(children[i], targetElementCollector, allConstraintStatuses);
+ }
+ }
+ return targetElementCollector;
+ }
+
+ /**
+ * @generated
+ */
+ private static Set<EObject> collectTargetElements(Diagnostic diagnostic, Set<EObject> targetElementCollector, List allDiagnostics) {
+ List data = diagnostic.getData();
+ EObject target = null;
+ if(data != null && !data.isEmpty() && data.get(0) instanceof EObject) {
+ target = (EObject)data.get(0);
+ targetElementCollector.add(target);
+ allDiagnostics.add(diagnostic);
+ }
+ if(diagnostic.getChildren() != null && !diagnostic.getChildren().isEmpty()) {
+ for(Iterator it = diagnostic.getChildren().iterator(); it.hasNext();) {
+ collectTargetElements((Diagnostic)it.next(), targetElementCollector, allDiagnostics);
+ }
+ }
+ return targetElementCollector;
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/AbstractionPreferencePage.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/AbstractionPreferencePage.java
new file mode 100644
index 00000000000..7de276d7dbd
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/AbstractionPreferencePage.java
@@ -0,0 +1,90 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.preferences;
+
+import java.util.Map;
+import java.util.TreeMap;
+
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.papyrus.diagram.common.util.StringComparator;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CompositeStructureDiagramEditPart;
+import org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorPlugin;
+import org.eclipse.papyrus.preferences.pages.AbstractPapyrusLinkPreferencePage;
+import org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper;
+
+/**
+ * @generated
+ */
+public class AbstractionPreferencePage extends AbstractPapyrusLinkPreferencePage {
+
+ /**
+ * @generated
+ */
+ public AbstractionPreferencePage() {
+ super();
+ setPreferenceKey(CompositeStructureDiagramEditPart.MODEL_ID + "_Abstraction");
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected String getBundleId() {
+ return UMLDiagramEditorPlugin.ID;
+ }
+
+ /**
+ * @generated
+ */
+ public static void initDefaults(IPreferenceStore store) {
+
+ String key = CompositeStructureDiagramEditPart.MODEL_ID + "_Abstraction";
+ Map<String, Boolean> map = getStaticLabelVisibilityPreferences();
+ for(String role : map.keySet()) {
+ String preferenceName = PreferenceConstantHelper.getLabelElementConstant(key, role, PreferenceConstantHelper.LABEL_VISIBILITY);
+ store.setDefault(preferenceName, map.get(role));
+ }
+
+ }
+
+ /**
+ * @generated
+ */
+ private static TreeMap<String, String> getStaticLabelRole() {
+ TreeMap<String, String> map = new TreeMap<String, String>(new StringComparator());
+ map.put("Name", "");//$NON-NLS-1$ //$NON-NLS-2$
+ map.put("Stereotype", "");//$NON-NLS-1$ //$NON-NLS-2$
+ return map;
+ }
+
+ /**
+ * @generated
+ */
+ private static TreeMap<String, Boolean> getStaticLabelVisibilityPreferences() {
+ TreeMap<String, Boolean> map = new TreeMap<String, Boolean>();
+ map.put("Name", Boolean.TRUE);
+
+ map.put("Stereotype", Boolean.TRUE);
+
+ return map;
+ }
+
+ /**
+ * @generated
+ */
+ protected TreeMap<String, String> getLabelRole() {
+ return getStaticLabelRole();
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/ActivityPreferencePage.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/ActivityPreferencePage.java
new file mode 100644
index 00000000000..a5a273829b2
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/ActivityPreferencePage.java
@@ -0,0 +1,120 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.preferences;
+
+import java.util.Map;
+import java.util.TreeMap;
+
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CompositeStructureDiagramEditPart;
+import org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorPlugin;
+import org.eclipse.papyrus.preferences.pages.AbstractPapyrusNodePreferencePage;
+import org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper;
+
+/**
+ * @generated
+ */
+public class ActivityPreferencePage extends AbstractPapyrusNodePreferencePage {
+
+ /**
+ * @generated
+ */
+ public static final String compartments[] = { "structure" };
+
+ /**
+ * @generated
+ */
+ public ActivityPreferencePage() {
+ super();
+ setPreferenceKey(CompositeStructureDiagramEditPart.MODEL_ID + "_Activity");
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected String getBundleId() {
+ return UMLDiagramEditorPlugin.ID;
+ }
+
+ /**
+ * @generated
+ */
+ public static void initDefaults(IPreferenceStore store) {
+
+ String key = CompositeStructureDiagramEditPart.MODEL_ID + "_Activity";
+ store.setDefault(PreferenceConstantHelper.getElementConstant(key, PreferenceConstantHelper.WIDTH), 40);
+ store.setDefault(PreferenceConstantHelper.getElementConstant(key, PreferenceConstantHelper.HEIGHT), 40);
+
+ Map<String, Boolean> map = getStaticCompartmentVisibilityPreferences();
+ for(String name : map.keySet()) {
+ String preferenceName = PreferenceConstantHelper.getLabelElementConstant(key, name, PreferenceConstantHelper.COMPARTMENT_VISIBILITY);
+ store.setDefault(preferenceName, map.get(name));
+ }
+
+ map = getStaticCompartmentTitleVisibilityPreferences();
+ for(String name : map.keySet()) {
+ String preferenceName = PreferenceConstantHelper.getLabelElementConstant(key, name, PreferenceConstantHelper.COMPARTMENT_NAME_VISIBILITY);
+ store.setDefault(preferenceName, map.get(name));
+ }
+
+ //org.eclipse.jface.preference.PreferenceConverter.setDefault(store, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_FILL), new org.eclipse.swt.graphics.RGB(255, 255, 255));
+ //org.eclipse.jface.preference.PreferenceConverter.setDefault(store, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_LINE), new org.eclipse.swt.graphics.RGB(0, 0, 0));
+
+ // Set the default for the gradient
+ //store.setDefault(org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.GRADIENT_POLICY),false);
+ //org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter gradientPreferenceConverter = new org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter(
+ // new org.eclipse.swt.graphics.RGB(255, 255, 255),
+ // new org.eclipse.swt.graphics.RGB(0, 0, 0), 0, 0);
+ //store.setDefault(org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_GRADIENT), gradientPreferenceConverter.getPreferenceValue());
+
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void initializeCompartmentsList() {
+ for(String name : compartments) {
+ this.compartmentsList.add(name);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private static TreeMap<String, Boolean> getStaticCompartmentVisibilityPreferences() {
+ TreeMap<String, Boolean> map = new TreeMap<String, Boolean>();
+ map.put("structure", Boolean.TRUE);
+ return map;
+ }
+
+ /**
+ * @generated
+ */
+ private static TreeMap<String, Boolean> getStaticCompartmentTitleVisibilityPreferences() {
+ TreeMap<String, Boolean> map = new TreeMap<String, Boolean>();
+
+ map.put("structure", Boolean.TRUE);
+ return map;
+ }
+
+ /**
+ * @generated
+ */
+ protected TreeMap<String, Boolean> getCompartmentTitleVisibilityPreferences() {
+ return getStaticCompartmentTitleVisibilityPreferences();
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/ActorPreferencePage.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/ActorPreferencePage.java
new file mode 100644
index 00000000000..84e1da4b98b
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/ActorPreferencePage.java
@@ -0,0 +1,64 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.preferences;
+
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CompositeStructureDiagramEditPart;
+import org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorPlugin;
+import org.eclipse.papyrus.preferences.pages.AbstractPapyrusNodePreferencePage;
+import org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper;
+
+/**
+ * @generated
+ */
+public class ActorPreferencePage extends AbstractPapyrusNodePreferencePage {
+
+ /**
+ * @generated
+ */
+ public ActorPreferencePage() {
+ super();
+ setPreferenceKey(CompositeStructureDiagramEditPart.MODEL_ID + "_Actor");
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected String getBundleId() {
+ return UMLDiagramEditorPlugin.ID;
+ }
+
+ /**
+ * @generated
+ */
+ public static void initDefaults(IPreferenceStore store) {
+
+ String key = CompositeStructureDiagramEditPart.MODEL_ID + "_Actor";
+ store.setDefault(PreferenceConstantHelper.getElementConstant(key, PreferenceConstantHelper.WIDTH), 40);
+ store.setDefault(PreferenceConstantHelper.getElementConstant(key, PreferenceConstantHelper.HEIGHT), 40);
+
+ //org.eclipse.jface.preference.PreferenceConverter.setDefault(store, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_FILL), new org.eclipse.swt.graphics.RGB(255, 255, 255));
+ //org.eclipse.jface.preference.PreferenceConverter.setDefault(store, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_LINE), new org.eclipse.swt.graphics.RGB(0, 0, 0));
+
+ // Set the default for the gradient
+ //store.setDefault(org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.GRADIENT_POLICY),false);
+ //org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter gradientPreferenceConverter = new org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter(
+ // new org.eclipse.swt.graphics.RGB(255, 255, 255),
+ // new org.eclipse.swt.graphics.RGB(0, 0, 0), 0, 0);
+ //store.setDefault(org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_GRADIENT), gradientPreferenceConverter.getPreferenceValue());
+
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/AnyReceiveEventPreferencePage.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/AnyReceiveEventPreferencePage.java
new file mode 100644
index 00000000000..47d5feae556
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/AnyReceiveEventPreferencePage.java
@@ -0,0 +1,64 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.preferences;
+
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CompositeStructureDiagramEditPart;
+import org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorPlugin;
+import org.eclipse.papyrus.preferences.pages.AbstractPapyrusNodePreferencePage;
+import org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper;
+
+/**
+ * @generated
+ */
+public class AnyReceiveEventPreferencePage extends AbstractPapyrusNodePreferencePage {
+
+ /**
+ * @generated
+ */
+ public AnyReceiveEventPreferencePage() {
+ super();
+ setPreferenceKey(CompositeStructureDiagramEditPart.MODEL_ID + "_AnyReceiveEvent");
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected String getBundleId() {
+ return UMLDiagramEditorPlugin.ID;
+ }
+
+ /**
+ * @generated
+ */
+ public static void initDefaults(IPreferenceStore store) {
+
+ String key = CompositeStructureDiagramEditPart.MODEL_ID + "_AnyReceiveEvent";
+ store.setDefault(PreferenceConstantHelper.getElementConstant(key, PreferenceConstantHelper.WIDTH), 40);
+ store.setDefault(PreferenceConstantHelper.getElementConstant(key, PreferenceConstantHelper.HEIGHT), 40);
+
+ //org.eclipse.jface.preference.PreferenceConverter.setDefault(store, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_FILL), new org.eclipse.swt.graphics.RGB(255, 255, 255));
+ //org.eclipse.jface.preference.PreferenceConverter.setDefault(store, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_LINE), new org.eclipse.swt.graphics.RGB(0, 0, 0));
+
+ // Set the default for the gradient
+ //store.setDefault(org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.GRADIENT_POLICY),false);
+ //org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter gradientPreferenceConverter = new org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter(
+ // new org.eclipse.swt.graphics.RGB(255, 255, 255),
+ // new org.eclipse.swt.graphics.RGB(0, 0, 0), 0, 0);
+ //store.setDefault(org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_GRADIENT), gradientPreferenceConverter.getPreferenceValue());
+
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/ArtifactPreferencePage.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/ArtifactPreferencePage.java
new file mode 100644
index 00000000000..d6a062dbaef
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/ArtifactPreferencePage.java
@@ -0,0 +1,64 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.preferences;
+
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CompositeStructureDiagramEditPart;
+import org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorPlugin;
+import org.eclipse.papyrus.preferences.pages.AbstractPapyrusNodePreferencePage;
+import org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper;
+
+/**
+ * @generated
+ */
+public class ArtifactPreferencePage extends AbstractPapyrusNodePreferencePage {
+
+ /**
+ * @generated
+ */
+ public ArtifactPreferencePage() {
+ super();
+ setPreferenceKey(CompositeStructureDiagramEditPart.MODEL_ID + "_Artifact");
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected String getBundleId() {
+ return UMLDiagramEditorPlugin.ID;
+ }
+
+ /**
+ * @generated
+ */
+ public static void initDefaults(IPreferenceStore store) {
+
+ String key = CompositeStructureDiagramEditPart.MODEL_ID + "_Artifact";
+ store.setDefault(PreferenceConstantHelper.getElementConstant(key, PreferenceConstantHelper.WIDTH), 40);
+ store.setDefault(PreferenceConstantHelper.getElementConstant(key, PreferenceConstantHelper.HEIGHT), 40);
+
+ //org.eclipse.jface.preference.PreferenceConverter.setDefault(store, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_FILL), new org.eclipse.swt.graphics.RGB(255, 255, 255));
+ //org.eclipse.jface.preference.PreferenceConverter.setDefault(store, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_LINE), new org.eclipse.swt.graphics.RGB(0, 0, 0));
+
+ // Set the default for the gradient
+ //store.setDefault(org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.GRADIENT_POLICY),false);
+ //org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter gradientPreferenceConverter = new org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter(
+ // new org.eclipse.swt.graphics.RGB(255, 255, 255),
+ // new org.eclipse.swt.graphics.RGB(0, 0, 0), 0, 0);
+ //store.setDefault(org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_GRADIENT), gradientPreferenceConverter.getPreferenceValue());
+
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/CallEventPreferencePage.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/CallEventPreferencePage.java
new file mode 100644
index 00000000000..218f29963ec
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/CallEventPreferencePage.java
@@ -0,0 +1,64 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.preferences;
+
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CompositeStructureDiagramEditPart;
+import org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorPlugin;
+import org.eclipse.papyrus.preferences.pages.AbstractPapyrusNodePreferencePage;
+import org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper;
+
+/**
+ * @generated
+ */
+public class CallEventPreferencePage extends AbstractPapyrusNodePreferencePage {
+
+ /**
+ * @generated
+ */
+ public CallEventPreferencePage() {
+ super();
+ setPreferenceKey(CompositeStructureDiagramEditPart.MODEL_ID + "_CallEvent");
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected String getBundleId() {
+ return UMLDiagramEditorPlugin.ID;
+ }
+
+ /**
+ * @generated
+ */
+ public static void initDefaults(IPreferenceStore store) {
+
+ String key = CompositeStructureDiagramEditPart.MODEL_ID + "_CallEvent";
+ store.setDefault(PreferenceConstantHelper.getElementConstant(key, PreferenceConstantHelper.WIDTH), 40);
+ store.setDefault(PreferenceConstantHelper.getElementConstant(key, PreferenceConstantHelper.HEIGHT), 40);
+
+ //org.eclipse.jface.preference.PreferenceConverter.setDefault(store, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_FILL), new org.eclipse.swt.graphics.RGB(255, 255, 255));
+ //org.eclipse.jface.preference.PreferenceConverter.setDefault(store, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_LINE), new org.eclipse.swt.graphics.RGB(0, 0, 0));
+
+ // Set the default for the gradient
+ //store.setDefault(org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.GRADIENT_POLICY),false);
+ //org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter gradientPreferenceConverter = new org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter(
+ // new org.eclipse.swt.graphics.RGB(255, 255, 255),
+ // new org.eclipse.swt.graphics.RGB(0, 0, 0), 0, 0);
+ //store.setDefault(org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_GRADIENT), gradientPreferenceConverter.getPreferenceValue());
+
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/ChangeEventPreferencePage.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/ChangeEventPreferencePage.java
new file mode 100644
index 00000000000..1051add8eb4
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/ChangeEventPreferencePage.java
@@ -0,0 +1,64 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.preferences;
+
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CompositeStructureDiagramEditPart;
+import org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorPlugin;
+import org.eclipse.papyrus.preferences.pages.AbstractPapyrusNodePreferencePage;
+import org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper;
+
+/**
+ * @generated
+ */
+public class ChangeEventPreferencePage extends AbstractPapyrusNodePreferencePage {
+
+ /**
+ * @generated
+ */
+ public ChangeEventPreferencePage() {
+ super();
+ setPreferenceKey(CompositeStructureDiagramEditPart.MODEL_ID + "_ChangeEvent");
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected String getBundleId() {
+ return UMLDiagramEditorPlugin.ID;
+ }
+
+ /**
+ * @generated
+ */
+ public static void initDefaults(IPreferenceStore store) {
+
+ String key = CompositeStructureDiagramEditPart.MODEL_ID + "_ChangeEvent";
+ store.setDefault(PreferenceConstantHelper.getElementConstant(key, PreferenceConstantHelper.WIDTH), 40);
+ store.setDefault(PreferenceConstantHelper.getElementConstant(key, PreferenceConstantHelper.HEIGHT), 40);
+
+ //org.eclipse.jface.preference.PreferenceConverter.setDefault(store, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_FILL), new org.eclipse.swt.graphics.RGB(255, 255, 255));
+ //org.eclipse.jface.preference.PreferenceConverter.setDefault(store, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_LINE), new org.eclipse.swt.graphics.RGB(0, 0, 0));
+
+ // Set the default for the gradient
+ //store.setDefault(org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.GRADIENT_POLICY),false);
+ //org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter gradientPreferenceConverter = new org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter(
+ // new org.eclipse.swt.graphics.RGB(255, 255, 255),
+ // new org.eclipse.swt.graphics.RGB(0, 0, 0), 0, 0);
+ //store.setDefault(org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_GRADIENT), gradientPreferenceConverter.getPreferenceValue());
+
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/ClassPreferencePage.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/ClassPreferencePage.java
new file mode 100644
index 00000000000..5ec2776404c
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/ClassPreferencePage.java
@@ -0,0 +1,120 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.preferences;
+
+import java.util.Map;
+import java.util.TreeMap;
+
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CompositeStructureDiagramEditPart;
+import org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorPlugin;
+import org.eclipse.papyrus.preferences.pages.AbstractPapyrusNodePreferencePage;
+import org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper;
+
+/**
+ * @generated
+ */
+public class ClassPreferencePage extends AbstractPapyrusNodePreferencePage {
+
+ /**
+ * @generated
+ */
+ public static final String compartments[] = { "structure" };
+
+ /**
+ * @generated
+ */
+ public ClassPreferencePage() {
+ super();
+ setPreferenceKey(CompositeStructureDiagramEditPart.MODEL_ID + "_Class");
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected String getBundleId() {
+ return UMLDiagramEditorPlugin.ID;
+ }
+
+ /**
+ * @generated
+ */
+ public static void initDefaults(IPreferenceStore store) {
+
+ String key = CompositeStructureDiagramEditPart.MODEL_ID + "_Class";
+ store.setDefault(PreferenceConstantHelper.getElementConstant(key, PreferenceConstantHelper.WIDTH), 40);
+ store.setDefault(PreferenceConstantHelper.getElementConstant(key, PreferenceConstantHelper.HEIGHT), 40);
+
+ Map<String, Boolean> map = getStaticCompartmentVisibilityPreferences();
+ for(String name : map.keySet()) {
+ String preferenceName = PreferenceConstantHelper.getLabelElementConstant(key, name, PreferenceConstantHelper.COMPARTMENT_VISIBILITY);
+ store.setDefault(preferenceName, map.get(name));
+ }
+
+ map = getStaticCompartmentTitleVisibilityPreferences();
+ for(String name : map.keySet()) {
+ String preferenceName = PreferenceConstantHelper.getLabelElementConstant(key, name, PreferenceConstantHelper.COMPARTMENT_NAME_VISIBILITY);
+ store.setDefault(preferenceName, map.get(name));
+ }
+
+ //org.eclipse.jface.preference.PreferenceConverter.setDefault(store, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_FILL), new org.eclipse.swt.graphics.RGB(255, 255, 255));
+ //org.eclipse.jface.preference.PreferenceConverter.setDefault(store, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_LINE), new org.eclipse.swt.graphics.RGB(0, 0, 0));
+
+ // Set the default for the gradient
+ //store.setDefault(org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.GRADIENT_POLICY),false);
+ //org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter gradientPreferenceConverter = new org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter(
+ // new org.eclipse.swt.graphics.RGB(255, 255, 255),
+ // new org.eclipse.swt.graphics.RGB(0, 0, 0), 0, 0);
+ //store.setDefault(org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_GRADIENT), gradientPreferenceConverter.getPreferenceValue());
+
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void initializeCompartmentsList() {
+ for(String name : compartments) {
+ this.compartmentsList.add(name);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private static TreeMap<String, Boolean> getStaticCompartmentVisibilityPreferences() {
+ TreeMap<String, Boolean> map = new TreeMap<String, Boolean>();
+ map.put("structure", Boolean.TRUE);
+ return map;
+ }
+
+ /**
+ * @generated
+ */
+ private static TreeMap<String, Boolean> getStaticCompartmentTitleVisibilityPreferences() {
+ TreeMap<String, Boolean> map = new TreeMap<String, Boolean>();
+
+ map.put("structure", Boolean.TRUE);
+ return map;
+ }
+
+ /**
+ * @generated
+ */
+ protected TreeMap<String, Boolean> getCompartmentTitleVisibilityPreferences() {
+ return getStaticCompartmentTitleVisibilityPreferences();
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/CollaborationPreferencePage.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/CollaborationPreferencePage.java
new file mode 100644
index 00000000000..1f9aa6727f1
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/CollaborationPreferencePage.java
@@ -0,0 +1,120 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.preferences;
+
+import java.util.Map;
+import java.util.TreeMap;
+
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CompositeStructureDiagramEditPart;
+import org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorPlugin;
+import org.eclipse.papyrus.preferences.pages.AbstractPapyrusNodePreferencePage;
+import org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper;
+
+/**
+ * @generated
+ */
+public class CollaborationPreferencePage extends AbstractPapyrusNodePreferencePage {
+
+ /**
+ * @generated
+ */
+ public static final String compartments[] = { "structure" };
+
+ /**
+ * @generated
+ */
+ public CollaborationPreferencePage() {
+ super();
+ setPreferenceKey(CompositeStructureDiagramEditPart.MODEL_ID + "_Collaboration");
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected String getBundleId() {
+ return UMLDiagramEditorPlugin.ID;
+ }
+
+ /**
+ * @generated
+ */
+ public static void initDefaults(IPreferenceStore store) {
+
+ String key = CompositeStructureDiagramEditPart.MODEL_ID + "_Collaboration";
+ store.setDefault(PreferenceConstantHelper.getElementConstant(key, PreferenceConstantHelper.WIDTH), 40);
+ store.setDefault(PreferenceConstantHelper.getElementConstant(key, PreferenceConstantHelper.HEIGHT), 40);
+
+ Map<String, Boolean> map = getStaticCompartmentVisibilityPreferences();
+ for(String name : map.keySet()) {
+ String preferenceName = PreferenceConstantHelper.getLabelElementConstant(key, name, PreferenceConstantHelper.COMPARTMENT_VISIBILITY);
+ store.setDefault(preferenceName, map.get(name));
+ }
+
+ map = getStaticCompartmentTitleVisibilityPreferences();
+ for(String name : map.keySet()) {
+ String preferenceName = PreferenceConstantHelper.getLabelElementConstant(key, name, PreferenceConstantHelper.COMPARTMENT_NAME_VISIBILITY);
+ store.setDefault(preferenceName, map.get(name));
+ }
+
+ //org.eclipse.jface.preference.PreferenceConverter.setDefault(store, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_FILL), new org.eclipse.swt.graphics.RGB(255, 255, 255));
+ //org.eclipse.jface.preference.PreferenceConverter.setDefault(store, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_LINE), new org.eclipse.swt.graphics.RGB(0, 0, 0));
+
+ // Set the default for the gradient
+ //store.setDefault(org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.GRADIENT_POLICY),false);
+ //org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter gradientPreferenceConverter = new org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter(
+ // new org.eclipse.swt.graphics.RGB(255, 255, 255),
+ // new org.eclipse.swt.graphics.RGB(0, 0, 0), 0, 0);
+ //store.setDefault(org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_GRADIENT), gradientPreferenceConverter.getPreferenceValue());
+
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void initializeCompartmentsList() {
+ for(String name : compartments) {
+ this.compartmentsList.add(name);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private static TreeMap<String, Boolean> getStaticCompartmentVisibilityPreferences() {
+ TreeMap<String, Boolean> map = new TreeMap<String, Boolean>();
+ map.put("structure", Boolean.TRUE);
+ return map;
+ }
+
+ /**
+ * @generated
+ */
+ private static TreeMap<String, Boolean> getStaticCompartmentTitleVisibilityPreferences() {
+ TreeMap<String, Boolean> map = new TreeMap<String, Boolean>();
+
+ map.put("structure", Boolean.TRUE);
+ return map;
+ }
+
+ /**
+ * @generated
+ */
+ protected TreeMap<String, Boolean> getCompartmentTitleVisibilityPreferences() {
+ return getStaticCompartmentTitleVisibilityPreferences();
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/CollaborationRolePreferencePage.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/CollaborationRolePreferencePage.java
new file mode 100644
index 00000000000..6941f804ac0
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/CollaborationRolePreferencePage.java
@@ -0,0 +1,64 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.preferences;
+
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CompositeStructureDiagramEditPart;
+import org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorPlugin;
+import org.eclipse.papyrus.preferences.pages.AbstractPapyrusNodePreferencePage;
+import org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper;
+
+/**
+ * @generated
+ */
+public class CollaborationRolePreferencePage extends AbstractPapyrusNodePreferencePage {
+
+ /**
+ * @generated
+ */
+ public CollaborationRolePreferencePage() {
+ super();
+ setPreferenceKey(CompositeStructureDiagramEditPart.MODEL_ID + "_CollaborationRole");
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected String getBundleId() {
+ return UMLDiagramEditorPlugin.ID;
+ }
+
+ /**
+ * @generated
+ */
+ public static void initDefaults(IPreferenceStore store) {
+
+ String key = CompositeStructureDiagramEditPart.MODEL_ID + "_CollaborationRole";
+ store.setDefault(PreferenceConstantHelper.getElementConstant(key, PreferenceConstantHelper.WIDTH), 40);
+ store.setDefault(PreferenceConstantHelper.getElementConstant(key, PreferenceConstantHelper.HEIGHT), 40);
+
+ //org.eclipse.jface.preference.PreferenceConverter.setDefault(store, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_FILL), new org.eclipse.swt.graphics.RGB(255, 255, 255));
+ //org.eclipse.jface.preference.PreferenceConverter.setDefault(store, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_LINE), new org.eclipse.swt.graphics.RGB(0, 0, 0));
+
+ // Set the default for the gradient
+ //store.setDefault(org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.GRADIENT_POLICY),false);
+ //org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter gradientPreferenceConverter = new org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter(
+ // new org.eclipse.swt.graphics.RGB(255, 255, 255),
+ // new org.eclipse.swt.graphics.RGB(0, 0, 0), 0, 0);
+ //store.setDefault(org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_GRADIENT), gradientPreferenceConverter.getPreferenceValue());
+
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/CollaborationUsePreferencePage.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/CollaborationUsePreferencePage.java
new file mode 100644
index 00000000000..237583b7c7b
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/CollaborationUsePreferencePage.java
@@ -0,0 +1,64 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.preferences;
+
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CompositeStructureDiagramEditPart;
+import org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorPlugin;
+import org.eclipse.papyrus.preferences.pages.AbstractPapyrusNodePreferencePage;
+import org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper;
+
+/**
+ * @generated
+ */
+public class CollaborationUsePreferencePage extends AbstractPapyrusNodePreferencePage {
+
+ /**
+ * @generated
+ */
+ public CollaborationUsePreferencePage() {
+ super();
+ setPreferenceKey(CompositeStructureDiagramEditPart.MODEL_ID + "_CollaborationUse");
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected String getBundleId() {
+ return UMLDiagramEditorPlugin.ID;
+ }
+
+ /**
+ * @generated
+ */
+ public static void initDefaults(IPreferenceStore store) {
+
+ String key = CompositeStructureDiagramEditPart.MODEL_ID + "_CollaborationUse";
+ store.setDefault(PreferenceConstantHelper.getElementConstant(key, PreferenceConstantHelper.WIDTH), 40);
+ store.setDefault(PreferenceConstantHelper.getElementConstant(key, PreferenceConstantHelper.HEIGHT), 40);
+
+ //org.eclipse.jface.preference.PreferenceConverter.setDefault(store, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_FILL), new org.eclipse.swt.graphics.RGB(255, 255, 255));
+ //org.eclipse.jface.preference.PreferenceConverter.setDefault(store, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_LINE), new org.eclipse.swt.graphics.RGB(0, 0, 0));
+
+ // Set the default for the gradient
+ //store.setDefault(org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.GRADIENT_POLICY),false);
+ //org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter gradientPreferenceConverter = new org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter(
+ // new org.eclipse.swt.graphics.RGB(255, 255, 255),
+ // new org.eclipse.swt.graphics.RGB(0, 0, 0), 0, 0);
+ //store.setDefault(org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_GRADIENT), gradientPreferenceConverter.getPreferenceValue());
+
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/CommentAnnotatedElementPreferencePage.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/CommentAnnotatedElementPreferencePage.java
new file mode 100644
index 00000000000..8c9c582d211
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/CommentAnnotatedElementPreferencePage.java
@@ -0,0 +1,49 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.preferences;
+
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CompositeStructureDiagramEditPart;
+import org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorPlugin;
+import org.eclipse.papyrus.preferences.pages.AbstractPapyrusLinkPreferencePage;
+
+/**
+ * @generated
+ */
+public class CommentAnnotatedElementPreferencePage extends AbstractPapyrusLinkPreferencePage {
+
+ /**
+ * @generated
+ */
+ public CommentAnnotatedElementPreferencePage() {
+ super();
+ setPreferenceKey(CompositeStructureDiagramEditPart.MODEL_ID + "_CommentAnnotatedElement");
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected String getBundleId() {
+ return UMLDiagramEditorPlugin.ID;
+ }
+
+ /**
+ * @generated
+ */
+ public static void initDefaults(IPreferenceStore store) {
+
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/CommentPreferencePage.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/CommentPreferencePage.java
new file mode 100644
index 00000000000..6477cfd5309
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/CommentPreferencePage.java
@@ -0,0 +1,64 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.preferences;
+
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CompositeStructureDiagramEditPart;
+import org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorPlugin;
+import org.eclipse.papyrus.preferences.pages.AbstractPapyrusNodePreferencePage;
+import org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper;
+
+/**
+ * @generated
+ */
+public class CommentPreferencePage extends AbstractPapyrusNodePreferencePage {
+
+ /**
+ * @generated
+ */
+ public CommentPreferencePage() {
+ super();
+ setPreferenceKey(CompositeStructureDiagramEditPart.MODEL_ID + "_Comment");
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected String getBundleId() {
+ return UMLDiagramEditorPlugin.ID;
+ }
+
+ /**
+ * @generated
+ */
+ public static void initDefaults(IPreferenceStore store) {
+
+ String key = CompositeStructureDiagramEditPart.MODEL_ID + "_Comment";
+ store.setDefault(PreferenceConstantHelper.getElementConstant(key, PreferenceConstantHelper.WIDTH), 40);
+ store.setDefault(PreferenceConstantHelper.getElementConstant(key, PreferenceConstantHelper.HEIGHT), 40);
+
+ //org.eclipse.jface.preference.PreferenceConverter.setDefault(store, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_FILL), new org.eclipse.swt.graphics.RGB(255, 255, 255));
+ //org.eclipse.jface.preference.PreferenceConverter.setDefault(store, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_LINE), new org.eclipse.swt.graphics.RGB(0, 0, 0));
+
+ // Set the default for the gradient
+ //store.setDefault(org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.GRADIENT_POLICY),false);
+ //org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter gradientPreferenceConverter = new org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter(
+ // new org.eclipse.swt.graphics.RGB(255, 255, 255),
+ // new org.eclipse.swt.graphics.RGB(0, 0, 0), 0, 0);
+ //store.setDefault(org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_GRADIENT), gradientPreferenceConverter.getPreferenceValue());
+
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/ComponentPreferencePage.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/ComponentPreferencePage.java
new file mode 100644
index 00000000000..74d4b9b381d
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/ComponentPreferencePage.java
@@ -0,0 +1,120 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.preferences;
+
+import java.util.Map;
+import java.util.TreeMap;
+
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CompositeStructureDiagramEditPart;
+import org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorPlugin;
+import org.eclipse.papyrus.preferences.pages.AbstractPapyrusNodePreferencePage;
+import org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper;
+
+/**
+ * @generated
+ */
+public class ComponentPreferencePage extends AbstractPapyrusNodePreferencePage {
+
+ /**
+ * @generated
+ */
+ public static final String compartments[] = { "structure" };
+
+ /**
+ * @generated
+ */
+ public ComponentPreferencePage() {
+ super();
+ setPreferenceKey(CompositeStructureDiagramEditPart.MODEL_ID + "_Component");
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected String getBundleId() {
+ return UMLDiagramEditorPlugin.ID;
+ }
+
+ /**
+ * @generated
+ */
+ public static void initDefaults(IPreferenceStore store) {
+
+ String key = CompositeStructureDiagramEditPart.MODEL_ID + "_Component";
+ store.setDefault(PreferenceConstantHelper.getElementConstant(key, PreferenceConstantHelper.WIDTH), 40);
+ store.setDefault(PreferenceConstantHelper.getElementConstant(key, PreferenceConstantHelper.HEIGHT), 40);
+
+ Map<String, Boolean> map = getStaticCompartmentVisibilityPreferences();
+ for(String name : map.keySet()) {
+ String preferenceName = PreferenceConstantHelper.getLabelElementConstant(key, name, PreferenceConstantHelper.COMPARTMENT_VISIBILITY);
+ store.setDefault(preferenceName, map.get(name));
+ }
+
+ map = getStaticCompartmentTitleVisibilityPreferences();
+ for(String name : map.keySet()) {
+ String preferenceName = PreferenceConstantHelper.getLabelElementConstant(key, name, PreferenceConstantHelper.COMPARTMENT_NAME_VISIBILITY);
+ store.setDefault(preferenceName, map.get(name));
+ }
+
+ //org.eclipse.jface.preference.PreferenceConverter.setDefault(store, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_FILL), new org.eclipse.swt.graphics.RGB(255, 255, 255));
+ //org.eclipse.jface.preference.PreferenceConverter.setDefault(store, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_LINE), new org.eclipse.swt.graphics.RGB(0, 0, 0));
+
+ // Set the default for the gradient
+ //store.setDefault(org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.GRADIENT_POLICY),false);
+ //org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter gradientPreferenceConverter = new org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter(
+ // new org.eclipse.swt.graphics.RGB(255, 255, 255),
+ // new org.eclipse.swt.graphics.RGB(0, 0, 0), 0, 0);
+ //store.setDefault(org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_GRADIENT), gradientPreferenceConverter.getPreferenceValue());
+
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void initializeCompartmentsList() {
+ for(String name : compartments) {
+ this.compartmentsList.add(name);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private static TreeMap<String, Boolean> getStaticCompartmentVisibilityPreferences() {
+ TreeMap<String, Boolean> map = new TreeMap<String, Boolean>();
+ map.put("structure", Boolean.TRUE);
+ return map;
+ }
+
+ /**
+ * @generated
+ */
+ private static TreeMap<String, Boolean> getStaticCompartmentTitleVisibilityPreferences() {
+ TreeMap<String, Boolean> map = new TreeMap<String, Boolean>();
+
+ map.put("structure", Boolean.TRUE);
+ return map;
+ }
+
+ /**
+ * @generated
+ */
+ protected TreeMap<String, Boolean> getCompartmentTitleVisibilityPreferences() {
+ return getStaticCompartmentTitleVisibilityPreferences();
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/ComponentRealizationPreferencePage.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/ComponentRealizationPreferencePage.java
new file mode 100644
index 00000000000..bdf792dc1aa
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/ComponentRealizationPreferencePage.java
@@ -0,0 +1,90 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.preferences;
+
+import java.util.Map;
+import java.util.TreeMap;
+
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.papyrus.diagram.common.util.StringComparator;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CompositeStructureDiagramEditPart;
+import org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorPlugin;
+import org.eclipse.papyrus.preferences.pages.AbstractPapyrusLinkPreferencePage;
+import org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper;
+
+/**
+ * @generated
+ */
+public class ComponentRealizationPreferencePage extends AbstractPapyrusLinkPreferencePage {
+
+ /**
+ * @generated
+ */
+ public ComponentRealizationPreferencePage() {
+ super();
+ setPreferenceKey(CompositeStructureDiagramEditPart.MODEL_ID + "_ComponentRealization");
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected String getBundleId() {
+ return UMLDiagramEditorPlugin.ID;
+ }
+
+ /**
+ * @generated
+ */
+ public static void initDefaults(IPreferenceStore store) {
+
+ String key = CompositeStructureDiagramEditPart.MODEL_ID + "_ComponentRealization";
+ Map<String, Boolean> map = getStaticLabelVisibilityPreferences();
+ for(String role : map.keySet()) {
+ String preferenceName = PreferenceConstantHelper.getLabelElementConstant(key, role, PreferenceConstantHelper.LABEL_VISIBILITY);
+ store.setDefault(preferenceName, map.get(role));
+ }
+
+ }
+
+ /**
+ * @generated
+ */
+ private static TreeMap<String, String> getStaticLabelRole() {
+ TreeMap<String, String> map = new TreeMap<String, String>(new StringComparator());
+ map.put("Name", "");//$NON-NLS-1$ //$NON-NLS-2$
+ map.put("Stereotype", "");//$NON-NLS-1$ //$NON-NLS-2$
+ return map;
+ }
+
+ /**
+ * @generated
+ */
+ private static TreeMap<String, Boolean> getStaticLabelVisibilityPreferences() {
+ TreeMap<String, Boolean> map = new TreeMap<String, Boolean>();
+ map.put("Name", Boolean.TRUE);
+
+ map.put("Stereotype", Boolean.TRUE);
+
+ return map;
+ }
+
+ /**
+ * @generated
+ */
+ protected TreeMap<String, String> getLabelRole() {
+ return getStaticLabelRole();
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/ConnectorPreferencePage.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/ConnectorPreferencePage.java
new file mode 100644
index 00000000000..af87741db05
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/ConnectorPreferencePage.java
@@ -0,0 +1,96 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.preferences;
+
+import java.util.Map;
+import java.util.TreeMap;
+
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.papyrus.diagram.common.util.StringComparator;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CompositeStructureDiagramEditPart;
+import org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorPlugin;
+import org.eclipse.papyrus.preferences.pages.AbstractPapyrusLinkPreferencePage;
+import org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper;
+
+/**
+ * @generated
+ */
+public class ConnectorPreferencePage extends AbstractPapyrusLinkPreferencePage {
+
+ /**
+ * @generated
+ */
+ public ConnectorPreferencePage() {
+ super();
+ setPreferenceKey(CompositeStructureDiagramEditPart.MODEL_ID + "_Connector");
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected String getBundleId() {
+ return UMLDiagramEditorPlugin.ID;
+ }
+
+ /**
+ * @generated
+ */
+ public static void initDefaults(IPreferenceStore store) {
+
+ String key = CompositeStructureDiagramEditPart.MODEL_ID + "_Connector";
+ Map<String, Boolean> map = getStaticLabelVisibilityPreferences();
+ for(String role : map.keySet()) {
+ String preferenceName = PreferenceConstantHelper.getLabelElementConstant(key, role, PreferenceConstantHelper.LABEL_VISIBILITY);
+ store.setDefault(preferenceName, map.get(role));
+ }
+
+ }
+
+ /**
+ * @generated
+ */
+ private static TreeMap<String, String> getStaticLabelRole() {
+ TreeMap<String, String> map = new TreeMap<String, String>(new StringComparator());
+ map.put("Stereotype", "");//$NON-NLS-1$ //$NON-NLS-2$
+ map.put("Name", "");//$NON-NLS-1$ //$NON-NLS-2$
+ map.put("SourceMultiplicity", "");//$NON-NLS-1$ //$NON-NLS-2$
+ map.put("TargetMultiplicity", "");//$NON-NLS-1$ //$NON-NLS-2$
+ return map;
+ }
+
+ /**
+ * @generated
+ */
+ private static TreeMap<String, Boolean> getStaticLabelVisibilityPreferences() {
+ TreeMap<String, Boolean> map = new TreeMap<String, Boolean>();
+ map.put("Stereotype", Boolean.TRUE);
+
+ map.put("Name", Boolean.FALSE);//$NON-NLS-1$
+
+ map.put("SourceMultiplicity", Boolean.FALSE);//$NON-NLS-1$
+
+ map.put("TargetMultiplicity", Boolean.FALSE);//$NON-NLS-1$
+
+ return map;
+ }
+
+ /**
+ * @generated
+ */
+ protected TreeMap<String, String> getLabelRole() {
+ return getStaticLabelRole();
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/ConstraintConstrainedElementPreferencePage.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/ConstraintConstrainedElementPreferencePage.java
new file mode 100644
index 00000000000..94d8fc16f4c
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/ConstraintConstrainedElementPreferencePage.java
@@ -0,0 +1,49 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.preferences;
+
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CompositeStructureDiagramEditPart;
+import org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorPlugin;
+import org.eclipse.papyrus.preferences.pages.AbstractPapyrusLinkPreferencePage;
+
+/**
+ * @generated
+ */
+public class ConstraintConstrainedElementPreferencePage extends AbstractPapyrusLinkPreferencePage {
+
+ /**
+ * @generated
+ */
+ public ConstraintConstrainedElementPreferencePage() {
+ super();
+ setPreferenceKey(CompositeStructureDiagramEditPart.MODEL_ID + "_ConstraintConstrainedElement");
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected String getBundleId() {
+ return UMLDiagramEditorPlugin.ID;
+ }
+
+ /**
+ * @generated
+ */
+ public static void initDefaults(IPreferenceStore store) {
+
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/ConstraintPreferencePage.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/ConstraintPreferencePage.java
new file mode 100644
index 00000000000..cba3ba1c864
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/ConstraintPreferencePage.java
@@ -0,0 +1,64 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.preferences;
+
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CompositeStructureDiagramEditPart;
+import org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorPlugin;
+import org.eclipse.papyrus.preferences.pages.AbstractPapyrusNodePreferencePage;
+import org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper;
+
+/**
+ * @generated
+ */
+public class ConstraintPreferencePage extends AbstractPapyrusNodePreferencePage {
+
+ /**
+ * @generated
+ */
+ public ConstraintPreferencePage() {
+ super();
+ setPreferenceKey(CompositeStructureDiagramEditPart.MODEL_ID + "_Constraint");
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected String getBundleId() {
+ return UMLDiagramEditorPlugin.ID;
+ }
+
+ /**
+ * @generated
+ */
+ public static void initDefaults(IPreferenceStore store) {
+
+ String key = CompositeStructureDiagramEditPart.MODEL_ID + "_Constraint";
+ store.setDefault(PreferenceConstantHelper.getElementConstant(key, PreferenceConstantHelper.WIDTH), 40);
+ store.setDefault(PreferenceConstantHelper.getElementConstant(key, PreferenceConstantHelper.HEIGHT), 40);
+
+ //org.eclipse.jface.preference.PreferenceConverter.setDefault(store, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_FILL), new org.eclipse.swt.graphics.RGB(255, 255, 255));
+ //org.eclipse.jface.preference.PreferenceConverter.setDefault(store, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_LINE), new org.eclipse.swt.graphics.RGB(0, 0, 0));
+
+ // Set the default for the gradient
+ //store.setDefault(org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.GRADIENT_POLICY),false);
+ //org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter gradientPreferenceConverter = new org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter(
+ // new org.eclipse.swt.graphics.RGB(255, 255, 255),
+ // new org.eclipse.swt.graphics.RGB(0, 0, 0), 0, 0);
+ //store.setDefault(org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_GRADIENT), gradientPreferenceConverter.getPreferenceValue());
+
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/CreationEventPreferencePage.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/CreationEventPreferencePage.java
new file mode 100644
index 00000000000..0d93037e20d
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/CreationEventPreferencePage.java
@@ -0,0 +1,64 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.preferences;
+
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CompositeStructureDiagramEditPart;
+import org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorPlugin;
+import org.eclipse.papyrus.preferences.pages.AbstractPapyrusNodePreferencePage;
+import org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper;
+
+/**
+ * @generated
+ */
+public class CreationEventPreferencePage extends AbstractPapyrusNodePreferencePage {
+
+ /**
+ * @generated
+ */
+ public CreationEventPreferencePage() {
+ super();
+ setPreferenceKey(CompositeStructureDiagramEditPart.MODEL_ID + "_CreationEvent");
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected String getBundleId() {
+ return UMLDiagramEditorPlugin.ID;
+ }
+
+ /**
+ * @generated
+ */
+ public static void initDefaults(IPreferenceStore store) {
+
+ String key = CompositeStructureDiagramEditPart.MODEL_ID + "_CreationEvent";
+ store.setDefault(PreferenceConstantHelper.getElementConstant(key, PreferenceConstantHelper.WIDTH), 40);
+ store.setDefault(PreferenceConstantHelper.getElementConstant(key, PreferenceConstantHelper.HEIGHT), 40);
+
+ //org.eclipse.jface.preference.PreferenceConverter.setDefault(store, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_FILL), new org.eclipse.swt.graphics.RGB(255, 255, 255));
+ //org.eclipse.jface.preference.PreferenceConverter.setDefault(store, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_LINE), new org.eclipse.swt.graphics.RGB(0, 0, 0));
+
+ // Set the default for the gradient
+ //store.setDefault(org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.GRADIENT_POLICY),false);
+ //org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter gradientPreferenceConverter = new org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter(
+ // new org.eclipse.swt.graphics.RGB(255, 255, 255),
+ // new org.eclipse.swt.graphics.RGB(0, 0, 0), 0, 0);
+ //store.setDefault(org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_GRADIENT), gradientPreferenceConverter.getPreferenceValue());
+
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/DataTypePreferencePage.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/DataTypePreferencePage.java
new file mode 100644
index 00000000000..780a1e41069
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/DataTypePreferencePage.java
@@ -0,0 +1,123 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.preferences;
+
+import java.util.Map;
+import java.util.TreeMap;
+
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CompositeStructureDiagramEditPart;
+import org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorPlugin;
+import org.eclipse.papyrus.preferences.pages.AbstractPapyrusNodePreferencePage;
+import org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper;
+
+/**
+ * @generated
+ */
+public class DataTypePreferencePage extends AbstractPapyrusNodePreferencePage {
+
+ /**
+ * @generated
+ */
+ public static final String compartments[] = { "properties", "operations" };
+
+ /**
+ * @generated
+ */
+ public DataTypePreferencePage() {
+ super();
+ setPreferenceKey(CompositeStructureDiagramEditPart.MODEL_ID + "_DataType");
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected String getBundleId() {
+ return UMLDiagramEditorPlugin.ID;
+ }
+
+ /**
+ * @generated
+ */
+ public static void initDefaults(IPreferenceStore store) {
+
+ String key = CompositeStructureDiagramEditPart.MODEL_ID + "_DataType";
+ store.setDefault(PreferenceConstantHelper.getElementConstant(key, PreferenceConstantHelper.WIDTH), 40);
+ store.setDefault(PreferenceConstantHelper.getElementConstant(key, PreferenceConstantHelper.HEIGHT), 40);
+
+ Map<String, Boolean> map = getStaticCompartmentVisibilityPreferences();
+ for(String name : map.keySet()) {
+ String preferenceName = PreferenceConstantHelper.getLabelElementConstant(key, name, PreferenceConstantHelper.COMPARTMENT_VISIBILITY);
+ store.setDefault(preferenceName, map.get(name));
+ }
+
+ map = getStaticCompartmentTitleVisibilityPreferences();
+ for(String name : map.keySet()) {
+ String preferenceName = PreferenceConstantHelper.getLabelElementConstant(key, name, PreferenceConstantHelper.COMPARTMENT_NAME_VISIBILITY);
+ store.setDefault(preferenceName, map.get(name));
+ }
+
+ //org.eclipse.jface.preference.PreferenceConverter.setDefault(store, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_FILL), new org.eclipse.swt.graphics.RGB(255, 255, 255));
+ //org.eclipse.jface.preference.PreferenceConverter.setDefault(store, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_LINE), new org.eclipse.swt.graphics.RGB(0, 0, 0));
+
+ // Set the default for the gradient
+ //store.setDefault(org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.GRADIENT_POLICY),false);
+ //org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter gradientPreferenceConverter = new org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter(
+ // new org.eclipse.swt.graphics.RGB(255, 255, 255),
+ // new org.eclipse.swt.graphics.RGB(0, 0, 0), 0, 0);
+ //store.setDefault(org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_GRADIENT), gradientPreferenceConverter.getPreferenceValue());
+
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void initializeCompartmentsList() {
+ for(String name : compartments) {
+ this.compartmentsList.add(name);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private static TreeMap<String, Boolean> getStaticCompartmentVisibilityPreferences() {
+ TreeMap<String, Boolean> map = new TreeMap<String, Boolean>();
+ map.put("properties", Boolean.TRUE);
+ map.put("operations", Boolean.TRUE);
+ return map;
+ }
+
+ /**
+ * @generated
+ */
+ private static TreeMap<String, Boolean> getStaticCompartmentTitleVisibilityPreferences() {
+ TreeMap<String, Boolean> map = new TreeMap<String, Boolean>();
+
+ map.put("properties", Boolean.TRUE);
+
+ map.put("operations", Boolean.TRUE);
+ return map;
+ }
+
+ /**
+ * @generated
+ */
+ protected TreeMap<String, Boolean> getCompartmentTitleVisibilityPreferences() {
+ return getStaticCompartmentTitleVisibilityPreferences();
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/DependencyPreferencePage.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/DependencyPreferencePage.java
new file mode 100644
index 00000000000..d9d5659718d
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/DependencyPreferencePage.java
@@ -0,0 +1,90 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.preferences;
+
+import java.util.Map;
+import java.util.TreeMap;
+
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.papyrus.diagram.common.util.StringComparator;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CompositeStructureDiagramEditPart;
+import org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorPlugin;
+import org.eclipse.papyrus.preferences.pages.AbstractPapyrusLinkPreferencePage;
+import org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper;
+
+/**
+ * @generated
+ */
+public class DependencyPreferencePage extends AbstractPapyrusLinkPreferencePage {
+
+ /**
+ * @generated
+ */
+ public DependencyPreferencePage() {
+ super();
+ setPreferenceKey(CompositeStructureDiagramEditPart.MODEL_ID + "_Dependency");
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected String getBundleId() {
+ return UMLDiagramEditorPlugin.ID;
+ }
+
+ /**
+ * @generated
+ */
+ public static void initDefaults(IPreferenceStore store) {
+
+ String key = CompositeStructureDiagramEditPart.MODEL_ID + "_Dependency";
+ Map<String, Boolean> map = getStaticLabelVisibilityPreferences();
+ for(String role : map.keySet()) {
+ String preferenceName = PreferenceConstantHelper.getLabelElementConstant(key, role, PreferenceConstantHelper.LABEL_VISIBILITY);
+ store.setDefault(preferenceName, map.get(role));
+ }
+
+ }
+
+ /**
+ * @generated
+ */
+ private static TreeMap<String, String> getStaticLabelRole() {
+ TreeMap<String, String> map = new TreeMap<String, String>(new StringComparator());
+ map.put("Name", "");//$NON-NLS-1$ //$NON-NLS-2$
+ map.put("Stereotype", "");//$NON-NLS-1$ //$NON-NLS-2$
+ return map;
+ }
+
+ /**
+ * @generated
+ */
+ private static TreeMap<String, Boolean> getStaticLabelVisibilityPreferences() {
+ TreeMap<String, Boolean> map = new TreeMap<String, Boolean>();
+ map.put("Name", Boolean.TRUE);
+
+ map.put("Stereotype", Boolean.TRUE);
+
+ return map;
+ }
+
+ /**
+ * @generated
+ */
+ protected TreeMap<String, String> getLabelRole() {
+ return getStaticLabelRole();
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/DeploymentPreferencePage.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/DeploymentPreferencePage.java
new file mode 100644
index 00000000000..95df2c49d3f
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/DeploymentPreferencePage.java
@@ -0,0 +1,90 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.preferences;
+
+import java.util.Map;
+import java.util.TreeMap;
+
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.papyrus.diagram.common.util.StringComparator;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CompositeStructureDiagramEditPart;
+import org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorPlugin;
+import org.eclipse.papyrus.preferences.pages.AbstractPapyrusLinkPreferencePage;
+import org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper;
+
+/**
+ * @generated
+ */
+public class DeploymentPreferencePage extends AbstractPapyrusLinkPreferencePage {
+
+ /**
+ * @generated
+ */
+ public DeploymentPreferencePage() {
+ super();
+ setPreferenceKey(CompositeStructureDiagramEditPart.MODEL_ID + "_Deployment");
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected String getBundleId() {
+ return UMLDiagramEditorPlugin.ID;
+ }
+
+ /**
+ * @generated
+ */
+ public static void initDefaults(IPreferenceStore store) {
+
+ String key = CompositeStructureDiagramEditPart.MODEL_ID + "_Deployment";
+ Map<String, Boolean> map = getStaticLabelVisibilityPreferences();
+ for(String role : map.keySet()) {
+ String preferenceName = PreferenceConstantHelper.getLabelElementConstant(key, role, PreferenceConstantHelper.LABEL_VISIBILITY);
+ store.setDefault(preferenceName, map.get(role));
+ }
+
+ }
+
+ /**
+ * @generated
+ */
+ private static TreeMap<String, String> getStaticLabelRole() {
+ TreeMap<String, String> map = new TreeMap<String, String>(new StringComparator());
+ map.put("Name", "");//$NON-NLS-1$ //$NON-NLS-2$
+ map.put("Stereotype", "");//$NON-NLS-1$ //$NON-NLS-2$
+ return map;
+ }
+
+ /**
+ * @generated
+ */
+ private static TreeMap<String, Boolean> getStaticLabelVisibilityPreferences() {
+ TreeMap<String, Boolean> map = new TreeMap<String, Boolean>();
+ map.put("Name", Boolean.TRUE);
+
+ map.put("Stereotype", Boolean.TRUE);
+
+ return map;
+ }
+
+ /**
+ * @generated
+ */
+ protected TreeMap<String, String> getLabelRole() {
+ return getStaticLabelRole();
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/DeploymentSpecificationPreferencePage.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/DeploymentSpecificationPreferencePage.java
new file mode 100644
index 00000000000..9b30947d72e
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/DeploymentSpecificationPreferencePage.java
@@ -0,0 +1,64 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.preferences;
+
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CompositeStructureDiagramEditPart;
+import org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorPlugin;
+import org.eclipse.papyrus.preferences.pages.AbstractPapyrusNodePreferencePage;
+import org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper;
+
+/**
+ * @generated
+ */
+public class DeploymentSpecificationPreferencePage extends AbstractPapyrusNodePreferencePage {
+
+ /**
+ * @generated
+ */
+ public DeploymentSpecificationPreferencePage() {
+ super();
+ setPreferenceKey(CompositeStructureDiagramEditPart.MODEL_ID + "_DeploymentSpecification");
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected String getBundleId() {
+ return UMLDiagramEditorPlugin.ID;
+ }
+
+ /**
+ * @generated
+ */
+ public static void initDefaults(IPreferenceStore store) {
+
+ String key = CompositeStructureDiagramEditPart.MODEL_ID + "_DeploymentSpecification";
+ store.setDefault(PreferenceConstantHelper.getElementConstant(key, PreferenceConstantHelper.WIDTH), 40);
+ store.setDefault(PreferenceConstantHelper.getElementConstant(key, PreferenceConstantHelper.HEIGHT), 40);
+
+ //org.eclipse.jface.preference.PreferenceConverter.setDefault(store, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_FILL), new org.eclipse.swt.graphics.RGB(255, 255, 255));
+ //org.eclipse.jface.preference.PreferenceConverter.setDefault(store, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_LINE), new org.eclipse.swt.graphics.RGB(0, 0, 0));
+
+ // Set the default for the gradient
+ //store.setDefault(org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.GRADIENT_POLICY),false);
+ //org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter gradientPreferenceConverter = new org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter(
+ // new org.eclipse.swt.graphics.RGB(255, 255, 255),
+ // new org.eclipse.swt.graphics.RGB(0, 0, 0), 0, 0);
+ //store.setDefault(org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_GRADIENT), gradientPreferenceConverter.getPreferenceValue());
+
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/DestructionEventPreferencePage.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/DestructionEventPreferencePage.java
new file mode 100644
index 00000000000..1a81b93ad34
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/DestructionEventPreferencePage.java
@@ -0,0 +1,64 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.preferences;
+
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CompositeStructureDiagramEditPart;
+import org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorPlugin;
+import org.eclipse.papyrus.preferences.pages.AbstractPapyrusNodePreferencePage;
+import org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper;
+
+/**
+ * @generated
+ */
+public class DestructionEventPreferencePage extends AbstractPapyrusNodePreferencePage {
+
+ /**
+ * @generated
+ */
+ public DestructionEventPreferencePage() {
+ super();
+ setPreferenceKey(CompositeStructureDiagramEditPart.MODEL_ID + "_DestructionEvent");
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected String getBundleId() {
+ return UMLDiagramEditorPlugin.ID;
+ }
+
+ /**
+ * @generated
+ */
+ public static void initDefaults(IPreferenceStore store) {
+
+ String key = CompositeStructureDiagramEditPart.MODEL_ID + "_DestructionEvent";
+ store.setDefault(PreferenceConstantHelper.getElementConstant(key, PreferenceConstantHelper.WIDTH), 40);
+ store.setDefault(PreferenceConstantHelper.getElementConstant(key, PreferenceConstantHelper.HEIGHT), 40);
+
+ //org.eclipse.jface.preference.PreferenceConverter.setDefault(store, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_FILL), new org.eclipse.swt.graphics.RGB(255, 255, 255));
+ //org.eclipse.jface.preference.PreferenceConverter.setDefault(store, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_LINE), new org.eclipse.swt.graphics.RGB(0, 0, 0));
+
+ // Set the default for the gradient
+ //store.setDefault(org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.GRADIENT_POLICY),false);
+ //org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter gradientPreferenceConverter = new org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter(
+ // new org.eclipse.swt.graphics.RGB(255, 255, 255),
+ // new org.eclipse.swt.graphics.RGB(0, 0, 0), 0, 0);
+ //store.setDefault(org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_GRADIENT), gradientPreferenceConverter.getPreferenceValue());
+
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/DevicePreferencePage.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/DevicePreferencePage.java
new file mode 100644
index 00000000000..4bc80d10e1a
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/DevicePreferencePage.java
@@ -0,0 +1,120 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.preferences;
+
+import java.util.Map;
+import java.util.TreeMap;
+
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CompositeStructureDiagramEditPart;
+import org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorPlugin;
+import org.eclipse.papyrus.preferences.pages.AbstractPapyrusNodePreferencePage;
+import org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper;
+
+/**
+ * @generated
+ */
+public class DevicePreferencePage extends AbstractPapyrusNodePreferencePage {
+
+ /**
+ * @generated
+ */
+ public static final String compartments[] = { "structure" };
+
+ /**
+ * @generated
+ */
+ public DevicePreferencePage() {
+ super();
+ setPreferenceKey(CompositeStructureDiagramEditPart.MODEL_ID + "_Device");
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected String getBundleId() {
+ return UMLDiagramEditorPlugin.ID;
+ }
+
+ /**
+ * @generated
+ */
+ public static void initDefaults(IPreferenceStore store) {
+
+ String key = CompositeStructureDiagramEditPart.MODEL_ID + "_Device";
+ store.setDefault(PreferenceConstantHelper.getElementConstant(key, PreferenceConstantHelper.WIDTH), 40);
+ store.setDefault(PreferenceConstantHelper.getElementConstant(key, PreferenceConstantHelper.HEIGHT), 40);
+
+ Map<String, Boolean> map = getStaticCompartmentVisibilityPreferences();
+ for(String name : map.keySet()) {
+ String preferenceName = PreferenceConstantHelper.getLabelElementConstant(key, name, PreferenceConstantHelper.COMPARTMENT_VISIBILITY);
+ store.setDefault(preferenceName, map.get(name));
+ }
+
+ map = getStaticCompartmentTitleVisibilityPreferences();
+ for(String name : map.keySet()) {
+ String preferenceName = PreferenceConstantHelper.getLabelElementConstant(key, name, PreferenceConstantHelper.COMPARTMENT_NAME_VISIBILITY);
+ store.setDefault(preferenceName, map.get(name));
+ }
+
+ //org.eclipse.jface.preference.PreferenceConverter.setDefault(store, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_FILL), new org.eclipse.swt.graphics.RGB(255, 255, 255));
+ //org.eclipse.jface.preference.PreferenceConverter.setDefault(store, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_LINE), new org.eclipse.swt.graphics.RGB(0, 0, 0));
+
+ // Set the default for the gradient
+ //store.setDefault(org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.GRADIENT_POLICY),false);
+ //org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter gradientPreferenceConverter = new org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter(
+ // new org.eclipse.swt.graphics.RGB(255, 255, 255),
+ // new org.eclipse.swt.graphics.RGB(0, 0, 0), 0, 0);
+ //store.setDefault(org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_GRADIENT), gradientPreferenceConverter.getPreferenceValue());
+
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void initializeCompartmentsList() {
+ for(String name : compartments) {
+ this.compartmentsList.add(name);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private static TreeMap<String, Boolean> getStaticCompartmentVisibilityPreferences() {
+ TreeMap<String, Boolean> map = new TreeMap<String, Boolean>();
+ map.put("structure", Boolean.TRUE);
+ return map;
+ }
+
+ /**
+ * @generated
+ */
+ private static TreeMap<String, Boolean> getStaticCompartmentTitleVisibilityPreferences() {
+ TreeMap<String, Boolean> map = new TreeMap<String, Boolean>();
+
+ map.put("structure", Boolean.TRUE);
+ return map;
+ }
+
+ /**
+ * @generated
+ */
+ protected TreeMap<String, Boolean> getCompartmentTitleVisibilityPreferences() {
+ return getStaticCompartmentTitleVisibilityPreferences();
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/DiagramAppearancePreferencePage.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/DiagramAppearancePreferencePage.java
new file mode 100644
index 00000000000..816f57a5f50
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/DiagramAppearancePreferencePage.java
@@ -0,0 +1,31 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.preferences;
+
+import org.eclipse.gmf.runtime.diagram.ui.preferences.AppearancePreferencePage;
+import org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorPlugin;
+
+/**
+ * @generated
+ */
+public class DiagramAppearancePreferencePage extends AppearancePreferencePage {
+
+ /**
+ * @generated
+ */
+ public DiagramAppearancePreferencePage() {
+ setPreferenceStore(UMLDiagramEditorPlugin.getInstance().getPreferenceStore());
+
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/DiagramConnectionsPreferencePage.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/DiagramConnectionsPreferencePage.java
new file mode 100644
index 00000000000..ac45023b4d8
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/DiagramConnectionsPreferencePage.java
@@ -0,0 +1,31 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.preferences;
+
+import org.eclipse.gmf.runtime.diagram.ui.preferences.ConnectionsPreferencePage;
+import org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorPlugin;
+
+/**
+ * @generated
+ */
+public class DiagramConnectionsPreferencePage extends ConnectionsPreferencePage {
+
+ /**
+ * @generated
+ */
+ public DiagramConnectionsPreferencePage() {
+ setPreferenceStore(UMLDiagramEditorPlugin.getInstance().getPreferenceStore());
+
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/DiagramGeneralPreferencePage.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/DiagramGeneralPreferencePage.java
new file mode 100644
index 00000000000..c31c60533f5
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/DiagramGeneralPreferencePage.java
@@ -0,0 +1,33 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.preferences;
+
+import org.eclipse.papyrus.diagram.composite.edit.parts.CompositeStructureDiagramEditPart;
+import org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorPlugin;
+import org.eclipse.papyrus.preferences.pages.DiagramPreferencePage;
+
+/**
+ * @generated
+ */
+public class DiagramGeneralPreferencePage extends DiagramPreferencePage {
+
+ /**
+ * @generated
+ */
+ public DiagramGeneralPreferencePage() {
+ setPreferenceStore(UMLDiagramEditorPlugin.getInstance().getPreferenceStore());
+ setPreferenceKey(CompositeStructureDiagramEditPart.MODEL_ID);
+
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/DiagramPreferenceInitializer.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/DiagramPreferenceInitializer.java
new file mode 100644
index 00000000000..692239aefac
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/DiagramPreferenceInitializer.java
@@ -0,0 +1,197 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.preferences;
+
+import org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer;
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorPlugin;
+
+/**
+ * @generated
+ */
+public class DiagramPreferenceInitializer extends AbstractPreferenceInitializer {
+
+ /**
+ * @generated
+ */
+ public void initializeDefaultPreferences() {
+ IPreferenceStore store = getPreferenceStore();
+
+ PropertyPreferencePage.initDefaults(store);
+
+ InteractionConstraintPreferencePage.initDefaults(store);
+
+ CommentPreferencePage.initDefaults(store);
+
+ ClassPreferencePage.initDefaults(store);
+
+ ActorPreferencePage.initDefaults(store);
+
+ TimeEventPreferencePage.initDefaults(store);
+
+ StateMachinePreferencePage.initDefaults(store);
+
+ ProtocolStateMachinePreferencePage.initDefaults(store);
+
+ OpaqueBehaviorPreferencePage.initDefaults(store);
+
+ TimeIntervalPreferencePage.initDefaults(store);
+
+ TimeExpressionPreferencePage.initDefaults(store);
+
+ LiteralStringPreferencePage.initDefaults(store);
+
+ ExecutionEnvironmentPreferencePage.initDefaults(store);
+
+ LiteralNullPreferencePage.initDefaults(store);
+
+ ArtifactPreferencePage.initDefaults(store);
+
+ DurationConstraintPreferencePage.initDefaults(store);
+
+ SignalPreferencePage.initDefaults(store);
+
+ AnyReceiveEventPreferencePage.initDefaults(store);
+
+ ReceptionPreferencePage.initDefaults(store);
+
+ CollaborationUsePreferencePage.initDefaults(store);
+
+ LiteralUnlimitedNaturalPreferencePage.initDefaults(store);
+
+ StringExpressionPreferencePage.initDefaults(store);
+
+ LiteralBooleanPreferencePage.initDefaults(store);
+
+ CollaborationRolePreferencePage.initDefaults(store);
+
+ SendSignalEventPreferencePage.initDefaults(store);
+
+ OpaqueExpressionPreferencePage.initDefaults(store);
+
+ ParameterPreferencePage.initDefaults(store);
+
+ InformationItemPreferencePage.initDefaults(store);
+
+ DataTypePreferencePage.initDefaults(store);
+
+ EnumerationLiteralPreferencePage.initDefaults(store);
+
+ ChangeEventPreferencePage.initDefaults(store);
+
+ InstanceValuePreferencePage.initDefaults(store);
+
+ NodePreferencePage.initDefaults(store);
+
+ LiteralIntegerPreferencePage.initDefaults(store);
+
+ InterfacePreferencePage.initDefaults(store);
+
+ SignalEventPreferencePage.initDefaults(store);
+
+ PrimitiveTypePreferencePage.initDefaults(store);
+
+ OperationPreferencePage.initDefaults(store);
+
+ ActivityPreferencePage.initDefaults(store);
+
+ InteractionPreferencePage.initDefaults(store);
+
+ IntervalPreferencePage.initDefaults(store);
+
+ DurationPreferencePage.initDefaults(store);
+
+ IntervalConstraintPreferencePage.initDefaults(store);
+
+ TimeObservationPreferencePage.initDefaults(store);
+
+ CollaborationPreferencePage.initDefaults(store);
+
+ CallEventPreferencePage.initDefaults(store);
+
+ ComponentPreferencePage.initDefaults(store);
+
+ PortPreferencePage.initDefaults(store);
+
+ FunctionBehaviorPreferencePage.initDefaults(store);
+
+ DeploymentSpecificationPreferencePage.initDefaults(store);
+
+ DestructionEventPreferencePage.initDefaults(store);
+
+ UseCasePreferencePage.initDefaults(store);
+
+ DevicePreferencePage.initDefaults(store);
+
+ DurationObservationPreferencePage.initDefaults(store);
+
+ CreationEventPreferencePage.initDefaults(store);
+
+ SendOperationEventPreferencePage.initDefaults(store);
+
+ EnumerationPreferencePage.initDefaults(store);
+
+ ConstraintPreferencePage.initDefaults(store);
+
+ DurationIntervalPreferencePage.initDefaults(store);
+
+ ExpressionPreferencePage.initDefaults(store);
+
+ TimeConstraintPreferencePage.initDefaults(store);
+
+ ExecutionEventPreferencePage.initDefaults(store);
+
+ DurationObservationEventPreferencePage.initDefaults(store);
+
+ DependencyPreferencePage.initDefaults(store);
+
+ GeneralizationPreferencePage.initDefaults(store);
+
+ ComponentRealizationPreferencePage.initDefaults(store);
+
+ ConnectorPreferencePage.initDefaults(store);
+
+ ConstraintConstrainedElementPreferencePage.initDefaults(store);
+
+ UsagePreferencePage.initDefaults(store);
+
+ ManifestationPreferencePage.initDefaults(store);
+
+ TimeObservationEventPreferencePage.initDefaults(store);
+
+ SubstitutionPreferencePage.initDefaults(store);
+
+ AbstractionPreferencePage.initDefaults(store);
+
+ DeploymentPreferencePage.initDefaults(store);
+
+ CommentAnnotatedElementPreferencePage.initDefaults(store);
+
+ RoleBindingPreferencePage.initDefaults(store);
+
+ RealizationPreferencePage.initDefaults(store);
+
+ InterfaceRealizationPreferencePage.initDefaults(store);
+
+ InformationFlowPreferencePage.initDefaults(store);
+
+ }
+
+ /**
+ * @generated
+ */
+ protected IPreferenceStore getPreferenceStore() {
+ return UMLDiagramEditorPlugin.getInstance().getPreferenceStore();
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/DiagramPrintingPreferencePage.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/DiagramPrintingPreferencePage.java
new file mode 100644
index 00000000000..83db6f2d843
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/DiagramPrintingPreferencePage.java
@@ -0,0 +1,31 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.preferences;
+
+import org.eclipse.gmf.runtime.diagram.ui.preferences.PrintingPreferencePage;
+import org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorPlugin;
+
+/**
+ * @generated
+ */
+public class DiagramPrintingPreferencePage extends PrintingPreferencePage {
+
+ /**
+ * @generated
+ */
+ public DiagramPrintingPreferencePage() {
+ setPreferenceStore(UMLDiagramEditorPlugin.getInstance().getPreferenceStore());
+
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/DiagramRulersAndGridPreferencePage.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/DiagramRulersAndGridPreferencePage.java
new file mode 100644
index 00000000000..c1a3c0783b0
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/DiagramRulersAndGridPreferencePage.java
@@ -0,0 +1,31 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.preferences;
+
+import org.eclipse.gmf.runtime.diagram.ui.preferences.RulerGridPreferencePage;
+import org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorPlugin;
+
+/**
+ * @generated
+ */
+public class DiagramRulersAndGridPreferencePage extends RulerGridPreferencePage {
+
+ /**
+ * @generated
+ */
+ public DiagramRulersAndGridPreferencePage() {
+ setPreferenceStore(UMLDiagramEditorPlugin.getInstance().getPreferenceStore());
+
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/DurationConstraintPreferencePage.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/DurationConstraintPreferencePage.java
new file mode 100644
index 00000000000..933e7956017
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/DurationConstraintPreferencePage.java
@@ -0,0 +1,64 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.preferences;
+
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CompositeStructureDiagramEditPart;
+import org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorPlugin;
+import org.eclipse.papyrus.preferences.pages.AbstractPapyrusNodePreferencePage;
+import org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper;
+
+/**
+ * @generated
+ */
+public class DurationConstraintPreferencePage extends AbstractPapyrusNodePreferencePage {
+
+ /**
+ * @generated
+ */
+ public DurationConstraintPreferencePage() {
+ super();
+ setPreferenceKey(CompositeStructureDiagramEditPart.MODEL_ID + "_DurationConstraint");
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected String getBundleId() {
+ return UMLDiagramEditorPlugin.ID;
+ }
+
+ /**
+ * @generated
+ */
+ public static void initDefaults(IPreferenceStore store) {
+
+ String key = CompositeStructureDiagramEditPart.MODEL_ID + "_DurationConstraint";
+ store.setDefault(PreferenceConstantHelper.getElementConstant(key, PreferenceConstantHelper.WIDTH), 40);
+ store.setDefault(PreferenceConstantHelper.getElementConstant(key, PreferenceConstantHelper.HEIGHT), 40);
+
+ //org.eclipse.jface.preference.PreferenceConverter.setDefault(store, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_FILL), new org.eclipse.swt.graphics.RGB(255, 255, 255));
+ //org.eclipse.jface.preference.PreferenceConverter.setDefault(store, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_LINE), new org.eclipse.swt.graphics.RGB(0, 0, 0));
+
+ // Set the default for the gradient
+ //store.setDefault(org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.GRADIENT_POLICY),false);
+ //org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter gradientPreferenceConverter = new org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter(
+ // new org.eclipse.swt.graphics.RGB(255, 255, 255),
+ // new org.eclipse.swt.graphics.RGB(0, 0, 0), 0, 0);
+ //store.setDefault(org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_GRADIENT), gradientPreferenceConverter.getPreferenceValue());
+
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/DurationIntervalPreferencePage.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/DurationIntervalPreferencePage.java
new file mode 100644
index 00000000000..ced4c461bb7
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/DurationIntervalPreferencePage.java
@@ -0,0 +1,64 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.preferences;
+
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CompositeStructureDiagramEditPart;
+import org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorPlugin;
+import org.eclipse.papyrus.preferences.pages.AbstractPapyrusNodePreferencePage;
+import org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper;
+
+/**
+ * @generated
+ */
+public class DurationIntervalPreferencePage extends AbstractPapyrusNodePreferencePage {
+
+ /**
+ * @generated
+ */
+ public DurationIntervalPreferencePage() {
+ super();
+ setPreferenceKey(CompositeStructureDiagramEditPart.MODEL_ID + "_DurationInterval");
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected String getBundleId() {
+ return UMLDiagramEditorPlugin.ID;
+ }
+
+ /**
+ * @generated
+ */
+ public static void initDefaults(IPreferenceStore store) {
+
+ String key = CompositeStructureDiagramEditPart.MODEL_ID + "_DurationInterval";
+ store.setDefault(PreferenceConstantHelper.getElementConstant(key, PreferenceConstantHelper.WIDTH), 40);
+ store.setDefault(PreferenceConstantHelper.getElementConstant(key, PreferenceConstantHelper.HEIGHT), 40);
+
+ //org.eclipse.jface.preference.PreferenceConverter.setDefault(store, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_FILL), new org.eclipse.swt.graphics.RGB(255, 255, 255));
+ //org.eclipse.jface.preference.PreferenceConverter.setDefault(store, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_LINE), new org.eclipse.swt.graphics.RGB(0, 0, 0));
+
+ // Set the default for the gradient
+ //store.setDefault(org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.GRADIENT_POLICY),false);
+ //org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter gradientPreferenceConverter = new org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter(
+ // new org.eclipse.swt.graphics.RGB(255, 255, 255),
+ // new org.eclipse.swt.graphics.RGB(0, 0, 0), 0, 0);
+ //store.setDefault(org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_GRADIENT), gradientPreferenceConverter.getPreferenceValue());
+
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/DurationObservationEventPreferencePage.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/DurationObservationEventPreferencePage.java
new file mode 100644
index 00000000000..41c1c5cf735
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/DurationObservationEventPreferencePage.java
@@ -0,0 +1,49 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.preferences;
+
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CompositeStructureDiagramEditPart;
+import org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorPlugin;
+import org.eclipse.papyrus.preferences.pages.AbstractPapyrusLinkPreferencePage;
+
+/**
+ * @generated
+ */
+public class DurationObservationEventPreferencePage extends AbstractPapyrusLinkPreferencePage {
+
+ /**
+ * @generated
+ */
+ public DurationObservationEventPreferencePage() {
+ super();
+ setPreferenceKey(CompositeStructureDiagramEditPart.MODEL_ID + "_DurationObservationEvent");
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected String getBundleId() {
+ return UMLDiagramEditorPlugin.ID;
+ }
+
+ /**
+ * @generated
+ */
+ public static void initDefaults(IPreferenceStore store) {
+
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/DurationObservationPreferencePage.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/DurationObservationPreferencePage.java
new file mode 100644
index 00000000000..1d2db6aeeb3
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/DurationObservationPreferencePage.java
@@ -0,0 +1,102 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.preferences;
+
+import java.util.Map;
+import java.util.TreeMap;
+
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.papyrus.diagram.common.util.StringComparator;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CompositeStructureDiagramEditPart;
+import org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorPlugin;
+import org.eclipse.papyrus.preferences.pages.AbstractPapyrusNodePreferencePage;
+import org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper;
+
+/**
+ * @generated
+ */
+public class DurationObservationPreferencePage extends AbstractPapyrusNodePreferencePage {
+
+ /**
+ * @generated
+ */
+ public DurationObservationPreferencePage() {
+ super();
+ setPreferenceKey(CompositeStructureDiagramEditPart.MODEL_ID + "_DurationObservation");
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected String getBundleId() {
+ return UMLDiagramEditorPlugin.ID;
+ }
+
+ /**
+ * @generated
+ */
+ public static void initDefaults(IPreferenceStore store) {
+
+ String key = CompositeStructureDiagramEditPart.MODEL_ID + "_DurationObservation";
+ store.setDefault(PreferenceConstantHelper.getElementConstant(key, PreferenceConstantHelper.WIDTH), 40);
+ store.setDefault(PreferenceConstantHelper.getElementConstant(key, PreferenceConstantHelper.HEIGHT), 40);
+
+ Map<String, Boolean> map = getStaticLabelVisibilityPreferences();
+
+ for(String role : map.keySet()) {
+ String preferenceName = PreferenceConstantHelper.getLabelElementConstant(key, role, PreferenceConstantHelper.LABEL_VISIBILITY);
+ store.setDefault(preferenceName, map.get(role));
+ }
+
+ //org.eclipse.jface.preference.PreferenceConverter.setDefault(store, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_FILL), new org.eclipse.swt.graphics.RGB(255, 255, 255));
+ //org.eclipse.jface.preference.PreferenceConverter.setDefault(store, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_LINE), new org.eclipse.swt.graphics.RGB(0, 0, 0));
+
+ // Set the default for the gradient
+ //store.setDefault(org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.GRADIENT_POLICY),false);
+ //org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter gradientPreferenceConverter = new org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter(
+ // new org.eclipse.swt.graphics.RGB(255, 255, 255),
+ // new org.eclipse.swt.graphics.RGB(0, 0, 0), 0, 0);
+ //store.setDefault(org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_GRADIENT), gradientPreferenceConverter.getPreferenceValue());
+
+ }
+
+ /**
+ * @generated
+ */
+ private static TreeMap<String, String> getStaticLabelRole() {
+ TreeMap<String, String> map = new TreeMap<String, String>(new StringComparator());
+ map.put("Name", "");//$NON-NLS-1$
+ map.put("Stereotype", "");//$NON-NLS-1$
+ return map;
+ }
+
+ /**
+ * @generated
+ */
+ private static TreeMap<String, Boolean> getStaticLabelVisibilityPreferences() {
+ TreeMap<String, Boolean> map = new TreeMap<String, Boolean>();
+ map.put("Name", Boolean.TRUE);
+ map.put("Stereotype", Boolean.TRUE);
+ return map;
+ }
+
+ /**
+ * @generated
+ */
+ protected TreeMap<String, String> getLabelRole() {
+ return getStaticLabelRole();
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/DurationPreferencePage.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/DurationPreferencePage.java
new file mode 100644
index 00000000000..3717198ce6a
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/DurationPreferencePage.java
@@ -0,0 +1,64 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.preferences;
+
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CompositeStructureDiagramEditPart;
+import org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorPlugin;
+import org.eclipse.papyrus.preferences.pages.AbstractPapyrusNodePreferencePage;
+import org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper;
+
+/**
+ * @generated
+ */
+public class DurationPreferencePage extends AbstractPapyrusNodePreferencePage {
+
+ /**
+ * @generated
+ */
+ public DurationPreferencePage() {
+ super();
+ setPreferenceKey(CompositeStructureDiagramEditPart.MODEL_ID + "_Duration");
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected String getBundleId() {
+ return UMLDiagramEditorPlugin.ID;
+ }
+
+ /**
+ * @generated
+ */
+ public static void initDefaults(IPreferenceStore store) {
+
+ String key = CompositeStructureDiagramEditPart.MODEL_ID + "_Duration";
+ store.setDefault(PreferenceConstantHelper.getElementConstant(key, PreferenceConstantHelper.WIDTH), 40);
+ store.setDefault(PreferenceConstantHelper.getElementConstant(key, PreferenceConstantHelper.HEIGHT), 40);
+
+ //org.eclipse.jface.preference.PreferenceConverter.setDefault(store, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_FILL), new org.eclipse.swt.graphics.RGB(255, 255, 255));
+ //org.eclipse.jface.preference.PreferenceConverter.setDefault(store, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_LINE), new org.eclipse.swt.graphics.RGB(0, 0, 0));
+
+ // Set the default for the gradient
+ //store.setDefault(org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.GRADIENT_POLICY),false);
+ //org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter gradientPreferenceConverter = new org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter(
+ // new org.eclipse.swt.graphics.RGB(255, 255, 255),
+ // new org.eclipse.swt.graphics.RGB(0, 0, 0), 0, 0);
+ //store.setDefault(org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_GRADIENT), gradientPreferenceConverter.getPreferenceValue());
+
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/EnumerationLiteralPreferencePage.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/EnumerationLiteralPreferencePage.java
new file mode 100644
index 00000000000..4824664c1ae
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/EnumerationLiteralPreferencePage.java
@@ -0,0 +1,64 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.preferences;
+
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CompositeStructureDiagramEditPart;
+import org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorPlugin;
+import org.eclipse.papyrus.preferences.pages.AbstractPapyrusNodePreferencePage;
+import org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper;
+
+/**
+ * @generated
+ */
+public class EnumerationLiteralPreferencePage extends AbstractPapyrusNodePreferencePage {
+
+ /**
+ * @generated
+ */
+ public EnumerationLiteralPreferencePage() {
+ super();
+ setPreferenceKey(CompositeStructureDiagramEditPart.MODEL_ID + "_EnumerationLiteral");
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected String getBundleId() {
+ return UMLDiagramEditorPlugin.ID;
+ }
+
+ /**
+ * @generated
+ */
+ public static void initDefaults(IPreferenceStore store) {
+
+ String key = CompositeStructureDiagramEditPart.MODEL_ID + "_EnumerationLiteral";
+ store.setDefault(PreferenceConstantHelper.getElementConstant(key, PreferenceConstantHelper.WIDTH), 40);
+ store.setDefault(PreferenceConstantHelper.getElementConstant(key, PreferenceConstantHelper.HEIGHT), 40);
+
+ //org.eclipse.jface.preference.PreferenceConverter.setDefault(store, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_FILL), new org.eclipse.swt.graphics.RGB(255, 255, 255));
+ //org.eclipse.jface.preference.PreferenceConverter.setDefault(store, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_LINE), new org.eclipse.swt.graphics.RGB(0, 0, 0));
+
+ // Set the default for the gradient
+ //store.setDefault(org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.GRADIENT_POLICY),false);
+ //org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter gradientPreferenceConverter = new org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter(
+ // new org.eclipse.swt.graphics.RGB(255, 255, 255),
+ // new org.eclipse.swt.graphics.RGB(0, 0, 0), 0, 0);
+ //store.setDefault(org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_GRADIENT), gradientPreferenceConverter.getPreferenceValue());
+
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/EnumerationPreferencePage.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/EnumerationPreferencePage.java
new file mode 100644
index 00000000000..30ec50b4d92
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/EnumerationPreferencePage.java
@@ -0,0 +1,120 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.preferences;
+
+import java.util.Map;
+import java.util.TreeMap;
+
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CompositeStructureDiagramEditPart;
+import org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorPlugin;
+import org.eclipse.papyrus.preferences.pages.AbstractPapyrusNodePreferencePage;
+import org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper;
+
+/**
+ * @generated
+ */
+public class EnumerationPreferencePage extends AbstractPapyrusNodePreferencePage {
+
+ /**
+ * @generated
+ */
+ public static final String compartments[] = { "literals" };
+
+ /**
+ * @generated
+ */
+ public EnumerationPreferencePage() {
+ super();
+ setPreferenceKey(CompositeStructureDiagramEditPart.MODEL_ID + "_Enumeration");
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected String getBundleId() {
+ return UMLDiagramEditorPlugin.ID;
+ }
+
+ /**
+ * @generated
+ */
+ public static void initDefaults(IPreferenceStore store) {
+
+ String key = CompositeStructureDiagramEditPart.MODEL_ID + "_Enumeration";
+ store.setDefault(PreferenceConstantHelper.getElementConstant(key, PreferenceConstantHelper.WIDTH), 40);
+ store.setDefault(PreferenceConstantHelper.getElementConstant(key, PreferenceConstantHelper.HEIGHT), 40);
+
+ Map<String, Boolean> map = getStaticCompartmentVisibilityPreferences();
+ for(String name : map.keySet()) {
+ String preferenceName = PreferenceConstantHelper.getLabelElementConstant(key, name, PreferenceConstantHelper.COMPARTMENT_VISIBILITY);
+ store.setDefault(preferenceName, map.get(name));
+ }
+
+ map = getStaticCompartmentTitleVisibilityPreferences();
+ for(String name : map.keySet()) {
+ String preferenceName = PreferenceConstantHelper.getLabelElementConstant(key, name, PreferenceConstantHelper.COMPARTMENT_NAME_VISIBILITY);
+ store.setDefault(preferenceName, map.get(name));
+ }
+
+ //org.eclipse.jface.preference.PreferenceConverter.setDefault(store, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_FILL), new org.eclipse.swt.graphics.RGB(255, 255, 255));
+ //org.eclipse.jface.preference.PreferenceConverter.setDefault(store, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_LINE), new org.eclipse.swt.graphics.RGB(0, 0, 0));
+
+ // Set the default for the gradient
+ //store.setDefault(org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.GRADIENT_POLICY),false);
+ //org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter gradientPreferenceConverter = new org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter(
+ // new org.eclipse.swt.graphics.RGB(255, 255, 255),
+ // new org.eclipse.swt.graphics.RGB(0, 0, 0), 0, 0);
+ //store.setDefault(org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_GRADIENT), gradientPreferenceConverter.getPreferenceValue());
+
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void initializeCompartmentsList() {
+ for(String name : compartments) {
+ this.compartmentsList.add(name);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private static TreeMap<String, Boolean> getStaticCompartmentVisibilityPreferences() {
+ TreeMap<String, Boolean> map = new TreeMap<String, Boolean>();
+ map.put("literals", Boolean.TRUE);
+ return map;
+ }
+
+ /**
+ * @generated
+ */
+ private static TreeMap<String, Boolean> getStaticCompartmentTitleVisibilityPreferences() {
+ TreeMap<String, Boolean> map = new TreeMap<String, Boolean>();
+
+ map.put("literals", Boolean.TRUE);
+ return map;
+ }
+
+ /**
+ * @generated
+ */
+ protected TreeMap<String, Boolean> getCompartmentTitleVisibilityPreferences() {
+ return getStaticCompartmentTitleVisibilityPreferences();
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/ExecutionEnvironmentPreferencePage.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/ExecutionEnvironmentPreferencePage.java
new file mode 100644
index 00000000000..2483dca3fe6
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/ExecutionEnvironmentPreferencePage.java
@@ -0,0 +1,120 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.preferences;
+
+import java.util.Map;
+import java.util.TreeMap;
+
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CompositeStructureDiagramEditPart;
+import org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorPlugin;
+import org.eclipse.papyrus.preferences.pages.AbstractPapyrusNodePreferencePage;
+import org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper;
+
+/**
+ * @generated
+ */
+public class ExecutionEnvironmentPreferencePage extends AbstractPapyrusNodePreferencePage {
+
+ /**
+ * @generated
+ */
+ public static final String compartments[] = { "structure" };
+
+ /**
+ * @generated
+ */
+ public ExecutionEnvironmentPreferencePage() {
+ super();
+ setPreferenceKey(CompositeStructureDiagramEditPart.MODEL_ID + "_ExecutionEnvironment");
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected String getBundleId() {
+ return UMLDiagramEditorPlugin.ID;
+ }
+
+ /**
+ * @generated
+ */
+ public static void initDefaults(IPreferenceStore store) {
+
+ String key = CompositeStructureDiagramEditPart.MODEL_ID + "_ExecutionEnvironment";
+ store.setDefault(PreferenceConstantHelper.getElementConstant(key, PreferenceConstantHelper.WIDTH), 40);
+ store.setDefault(PreferenceConstantHelper.getElementConstant(key, PreferenceConstantHelper.HEIGHT), 40);
+
+ Map<String, Boolean> map = getStaticCompartmentVisibilityPreferences();
+ for(String name : map.keySet()) {
+ String preferenceName = PreferenceConstantHelper.getLabelElementConstant(key, name, PreferenceConstantHelper.COMPARTMENT_VISIBILITY);
+ store.setDefault(preferenceName, map.get(name));
+ }
+
+ map = getStaticCompartmentTitleVisibilityPreferences();
+ for(String name : map.keySet()) {
+ String preferenceName = PreferenceConstantHelper.getLabelElementConstant(key, name, PreferenceConstantHelper.COMPARTMENT_NAME_VISIBILITY);
+ store.setDefault(preferenceName, map.get(name));
+ }
+
+ //org.eclipse.jface.preference.PreferenceConverter.setDefault(store, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_FILL), new org.eclipse.swt.graphics.RGB(255, 255, 255));
+ //org.eclipse.jface.preference.PreferenceConverter.setDefault(store, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_LINE), new org.eclipse.swt.graphics.RGB(0, 0, 0));
+
+ // Set the default for the gradient
+ //store.setDefault(org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.GRADIENT_POLICY),false);
+ //org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter gradientPreferenceConverter = new org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter(
+ // new org.eclipse.swt.graphics.RGB(255, 255, 255),
+ // new org.eclipse.swt.graphics.RGB(0, 0, 0), 0, 0);
+ //store.setDefault(org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_GRADIENT), gradientPreferenceConverter.getPreferenceValue());
+
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void initializeCompartmentsList() {
+ for(String name : compartments) {
+ this.compartmentsList.add(name);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private static TreeMap<String, Boolean> getStaticCompartmentVisibilityPreferences() {
+ TreeMap<String, Boolean> map = new TreeMap<String, Boolean>();
+ map.put("structure", Boolean.TRUE);
+ return map;
+ }
+
+ /**
+ * @generated
+ */
+ private static TreeMap<String, Boolean> getStaticCompartmentTitleVisibilityPreferences() {
+ TreeMap<String, Boolean> map = new TreeMap<String, Boolean>();
+
+ map.put("structure", Boolean.TRUE);
+ return map;
+ }
+
+ /**
+ * @generated
+ */
+ protected TreeMap<String, Boolean> getCompartmentTitleVisibilityPreferences() {
+ return getStaticCompartmentTitleVisibilityPreferences();
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/ExecutionEventPreferencePage.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/ExecutionEventPreferencePage.java
new file mode 100644
index 00000000000..27d561cc767
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/ExecutionEventPreferencePage.java
@@ -0,0 +1,64 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.preferences;
+
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CompositeStructureDiagramEditPart;
+import org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorPlugin;
+import org.eclipse.papyrus.preferences.pages.AbstractPapyrusNodePreferencePage;
+import org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper;
+
+/**
+ * @generated
+ */
+public class ExecutionEventPreferencePage extends AbstractPapyrusNodePreferencePage {
+
+ /**
+ * @generated
+ */
+ public ExecutionEventPreferencePage() {
+ super();
+ setPreferenceKey(CompositeStructureDiagramEditPart.MODEL_ID + "_ExecutionEvent");
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected String getBundleId() {
+ return UMLDiagramEditorPlugin.ID;
+ }
+
+ /**
+ * @generated
+ */
+ public static void initDefaults(IPreferenceStore store) {
+
+ String key = CompositeStructureDiagramEditPart.MODEL_ID + "_ExecutionEvent";
+ store.setDefault(PreferenceConstantHelper.getElementConstant(key, PreferenceConstantHelper.WIDTH), 40);
+ store.setDefault(PreferenceConstantHelper.getElementConstant(key, PreferenceConstantHelper.HEIGHT), 40);
+
+ //org.eclipse.jface.preference.PreferenceConverter.setDefault(store, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_FILL), new org.eclipse.swt.graphics.RGB(255, 255, 255));
+ //org.eclipse.jface.preference.PreferenceConverter.setDefault(store, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_LINE), new org.eclipse.swt.graphics.RGB(0, 0, 0));
+
+ // Set the default for the gradient
+ //store.setDefault(org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.GRADIENT_POLICY),false);
+ //org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter gradientPreferenceConverter = new org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter(
+ // new org.eclipse.swt.graphics.RGB(255, 255, 255),
+ // new org.eclipse.swt.graphics.RGB(0, 0, 0), 0, 0);
+ //store.setDefault(org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_GRADIENT), gradientPreferenceConverter.getPreferenceValue());
+
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/ExpressionPreferencePage.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/ExpressionPreferencePage.java
new file mode 100644
index 00000000000..7ce7cf3b83b
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/ExpressionPreferencePage.java
@@ -0,0 +1,64 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.preferences;
+
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CompositeStructureDiagramEditPart;
+import org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorPlugin;
+import org.eclipse.papyrus.preferences.pages.AbstractPapyrusNodePreferencePage;
+import org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper;
+
+/**
+ * @generated
+ */
+public class ExpressionPreferencePage extends AbstractPapyrusNodePreferencePage {
+
+ /**
+ * @generated
+ */
+ public ExpressionPreferencePage() {
+ super();
+ setPreferenceKey(CompositeStructureDiagramEditPart.MODEL_ID + "_Expression");
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected String getBundleId() {
+ return UMLDiagramEditorPlugin.ID;
+ }
+
+ /**
+ * @generated
+ */
+ public static void initDefaults(IPreferenceStore store) {
+
+ String key = CompositeStructureDiagramEditPart.MODEL_ID + "_Expression";
+ store.setDefault(PreferenceConstantHelper.getElementConstant(key, PreferenceConstantHelper.WIDTH), 40);
+ store.setDefault(PreferenceConstantHelper.getElementConstant(key, PreferenceConstantHelper.HEIGHT), 40);
+
+ //org.eclipse.jface.preference.PreferenceConverter.setDefault(store, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_FILL), new org.eclipse.swt.graphics.RGB(255, 255, 255));
+ //org.eclipse.jface.preference.PreferenceConverter.setDefault(store, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_LINE), new org.eclipse.swt.graphics.RGB(0, 0, 0));
+
+ // Set the default for the gradient
+ //store.setDefault(org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.GRADIENT_POLICY),false);
+ //org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter gradientPreferenceConverter = new org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter(
+ // new org.eclipse.swt.graphics.RGB(255, 255, 255),
+ // new org.eclipse.swt.graphics.RGB(0, 0, 0), 0, 0);
+ //store.setDefault(org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_GRADIENT), gradientPreferenceConverter.getPreferenceValue());
+
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/FunctionBehaviorPreferencePage.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/FunctionBehaviorPreferencePage.java
new file mode 100644
index 00000000000..7e446ec226b
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/FunctionBehaviorPreferencePage.java
@@ -0,0 +1,120 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.preferences;
+
+import java.util.Map;
+import java.util.TreeMap;
+
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CompositeStructureDiagramEditPart;
+import org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorPlugin;
+import org.eclipse.papyrus.preferences.pages.AbstractPapyrusNodePreferencePage;
+import org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper;
+
+/**
+ * @generated
+ */
+public class FunctionBehaviorPreferencePage extends AbstractPapyrusNodePreferencePage {
+
+ /**
+ * @generated
+ */
+ public static final String compartments[] = { "structure" };
+
+ /**
+ * @generated
+ */
+ public FunctionBehaviorPreferencePage() {
+ super();
+ setPreferenceKey(CompositeStructureDiagramEditPart.MODEL_ID + "_FunctionBehavior");
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected String getBundleId() {
+ return UMLDiagramEditorPlugin.ID;
+ }
+
+ /**
+ * @generated
+ */
+ public static void initDefaults(IPreferenceStore store) {
+
+ String key = CompositeStructureDiagramEditPart.MODEL_ID + "_FunctionBehavior";
+ store.setDefault(PreferenceConstantHelper.getElementConstant(key, PreferenceConstantHelper.WIDTH), 40);
+ store.setDefault(PreferenceConstantHelper.getElementConstant(key, PreferenceConstantHelper.HEIGHT), 40);
+
+ Map<String, Boolean> map = getStaticCompartmentVisibilityPreferences();
+ for(String name : map.keySet()) {
+ String preferenceName = PreferenceConstantHelper.getLabelElementConstant(key, name, PreferenceConstantHelper.COMPARTMENT_VISIBILITY);
+ store.setDefault(preferenceName, map.get(name));
+ }
+
+ map = getStaticCompartmentTitleVisibilityPreferences();
+ for(String name : map.keySet()) {
+ String preferenceName = PreferenceConstantHelper.getLabelElementConstant(key, name, PreferenceConstantHelper.COMPARTMENT_NAME_VISIBILITY);
+ store.setDefault(preferenceName, map.get(name));
+ }
+
+ //org.eclipse.jface.preference.PreferenceConverter.setDefault(store, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_FILL), new org.eclipse.swt.graphics.RGB(255, 255, 255));
+ //org.eclipse.jface.preference.PreferenceConverter.setDefault(store, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_LINE), new org.eclipse.swt.graphics.RGB(0, 0, 0));
+
+ // Set the default for the gradient
+ //store.setDefault(org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.GRADIENT_POLICY),false);
+ //org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter gradientPreferenceConverter = new org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter(
+ // new org.eclipse.swt.graphics.RGB(255, 255, 255),
+ // new org.eclipse.swt.graphics.RGB(0, 0, 0), 0, 0);
+ //store.setDefault(org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_GRADIENT), gradientPreferenceConverter.getPreferenceValue());
+
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void initializeCompartmentsList() {
+ for(String name : compartments) {
+ this.compartmentsList.add(name);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private static TreeMap<String, Boolean> getStaticCompartmentVisibilityPreferences() {
+ TreeMap<String, Boolean> map = new TreeMap<String, Boolean>();
+ map.put("structure", Boolean.TRUE);
+ return map;
+ }
+
+ /**
+ * @generated
+ */
+ private static TreeMap<String, Boolean> getStaticCompartmentTitleVisibilityPreferences() {
+ TreeMap<String, Boolean> map = new TreeMap<String, Boolean>();
+
+ map.put("structure", Boolean.TRUE);
+ return map;
+ }
+
+ /**
+ * @generated
+ */
+ protected TreeMap<String, Boolean> getCompartmentTitleVisibilityPreferences() {
+ return getStaticCompartmentTitleVisibilityPreferences();
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/GeneralizationPreferencePage.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/GeneralizationPreferencePage.java
new file mode 100644
index 00000000000..d3a83f0d663
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/GeneralizationPreferencePage.java
@@ -0,0 +1,87 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.preferences;
+
+import java.util.Map;
+import java.util.TreeMap;
+
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.papyrus.diagram.common.util.StringComparator;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CompositeStructureDiagramEditPart;
+import org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorPlugin;
+import org.eclipse.papyrus.preferences.pages.AbstractPapyrusLinkPreferencePage;
+import org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper;
+
+/**
+ * @generated
+ */
+public class GeneralizationPreferencePage extends AbstractPapyrusLinkPreferencePage {
+
+ /**
+ * @generated
+ */
+ public GeneralizationPreferencePage() {
+ super();
+ setPreferenceKey(CompositeStructureDiagramEditPart.MODEL_ID + "_Generalization");
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected String getBundleId() {
+ return UMLDiagramEditorPlugin.ID;
+ }
+
+ /**
+ * @generated
+ */
+ public static void initDefaults(IPreferenceStore store) {
+
+ String key = CompositeStructureDiagramEditPart.MODEL_ID + "_Generalization";
+ Map<String, Boolean> map = getStaticLabelVisibilityPreferences();
+ for(String role : map.keySet()) {
+ String preferenceName = PreferenceConstantHelper.getLabelElementConstant(key, role, PreferenceConstantHelper.LABEL_VISIBILITY);
+ store.setDefault(preferenceName, map.get(role));
+ }
+
+ }
+
+ /**
+ * @generated
+ */
+ private static TreeMap<String, String> getStaticLabelRole() {
+ TreeMap<String, String> map = new TreeMap<String, String>(new StringComparator());
+ map.put("Stereotype", "");//$NON-NLS-1$ //$NON-NLS-2$
+ return map;
+ }
+
+ /**
+ * @generated
+ */
+ private static TreeMap<String, Boolean> getStaticLabelVisibilityPreferences() {
+ TreeMap<String, Boolean> map = new TreeMap<String, Boolean>();
+ map.put("Stereotype", Boolean.TRUE);
+
+ return map;
+ }
+
+ /**
+ * @generated
+ */
+ protected TreeMap<String, String> getLabelRole() {
+ return getStaticLabelRole();
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/InformationFlowPreferencePage.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/InformationFlowPreferencePage.java
new file mode 100644
index 00000000000..73ee80579c7
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/InformationFlowPreferencePage.java
@@ -0,0 +1,90 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.preferences;
+
+import java.util.Map;
+import java.util.TreeMap;
+
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.papyrus.diagram.common.util.StringComparator;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CompositeStructureDiagramEditPart;
+import org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorPlugin;
+import org.eclipse.papyrus.preferences.pages.AbstractPapyrusLinkPreferencePage;
+import org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper;
+
+/**
+ * @generated
+ */
+public class InformationFlowPreferencePage extends AbstractPapyrusLinkPreferencePage {
+
+ /**
+ * @generated
+ */
+ public InformationFlowPreferencePage() {
+ super();
+ setPreferenceKey(CompositeStructureDiagramEditPart.MODEL_ID + "_InformationFlow");
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected String getBundleId() {
+ return UMLDiagramEditorPlugin.ID;
+ }
+
+ /**
+ * @generated
+ */
+ public static void initDefaults(IPreferenceStore store) {
+
+ String key = CompositeStructureDiagramEditPart.MODEL_ID + "_InformationFlow";
+ Map<String, Boolean> map = getStaticLabelVisibilityPreferences();
+ for(String role : map.keySet()) {
+ String preferenceName = PreferenceConstantHelper.getLabelElementConstant(key, role, PreferenceConstantHelper.LABEL_VISIBILITY);
+ store.setDefault(preferenceName, map.get(role));
+ }
+
+ }
+
+ /**
+ * @generated
+ */
+ private static TreeMap<String, String> getStaticLabelRole() {
+ TreeMap<String, String> map = new TreeMap<String, String>(new StringComparator());
+ map.put("ConveyedElements", "");//$NON-NLS-1$ //$NON-NLS-2$
+ map.put("Stereotype", "");//$NON-NLS-1$ //$NON-NLS-2$
+ return map;
+ }
+
+ /**
+ * @generated
+ */
+ private static TreeMap<String, Boolean> getStaticLabelVisibilityPreferences() {
+ TreeMap<String, Boolean> map = new TreeMap<String, Boolean>();
+ map.put("ConveyedElements", Boolean.TRUE);
+
+ map.put("Stereotype", Boolean.TRUE);
+
+ return map;
+ }
+
+ /**
+ * @generated
+ */
+ protected TreeMap<String, String> getLabelRole() {
+ return getStaticLabelRole();
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/InformationItemPreferencePage.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/InformationItemPreferencePage.java
new file mode 100644
index 00000000000..d4cf12f0fa9
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/InformationItemPreferencePage.java
@@ -0,0 +1,64 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.preferences;
+
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CompositeStructureDiagramEditPart;
+import org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorPlugin;
+import org.eclipse.papyrus.preferences.pages.AbstractPapyrusNodePreferencePage;
+import org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper;
+
+/**
+ * @generated
+ */
+public class InformationItemPreferencePage extends AbstractPapyrusNodePreferencePage {
+
+ /**
+ * @generated
+ */
+ public InformationItemPreferencePage() {
+ super();
+ setPreferenceKey(CompositeStructureDiagramEditPart.MODEL_ID + "_InformationItem");
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected String getBundleId() {
+ return UMLDiagramEditorPlugin.ID;
+ }
+
+ /**
+ * @generated
+ */
+ public static void initDefaults(IPreferenceStore store) {
+
+ String key = CompositeStructureDiagramEditPart.MODEL_ID + "_InformationItem";
+ store.setDefault(PreferenceConstantHelper.getElementConstant(key, PreferenceConstantHelper.WIDTH), 80);
+ store.setDefault(PreferenceConstantHelper.getElementConstant(key, PreferenceConstantHelper.HEIGHT), 40);
+
+ //org.eclipse.jface.preference.PreferenceConverter.setDefault(store, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_FILL), new org.eclipse.swt.graphics.RGB(255, 255, 255));
+ //org.eclipse.jface.preference.PreferenceConverter.setDefault(store, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_LINE), new org.eclipse.swt.graphics.RGB(0, 0, 0));
+
+ // Set the default for the gradient
+ //store.setDefault(org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.GRADIENT_POLICY),false);
+ //org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter gradientPreferenceConverter = new org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter(
+ // new org.eclipse.swt.graphics.RGB(255, 255, 255),
+ // new org.eclipse.swt.graphics.RGB(0, 0, 0), 0, 0);
+ //store.setDefault(org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_GRADIENT), gradientPreferenceConverter.getPreferenceValue());
+
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/InstanceValuePreferencePage.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/InstanceValuePreferencePage.java
new file mode 100644
index 00000000000..9abe002ee22
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/InstanceValuePreferencePage.java
@@ -0,0 +1,64 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.preferences;
+
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CompositeStructureDiagramEditPart;
+import org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorPlugin;
+import org.eclipse.papyrus.preferences.pages.AbstractPapyrusNodePreferencePage;
+import org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper;
+
+/**
+ * @generated
+ */
+public class InstanceValuePreferencePage extends AbstractPapyrusNodePreferencePage {
+
+ /**
+ * @generated
+ */
+ public InstanceValuePreferencePage() {
+ super();
+ setPreferenceKey(CompositeStructureDiagramEditPart.MODEL_ID + "_InstanceValue");
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected String getBundleId() {
+ return UMLDiagramEditorPlugin.ID;
+ }
+
+ /**
+ * @generated
+ */
+ public static void initDefaults(IPreferenceStore store) {
+
+ String key = CompositeStructureDiagramEditPart.MODEL_ID + "_InstanceValue";
+ store.setDefault(PreferenceConstantHelper.getElementConstant(key, PreferenceConstantHelper.WIDTH), 40);
+ store.setDefault(PreferenceConstantHelper.getElementConstant(key, PreferenceConstantHelper.HEIGHT), 40);
+
+ //org.eclipse.jface.preference.PreferenceConverter.setDefault(store, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_FILL), new org.eclipse.swt.graphics.RGB(255, 255, 255));
+ //org.eclipse.jface.preference.PreferenceConverter.setDefault(store, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_LINE), new org.eclipse.swt.graphics.RGB(0, 0, 0));
+
+ // Set the default for the gradient
+ //store.setDefault(org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.GRADIENT_POLICY),false);
+ //org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter gradientPreferenceConverter = new org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter(
+ // new org.eclipse.swt.graphics.RGB(255, 255, 255),
+ // new org.eclipse.swt.graphics.RGB(0, 0, 0), 0, 0);
+ //store.setDefault(org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_GRADIENT), gradientPreferenceConverter.getPreferenceValue());
+
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/InteractionConstraintPreferencePage.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/InteractionConstraintPreferencePage.java
new file mode 100644
index 00000000000..a827d3a2a83
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/InteractionConstraintPreferencePage.java
@@ -0,0 +1,64 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.preferences;
+
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CompositeStructureDiagramEditPart;
+import org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorPlugin;
+import org.eclipse.papyrus.preferences.pages.AbstractPapyrusNodePreferencePage;
+import org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper;
+
+/**
+ * @generated
+ */
+public class InteractionConstraintPreferencePage extends AbstractPapyrusNodePreferencePage {
+
+ /**
+ * @generated
+ */
+ public InteractionConstraintPreferencePage() {
+ super();
+ setPreferenceKey(CompositeStructureDiagramEditPart.MODEL_ID + "_InteractionConstraint");
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected String getBundleId() {
+ return UMLDiagramEditorPlugin.ID;
+ }
+
+ /**
+ * @generated
+ */
+ public static void initDefaults(IPreferenceStore store) {
+
+ String key = CompositeStructureDiagramEditPart.MODEL_ID + "_InteractionConstraint";
+ store.setDefault(PreferenceConstantHelper.getElementConstant(key, PreferenceConstantHelper.WIDTH), 40);
+ store.setDefault(PreferenceConstantHelper.getElementConstant(key, PreferenceConstantHelper.HEIGHT), 40);
+
+ //org.eclipse.jface.preference.PreferenceConverter.setDefault(store, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_FILL), new org.eclipse.swt.graphics.RGB(255, 255, 255));
+ //org.eclipse.jface.preference.PreferenceConverter.setDefault(store, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_LINE), new org.eclipse.swt.graphics.RGB(0, 0, 0));
+
+ // Set the default for the gradient
+ //store.setDefault(org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.GRADIENT_POLICY),false);
+ //org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter gradientPreferenceConverter = new org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter(
+ // new org.eclipse.swt.graphics.RGB(255, 255, 255),
+ // new org.eclipse.swt.graphics.RGB(0, 0, 0), 0, 0);
+ //store.setDefault(org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_GRADIENT), gradientPreferenceConverter.getPreferenceValue());
+
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/InteractionPreferencePage.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/InteractionPreferencePage.java
new file mode 100644
index 00000000000..32d24f9e7d9
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/InteractionPreferencePage.java
@@ -0,0 +1,120 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.preferences;
+
+import java.util.Map;
+import java.util.TreeMap;
+
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CompositeStructureDiagramEditPart;
+import org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorPlugin;
+import org.eclipse.papyrus.preferences.pages.AbstractPapyrusNodePreferencePage;
+import org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper;
+
+/**
+ * @generated
+ */
+public class InteractionPreferencePage extends AbstractPapyrusNodePreferencePage {
+
+ /**
+ * @generated
+ */
+ public static final String compartments[] = { "structure" };
+
+ /**
+ * @generated
+ */
+ public InteractionPreferencePage() {
+ super();
+ setPreferenceKey(CompositeStructureDiagramEditPart.MODEL_ID + "_Interaction");
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected String getBundleId() {
+ return UMLDiagramEditorPlugin.ID;
+ }
+
+ /**
+ * @generated
+ */
+ public static void initDefaults(IPreferenceStore store) {
+
+ String key = CompositeStructureDiagramEditPart.MODEL_ID + "_Interaction";
+ store.setDefault(PreferenceConstantHelper.getElementConstant(key, PreferenceConstantHelper.WIDTH), 40);
+ store.setDefault(PreferenceConstantHelper.getElementConstant(key, PreferenceConstantHelper.HEIGHT), 40);
+
+ Map<String, Boolean> map = getStaticCompartmentVisibilityPreferences();
+ for(String name : map.keySet()) {
+ String preferenceName = PreferenceConstantHelper.getLabelElementConstant(key, name, PreferenceConstantHelper.COMPARTMENT_VISIBILITY);
+ store.setDefault(preferenceName, map.get(name));
+ }
+
+ map = getStaticCompartmentTitleVisibilityPreferences();
+ for(String name : map.keySet()) {
+ String preferenceName = PreferenceConstantHelper.getLabelElementConstant(key, name, PreferenceConstantHelper.COMPARTMENT_NAME_VISIBILITY);
+ store.setDefault(preferenceName, map.get(name));
+ }
+
+ //org.eclipse.jface.preference.PreferenceConverter.setDefault(store, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_FILL), new org.eclipse.swt.graphics.RGB(255, 255, 255));
+ //org.eclipse.jface.preference.PreferenceConverter.setDefault(store, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_LINE), new org.eclipse.swt.graphics.RGB(0, 0, 0));
+
+ // Set the default for the gradient
+ //store.setDefault(org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.GRADIENT_POLICY),false);
+ //org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter gradientPreferenceConverter = new org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter(
+ // new org.eclipse.swt.graphics.RGB(255, 255, 255),
+ // new org.eclipse.swt.graphics.RGB(0, 0, 0), 0, 0);
+ //store.setDefault(org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_GRADIENT), gradientPreferenceConverter.getPreferenceValue());
+
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void initializeCompartmentsList() {
+ for(String name : compartments) {
+ this.compartmentsList.add(name);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private static TreeMap<String, Boolean> getStaticCompartmentVisibilityPreferences() {
+ TreeMap<String, Boolean> map = new TreeMap<String, Boolean>();
+ map.put("structure", Boolean.TRUE);
+ return map;
+ }
+
+ /**
+ * @generated
+ */
+ private static TreeMap<String, Boolean> getStaticCompartmentTitleVisibilityPreferences() {
+ TreeMap<String, Boolean> map = new TreeMap<String, Boolean>();
+
+ map.put("structure", Boolean.TRUE);
+ return map;
+ }
+
+ /**
+ * @generated
+ */
+ protected TreeMap<String, Boolean> getCompartmentTitleVisibilityPreferences() {
+ return getStaticCompartmentTitleVisibilityPreferences();
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/InterfacePreferencePage.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/InterfacePreferencePage.java
new file mode 100644
index 00000000000..048ce69ecef
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/InterfacePreferencePage.java
@@ -0,0 +1,64 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.preferences;
+
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CompositeStructureDiagramEditPart;
+import org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorPlugin;
+import org.eclipse.papyrus.preferences.pages.AbstractPapyrusNodePreferencePage;
+import org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper;
+
+/**
+ * @generated
+ */
+public class InterfacePreferencePage extends AbstractPapyrusNodePreferencePage {
+
+ /**
+ * @generated
+ */
+ public InterfacePreferencePage() {
+ super();
+ setPreferenceKey(CompositeStructureDiagramEditPart.MODEL_ID + "_Interface");
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected String getBundleId() {
+ return UMLDiagramEditorPlugin.ID;
+ }
+
+ /**
+ * @generated
+ */
+ public static void initDefaults(IPreferenceStore store) {
+
+ String key = CompositeStructureDiagramEditPart.MODEL_ID + "_Interface";
+ store.setDefault(PreferenceConstantHelper.getElementConstant(key, PreferenceConstantHelper.WIDTH), 40);
+ store.setDefault(PreferenceConstantHelper.getElementConstant(key, PreferenceConstantHelper.HEIGHT), 40);
+
+ //org.eclipse.jface.preference.PreferenceConverter.setDefault(store, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_FILL), new org.eclipse.swt.graphics.RGB(255, 255, 255));
+ //org.eclipse.jface.preference.PreferenceConverter.setDefault(store, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_LINE), new org.eclipse.swt.graphics.RGB(0, 0, 0));
+
+ // Set the default for the gradient
+ //store.setDefault(org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.GRADIENT_POLICY),false);
+ //org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter gradientPreferenceConverter = new org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter(
+ // new org.eclipse.swt.graphics.RGB(255, 255, 255),
+ // new org.eclipse.swt.graphics.RGB(0, 0, 0), 0, 0);
+ //store.setDefault(org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_GRADIENT), gradientPreferenceConverter.getPreferenceValue());
+
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/InterfaceRealizationPreferencePage.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/InterfaceRealizationPreferencePage.java
new file mode 100644
index 00000000000..fc13582c877
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/InterfaceRealizationPreferencePage.java
@@ -0,0 +1,90 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.preferences;
+
+import java.util.Map;
+import java.util.TreeMap;
+
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.papyrus.diagram.common.util.StringComparator;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CompositeStructureDiagramEditPart;
+import org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorPlugin;
+import org.eclipse.papyrus.preferences.pages.AbstractPapyrusLinkPreferencePage;
+import org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper;
+
+/**
+ * @generated
+ */
+public class InterfaceRealizationPreferencePage extends AbstractPapyrusLinkPreferencePage {
+
+ /**
+ * @generated
+ */
+ public InterfaceRealizationPreferencePage() {
+ super();
+ setPreferenceKey(CompositeStructureDiagramEditPart.MODEL_ID + "_InterfaceRealization");
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected String getBundleId() {
+ return UMLDiagramEditorPlugin.ID;
+ }
+
+ /**
+ * @generated
+ */
+ public static void initDefaults(IPreferenceStore store) {
+
+ String key = CompositeStructureDiagramEditPart.MODEL_ID + "_InterfaceRealization";
+ Map<String, Boolean> map = getStaticLabelVisibilityPreferences();
+ for(String role : map.keySet()) {
+ String preferenceName = PreferenceConstantHelper.getLabelElementConstant(key, role, PreferenceConstantHelper.LABEL_VISIBILITY);
+ store.setDefault(preferenceName, map.get(role));
+ }
+
+ }
+
+ /**
+ * @generated
+ */
+ private static TreeMap<String, String> getStaticLabelRole() {
+ TreeMap<String, String> map = new TreeMap<String, String>(new StringComparator());
+ map.put("Name", "");//$NON-NLS-1$ //$NON-NLS-2$
+ map.put("Stereotype", "");//$NON-NLS-1$ //$NON-NLS-2$
+ return map;
+ }
+
+ /**
+ * @generated
+ */
+ private static TreeMap<String, Boolean> getStaticLabelVisibilityPreferences() {
+ TreeMap<String, Boolean> map = new TreeMap<String, Boolean>();
+ map.put("Name", Boolean.TRUE);
+
+ map.put("Stereotype", Boolean.TRUE);
+
+ return map;
+ }
+
+ /**
+ * @generated
+ */
+ protected TreeMap<String, String> getLabelRole() {
+ return getStaticLabelRole();
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/IntervalConstraintPreferencePage.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/IntervalConstraintPreferencePage.java
new file mode 100644
index 00000000000..75909e5d31d
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/IntervalConstraintPreferencePage.java
@@ -0,0 +1,64 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.preferences;
+
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CompositeStructureDiagramEditPart;
+import org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorPlugin;
+import org.eclipse.papyrus.preferences.pages.AbstractPapyrusNodePreferencePage;
+import org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper;
+
+/**
+ * @generated
+ */
+public class IntervalConstraintPreferencePage extends AbstractPapyrusNodePreferencePage {
+
+ /**
+ * @generated
+ */
+ public IntervalConstraintPreferencePage() {
+ super();
+ setPreferenceKey(CompositeStructureDiagramEditPart.MODEL_ID + "_IntervalConstraint");
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected String getBundleId() {
+ return UMLDiagramEditorPlugin.ID;
+ }
+
+ /**
+ * @generated
+ */
+ public static void initDefaults(IPreferenceStore store) {
+
+ String key = CompositeStructureDiagramEditPart.MODEL_ID + "_IntervalConstraint";
+ store.setDefault(PreferenceConstantHelper.getElementConstant(key, PreferenceConstantHelper.WIDTH), 40);
+ store.setDefault(PreferenceConstantHelper.getElementConstant(key, PreferenceConstantHelper.HEIGHT), 40);
+
+ //org.eclipse.jface.preference.PreferenceConverter.setDefault(store, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_FILL), new org.eclipse.swt.graphics.RGB(255, 255, 255));
+ //org.eclipse.jface.preference.PreferenceConverter.setDefault(store, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_LINE), new org.eclipse.swt.graphics.RGB(0, 0, 0));
+
+ // Set the default for the gradient
+ //store.setDefault(org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.GRADIENT_POLICY),false);
+ //org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter gradientPreferenceConverter = new org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter(
+ // new org.eclipse.swt.graphics.RGB(255, 255, 255),
+ // new org.eclipse.swt.graphics.RGB(0, 0, 0), 0, 0);
+ //store.setDefault(org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_GRADIENT), gradientPreferenceConverter.getPreferenceValue());
+
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/IntervalPreferencePage.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/IntervalPreferencePage.java
new file mode 100644
index 00000000000..d39768c5418
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/IntervalPreferencePage.java
@@ -0,0 +1,64 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.preferences;
+
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CompositeStructureDiagramEditPart;
+import org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorPlugin;
+import org.eclipse.papyrus.preferences.pages.AbstractPapyrusNodePreferencePage;
+import org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper;
+
+/**
+ * @generated
+ */
+public class IntervalPreferencePage extends AbstractPapyrusNodePreferencePage {
+
+ /**
+ * @generated
+ */
+ public IntervalPreferencePage() {
+ super();
+ setPreferenceKey(CompositeStructureDiagramEditPart.MODEL_ID + "_Interval");
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected String getBundleId() {
+ return UMLDiagramEditorPlugin.ID;
+ }
+
+ /**
+ * @generated
+ */
+ public static void initDefaults(IPreferenceStore store) {
+
+ String key = CompositeStructureDiagramEditPart.MODEL_ID + "_Interval";
+ store.setDefault(PreferenceConstantHelper.getElementConstant(key, PreferenceConstantHelper.WIDTH), 40);
+ store.setDefault(PreferenceConstantHelper.getElementConstant(key, PreferenceConstantHelper.HEIGHT), 40);
+
+ //org.eclipse.jface.preference.PreferenceConverter.setDefault(store, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_FILL), new org.eclipse.swt.graphics.RGB(255, 255, 255));
+ //org.eclipse.jface.preference.PreferenceConverter.setDefault(store, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_LINE), new org.eclipse.swt.graphics.RGB(0, 0, 0));
+
+ // Set the default for the gradient
+ //store.setDefault(org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.GRADIENT_POLICY),false);
+ //org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter gradientPreferenceConverter = new org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter(
+ // new org.eclipse.swt.graphics.RGB(255, 255, 255),
+ // new org.eclipse.swt.graphics.RGB(0, 0, 0), 0, 0);
+ //store.setDefault(org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_GRADIENT), gradientPreferenceConverter.getPreferenceValue());
+
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/LiteralBooleanPreferencePage.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/LiteralBooleanPreferencePage.java
new file mode 100644
index 00000000000..f62e2dd3fcf
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/LiteralBooleanPreferencePage.java
@@ -0,0 +1,64 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.preferences;
+
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CompositeStructureDiagramEditPart;
+import org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorPlugin;
+import org.eclipse.papyrus.preferences.pages.AbstractPapyrusNodePreferencePage;
+import org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper;
+
+/**
+ * @generated
+ */
+public class LiteralBooleanPreferencePage extends AbstractPapyrusNodePreferencePage {
+
+ /**
+ * @generated
+ */
+ public LiteralBooleanPreferencePage() {
+ super();
+ setPreferenceKey(CompositeStructureDiagramEditPart.MODEL_ID + "_LiteralBoolean");
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected String getBundleId() {
+ return UMLDiagramEditorPlugin.ID;
+ }
+
+ /**
+ * @generated
+ */
+ public static void initDefaults(IPreferenceStore store) {
+
+ String key = CompositeStructureDiagramEditPart.MODEL_ID + "_LiteralBoolean";
+ store.setDefault(PreferenceConstantHelper.getElementConstant(key, PreferenceConstantHelper.WIDTH), 40);
+ store.setDefault(PreferenceConstantHelper.getElementConstant(key, PreferenceConstantHelper.HEIGHT), 40);
+
+ //org.eclipse.jface.preference.PreferenceConverter.setDefault(store, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_FILL), new org.eclipse.swt.graphics.RGB(255, 255, 255));
+ //org.eclipse.jface.preference.PreferenceConverter.setDefault(store, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_LINE), new org.eclipse.swt.graphics.RGB(0, 0, 0));
+
+ // Set the default for the gradient
+ //store.setDefault(org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.GRADIENT_POLICY),false);
+ //org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter gradientPreferenceConverter = new org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter(
+ // new org.eclipse.swt.graphics.RGB(255, 255, 255),
+ // new org.eclipse.swt.graphics.RGB(0, 0, 0), 0, 0);
+ //store.setDefault(org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_GRADIENT), gradientPreferenceConverter.getPreferenceValue());
+
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/LiteralIntegerPreferencePage.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/LiteralIntegerPreferencePage.java
new file mode 100644
index 00000000000..00aece6e80e
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/LiteralIntegerPreferencePage.java
@@ -0,0 +1,64 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.preferences;
+
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CompositeStructureDiagramEditPart;
+import org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorPlugin;
+import org.eclipse.papyrus.preferences.pages.AbstractPapyrusNodePreferencePage;
+import org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper;
+
+/**
+ * @generated
+ */
+public class LiteralIntegerPreferencePage extends AbstractPapyrusNodePreferencePage {
+
+ /**
+ * @generated
+ */
+ public LiteralIntegerPreferencePage() {
+ super();
+ setPreferenceKey(CompositeStructureDiagramEditPart.MODEL_ID + "_LiteralInteger");
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected String getBundleId() {
+ return UMLDiagramEditorPlugin.ID;
+ }
+
+ /**
+ * @generated
+ */
+ public static void initDefaults(IPreferenceStore store) {
+
+ String key = CompositeStructureDiagramEditPart.MODEL_ID + "_LiteralInteger";
+ store.setDefault(PreferenceConstantHelper.getElementConstant(key, PreferenceConstantHelper.WIDTH), 40);
+ store.setDefault(PreferenceConstantHelper.getElementConstant(key, PreferenceConstantHelper.HEIGHT), 40);
+
+ //org.eclipse.jface.preference.PreferenceConverter.setDefault(store, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_FILL), new org.eclipse.swt.graphics.RGB(255, 255, 255));
+ //org.eclipse.jface.preference.PreferenceConverter.setDefault(store, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_LINE), new org.eclipse.swt.graphics.RGB(0, 0, 0));
+
+ // Set the default for the gradient
+ //store.setDefault(org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.GRADIENT_POLICY),false);
+ //org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter gradientPreferenceConverter = new org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter(
+ // new org.eclipse.swt.graphics.RGB(255, 255, 255),
+ // new org.eclipse.swt.graphics.RGB(0, 0, 0), 0, 0);
+ //store.setDefault(org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_GRADIENT), gradientPreferenceConverter.getPreferenceValue());
+
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/LiteralNullPreferencePage.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/LiteralNullPreferencePage.java
new file mode 100644
index 00000000000..2faa5470aa1
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/LiteralNullPreferencePage.java
@@ -0,0 +1,64 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.preferences;
+
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CompositeStructureDiagramEditPart;
+import org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorPlugin;
+import org.eclipse.papyrus.preferences.pages.AbstractPapyrusNodePreferencePage;
+import org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper;
+
+/**
+ * @generated
+ */
+public class LiteralNullPreferencePage extends AbstractPapyrusNodePreferencePage {
+
+ /**
+ * @generated
+ */
+ public LiteralNullPreferencePage() {
+ super();
+ setPreferenceKey(CompositeStructureDiagramEditPart.MODEL_ID + "_LiteralNull");
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected String getBundleId() {
+ return UMLDiagramEditorPlugin.ID;
+ }
+
+ /**
+ * @generated
+ */
+ public static void initDefaults(IPreferenceStore store) {
+
+ String key = CompositeStructureDiagramEditPart.MODEL_ID + "_LiteralNull";
+ store.setDefault(PreferenceConstantHelper.getElementConstant(key, PreferenceConstantHelper.WIDTH), 40);
+ store.setDefault(PreferenceConstantHelper.getElementConstant(key, PreferenceConstantHelper.HEIGHT), 40);
+
+ //org.eclipse.jface.preference.PreferenceConverter.setDefault(store, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_FILL), new org.eclipse.swt.graphics.RGB(255, 255, 255));
+ //org.eclipse.jface.preference.PreferenceConverter.setDefault(store, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_LINE), new org.eclipse.swt.graphics.RGB(0, 0, 0));
+
+ // Set the default for the gradient
+ //store.setDefault(org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.GRADIENT_POLICY),false);
+ //org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter gradientPreferenceConverter = new org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter(
+ // new org.eclipse.swt.graphics.RGB(255, 255, 255),
+ // new org.eclipse.swt.graphics.RGB(0, 0, 0), 0, 0);
+ //store.setDefault(org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_GRADIENT), gradientPreferenceConverter.getPreferenceValue());
+
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/LiteralStringPreferencePage.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/LiteralStringPreferencePage.java
new file mode 100644
index 00000000000..9fccd2ad694
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/LiteralStringPreferencePage.java
@@ -0,0 +1,64 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.preferences;
+
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CompositeStructureDiagramEditPart;
+import org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorPlugin;
+import org.eclipse.papyrus.preferences.pages.AbstractPapyrusNodePreferencePage;
+import org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper;
+
+/**
+ * @generated
+ */
+public class LiteralStringPreferencePage extends AbstractPapyrusNodePreferencePage {
+
+ /**
+ * @generated
+ */
+ public LiteralStringPreferencePage() {
+ super();
+ setPreferenceKey(CompositeStructureDiagramEditPart.MODEL_ID + "_LiteralString");
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected String getBundleId() {
+ return UMLDiagramEditorPlugin.ID;
+ }
+
+ /**
+ * @generated
+ */
+ public static void initDefaults(IPreferenceStore store) {
+
+ String key = CompositeStructureDiagramEditPart.MODEL_ID + "_LiteralString";
+ store.setDefault(PreferenceConstantHelper.getElementConstant(key, PreferenceConstantHelper.WIDTH), 40);
+ store.setDefault(PreferenceConstantHelper.getElementConstant(key, PreferenceConstantHelper.HEIGHT), 40);
+
+ //org.eclipse.jface.preference.PreferenceConverter.setDefault(store, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_FILL), new org.eclipse.swt.graphics.RGB(255, 255, 255));
+ //org.eclipse.jface.preference.PreferenceConverter.setDefault(store, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_LINE), new org.eclipse.swt.graphics.RGB(0, 0, 0));
+
+ // Set the default for the gradient
+ //store.setDefault(org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.GRADIENT_POLICY),false);
+ //org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter gradientPreferenceConverter = new org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter(
+ // new org.eclipse.swt.graphics.RGB(255, 255, 255),
+ // new org.eclipse.swt.graphics.RGB(0, 0, 0), 0, 0);
+ //store.setDefault(org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_GRADIENT), gradientPreferenceConverter.getPreferenceValue());
+
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/LiteralUnlimitedNaturalPreferencePage.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/LiteralUnlimitedNaturalPreferencePage.java
new file mode 100644
index 00000000000..b7cb470354a
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/LiteralUnlimitedNaturalPreferencePage.java
@@ -0,0 +1,64 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.preferences;
+
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CompositeStructureDiagramEditPart;
+import org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorPlugin;
+import org.eclipse.papyrus.preferences.pages.AbstractPapyrusNodePreferencePage;
+import org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper;
+
+/**
+ * @generated
+ */
+public class LiteralUnlimitedNaturalPreferencePage extends AbstractPapyrusNodePreferencePage {
+
+ /**
+ * @generated
+ */
+ public LiteralUnlimitedNaturalPreferencePage() {
+ super();
+ setPreferenceKey(CompositeStructureDiagramEditPart.MODEL_ID + "_LiteralUnlimitedNatural");
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected String getBundleId() {
+ return UMLDiagramEditorPlugin.ID;
+ }
+
+ /**
+ * @generated
+ */
+ public static void initDefaults(IPreferenceStore store) {
+
+ String key = CompositeStructureDiagramEditPart.MODEL_ID + "_LiteralUnlimitedNatural";
+ store.setDefault(PreferenceConstantHelper.getElementConstant(key, PreferenceConstantHelper.WIDTH), 40);
+ store.setDefault(PreferenceConstantHelper.getElementConstant(key, PreferenceConstantHelper.HEIGHT), 40);
+
+ //org.eclipse.jface.preference.PreferenceConverter.setDefault(store, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_FILL), new org.eclipse.swt.graphics.RGB(255, 255, 255));
+ //org.eclipse.jface.preference.PreferenceConverter.setDefault(store, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_LINE), new org.eclipse.swt.graphics.RGB(0, 0, 0));
+
+ // Set the default for the gradient
+ //store.setDefault(org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.GRADIENT_POLICY),false);
+ //org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter gradientPreferenceConverter = new org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter(
+ // new org.eclipse.swt.graphics.RGB(255, 255, 255),
+ // new org.eclipse.swt.graphics.RGB(0, 0, 0), 0, 0);
+ //store.setDefault(org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_GRADIENT), gradientPreferenceConverter.getPreferenceValue());
+
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/ManifestationPreferencePage.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/ManifestationPreferencePage.java
new file mode 100644
index 00000000000..40d47077180
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/ManifestationPreferencePage.java
@@ -0,0 +1,90 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.preferences;
+
+import java.util.Map;
+import java.util.TreeMap;
+
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.papyrus.diagram.common.util.StringComparator;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CompositeStructureDiagramEditPart;
+import org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorPlugin;
+import org.eclipse.papyrus.preferences.pages.AbstractPapyrusLinkPreferencePage;
+import org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper;
+
+/**
+ * @generated
+ */
+public class ManifestationPreferencePage extends AbstractPapyrusLinkPreferencePage {
+
+ /**
+ * @generated
+ */
+ public ManifestationPreferencePage() {
+ super();
+ setPreferenceKey(CompositeStructureDiagramEditPart.MODEL_ID + "_Manifestation");
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected String getBundleId() {
+ return UMLDiagramEditorPlugin.ID;
+ }
+
+ /**
+ * @generated
+ */
+ public static void initDefaults(IPreferenceStore store) {
+
+ String key = CompositeStructureDiagramEditPart.MODEL_ID + "_Manifestation";
+ Map<String, Boolean> map = getStaticLabelVisibilityPreferences();
+ for(String role : map.keySet()) {
+ String preferenceName = PreferenceConstantHelper.getLabelElementConstant(key, role, PreferenceConstantHelper.LABEL_VISIBILITY);
+ store.setDefault(preferenceName, map.get(role));
+ }
+
+ }
+
+ /**
+ * @generated
+ */
+ private static TreeMap<String, String> getStaticLabelRole() {
+ TreeMap<String, String> map = new TreeMap<String, String>(new StringComparator());
+ map.put("Name", "");//$NON-NLS-1$ //$NON-NLS-2$
+ map.put("Stereotype", "");//$NON-NLS-1$ //$NON-NLS-2$
+ return map;
+ }
+
+ /**
+ * @generated
+ */
+ private static TreeMap<String, Boolean> getStaticLabelVisibilityPreferences() {
+ TreeMap<String, Boolean> map = new TreeMap<String, Boolean>();
+ map.put("Name", Boolean.TRUE);
+
+ map.put("Stereotype", Boolean.TRUE);
+
+ return map;
+ }
+
+ /**
+ * @generated
+ */
+ protected TreeMap<String, String> getLabelRole() {
+ return getStaticLabelRole();
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/NodePreferencePage.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/NodePreferencePage.java
new file mode 100644
index 00000000000..c277ae86d59
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/NodePreferencePage.java
@@ -0,0 +1,120 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.preferences;
+
+import java.util.Map;
+import java.util.TreeMap;
+
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CompositeStructureDiagramEditPart;
+import org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorPlugin;
+import org.eclipse.papyrus.preferences.pages.AbstractPapyrusNodePreferencePage;
+import org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper;
+
+/**
+ * @generated
+ */
+public class NodePreferencePage extends AbstractPapyrusNodePreferencePage {
+
+ /**
+ * @generated
+ */
+ public static final String compartments[] = { "structure" };
+
+ /**
+ * @generated
+ */
+ public NodePreferencePage() {
+ super();
+ setPreferenceKey(CompositeStructureDiagramEditPart.MODEL_ID + "_Node");
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected String getBundleId() {
+ return UMLDiagramEditorPlugin.ID;
+ }
+
+ /**
+ * @generated
+ */
+ public static void initDefaults(IPreferenceStore store) {
+
+ String key = CompositeStructureDiagramEditPart.MODEL_ID + "_Node";
+ store.setDefault(PreferenceConstantHelper.getElementConstant(key, PreferenceConstantHelper.WIDTH), 40);
+ store.setDefault(PreferenceConstantHelper.getElementConstant(key, PreferenceConstantHelper.HEIGHT), 40);
+
+ Map<String, Boolean> map = getStaticCompartmentVisibilityPreferences();
+ for(String name : map.keySet()) {
+ String preferenceName = PreferenceConstantHelper.getLabelElementConstant(key, name, PreferenceConstantHelper.COMPARTMENT_VISIBILITY);
+ store.setDefault(preferenceName, map.get(name));
+ }
+
+ map = getStaticCompartmentTitleVisibilityPreferences();
+ for(String name : map.keySet()) {
+ String preferenceName = PreferenceConstantHelper.getLabelElementConstant(key, name, PreferenceConstantHelper.COMPARTMENT_NAME_VISIBILITY);
+ store.setDefault(preferenceName, map.get(name));
+ }
+
+ //org.eclipse.jface.preference.PreferenceConverter.setDefault(store, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_FILL), new org.eclipse.swt.graphics.RGB(255, 255, 255));
+ //org.eclipse.jface.preference.PreferenceConverter.setDefault(store, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_LINE), new org.eclipse.swt.graphics.RGB(0, 0, 0));
+
+ // Set the default for the gradient
+ //store.setDefault(org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.GRADIENT_POLICY),false);
+ //org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter gradientPreferenceConverter = new org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter(
+ // new org.eclipse.swt.graphics.RGB(255, 255, 255),
+ // new org.eclipse.swt.graphics.RGB(0, 0, 0), 0, 0);
+ //store.setDefault(org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_GRADIENT), gradientPreferenceConverter.getPreferenceValue());
+
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void initializeCompartmentsList() {
+ for(String name : compartments) {
+ this.compartmentsList.add(name);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private static TreeMap<String, Boolean> getStaticCompartmentVisibilityPreferences() {
+ TreeMap<String, Boolean> map = new TreeMap<String, Boolean>();
+ map.put("structure", Boolean.TRUE);
+ return map;
+ }
+
+ /**
+ * @generated
+ */
+ private static TreeMap<String, Boolean> getStaticCompartmentTitleVisibilityPreferences() {
+ TreeMap<String, Boolean> map = new TreeMap<String, Boolean>();
+
+ map.put("structure", Boolean.TRUE);
+ return map;
+ }
+
+ /**
+ * @generated
+ */
+ protected TreeMap<String, Boolean> getCompartmentTitleVisibilityPreferences() {
+ return getStaticCompartmentTitleVisibilityPreferences();
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/OpaqueBehaviorPreferencePage.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/OpaqueBehaviorPreferencePage.java
new file mode 100644
index 00000000000..3a6fb8b0f78
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/OpaqueBehaviorPreferencePage.java
@@ -0,0 +1,120 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.preferences;
+
+import java.util.Map;
+import java.util.TreeMap;
+
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CompositeStructureDiagramEditPart;
+import org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorPlugin;
+import org.eclipse.papyrus.preferences.pages.AbstractPapyrusNodePreferencePage;
+import org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper;
+
+/**
+ * @generated
+ */
+public class OpaqueBehaviorPreferencePage extends AbstractPapyrusNodePreferencePage {
+
+ /**
+ * @generated
+ */
+ public static final String compartments[] = { "structure" };
+
+ /**
+ * @generated
+ */
+ public OpaqueBehaviorPreferencePage() {
+ super();
+ setPreferenceKey(CompositeStructureDiagramEditPart.MODEL_ID + "_OpaqueBehavior");
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected String getBundleId() {
+ return UMLDiagramEditorPlugin.ID;
+ }
+
+ /**
+ * @generated
+ */
+ public static void initDefaults(IPreferenceStore store) {
+
+ String key = CompositeStructureDiagramEditPart.MODEL_ID + "_OpaqueBehavior";
+ store.setDefault(PreferenceConstantHelper.getElementConstant(key, PreferenceConstantHelper.WIDTH), 40);
+ store.setDefault(PreferenceConstantHelper.getElementConstant(key, PreferenceConstantHelper.HEIGHT), 40);
+
+ Map<String, Boolean> map = getStaticCompartmentVisibilityPreferences();
+ for(String name : map.keySet()) {
+ String preferenceName = PreferenceConstantHelper.getLabelElementConstant(key, name, PreferenceConstantHelper.COMPARTMENT_VISIBILITY);
+ store.setDefault(preferenceName, map.get(name));
+ }
+
+ map = getStaticCompartmentTitleVisibilityPreferences();
+ for(String name : map.keySet()) {
+ String preferenceName = PreferenceConstantHelper.getLabelElementConstant(key, name, PreferenceConstantHelper.COMPARTMENT_NAME_VISIBILITY);
+ store.setDefault(preferenceName, map.get(name));
+ }
+
+ //org.eclipse.jface.preference.PreferenceConverter.setDefault(store, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_FILL), new org.eclipse.swt.graphics.RGB(255, 255, 255));
+ //org.eclipse.jface.preference.PreferenceConverter.setDefault(store, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_LINE), new org.eclipse.swt.graphics.RGB(0, 0, 0));
+
+ // Set the default for the gradient
+ //store.setDefault(org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.GRADIENT_POLICY),false);
+ //org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter gradientPreferenceConverter = new org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter(
+ // new org.eclipse.swt.graphics.RGB(255, 255, 255),
+ // new org.eclipse.swt.graphics.RGB(0, 0, 0), 0, 0);
+ //store.setDefault(org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_GRADIENT), gradientPreferenceConverter.getPreferenceValue());
+
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void initializeCompartmentsList() {
+ for(String name : compartments) {
+ this.compartmentsList.add(name);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private static TreeMap<String, Boolean> getStaticCompartmentVisibilityPreferences() {
+ TreeMap<String, Boolean> map = new TreeMap<String, Boolean>();
+ map.put("structure", Boolean.TRUE);
+ return map;
+ }
+
+ /**
+ * @generated
+ */
+ private static TreeMap<String, Boolean> getStaticCompartmentTitleVisibilityPreferences() {
+ TreeMap<String, Boolean> map = new TreeMap<String, Boolean>();
+
+ map.put("structure", Boolean.TRUE);
+ return map;
+ }
+
+ /**
+ * @generated
+ */
+ protected TreeMap<String, Boolean> getCompartmentTitleVisibilityPreferences() {
+ return getStaticCompartmentTitleVisibilityPreferences();
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/OpaqueExpressionPreferencePage.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/OpaqueExpressionPreferencePage.java
new file mode 100644
index 00000000000..e2210e9f4bf
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/OpaqueExpressionPreferencePage.java
@@ -0,0 +1,64 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.preferences;
+
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CompositeStructureDiagramEditPart;
+import org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorPlugin;
+import org.eclipse.papyrus.preferences.pages.AbstractPapyrusNodePreferencePage;
+import org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper;
+
+/**
+ * @generated
+ */
+public class OpaqueExpressionPreferencePage extends AbstractPapyrusNodePreferencePage {
+
+ /**
+ * @generated
+ */
+ public OpaqueExpressionPreferencePage() {
+ super();
+ setPreferenceKey(CompositeStructureDiagramEditPart.MODEL_ID + "_OpaqueExpression");
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected String getBundleId() {
+ return UMLDiagramEditorPlugin.ID;
+ }
+
+ /**
+ * @generated
+ */
+ public static void initDefaults(IPreferenceStore store) {
+
+ String key = CompositeStructureDiagramEditPart.MODEL_ID + "_OpaqueExpression";
+ store.setDefault(PreferenceConstantHelper.getElementConstant(key, PreferenceConstantHelper.WIDTH), 40);
+ store.setDefault(PreferenceConstantHelper.getElementConstant(key, PreferenceConstantHelper.HEIGHT), 40);
+
+ //org.eclipse.jface.preference.PreferenceConverter.setDefault(store, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_FILL), new org.eclipse.swt.graphics.RGB(255, 255, 255));
+ //org.eclipse.jface.preference.PreferenceConverter.setDefault(store, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_LINE), new org.eclipse.swt.graphics.RGB(0, 0, 0));
+
+ // Set the default for the gradient
+ //store.setDefault(org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.GRADIENT_POLICY),false);
+ //org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter gradientPreferenceConverter = new org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter(
+ // new org.eclipse.swt.graphics.RGB(255, 255, 255),
+ // new org.eclipse.swt.graphics.RGB(0, 0, 0), 0, 0);
+ //store.setDefault(org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_GRADIENT), gradientPreferenceConverter.getPreferenceValue());
+
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/OperationPreferencePage.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/OperationPreferencePage.java
new file mode 100644
index 00000000000..3ffe89dfb89
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/OperationPreferencePage.java
@@ -0,0 +1,64 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.preferences;
+
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CompositeStructureDiagramEditPart;
+import org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorPlugin;
+import org.eclipse.papyrus.preferences.pages.AbstractPapyrusNodePreferencePage;
+import org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper;
+
+/**
+ * @generated
+ */
+public class OperationPreferencePage extends AbstractPapyrusNodePreferencePage {
+
+ /**
+ * @generated
+ */
+ public OperationPreferencePage() {
+ super();
+ setPreferenceKey(CompositeStructureDiagramEditPart.MODEL_ID + "_Operation");
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected String getBundleId() {
+ return UMLDiagramEditorPlugin.ID;
+ }
+
+ /**
+ * @generated
+ */
+ public static void initDefaults(IPreferenceStore store) {
+
+ String key = CompositeStructureDiagramEditPart.MODEL_ID + "_Operation";
+ store.setDefault(PreferenceConstantHelper.getElementConstant(key, PreferenceConstantHelper.WIDTH), 40);
+ store.setDefault(PreferenceConstantHelper.getElementConstant(key, PreferenceConstantHelper.HEIGHT), 40);
+
+ //org.eclipse.jface.preference.PreferenceConverter.setDefault(store, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_FILL), new org.eclipse.swt.graphics.RGB(255, 255, 255));
+ //org.eclipse.jface.preference.PreferenceConverter.setDefault(store, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_LINE), new org.eclipse.swt.graphics.RGB(0, 0, 0));
+
+ // Set the default for the gradient
+ //store.setDefault(org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.GRADIENT_POLICY),false);
+ //org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter gradientPreferenceConverter = new org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter(
+ // new org.eclipse.swt.graphics.RGB(255, 255, 255),
+ // new org.eclipse.swt.graphics.RGB(0, 0, 0), 0, 0);
+ //store.setDefault(org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_GRADIENT), gradientPreferenceConverter.getPreferenceValue());
+
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/ParameterPreferencePage.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/ParameterPreferencePage.java
new file mode 100644
index 00000000000..39a53c5dd14
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/ParameterPreferencePage.java
@@ -0,0 +1,102 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.preferences;
+
+import java.util.Map;
+import java.util.TreeMap;
+
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.papyrus.diagram.common.util.StringComparator;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CompositeStructureDiagramEditPart;
+import org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorPlugin;
+import org.eclipse.papyrus.preferences.pages.AbstractPapyrusNodePreferencePage;
+import org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper;
+
+/**
+ * @generated
+ */
+public class ParameterPreferencePage extends AbstractPapyrusNodePreferencePage {
+
+ /**
+ * @generated
+ */
+ public ParameterPreferencePage() {
+ super();
+ setPreferenceKey(CompositeStructureDiagramEditPart.MODEL_ID + "_Parameter");
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected String getBundleId() {
+ return UMLDiagramEditorPlugin.ID;
+ }
+
+ /**
+ * @generated
+ */
+ public static void initDefaults(IPreferenceStore store) {
+
+ String key = CompositeStructureDiagramEditPart.MODEL_ID + "_Parameter";
+ store.setDefault(PreferenceConstantHelper.getElementConstant(key, PreferenceConstantHelper.WIDTH), 20);
+ store.setDefault(PreferenceConstantHelper.getElementConstant(key, PreferenceConstantHelper.HEIGHT), 20);
+
+ Map<String, Boolean> map = getStaticLabelVisibilityPreferences();
+
+ for(String role : map.keySet()) {
+ String preferenceName = PreferenceConstantHelper.getLabelElementConstant(key, role, PreferenceConstantHelper.LABEL_VISIBILITY);
+ store.setDefault(preferenceName, map.get(role));
+ }
+
+ //org.eclipse.jface.preference.PreferenceConverter.setDefault(store, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_FILL), new org.eclipse.swt.graphics.RGB(255, 255, 255));
+ //org.eclipse.jface.preference.PreferenceConverter.setDefault(store, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_LINE), new org.eclipse.swt.graphics.RGB(0, 0, 0));
+
+ // Set the default for the gradient
+ //store.setDefault(org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.GRADIENT_POLICY),false);
+ //org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter gradientPreferenceConverter = new org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter(
+ // new org.eclipse.swt.graphics.RGB(255, 255, 255),
+ // new org.eclipse.swt.graphics.RGB(0, 0, 0), 0, 0);
+ //store.setDefault(org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_GRADIENT), gradientPreferenceConverter.getPreferenceValue());
+
+ }
+
+ /**
+ * @generated
+ */
+ private static TreeMap<String, String> getStaticLabelRole() {
+ TreeMap<String, String> map = new TreeMap<String, String>(new StringComparator());
+ map.put("Name", "");//$NON-NLS-1$
+ map.put("Stereotype", "");//$NON-NLS-1$
+ return map;
+ }
+
+ /**
+ * @generated
+ */
+ private static TreeMap<String, Boolean> getStaticLabelVisibilityPreferences() {
+ TreeMap<String, Boolean> map = new TreeMap<String, Boolean>();
+ map.put("Name", Boolean.TRUE);
+ map.put("Stereotype", Boolean.TRUE);
+ return map;
+ }
+
+ /**
+ * @generated
+ */
+ protected TreeMap<String, String> getLabelRole() {
+ return getStaticLabelRole();
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/PortPreferencePage.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/PortPreferencePage.java
new file mode 100644
index 00000000000..802556ab2c3
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/PortPreferencePage.java
@@ -0,0 +1,102 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.preferences;
+
+import java.util.Map;
+import java.util.TreeMap;
+
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.papyrus.diagram.common.util.StringComparator;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CompositeStructureDiagramEditPart;
+import org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorPlugin;
+import org.eclipse.papyrus.preferences.pages.AbstractPapyrusNodePreferencePage;
+import org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper;
+
+/**
+ * @generated
+ */
+public class PortPreferencePage extends AbstractPapyrusNodePreferencePage {
+
+ /**
+ * @generated
+ */
+ public PortPreferencePage() {
+ super();
+ setPreferenceKey(CompositeStructureDiagramEditPart.MODEL_ID + "_Port");
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected String getBundleId() {
+ return UMLDiagramEditorPlugin.ID;
+ }
+
+ /**
+ * @generated
+ */
+ public static void initDefaults(IPreferenceStore store) {
+
+ String key = CompositeStructureDiagramEditPart.MODEL_ID + "_Port";
+ store.setDefault(PreferenceConstantHelper.getElementConstant(key, PreferenceConstantHelper.WIDTH), 20);
+ store.setDefault(PreferenceConstantHelper.getElementConstant(key, PreferenceConstantHelper.HEIGHT), 20);
+
+ Map<String, Boolean> map = getStaticLabelVisibilityPreferences();
+
+ for(String role : map.keySet()) {
+ String preferenceName = PreferenceConstantHelper.getLabelElementConstant(key, role, PreferenceConstantHelper.LABEL_VISIBILITY);
+ store.setDefault(preferenceName, map.get(role));
+ }
+
+ //org.eclipse.jface.preference.PreferenceConverter.setDefault(store, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_FILL), new org.eclipse.swt.graphics.RGB(255, 255, 255));
+ //org.eclipse.jface.preference.PreferenceConverter.setDefault(store, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_LINE), new org.eclipse.swt.graphics.RGB(0, 0, 0));
+
+ // Set the default for the gradient
+ //store.setDefault(org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.GRADIENT_POLICY),false);
+ //org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter gradientPreferenceConverter = new org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter(
+ // new org.eclipse.swt.graphics.RGB(255, 255, 255),
+ // new org.eclipse.swt.graphics.RGB(0, 0, 0), 0, 0);
+ //store.setDefault(org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_GRADIENT), gradientPreferenceConverter.getPreferenceValue());
+
+ }
+
+ /**
+ * @generated
+ */
+ private static TreeMap<String, String> getStaticLabelRole() {
+ TreeMap<String, String> map = new TreeMap<String, String>(new StringComparator());
+ map.put("Name", "");//$NON-NLS-1$
+ map.put("Stereotype", "");//$NON-NLS-1$
+ return map;
+ }
+
+ /**
+ * @generated
+ */
+ private static TreeMap<String, Boolean> getStaticLabelVisibilityPreferences() {
+ TreeMap<String, Boolean> map = new TreeMap<String, Boolean>();
+ map.put("Name", Boolean.TRUE);
+ map.put("Stereotype", Boolean.TRUE);
+ return map;
+ }
+
+ /**
+ * @generated
+ */
+ protected TreeMap<String, String> getLabelRole() {
+ return getStaticLabelRole();
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/PrimitiveTypePreferencePage.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/PrimitiveTypePreferencePage.java
new file mode 100644
index 00000000000..5f7d1438a41
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/PrimitiveTypePreferencePage.java
@@ -0,0 +1,64 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.preferences;
+
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CompositeStructureDiagramEditPart;
+import org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorPlugin;
+import org.eclipse.papyrus.preferences.pages.AbstractPapyrusNodePreferencePage;
+import org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper;
+
+/**
+ * @generated
+ */
+public class PrimitiveTypePreferencePage extends AbstractPapyrusNodePreferencePage {
+
+ /**
+ * @generated
+ */
+ public PrimitiveTypePreferencePage() {
+ super();
+ setPreferenceKey(CompositeStructureDiagramEditPart.MODEL_ID + "_PrimitiveType");
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected String getBundleId() {
+ return UMLDiagramEditorPlugin.ID;
+ }
+
+ /**
+ * @generated
+ */
+ public static void initDefaults(IPreferenceStore store) {
+
+ String key = CompositeStructureDiagramEditPart.MODEL_ID + "_PrimitiveType";
+ store.setDefault(PreferenceConstantHelper.getElementConstant(key, PreferenceConstantHelper.WIDTH), 40);
+ store.setDefault(PreferenceConstantHelper.getElementConstant(key, PreferenceConstantHelper.HEIGHT), 40);
+
+ //org.eclipse.jface.preference.PreferenceConverter.setDefault(store, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_FILL), new org.eclipse.swt.graphics.RGB(255, 255, 255));
+ //org.eclipse.jface.preference.PreferenceConverter.setDefault(store, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_LINE), new org.eclipse.swt.graphics.RGB(0, 0, 0));
+
+ // Set the default for the gradient
+ //store.setDefault(org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.GRADIENT_POLICY),false);
+ //org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter gradientPreferenceConverter = new org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter(
+ // new org.eclipse.swt.graphics.RGB(255, 255, 255),
+ // new org.eclipse.swt.graphics.RGB(0, 0, 0), 0, 0);
+ //store.setDefault(org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_GRADIENT), gradientPreferenceConverter.getPreferenceValue());
+
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/PropertyPreferencePage.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/PropertyPreferencePage.java
new file mode 100644
index 00000000000..351118718a6
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/PropertyPreferencePage.java
@@ -0,0 +1,120 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.preferences;
+
+import java.util.Map;
+import java.util.TreeMap;
+
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CompositeStructureDiagramEditPart;
+import org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorPlugin;
+import org.eclipse.papyrus.preferences.pages.AbstractPapyrusNodePreferencePage;
+import org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper;
+
+/**
+ * @generated
+ */
+public class PropertyPreferencePage extends AbstractPapyrusNodePreferencePage {
+
+ /**
+ * @generated
+ */
+ public static final String compartments[] = { "structure" };
+
+ /**
+ * @generated
+ */
+ public PropertyPreferencePage() {
+ super();
+ setPreferenceKey(CompositeStructureDiagramEditPart.MODEL_ID + "_Property");
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected String getBundleId() {
+ return UMLDiagramEditorPlugin.ID;
+ }
+
+ /**
+ * @generated
+ */
+ public static void initDefaults(IPreferenceStore store) {
+
+ String key = CompositeStructureDiagramEditPart.MODEL_ID + "_Property";
+ store.setDefault(PreferenceConstantHelper.getElementConstant(key, PreferenceConstantHelper.WIDTH), 40);
+ store.setDefault(PreferenceConstantHelper.getElementConstant(key, PreferenceConstantHelper.HEIGHT), 40);
+
+ Map<String, Boolean> map = getStaticCompartmentVisibilityPreferences();
+ for(String name : map.keySet()) {
+ String preferenceName = PreferenceConstantHelper.getLabelElementConstant(key, name, PreferenceConstantHelper.COMPARTMENT_VISIBILITY);
+ store.setDefault(preferenceName, map.get(name));
+ }
+
+ map = getStaticCompartmentTitleVisibilityPreferences();
+ for(String name : map.keySet()) {
+ String preferenceName = PreferenceConstantHelper.getLabelElementConstant(key, name, PreferenceConstantHelper.COMPARTMENT_NAME_VISIBILITY);
+ store.setDefault(preferenceName, map.get(name));
+ }
+
+ //org.eclipse.jface.preference.PreferenceConverter.setDefault(store, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_FILL), new org.eclipse.swt.graphics.RGB(255, 255, 255));
+ //org.eclipse.jface.preference.PreferenceConverter.setDefault(store, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_LINE), new org.eclipse.swt.graphics.RGB(0, 0, 0));
+
+ // Set the default for the gradient
+ //store.setDefault(org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.GRADIENT_POLICY),false);
+ //org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter gradientPreferenceConverter = new org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter(
+ // new org.eclipse.swt.graphics.RGB(255, 255, 255),
+ // new org.eclipse.swt.graphics.RGB(0, 0, 0), 0, 0);
+ //store.setDefault(org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_GRADIENT), gradientPreferenceConverter.getPreferenceValue());
+
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void initializeCompartmentsList() {
+ for(String name : compartments) {
+ this.compartmentsList.add(name);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private static TreeMap<String, Boolean> getStaticCompartmentVisibilityPreferences() {
+ TreeMap<String, Boolean> map = new TreeMap<String, Boolean>();
+ map.put("structure", Boolean.TRUE);
+ return map;
+ }
+
+ /**
+ * @generated
+ */
+ private static TreeMap<String, Boolean> getStaticCompartmentTitleVisibilityPreferences() {
+ TreeMap<String, Boolean> map = new TreeMap<String, Boolean>();
+
+ map.put("structure", Boolean.TRUE);
+ return map;
+ }
+
+ /**
+ * @generated
+ */
+ protected TreeMap<String, Boolean> getCompartmentTitleVisibilityPreferences() {
+ return getStaticCompartmentTitleVisibilityPreferences();
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/ProtocolStateMachinePreferencePage.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/ProtocolStateMachinePreferencePage.java
new file mode 100644
index 00000000000..13c29db3309
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/ProtocolStateMachinePreferencePage.java
@@ -0,0 +1,120 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.preferences;
+
+import java.util.Map;
+import java.util.TreeMap;
+
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CompositeStructureDiagramEditPart;
+import org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorPlugin;
+import org.eclipse.papyrus.preferences.pages.AbstractPapyrusNodePreferencePage;
+import org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper;
+
+/**
+ * @generated
+ */
+public class ProtocolStateMachinePreferencePage extends AbstractPapyrusNodePreferencePage {
+
+ /**
+ * @generated
+ */
+ public static final String compartments[] = { "structure" };
+
+ /**
+ * @generated
+ */
+ public ProtocolStateMachinePreferencePage() {
+ super();
+ setPreferenceKey(CompositeStructureDiagramEditPart.MODEL_ID + "_ProtocolStateMachine");
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected String getBundleId() {
+ return UMLDiagramEditorPlugin.ID;
+ }
+
+ /**
+ * @generated
+ */
+ public static void initDefaults(IPreferenceStore store) {
+
+ String key = CompositeStructureDiagramEditPart.MODEL_ID + "_ProtocolStateMachine";
+ store.setDefault(PreferenceConstantHelper.getElementConstant(key, PreferenceConstantHelper.WIDTH), 40);
+ store.setDefault(PreferenceConstantHelper.getElementConstant(key, PreferenceConstantHelper.HEIGHT), 40);
+
+ Map<String, Boolean> map = getStaticCompartmentVisibilityPreferences();
+ for(String name : map.keySet()) {
+ String preferenceName = PreferenceConstantHelper.getLabelElementConstant(key, name, PreferenceConstantHelper.COMPARTMENT_VISIBILITY);
+ store.setDefault(preferenceName, map.get(name));
+ }
+
+ map = getStaticCompartmentTitleVisibilityPreferences();
+ for(String name : map.keySet()) {
+ String preferenceName = PreferenceConstantHelper.getLabelElementConstant(key, name, PreferenceConstantHelper.COMPARTMENT_NAME_VISIBILITY);
+ store.setDefault(preferenceName, map.get(name));
+ }
+
+ //org.eclipse.jface.preference.PreferenceConverter.setDefault(store, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_FILL), new org.eclipse.swt.graphics.RGB(255, 255, 255));
+ //org.eclipse.jface.preference.PreferenceConverter.setDefault(store, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_LINE), new org.eclipse.swt.graphics.RGB(0, 0, 0));
+
+ // Set the default for the gradient
+ //store.setDefault(org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.GRADIENT_POLICY),false);
+ //org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter gradientPreferenceConverter = new org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter(
+ // new org.eclipse.swt.graphics.RGB(255, 255, 255),
+ // new org.eclipse.swt.graphics.RGB(0, 0, 0), 0, 0);
+ //store.setDefault(org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_GRADIENT), gradientPreferenceConverter.getPreferenceValue());
+
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void initializeCompartmentsList() {
+ for(String name : compartments) {
+ this.compartmentsList.add(name);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private static TreeMap<String, Boolean> getStaticCompartmentVisibilityPreferences() {
+ TreeMap<String, Boolean> map = new TreeMap<String, Boolean>();
+ map.put("structure", Boolean.TRUE);
+ return map;
+ }
+
+ /**
+ * @generated
+ */
+ private static TreeMap<String, Boolean> getStaticCompartmentTitleVisibilityPreferences() {
+ TreeMap<String, Boolean> map = new TreeMap<String, Boolean>();
+
+ map.put("structure", Boolean.TRUE);
+ return map;
+ }
+
+ /**
+ * @generated
+ */
+ protected TreeMap<String, Boolean> getCompartmentTitleVisibilityPreferences() {
+ return getStaticCompartmentTitleVisibilityPreferences();
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/RealizationPreferencePage.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/RealizationPreferencePage.java
new file mode 100644
index 00000000000..b45569989b7
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/RealizationPreferencePage.java
@@ -0,0 +1,90 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.preferences;
+
+import java.util.Map;
+import java.util.TreeMap;
+
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.papyrus.diagram.common.util.StringComparator;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CompositeStructureDiagramEditPart;
+import org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorPlugin;
+import org.eclipse.papyrus.preferences.pages.AbstractPapyrusLinkPreferencePage;
+import org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper;
+
+/**
+ * @generated
+ */
+public class RealizationPreferencePage extends AbstractPapyrusLinkPreferencePage {
+
+ /**
+ * @generated
+ */
+ public RealizationPreferencePage() {
+ super();
+ setPreferenceKey(CompositeStructureDiagramEditPart.MODEL_ID + "_Realization");
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected String getBundleId() {
+ return UMLDiagramEditorPlugin.ID;
+ }
+
+ /**
+ * @generated
+ */
+ public static void initDefaults(IPreferenceStore store) {
+
+ String key = CompositeStructureDiagramEditPart.MODEL_ID + "_Realization";
+ Map<String, Boolean> map = getStaticLabelVisibilityPreferences();
+ for(String role : map.keySet()) {
+ String preferenceName = PreferenceConstantHelper.getLabelElementConstant(key, role, PreferenceConstantHelper.LABEL_VISIBILITY);
+ store.setDefault(preferenceName, map.get(role));
+ }
+
+ }
+
+ /**
+ * @generated
+ */
+ private static TreeMap<String, String> getStaticLabelRole() {
+ TreeMap<String, String> map = new TreeMap<String, String>(new StringComparator());
+ map.put("Name", "");//$NON-NLS-1$ //$NON-NLS-2$
+ map.put("Stereotype", "");//$NON-NLS-1$ //$NON-NLS-2$
+ return map;
+ }
+
+ /**
+ * @generated
+ */
+ private static TreeMap<String, Boolean> getStaticLabelVisibilityPreferences() {
+ TreeMap<String, Boolean> map = new TreeMap<String, Boolean>();
+ map.put("Name", Boolean.TRUE);
+
+ map.put("Stereotype", Boolean.TRUE);
+
+ return map;
+ }
+
+ /**
+ * @generated
+ */
+ protected TreeMap<String, String> getLabelRole() {
+ return getStaticLabelRole();
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/ReceptionPreferencePage.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/ReceptionPreferencePage.java
new file mode 100644
index 00000000000..15620320bd9
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/ReceptionPreferencePage.java
@@ -0,0 +1,64 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.preferences;
+
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CompositeStructureDiagramEditPart;
+import org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorPlugin;
+import org.eclipse.papyrus.preferences.pages.AbstractPapyrusNodePreferencePage;
+import org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper;
+
+/**
+ * @generated
+ */
+public class ReceptionPreferencePage extends AbstractPapyrusNodePreferencePage {
+
+ /**
+ * @generated
+ */
+ public ReceptionPreferencePage() {
+ super();
+ setPreferenceKey(CompositeStructureDiagramEditPart.MODEL_ID + "_Reception");
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected String getBundleId() {
+ return UMLDiagramEditorPlugin.ID;
+ }
+
+ /**
+ * @generated
+ */
+ public static void initDefaults(IPreferenceStore store) {
+
+ String key = CompositeStructureDiagramEditPart.MODEL_ID + "_Reception";
+ store.setDefault(PreferenceConstantHelper.getElementConstant(key, PreferenceConstantHelper.WIDTH), 40);
+ store.setDefault(PreferenceConstantHelper.getElementConstant(key, PreferenceConstantHelper.HEIGHT), 40);
+
+ //org.eclipse.jface.preference.PreferenceConverter.setDefault(store, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_FILL), new org.eclipse.swt.graphics.RGB(255, 255, 255));
+ //org.eclipse.jface.preference.PreferenceConverter.setDefault(store, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_LINE), new org.eclipse.swt.graphics.RGB(0, 0, 0));
+
+ // Set the default for the gradient
+ //store.setDefault(org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.GRADIENT_POLICY),false);
+ //org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter gradientPreferenceConverter = new org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter(
+ // new org.eclipse.swt.graphics.RGB(255, 255, 255),
+ // new org.eclipse.swt.graphics.RGB(0, 0, 0), 0, 0);
+ //store.setDefault(org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_GRADIENT), gradientPreferenceConverter.getPreferenceValue());
+
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/RoleBindingPreferencePage.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/RoleBindingPreferencePage.java
new file mode 100644
index 00000000000..49ad87d78a3
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/RoleBindingPreferencePage.java
@@ -0,0 +1,90 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.preferences;
+
+import java.util.Map;
+import java.util.TreeMap;
+
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.papyrus.diagram.common.util.StringComparator;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CompositeStructureDiagramEditPart;
+import org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorPlugin;
+import org.eclipse.papyrus.preferences.pages.AbstractPapyrusLinkPreferencePage;
+import org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper;
+
+/**
+ * @generated
+ */
+public class RoleBindingPreferencePage extends AbstractPapyrusLinkPreferencePage {
+
+ /**
+ * @generated
+ */
+ public RoleBindingPreferencePage() {
+ super();
+ setPreferenceKey(CompositeStructureDiagramEditPart.MODEL_ID + "_RoleBinding");
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected String getBundleId() {
+ return UMLDiagramEditorPlugin.ID;
+ }
+
+ /**
+ * @generated
+ */
+ public static void initDefaults(IPreferenceStore store) {
+
+ String key = CompositeStructureDiagramEditPart.MODEL_ID + "_RoleBinding";
+ Map<String, Boolean> map = getStaticLabelVisibilityPreferences();
+ for(String role : map.keySet()) {
+ String preferenceName = PreferenceConstantHelper.getLabelElementConstant(key, role, PreferenceConstantHelper.LABEL_VISIBILITY);
+ store.setDefault(preferenceName, map.get(role));
+ }
+
+ }
+
+ /**
+ * @generated
+ */
+ private static TreeMap<String, String> getStaticLabelRole() {
+ TreeMap<String, String> map = new TreeMap<String, String>(new StringComparator());
+ map.put("Name", "");//$NON-NLS-1$ //$NON-NLS-2$
+ map.put("Stereotype", "");//$NON-NLS-1$ //$NON-NLS-2$
+ return map;
+ }
+
+ /**
+ * @generated
+ */
+ private static TreeMap<String, Boolean> getStaticLabelVisibilityPreferences() {
+ TreeMap<String, Boolean> map = new TreeMap<String, Boolean>();
+ map.put("Name", Boolean.TRUE);
+
+ map.put("Stereotype", Boolean.TRUE);
+
+ return map;
+ }
+
+ /**
+ * @generated
+ */
+ protected TreeMap<String, String> getLabelRole() {
+ return getStaticLabelRole();
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/SendOperationEventPreferencePage.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/SendOperationEventPreferencePage.java
new file mode 100644
index 00000000000..e555d9333cb
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/SendOperationEventPreferencePage.java
@@ -0,0 +1,64 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.preferences;
+
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CompositeStructureDiagramEditPart;
+import org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorPlugin;
+import org.eclipse.papyrus.preferences.pages.AbstractPapyrusNodePreferencePage;
+import org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper;
+
+/**
+ * @generated
+ */
+public class SendOperationEventPreferencePage extends AbstractPapyrusNodePreferencePage {
+
+ /**
+ * @generated
+ */
+ public SendOperationEventPreferencePage() {
+ super();
+ setPreferenceKey(CompositeStructureDiagramEditPart.MODEL_ID + "_SendOperationEvent");
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected String getBundleId() {
+ return UMLDiagramEditorPlugin.ID;
+ }
+
+ /**
+ * @generated
+ */
+ public static void initDefaults(IPreferenceStore store) {
+
+ String key = CompositeStructureDiagramEditPart.MODEL_ID + "_SendOperationEvent";
+ store.setDefault(PreferenceConstantHelper.getElementConstant(key, PreferenceConstantHelper.WIDTH), 40);
+ store.setDefault(PreferenceConstantHelper.getElementConstant(key, PreferenceConstantHelper.HEIGHT), 40);
+
+ //org.eclipse.jface.preference.PreferenceConverter.setDefault(store, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_FILL), new org.eclipse.swt.graphics.RGB(255, 255, 255));
+ //org.eclipse.jface.preference.PreferenceConverter.setDefault(store, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_LINE), new org.eclipse.swt.graphics.RGB(0, 0, 0));
+
+ // Set the default for the gradient
+ //store.setDefault(org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.GRADIENT_POLICY),false);
+ //org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter gradientPreferenceConverter = new org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter(
+ // new org.eclipse.swt.graphics.RGB(255, 255, 255),
+ // new org.eclipse.swt.graphics.RGB(0, 0, 0), 0, 0);
+ //store.setDefault(org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_GRADIENT), gradientPreferenceConverter.getPreferenceValue());
+
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/SendSignalEventPreferencePage.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/SendSignalEventPreferencePage.java
new file mode 100644
index 00000000000..74b0f5b2ee2
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/SendSignalEventPreferencePage.java
@@ -0,0 +1,64 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.preferences;
+
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CompositeStructureDiagramEditPart;
+import org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorPlugin;
+import org.eclipse.papyrus.preferences.pages.AbstractPapyrusNodePreferencePage;
+import org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper;
+
+/**
+ * @generated
+ */
+public class SendSignalEventPreferencePage extends AbstractPapyrusNodePreferencePage {
+
+ /**
+ * @generated
+ */
+ public SendSignalEventPreferencePage() {
+ super();
+ setPreferenceKey(CompositeStructureDiagramEditPart.MODEL_ID + "_SendSignalEvent");
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected String getBundleId() {
+ return UMLDiagramEditorPlugin.ID;
+ }
+
+ /**
+ * @generated
+ */
+ public static void initDefaults(IPreferenceStore store) {
+
+ String key = CompositeStructureDiagramEditPart.MODEL_ID + "_SendSignalEvent";
+ store.setDefault(PreferenceConstantHelper.getElementConstant(key, PreferenceConstantHelper.WIDTH), 40);
+ store.setDefault(PreferenceConstantHelper.getElementConstant(key, PreferenceConstantHelper.HEIGHT), 40);
+
+ //org.eclipse.jface.preference.PreferenceConverter.setDefault(store, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_FILL), new org.eclipse.swt.graphics.RGB(255, 255, 255));
+ //org.eclipse.jface.preference.PreferenceConverter.setDefault(store, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_LINE), new org.eclipse.swt.graphics.RGB(0, 0, 0));
+
+ // Set the default for the gradient
+ //store.setDefault(org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.GRADIENT_POLICY),false);
+ //org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter gradientPreferenceConverter = new org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter(
+ // new org.eclipse.swt.graphics.RGB(255, 255, 255),
+ // new org.eclipse.swt.graphics.RGB(0, 0, 0), 0, 0);
+ //store.setDefault(org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_GRADIENT), gradientPreferenceConverter.getPreferenceValue());
+
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/SignalEventPreferencePage.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/SignalEventPreferencePage.java
new file mode 100644
index 00000000000..6be605d70c1
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/SignalEventPreferencePage.java
@@ -0,0 +1,64 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.preferences;
+
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CompositeStructureDiagramEditPart;
+import org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorPlugin;
+import org.eclipse.papyrus.preferences.pages.AbstractPapyrusNodePreferencePage;
+import org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper;
+
+/**
+ * @generated
+ */
+public class SignalEventPreferencePage extends AbstractPapyrusNodePreferencePage {
+
+ /**
+ * @generated
+ */
+ public SignalEventPreferencePage() {
+ super();
+ setPreferenceKey(CompositeStructureDiagramEditPart.MODEL_ID + "_SignalEvent");
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected String getBundleId() {
+ return UMLDiagramEditorPlugin.ID;
+ }
+
+ /**
+ * @generated
+ */
+ public static void initDefaults(IPreferenceStore store) {
+
+ String key = CompositeStructureDiagramEditPart.MODEL_ID + "_SignalEvent";
+ store.setDefault(PreferenceConstantHelper.getElementConstant(key, PreferenceConstantHelper.WIDTH), 40);
+ store.setDefault(PreferenceConstantHelper.getElementConstant(key, PreferenceConstantHelper.HEIGHT), 40);
+
+ //org.eclipse.jface.preference.PreferenceConverter.setDefault(store, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_FILL), new org.eclipse.swt.graphics.RGB(255, 255, 255));
+ //org.eclipse.jface.preference.PreferenceConverter.setDefault(store, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_LINE), new org.eclipse.swt.graphics.RGB(0, 0, 0));
+
+ // Set the default for the gradient
+ //store.setDefault(org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.GRADIENT_POLICY),false);
+ //org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter gradientPreferenceConverter = new org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter(
+ // new org.eclipse.swt.graphics.RGB(255, 255, 255),
+ // new org.eclipse.swt.graphics.RGB(0, 0, 0), 0, 0);
+ //store.setDefault(org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_GRADIENT), gradientPreferenceConverter.getPreferenceValue());
+
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/SignalPreferencePage.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/SignalPreferencePage.java
new file mode 100644
index 00000000000..bd1026b7858
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/SignalPreferencePage.java
@@ -0,0 +1,64 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.preferences;
+
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CompositeStructureDiagramEditPart;
+import org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorPlugin;
+import org.eclipse.papyrus.preferences.pages.AbstractPapyrusNodePreferencePage;
+import org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper;
+
+/**
+ * @generated
+ */
+public class SignalPreferencePage extends AbstractPapyrusNodePreferencePage {
+
+ /**
+ * @generated
+ */
+ public SignalPreferencePage() {
+ super();
+ setPreferenceKey(CompositeStructureDiagramEditPart.MODEL_ID + "_Signal");
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected String getBundleId() {
+ return UMLDiagramEditorPlugin.ID;
+ }
+
+ /**
+ * @generated
+ */
+ public static void initDefaults(IPreferenceStore store) {
+
+ String key = CompositeStructureDiagramEditPart.MODEL_ID + "_Signal";
+ store.setDefault(PreferenceConstantHelper.getElementConstant(key, PreferenceConstantHelper.WIDTH), 40);
+ store.setDefault(PreferenceConstantHelper.getElementConstant(key, PreferenceConstantHelper.HEIGHT), 40);
+
+ //org.eclipse.jface.preference.PreferenceConverter.setDefault(store, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_FILL), new org.eclipse.swt.graphics.RGB(255, 255, 255));
+ //org.eclipse.jface.preference.PreferenceConverter.setDefault(store, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_LINE), new org.eclipse.swt.graphics.RGB(0, 0, 0));
+
+ // Set the default for the gradient
+ //store.setDefault(org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.GRADIENT_POLICY),false);
+ //org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter gradientPreferenceConverter = new org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter(
+ // new org.eclipse.swt.graphics.RGB(255, 255, 255),
+ // new org.eclipse.swt.graphics.RGB(0, 0, 0), 0, 0);
+ //store.setDefault(org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_GRADIENT), gradientPreferenceConverter.getPreferenceValue());
+
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/StateMachinePreferencePage.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/StateMachinePreferencePage.java
new file mode 100644
index 00000000000..3d31d8286e4
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/StateMachinePreferencePage.java
@@ -0,0 +1,120 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.preferences;
+
+import java.util.Map;
+import java.util.TreeMap;
+
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CompositeStructureDiagramEditPart;
+import org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorPlugin;
+import org.eclipse.papyrus.preferences.pages.AbstractPapyrusNodePreferencePage;
+import org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper;
+
+/**
+ * @generated
+ */
+public class StateMachinePreferencePage extends AbstractPapyrusNodePreferencePage {
+
+ /**
+ * @generated
+ */
+ public static final String compartments[] = { "structure" };
+
+ /**
+ * @generated
+ */
+ public StateMachinePreferencePage() {
+ super();
+ setPreferenceKey(CompositeStructureDiagramEditPart.MODEL_ID + "_StateMachine");
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected String getBundleId() {
+ return UMLDiagramEditorPlugin.ID;
+ }
+
+ /**
+ * @generated
+ */
+ public static void initDefaults(IPreferenceStore store) {
+
+ String key = CompositeStructureDiagramEditPart.MODEL_ID + "_StateMachine";
+ store.setDefault(PreferenceConstantHelper.getElementConstant(key, PreferenceConstantHelper.WIDTH), 40);
+ store.setDefault(PreferenceConstantHelper.getElementConstant(key, PreferenceConstantHelper.HEIGHT), 40);
+
+ Map<String, Boolean> map = getStaticCompartmentVisibilityPreferences();
+ for(String name : map.keySet()) {
+ String preferenceName = PreferenceConstantHelper.getLabelElementConstant(key, name, PreferenceConstantHelper.COMPARTMENT_VISIBILITY);
+ store.setDefault(preferenceName, map.get(name));
+ }
+
+ map = getStaticCompartmentTitleVisibilityPreferences();
+ for(String name : map.keySet()) {
+ String preferenceName = PreferenceConstantHelper.getLabelElementConstant(key, name, PreferenceConstantHelper.COMPARTMENT_NAME_VISIBILITY);
+ store.setDefault(preferenceName, map.get(name));
+ }
+
+ //org.eclipse.jface.preference.PreferenceConverter.setDefault(store, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_FILL), new org.eclipse.swt.graphics.RGB(255, 255, 255));
+ //org.eclipse.jface.preference.PreferenceConverter.setDefault(store, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_LINE), new org.eclipse.swt.graphics.RGB(0, 0, 0));
+
+ // Set the default for the gradient
+ //store.setDefault(org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.GRADIENT_POLICY),false);
+ //org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter gradientPreferenceConverter = new org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter(
+ // new org.eclipse.swt.graphics.RGB(255, 255, 255),
+ // new org.eclipse.swt.graphics.RGB(0, 0, 0), 0, 0);
+ //store.setDefault(org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_GRADIENT), gradientPreferenceConverter.getPreferenceValue());
+
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void initializeCompartmentsList() {
+ for(String name : compartments) {
+ this.compartmentsList.add(name);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private static TreeMap<String, Boolean> getStaticCompartmentVisibilityPreferences() {
+ TreeMap<String, Boolean> map = new TreeMap<String, Boolean>();
+ map.put("structure", Boolean.TRUE);
+ return map;
+ }
+
+ /**
+ * @generated
+ */
+ private static TreeMap<String, Boolean> getStaticCompartmentTitleVisibilityPreferences() {
+ TreeMap<String, Boolean> map = new TreeMap<String, Boolean>();
+
+ map.put("structure", Boolean.TRUE);
+ return map;
+ }
+
+ /**
+ * @generated
+ */
+ protected TreeMap<String, Boolean> getCompartmentTitleVisibilityPreferences() {
+ return getStaticCompartmentTitleVisibilityPreferences();
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/StringExpressionPreferencePage.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/StringExpressionPreferencePage.java
new file mode 100644
index 00000000000..efd9f4d2c03
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/StringExpressionPreferencePage.java
@@ -0,0 +1,64 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.preferences;
+
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CompositeStructureDiagramEditPart;
+import org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorPlugin;
+import org.eclipse.papyrus.preferences.pages.AbstractPapyrusNodePreferencePage;
+import org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper;
+
+/**
+ * @generated
+ */
+public class StringExpressionPreferencePage extends AbstractPapyrusNodePreferencePage {
+
+ /**
+ * @generated
+ */
+ public StringExpressionPreferencePage() {
+ super();
+ setPreferenceKey(CompositeStructureDiagramEditPart.MODEL_ID + "_StringExpression");
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected String getBundleId() {
+ return UMLDiagramEditorPlugin.ID;
+ }
+
+ /**
+ * @generated
+ */
+ public static void initDefaults(IPreferenceStore store) {
+
+ String key = CompositeStructureDiagramEditPart.MODEL_ID + "_StringExpression";
+ store.setDefault(PreferenceConstantHelper.getElementConstant(key, PreferenceConstantHelper.WIDTH), 40);
+ store.setDefault(PreferenceConstantHelper.getElementConstant(key, PreferenceConstantHelper.HEIGHT), 40);
+
+ //org.eclipse.jface.preference.PreferenceConverter.setDefault(store, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_FILL), new org.eclipse.swt.graphics.RGB(255, 255, 255));
+ //org.eclipse.jface.preference.PreferenceConverter.setDefault(store, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_LINE), new org.eclipse.swt.graphics.RGB(0, 0, 0));
+
+ // Set the default for the gradient
+ //store.setDefault(org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.GRADIENT_POLICY),false);
+ //org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter gradientPreferenceConverter = new org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter(
+ // new org.eclipse.swt.graphics.RGB(255, 255, 255),
+ // new org.eclipse.swt.graphics.RGB(0, 0, 0), 0, 0);
+ //store.setDefault(org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_GRADIENT), gradientPreferenceConverter.getPreferenceValue());
+
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/SubstitutionPreferencePage.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/SubstitutionPreferencePage.java
new file mode 100644
index 00000000000..f09f157d727
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/SubstitutionPreferencePage.java
@@ -0,0 +1,90 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.preferences;
+
+import java.util.Map;
+import java.util.TreeMap;
+
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.papyrus.diagram.common.util.StringComparator;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CompositeStructureDiagramEditPart;
+import org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorPlugin;
+import org.eclipse.papyrus.preferences.pages.AbstractPapyrusLinkPreferencePage;
+import org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper;
+
+/**
+ * @generated
+ */
+public class SubstitutionPreferencePage extends AbstractPapyrusLinkPreferencePage {
+
+ /**
+ * @generated
+ */
+ public SubstitutionPreferencePage() {
+ super();
+ setPreferenceKey(CompositeStructureDiagramEditPart.MODEL_ID + "_Substitution");
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected String getBundleId() {
+ return UMLDiagramEditorPlugin.ID;
+ }
+
+ /**
+ * @generated
+ */
+ public static void initDefaults(IPreferenceStore store) {
+
+ String key = CompositeStructureDiagramEditPart.MODEL_ID + "_Substitution";
+ Map<String, Boolean> map = getStaticLabelVisibilityPreferences();
+ for(String role : map.keySet()) {
+ String preferenceName = PreferenceConstantHelper.getLabelElementConstant(key, role, PreferenceConstantHelper.LABEL_VISIBILITY);
+ store.setDefault(preferenceName, map.get(role));
+ }
+
+ }
+
+ /**
+ * @generated
+ */
+ private static TreeMap<String, String> getStaticLabelRole() {
+ TreeMap<String, String> map = new TreeMap<String, String>(new StringComparator());
+ map.put("Name", "");//$NON-NLS-1$ //$NON-NLS-2$
+ map.put("Stereotype", "");//$NON-NLS-1$ //$NON-NLS-2$
+ return map;
+ }
+
+ /**
+ * @generated
+ */
+ private static TreeMap<String, Boolean> getStaticLabelVisibilityPreferences() {
+ TreeMap<String, Boolean> map = new TreeMap<String, Boolean>();
+ map.put("Name", Boolean.TRUE);
+
+ map.put("Stereotype", Boolean.TRUE);
+
+ return map;
+ }
+
+ /**
+ * @generated
+ */
+ protected TreeMap<String, String> getLabelRole() {
+ return getStaticLabelRole();
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/TimeConstraintPreferencePage.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/TimeConstraintPreferencePage.java
new file mode 100644
index 00000000000..79d6050378c
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/TimeConstraintPreferencePage.java
@@ -0,0 +1,64 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.preferences;
+
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CompositeStructureDiagramEditPart;
+import org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorPlugin;
+import org.eclipse.papyrus.preferences.pages.AbstractPapyrusNodePreferencePage;
+import org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper;
+
+/**
+ * @generated
+ */
+public class TimeConstraintPreferencePage extends AbstractPapyrusNodePreferencePage {
+
+ /**
+ * @generated
+ */
+ public TimeConstraintPreferencePage() {
+ super();
+ setPreferenceKey(CompositeStructureDiagramEditPart.MODEL_ID + "_TimeConstraint");
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected String getBundleId() {
+ return UMLDiagramEditorPlugin.ID;
+ }
+
+ /**
+ * @generated
+ */
+ public static void initDefaults(IPreferenceStore store) {
+
+ String key = CompositeStructureDiagramEditPart.MODEL_ID + "_TimeConstraint";
+ store.setDefault(PreferenceConstantHelper.getElementConstant(key, PreferenceConstantHelper.WIDTH), 40);
+ store.setDefault(PreferenceConstantHelper.getElementConstant(key, PreferenceConstantHelper.HEIGHT), 40);
+
+ //org.eclipse.jface.preference.PreferenceConverter.setDefault(store, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_FILL), new org.eclipse.swt.graphics.RGB(255, 255, 255));
+ //org.eclipse.jface.preference.PreferenceConverter.setDefault(store, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_LINE), new org.eclipse.swt.graphics.RGB(0, 0, 0));
+
+ // Set the default for the gradient
+ //store.setDefault(org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.GRADIENT_POLICY),false);
+ //org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter gradientPreferenceConverter = new org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter(
+ // new org.eclipse.swt.graphics.RGB(255, 255, 255),
+ // new org.eclipse.swt.graphics.RGB(0, 0, 0), 0, 0);
+ //store.setDefault(org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_GRADIENT), gradientPreferenceConverter.getPreferenceValue());
+
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/TimeEventPreferencePage.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/TimeEventPreferencePage.java
new file mode 100644
index 00000000000..ef87e03f0e8
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/TimeEventPreferencePage.java
@@ -0,0 +1,64 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.preferences;
+
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CompositeStructureDiagramEditPart;
+import org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorPlugin;
+import org.eclipse.papyrus.preferences.pages.AbstractPapyrusNodePreferencePage;
+import org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper;
+
+/**
+ * @generated
+ */
+public class TimeEventPreferencePage extends AbstractPapyrusNodePreferencePage {
+
+ /**
+ * @generated
+ */
+ public TimeEventPreferencePage() {
+ super();
+ setPreferenceKey(CompositeStructureDiagramEditPart.MODEL_ID + "_TimeEvent");
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected String getBundleId() {
+ return UMLDiagramEditorPlugin.ID;
+ }
+
+ /**
+ * @generated
+ */
+ public static void initDefaults(IPreferenceStore store) {
+
+ String key = CompositeStructureDiagramEditPart.MODEL_ID + "_TimeEvent";
+ store.setDefault(PreferenceConstantHelper.getElementConstant(key, PreferenceConstantHelper.WIDTH), 40);
+ store.setDefault(PreferenceConstantHelper.getElementConstant(key, PreferenceConstantHelper.HEIGHT), 40);
+
+ //org.eclipse.jface.preference.PreferenceConverter.setDefault(store, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_FILL), new org.eclipse.swt.graphics.RGB(255, 255, 255));
+ //org.eclipse.jface.preference.PreferenceConverter.setDefault(store, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_LINE), new org.eclipse.swt.graphics.RGB(0, 0, 0));
+
+ // Set the default for the gradient
+ //store.setDefault(org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.GRADIENT_POLICY),false);
+ //org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter gradientPreferenceConverter = new org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter(
+ // new org.eclipse.swt.graphics.RGB(255, 255, 255),
+ // new org.eclipse.swt.graphics.RGB(0, 0, 0), 0, 0);
+ //store.setDefault(org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_GRADIENT), gradientPreferenceConverter.getPreferenceValue());
+
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/TimeExpressionPreferencePage.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/TimeExpressionPreferencePage.java
new file mode 100644
index 00000000000..22eaa4de869
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/TimeExpressionPreferencePage.java
@@ -0,0 +1,64 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.preferences;
+
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CompositeStructureDiagramEditPart;
+import org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorPlugin;
+import org.eclipse.papyrus.preferences.pages.AbstractPapyrusNodePreferencePage;
+import org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper;
+
+/**
+ * @generated
+ */
+public class TimeExpressionPreferencePage extends AbstractPapyrusNodePreferencePage {
+
+ /**
+ * @generated
+ */
+ public TimeExpressionPreferencePage() {
+ super();
+ setPreferenceKey(CompositeStructureDiagramEditPart.MODEL_ID + "_TimeExpression");
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected String getBundleId() {
+ return UMLDiagramEditorPlugin.ID;
+ }
+
+ /**
+ * @generated
+ */
+ public static void initDefaults(IPreferenceStore store) {
+
+ String key = CompositeStructureDiagramEditPart.MODEL_ID + "_TimeExpression";
+ store.setDefault(PreferenceConstantHelper.getElementConstant(key, PreferenceConstantHelper.WIDTH), 40);
+ store.setDefault(PreferenceConstantHelper.getElementConstant(key, PreferenceConstantHelper.HEIGHT), 40);
+
+ //org.eclipse.jface.preference.PreferenceConverter.setDefault(store, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_FILL), new org.eclipse.swt.graphics.RGB(255, 255, 255));
+ //org.eclipse.jface.preference.PreferenceConverter.setDefault(store, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_LINE), new org.eclipse.swt.graphics.RGB(0, 0, 0));
+
+ // Set the default for the gradient
+ //store.setDefault(org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.GRADIENT_POLICY),false);
+ //org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter gradientPreferenceConverter = new org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter(
+ // new org.eclipse.swt.graphics.RGB(255, 255, 255),
+ // new org.eclipse.swt.graphics.RGB(0, 0, 0), 0, 0);
+ //store.setDefault(org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_GRADIENT), gradientPreferenceConverter.getPreferenceValue());
+
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/TimeIntervalPreferencePage.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/TimeIntervalPreferencePage.java
new file mode 100644
index 00000000000..51054ce5a4f
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/TimeIntervalPreferencePage.java
@@ -0,0 +1,64 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.preferences;
+
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CompositeStructureDiagramEditPart;
+import org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorPlugin;
+import org.eclipse.papyrus.preferences.pages.AbstractPapyrusNodePreferencePage;
+import org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper;
+
+/**
+ * @generated
+ */
+public class TimeIntervalPreferencePage extends AbstractPapyrusNodePreferencePage {
+
+ /**
+ * @generated
+ */
+ public TimeIntervalPreferencePage() {
+ super();
+ setPreferenceKey(CompositeStructureDiagramEditPart.MODEL_ID + "_TimeInterval");
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected String getBundleId() {
+ return UMLDiagramEditorPlugin.ID;
+ }
+
+ /**
+ * @generated
+ */
+ public static void initDefaults(IPreferenceStore store) {
+
+ String key = CompositeStructureDiagramEditPart.MODEL_ID + "_TimeInterval";
+ store.setDefault(PreferenceConstantHelper.getElementConstant(key, PreferenceConstantHelper.WIDTH), 40);
+ store.setDefault(PreferenceConstantHelper.getElementConstant(key, PreferenceConstantHelper.HEIGHT), 40);
+
+ //org.eclipse.jface.preference.PreferenceConverter.setDefault(store, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_FILL), new org.eclipse.swt.graphics.RGB(255, 255, 255));
+ //org.eclipse.jface.preference.PreferenceConverter.setDefault(store, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_LINE), new org.eclipse.swt.graphics.RGB(0, 0, 0));
+
+ // Set the default for the gradient
+ //store.setDefault(org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.GRADIENT_POLICY),false);
+ //org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter gradientPreferenceConverter = new org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter(
+ // new org.eclipse.swt.graphics.RGB(255, 255, 255),
+ // new org.eclipse.swt.graphics.RGB(0, 0, 0), 0, 0);
+ //store.setDefault(org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_GRADIENT), gradientPreferenceConverter.getPreferenceValue());
+
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/TimeObservationEventPreferencePage.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/TimeObservationEventPreferencePage.java
new file mode 100644
index 00000000000..35e4274d9f7
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/TimeObservationEventPreferencePage.java
@@ -0,0 +1,49 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.preferences;
+
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CompositeStructureDiagramEditPart;
+import org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorPlugin;
+import org.eclipse.papyrus.preferences.pages.AbstractPapyrusLinkPreferencePage;
+
+/**
+ * @generated
+ */
+public class TimeObservationEventPreferencePage extends AbstractPapyrusLinkPreferencePage {
+
+ /**
+ * @generated
+ */
+ public TimeObservationEventPreferencePage() {
+ super();
+ setPreferenceKey(CompositeStructureDiagramEditPart.MODEL_ID + "_TimeObservationEvent");
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected String getBundleId() {
+ return UMLDiagramEditorPlugin.ID;
+ }
+
+ /**
+ * @generated
+ */
+ public static void initDefaults(IPreferenceStore store) {
+
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/TimeObservationPreferencePage.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/TimeObservationPreferencePage.java
new file mode 100644
index 00000000000..ea3835ce23a
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/TimeObservationPreferencePage.java
@@ -0,0 +1,102 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.preferences;
+
+import java.util.Map;
+import java.util.TreeMap;
+
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.papyrus.diagram.common.util.StringComparator;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CompositeStructureDiagramEditPart;
+import org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorPlugin;
+import org.eclipse.papyrus.preferences.pages.AbstractPapyrusNodePreferencePage;
+import org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper;
+
+/**
+ * @generated
+ */
+public class TimeObservationPreferencePage extends AbstractPapyrusNodePreferencePage {
+
+ /**
+ * @generated
+ */
+ public TimeObservationPreferencePage() {
+ super();
+ setPreferenceKey(CompositeStructureDiagramEditPart.MODEL_ID + "_TimeObservation");
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected String getBundleId() {
+ return UMLDiagramEditorPlugin.ID;
+ }
+
+ /**
+ * @generated
+ */
+ public static void initDefaults(IPreferenceStore store) {
+
+ String key = CompositeStructureDiagramEditPart.MODEL_ID + "_TimeObservation";
+ store.setDefault(PreferenceConstantHelper.getElementConstant(key, PreferenceConstantHelper.WIDTH), 40);
+ store.setDefault(PreferenceConstantHelper.getElementConstant(key, PreferenceConstantHelper.HEIGHT), 40);
+
+ Map<String, Boolean> map = getStaticLabelVisibilityPreferences();
+
+ for(String role : map.keySet()) {
+ String preferenceName = PreferenceConstantHelper.getLabelElementConstant(key, role, PreferenceConstantHelper.LABEL_VISIBILITY);
+ store.setDefault(preferenceName, map.get(role));
+ }
+
+ //org.eclipse.jface.preference.PreferenceConverter.setDefault(store, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_FILL), new org.eclipse.swt.graphics.RGB(255, 255, 255));
+ //org.eclipse.jface.preference.PreferenceConverter.setDefault(store, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_LINE), new org.eclipse.swt.graphics.RGB(0, 0, 0));
+
+ // Set the default for the gradient
+ //store.setDefault(org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.GRADIENT_POLICY),false);
+ //org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter gradientPreferenceConverter = new org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter(
+ // new org.eclipse.swt.graphics.RGB(255, 255, 255),
+ // new org.eclipse.swt.graphics.RGB(0, 0, 0), 0, 0);
+ //store.setDefault(org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_GRADIENT), gradientPreferenceConverter.getPreferenceValue());
+
+ }
+
+ /**
+ * @generated
+ */
+ private static TreeMap<String, String> getStaticLabelRole() {
+ TreeMap<String, String> map = new TreeMap<String, String>(new StringComparator());
+ map.put("Name", "");//$NON-NLS-1$
+ map.put("Stereotype", "");//$NON-NLS-1$
+ return map;
+ }
+
+ /**
+ * @generated
+ */
+ private static TreeMap<String, Boolean> getStaticLabelVisibilityPreferences() {
+ TreeMap<String, Boolean> map = new TreeMap<String, Boolean>();
+ map.put("Name", Boolean.TRUE);
+ map.put("Stereotype", Boolean.TRUE);
+ return map;
+ }
+
+ /**
+ * @generated
+ */
+ protected TreeMap<String, String> getLabelRole() {
+ return getStaticLabelRole();
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/UsagePreferencePage.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/UsagePreferencePage.java
new file mode 100644
index 00000000000..6d8194ccdaa
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/UsagePreferencePage.java
@@ -0,0 +1,90 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.preferences;
+
+import java.util.Map;
+import java.util.TreeMap;
+
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.papyrus.diagram.common.util.StringComparator;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CompositeStructureDiagramEditPart;
+import org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorPlugin;
+import org.eclipse.papyrus.preferences.pages.AbstractPapyrusLinkPreferencePage;
+import org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper;
+
+/**
+ * @generated
+ */
+public class UsagePreferencePage extends AbstractPapyrusLinkPreferencePage {
+
+ /**
+ * @generated
+ */
+ public UsagePreferencePage() {
+ super();
+ setPreferenceKey(CompositeStructureDiagramEditPart.MODEL_ID + "_Usage");
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected String getBundleId() {
+ return UMLDiagramEditorPlugin.ID;
+ }
+
+ /**
+ * @generated
+ */
+ public static void initDefaults(IPreferenceStore store) {
+
+ String key = CompositeStructureDiagramEditPart.MODEL_ID + "_Usage";
+ Map<String, Boolean> map = getStaticLabelVisibilityPreferences();
+ for(String role : map.keySet()) {
+ String preferenceName = PreferenceConstantHelper.getLabelElementConstant(key, role, PreferenceConstantHelper.LABEL_VISIBILITY);
+ store.setDefault(preferenceName, map.get(role));
+ }
+
+ }
+
+ /**
+ * @generated
+ */
+ private static TreeMap<String, String> getStaticLabelRole() {
+ TreeMap<String, String> map = new TreeMap<String, String>(new StringComparator());
+ map.put("Name", "");//$NON-NLS-1$ //$NON-NLS-2$
+ map.put("Stereotype", "");//$NON-NLS-1$ //$NON-NLS-2$
+ return map;
+ }
+
+ /**
+ * @generated
+ */
+ private static TreeMap<String, Boolean> getStaticLabelVisibilityPreferences() {
+ TreeMap<String, Boolean> map = new TreeMap<String, Boolean>();
+ map.put("Name", Boolean.TRUE);
+
+ map.put("Stereotype", Boolean.TRUE);
+
+ return map;
+ }
+
+ /**
+ * @generated
+ */
+ protected TreeMap<String, String> getLabelRole() {
+ return getStaticLabelRole();
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/UseCasePreferencePage.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/UseCasePreferencePage.java
new file mode 100644
index 00000000000..26fc97479ab
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/preferences/UseCasePreferencePage.java
@@ -0,0 +1,64 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.preferences;
+
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CompositeStructureDiagramEditPart;
+import org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorPlugin;
+import org.eclipse.papyrus.preferences.pages.AbstractPapyrusNodePreferencePage;
+import org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper;
+
+/**
+ * @generated
+ */
+public class UseCasePreferencePage extends AbstractPapyrusNodePreferencePage {
+
+ /**
+ * @generated
+ */
+ public UseCasePreferencePage() {
+ super();
+ setPreferenceKey(CompositeStructureDiagramEditPart.MODEL_ID + "_UseCase");
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected String getBundleId() {
+ return UMLDiagramEditorPlugin.ID;
+ }
+
+ /**
+ * @generated
+ */
+ public static void initDefaults(IPreferenceStore store) {
+
+ String key = CompositeStructureDiagramEditPart.MODEL_ID + "_UseCase";
+ store.setDefault(PreferenceConstantHelper.getElementConstant(key, PreferenceConstantHelper.WIDTH), 40);
+ store.setDefault(PreferenceConstantHelper.getElementConstant(key, PreferenceConstantHelper.HEIGHT), 40);
+
+ //org.eclipse.jface.preference.PreferenceConverter.setDefault(store, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_FILL), new org.eclipse.swt.graphics.RGB(255, 255, 255));
+ //org.eclipse.jface.preference.PreferenceConverter.setDefault(store, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_LINE), new org.eclipse.swt.graphics.RGB(0, 0, 0));
+
+ // Set the default for the gradient
+ //store.setDefault(org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.GRADIENT_POLICY),false);
+ //org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter gradientPreferenceConverter = new org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter(
+ // new org.eclipse.swt.graphics.RGB(255, 255, 255),
+ // new org.eclipse.swt.graphics.RGB(0, 0, 0), 0, 0);
+ //store.setDefault(org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_GRADIENT), gradientPreferenceConverter.getPreferenceValue());
+
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/providers/ElementInitializers.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/providers/ElementInitializers.java
new file mode 100644
index 00000000000..8291d2c8ffb
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/providers/ElementInitializers.java
@@ -0,0 +1,2423 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.providers;
+
+import org.eclipse.papyrus.diagram.common.helper.NamedElementHelper;
+import org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorPlugin;
+import org.eclipse.uml2.uml.Abstraction;
+import org.eclipse.uml2.uml.Activity;
+import org.eclipse.uml2.uml.Actor;
+import org.eclipse.uml2.uml.AggregationKind;
+import org.eclipse.uml2.uml.AnyReceiveEvent;
+import org.eclipse.uml2.uml.Artifact;
+import org.eclipse.uml2.uml.CallEvent;
+import org.eclipse.uml2.uml.ChangeEvent;
+import org.eclipse.uml2.uml.Class;
+import org.eclipse.uml2.uml.Collaboration;
+import org.eclipse.uml2.uml.CollaborationUse;
+import org.eclipse.uml2.uml.Comment;
+import org.eclipse.uml2.uml.Component;
+import org.eclipse.uml2.uml.ComponentRealization;
+import org.eclipse.uml2.uml.ConnectableElement;
+import org.eclipse.uml2.uml.Connector;
+import org.eclipse.uml2.uml.Constraint;
+import org.eclipse.uml2.uml.CreationEvent;
+import org.eclipse.uml2.uml.DataType;
+import org.eclipse.uml2.uml.Dependency;
+import org.eclipse.uml2.uml.Deployment;
+import org.eclipse.uml2.uml.DeploymentSpecification;
+import org.eclipse.uml2.uml.DestructionEvent;
+import org.eclipse.uml2.uml.Device;
+import org.eclipse.uml2.uml.Duration;
+import org.eclipse.uml2.uml.DurationConstraint;
+import org.eclipse.uml2.uml.DurationInterval;
+import org.eclipse.uml2.uml.DurationObservation;
+import org.eclipse.uml2.uml.Enumeration;
+import org.eclipse.uml2.uml.EnumerationLiteral;
+import org.eclipse.uml2.uml.ExecutionEnvironment;
+import org.eclipse.uml2.uml.ExecutionEvent;
+import org.eclipse.uml2.uml.Expression;
+import org.eclipse.uml2.uml.FunctionBehavior;
+import org.eclipse.uml2.uml.InformationFlow;
+import org.eclipse.uml2.uml.InformationItem;
+import org.eclipse.uml2.uml.InstanceValue;
+import org.eclipse.uml2.uml.Interaction;
+import org.eclipse.uml2.uml.InteractionConstraint;
+import org.eclipse.uml2.uml.Interface;
+import org.eclipse.uml2.uml.InterfaceRealization;
+import org.eclipse.uml2.uml.Interval;
+import org.eclipse.uml2.uml.IntervalConstraint;
+import org.eclipse.uml2.uml.LiteralBoolean;
+import org.eclipse.uml2.uml.LiteralInteger;
+import org.eclipse.uml2.uml.LiteralNull;
+import org.eclipse.uml2.uml.LiteralString;
+import org.eclipse.uml2.uml.LiteralUnlimitedNatural;
+import org.eclipse.uml2.uml.Manifestation;
+import org.eclipse.uml2.uml.Node;
+import org.eclipse.uml2.uml.OpaqueBehavior;
+import org.eclipse.uml2.uml.OpaqueExpression;
+import org.eclipse.uml2.uml.Operation;
+import org.eclipse.uml2.uml.Parameter;
+import org.eclipse.uml2.uml.Port;
+import org.eclipse.uml2.uml.PrimitiveType;
+import org.eclipse.uml2.uml.Property;
+import org.eclipse.uml2.uml.ProtocolStateMachine;
+import org.eclipse.uml2.uml.Realization;
+import org.eclipse.uml2.uml.Reception;
+import org.eclipse.uml2.uml.SendOperationEvent;
+import org.eclipse.uml2.uml.SendSignalEvent;
+import org.eclipse.uml2.uml.Signal;
+import org.eclipse.uml2.uml.SignalEvent;
+import org.eclipse.uml2.uml.StateMachine;
+import org.eclipse.uml2.uml.StringExpression;
+import org.eclipse.uml2.uml.Substitution;
+import org.eclipse.uml2.uml.TimeConstraint;
+import org.eclipse.uml2.uml.TimeEvent;
+import org.eclipse.uml2.uml.TimeExpression;
+import org.eclipse.uml2.uml.TimeInterval;
+import org.eclipse.uml2.uml.TimeObservation;
+import org.eclipse.uml2.uml.UMLFactory;
+import org.eclipse.uml2.uml.Usage;
+import org.eclipse.uml2.uml.UseCase;
+import org.eclipse.uml2.uml.ValueSpecification;
+
+/**
+ * @generated
+ */
+public class ElementInitializers {
+
+ protected ElementInitializers() {
+ // use #getInstance to access cached instance
+ }
+
+ /**
+ * @generated
+ */
+ public void init_Activity_2060(Activity instance) {
+ try {
+ Object value_0 = name_Activity_2060(instance);
+ instance.setName((String)value_0);
+ } catch (RuntimeException e) {
+ UMLDiagramEditorPlugin.getInstance().logError("Element initialization failed", e); //$NON-NLS-1$
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void init_Interaction_2061(Interaction instance) {
+ try {
+ Object value_0 = name_Interaction_2061(instance);
+ instance.setName((String)value_0);
+ } catch (RuntimeException e) {
+ UMLDiagramEditorPlugin.getInstance().logError("Element initialization failed", e); //$NON-NLS-1$
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void init_ProtocolStateMachine_2062(ProtocolStateMachine instance) {
+ try {
+ Object value_0 = name_ProtocolStateMachine_2062(instance);
+ instance.setName((String)value_0);
+ } catch (RuntimeException e) {
+ UMLDiagramEditorPlugin.getInstance().logError("Element initialization failed", e); //$NON-NLS-1$
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void init_StateMachine_2063(StateMachine instance) {
+ try {
+ Object value_0 = name_StateMachine_2063(instance);
+ instance.setName((String)value_0);
+ } catch (RuntimeException e) {
+ UMLDiagramEditorPlugin.getInstance().logError("Element initialization failed", e); //$NON-NLS-1$
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void init_FunctionBehavior_2064(FunctionBehavior instance) {
+ try {
+ Object value_0 = name_FunctionBehavior_2064(instance);
+ instance.setName((String)value_0);
+ } catch (RuntimeException e) {
+ UMLDiagramEditorPlugin.getInstance().logError("Element initialization failed", e); //$NON-NLS-1$
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void init_OpaqueBehavior_2065(OpaqueBehavior instance) {
+ try {
+ Object value_0 = name_OpaqueBehavior_2065(instance);
+ instance.setName((String)value_0);
+ } catch (RuntimeException e) {
+ UMLDiagramEditorPlugin.getInstance().logError("Element initialization failed", e); //$NON-NLS-1$
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void init_Component_2069(Component instance) {
+ try {
+ Object value_0 = name_Component_2069(instance);
+ instance.setName((String)value_0);
+ } catch (RuntimeException e) {
+ UMLDiagramEditorPlugin.getInstance().logError("Element initialization failed", e); //$NON-NLS-1$
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void init_Device_2070(Device instance) {
+ try {
+ Object value_0 = name_Device_2070(instance);
+ instance.setName((String)value_0);
+ } catch (RuntimeException e) {
+ UMLDiagramEditorPlugin.getInstance().logError("Element initialization failed", e); //$NON-NLS-1$
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void init_ExecutionEnvironment_2071(ExecutionEnvironment instance) {
+ try {
+ Object value_0 = name_ExecutionEnvironment_2071(instance);
+ instance.setName((String)value_0);
+ } catch (RuntimeException e) {
+ UMLDiagramEditorPlugin.getInstance().logError("Element initialization failed", e); //$NON-NLS-1$
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void init_Node_2072(Node instance) {
+ try {
+ Object value_0 = name_Node_2072(instance);
+ instance.setName((String)value_0);
+ } catch (RuntimeException e) {
+ UMLDiagramEditorPlugin.getInstance().logError("Element initialization failed", e); //$NON-NLS-1$
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void init_Class_2073(Class instance) {
+ try {
+ Object value_0 = name_Class_2073(instance);
+ instance.setName((String)value_0);
+ } catch (RuntimeException e) {
+ UMLDiagramEditorPlugin.getInstance().logError("Element initialization failed", e); //$NON-NLS-1$
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void init_Collaboration_2075(Collaboration instance) {
+ try {
+ Object value_0 = name_Collaboration_2075(instance);
+ instance.setName((String)value_0);
+ } catch (RuntimeException e) {
+ UMLDiagramEditorPlugin.getInstance().logError("Element initialization failed", e); //$NON-NLS-1$
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void init_Interface_2076(Interface instance) {
+ try {
+ Object value_0 = name_Interface_2076(instance);
+ instance.setName((String)value_0);
+ } catch (RuntimeException e) {
+ UMLDiagramEditorPlugin.getInstance().logError("Element initialization failed", e); //$NON-NLS-1$
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void init_PrimitiveType_2066(PrimitiveType instance) {
+ try {
+ Object value_0 = name_PrimitiveType_2066(instance);
+ instance.setName((String)value_0);
+ } catch (RuntimeException e) {
+ UMLDiagramEditorPlugin.getInstance().logError("Element initialization failed", e); //$NON-NLS-1$
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void init_Enumeration_2067(Enumeration instance) {
+ try {
+ Object value_0 = name_Enumeration_2067(instance);
+ instance.setName((String)value_0);
+ } catch (RuntimeException e) {
+ UMLDiagramEditorPlugin.getInstance().logError("Element initialization failed", e); //$NON-NLS-1$
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void init_DataType_2068(DataType instance) {
+ try {
+ Object value_0 = name_DataType_2068(instance);
+ instance.setName((String)value_0);
+ } catch (RuntimeException e) {
+ UMLDiagramEditorPlugin.getInstance().logError("Element initialization failed", e); //$NON-NLS-1$
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void init_Actor_2077(Actor instance) {
+ try {
+ Object value_0 = name_Actor_2077(instance);
+ instance.setName((String)value_0);
+ } catch (RuntimeException e) {
+ UMLDiagramEditorPlugin.getInstance().logError("Element initialization failed", e); //$NON-NLS-1$
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void init_DeploymentSpecification_2078(DeploymentSpecification instance) {
+ try {
+ Object value_0 = name_DeploymentSpecification_2078(instance);
+ instance.setName((String)value_0);
+ } catch (RuntimeException e) {
+ UMLDiagramEditorPlugin.getInstance().logError("Element initialization failed", e); //$NON-NLS-1$
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void init_Artifact_2079(Artifact instance) {
+ try {
+ Object value_0 = name_Artifact_2079(instance);
+ instance.setName((String)value_0);
+ } catch (RuntimeException e) {
+ UMLDiagramEditorPlugin.getInstance().logError("Element initialization failed", e); //$NON-NLS-1$
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void init_InformationItem_2080(InformationItem instance) {
+ try {
+ Object value_0 = name_InformationItem_2080(instance);
+ instance.setName((String)value_0);
+ Object value_1 = isAbstract_InformationItem_2080(instance);
+ instance.setIsAbstract(((Boolean)value_1).booleanValue());
+ } catch (RuntimeException e) {
+ UMLDiagramEditorPlugin.getInstance().logError("Element initialization failed", e); //$NON-NLS-1$
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void init_Signal_2081(Signal instance) {
+ try {
+ Object value_0 = name_Signal_2081(instance);
+ instance.setName((String)value_0);
+ } catch (RuntimeException e) {
+ UMLDiagramEditorPlugin.getInstance().logError("Element initialization failed", e); //$NON-NLS-1$
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void init_UseCase_2082(UseCase instance) {
+ try {
+ Object value_0 = name_UseCase_2082(instance);
+ instance.setName((String)value_0);
+ } catch (RuntimeException e) {
+ UMLDiagramEditorPlugin.getInstance().logError("Element initialization failed", e); //$NON-NLS-1$
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void init_SignalEvent_2083(SignalEvent instance) {
+ try {
+ Object value_0 = name_SignalEvent_2083(instance);
+ instance.setName((String)value_0);
+ } catch (RuntimeException e) {
+ UMLDiagramEditorPlugin.getInstance().logError("Element initialization failed", e); //$NON-NLS-1$
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void init_CallEvent_2084(CallEvent instance) {
+ try {
+ Object value_0 = name_CallEvent_2084(instance);
+ instance.setName((String)value_0);
+ } catch (RuntimeException e) {
+ UMLDiagramEditorPlugin.getInstance().logError("Element initialization failed", e); //$NON-NLS-1$
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void init_AnyReceiveEvent_2085(AnyReceiveEvent instance) {
+ try {
+ Object value_0 = name_AnyReceiveEvent_2085(instance);
+ instance.setName((String)value_0);
+ } catch (RuntimeException e) {
+ UMLDiagramEditorPlugin.getInstance().logError("Element initialization failed", e); //$NON-NLS-1$
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void init_SendSignalEvent_2086(SendSignalEvent instance) {
+ try {
+ Object value_0 = name_SendSignalEvent_2086(instance);
+ instance.setName((String)value_0);
+ } catch (RuntimeException e) {
+ UMLDiagramEditorPlugin.getInstance().logError("Element initialization failed", e); //$NON-NLS-1$
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void init_SendOperationEvent_2087(SendOperationEvent instance) {
+ try {
+ Object value_0 = name_SendOperationEvent_2087(instance);
+ instance.setName((String)value_0);
+ } catch (RuntimeException e) {
+ UMLDiagramEditorPlugin.getInstance().logError("Element initialization failed", e); //$NON-NLS-1$
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void init_ChangeEvent_2088(ChangeEvent instance) {
+ try {
+ Object value_0 = name_ChangeEvent_2088(instance);
+ instance.setName((String)value_0);
+ } catch (RuntimeException e) {
+ UMLDiagramEditorPlugin.getInstance().logError("Element initialization failed", e); //$NON-NLS-1$
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void init_TimeEvent_2089(TimeEvent instance) {
+ try {
+ Object value_0 = name_TimeEvent_2089(instance);
+ instance.setName((String)value_0);
+ } catch (RuntimeException e) {
+ UMLDiagramEditorPlugin.getInstance().logError("Element initialization failed", e); //$NON-NLS-1$
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void init_CreationEvent_2090(CreationEvent instance) {
+ try {
+ Object value_0 = name_CreationEvent_2090(instance);
+ instance.setName((String)value_0);
+ } catch (RuntimeException e) {
+ UMLDiagramEditorPlugin.getInstance().logError("Element initialization failed", e); //$NON-NLS-1$
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void init_DestructionEvent_2091(DestructionEvent instance) {
+ try {
+ Object value_0 = name_DestructionEvent_2091(instance);
+ instance.setName((String)value_0);
+ } catch (RuntimeException e) {
+ UMLDiagramEditorPlugin.getInstance().logError("Element initialization failed", e); //$NON-NLS-1$
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void init_ExecutionEvent_2092(ExecutionEvent instance) {
+ try {
+ Object value_0 = name_ExecutionEvent_2092(instance);
+ instance.setName((String)value_0);
+ } catch (RuntimeException e) {
+ UMLDiagramEditorPlugin.getInstance().logError("Element initialization failed", e); //$NON-NLS-1$
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void init_DurationObservation_2093(DurationObservation instance) {
+ try {
+ Object value_0 = name_DurationObservation_2093(instance);
+ instance.setName((String)value_0);
+ } catch (RuntimeException e) {
+ UMLDiagramEditorPlugin.getInstance().logError("Element initialization failed", e); //$NON-NLS-1$
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void init_TimeObservation_2094(TimeObservation instance) {
+ try {
+ Object value_0 = name_TimeObservation_2094(instance);
+ instance.setName((String)value_0);
+ } catch (RuntimeException e) {
+ UMLDiagramEditorPlugin.getInstance().logError("Element initialization failed", e); //$NON-NLS-1$
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void init_LiteralBoolean_2095(LiteralBoolean instance) {
+ try {
+ Object value_0 = name_LiteralBoolean_2095(instance);
+ instance.setName((String)value_0);
+ } catch (RuntimeException e) {
+ UMLDiagramEditorPlugin.getInstance().logError("Element initialization failed", e); //$NON-NLS-1$
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void init_LiteralInteger_2096(LiteralInteger instance) {
+ try {
+ Object value_0 = name_LiteralInteger_2096(instance);
+ instance.setName((String)value_0);
+ } catch (RuntimeException e) {
+ UMLDiagramEditorPlugin.getInstance().logError("Element initialization failed", e); //$NON-NLS-1$
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void init_LiteralNull_2097(LiteralNull instance) {
+ try {
+ Object value_0 = name_LiteralNull_2097(instance);
+ instance.setName((String)value_0);
+ } catch (RuntimeException e) {
+ UMLDiagramEditorPlugin.getInstance().logError("Element initialization failed", e); //$NON-NLS-1$
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void init_LiteralString_2098(LiteralString instance) {
+ try {
+ Object value_0 = name_LiteralString_2098(instance);
+ instance.setName((String)value_0);
+ } catch (RuntimeException e) {
+ UMLDiagramEditorPlugin.getInstance().logError("Element initialization failed", e); //$NON-NLS-1$
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void init_LiteralUnlimitedNatural_2099(LiteralUnlimitedNatural instance) {
+ try {
+ Object value_0 = name_LiteralUnlimitedNatural_2099(instance);
+ instance.setName((String)value_0);
+ } catch (RuntimeException e) {
+ UMLDiagramEditorPlugin.getInstance().logError("Element initialization failed", e); //$NON-NLS-1$
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void init_StringExpression_2100(StringExpression instance) {
+ try {
+ Object value_0 = name_StringExpression_2100(instance);
+ instance.setName((String)value_0);
+ } catch (RuntimeException e) {
+ UMLDiagramEditorPlugin.getInstance().logError("Element initialization failed", e); //$NON-NLS-1$
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void init_OpaqueExpression_2101(OpaqueExpression instance) {
+ try {
+ Object value_0 = name_OpaqueExpression_2101(instance);
+ instance.setName((String)value_0);
+ } catch (RuntimeException e) {
+ UMLDiagramEditorPlugin.getInstance().logError("Element initialization failed", e); //$NON-NLS-1$
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void init_TimeExpression_2102(TimeExpression instance) {
+ try {
+ Object value_0 = name_TimeExpression_2102(instance);
+ instance.setName((String)value_0);
+ } catch (RuntimeException e) {
+ UMLDiagramEditorPlugin.getInstance().logError("Element initialization failed", e); //$NON-NLS-1$
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void init_Expression_2103(Expression instance) {
+ try {
+ Object value_0 = name_Expression_2103(instance);
+ instance.setName((String)value_0);
+ } catch (RuntimeException e) {
+ UMLDiagramEditorPlugin.getInstance().logError("Element initialization failed", e); //$NON-NLS-1$
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void init_Duration_2104(Duration instance) {
+ try {
+ Object value_0 = name_Duration_2104(instance);
+ instance.setName((String)value_0);
+ } catch (RuntimeException e) {
+ UMLDiagramEditorPlugin.getInstance().logError("Element initialization failed", e); //$NON-NLS-1$
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void init_TimeInterval_2105(TimeInterval instance) {
+ try {
+ Object value_0 = name_TimeInterval_2105(instance);
+ instance.setName((String)value_0);
+ } catch (RuntimeException e) {
+ UMLDiagramEditorPlugin.getInstance().logError("Element initialization failed", e); //$NON-NLS-1$
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void init_DurationInterval_2106(DurationInterval instance) {
+ try {
+ Object value_0 = name_DurationInterval_2106(instance);
+ instance.setName((String)value_0);
+ } catch (RuntimeException e) {
+ UMLDiagramEditorPlugin.getInstance().logError("Element initialization failed", e); //$NON-NLS-1$
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void init_Interval_2107(Interval instance) {
+ try {
+ Object value_0 = name_Interval_2107(instance);
+ instance.setName((String)value_0);
+ } catch (RuntimeException e) {
+ UMLDiagramEditorPlugin.getInstance().logError("Element initialization failed", e); //$NON-NLS-1$
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void init_InstanceValue_2108(InstanceValue instance) {
+ try {
+ Object value_0 = name_InstanceValue_2108(instance);
+ instance.setName((String)value_0);
+ } catch (RuntimeException e) {
+ UMLDiagramEditorPlugin.getInstance().logError("Element initialization failed", e); //$NON-NLS-1$
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void init_Comment_2109(Comment instance) {
+ try {
+ Object value_0 = body_Comment_2109(instance);
+ instance.setBody((String)value_0);
+ } catch (RuntimeException e) {
+ UMLDiagramEditorPlugin.getInstance().logError("Element initialization failed", e); //$NON-NLS-1$
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void init_DurationConstraint_2110(DurationConstraint instance) {
+ try {
+ Object value_0 = name_DurationConstraint_2110(instance);
+ instance.setName((String)value_0);
+ Object value_1 = specification_DurationConstraint_2110(instance);
+ instance.setSpecification((ValueSpecification)value_1);
+ } catch (RuntimeException e) {
+ UMLDiagramEditorPlugin.getInstance().logError("Element initialization failed", e); //$NON-NLS-1$
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void init_TimeConstraint_2111(TimeConstraint instance) {
+ try {
+ Object value_0 = name_TimeConstraint_2111(instance);
+ instance.setName((String)value_0);
+ Object value_1 = specification_TimeConstraint_2111(instance);
+ instance.setSpecification((ValueSpecification)value_1);
+ } catch (RuntimeException e) {
+ UMLDiagramEditorPlugin.getInstance().logError("Element initialization failed", e); //$NON-NLS-1$
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void init_IntervalConstraint_2112(IntervalConstraint instance) {
+ try {
+ Object value_0 = name_IntervalConstraint_2112(instance);
+ instance.setName((String)value_0);
+ Object value_1 = specification_IntervalConstraint_2112(instance);
+ instance.setSpecification((ValueSpecification)value_1);
+ } catch (RuntimeException e) {
+ UMLDiagramEditorPlugin.getInstance().logError("Element initialization failed", e); //$NON-NLS-1$
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void init_InteractionConstraint_2113(InteractionConstraint instance) {
+ try {
+ Object value_0 = name_InteractionConstraint_2113(instance);
+ instance.setName((String)value_0);
+ Object value_1 = specification_InteractionConstraint_2113(instance);
+ instance.setSpecification((ValueSpecification)value_1);
+ } catch (RuntimeException e) {
+ UMLDiagramEditorPlugin.getInstance().logError("Element initialization failed", e); //$NON-NLS-1$
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void init_Constraint_2114(Constraint instance) {
+ try {
+ Object value_0 = name_Constraint_2114(instance);
+ instance.setName((String)value_0);
+ Object value_1 = specification_Constraint_2114(instance);
+ instance.setSpecification((ValueSpecification)value_1);
+ } catch (RuntimeException e) {
+ UMLDiagramEditorPlugin.getInstance().logError("Element initialization failed", e); //$NON-NLS-1$
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void init_Port_3069(Port instance) {
+ try {
+ Object value_0 = name_Port_3069(instance);
+ instance.setName((String)value_0);
+ instance.setAggregation(AggregationKind.COMPOSITE_LITERAL);
+ } catch (RuntimeException e) {
+ UMLDiagramEditorPlugin.getInstance().logError("Element initialization failed", e); //$NON-NLS-1$
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void init_Parameter_3088(Parameter instance) {
+ try {
+ Object value_0 = name_Parameter_3088(instance);
+ instance.setName((String)value_0);
+ } catch (RuntimeException e) {
+ UMLDiagramEditorPlugin.getInstance().logError("Element initialization failed", e); //$NON-NLS-1$
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void init_Property_3070(Property instance) {
+ try {
+ Object value_0 = name_Property_3070(instance);
+ instance.setName((String)value_0);
+ } catch (RuntimeException e) {
+ UMLDiagramEditorPlugin.getInstance().logError("Element initialization failed", e); //$NON-NLS-1$
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void init_ConnectableElement_3115(ConnectableElement instance) {
+ try {
+ Object value_0 = name_ConnectableElement_3115(instance);
+ instance.setName((String)value_0);
+ } catch (RuntimeException e) {
+ UMLDiagramEditorPlugin.getInstance().logError("Element initialization failed", e); //$NON-NLS-1$
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void init_CollaborationUse_3071(CollaborationUse instance) {
+ try {
+ Object value_0 = name_CollaborationUse_3071(instance);
+ instance.setName((String)value_0);
+ } catch (RuntimeException e) {
+ UMLDiagramEditorPlugin.getInstance().logError("Element initialization failed", e); //$NON-NLS-1$
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void init_Activity_3072(Activity instance) {
+ try {
+ Object value_0 = name_Activity_3072(instance);
+ instance.setName((String)value_0);
+ } catch (RuntimeException e) {
+ UMLDiagramEditorPlugin.getInstance().logError("Element initialization failed", e); //$NON-NLS-1$
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void init_Interaction_3073(Interaction instance) {
+ try {
+ Object value_0 = name_Interaction_3073(instance);
+ instance.setName((String)value_0);
+ } catch (RuntimeException e) {
+ UMLDiagramEditorPlugin.getInstance().logError("Element initialization failed", e); //$NON-NLS-1$
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void init_ProtocolStateMachine_3074(ProtocolStateMachine instance) {
+ try {
+ Object value_0 = name_ProtocolStateMachine_3074(instance);
+ instance.setName((String)value_0);
+ } catch (RuntimeException e) {
+ UMLDiagramEditorPlugin.getInstance().logError("Element initialization failed", e); //$NON-NLS-1$
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void init_StateMachine_3075(StateMachine instance) {
+ try {
+ Object value_0 = name_StateMachine_3075(instance);
+ instance.setName((String)value_0);
+ } catch (RuntimeException e) {
+ UMLDiagramEditorPlugin.getInstance().logError("Element initialization failed", e); //$NON-NLS-1$
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void init_FunctionBehavior_3076(FunctionBehavior instance) {
+ try {
+ Object value_0 = name_FunctionBehavior_3076(instance);
+ instance.setName((String)value_0);
+ } catch (RuntimeException e) {
+ UMLDiagramEditorPlugin.getInstance().logError("Element initialization failed", e); //$NON-NLS-1$
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void init_OpaqueBehavior_3077(OpaqueBehavior instance) {
+ try {
+ Object value_0 = name_OpaqueBehavior_3077(instance);
+ instance.setName((String)value_0);
+ } catch (RuntimeException e) {
+ UMLDiagramEditorPlugin.getInstance().logError("Element initialization failed", e); //$NON-NLS-1$
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void init_Component_3081(Component instance) {
+ try {
+ Object value_0 = name_Component_3081(instance);
+ instance.setName((String)value_0);
+ } catch (RuntimeException e) {
+ UMLDiagramEditorPlugin.getInstance().logError("Element initialization failed", e); //$NON-NLS-1$
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void init_Device_3082(Device instance) {
+ try {
+ Object value_0 = name_Device_3082(instance);
+ instance.setName((String)value_0);
+ } catch (RuntimeException e) {
+ UMLDiagramEditorPlugin.getInstance().logError("Element initialization failed", e); //$NON-NLS-1$
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void init_ExecutionEnvironment_3083(ExecutionEnvironment instance) {
+ try {
+ Object value_0 = name_ExecutionEnvironment_3083(instance);
+ instance.setName((String)value_0);
+ } catch (RuntimeException e) {
+ UMLDiagramEditorPlugin.getInstance().logError("Element initialization failed", e); //$NON-NLS-1$
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void init_Node_3084(Node instance) {
+ try {
+ Object value_0 = name_Node_3084(instance);
+ instance.setName((String)value_0);
+ } catch (RuntimeException e) {
+ UMLDiagramEditorPlugin.getInstance().logError("Element initialization failed", e); //$NON-NLS-1$
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void init_Class_3085(Class instance) {
+ try {
+ Object value_0 = name_Class_3085(instance);
+ instance.setName((String)value_0);
+ } catch (RuntimeException e) {
+ UMLDiagramEditorPlugin.getInstance().logError("Element initialization failed", e); //$NON-NLS-1$
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void init_Collaboration_3086(Collaboration instance) {
+ try {
+ Object value_0 = name_Collaboration_3086(instance);
+ instance.setName((String)value_0);
+ } catch (RuntimeException e) {
+ UMLDiagramEditorPlugin.getInstance().logError("Element initialization failed", e); //$NON-NLS-1$
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void init_Interface_3087(Interface instance) {
+ try {
+ Object value_0 = name_Interface_3087(instance);
+ instance.setName((String)value_0);
+ } catch (RuntimeException e) {
+ UMLDiagramEditorPlugin.getInstance().logError("Element initialization failed", e); //$NON-NLS-1$
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void init_PrimitiveType_3078(PrimitiveType instance) {
+ try {
+ Object value_0 = name_PrimitiveType_3078(instance);
+ instance.setName((String)value_0);
+ } catch (RuntimeException e) {
+ UMLDiagramEditorPlugin.getInstance().logError("Element initialization failed", e); //$NON-NLS-1$
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void init_Enumeration_3079(Enumeration instance) {
+ try {
+ Object value_0 = name_Enumeration_3079(instance);
+ instance.setName((String)value_0);
+ } catch (RuntimeException e) {
+ UMLDiagramEditorPlugin.getInstance().logError("Element initialization failed", e); //$NON-NLS-1$
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void init_DataType_3080(DataType instance) {
+ try {
+ Object value_0 = name_DataType_3080(instance);
+ instance.setName((String)value_0);
+ } catch (RuntimeException e) {
+ UMLDiagramEditorPlugin.getInstance().logError("Element initialization failed", e); //$NON-NLS-1$
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void init_Actor_3091(Actor instance) {
+ try {
+ Object value_0 = name_Actor_3091(instance);
+ instance.setName((String)value_0);
+ } catch (RuntimeException e) {
+ UMLDiagramEditorPlugin.getInstance().logError("Element initialization failed", e); //$NON-NLS-1$
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void init_DeploymentSpecification_3092(DeploymentSpecification instance) {
+ try {
+ Object value_0 = name_DeploymentSpecification_3092(instance);
+ instance.setName((String)value_0);
+ } catch (RuntimeException e) {
+ UMLDiagramEditorPlugin.getInstance().logError("Element initialization failed", e); //$NON-NLS-1$
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void init_Artifact_3093(Artifact instance) {
+ try {
+ Object value_0 = name_Artifact_3093(instance);
+ instance.setName((String)value_0);
+ } catch (RuntimeException e) {
+ UMLDiagramEditorPlugin.getInstance().logError("Element initialization failed", e); //$NON-NLS-1$
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void init_InformationItem_3094(InformationItem instance) {
+ try {
+ Object value_0 = name_InformationItem_3094(instance);
+ instance.setName((String)value_0);
+ Object value_1 = isAbstract_InformationItem_3094(instance);
+ instance.setIsAbstract(((Boolean)value_1).booleanValue());
+ } catch (RuntimeException e) {
+ UMLDiagramEditorPlugin.getInstance().logError("Element initialization failed", e); //$NON-NLS-1$
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void init_Signal_3095(Signal instance) {
+ try {
+ Object value_0 = name_Signal_3095(instance);
+ instance.setName((String)value_0);
+ } catch (RuntimeException e) {
+ UMLDiagramEditorPlugin.getInstance().logError("Element initialization failed", e); //$NON-NLS-1$
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void init_UseCase_3096(UseCase instance) {
+ try {
+ Object value_0 = name_UseCase_3096(instance);
+ instance.setName((String)value_0);
+ } catch (RuntimeException e) {
+ UMLDiagramEditorPlugin.getInstance().logError("Element initialization failed", e); //$NON-NLS-1$
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void init_Comment_3097(Comment instance) {
+ try {
+ Object value_0 = body_Comment_3097(instance);
+ instance.setBody((String)value_0);
+ } catch (RuntimeException e) {
+ UMLDiagramEditorPlugin.getInstance().logError("Element initialization failed", e); //$NON-NLS-1$
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void init_DurationConstraint_3116(DurationConstraint instance) {
+ try {
+ Object value_0 = name_DurationConstraint_3116(instance);
+ instance.setName((String)value_0);
+ Object value_1 = specification_DurationConstraint_3116(instance);
+ instance.setSpecification((ValueSpecification)value_1);
+ } catch (RuntimeException e) {
+ UMLDiagramEditorPlugin.getInstance().logError("Element initialization failed", e); //$NON-NLS-1$
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void init_TimeConstraint_3117(TimeConstraint instance) {
+ try {
+ Object value_0 = name_TimeConstraint_3117(instance);
+ instance.setName((String)value_0);
+ Object value_1 = specification_TimeConstraint_3117(instance);
+ instance.setSpecification((ValueSpecification)value_1);
+ } catch (RuntimeException e) {
+ UMLDiagramEditorPlugin.getInstance().logError("Element initialization failed", e); //$NON-NLS-1$
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void init_IntervalConstraint_3118(IntervalConstraint instance) {
+ try {
+ Object value_0 = name_IntervalConstraint_3118(instance);
+ instance.setName((String)value_0);
+ Object value_1 = specification_IntervalConstraint_3118(instance);
+ instance.setSpecification((ValueSpecification)value_1);
+ } catch (RuntimeException e) {
+ UMLDiagramEditorPlugin.getInstance().logError("Element initialization failed", e); //$NON-NLS-1$
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void init_InteractionConstraint_3119(InteractionConstraint instance) {
+ try {
+ Object value_0 = name_InteractionConstraint_3119(instance);
+ instance.setName((String)value_0);
+ Object value_1 = specification_InteractionConstraint_3119(instance);
+ instance.setSpecification((ValueSpecification)value_1);
+ } catch (RuntimeException e) {
+ UMLDiagramEditorPlugin.getInstance().logError("Element initialization failed", e); //$NON-NLS-1$
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void init_Constraint_3120(Constraint instance) {
+ try {
+ Object value_0 = name_Constraint_3120(instance);
+ instance.setName((String)value_0);
+ Object value_1 = specification_Constraint_3120(instance);
+ instance.setSpecification((ValueSpecification)value_1);
+ } catch (RuntimeException e) {
+ UMLDiagramEditorPlugin.getInstance().logError("Element initialization failed", e); //$NON-NLS-1$
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void init_Property_3101(Property instance) {
+ try {
+ Object value_0 = name_Property_3101(instance);
+ instance.setName((String)value_0);
+ } catch (RuntimeException e) {
+ UMLDiagramEditorPlugin.getInstance().logError("Element initialization failed", e); //$NON-NLS-1$
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void init_Operation_3102(Operation instance) {
+ try {
+ Object value_0 = name_Operation_3102(instance);
+ instance.setName((String)value_0);
+ } catch (RuntimeException e) {
+ UMLDiagramEditorPlugin.getInstance().logError("Element initialization failed", e); //$NON-NLS-1$
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void init_Reception_3100(Reception instance) {
+ try {
+ Object value_0 = name_Reception_3100(instance);
+ instance.setName((String)value_0);
+ } catch (RuntimeException e) {
+ UMLDiagramEditorPlugin.getInstance().logError("Element initialization failed", e); //$NON-NLS-1$
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void init_EnumerationLiteral_3066(EnumerationLiteral instance) {
+ try {
+ Object value_0 = name_EnumerationLiteral_3066(instance);
+ instance.setName((String)value_0);
+ } catch (RuntimeException e) {
+ UMLDiagramEditorPlugin.getInstance().logError("Element initialization failed", e); //$NON-NLS-1$
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void init_Activity_3103(Activity instance) {
+ try {
+ Object value_0 = name_Activity_3103(instance);
+ instance.setName((String)value_0);
+ } catch (RuntimeException e) {
+ UMLDiagramEditorPlugin.getInstance().logError("Element initialization failed", e); //$NON-NLS-1$
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void init_Interaction_3104(Interaction instance) {
+ try {
+ Object value_0 = name_Interaction_3104(instance);
+ instance.setName((String)value_0);
+ } catch (RuntimeException e) {
+ UMLDiagramEditorPlugin.getInstance().logError("Element initialization failed", e); //$NON-NLS-1$
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void init_ProtocolStateMachine_3105(ProtocolStateMachine instance) {
+ try {
+ Object value_0 = name_ProtocolStateMachine_3105(instance);
+ instance.setName((String)value_0);
+ } catch (RuntimeException e) {
+ UMLDiagramEditorPlugin.getInstance().logError("Element initialization failed", e); //$NON-NLS-1$
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void init_StateMachine_3106(StateMachine instance) {
+ try {
+ Object value_0 = name_StateMachine_3106(instance);
+ instance.setName((String)value_0);
+ } catch (RuntimeException e) {
+ UMLDiagramEditorPlugin.getInstance().logError("Element initialization failed", e); //$NON-NLS-1$
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void init_FunctionBehavior_3107(FunctionBehavior instance) {
+ try {
+ Object value_0 = name_FunctionBehavior_3107(instance);
+ instance.setName((String)value_0);
+ } catch (RuntimeException e) {
+ UMLDiagramEditorPlugin.getInstance().logError("Element initialization failed", e); //$NON-NLS-1$
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void init_OpaqueBehavior_3108(OpaqueBehavior instance) {
+ try {
+ Object value_0 = name_OpaqueBehavior_3108(instance);
+ instance.setName((String)value_0);
+ } catch (RuntimeException e) {
+ UMLDiagramEditorPlugin.getInstance().logError("Element initialization failed", e); //$NON-NLS-1$
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void init_Collaboration_3109(Collaboration instance) {
+ try {
+ Object value_0 = name_Collaboration_3109(instance);
+ instance.setName((String)value_0);
+ } catch (RuntimeException e) {
+ UMLDiagramEditorPlugin.getInstance().logError("Element initialization failed", e); //$NON-NLS-1$
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void init_Interface_3110(Interface instance) {
+ try {
+ Object value_0 = name_Interface_3110(instance);
+ instance.setName((String)value_0);
+ } catch (RuntimeException e) {
+ UMLDiagramEditorPlugin.getInstance().logError("Element initialization failed", e); //$NON-NLS-1$
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void init_Enumeration_3111(Enumeration instance) {
+ try {
+ Object value_0 = name_Enumeration_3111(instance);
+ instance.setName((String)value_0);
+ } catch (RuntimeException e) {
+ UMLDiagramEditorPlugin.getInstance().logError("Element initialization failed", e); //$NON-NLS-1$
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void init_PrimitiveType_3112(PrimitiveType instance) {
+ try {
+ Object value_0 = name_PrimitiveType_3112(instance);
+ instance.setName((String)value_0);
+ } catch (RuntimeException e) {
+ UMLDiagramEditorPlugin.getInstance().logError("Element initialization failed", e); //$NON-NLS-1$
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void init_DataType_3113(DataType instance) {
+ try {
+ Object value_0 = name_DataType_3113(instance);
+ instance.setName((String)value_0);
+ } catch (RuntimeException e) {
+ UMLDiagramEditorPlugin.getInstance().logError("Element initialization failed", e); //$NON-NLS-1$
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void init_Class_3114(Class instance) {
+ try {
+ Object value_0 = name_Class_3114(instance);
+ instance.setName((String)value_0);
+ } catch (RuntimeException e) {
+ UMLDiagramEditorPlugin.getInstance().logError("Element initialization failed", e); //$NON-NLS-1$
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void init_ComponentRealization_4004(ComponentRealization instance) {
+ try {
+ Object value_0 = name_ComponentRealization_4004(instance);
+ instance.setName((String)value_0);
+ } catch (RuntimeException e) {
+ UMLDiagramEditorPlugin.getInstance().logError("Element initialization failed", e); //$NON-NLS-1$
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void init_InterfaceRealization_4005(InterfaceRealization instance) {
+ try {
+ Object value_0 = name_InterfaceRealization_4005(instance);
+ instance.setName((String)value_0);
+ } catch (RuntimeException e) {
+ UMLDiagramEditorPlugin.getInstance().logError("Element initialization failed", e); //$NON-NLS-1$
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void init_Substitution_4011(Substitution instance) {
+ try {
+ Object value_0 = name_Substitution_4011(instance);
+ instance.setName((String)value_0);
+ } catch (RuntimeException e) {
+ UMLDiagramEditorPlugin.getInstance().logError("Element initialization failed", e); //$NON-NLS-1$
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void init_Realization_4006(Realization instance) {
+ try {
+ Object value_0 = name_Realization_4006(instance);
+ instance.setName((String)value_0);
+ } catch (RuntimeException e) {
+ UMLDiagramEditorPlugin.getInstance().logError("Element initialization failed", e); //$NON-NLS-1$
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void init_Manifestation_4012(Manifestation instance) {
+ try {
+ Object value_0 = name_Manifestation_4012(instance);
+ instance.setName((String)value_0);
+ } catch (RuntimeException e) {
+ UMLDiagramEditorPlugin.getInstance().logError("Element initialization failed", e); //$NON-NLS-1$
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void init_Abstraction_4007(Abstraction instance) {
+ try {
+ Object value_0 = name_Abstraction_4007(instance);
+ instance.setName((String)value_0);
+ } catch (RuntimeException e) {
+ UMLDiagramEditorPlugin.getInstance().logError("Element initialization failed", e); //$NON-NLS-1$
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void init_Usage_4008(Usage instance) {
+ try {
+ Object value_0 = name_Usage_4008(instance);
+ instance.setName((String)value_0);
+ } catch (RuntimeException e) {
+ UMLDiagramEditorPlugin.getInstance().logError("Element initialization failed", e); //$NON-NLS-1$
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void init_Deployment_4009(Deployment instance) {
+ try {
+ Object value_0 = name_Deployment_4009(instance);
+ instance.setName((String)value_0);
+ } catch (RuntimeException e) {
+ UMLDiagramEditorPlugin.getInstance().logError("Element initialization failed", e); //$NON-NLS-1$
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void init_Dependency_4010(Dependency instance) {
+ try {
+ Object value_0 = name_Dependency_4010(instance);
+ instance.setName((String)value_0);
+ } catch (RuntimeException e) {
+ UMLDiagramEditorPlugin.getInstance().logError("Element initialization failed", e); //$NON-NLS-1$
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void init_Connector_4013(Connector instance) {
+ try {
+ Object value_0 = name_Connector_4013(instance);
+ instance.setName((String)value_0);
+ } catch (RuntimeException e) {
+ UMLDiagramEditorPlugin.getInstance().logError("Element initialization failed", e); //$NON-NLS-1$
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void init_InformationFlow_4021(InformationFlow instance) {
+ try {
+ Object value_0 = name_InformationFlow_4021(instance);
+ instance.setName((String)value_0);
+ } catch (RuntimeException e) {
+ UMLDiagramEditorPlugin.getInstance().logError("Element initialization failed", e); //$NON-NLS-1$
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private String name_Activity_2060(Activity self) {
+ return NamedElementHelper.EINSTANCE.getNewUMLElementName(self.getOwner(), self.eClass());
+ }
+
+ /**
+ * @generated
+ */
+ private String name_Interaction_2061(Interaction self) {
+ return NamedElementHelper.EINSTANCE.getNewUMLElementName(self.getOwner(), self.eClass());
+ }
+
+ /**
+ * @generated
+ */
+ private String name_ProtocolStateMachine_2062(ProtocolStateMachine self) {
+ return NamedElementHelper.EINSTANCE.getNewUMLElementName(self.getOwner(), self.eClass());
+ }
+
+ /**
+ * @generated
+ */
+ private String name_StateMachine_2063(StateMachine self) {
+ return NamedElementHelper.EINSTANCE.getNewUMLElementName(self.getOwner(), self.eClass());
+ }
+
+ /**
+ * @generated
+ */
+ private String name_FunctionBehavior_2064(FunctionBehavior self) {
+ return NamedElementHelper.EINSTANCE.getNewUMLElementName(self.getOwner(), self.eClass());
+ }
+
+ /**
+ * @generated
+ */
+ private String name_OpaqueBehavior_2065(OpaqueBehavior self) {
+ return NamedElementHelper.EINSTANCE.getNewUMLElementName(self.getOwner(), self.eClass());
+ }
+
+ /**
+ * @generated
+ */
+ private String name_Component_2069(Component self) {
+ return NamedElementHelper.EINSTANCE.getNewUMLElementName(self.getOwner(), self.eClass());
+ }
+
+ /**
+ * @generated
+ */
+ private String name_Device_2070(Device self) {
+ return NamedElementHelper.EINSTANCE.getNewUMLElementName(self.getOwner(), self.eClass());
+ }
+
+ /**
+ * @generated
+ */
+ private String name_ExecutionEnvironment_2071(ExecutionEnvironment self) {
+ return NamedElementHelper.EINSTANCE.getNewUMLElementName(self.getOwner(), self.eClass());
+ }
+
+ /**
+ * @generated
+ */
+ private String name_Node_2072(Node self) {
+ return NamedElementHelper.EINSTANCE.getNewUMLElementName(self.getOwner(), self.eClass());
+ }
+
+ /**
+ * @generated
+ */
+ private String name_Class_2073(Class self) {
+ return NamedElementHelper.EINSTANCE.getNewUMLElementName(self.getOwner(), self.eClass());
+ }
+
+ /**
+ * @generated
+ */
+ private String name_Collaboration_2075(Collaboration self) {
+ return NamedElementHelper.EINSTANCE.getNewUMLElementName(self.getOwner(), self.eClass());
+ }
+
+ /**
+ * @generated
+ */
+ private String name_Interface_2076(Interface self) {
+ return NamedElementHelper.EINSTANCE.getNewUMLElementName(self.getOwner(), self.eClass());
+ }
+
+ /**
+ * @generated
+ */
+ private String name_PrimitiveType_2066(PrimitiveType self) {
+ return NamedElementHelper.EINSTANCE.getNewUMLElementName(self.getOwner(), self.eClass());
+ }
+
+ /**
+ * @generated
+ */
+ private String name_Enumeration_2067(Enumeration self) {
+ return NamedElementHelper.EINSTANCE.getNewUMLElementName(self.getOwner(), self.eClass());
+ }
+
+ /**
+ * @generated
+ */
+ private String name_DataType_2068(DataType self) {
+ return NamedElementHelper.EINSTANCE.getNewUMLElementName(self.getOwner(), self.eClass());
+ }
+
+ /**
+ * @generated
+ */
+ private String name_Actor_2077(Actor self) {
+ return NamedElementHelper.EINSTANCE.getNewUMLElementName(self.getOwner(), self.eClass());
+ }
+
+ /**
+ * @generated
+ */
+ private String name_DeploymentSpecification_2078(DeploymentSpecification self) {
+ return NamedElementHelper.EINSTANCE.getNewUMLElementName(self.getOwner(), self.eClass());
+ }
+
+ /**
+ * @generated
+ */
+ private String name_Artifact_2079(Artifact self) {
+ return NamedElementHelper.EINSTANCE.getNewUMLElementName(self.getOwner(), self.eClass());
+ }
+
+ /**
+ * @generated
+ */
+ private String name_InformationItem_2080(InformationItem self) {
+ return NamedElementHelper.EINSTANCE.getNewUMLElementName(self.getOwner(), self.eClass());
+ }
+
+ /**
+ * @generated
+ */
+ private Boolean isAbstract_InformationItem_2080(InformationItem self) {
+ // InformationItem is Abstract
+ return true;
+ }
+
+ /**
+ * @generated
+ */
+ private String name_Signal_2081(Signal self) {
+ return NamedElementHelper.EINSTANCE.getNewUMLElementName(self.getOwner(), self.eClass());
+ }
+
+ /**
+ * @generated
+ */
+ private String name_UseCase_2082(UseCase self) {
+ return NamedElementHelper.EINSTANCE.getNewUMLElementName(self.getOwner(), self.eClass());
+ }
+
+ /**
+ * @generated
+ */
+ private String name_SignalEvent_2083(SignalEvent self) {
+ return NamedElementHelper.EINSTANCE.getNewUMLElementName(self.getOwner(), self.eClass());
+ }
+
+ /**
+ * @generated
+ */
+ private String name_CallEvent_2084(CallEvent self) {
+ return NamedElementHelper.EINSTANCE.getNewUMLElementName(self.getOwner(), self.eClass());
+ }
+
+ /**
+ * @generated
+ */
+ private String name_AnyReceiveEvent_2085(AnyReceiveEvent self) {
+ return NamedElementHelper.EINSTANCE.getNewUMLElementName(self.getOwner(), self.eClass());
+ }
+
+ /**
+ * @generated
+ */
+ private String name_SendSignalEvent_2086(SendSignalEvent self) {
+ return NamedElementHelper.EINSTANCE.getNewUMLElementName(self.getOwner(), self.eClass());
+ }
+
+ /**
+ * @generated
+ */
+ private String name_SendOperationEvent_2087(SendOperationEvent self) {
+ return NamedElementHelper.EINSTANCE.getNewUMLElementName(self.getOwner(), self.eClass());
+ }
+
+ /**
+ * @generated
+ */
+ private String name_ChangeEvent_2088(ChangeEvent self) {
+ return NamedElementHelper.EINSTANCE.getNewUMLElementName(self.getOwner(), self.eClass());
+ }
+
+ /**
+ * @generated
+ */
+ private String name_TimeEvent_2089(TimeEvent self) {
+ return NamedElementHelper.EINSTANCE.getNewUMLElementName(self.getOwner(), self.eClass());
+ }
+
+ /**
+ * @generated
+ */
+ private String name_CreationEvent_2090(CreationEvent self) {
+ return NamedElementHelper.EINSTANCE.getNewUMLElementName(self.getOwner(), self.eClass());
+ }
+
+ /**
+ * @generated
+ */
+ private String name_DestructionEvent_2091(DestructionEvent self) {
+ return NamedElementHelper.EINSTANCE.getNewUMLElementName(self.getOwner(), self.eClass());
+ }
+
+ /**
+ * @generated
+ */
+ private String name_ExecutionEvent_2092(ExecutionEvent self) {
+ return NamedElementHelper.EINSTANCE.getNewUMLElementName(self.getOwner(), self.eClass());
+ }
+
+ /**
+ * @generated
+ */
+ private String name_DurationObservation_2093(DurationObservation self) {
+ return NamedElementHelper.EINSTANCE.getNewUMLElementName(self.getOwner(), self.eClass());
+ }
+
+ /**
+ * @generated
+ */
+ private String name_TimeObservation_2094(TimeObservation self) {
+ return NamedElementHelper.EINSTANCE.getNewUMLElementName(self.getOwner(), self.eClass());
+ }
+
+ /**
+ * @generated
+ */
+ private String name_LiteralBoolean_2095(LiteralBoolean self) {
+ return NamedElementHelper.EINSTANCE.getNewUMLElementName(self.getOwner(), self.eClass());
+ }
+
+ /**
+ * @generated
+ */
+ private String name_LiteralInteger_2096(LiteralInteger self) {
+ return NamedElementHelper.EINSTANCE.getNewUMLElementName(self.getOwner(), self.eClass());
+ }
+
+ /**
+ * @generated
+ */
+ private String name_LiteralNull_2097(LiteralNull self) {
+ return NamedElementHelper.EINSTANCE.getNewUMLElementName(self.getOwner(), self.eClass());
+ }
+
+ /**
+ * @generated
+ */
+ private String name_LiteralString_2098(LiteralString self) {
+ return NamedElementHelper.EINSTANCE.getNewUMLElementName(self.getOwner(), self.eClass());
+ }
+
+ /**
+ * @generated
+ */
+ private String name_LiteralUnlimitedNatural_2099(LiteralUnlimitedNatural self) {
+ return NamedElementHelper.EINSTANCE.getNewUMLElementName(self.getOwner(), self.eClass());
+ }
+
+ /**
+ * @generated
+ */
+ private String name_StringExpression_2100(StringExpression self) {
+ return NamedElementHelper.EINSTANCE.getNewUMLElementName(self.getOwner(), self.eClass());
+ }
+
+ /**
+ * @generated
+ */
+ private String name_OpaqueExpression_2101(OpaqueExpression self) {
+ return NamedElementHelper.EINSTANCE.getNewUMLElementName(self.getOwner(), self.eClass());
+ }
+
+ /**
+ * @generated
+ */
+ private String name_TimeExpression_2102(TimeExpression self) {
+ return NamedElementHelper.EINSTANCE.getNewUMLElementName(self.getOwner(), self.eClass());
+ }
+
+ /**
+ * @generated
+ */
+ private String name_Expression_2103(Expression self) {
+ return NamedElementHelper.EINSTANCE.getNewUMLElementName(self.getOwner(), self.eClass());
+ }
+
+ /**
+ * @generated
+ */
+ private String name_Duration_2104(Duration self) {
+ return NamedElementHelper.EINSTANCE.getNewUMLElementName(self.getOwner(), self.eClass());
+ }
+
+ /**
+ * @generated
+ */
+ private String name_TimeInterval_2105(TimeInterval self) {
+ return NamedElementHelper.EINSTANCE.getNewUMLElementName(self.getOwner(), self.eClass());
+ }
+
+ /**
+ * @generated
+ */
+ private String name_DurationInterval_2106(DurationInterval self) {
+ return NamedElementHelper.EINSTANCE.getNewUMLElementName(self.getOwner(), self.eClass());
+ }
+
+ /**
+ * @generated
+ */
+ private String name_Interval_2107(Interval self) {
+ return NamedElementHelper.EINSTANCE.getNewUMLElementName(self.getOwner(), self.eClass());
+ }
+
+ /**
+ * @generated
+ */
+ private String name_InstanceValue_2108(InstanceValue self) {
+ return NamedElementHelper.EINSTANCE.getNewUMLElementName(self.getOwner(), self.eClass());
+ }
+
+ /**
+ * @generated
+ */
+ private String body_Comment_2109(Comment self) {
+ // Comment body init
+ return "";
+ }
+
+ /**
+ * @generated
+ */
+ private String name_DurationConstraint_2110(DurationConstraint self) {
+ return NamedElementHelper.EINSTANCE.getNewUMLElementName(self.getOwner(), self.eClass());
+ }
+
+ /**
+ * @generated
+ */
+ private ValueSpecification specification_DurationConstraint_2110(DurationConstraint self) {
+ // Constraint specification init
+ LiteralString value = UMLFactory.eINSTANCE.createLiteralString();
+ value.setValue("");
+ return value;
+ }
+
+ /**
+ * @generated
+ */
+ private String name_TimeConstraint_2111(TimeConstraint self) {
+ return NamedElementHelper.EINSTANCE.getNewUMLElementName(self.getOwner(), self.eClass());
+ }
+
+ /**
+ * @generated
+ */
+ private ValueSpecification specification_TimeConstraint_2111(TimeConstraint self) {
+ // Constraint specification init
+ LiteralString value = UMLFactory.eINSTANCE.createLiteralString();
+ value.setValue("");
+ return value;
+ }
+
+ /**
+ * @generated
+ */
+ private String name_IntervalConstraint_2112(IntervalConstraint self) {
+ return NamedElementHelper.EINSTANCE.getNewUMLElementName(self.getOwner(), self.eClass());
+ }
+
+ /**
+ * @generated
+ */
+ private ValueSpecification specification_IntervalConstraint_2112(IntervalConstraint self) {
+ // Constraint specification init
+ LiteralString value = UMLFactory.eINSTANCE.createLiteralString();
+ value.setValue("");
+ return value;
+ }
+
+ /**
+ * @generated
+ */
+ private String name_InteractionConstraint_2113(InteractionConstraint self) {
+ return NamedElementHelper.EINSTANCE.getNewUMLElementName(self.getOwner(), self.eClass());
+ }
+
+ /**
+ * @generated
+ */
+ private ValueSpecification specification_InteractionConstraint_2113(InteractionConstraint self) {
+ // Constraint specification init
+ LiteralString value = UMLFactory.eINSTANCE.createLiteralString();
+ value.setValue("");
+ return value;
+ }
+
+ /**
+ * @generated
+ */
+ private String name_Constraint_2114(Constraint self) {
+ return NamedElementHelper.EINSTANCE.getNewUMLElementName(self.getOwner(), self.eClass());
+ }
+
+ /**
+ * @generated
+ */
+ private ValueSpecification specification_Constraint_2114(Constraint self) {
+ // Constraint specification init
+ LiteralString value = UMLFactory.eINSTANCE.createLiteralString();
+ value.setValue("");
+ return value;
+ }
+
+ /**
+ * @generated
+ */
+ private String name_Port_3069(Port self) {
+ return NamedElementHelper.EINSTANCE.getNewUMLElementName(self.getOwner(), self.eClass());
+ }
+
+ /**
+ * @generated
+ */
+ private String name_Parameter_3088(Parameter self) {
+ return NamedElementHelper.EINSTANCE.getNewUMLElementName(self.getOwner(), self.eClass());
+ }
+
+ /**
+ * @generated
+ */
+ private String name_Property_3070(Property self) {
+ return NamedElementHelper.EINSTANCE.getNewUMLElementName(self.getOwner(), self.eClass());
+ }
+
+ /**
+ * @generated
+ */
+ private String name_ConnectableElement_3115(ConnectableElement self) {
+ return NamedElementHelper.EINSTANCE.getNewUMLElementName(self.getOwner(), self.eClass());
+ }
+
+ /**
+ * @generated
+ */
+ private String name_CollaborationUse_3071(CollaborationUse self) {
+ return NamedElementHelper.EINSTANCE.getNewUMLElementName(self.getOwner(), self.eClass());
+ }
+
+ /**
+ * @generated
+ */
+ private String name_Activity_3072(Activity self) {
+ return NamedElementHelper.EINSTANCE.getNewUMLElementName(self.getOwner(), self.eClass());
+ }
+
+ /**
+ * @generated
+ */
+ private String name_Interaction_3073(Interaction self) {
+ return NamedElementHelper.EINSTANCE.getNewUMLElementName(self.getOwner(), self.eClass());
+ }
+
+ /**
+ * @generated
+ */
+ private String name_ProtocolStateMachine_3074(ProtocolStateMachine self) {
+ return NamedElementHelper.EINSTANCE.getNewUMLElementName(self.getOwner(), self.eClass());
+ }
+
+ /**
+ * @generated
+ */
+ private String name_StateMachine_3075(StateMachine self) {
+ return NamedElementHelper.EINSTANCE.getNewUMLElementName(self.getOwner(), self.eClass());
+ }
+
+ /**
+ * @generated
+ */
+ private String name_FunctionBehavior_3076(FunctionBehavior self) {
+ return NamedElementHelper.EINSTANCE.getNewUMLElementName(self.getOwner(), self.eClass());
+ }
+
+ /**
+ * @generated
+ */
+ private String name_OpaqueBehavior_3077(OpaqueBehavior self) {
+ return NamedElementHelper.EINSTANCE.getNewUMLElementName(self.getOwner(), self.eClass());
+ }
+
+ /**
+ * @generated
+ */
+ private String name_Component_3081(Component self) {
+ return NamedElementHelper.EINSTANCE.getNewUMLElementName(self.getOwner(), self.eClass());
+ }
+
+ /**
+ * @generated
+ */
+ private String name_Device_3082(Device self) {
+ return NamedElementHelper.EINSTANCE.getNewUMLElementName(self.getOwner(), self.eClass());
+ }
+
+ /**
+ * @generated
+ */
+ private String name_ExecutionEnvironment_3083(ExecutionEnvironment self) {
+ return NamedElementHelper.EINSTANCE.getNewUMLElementName(self.getOwner(), self.eClass());
+ }
+
+ /**
+ * @generated
+ */
+ private String name_Node_3084(Node self) {
+ return NamedElementHelper.EINSTANCE.getNewUMLElementName(self.getOwner(), self.eClass());
+ }
+
+ /**
+ * @generated
+ */
+ private String name_Class_3085(Class self) {
+ return NamedElementHelper.EINSTANCE.getNewUMLElementName(self.getOwner(), self.eClass());
+ }
+
+ /**
+ * @generated
+ */
+ private String name_Collaboration_3086(Collaboration self) {
+ return NamedElementHelper.EINSTANCE.getNewUMLElementName(self.getOwner(), self.eClass());
+ }
+
+ /**
+ * @generated
+ */
+ private String name_Interface_3087(Interface self) {
+ return NamedElementHelper.EINSTANCE.getNewUMLElementName(self.getOwner(), self.eClass());
+ }
+
+ /**
+ * @generated
+ */
+ private String name_PrimitiveType_3078(PrimitiveType self) {
+ return NamedElementHelper.EINSTANCE.getNewUMLElementName(self.getOwner(), self.eClass());
+ }
+
+ /**
+ * @generated
+ */
+ private String name_Enumeration_3079(Enumeration self) {
+ return NamedElementHelper.EINSTANCE.getNewUMLElementName(self.getOwner(), self.eClass());
+ }
+
+ /**
+ * @generated
+ */
+ private String name_DataType_3080(DataType self) {
+ return NamedElementHelper.EINSTANCE.getNewUMLElementName(self.getOwner(), self.eClass());
+ }
+
+ /**
+ * @generated
+ */
+ private String name_Actor_3091(Actor self) {
+ return NamedElementHelper.EINSTANCE.getNewUMLElementName(self.getOwner(), self.eClass());
+ }
+
+ /**
+ * @generated
+ */
+ private String name_DeploymentSpecification_3092(DeploymentSpecification self) {
+ return NamedElementHelper.EINSTANCE.getNewUMLElementName(self.getOwner(), self.eClass());
+ }
+
+ /**
+ * @generated
+ */
+ private String name_Artifact_3093(Artifact self) {
+ return NamedElementHelper.EINSTANCE.getNewUMLElementName(self.getOwner(), self.eClass());
+ }
+
+ /**
+ * @generated
+ */
+ private String name_InformationItem_3094(InformationItem self) {
+ return NamedElementHelper.EINSTANCE.getNewUMLElementName(self.getOwner(), self.eClass());
+ }
+
+ /**
+ * @generated
+ */
+ private Boolean isAbstract_InformationItem_3094(InformationItem self) {
+ // InformationItem is Abstract
+ return true;
+ }
+
+ /**
+ * @generated
+ */
+ private String name_Signal_3095(Signal self) {
+ return NamedElementHelper.EINSTANCE.getNewUMLElementName(self.getOwner(), self.eClass());
+ }
+
+ /**
+ * @generated
+ */
+ private String name_UseCase_3096(UseCase self) {
+ return NamedElementHelper.EINSTANCE.getNewUMLElementName(self.getOwner(), self.eClass());
+ }
+
+ /**
+ * @generated
+ */
+ private String body_Comment_3097(Comment self) {
+ // Comment body init
+ return "";
+ }
+
+ /**
+ * @generated
+ */
+ private String name_DurationConstraint_3116(DurationConstraint self) {
+ return NamedElementHelper.EINSTANCE.getNewUMLElementName(self.getOwner(), self.eClass());
+ }
+
+ /**
+ * @generated
+ */
+ private ValueSpecification specification_DurationConstraint_3116(DurationConstraint self) {
+ // Constraint specification init
+ LiteralString value = UMLFactory.eINSTANCE.createLiteralString();
+ value.setValue("");
+ return value;
+ }
+
+ /**
+ * @generated
+ */
+ private String name_TimeConstraint_3117(TimeConstraint self) {
+ return NamedElementHelper.EINSTANCE.getNewUMLElementName(self.getOwner(), self.eClass());
+ }
+
+ /**
+ * @generated
+ */
+ private ValueSpecification specification_TimeConstraint_3117(TimeConstraint self) {
+ // Constraint specification init
+ LiteralString value = UMLFactory.eINSTANCE.createLiteralString();
+ value.setValue("");
+ return value;
+ }
+
+ /**
+ * @generated
+ */
+ private String name_IntervalConstraint_3118(IntervalConstraint self) {
+ return NamedElementHelper.EINSTANCE.getNewUMLElementName(self.getOwner(), self.eClass());
+ }
+
+ /**
+ * @generated
+ */
+ private ValueSpecification specification_IntervalConstraint_3118(IntervalConstraint self) {
+ // Constraint specification init
+ LiteralString value = UMLFactory.eINSTANCE.createLiteralString();
+ value.setValue("");
+ return value;
+ }
+
+ /**
+ * @generated
+ */
+ private String name_InteractionConstraint_3119(InteractionConstraint self) {
+ return NamedElementHelper.EINSTANCE.getNewUMLElementName(self.getOwner(), self.eClass());
+ }
+
+ /**
+ * @generated
+ */
+ private ValueSpecification specification_InteractionConstraint_3119(InteractionConstraint self) {
+ // Constraint specification init
+ LiteralString value = UMLFactory.eINSTANCE.createLiteralString();
+ value.setValue("");
+ return value;
+ }
+
+ /**
+ * @generated
+ */
+ private String name_Constraint_3120(Constraint self) {
+ return NamedElementHelper.EINSTANCE.getNewUMLElementName(self.getOwner(), self.eClass());
+ }
+
+ /**
+ * @generated
+ */
+ private ValueSpecification specification_Constraint_3120(Constraint self) {
+ // Constraint specification init
+ LiteralString value = UMLFactory.eINSTANCE.createLiteralString();
+ value.setValue("");
+ return value;
+ }
+
+ /**
+ * @generated
+ */
+ private String name_Property_3101(Property self) {
+ return NamedElementHelper.EINSTANCE.getNewUMLElementName(self.getOwner(), self.eClass());
+ }
+
+ /**
+ * @generated
+ */
+ private String name_Operation_3102(Operation self) {
+ return NamedElementHelper.EINSTANCE.getNewUMLElementName(self.getOwner(), self.eClass());
+ }
+
+ /**
+ * @generated
+ */
+ private String name_Reception_3100(Reception self) {
+ return NamedElementHelper.EINSTANCE.getNewUMLElementName(self.getOwner(), self.eClass());
+ }
+
+ /**
+ * @generated
+ */
+ private String name_EnumerationLiteral_3066(EnumerationLiteral self) {
+ return NamedElementHelper.EINSTANCE.getNewUMLElementName(self.getOwner(), self.eClass());
+ }
+
+ /**
+ * @generated
+ */
+ private String name_Activity_3103(Activity self) {
+ return NamedElementHelper.EINSTANCE.getNewUMLElementName(self.getOwner(), self.eClass());
+ }
+
+ /**
+ * @generated
+ */
+ private String name_Interaction_3104(Interaction self) {
+ return NamedElementHelper.EINSTANCE.getNewUMLElementName(self.getOwner(), self.eClass());
+ }
+
+ /**
+ * @generated
+ */
+ private String name_ProtocolStateMachine_3105(ProtocolStateMachine self) {
+ return NamedElementHelper.EINSTANCE.getNewUMLElementName(self.getOwner(), self.eClass());
+ }
+
+ /**
+ * @generated
+ */
+ private String name_StateMachine_3106(StateMachine self) {
+ return NamedElementHelper.EINSTANCE.getNewUMLElementName(self.getOwner(), self.eClass());
+ }
+
+ /**
+ * @generated
+ */
+ private String name_FunctionBehavior_3107(FunctionBehavior self) {
+ return NamedElementHelper.EINSTANCE.getNewUMLElementName(self.getOwner(), self.eClass());
+ }
+
+ /**
+ * @generated
+ */
+ private String name_OpaqueBehavior_3108(OpaqueBehavior self) {
+ return NamedElementHelper.EINSTANCE.getNewUMLElementName(self.getOwner(), self.eClass());
+ }
+
+ /**
+ * @generated
+ */
+ private String name_Collaboration_3109(Collaboration self) {
+ return NamedElementHelper.EINSTANCE.getNewUMLElementName(self.getOwner(), self.eClass());
+ }
+
+ /**
+ * @generated
+ */
+ private String name_Interface_3110(Interface self) {
+ return NamedElementHelper.EINSTANCE.getNewUMLElementName(self.getOwner(), self.eClass());
+ }
+
+ /**
+ * @generated
+ */
+ private String name_Enumeration_3111(Enumeration self) {
+ return NamedElementHelper.EINSTANCE.getNewUMLElementName(self.getOwner(), self.eClass());
+ }
+
+ /**
+ * @generated
+ */
+ private String name_PrimitiveType_3112(PrimitiveType self) {
+ return NamedElementHelper.EINSTANCE.getNewUMLElementName(self.getOwner(), self.eClass());
+ }
+
+ /**
+ * @generated
+ */
+ private String name_DataType_3113(DataType self) {
+ return NamedElementHelper.EINSTANCE.getNewUMLElementName(self.getOwner(), self.eClass());
+ }
+
+ /**
+ * @generated
+ */
+ private String name_Class_3114(Class self) {
+ return NamedElementHelper.EINSTANCE.getNewUMLElementName(self.getOwner(), self.eClass());
+ }
+
+ /**
+ * @generated
+ */
+ private String name_ComponentRealization_4004(ComponentRealization self) {
+ return NamedElementHelper.EINSTANCE.getNewUMLElementName(self.getOwner(), self.eClass());
+ }
+
+ /**
+ * @generated
+ */
+ private String name_InterfaceRealization_4005(InterfaceRealization self) {
+ return NamedElementHelper.EINSTANCE.getNewUMLElementName(self.getOwner(), self.eClass());
+ }
+
+ /**
+ * @generated
+ */
+ private String name_Substitution_4011(Substitution self) {
+ return NamedElementHelper.EINSTANCE.getNewUMLElementName(self.getOwner(), self.eClass());
+ }
+
+ /**
+ * @generated
+ */
+ private String name_Realization_4006(Realization self) {
+ return NamedElementHelper.EINSTANCE.getNewUMLElementName(self.getOwner(), self.eClass());
+ }
+
+ /**
+ * @generated
+ */
+ private String name_Manifestation_4012(Manifestation self) {
+ return NamedElementHelper.EINSTANCE.getNewUMLElementName(self.getOwner(), self.eClass());
+ }
+
+ /**
+ * @generated
+ */
+ private String name_Abstraction_4007(Abstraction self) {
+ return NamedElementHelper.EINSTANCE.getNewUMLElementName(self.getOwner(), self.eClass());
+ }
+
+ /**
+ * @generated
+ */
+ private String name_Usage_4008(Usage self) {
+ return NamedElementHelper.EINSTANCE.getNewUMLElementName(self.getOwner(), self.eClass());
+ }
+
+ /**
+ * @generated
+ */
+ private String name_Deployment_4009(Deployment self) {
+ return NamedElementHelper.EINSTANCE.getNewUMLElementName(self.getOwner(), self.eClass());
+ }
+
+ /**
+ * @generated
+ */
+ private String name_Dependency_4010(Dependency self) {
+ return NamedElementHelper.EINSTANCE.getNewUMLElementName(self.getOwner(), self.eClass());
+ }
+
+ /**
+ * @generated
+ */
+ private String name_Connector_4013(Connector self) {
+ return NamedElementHelper.EINSTANCE.getNewUMLElementName(self.getOwner(), self.eClass());
+ }
+
+ /**
+ * @generated
+ */
+ private String name_InformationFlow_4021(InformationFlow self) {
+ return NamedElementHelper.EINSTANCE.getNewUMLElementName(self.getOwner(), self.eClass());
+ }
+
+ /**
+ * @generated
+ */
+ public static ElementInitializers getInstance() {
+ ElementInitializers cached = UMLDiagramEditorPlugin.getInstance().getElementInitializers();
+ if(cached == null) {
+ UMLDiagramEditorPlugin.getInstance().setElementInitializers(cached = new ElementInitializers());
+ }
+ return cached;
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/providers/UMLEditPartProvider.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/providers/UMLEditPartProvider.java
new file mode 100644
index 00000000000..db1340a3c01
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/providers/UMLEditPartProvider.java
@@ -0,0 +1,154 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.providers;
+
+import java.lang.ref.WeakReference;
+
+import org.eclipse.gef.EditPart;
+import org.eclipse.gef.EditPartFactory;
+import org.eclipse.gmf.runtime.common.core.service.IOperation;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.services.editpart.AbstractEditPartProvider;
+import org.eclipse.gmf.runtime.diagram.ui.services.editpart.CreateGraphicEditPartOperation;
+import org.eclipse.gmf.runtime.diagram.ui.services.editpart.IEditPartOperation;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CompositeStructureDiagramEditPart;
+import org.eclipse.papyrus.diagram.composite.edit.parts.UMLEditPartFactory;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+
+/**
+ * @generated
+ */
+public class UMLEditPartProvider extends AbstractEditPartProvider {
+
+ /**
+ * @generated
+ */
+ private EditPartFactory factory;
+
+ /**
+ * @generated
+ */
+ private boolean allowCaching;
+
+ /**
+ * @generated
+ */
+ private WeakReference cachedPart;
+
+ /**
+ * @generated
+ */
+ private WeakReference cachedView;
+
+ /**
+ * @generated
+ */
+ public UMLEditPartProvider() {
+ setFactory(new UMLEditPartFactory());
+ setAllowCaching(true);
+ }
+
+ /**
+ * @generated
+ */
+ public final EditPartFactory getFactory() {
+ return factory;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setFactory(EditPartFactory factory) {
+ this.factory = factory;
+ }
+
+ /**
+ * @generated
+ */
+ public final boolean isAllowCaching() {
+ return allowCaching;
+ }
+
+ /**
+ * @generated
+ */
+ protected synchronized void setAllowCaching(boolean allowCaching) {
+ this.allowCaching = allowCaching;
+ if(!allowCaching) {
+ cachedPart = null;
+ cachedView = null;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected IGraphicalEditPart createEditPart(View view) {
+ EditPart part = factory.createEditPart(null, view);
+ if(part instanceof IGraphicalEditPart) {
+ return (IGraphicalEditPart)part;
+ }
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected IGraphicalEditPart getCachedPart(View view) {
+ if(cachedView != null && cachedView.get() == view) {
+ return (IGraphicalEditPart)cachedPart.get();
+ }
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ public synchronized IGraphicalEditPart createGraphicEditPart(View view) {
+ if(isAllowCaching()) {
+ IGraphicalEditPart part = getCachedPart(view);
+ cachedPart = null;
+ cachedView = null;
+ if(part != null) {
+ return part;
+ }
+ }
+ return createEditPart(view);
+ }
+
+ /**
+ * @generated
+ */
+ public synchronized boolean provides(IOperation operation) {
+ if(operation instanceof CreateGraphicEditPartOperation) {
+ View view = ((IEditPartOperation)operation).getView();
+ if(!CompositeStructureDiagramEditPart.MODEL_ID.equals(UMLVisualIDRegistry.getModelID(view))) {
+ return false;
+ }
+ if(isAllowCaching() && getCachedPart(view) != null) {
+ return true;
+ }
+ IGraphicalEditPart part = createEditPart(view);
+ if(part != null) {
+ if(isAllowCaching()) {
+ cachedPart = new WeakReference(part);
+ cachedView = new WeakReference(view);
+ }
+ return true;
+ }
+ }
+ return false;
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/providers/UMLElementTypes.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/providers/UMLElementTypes.java
new file mode 100644
index 00000000000..33b2e68dc31
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/providers/UMLElementTypes.java
@@ -0,0 +1,1424 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.providers;
+
+import java.util.HashSet;
+import java.util.IdentityHashMap;
+import java.util.Map;
+import java.util.Set;
+
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EClassifier;
+import org.eclipse.emf.ecore.ENamedElement;
+import org.eclipse.emf.ecore.EStructuralFeature;
+import org.eclipse.gmf.runtime.emf.type.core.ElementTypeRegistry;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.jface.resource.ImageDescriptor;
+import org.eclipse.jface.resource.ImageRegistry;
+import org.eclipse.papyrus.diagram.composite.edit.parts.*;
+import org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorPlugin;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.uml2.uml.UMLPackage;
+
+/**
+ * @generated
+ */
+public class UMLElementTypes {
+
+ /**
+ * @generated
+ */
+ private UMLElementTypes() {
+ }
+
+ /**
+ * @generated
+ */
+ private static Map<IElementType, ENamedElement> elements;
+
+ /**
+ * @generated
+ */
+ private static ImageRegistry imageRegistry;
+
+ /**
+ * @generated
+ */
+ private static Set<IElementType> KNOWN_ELEMENT_TYPES;
+
+ /**
+ * @generated
+ */
+ public static final IElementType Package_1000 = getElementType("org.eclipse.papyrus.diagram.composite.Package_1000"); //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ public static final IElementType Activity_2060 = getElementType("org.eclipse.papyrus.diagram.composite.Activity_2060"); //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ public static final IElementType Interaction_2061 = getElementType("org.eclipse.papyrus.diagram.composite.Interaction_2061"); //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ public static final IElementType ProtocolStateMachine_2062 = getElementType("org.eclipse.papyrus.diagram.composite.ProtocolStateMachine_2062"); //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ public static final IElementType StateMachine_2063 = getElementType("org.eclipse.papyrus.diagram.composite.StateMachine_2063"); //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ public static final IElementType FunctionBehavior_2064 = getElementType("org.eclipse.papyrus.diagram.composite.FunctionBehavior_2064"); //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ public static final IElementType OpaqueBehavior_2065 = getElementType("org.eclipse.papyrus.diagram.composite.OpaqueBehavior_2065"); //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ public static final IElementType Component_2069 = getElementType("org.eclipse.papyrus.diagram.composite.Component_2069"); //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ public static final IElementType Device_2070 = getElementType("org.eclipse.papyrus.diagram.composite.Device_2070"); //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ public static final IElementType ExecutionEnvironment_2071 = getElementType("org.eclipse.papyrus.diagram.composite.ExecutionEnvironment_2071"); //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ public static final IElementType Node_2072 = getElementType("org.eclipse.papyrus.diagram.composite.Node_2072"); //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ public static final IElementType Class_2073 = getElementType("org.eclipse.papyrus.diagram.composite.Class_2073"); //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ public static final IElementType Collaboration_2075 = getElementType("org.eclipse.papyrus.diagram.composite.Collaboration_2075"); //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ public static final IElementType Interface_2076 = getElementType("org.eclipse.papyrus.diagram.composite.Interface_2076"); //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ public static final IElementType PrimitiveType_2066 = getElementType("org.eclipse.papyrus.diagram.composite.PrimitiveType_2066"); //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ public static final IElementType Enumeration_2067 = getElementType("org.eclipse.papyrus.diagram.composite.Enumeration_2067"); //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ public static final IElementType DataType_2068 = getElementType("org.eclipse.papyrus.diagram.composite.DataType_2068"); //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ public static final IElementType Actor_2077 = getElementType("org.eclipse.papyrus.diagram.composite.Actor_2077"); //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ public static final IElementType DeploymentSpecification_2078 = getElementType("org.eclipse.papyrus.diagram.composite.DeploymentSpecification_2078"); //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ public static final IElementType Artifact_2079 = getElementType("org.eclipse.papyrus.diagram.composite.Artifact_2079"); //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ public static final IElementType InformationItem_2080 = getElementType("org.eclipse.papyrus.diagram.composite.InformationItem_2080"); //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ public static final IElementType Signal_2081 = getElementType("org.eclipse.papyrus.diagram.composite.Signal_2081"); //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ public static final IElementType UseCase_2082 = getElementType("org.eclipse.papyrus.diagram.composite.UseCase_2082"); //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ public static final IElementType SignalEvent_2083 = getElementType("org.eclipse.papyrus.diagram.composite.SignalEvent_2083"); //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ public static final IElementType CallEvent_2084 = getElementType("org.eclipse.papyrus.diagram.composite.CallEvent_2084"); //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ public static final IElementType AnyReceiveEvent_2085 = getElementType("org.eclipse.papyrus.diagram.composite.AnyReceiveEvent_2085"); //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ public static final IElementType SendSignalEvent_2086 = getElementType("org.eclipse.papyrus.diagram.composite.SendSignalEvent_2086"); //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ public static final IElementType SendOperationEvent_2087 = getElementType("org.eclipse.papyrus.diagram.composite.SendOperationEvent_2087"); //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ public static final IElementType ChangeEvent_2088 = getElementType("org.eclipse.papyrus.diagram.composite.ChangeEvent_2088"); //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ public static final IElementType TimeEvent_2089 = getElementType("org.eclipse.papyrus.diagram.composite.TimeEvent_2089"); //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ public static final IElementType CreationEvent_2090 = getElementType("org.eclipse.papyrus.diagram.composite.CreationEvent_2090"); //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ public static final IElementType DestructionEvent_2091 = getElementType("org.eclipse.papyrus.diagram.composite.DestructionEvent_2091"); //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ public static final IElementType ExecutionEvent_2092 = getElementType("org.eclipse.papyrus.diagram.composite.ExecutionEvent_2092"); //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ public static final IElementType DurationObservation_2093 = getElementType("org.eclipse.papyrus.diagram.composite.DurationObservation_2093"); //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ public static final IElementType TimeObservation_2094 = getElementType("org.eclipse.papyrus.diagram.composite.TimeObservation_2094"); //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ public static final IElementType LiteralBoolean_2095 = getElementType("org.eclipse.papyrus.diagram.composite.LiteralBoolean_2095"); //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ public static final IElementType LiteralInteger_2096 = getElementType("org.eclipse.papyrus.diagram.composite.LiteralInteger_2096"); //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ public static final IElementType LiteralNull_2097 = getElementType("org.eclipse.papyrus.diagram.composite.LiteralNull_2097"); //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ public static final IElementType LiteralString_2098 = getElementType("org.eclipse.papyrus.diagram.composite.LiteralString_2098"); //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ public static final IElementType LiteralUnlimitedNatural_2099 = getElementType("org.eclipse.papyrus.diagram.composite.LiteralUnlimitedNatural_2099"); //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ public static final IElementType StringExpression_2100 = getElementType("org.eclipse.papyrus.diagram.composite.StringExpression_2100"); //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ public static final IElementType OpaqueExpression_2101 = getElementType("org.eclipse.papyrus.diagram.composite.OpaqueExpression_2101"); //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ public static final IElementType TimeExpression_2102 = getElementType("org.eclipse.papyrus.diagram.composite.TimeExpression_2102"); //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ public static final IElementType Expression_2103 = getElementType("org.eclipse.papyrus.diagram.composite.Expression_2103"); //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ public static final IElementType Duration_2104 = getElementType("org.eclipse.papyrus.diagram.composite.Duration_2104"); //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ public static final IElementType TimeInterval_2105 = getElementType("org.eclipse.papyrus.diagram.composite.TimeInterval_2105"); //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ public static final IElementType DurationInterval_2106 = getElementType("org.eclipse.papyrus.diagram.composite.DurationInterval_2106"); //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ public static final IElementType Interval_2107 = getElementType("org.eclipse.papyrus.diagram.composite.Interval_2107"); //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ public static final IElementType InstanceValue_2108 = getElementType("org.eclipse.papyrus.diagram.composite.InstanceValue_2108"); //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ public static final IElementType Comment_2109 = getElementType("org.eclipse.papyrus.diagram.composite.Comment_2109"); //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ public static final IElementType DurationConstraint_2110 = getElementType("org.eclipse.papyrus.diagram.composite.DurationConstraint_2110"); //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ public static final IElementType TimeConstraint_2111 = getElementType("org.eclipse.papyrus.diagram.composite.TimeConstraint_2111"); //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ public static final IElementType IntervalConstraint_2112 = getElementType("org.eclipse.papyrus.diagram.composite.IntervalConstraint_2112"); //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ public static final IElementType InteractionConstraint_2113 = getElementType("org.eclipse.papyrus.diagram.composite.InteractionConstraint_2113"); //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ public static final IElementType Constraint_2114 = getElementType("org.eclipse.papyrus.diagram.composite.Constraint_2114"); //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ public static final IElementType Port_3069 = getElementType("org.eclipse.papyrus.diagram.composite.Port_3069"); //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ public static final IElementType Parameter_3088 = getElementType("org.eclipse.papyrus.diagram.composite.Parameter_3088"); //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ public static final IElementType Property_3070 = getElementType("org.eclipse.papyrus.diagram.composite.Property_3070"); //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ public static final IElementType ConnectableElement_3115 = getElementType("org.eclipse.papyrus.diagram.composite.prototype.CollaborationRole_3115"); //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ public static final IElementType CollaborationUse_3071 = getElementType("org.eclipse.papyrus.diagram.composite.CollaborationUse_3071"); //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ public static final IElementType Activity_3072 = getElementType("org.eclipse.papyrus.diagram.composite.Activity_3072"); //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ public static final IElementType Interaction_3073 = getElementType("org.eclipse.papyrus.diagram.composite.Interaction_3073"); //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ public static final IElementType ProtocolStateMachine_3074 = getElementType("org.eclipse.papyrus.diagram.composite.ProtocolStateMachine_3074"); //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ public static final IElementType StateMachine_3075 = getElementType("org.eclipse.papyrus.diagram.composite.StateMachine_3075"); //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ public static final IElementType FunctionBehavior_3076 = getElementType("org.eclipse.papyrus.diagram.composite.FunctionBehavior_3076"); //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ public static final IElementType OpaqueBehavior_3077 = getElementType("org.eclipse.papyrus.diagram.composite.OpaqueBehavior_3077"); //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ public static final IElementType Component_3081 = getElementType("org.eclipse.papyrus.diagram.composite.Component_3081"); //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ public static final IElementType Device_3082 = getElementType("org.eclipse.papyrus.diagram.composite.Device_3082"); //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ public static final IElementType ExecutionEnvironment_3083 = getElementType("org.eclipse.papyrus.diagram.composite.ExecutionEnvironment_3083"); //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ public static final IElementType Node_3084 = getElementType("org.eclipse.papyrus.diagram.composite.Node_3084"); //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ public static final IElementType Class_3085 = getElementType("org.eclipse.papyrus.diagram.composite.Class_3085"); //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ public static final IElementType Collaboration_3086 = getElementType("org.eclipse.papyrus.diagram.composite.Collaboration_3086"); //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ public static final IElementType Interface_3087 = getElementType("org.eclipse.papyrus.diagram.composite.Interface_3087"); //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ public static final IElementType PrimitiveType_3078 = getElementType("org.eclipse.papyrus.diagram.composite.PrimitiveType_3078"); //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ public static final IElementType Enumeration_3079 = getElementType("org.eclipse.papyrus.diagram.composite.Enumeration_3079"); //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ public static final IElementType DataType_3080 = getElementType("org.eclipse.papyrus.diagram.composite.DataType_3080"); //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ public static final IElementType Actor_3091 = getElementType("org.eclipse.papyrus.diagram.composite.Actor_3091"); //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ public static final IElementType DeploymentSpecification_3092 = getElementType("org.eclipse.papyrus.diagram.composite.DeploymentSpecification_3092"); //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ public static final IElementType Artifact_3093 = getElementType("org.eclipse.papyrus.diagram.composite.Artifact_3093"); //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ public static final IElementType InformationItem_3094 = getElementType("org.eclipse.papyrus.diagram.composite.InformationItem_3094"); //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ public static final IElementType Signal_3095 = getElementType("org.eclipse.papyrus.diagram.composite.Signal_3095"); //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ public static final IElementType UseCase_3096 = getElementType("org.eclipse.papyrus.diagram.composite.UseCase_3096"); //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ public static final IElementType Comment_3097 = getElementType("org.eclipse.papyrus.diagram.composite.Comment_3097"); //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ public static final IElementType DurationConstraint_3116 = getElementType("org.eclipse.papyrus.diagram.composite.DurationConstraint_3116"); //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ public static final IElementType TimeConstraint_3117 = getElementType("org.eclipse.papyrus.diagram.composite.TimeConstraint_3117"); //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ public static final IElementType IntervalConstraint_3118 = getElementType("org.eclipse.papyrus.diagram.composite.IntervalConstraint_3118"); //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ public static final IElementType InteractionConstraint_3119 = getElementType("org.eclipse.papyrus.diagram.composite.InteractionConstraint_3119"); //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ public static final IElementType Constraint_3120 = getElementType("org.eclipse.papyrus.diagram.composite.Constraint_3120"); //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ public static final IElementType Property_3101 = getElementType("org.eclipse.papyrus.diagram.composite.Property_3101"); //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ public static final IElementType Operation_3102 = getElementType("org.eclipse.papyrus.diagram.composite.Operation_3102"); //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ public static final IElementType Reception_3100 = getElementType("org.eclipse.papyrus.diagram.composite.Reception_3100"); //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ public static final IElementType EnumerationLiteral_3066 = getElementType("org.eclipse.papyrus.diagram.composite.EnumerationLiteral_3066"); //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ public static final IElementType Activity_3103 = getElementType("org.eclipse.papyrus.diagram.composite.Activity_3103"); //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ public static final IElementType Interaction_3104 = getElementType("org.eclipse.papyrus.diagram.composite.Interaction_3104"); //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ public static final IElementType ProtocolStateMachine_3105 = getElementType("org.eclipse.papyrus.diagram.composite.ProtocolStateMachine_3105"); //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ public static final IElementType StateMachine_3106 = getElementType("org.eclipse.papyrus.diagram.composite.StateMachine_3106"); //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ public static final IElementType FunctionBehavior_3107 = getElementType("org.eclipse.papyrus.diagram.composite.FunctionBehavior_3107"); //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ public static final IElementType OpaqueBehavior_3108 = getElementType("org.eclipse.papyrus.diagram.composite.OpaqueBehavior_3108"); //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ public static final IElementType Collaboration_3109 = getElementType("org.eclipse.papyrus.diagram.composite.Collaboration_3109"); //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ public static final IElementType Interface_3110 = getElementType("org.eclipse.papyrus.diagram.composite.Interface_3110"); //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ public static final IElementType Enumeration_3111 = getElementType("org.eclipse.papyrus.diagram.composite.Enumeration_3111"); //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ public static final IElementType PrimitiveType_3112 = getElementType("org.eclipse.papyrus.diagram.composite.PrimitiveType_3112"); //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ public static final IElementType DataType_3113 = getElementType("org.eclipse.papyrus.diagram.composite.DataType_3113"); //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ public static final IElementType Class_3114 = getElementType("org.eclipse.papyrus.diagram.composite.Class_3114"); //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ public static final IElementType Link_4001 = getElementType("org.eclipse.papyrus.diagram.composite.Link_4001"); //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ public static final IElementType CommentAnnotatedElement_4002 = getElementType("org.eclipse.papyrus.diagram.composite.CommentAnnotatedElement_4002"); //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ public static final IElementType ConstraintConstrainedElement_4003 = getElementType("org.eclipse.papyrus.diagram.composite.ConstraintConstrainedElement_4003"); //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ public static final IElementType ComponentRealization_4004 = getElementType("org.eclipse.papyrus.diagram.composite.ComponentRealization_4004"); //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ public static final IElementType InterfaceRealization_4005 = getElementType("org.eclipse.papyrus.diagram.composite.InterfaceRealization_4005"); //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ public static final IElementType Substitution_4011 = getElementType("org.eclipse.papyrus.diagram.composite.Substitution_4011"); //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ public static final IElementType Realization_4006 = getElementType("org.eclipse.papyrus.diagram.composite.Realization_4006"); //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ public static final IElementType Manifestation_4012 = getElementType("org.eclipse.papyrus.diagram.composite.Manifestation_4012"); //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ public static final IElementType Abstraction_4007 = getElementType("org.eclipse.papyrus.diagram.composite.Abstraction_4007"); //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ public static final IElementType Usage_4008 = getElementType("org.eclipse.papyrus.diagram.composite.Usage_4008"); //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ public static final IElementType Deployment_4009 = getElementType("org.eclipse.papyrus.diagram.composite.Deployment_4009"); //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ public static final IElementType Dependency_4017 = getElementType("org.eclipse.papyrus.diagram.composite.RoleBinding_4017"); //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ public static final IElementType Dependency_4010 = getElementType("org.eclipse.papyrus.diagram.composite.Dependency_4010"); //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ public static final IElementType Connector_4013 = getElementType("org.eclipse.papyrus.diagram.composite.Connector_4013"); //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ public static final IElementType Generalization_4015 = getElementType("org.eclipse.papyrus.diagram.composite.Generalization_4015"); //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ public static final IElementType TimeObservationEvent_4018 = getElementType("org.eclipse.papyrus.diagram.composite.TimeObservationEvent_4018"); //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ public static final IElementType DurationObservationEvent_4019 = getElementType("org.eclipse.papyrus.diagram.composite.DurationObservationEvent_4019"); //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ public static final IElementType InformationItemRepresented_4020 = getElementType("org.eclipse.papyrus.diagram.composite.Representation_4020"); //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ public static final IElementType InformationFlow_4021 = getElementType("org.eclipse.papyrus.diagram.composite.InformationFlow_4021"); //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ private static ImageRegistry getImageRegistry() {
+ if(imageRegistry == null) {
+ imageRegistry = new ImageRegistry();
+ }
+ return imageRegistry;
+ }
+
+ /**
+ * @generated
+ */
+ private static String getImageRegistryKey(ENamedElement element) {
+ return element.getName();
+ }
+
+ /**
+ * @generated
+ */
+ private static ImageDescriptor getProvidedImageDescriptor(ENamedElement element) {
+ if(element instanceof EStructuralFeature) {
+ EStructuralFeature feature = ((EStructuralFeature)element);
+ EClass eContainingClass = feature.getEContainingClass();
+ EClassifier eType = feature.getEType();
+ if(eContainingClass != null && !eContainingClass.isAbstract()) {
+ element = eContainingClass;
+ } else if(eType instanceof EClass && !((EClass)eType).isAbstract()) {
+ element = eType;
+ }
+ }
+ if(element instanceof EClass) {
+ EClass eClass = (EClass)element;
+ if(!eClass.isAbstract()) {
+ return UMLDiagramEditorPlugin.getInstance().getItemImageDescriptor(eClass.getEPackage().getEFactoryInstance().create(eClass));
+ }
+ }
+ // TODO : support structural features
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ public static ImageDescriptor getImageDescriptor(ENamedElement element) {
+ String key = getImageRegistryKey(element);
+ ImageDescriptor imageDescriptor = getImageRegistry().getDescriptor(key);
+ if(imageDescriptor == null) {
+ imageDescriptor = getProvidedImageDescriptor(element);
+ if(imageDescriptor == null) {
+ imageDescriptor = ImageDescriptor.getMissingImageDescriptor();
+ }
+ getImageRegistry().put(key, imageDescriptor);
+ }
+ return imageDescriptor;
+ }
+
+ /**
+ * @generated
+ */
+ public static Image getImage(ENamedElement element) {
+ String key = getImageRegistryKey(element);
+ Image image = getImageRegistry().get(key);
+ if(image == null) {
+ ImageDescriptor imageDescriptor = getProvidedImageDescriptor(element);
+ if(imageDescriptor == null) {
+ imageDescriptor = ImageDescriptor.getMissingImageDescriptor();
+ }
+ getImageRegistry().put(key, imageDescriptor);
+ image = getImageRegistry().get(key);
+ }
+ return image;
+ }
+
+ /**
+ * @generated
+ */
+ public static ImageDescriptor getImageDescriptor(IAdaptable hint) {
+ ENamedElement element = getElement(hint);
+ if(element == null) {
+ return null;
+ }
+ return getImageDescriptor(element);
+ }
+
+ /**
+ * @generated
+ */
+ public static Image getImage(IAdaptable hint) {
+ ENamedElement element = getElement(hint);
+ if(element == null) {
+ return null;
+ }
+ return getImage(element);
+ }
+
+ /**
+ * Returns 'type' of the ecore object associated with the hint.
+ *
+ * @generated
+ */
+ public static ENamedElement getElement(IAdaptable hint) {
+ Object type = hint.getAdapter(IElementType.class);
+ if(elements == null) {
+ elements = new IdentityHashMap<IElementType, ENamedElement>();
+
+ elements.put(Package_1000, UMLPackage.eINSTANCE.getPackage());
+
+ elements.put(Activity_2060, UMLPackage.eINSTANCE.getActivity());
+
+ elements.put(Interaction_2061, UMLPackage.eINSTANCE.getInteraction());
+
+ elements.put(ProtocolStateMachine_2062, UMLPackage.eINSTANCE.getProtocolStateMachine());
+
+ elements.put(StateMachine_2063, UMLPackage.eINSTANCE.getStateMachine());
+
+ elements.put(FunctionBehavior_2064, UMLPackage.eINSTANCE.getFunctionBehavior());
+
+ elements.put(OpaqueBehavior_2065, UMLPackage.eINSTANCE.getOpaqueBehavior());
+
+ elements.put(Component_2069, UMLPackage.eINSTANCE.getComponent());
+
+ elements.put(Device_2070, UMLPackage.eINSTANCE.getDevice());
+
+ elements.put(ExecutionEnvironment_2071, UMLPackage.eINSTANCE.getExecutionEnvironment());
+
+ elements.put(Node_2072, UMLPackage.eINSTANCE.getNode());
+
+ elements.put(Class_2073, UMLPackage.eINSTANCE.getClass_());
+
+ elements.put(Collaboration_2075, UMLPackage.eINSTANCE.getCollaboration());
+
+ elements.put(Interface_2076, UMLPackage.eINSTANCE.getInterface());
+
+ elements.put(PrimitiveType_2066, UMLPackage.eINSTANCE.getPrimitiveType());
+
+ elements.put(Enumeration_2067, UMLPackage.eINSTANCE.getEnumeration());
+
+ elements.put(DataType_2068, UMLPackage.eINSTANCE.getDataType());
+
+ elements.put(Actor_2077, UMLPackage.eINSTANCE.getActor());
+
+ elements.put(DeploymentSpecification_2078, UMLPackage.eINSTANCE.getDeploymentSpecification());
+
+ elements.put(Artifact_2079, UMLPackage.eINSTANCE.getArtifact());
+
+ elements.put(InformationItem_2080, UMLPackage.eINSTANCE.getInformationItem());
+
+ elements.put(Signal_2081, UMLPackage.eINSTANCE.getSignal());
+
+ elements.put(UseCase_2082, UMLPackage.eINSTANCE.getUseCase());
+
+ elements.put(SignalEvent_2083, UMLPackage.eINSTANCE.getSignalEvent());
+
+ elements.put(CallEvent_2084, UMLPackage.eINSTANCE.getCallEvent());
+
+ elements.put(AnyReceiveEvent_2085, UMLPackage.eINSTANCE.getAnyReceiveEvent());
+
+ elements.put(SendSignalEvent_2086, UMLPackage.eINSTANCE.getSendSignalEvent());
+
+ elements.put(SendOperationEvent_2087, UMLPackage.eINSTANCE.getSendOperationEvent());
+
+ elements.put(ChangeEvent_2088, UMLPackage.eINSTANCE.getChangeEvent());
+
+ elements.put(TimeEvent_2089, UMLPackage.eINSTANCE.getTimeEvent());
+
+ elements.put(CreationEvent_2090, UMLPackage.eINSTANCE.getCreationEvent());
+
+ elements.put(DestructionEvent_2091, UMLPackage.eINSTANCE.getDestructionEvent());
+
+ elements.put(ExecutionEvent_2092, UMLPackage.eINSTANCE.getExecutionEvent());
+
+ elements.put(DurationObservation_2093, UMLPackage.eINSTANCE.getDurationObservation());
+
+ elements.put(TimeObservation_2094, UMLPackage.eINSTANCE.getTimeObservation());
+
+ elements.put(LiteralBoolean_2095, UMLPackage.eINSTANCE.getLiteralBoolean());
+
+ elements.put(LiteralInteger_2096, UMLPackage.eINSTANCE.getLiteralInteger());
+
+ elements.put(LiteralNull_2097, UMLPackage.eINSTANCE.getLiteralNull());
+
+ elements.put(LiteralString_2098, UMLPackage.eINSTANCE.getLiteralString());
+
+ elements.put(LiteralUnlimitedNatural_2099, UMLPackage.eINSTANCE.getLiteralUnlimitedNatural());
+
+ elements.put(StringExpression_2100, UMLPackage.eINSTANCE.getStringExpression());
+
+ elements.put(OpaqueExpression_2101, UMLPackage.eINSTANCE.getOpaqueExpression());
+
+ elements.put(TimeExpression_2102, UMLPackage.eINSTANCE.getTimeExpression());
+
+ elements.put(Expression_2103, UMLPackage.eINSTANCE.getExpression());
+
+ elements.put(Duration_2104, UMLPackage.eINSTANCE.getDuration());
+
+ elements.put(TimeInterval_2105, UMLPackage.eINSTANCE.getTimeInterval());
+
+ elements.put(DurationInterval_2106, UMLPackage.eINSTANCE.getDurationInterval());
+
+ elements.put(Interval_2107, UMLPackage.eINSTANCE.getInterval());
+
+ elements.put(InstanceValue_2108, UMLPackage.eINSTANCE.getInstanceValue());
+
+ elements.put(Comment_2109, UMLPackage.eINSTANCE.getComment());
+
+ elements.put(DurationConstraint_2110, UMLPackage.eINSTANCE.getDurationConstraint());
+
+ elements.put(TimeConstraint_2111, UMLPackage.eINSTANCE.getTimeConstraint());
+
+ elements.put(IntervalConstraint_2112, UMLPackage.eINSTANCE.getIntervalConstraint());
+
+ elements.put(InteractionConstraint_2113, UMLPackage.eINSTANCE.getInteractionConstraint());
+
+ elements.put(Constraint_2114, UMLPackage.eINSTANCE.getConstraint());
+
+ elements.put(Port_3069, UMLPackage.eINSTANCE.getPort());
+
+ elements.put(Parameter_3088, UMLPackage.eINSTANCE.getParameter());
+
+ elements.put(Property_3070, UMLPackage.eINSTANCE.getProperty());
+
+ elements.put(ConnectableElement_3115, UMLPackage.eINSTANCE.getConnectableElement());
+
+ elements.put(CollaborationUse_3071, UMLPackage.eINSTANCE.getCollaborationUse());
+
+ elements.put(Activity_3072, UMLPackage.eINSTANCE.getActivity());
+
+ elements.put(Interaction_3073, UMLPackage.eINSTANCE.getInteraction());
+
+ elements.put(ProtocolStateMachine_3074, UMLPackage.eINSTANCE.getProtocolStateMachine());
+
+ elements.put(StateMachine_3075, UMLPackage.eINSTANCE.getStateMachine());
+
+ elements.put(FunctionBehavior_3076, UMLPackage.eINSTANCE.getFunctionBehavior());
+
+ elements.put(OpaqueBehavior_3077, UMLPackage.eINSTANCE.getOpaqueBehavior());
+
+ elements.put(Component_3081, UMLPackage.eINSTANCE.getComponent());
+
+ elements.put(Device_3082, UMLPackage.eINSTANCE.getDevice());
+
+ elements.put(ExecutionEnvironment_3083, UMLPackage.eINSTANCE.getExecutionEnvironment());
+
+ elements.put(Node_3084, UMLPackage.eINSTANCE.getNode());
+
+ elements.put(Class_3085, UMLPackage.eINSTANCE.getClass_());
+
+ elements.put(Collaboration_3086, UMLPackage.eINSTANCE.getCollaboration());
+
+ elements.put(Interface_3087, UMLPackage.eINSTANCE.getInterface());
+
+ elements.put(PrimitiveType_3078, UMLPackage.eINSTANCE.getPrimitiveType());
+
+ elements.put(Enumeration_3079, UMLPackage.eINSTANCE.getEnumeration());
+
+ elements.put(DataType_3080, UMLPackage.eINSTANCE.getDataType());
+
+ elements.put(Actor_3091, UMLPackage.eINSTANCE.getActor());
+
+ elements.put(DeploymentSpecification_3092, UMLPackage.eINSTANCE.getDeploymentSpecification());
+
+ elements.put(Artifact_3093, UMLPackage.eINSTANCE.getArtifact());
+
+ elements.put(InformationItem_3094, UMLPackage.eINSTANCE.getInformationItem());
+
+ elements.put(Signal_3095, UMLPackage.eINSTANCE.getSignal());
+
+ elements.put(UseCase_3096, UMLPackage.eINSTANCE.getUseCase());
+
+ elements.put(Comment_3097, UMLPackage.eINSTANCE.getComment());
+
+ elements.put(DurationConstraint_3116, UMLPackage.eINSTANCE.getDurationConstraint());
+
+ elements.put(TimeConstraint_3117, UMLPackage.eINSTANCE.getTimeConstraint());
+
+ elements.put(IntervalConstraint_3118, UMLPackage.eINSTANCE.getIntervalConstraint());
+
+ elements.put(InteractionConstraint_3119, UMLPackage.eINSTANCE.getInteractionConstraint());
+
+ elements.put(Constraint_3120, UMLPackage.eINSTANCE.getConstraint());
+
+ elements.put(Property_3101, UMLPackage.eINSTANCE.getProperty());
+
+ elements.put(Operation_3102, UMLPackage.eINSTANCE.getOperation());
+
+ elements.put(Reception_3100, UMLPackage.eINSTANCE.getReception());
+
+ elements.put(EnumerationLiteral_3066, UMLPackage.eINSTANCE.getEnumerationLiteral());
+
+ elements.put(Activity_3103, UMLPackage.eINSTANCE.getActivity());
+
+ elements.put(Interaction_3104, UMLPackage.eINSTANCE.getInteraction());
+
+ elements.put(ProtocolStateMachine_3105, UMLPackage.eINSTANCE.getProtocolStateMachine());
+
+ elements.put(StateMachine_3106, UMLPackage.eINSTANCE.getStateMachine());
+
+ elements.put(FunctionBehavior_3107, UMLPackage.eINSTANCE.getFunctionBehavior());
+
+ elements.put(OpaqueBehavior_3108, UMLPackage.eINSTANCE.getOpaqueBehavior());
+
+ elements.put(Collaboration_3109, UMLPackage.eINSTANCE.getCollaboration());
+
+ elements.put(Interface_3110, UMLPackage.eINSTANCE.getInterface());
+
+ elements.put(Enumeration_3111, UMLPackage.eINSTANCE.getEnumeration());
+
+ elements.put(PrimitiveType_3112, UMLPackage.eINSTANCE.getPrimitiveType());
+
+ elements.put(DataType_3113, UMLPackage.eINSTANCE.getDataType());
+
+ elements.put(Class_3114, UMLPackage.eINSTANCE.getClass_());
+
+ elements.put(CommentAnnotatedElement_4002, UMLPackage.eINSTANCE.getComment_AnnotatedElement());
+
+ elements.put(ConstraintConstrainedElement_4003, UMLPackage.eINSTANCE.getConstraint_ConstrainedElement());
+
+ elements.put(ComponentRealization_4004, UMLPackage.eINSTANCE.getComponentRealization());
+
+ elements.put(InterfaceRealization_4005, UMLPackage.eINSTANCE.getInterfaceRealization());
+
+ elements.put(Substitution_4011, UMLPackage.eINSTANCE.getSubstitution());
+
+ elements.put(Realization_4006, UMLPackage.eINSTANCE.getRealization());
+
+ elements.put(Manifestation_4012, UMLPackage.eINSTANCE.getManifestation());
+
+ elements.put(Abstraction_4007, UMLPackage.eINSTANCE.getAbstraction());
+
+ elements.put(Usage_4008, UMLPackage.eINSTANCE.getUsage());
+
+ elements.put(Deployment_4009, UMLPackage.eINSTANCE.getDeployment());
+
+ elements.put(Dependency_4017, UMLPackage.eINSTANCE.getDependency());
+
+ elements.put(Dependency_4010, UMLPackage.eINSTANCE.getDependency());
+
+ elements.put(Connector_4013, UMLPackage.eINSTANCE.getConnector());
+
+ elements.put(Generalization_4015, UMLPackage.eINSTANCE.getGeneralization());
+
+ elements.put(TimeObservationEvent_4018, UMLPackage.eINSTANCE.getTimeObservation_Event());
+
+ elements.put(DurationObservationEvent_4019, UMLPackage.eINSTANCE.getDurationObservation_Event());
+
+ elements.put(InformationItemRepresented_4020, UMLPackage.eINSTANCE.getInformationItem_Represented());
+
+ elements.put(InformationFlow_4021, UMLPackage.eINSTANCE.getInformationFlow());
+ }
+ return (ENamedElement)elements.get(type);
+ }
+
+ /**
+ * @generated
+ */
+ private static IElementType getElementType(String id) {
+ return ElementTypeRegistry.getInstance().getType(id);
+ }
+
+ /**
+ * @generated
+ */
+ public static boolean isKnownElementType(IElementType elementType) {
+ if(KNOWN_ELEMENT_TYPES == null) {
+ KNOWN_ELEMENT_TYPES = new HashSet<IElementType>();
+ KNOWN_ELEMENT_TYPES.add(Package_1000);
+ KNOWN_ELEMENT_TYPES.add(Activity_2060);
+ KNOWN_ELEMENT_TYPES.add(Interaction_2061);
+ KNOWN_ELEMENT_TYPES.add(ProtocolStateMachine_2062);
+ KNOWN_ELEMENT_TYPES.add(StateMachine_2063);
+ KNOWN_ELEMENT_TYPES.add(FunctionBehavior_2064);
+ KNOWN_ELEMENT_TYPES.add(OpaqueBehavior_2065);
+ KNOWN_ELEMENT_TYPES.add(Component_2069);
+ KNOWN_ELEMENT_TYPES.add(Device_2070);
+ KNOWN_ELEMENT_TYPES.add(ExecutionEnvironment_2071);
+ KNOWN_ELEMENT_TYPES.add(Node_2072);
+ KNOWN_ELEMENT_TYPES.add(Class_2073);
+ KNOWN_ELEMENT_TYPES.add(Collaboration_2075);
+ KNOWN_ELEMENT_TYPES.add(Interface_2076);
+ KNOWN_ELEMENT_TYPES.add(PrimitiveType_2066);
+ KNOWN_ELEMENT_TYPES.add(Enumeration_2067);
+ KNOWN_ELEMENT_TYPES.add(DataType_2068);
+ KNOWN_ELEMENT_TYPES.add(Actor_2077);
+ KNOWN_ELEMENT_TYPES.add(DeploymentSpecification_2078);
+ KNOWN_ELEMENT_TYPES.add(Artifact_2079);
+ KNOWN_ELEMENT_TYPES.add(InformationItem_2080);
+ KNOWN_ELEMENT_TYPES.add(Signal_2081);
+ KNOWN_ELEMENT_TYPES.add(UseCase_2082);
+ KNOWN_ELEMENT_TYPES.add(SignalEvent_2083);
+ KNOWN_ELEMENT_TYPES.add(CallEvent_2084);
+ KNOWN_ELEMENT_TYPES.add(AnyReceiveEvent_2085);
+ KNOWN_ELEMENT_TYPES.add(SendSignalEvent_2086);
+ KNOWN_ELEMENT_TYPES.add(SendOperationEvent_2087);
+ KNOWN_ELEMENT_TYPES.add(ChangeEvent_2088);
+ KNOWN_ELEMENT_TYPES.add(TimeEvent_2089);
+ KNOWN_ELEMENT_TYPES.add(CreationEvent_2090);
+ KNOWN_ELEMENT_TYPES.add(DestructionEvent_2091);
+ KNOWN_ELEMENT_TYPES.add(ExecutionEvent_2092);
+ KNOWN_ELEMENT_TYPES.add(DurationObservation_2093);
+ KNOWN_ELEMENT_TYPES.add(TimeObservation_2094);
+ KNOWN_ELEMENT_TYPES.add(LiteralBoolean_2095);
+ KNOWN_ELEMENT_TYPES.add(LiteralInteger_2096);
+ KNOWN_ELEMENT_TYPES.add(LiteralNull_2097);
+ KNOWN_ELEMENT_TYPES.add(LiteralString_2098);
+ KNOWN_ELEMENT_TYPES.add(LiteralUnlimitedNatural_2099);
+ KNOWN_ELEMENT_TYPES.add(StringExpression_2100);
+ KNOWN_ELEMENT_TYPES.add(OpaqueExpression_2101);
+ KNOWN_ELEMENT_TYPES.add(TimeExpression_2102);
+ KNOWN_ELEMENT_TYPES.add(Expression_2103);
+ KNOWN_ELEMENT_TYPES.add(Duration_2104);
+ KNOWN_ELEMENT_TYPES.add(TimeInterval_2105);
+ KNOWN_ELEMENT_TYPES.add(DurationInterval_2106);
+ KNOWN_ELEMENT_TYPES.add(Interval_2107);
+ KNOWN_ELEMENT_TYPES.add(InstanceValue_2108);
+ KNOWN_ELEMENT_TYPES.add(Comment_2109);
+ KNOWN_ELEMENT_TYPES.add(DurationConstraint_2110);
+ KNOWN_ELEMENT_TYPES.add(TimeConstraint_2111);
+ KNOWN_ELEMENT_TYPES.add(IntervalConstraint_2112);
+ KNOWN_ELEMENT_TYPES.add(InteractionConstraint_2113);
+ KNOWN_ELEMENT_TYPES.add(Constraint_2114);
+ KNOWN_ELEMENT_TYPES.add(Port_3069);
+ KNOWN_ELEMENT_TYPES.add(Parameter_3088);
+ KNOWN_ELEMENT_TYPES.add(Property_3070);
+ KNOWN_ELEMENT_TYPES.add(ConnectableElement_3115);
+ KNOWN_ELEMENT_TYPES.add(CollaborationUse_3071);
+ KNOWN_ELEMENT_TYPES.add(Activity_3072);
+ KNOWN_ELEMENT_TYPES.add(Interaction_3073);
+ KNOWN_ELEMENT_TYPES.add(ProtocolStateMachine_3074);
+ KNOWN_ELEMENT_TYPES.add(StateMachine_3075);
+ KNOWN_ELEMENT_TYPES.add(FunctionBehavior_3076);
+ KNOWN_ELEMENT_TYPES.add(OpaqueBehavior_3077);
+ KNOWN_ELEMENT_TYPES.add(Component_3081);
+ KNOWN_ELEMENT_TYPES.add(Device_3082);
+ KNOWN_ELEMENT_TYPES.add(ExecutionEnvironment_3083);
+ KNOWN_ELEMENT_TYPES.add(Node_3084);
+ KNOWN_ELEMENT_TYPES.add(Class_3085);
+ KNOWN_ELEMENT_TYPES.add(Collaboration_3086);
+ KNOWN_ELEMENT_TYPES.add(Interface_3087);
+ KNOWN_ELEMENT_TYPES.add(PrimitiveType_3078);
+ KNOWN_ELEMENT_TYPES.add(Enumeration_3079);
+ KNOWN_ELEMENT_TYPES.add(DataType_3080);
+ KNOWN_ELEMENT_TYPES.add(Actor_3091);
+ KNOWN_ELEMENT_TYPES.add(DeploymentSpecification_3092);
+ KNOWN_ELEMENT_TYPES.add(Artifact_3093);
+ KNOWN_ELEMENT_TYPES.add(InformationItem_3094);
+ KNOWN_ELEMENT_TYPES.add(Signal_3095);
+ KNOWN_ELEMENT_TYPES.add(UseCase_3096);
+ KNOWN_ELEMENT_TYPES.add(Comment_3097);
+ KNOWN_ELEMENT_TYPES.add(DurationConstraint_3116);
+ KNOWN_ELEMENT_TYPES.add(TimeConstraint_3117);
+ KNOWN_ELEMENT_TYPES.add(IntervalConstraint_3118);
+ KNOWN_ELEMENT_TYPES.add(InteractionConstraint_3119);
+ KNOWN_ELEMENT_TYPES.add(Constraint_3120);
+ KNOWN_ELEMENT_TYPES.add(Property_3101);
+ KNOWN_ELEMENT_TYPES.add(Operation_3102);
+ KNOWN_ELEMENT_TYPES.add(Reception_3100);
+ KNOWN_ELEMENT_TYPES.add(EnumerationLiteral_3066);
+ KNOWN_ELEMENT_TYPES.add(Activity_3103);
+ KNOWN_ELEMENT_TYPES.add(Interaction_3104);
+ KNOWN_ELEMENT_TYPES.add(ProtocolStateMachine_3105);
+ KNOWN_ELEMENT_TYPES.add(StateMachine_3106);
+ KNOWN_ELEMENT_TYPES.add(FunctionBehavior_3107);
+ KNOWN_ELEMENT_TYPES.add(OpaqueBehavior_3108);
+ KNOWN_ELEMENT_TYPES.add(Collaboration_3109);
+ KNOWN_ELEMENT_TYPES.add(Interface_3110);
+ KNOWN_ELEMENT_TYPES.add(Enumeration_3111);
+ KNOWN_ELEMENT_TYPES.add(PrimitiveType_3112);
+ KNOWN_ELEMENT_TYPES.add(DataType_3113);
+ KNOWN_ELEMENT_TYPES.add(Class_3114);
+ KNOWN_ELEMENT_TYPES.add(Link_4001);
+ KNOWN_ELEMENT_TYPES.add(CommentAnnotatedElement_4002);
+ KNOWN_ELEMENT_TYPES.add(ConstraintConstrainedElement_4003);
+ KNOWN_ELEMENT_TYPES.add(ComponentRealization_4004);
+ KNOWN_ELEMENT_TYPES.add(InterfaceRealization_4005);
+ KNOWN_ELEMENT_TYPES.add(Substitution_4011);
+ KNOWN_ELEMENT_TYPES.add(Realization_4006);
+ KNOWN_ELEMENT_TYPES.add(Manifestation_4012);
+ KNOWN_ELEMENT_TYPES.add(Abstraction_4007);
+ KNOWN_ELEMENT_TYPES.add(Usage_4008);
+ KNOWN_ELEMENT_TYPES.add(Deployment_4009);
+ KNOWN_ELEMENT_TYPES.add(Dependency_4017);
+ KNOWN_ELEMENT_TYPES.add(Dependency_4010);
+ KNOWN_ELEMENT_TYPES.add(Connector_4013);
+ KNOWN_ELEMENT_TYPES.add(Generalization_4015);
+ KNOWN_ELEMENT_TYPES.add(TimeObservationEvent_4018);
+ KNOWN_ELEMENT_TYPES.add(DurationObservationEvent_4019);
+ KNOWN_ELEMENT_TYPES.add(InformationItemRepresented_4020);
+ KNOWN_ELEMENT_TYPES.add(InformationFlow_4021);
+ }
+ return KNOWN_ELEMENT_TYPES.contains(elementType);
+ }
+
+ /**
+ * @generated
+ */
+ public static IElementType getElementType(int visualID) {
+ switch(visualID) {
+ case CompositeStructureDiagramEditPart.VISUAL_ID:
+ return Package_1000;
+ case ActivityCompositeEditPart.VISUAL_ID:
+ return Activity_2060;
+ case InteractionCompositeEditPart.VISUAL_ID:
+ return Interaction_2061;
+ case ProtocolStateMachineCompositeEditPart.VISUAL_ID:
+ return ProtocolStateMachine_2062;
+ case StateMachineCompositeEditPart.VISUAL_ID:
+ return StateMachine_2063;
+ case FunctionBehaviorCompositeEditPart.VISUAL_ID:
+ return FunctionBehavior_2064;
+ case OpaqueBehaviorCompositeEditPart.VISUAL_ID:
+ return OpaqueBehavior_2065;
+ case ComponentCompositeEditPart.VISUAL_ID:
+ return Component_2069;
+ case DeviceCompositeEditPart.VISUAL_ID:
+ return Device_2070;
+ case ExecutionEnvironmentCompositeEditPart.VISUAL_ID:
+ return ExecutionEnvironment_2071;
+ case NodeCompositeEditPart.VISUAL_ID:
+ return Node_2072;
+ case ClassCompositeEditPart.VISUAL_ID:
+ return Class_2073;
+ case CollaborationCompositeEditPart.VISUAL_ID:
+ return Collaboration_2075;
+ case InterfaceEditPart.VISUAL_ID:
+ return Interface_2076;
+ case PrimitiveTypeEditPart.VISUAL_ID:
+ return PrimitiveType_2066;
+ case EnumerationEditPart.VISUAL_ID:
+ return Enumeration_2067;
+ case DataTypeEditPart.VISUAL_ID:
+ return DataType_2068;
+ case ActorEditPart.VISUAL_ID:
+ return Actor_2077;
+ case DeploymentSpecificationEditPart.VISUAL_ID:
+ return DeploymentSpecification_2078;
+ case ArtifactEditPart.VISUAL_ID:
+ return Artifact_2079;
+ case InformationItemEditPart.VISUAL_ID:
+ return InformationItem_2080;
+ case SignalEditPart.VISUAL_ID:
+ return Signal_2081;
+ case UseCaseEditPart.VISUAL_ID:
+ return UseCase_2082;
+ case SignalEventEditPart.VISUAL_ID:
+ return SignalEvent_2083;
+ case CallEventEditPart.VISUAL_ID:
+ return CallEvent_2084;
+ case AnyReceiveEventEditPart.VISUAL_ID:
+ return AnyReceiveEvent_2085;
+ case SendSignalEventEditPart.VISUAL_ID:
+ return SendSignalEvent_2086;
+ case SendOperationEventEditPart.VISUAL_ID:
+ return SendOperationEvent_2087;
+ case ChangeEventEditPart.VISUAL_ID:
+ return ChangeEvent_2088;
+ case TimeEventEditPart.VISUAL_ID:
+ return TimeEvent_2089;
+ case CreationEventEditPart.VISUAL_ID:
+ return CreationEvent_2090;
+ case DestructionEventEditPart.VISUAL_ID:
+ return DestructionEvent_2091;
+ case ExecutionEventEditPart.VISUAL_ID:
+ return ExecutionEvent_2092;
+ case DurationObservationEditPart.VISUAL_ID:
+ return DurationObservation_2093;
+ case TimeObservationEditPart.VISUAL_ID:
+ return TimeObservation_2094;
+ case LiteralBooleanEditPart.VISUAL_ID:
+ return LiteralBoolean_2095;
+ case LiteralIntegerEditPart.VISUAL_ID:
+ return LiteralInteger_2096;
+ case LiteralNullEditPart.VISUAL_ID:
+ return LiteralNull_2097;
+ case LiteralStringEditPart.VISUAL_ID:
+ return LiteralString_2098;
+ case LiteralUnlimitedNaturalEditPart.VISUAL_ID:
+ return LiteralUnlimitedNatural_2099;
+ case StringExpressionEditPart.VISUAL_ID:
+ return StringExpression_2100;
+ case OpaqueExpressionEditPart.VISUAL_ID:
+ return OpaqueExpression_2101;
+ case TimeExpressionEditPart.VISUAL_ID:
+ return TimeExpression_2102;
+ case ExpressionEditPart.VISUAL_ID:
+ return Expression_2103;
+ case DurationEditPart.VISUAL_ID:
+ return Duration_2104;
+ case TimeIntervalEditPart.VISUAL_ID:
+ return TimeInterval_2105;
+ case DurationIntervalEditPart.VISUAL_ID:
+ return DurationInterval_2106;
+ case IntervalEditPart.VISUAL_ID:
+ return Interval_2107;
+ case InstanceValueEditPart.VISUAL_ID:
+ return InstanceValue_2108;
+ case CommentEditPart.VISUAL_ID:
+ return Comment_2109;
+ case DurationConstraintEditPart.VISUAL_ID:
+ return DurationConstraint_2110;
+ case TimeConstraintEditPart.VISUAL_ID:
+ return TimeConstraint_2111;
+ case IntervalConstraintEditPart.VISUAL_ID:
+ return IntervalConstraint_2112;
+ case InteractionConstraintEditPart.VISUAL_ID:
+ return InteractionConstraint_2113;
+ case ConstraintEditPart.VISUAL_ID:
+ return Constraint_2114;
+ case PortEditPart.VISUAL_ID:
+ return Port_3069;
+ case ParameterEditPart.VISUAL_ID:
+ return Parameter_3088;
+ case PropertyPartEditPartCN.VISUAL_ID:
+ return Property_3070;
+ case CollaborationRoleEditPartCN.VISUAL_ID:
+ return ConnectableElement_3115;
+ case CollaborationUseEditPartCN.VISUAL_ID:
+ return CollaborationUse_3071;
+ case ActivityCompositeEditPartCN.VISUAL_ID:
+ return Activity_3072;
+ case InteractionCompositeEditPartCN.VISUAL_ID:
+ return Interaction_3073;
+ case ProtocolStateMachineCompositeEditPartCN.VISUAL_ID:
+ return ProtocolStateMachine_3074;
+ case StateMachineCompositeEditPartCN.VISUAL_ID:
+ return StateMachine_3075;
+ case FunctionBehaviorCompositeEditPartCN.VISUAL_ID:
+ return FunctionBehavior_3076;
+ case OpaqueBehaviorCompositeEditPartCN.VISUAL_ID:
+ return OpaqueBehavior_3077;
+ case ComponentCompositeEditPartCN.VISUAL_ID:
+ return Component_3081;
+ case DeviceCompositeEditPartCN.VISUAL_ID:
+ return Device_3082;
+ case ExecutionEnvironmentCompositeEditPartCN.VISUAL_ID:
+ return ExecutionEnvironment_3083;
+ case NodeCompositeEditPartCN.VISUAL_ID:
+ return Node_3084;
+ case ClassCompositeEditPartCN.VISUAL_ID:
+ return Class_3085;
+ case CollaborationCompositeEditPartCN.VISUAL_ID:
+ return Collaboration_3086;
+ case InterfaceEditPartCN.VISUAL_ID:
+ return Interface_3087;
+ case PrimitiveTypeEditPartCN.VISUAL_ID:
+ return PrimitiveType_3078;
+ case EnumerationEditPartCN.VISUAL_ID:
+ return Enumeration_3079;
+ case DataTypeEditPartCN.VISUAL_ID:
+ return DataType_3080;
+ case ActorEditPartCN.VISUAL_ID:
+ return Actor_3091;
+ case DeploymentSpecificationEditPartCN.VISUAL_ID:
+ return DeploymentSpecification_3092;
+ case ArtifactEditPartCN.VISUAL_ID:
+ return Artifact_3093;
+ case InformationItemEditPartCN.VISUAL_ID:
+ return InformationItem_3094;
+ case SignalEditPartCN.VISUAL_ID:
+ return Signal_3095;
+ case UseCaseEditPartCN.VISUAL_ID:
+ return UseCase_3096;
+ case CommentEditPartCN.VISUAL_ID:
+ return Comment_3097;
+ case DurationConstraintEditPartCN.VISUAL_ID:
+ return DurationConstraint_3116;
+ case TimeConstraintEditPartCN.VISUAL_ID:
+ return TimeConstraint_3117;
+ case IntervalConstraintEditPartCN.VISUAL_ID:
+ return IntervalConstraint_3118;
+ case InteractionConstraintEditPartCN.VISUAL_ID:
+ return InteractionConstraint_3119;
+ case ConstraintEditPartCN.VISUAL_ID:
+ return Constraint_3120;
+ case PropertyEditPartCLN.VISUAL_ID:
+ return Property_3101;
+ case OperationEditPartCLN.VISUAL_ID:
+ return Operation_3102;
+ case ReceptionEditPartCLN.VISUAL_ID:
+ return Reception_3100;
+ case EnumerationLiteralEditPartCLN.VISUAL_ID:
+ return EnumerationLiteral_3066;
+ case ActivityEditPartCLN.VISUAL_ID:
+ return Activity_3103;
+ case InteractionEditPartCLN.VISUAL_ID:
+ return Interaction_3104;
+ case ProtocolStateMachineEditPartCLN.VISUAL_ID:
+ return ProtocolStateMachine_3105;
+ case StateMachineEditPartCLN.VISUAL_ID:
+ return StateMachine_3106;
+ case FunctionBehaviorEditPartCLN.VISUAL_ID:
+ return FunctionBehavior_3107;
+ case OpaqueBehaviorEditPartCLN.VISUAL_ID:
+ return OpaqueBehavior_3108;
+ case CollaborationEditPartCLN.VISUAL_ID:
+ return Collaboration_3109;
+ case InterfaceEditPartCLN.VISUAL_ID:
+ return Interface_3110;
+ case EnumerationEditPartCLN.VISUAL_ID:
+ return Enumeration_3111;
+ case PrimitiveTypeEditPartCLN.VISUAL_ID:
+ return PrimitiveType_3112;
+ case DataTypeEditPartCLN.VISUAL_ID:
+ return DataType_3113;
+ case ClassEditPartCLN.VISUAL_ID:
+ return Class_3114;
+ case LinkDescriptorEditPart.VISUAL_ID:
+ return Link_4001;
+ case CommentAnnotatedElementEditPart.VISUAL_ID:
+ return CommentAnnotatedElement_4002;
+ case ConstraintConstrainedElementEditPart.VISUAL_ID:
+ return ConstraintConstrainedElement_4003;
+ case ComponentRealizationEditPart.VISUAL_ID:
+ return ComponentRealization_4004;
+ case InterfaceRealizationEditPart.VISUAL_ID:
+ return InterfaceRealization_4005;
+ case SubstitutionEditPart.VISUAL_ID:
+ return Substitution_4011;
+ case RealizationEditPart.VISUAL_ID:
+ return Realization_4006;
+ case ManifestationEditPart.VISUAL_ID:
+ return Manifestation_4012;
+ case AbstractionEditPart.VISUAL_ID:
+ return Abstraction_4007;
+ case UsageEditPart.VISUAL_ID:
+ return Usage_4008;
+ case DeploymentEditPart.VISUAL_ID:
+ return Deployment_4009;
+ case RoleBindingEditPart.VISUAL_ID:
+ return Dependency_4017;
+ case DependencyEditPart.VISUAL_ID:
+ return Dependency_4010;
+ case ConnectorEditPart.VISUAL_ID:
+ return Connector_4013;
+ case GeneralizationEditPart.VISUAL_ID:
+ return Generalization_4015;
+ case TimeObservationEventEditPart.VISUAL_ID:
+ return TimeObservationEvent_4018;
+ case DurationObservationEventEditPart.VISUAL_ID:
+ return DurationObservationEvent_4019;
+ case RepresentationEditPart.VISUAL_ID:
+ return InformationItemRepresented_4020;
+ case InformationFlowEditPart.VISUAL_ID:
+ return InformationFlow_4021;
+ }
+ return null;
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/providers/UMLIconProvider.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/providers/UMLIconProvider.java
new file mode 100644
index 00000000000..8ed057af109
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/providers/UMLIconProvider.java
@@ -0,0 +1,44 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.providers;
+
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.gmf.runtime.common.core.service.AbstractProvider;
+import org.eclipse.gmf.runtime.common.core.service.IOperation;
+import org.eclipse.gmf.runtime.common.ui.services.icon.GetIconOperation;
+import org.eclipse.gmf.runtime.common.ui.services.icon.IIconProvider;
+import org.eclipse.swt.graphics.Image;
+
+/**
+ * @generated
+ */
+public class UMLIconProvider extends AbstractProvider implements IIconProvider {
+
+ /**
+ * @generated
+ */
+ public Image getIcon(IAdaptable hint, int flags) {
+ return UMLElementTypes.getImage(hint);
+ }
+
+ /**
+ * @generated
+ */
+ public boolean provides(IOperation operation) {
+ if(operation instanceof GetIconOperation) {
+ return ((GetIconOperation)operation).execute(this) != null;
+ }
+ return false;
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/providers/UMLMarkerNavigationProvider.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/providers/UMLMarkerNavigationProvider.java
new file mode 100644
index 00000000000..427768ae161
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/providers/UMLMarkerNavigationProvider.java
@@ -0,0 +1,94 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.providers;
+
+import java.util.Arrays;
+import java.util.Map;
+
+import org.eclipse.core.resources.IFile;
+import org.eclipse.core.resources.IMarker;
+import org.eclipse.core.resources.IResource;
+import org.eclipse.core.runtime.CoreException;
+import org.eclipse.core.runtime.IStatus;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gef.EditPart;
+import org.eclipse.gmf.runtime.diagram.ui.parts.DiagramEditor;
+import org.eclipse.gmf.runtime.emf.ui.providers.marker.AbstractModelMarkerNavigationProvider;
+import org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorPlugin;
+import org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorUtil;
+
+/**
+ * @generated
+ */
+public class UMLMarkerNavigationProvider extends AbstractModelMarkerNavigationProvider {
+
+ /**
+ * @generated
+ */
+ public static final String MARKER_TYPE = UMLDiagramEditorPlugin.ID + ".diagnostic"; //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ protected void doGotoMarker(IMarker marker) {
+ String elementId = marker.getAttribute(org.eclipse.gmf.runtime.common.core.resources.IMarker.ELEMENT_ID, null);
+ if(elementId == null || !(getEditor() instanceof DiagramEditor)) {
+ return;
+ }
+ DiagramEditor editor = (DiagramEditor)getEditor();
+ Map editPartRegistry = editor.getDiagramGraphicalViewer().getEditPartRegistry();
+ EObject targetView = editor.getDiagram().eResource().getEObject(elementId);
+ if(targetView == null) {
+ return;
+ }
+ EditPart targetEditPart = (EditPart)editPartRegistry.get(targetView);
+ if(targetEditPart != null) {
+ UMLDiagramEditorUtil.selectElementsInDiagram(editor, Arrays.asList(new EditPart[]{ targetEditPart }));
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public static void deleteMarkers(IResource resource) {
+ try {
+ resource.deleteMarkers(MARKER_TYPE, true, IResource.DEPTH_ZERO);
+ } catch (CoreException e) {
+ UMLDiagramEditorPlugin.getInstance().logError("Failed to delete validation markers", e); //$NON-NLS-1$
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public static IMarker addMarker(IFile file, String elementId, String location, String message, int statusSeverity) {
+ IMarker marker = null;
+ try {
+ marker = file.createMarker(MARKER_TYPE);
+ marker.setAttribute(IMarker.MESSAGE, message);
+ marker.setAttribute(IMarker.LOCATION, location);
+ marker.setAttribute(org.eclipse.gmf.runtime.common.ui.resources.IMarker.ELEMENT_ID, elementId);
+ int markerSeverity = IMarker.SEVERITY_INFO;
+ if(statusSeverity == IStatus.WARNING) {
+ markerSeverity = IMarker.SEVERITY_WARNING;
+ } else if(statusSeverity == IStatus.ERROR || statusSeverity == IStatus.CANCEL) {
+ markerSeverity = IMarker.SEVERITY_ERROR;
+ }
+ marker.setAttribute(IMarker.SEVERITY, markerSeverity);
+ } catch (CoreException e) {
+ UMLDiagramEditorPlugin.getInstance().logError("Failed to create validation marker", e); //$NON-NLS-1$
+ }
+ return marker;
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/providers/UMLModelingAssistantProvider.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/providers/UMLModelingAssistantProvider.java
new file mode 100644
index 00000000000..115eb0cb748
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/providers/UMLModelingAssistantProvider.java
@@ -0,0 +1,2485 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.providers;
+
+import java.util.ArrayList;
+import java.util.Collection;
+import java.util.Collections;
+import java.util.HashSet;
+import java.util.Iterator;
+import java.util.List;
+
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.edit.ui.provider.AdapterFactoryLabelProvider;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.emf.type.core.ElementTypeRegistry;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.emf.ui.services.modelingassistant.ModelingAssistantProvider;
+import org.eclipse.gmf.runtime.notation.Diagram;
+import org.eclipse.jface.viewers.ILabelProvider;
+import org.eclipse.jface.window.Window;
+import org.eclipse.papyrus.diagram.composite.edit.parts.*;
+import org.eclipse.papyrus.diagram.composite.part.Messages;
+import org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorPlugin;
+import org.eclipse.swt.widgets.Display;
+import org.eclipse.swt.widgets.Shell;
+import org.eclipse.ui.dialogs.ElementListSelectionDialog;
+
+/**
+ * @generated
+ */
+public class UMLModelingAssistantProvider extends ModelingAssistantProvider {
+
+ /**
+ * @generated
+ */
+ public List getTypesForPopupBar(IAdaptable host) {
+ IGraphicalEditPart editPart = (IGraphicalEditPart)host.getAdapter(IGraphicalEditPart.class);
+ if(editPart instanceof CompositeStructureDiagramEditPart) {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(54);
+ types.add(UMLElementTypes.Activity_2060);
+ types.add(UMLElementTypes.Interaction_2061);
+ types.add(UMLElementTypes.ProtocolStateMachine_2062);
+ types.add(UMLElementTypes.StateMachine_2063);
+ types.add(UMLElementTypes.FunctionBehavior_2064);
+ types.add(UMLElementTypes.OpaqueBehavior_2065);
+ types.add(UMLElementTypes.Component_2069);
+ types.add(UMLElementTypes.Device_2070);
+ types.add(UMLElementTypes.ExecutionEnvironment_2071);
+ types.add(UMLElementTypes.Node_2072);
+ types.add(UMLElementTypes.Class_2073);
+ types.add(UMLElementTypes.Collaboration_2075);
+ types.add(UMLElementTypes.Interface_2076);
+ types.add(UMLElementTypes.PrimitiveType_2066);
+ types.add(UMLElementTypes.Enumeration_2067);
+ types.add(UMLElementTypes.DataType_2068);
+ types.add(UMLElementTypes.Actor_2077);
+ types.add(UMLElementTypes.DeploymentSpecification_2078);
+ types.add(UMLElementTypes.Artifact_2079);
+ types.add(UMLElementTypes.InformationItem_2080);
+ types.add(UMLElementTypes.Signal_2081);
+ types.add(UMLElementTypes.UseCase_2082);
+ types.add(UMLElementTypes.SignalEvent_2083);
+ types.add(UMLElementTypes.CallEvent_2084);
+ types.add(UMLElementTypes.AnyReceiveEvent_2085);
+ types.add(UMLElementTypes.SendSignalEvent_2086);
+ types.add(UMLElementTypes.SendOperationEvent_2087);
+ types.add(UMLElementTypes.ChangeEvent_2088);
+ types.add(UMLElementTypes.TimeEvent_2089);
+ types.add(UMLElementTypes.CreationEvent_2090);
+ types.add(UMLElementTypes.DestructionEvent_2091);
+ types.add(UMLElementTypes.ExecutionEvent_2092);
+ types.add(UMLElementTypes.DurationObservation_2093);
+ types.add(UMLElementTypes.TimeObservation_2094);
+ types.add(UMLElementTypes.LiteralBoolean_2095);
+ types.add(UMLElementTypes.LiteralInteger_2096);
+ types.add(UMLElementTypes.LiteralNull_2097);
+ types.add(UMLElementTypes.LiteralString_2098);
+ types.add(UMLElementTypes.LiteralUnlimitedNatural_2099);
+ types.add(UMLElementTypes.StringExpression_2100);
+ types.add(UMLElementTypes.OpaqueExpression_2101);
+ types.add(UMLElementTypes.TimeExpression_2102);
+ types.add(UMLElementTypes.Expression_2103);
+ types.add(UMLElementTypes.Duration_2104);
+ types.add(UMLElementTypes.TimeInterval_2105);
+ types.add(UMLElementTypes.DurationInterval_2106);
+ types.add(UMLElementTypes.Interval_2107);
+ types.add(UMLElementTypes.InstanceValue_2108);
+ types.add(UMLElementTypes.Comment_2109);
+ types.add(UMLElementTypes.DurationConstraint_2110);
+ types.add(UMLElementTypes.TimeConstraint_2111);
+ types.add(UMLElementTypes.IntervalConstraint_2112);
+ types.add(UMLElementTypes.InteractionConstraint_2113);
+ types.add(UMLElementTypes.Constraint_2114);
+ return types;
+ }
+ if(editPart instanceof ActivityCompositeEditPart) {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(2);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ return types;
+ }
+ if(editPart instanceof InteractionCompositeEditPart) {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(2);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ return types;
+ }
+ if(editPart instanceof ProtocolStateMachineCompositeEditPart) {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(2);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ return types;
+ }
+ if(editPart instanceof StateMachineCompositeEditPart) {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(2);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ return types;
+ }
+ if(editPart instanceof FunctionBehaviorCompositeEditPart) {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(2);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ return types;
+ }
+ if(editPart instanceof OpaqueBehaviorCompositeEditPart) {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(2);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ return types;
+ }
+ if(editPart instanceof ComponentCompositeEditPart) {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(1);
+ types.add(UMLElementTypes.Port_3069);
+ return types;
+ }
+ if(editPart instanceof DeviceCompositeEditPart) {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(1);
+ types.add(UMLElementTypes.Port_3069);
+ return types;
+ }
+ if(editPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(1);
+ types.add(UMLElementTypes.Port_3069);
+ return types;
+ }
+ if(editPart instanceof NodeCompositeEditPart) {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(1);
+ types.add(UMLElementTypes.Port_3069);
+ return types;
+ }
+ if(editPart instanceof ClassCompositeEditPart) {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(1);
+ types.add(UMLElementTypes.Port_3069);
+ return types;
+ }
+ if(editPart instanceof EnumerationEditPart) {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(1);
+ types.add(UMLElementTypes.EnumerationLiteral_3066);
+ return types;
+ }
+ if(editPart instanceof DataTypeEditPart) {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(2);
+ types.add(UMLElementTypes.Property_3101);
+ types.add(UMLElementTypes.Operation_3102);
+ return types;
+ }
+ if(editPart instanceof PropertyPartEditPartCN) {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(1);
+ types.add(UMLElementTypes.Port_3069);
+ return types;
+ }
+ if(editPart instanceof ActivityCompositeEditPartCN) {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(2);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ return types;
+ }
+ if(editPart instanceof InteractionCompositeEditPartCN) {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(2);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ return types;
+ }
+ if(editPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(2);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ return types;
+ }
+ if(editPart instanceof StateMachineCompositeEditPartCN) {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(2);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ return types;
+ }
+ if(editPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(2);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ return types;
+ }
+ if(editPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(2);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ return types;
+ }
+ if(editPart instanceof ComponentCompositeEditPartCN) {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(1);
+ types.add(UMLElementTypes.Port_3069);
+ return types;
+ }
+ if(editPart instanceof DeviceCompositeEditPartCN) {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(1);
+ types.add(UMLElementTypes.Port_3069);
+ return types;
+ }
+ if(editPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(1);
+ types.add(UMLElementTypes.Port_3069);
+ return types;
+ }
+ if(editPart instanceof NodeCompositeEditPartCN) {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(1);
+ types.add(UMLElementTypes.Port_3069);
+ return types;
+ }
+ if(editPart instanceof ClassCompositeEditPartCN) {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(1);
+ types.add(UMLElementTypes.Port_3069);
+ return types;
+ }
+ if(editPart instanceof EnumerationEditPartCN) {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(1);
+ types.add(UMLElementTypes.EnumerationLiteral_3066);
+ return types;
+ }
+ if(editPart instanceof DataTypeEditPartCN) {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(2);
+ types.add(UMLElementTypes.Property_3101);
+ types.add(UMLElementTypes.Operation_3102);
+ return types;
+ }
+ if(editPart instanceof ActivityCompositeCompartmentEditPartCN) {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(32);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.Comment_3097);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ return types;
+ }
+ if(editPart instanceof InteractionCompositeCompartmentEditPartCN) {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(32);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.Comment_3097);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ return types;
+ }
+ if(editPart instanceof ProtocolStateMachineCompositeCompartmentEditPartCN) {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(32);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.Comment_3097);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ return types;
+ }
+ if(editPart instanceof StateMachineCompositeCompartmentEditPartCN) {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(32);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.Comment_3097);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ return types;
+ }
+ if(editPart instanceof FunctionBehaviorCompositeCompartmentEditPartCN) {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(32);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.Comment_3097);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ return types;
+ }
+ if(editPart instanceof OpaqueBehaviorCompositeCompartmentEditPartCN) {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(32);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.Comment_3097);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ return types;
+ }
+ if(editPart instanceof ComponentCompositeCompartmentEditPartCN) {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(31);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.Comment_3097);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ return types;
+ }
+ if(editPart instanceof DeviceCompositeCompartmentEditPartCN) {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(31);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.Comment_3097);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ return types;
+ }
+ if(editPart instanceof ExecutionEnvironmentCompositeCompartmentEditPartCN) {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(31);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.Comment_3097);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ return types;
+ }
+ if(editPart instanceof NodeCompositeCompartmentEditPartCN) {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(31);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.Comment_3097);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ return types;
+ }
+ if(editPart instanceof ClassCompositeCompartmentEditPartCN) {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(31);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.Comment_3097);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ return types;
+ }
+ if(editPart instanceof CollaborationCompositeCompartmentEditPartCN) {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(9);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Comment_3097);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ return types;
+ }
+ if(editPart instanceof ActivityCompositeCompartmentEditPart) {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(32);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.Comment_3097);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ return types;
+ }
+ if(editPart instanceof InteractionCompositeCompartmentEditPart) {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(32);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.Comment_3097);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ return types;
+ }
+ if(editPart instanceof ProtocolStateMachineCompositeCompartmentEditPart) {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(32);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.Comment_3097);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ return types;
+ }
+ if(editPart instanceof StateMachineCompositeCompartmentEditPart) {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(32);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.Comment_3097);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ return types;
+ }
+ if(editPart instanceof FunctionBehaviorCompositeCompartmentEditPart) {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(32);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.Comment_3097);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ return types;
+ }
+ if(editPart instanceof OpaqueBehaviorCompositeCompartmentEditPart) {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(32);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Parameter_3088);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.Comment_3097);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ return types;
+ }
+ if(editPart instanceof ComponentCompositeCompartmentEditPart) {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(31);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.Comment_3097);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ return types;
+ }
+ if(editPart instanceof DeviceCompositeCompartmentEditPart) {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(31);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.Comment_3097);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ return types;
+ }
+ if(editPart instanceof ExecutionEnvironmentCompositeCompartmentEditPart) {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(31);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.Comment_3097);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ return types;
+ }
+ if(editPart instanceof NodeCompositeCompartmentEditPart) {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(31);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.Comment_3097);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ return types;
+ }
+ if(editPart instanceof ClassCompositeCompartmentEditPart) {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(31);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Activity_3072);
+ types.add(UMLElementTypes.Interaction_3073);
+ types.add(UMLElementTypes.ProtocolStateMachine_3074);
+ types.add(UMLElementTypes.StateMachine_3075);
+ types.add(UMLElementTypes.FunctionBehavior_3076);
+ types.add(UMLElementTypes.OpaqueBehavior_3077);
+ types.add(UMLElementTypes.Component_3081);
+ types.add(UMLElementTypes.Device_3082);
+ types.add(UMLElementTypes.ExecutionEnvironment_3083);
+ types.add(UMLElementTypes.Node_3084);
+ types.add(UMLElementTypes.Class_3085);
+ types.add(UMLElementTypes.Collaboration_3086);
+ types.add(UMLElementTypes.Interface_3087);
+ types.add(UMLElementTypes.PrimitiveType_3078);
+ types.add(UMLElementTypes.Enumeration_3079);
+ types.add(UMLElementTypes.DataType_3080);
+ types.add(UMLElementTypes.Actor_3091);
+ types.add(UMLElementTypes.DeploymentSpecification_3092);
+ types.add(UMLElementTypes.Artifact_3093);
+ types.add(UMLElementTypes.InformationItem_3094);
+ types.add(UMLElementTypes.Signal_3095);
+ types.add(UMLElementTypes.UseCase_3096);
+ types.add(UMLElementTypes.Comment_3097);
+ types.add(UMLElementTypes.Constraint_3120);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ return types;
+ }
+ if(editPart instanceof CollaborationCompositeCompartmentEditPart) {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(9);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.CollaborationUse_3071);
+ types.add(UMLElementTypes.Comment_3097);
+ types.add(UMLElementTypes.ConnectableElement_3115);
+ types.add(UMLElementTypes.DurationConstraint_3116);
+ types.add(UMLElementTypes.TimeConstraint_3117);
+ types.add(UMLElementTypes.IntervalConstraint_3118);
+ types.add(UMLElementTypes.InteractionConstraint_3119);
+ types.add(UMLElementTypes.Constraint_3120);
+ return types;
+ }
+ if(editPart instanceof PropertyPartCompartmentEditPartCN) {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(3);
+ types.add(UMLElementTypes.Port_3069);
+ types.add(UMLElementTypes.Property_3070);
+ types.add(UMLElementTypes.Comment_3097);
+ return types;
+ }
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ public List getRelTypesOnSource(IAdaptable source) {
+ IGraphicalEditPart sourceEditPart = (IGraphicalEditPart)source.getAdapter(IGraphicalEditPart.class);
+ if(sourceEditPart instanceof ActivityCompositeEditPart) {
+ return ((ActivityCompositeEditPart)sourceEditPart).getMARelTypesOnSource();
+ }
+ if(sourceEditPart instanceof InteractionCompositeEditPart) {
+ return ((InteractionCompositeEditPart)sourceEditPart).getMARelTypesOnSource();
+ }
+ if(sourceEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ return ((ProtocolStateMachineCompositeEditPart)sourceEditPart).getMARelTypesOnSource();
+ }
+ if(sourceEditPart instanceof StateMachineCompositeEditPart) {
+ return ((StateMachineCompositeEditPart)sourceEditPart).getMARelTypesOnSource();
+ }
+ if(sourceEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ return ((FunctionBehaviorCompositeEditPart)sourceEditPart).getMARelTypesOnSource();
+ }
+ if(sourceEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ return ((OpaqueBehaviorCompositeEditPart)sourceEditPart).getMARelTypesOnSource();
+ }
+ if(sourceEditPart instanceof ComponentCompositeEditPart) {
+ return ((ComponentCompositeEditPart)sourceEditPart).getMARelTypesOnSource();
+ }
+ if(sourceEditPart instanceof DeviceCompositeEditPart) {
+ return ((DeviceCompositeEditPart)sourceEditPart).getMARelTypesOnSource();
+ }
+ if(sourceEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ return ((ExecutionEnvironmentCompositeEditPart)sourceEditPart).getMARelTypesOnSource();
+ }
+ if(sourceEditPart instanceof NodeCompositeEditPart) {
+ return ((NodeCompositeEditPart)sourceEditPart).getMARelTypesOnSource();
+ }
+ if(sourceEditPart instanceof ClassCompositeEditPart) {
+ return ((ClassCompositeEditPart)sourceEditPart).getMARelTypesOnSource();
+ }
+ if(sourceEditPart instanceof CollaborationCompositeEditPart) {
+ return ((CollaborationCompositeEditPart)sourceEditPart).getMARelTypesOnSource();
+ }
+ if(sourceEditPart instanceof InterfaceEditPart) {
+ return ((InterfaceEditPart)sourceEditPart).getMARelTypesOnSource();
+ }
+ if(sourceEditPart instanceof PrimitiveTypeEditPart) {
+ return ((PrimitiveTypeEditPart)sourceEditPart).getMARelTypesOnSource();
+ }
+ if(sourceEditPart instanceof EnumerationEditPart) {
+ return ((EnumerationEditPart)sourceEditPart).getMARelTypesOnSource();
+ }
+ if(sourceEditPart instanceof DataTypeEditPart) {
+ return ((DataTypeEditPart)sourceEditPart).getMARelTypesOnSource();
+ }
+ if(sourceEditPart instanceof ActorEditPart) {
+ return ((ActorEditPart)sourceEditPart).getMARelTypesOnSource();
+ }
+ if(sourceEditPart instanceof DeploymentSpecificationEditPart) {
+ return ((DeploymentSpecificationEditPart)sourceEditPart).getMARelTypesOnSource();
+ }
+ if(sourceEditPart instanceof ArtifactEditPart) {
+ return ((ArtifactEditPart)sourceEditPart).getMARelTypesOnSource();
+ }
+ if(sourceEditPart instanceof InformationItemEditPart) {
+ return ((InformationItemEditPart)sourceEditPart).getMARelTypesOnSource();
+ }
+ if(sourceEditPart instanceof SignalEditPart) {
+ return ((SignalEditPart)sourceEditPart).getMARelTypesOnSource();
+ }
+ if(sourceEditPart instanceof UseCaseEditPart) {
+ return ((UseCaseEditPart)sourceEditPart).getMARelTypesOnSource();
+ }
+ if(sourceEditPart instanceof SignalEventEditPart) {
+ return ((SignalEventEditPart)sourceEditPart).getMARelTypesOnSource();
+ }
+ if(sourceEditPart instanceof CallEventEditPart) {
+ return ((CallEventEditPart)sourceEditPart).getMARelTypesOnSource();
+ }
+ if(sourceEditPart instanceof AnyReceiveEventEditPart) {
+ return ((AnyReceiveEventEditPart)sourceEditPart).getMARelTypesOnSource();
+ }
+ if(sourceEditPart instanceof SendSignalEventEditPart) {
+ return ((SendSignalEventEditPart)sourceEditPart).getMARelTypesOnSource();
+ }
+ if(sourceEditPart instanceof SendOperationEventEditPart) {
+ return ((SendOperationEventEditPart)sourceEditPart).getMARelTypesOnSource();
+ }
+ if(sourceEditPart instanceof ChangeEventEditPart) {
+ return ((ChangeEventEditPart)sourceEditPart).getMARelTypesOnSource();
+ }
+ if(sourceEditPart instanceof TimeEventEditPart) {
+ return ((TimeEventEditPart)sourceEditPart).getMARelTypesOnSource();
+ }
+ if(sourceEditPart instanceof CreationEventEditPart) {
+ return ((CreationEventEditPart)sourceEditPart).getMARelTypesOnSource();
+ }
+ if(sourceEditPart instanceof DestructionEventEditPart) {
+ return ((DestructionEventEditPart)sourceEditPart).getMARelTypesOnSource();
+ }
+ if(sourceEditPart instanceof ExecutionEventEditPart) {
+ return ((ExecutionEventEditPart)sourceEditPart).getMARelTypesOnSource();
+ }
+ if(sourceEditPart instanceof DurationObservationEditPart) {
+ return ((DurationObservationEditPart)sourceEditPart).getMARelTypesOnSource();
+ }
+ if(sourceEditPart instanceof TimeObservationEditPart) {
+ return ((TimeObservationEditPart)sourceEditPart).getMARelTypesOnSource();
+ }
+ if(sourceEditPart instanceof LiteralBooleanEditPart) {
+ return ((LiteralBooleanEditPart)sourceEditPart).getMARelTypesOnSource();
+ }
+ if(sourceEditPart instanceof LiteralIntegerEditPart) {
+ return ((LiteralIntegerEditPart)sourceEditPart).getMARelTypesOnSource();
+ }
+ if(sourceEditPart instanceof LiteralNullEditPart) {
+ return ((LiteralNullEditPart)sourceEditPart).getMARelTypesOnSource();
+ }
+ if(sourceEditPart instanceof LiteralStringEditPart) {
+ return ((LiteralStringEditPart)sourceEditPart).getMARelTypesOnSource();
+ }
+ if(sourceEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ return ((LiteralUnlimitedNaturalEditPart)sourceEditPart).getMARelTypesOnSource();
+ }
+ if(sourceEditPart instanceof StringExpressionEditPart) {
+ return ((StringExpressionEditPart)sourceEditPart).getMARelTypesOnSource();
+ }
+ if(sourceEditPart instanceof OpaqueExpressionEditPart) {
+ return ((OpaqueExpressionEditPart)sourceEditPart).getMARelTypesOnSource();
+ }
+ if(sourceEditPart instanceof TimeExpressionEditPart) {
+ return ((TimeExpressionEditPart)sourceEditPart).getMARelTypesOnSource();
+ }
+ if(sourceEditPart instanceof ExpressionEditPart) {
+ return ((ExpressionEditPart)sourceEditPart).getMARelTypesOnSource();
+ }
+ if(sourceEditPart instanceof DurationEditPart) {
+ return ((DurationEditPart)sourceEditPart).getMARelTypesOnSource();
+ }
+ if(sourceEditPart instanceof TimeIntervalEditPart) {
+ return ((TimeIntervalEditPart)sourceEditPart).getMARelTypesOnSource();
+ }
+ if(sourceEditPart instanceof DurationIntervalEditPart) {
+ return ((DurationIntervalEditPart)sourceEditPart).getMARelTypesOnSource();
+ }
+ if(sourceEditPart instanceof IntervalEditPart) {
+ return ((IntervalEditPart)sourceEditPart).getMARelTypesOnSource();
+ }
+ if(sourceEditPart instanceof InstanceValueEditPart) {
+ return ((InstanceValueEditPart)sourceEditPart).getMARelTypesOnSource();
+ }
+ if(sourceEditPart instanceof CommentEditPart) {
+ return ((CommentEditPart)sourceEditPart).getMARelTypesOnSource();
+ }
+ if(sourceEditPart instanceof DurationConstraintEditPart) {
+ return ((DurationConstraintEditPart)sourceEditPart).getMARelTypesOnSource();
+ }
+ if(sourceEditPart instanceof TimeConstraintEditPart) {
+ return ((TimeConstraintEditPart)sourceEditPart).getMARelTypesOnSource();
+ }
+ if(sourceEditPart instanceof IntervalConstraintEditPart) {
+ return ((IntervalConstraintEditPart)sourceEditPart).getMARelTypesOnSource();
+ }
+ if(sourceEditPart instanceof InteractionConstraintEditPart) {
+ return ((InteractionConstraintEditPart)sourceEditPart).getMARelTypesOnSource();
+ }
+ if(sourceEditPart instanceof ConstraintEditPart) {
+ return ((ConstraintEditPart)sourceEditPart).getMARelTypesOnSource();
+ }
+ if(sourceEditPart instanceof PortEditPart) {
+ return ((PortEditPart)sourceEditPart).getMARelTypesOnSource();
+ }
+ if(sourceEditPart instanceof ParameterEditPart) {
+ return ((ParameterEditPart)sourceEditPart).getMARelTypesOnSource();
+ }
+ if(sourceEditPart instanceof PropertyPartEditPartCN) {
+ return ((PropertyPartEditPartCN)sourceEditPart).getMARelTypesOnSource();
+ }
+ if(sourceEditPart instanceof CollaborationRoleEditPartCN) {
+ return ((CollaborationRoleEditPartCN)sourceEditPart).getMARelTypesOnSource();
+ }
+ if(sourceEditPart instanceof CollaborationUseEditPartCN) {
+ return ((CollaborationUseEditPartCN)sourceEditPart).getMARelTypesOnSource();
+ }
+ if(sourceEditPart instanceof ActivityCompositeEditPartCN) {
+ return ((ActivityCompositeEditPartCN)sourceEditPart).getMARelTypesOnSource();
+ }
+ if(sourceEditPart instanceof InteractionCompositeEditPartCN) {
+ return ((InteractionCompositeEditPartCN)sourceEditPart).getMARelTypesOnSource();
+ }
+ if(sourceEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ return ((ProtocolStateMachineCompositeEditPartCN)sourceEditPart).getMARelTypesOnSource();
+ }
+ if(sourceEditPart instanceof StateMachineCompositeEditPartCN) {
+ return ((StateMachineCompositeEditPartCN)sourceEditPart).getMARelTypesOnSource();
+ }
+ if(sourceEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ return ((FunctionBehaviorCompositeEditPartCN)sourceEditPart).getMARelTypesOnSource();
+ }
+ if(sourceEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ return ((OpaqueBehaviorCompositeEditPartCN)sourceEditPart).getMARelTypesOnSource();
+ }
+ if(sourceEditPart instanceof ComponentCompositeEditPartCN) {
+ return ((ComponentCompositeEditPartCN)sourceEditPart).getMARelTypesOnSource();
+ }
+ if(sourceEditPart instanceof DeviceCompositeEditPartCN) {
+ return ((DeviceCompositeEditPartCN)sourceEditPart).getMARelTypesOnSource();
+ }
+ if(sourceEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ return ((ExecutionEnvironmentCompositeEditPartCN)sourceEditPart).getMARelTypesOnSource();
+ }
+ if(sourceEditPart instanceof NodeCompositeEditPartCN) {
+ return ((NodeCompositeEditPartCN)sourceEditPart).getMARelTypesOnSource();
+ }
+ if(sourceEditPart instanceof ClassCompositeEditPartCN) {
+ return ((ClassCompositeEditPartCN)sourceEditPart).getMARelTypesOnSource();
+ }
+ if(sourceEditPart instanceof CollaborationCompositeEditPartCN) {
+ return ((CollaborationCompositeEditPartCN)sourceEditPart).getMARelTypesOnSource();
+ }
+ if(sourceEditPart instanceof InterfaceEditPartCN) {
+ return ((InterfaceEditPartCN)sourceEditPart).getMARelTypesOnSource();
+ }
+ if(sourceEditPart instanceof PrimitiveTypeEditPartCN) {
+ return ((PrimitiveTypeEditPartCN)sourceEditPart).getMARelTypesOnSource();
+ }
+ if(sourceEditPart instanceof EnumerationEditPartCN) {
+ return ((EnumerationEditPartCN)sourceEditPart).getMARelTypesOnSource();
+ }
+ if(sourceEditPart instanceof DataTypeEditPartCN) {
+ return ((DataTypeEditPartCN)sourceEditPart).getMARelTypesOnSource();
+ }
+ if(sourceEditPart instanceof ActorEditPartCN) {
+ return ((ActorEditPartCN)sourceEditPart).getMARelTypesOnSource();
+ }
+ if(sourceEditPart instanceof DeploymentSpecificationEditPartCN) {
+ return ((DeploymentSpecificationEditPartCN)sourceEditPart).getMARelTypesOnSource();
+ }
+ if(sourceEditPart instanceof ArtifactEditPartCN) {
+ return ((ArtifactEditPartCN)sourceEditPart).getMARelTypesOnSource();
+ }
+ if(sourceEditPart instanceof InformationItemEditPartCN) {
+ return ((InformationItemEditPartCN)sourceEditPart).getMARelTypesOnSource();
+ }
+ if(sourceEditPart instanceof SignalEditPartCN) {
+ return ((SignalEditPartCN)sourceEditPart).getMARelTypesOnSource();
+ }
+ if(sourceEditPart instanceof UseCaseEditPartCN) {
+ return ((UseCaseEditPartCN)sourceEditPart).getMARelTypesOnSource();
+ }
+ if(sourceEditPart instanceof CommentEditPartCN) {
+ return ((CommentEditPartCN)sourceEditPart).getMARelTypesOnSource();
+ }
+ if(sourceEditPart instanceof DurationConstraintEditPartCN) {
+ return ((DurationConstraintEditPartCN)sourceEditPart).getMARelTypesOnSource();
+ }
+ if(sourceEditPart instanceof TimeConstraintEditPartCN) {
+ return ((TimeConstraintEditPartCN)sourceEditPart).getMARelTypesOnSource();
+ }
+ if(sourceEditPart instanceof IntervalConstraintEditPartCN) {
+ return ((IntervalConstraintEditPartCN)sourceEditPart).getMARelTypesOnSource();
+ }
+ if(sourceEditPart instanceof InteractionConstraintEditPartCN) {
+ return ((InteractionConstraintEditPartCN)sourceEditPart).getMARelTypesOnSource();
+ }
+ if(sourceEditPart instanceof ConstraintEditPartCN) {
+ return ((ConstraintEditPartCN)sourceEditPart).getMARelTypesOnSource();
+ }
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ public List getRelTypesOnTarget(IAdaptable target) {
+ IGraphicalEditPart targetEditPart = (IGraphicalEditPart)target.getAdapter(IGraphicalEditPart.class);
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ return ((ActivityCompositeEditPart)targetEditPart).getMARelTypesOnTarget();
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ return ((InteractionCompositeEditPart)targetEditPart).getMARelTypesOnTarget();
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ return ((ProtocolStateMachineCompositeEditPart)targetEditPart).getMARelTypesOnTarget();
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ return ((StateMachineCompositeEditPart)targetEditPart).getMARelTypesOnTarget();
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ return ((FunctionBehaviorCompositeEditPart)targetEditPart).getMARelTypesOnTarget();
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ return ((OpaqueBehaviorCompositeEditPart)targetEditPart).getMARelTypesOnTarget();
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ return ((ComponentCompositeEditPart)targetEditPart).getMARelTypesOnTarget();
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ return ((DeviceCompositeEditPart)targetEditPart).getMARelTypesOnTarget();
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ return ((ExecutionEnvironmentCompositeEditPart)targetEditPart).getMARelTypesOnTarget();
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ return ((NodeCompositeEditPart)targetEditPart).getMARelTypesOnTarget();
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ return ((ClassCompositeEditPart)targetEditPart).getMARelTypesOnTarget();
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ return ((CollaborationCompositeEditPart)targetEditPart).getMARelTypesOnTarget();
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ return ((InterfaceEditPart)targetEditPart).getMARelTypesOnTarget();
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ return ((PrimitiveTypeEditPart)targetEditPart).getMARelTypesOnTarget();
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ return ((EnumerationEditPart)targetEditPart).getMARelTypesOnTarget();
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ return ((DataTypeEditPart)targetEditPart).getMARelTypesOnTarget();
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ return ((ActorEditPart)targetEditPart).getMARelTypesOnTarget();
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ return ((DeploymentSpecificationEditPart)targetEditPart).getMARelTypesOnTarget();
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ return ((ArtifactEditPart)targetEditPart).getMARelTypesOnTarget();
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ return ((InformationItemEditPart)targetEditPart).getMARelTypesOnTarget();
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ return ((SignalEditPart)targetEditPart).getMARelTypesOnTarget();
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ return ((UseCaseEditPart)targetEditPart).getMARelTypesOnTarget();
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ return ((SignalEventEditPart)targetEditPart).getMARelTypesOnTarget();
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ return ((CallEventEditPart)targetEditPart).getMARelTypesOnTarget();
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ return ((AnyReceiveEventEditPart)targetEditPart).getMARelTypesOnTarget();
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ return ((SendSignalEventEditPart)targetEditPart).getMARelTypesOnTarget();
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ return ((SendOperationEventEditPart)targetEditPart).getMARelTypesOnTarget();
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ return ((ChangeEventEditPart)targetEditPart).getMARelTypesOnTarget();
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ return ((TimeEventEditPart)targetEditPart).getMARelTypesOnTarget();
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ return ((CreationEventEditPart)targetEditPart).getMARelTypesOnTarget();
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ return ((DestructionEventEditPart)targetEditPart).getMARelTypesOnTarget();
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ return ((ExecutionEventEditPart)targetEditPart).getMARelTypesOnTarget();
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ return ((DurationObservationEditPart)targetEditPart).getMARelTypesOnTarget();
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ return ((TimeObservationEditPart)targetEditPart).getMARelTypesOnTarget();
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ return ((LiteralBooleanEditPart)targetEditPart).getMARelTypesOnTarget();
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ return ((LiteralIntegerEditPart)targetEditPart).getMARelTypesOnTarget();
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ return ((LiteralNullEditPart)targetEditPart).getMARelTypesOnTarget();
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ return ((LiteralStringEditPart)targetEditPart).getMARelTypesOnTarget();
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ return ((LiteralUnlimitedNaturalEditPart)targetEditPart).getMARelTypesOnTarget();
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ return ((StringExpressionEditPart)targetEditPart).getMARelTypesOnTarget();
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ return ((OpaqueExpressionEditPart)targetEditPart).getMARelTypesOnTarget();
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ return ((TimeExpressionEditPart)targetEditPart).getMARelTypesOnTarget();
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ return ((ExpressionEditPart)targetEditPart).getMARelTypesOnTarget();
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ return ((DurationEditPart)targetEditPart).getMARelTypesOnTarget();
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ return ((TimeIntervalEditPart)targetEditPart).getMARelTypesOnTarget();
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ return ((DurationIntervalEditPart)targetEditPart).getMARelTypesOnTarget();
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ return ((IntervalEditPart)targetEditPart).getMARelTypesOnTarget();
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ return ((InstanceValueEditPart)targetEditPart).getMARelTypesOnTarget();
+ }
+ if(targetEditPart instanceof CommentEditPart) {
+ return ((CommentEditPart)targetEditPart).getMARelTypesOnTarget();
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ return ((DurationConstraintEditPart)targetEditPart).getMARelTypesOnTarget();
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ return ((TimeConstraintEditPart)targetEditPart).getMARelTypesOnTarget();
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ return ((IntervalConstraintEditPart)targetEditPart).getMARelTypesOnTarget();
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ return ((InteractionConstraintEditPart)targetEditPart).getMARelTypesOnTarget();
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ return ((ConstraintEditPart)targetEditPart).getMARelTypesOnTarget();
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ return ((PortEditPart)targetEditPart).getMARelTypesOnTarget();
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ return ((ParameterEditPart)targetEditPart).getMARelTypesOnTarget();
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ return ((PropertyPartEditPartCN)targetEditPart).getMARelTypesOnTarget();
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ return ((CollaborationRoleEditPartCN)targetEditPart).getMARelTypesOnTarget();
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ return ((CollaborationUseEditPartCN)targetEditPart).getMARelTypesOnTarget();
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ return ((ActivityCompositeEditPartCN)targetEditPart).getMARelTypesOnTarget();
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ return ((InteractionCompositeEditPartCN)targetEditPart).getMARelTypesOnTarget();
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ return ((ProtocolStateMachineCompositeEditPartCN)targetEditPart).getMARelTypesOnTarget();
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ return ((StateMachineCompositeEditPartCN)targetEditPart).getMARelTypesOnTarget();
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ return ((FunctionBehaviorCompositeEditPartCN)targetEditPart).getMARelTypesOnTarget();
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ return ((OpaqueBehaviorCompositeEditPartCN)targetEditPart).getMARelTypesOnTarget();
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ return ((ComponentCompositeEditPartCN)targetEditPart).getMARelTypesOnTarget();
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ return ((DeviceCompositeEditPartCN)targetEditPart).getMARelTypesOnTarget();
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ return ((ExecutionEnvironmentCompositeEditPartCN)targetEditPart).getMARelTypesOnTarget();
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ return ((NodeCompositeEditPartCN)targetEditPart).getMARelTypesOnTarget();
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ return ((ClassCompositeEditPartCN)targetEditPart).getMARelTypesOnTarget();
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ return ((CollaborationCompositeEditPartCN)targetEditPart).getMARelTypesOnTarget();
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ return ((InterfaceEditPartCN)targetEditPart).getMARelTypesOnTarget();
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ return ((PrimitiveTypeEditPartCN)targetEditPart).getMARelTypesOnTarget();
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ return ((EnumerationEditPartCN)targetEditPart).getMARelTypesOnTarget();
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ return ((DataTypeEditPartCN)targetEditPart).getMARelTypesOnTarget();
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ return ((ActorEditPartCN)targetEditPart).getMARelTypesOnTarget();
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ return ((DeploymentSpecificationEditPartCN)targetEditPart).getMARelTypesOnTarget();
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ return ((ArtifactEditPartCN)targetEditPart).getMARelTypesOnTarget();
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ return ((InformationItemEditPartCN)targetEditPart).getMARelTypesOnTarget();
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ return ((SignalEditPartCN)targetEditPart).getMARelTypesOnTarget();
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ return ((UseCaseEditPartCN)targetEditPart).getMARelTypesOnTarget();
+ }
+ if(targetEditPart instanceof CommentEditPartCN) {
+ return ((CommentEditPartCN)targetEditPart).getMARelTypesOnTarget();
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ return ((DurationConstraintEditPartCN)targetEditPart).getMARelTypesOnTarget();
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ return ((TimeConstraintEditPartCN)targetEditPart).getMARelTypesOnTarget();
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ return ((IntervalConstraintEditPartCN)targetEditPart).getMARelTypesOnTarget();
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ return ((InteractionConstraintEditPartCN)targetEditPart).getMARelTypesOnTarget();
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ return ((ConstraintEditPartCN)targetEditPart).getMARelTypesOnTarget();
+ }
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ public List getRelTypesOnSourceAndTarget(IAdaptable source, IAdaptable target) {
+ IGraphicalEditPart sourceEditPart = (IGraphicalEditPart)source.getAdapter(IGraphicalEditPart.class);
+ IGraphicalEditPart targetEditPart = (IGraphicalEditPart)target.getAdapter(IGraphicalEditPart.class);
+ if(sourceEditPart instanceof ActivityCompositeEditPart) {
+ return ((ActivityCompositeEditPart)sourceEditPart).getMARelTypesOnSourceAndTarget(targetEditPart);
+ }
+ if(sourceEditPart instanceof InteractionCompositeEditPart) {
+ return ((InteractionCompositeEditPart)sourceEditPart).getMARelTypesOnSourceAndTarget(targetEditPart);
+ }
+ if(sourceEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ return ((ProtocolStateMachineCompositeEditPart)sourceEditPart).getMARelTypesOnSourceAndTarget(targetEditPart);
+ }
+ if(sourceEditPart instanceof StateMachineCompositeEditPart) {
+ return ((StateMachineCompositeEditPart)sourceEditPart).getMARelTypesOnSourceAndTarget(targetEditPart);
+ }
+ if(sourceEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ return ((FunctionBehaviorCompositeEditPart)sourceEditPart).getMARelTypesOnSourceAndTarget(targetEditPart);
+ }
+ if(sourceEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ return ((OpaqueBehaviorCompositeEditPart)sourceEditPart).getMARelTypesOnSourceAndTarget(targetEditPart);
+ }
+ if(sourceEditPart instanceof ComponentCompositeEditPart) {
+ return ((ComponentCompositeEditPart)sourceEditPart).getMARelTypesOnSourceAndTarget(targetEditPart);
+ }
+ if(sourceEditPart instanceof DeviceCompositeEditPart) {
+ return ((DeviceCompositeEditPart)sourceEditPart).getMARelTypesOnSourceAndTarget(targetEditPart);
+ }
+ if(sourceEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ return ((ExecutionEnvironmentCompositeEditPart)sourceEditPart).getMARelTypesOnSourceAndTarget(targetEditPart);
+ }
+ if(sourceEditPart instanceof NodeCompositeEditPart) {
+ return ((NodeCompositeEditPart)sourceEditPart).getMARelTypesOnSourceAndTarget(targetEditPart);
+ }
+ if(sourceEditPart instanceof ClassCompositeEditPart) {
+ return ((ClassCompositeEditPart)sourceEditPart).getMARelTypesOnSourceAndTarget(targetEditPart);
+ }
+ if(sourceEditPart instanceof CollaborationCompositeEditPart) {
+ return ((CollaborationCompositeEditPart)sourceEditPart).getMARelTypesOnSourceAndTarget(targetEditPart);
+ }
+ if(sourceEditPart instanceof InterfaceEditPart) {
+ return ((InterfaceEditPart)sourceEditPart).getMARelTypesOnSourceAndTarget(targetEditPart);
+ }
+ if(sourceEditPart instanceof PrimitiveTypeEditPart) {
+ return ((PrimitiveTypeEditPart)sourceEditPart).getMARelTypesOnSourceAndTarget(targetEditPart);
+ }
+ if(sourceEditPart instanceof EnumerationEditPart) {
+ return ((EnumerationEditPart)sourceEditPart).getMARelTypesOnSourceAndTarget(targetEditPart);
+ }
+ if(sourceEditPart instanceof DataTypeEditPart) {
+ return ((DataTypeEditPart)sourceEditPart).getMARelTypesOnSourceAndTarget(targetEditPart);
+ }
+ if(sourceEditPart instanceof ActorEditPart) {
+ return ((ActorEditPart)sourceEditPart).getMARelTypesOnSourceAndTarget(targetEditPart);
+ }
+ if(sourceEditPart instanceof DeploymentSpecificationEditPart) {
+ return ((DeploymentSpecificationEditPart)sourceEditPart).getMARelTypesOnSourceAndTarget(targetEditPart);
+ }
+ if(sourceEditPart instanceof ArtifactEditPart) {
+ return ((ArtifactEditPart)sourceEditPart).getMARelTypesOnSourceAndTarget(targetEditPart);
+ }
+ if(sourceEditPart instanceof InformationItemEditPart) {
+ return ((InformationItemEditPart)sourceEditPart).getMARelTypesOnSourceAndTarget(targetEditPart);
+ }
+ if(sourceEditPart instanceof SignalEditPart) {
+ return ((SignalEditPart)sourceEditPart).getMARelTypesOnSourceAndTarget(targetEditPart);
+ }
+ if(sourceEditPart instanceof UseCaseEditPart) {
+ return ((UseCaseEditPart)sourceEditPart).getMARelTypesOnSourceAndTarget(targetEditPart);
+ }
+ if(sourceEditPart instanceof SignalEventEditPart) {
+ return ((SignalEventEditPart)sourceEditPart).getMARelTypesOnSourceAndTarget(targetEditPart);
+ }
+ if(sourceEditPart instanceof CallEventEditPart) {
+ return ((CallEventEditPart)sourceEditPart).getMARelTypesOnSourceAndTarget(targetEditPart);
+ }
+ if(sourceEditPart instanceof AnyReceiveEventEditPart) {
+ return ((AnyReceiveEventEditPart)sourceEditPart).getMARelTypesOnSourceAndTarget(targetEditPart);
+ }
+ if(sourceEditPart instanceof SendSignalEventEditPart) {
+ return ((SendSignalEventEditPart)sourceEditPart).getMARelTypesOnSourceAndTarget(targetEditPart);
+ }
+ if(sourceEditPart instanceof SendOperationEventEditPart) {
+ return ((SendOperationEventEditPart)sourceEditPart).getMARelTypesOnSourceAndTarget(targetEditPart);
+ }
+ if(sourceEditPart instanceof ChangeEventEditPart) {
+ return ((ChangeEventEditPart)sourceEditPart).getMARelTypesOnSourceAndTarget(targetEditPart);
+ }
+ if(sourceEditPart instanceof TimeEventEditPart) {
+ return ((TimeEventEditPart)sourceEditPart).getMARelTypesOnSourceAndTarget(targetEditPart);
+ }
+ if(sourceEditPart instanceof CreationEventEditPart) {
+ return ((CreationEventEditPart)sourceEditPart).getMARelTypesOnSourceAndTarget(targetEditPart);
+ }
+ if(sourceEditPart instanceof DestructionEventEditPart) {
+ return ((DestructionEventEditPart)sourceEditPart).getMARelTypesOnSourceAndTarget(targetEditPart);
+ }
+ if(sourceEditPart instanceof ExecutionEventEditPart) {
+ return ((ExecutionEventEditPart)sourceEditPart).getMARelTypesOnSourceAndTarget(targetEditPart);
+ }
+ if(sourceEditPart instanceof DurationObservationEditPart) {
+ return ((DurationObservationEditPart)sourceEditPart).getMARelTypesOnSourceAndTarget(targetEditPart);
+ }
+ if(sourceEditPart instanceof TimeObservationEditPart) {
+ return ((TimeObservationEditPart)sourceEditPart).getMARelTypesOnSourceAndTarget(targetEditPart);
+ }
+ if(sourceEditPart instanceof LiteralBooleanEditPart) {
+ return ((LiteralBooleanEditPart)sourceEditPart).getMARelTypesOnSourceAndTarget(targetEditPart);
+ }
+ if(sourceEditPart instanceof LiteralIntegerEditPart) {
+ return ((LiteralIntegerEditPart)sourceEditPart).getMARelTypesOnSourceAndTarget(targetEditPart);
+ }
+ if(sourceEditPart instanceof LiteralNullEditPart) {
+ return ((LiteralNullEditPart)sourceEditPart).getMARelTypesOnSourceAndTarget(targetEditPart);
+ }
+ if(sourceEditPart instanceof LiteralStringEditPart) {
+ return ((LiteralStringEditPart)sourceEditPart).getMARelTypesOnSourceAndTarget(targetEditPart);
+ }
+ if(sourceEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ return ((LiteralUnlimitedNaturalEditPart)sourceEditPart).getMARelTypesOnSourceAndTarget(targetEditPart);
+ }
+ if(sourceEditPart instanceof StringExpressionEditPart) {
+ return ((StringExpressionEditPart)sourceEditPart).getMARelTypesOnSourceAndTarget(targetEditPart);
+ }
+ if(sourceEditPart instanceof OpaqueExpressionEditPart) {
+ return ((OpaqueExpressionEditPart)sourceEditPart).getMARelTypesOnSourceAndTarget(targetEditPart);
+ }
+ if(sourceEditPart instanceof TimeExpressionEditPart) {
+ return ((TimeExpressionEditPart)sourceEditPart).getMARelTypesOnSourceAndTarget(targetEditPart);
+ }
+ if(sourceEditPart instanceof ExpressionEditPart) {
+ return ((ExpressionEditPart)sourceEditPart).getMARelTypesOnSourceAndTarget(targetEditPart);
+ }
+ if(sourceEditPart instanceof DurationEditPart) {
+ return ((DurationEditPart)sourceEditPart).getMARelTypesOnSourceAndTarget(targetEditPart);
+ }
+ if(sourceEditPart instanceof TimeIntervalEditPart) {
+ return ((TimeIntervalEditPart)sourceEditPart).getMARelTypesOnSourceAndTarget(targetEditPart);
+ }
+ if(sourceEditPart instanceof DurationIntervalEditPart) {
+ return ((DurationIntervalEditPart)sourceEditPart).getMARelTypesOnSourceAndTarget(targetEditPart);
+ }
+ if(sourceEditPart instanceof IntervalEditPart) {
+ return ((IntervalEditPart)sourceEditPart).getMARelTypesOnSourceAndTarget(targetEditPart);
+ }
+ if(sourceEditPart instanceof InstanceValueEditPart) {
+ return ((InstanceValueEditPart)sourceEditPart).getMARelTypesOnSourceAndTarget(targetEditPart);
+ }
+ if(sourceEditPart instanceof CommentEditPart) {
+ return ((CommentEditPart)sourceEditPart).getMARelTypesOnSourceAndTarget(targetEditPart);
+ }
+ if(sourceEditPart instanceof DurationConstraintEditPart) {
+ return ((DurationConstraintEditPart)sourceEditPart).getMARelTypesOnSourceAndTarget(targetEditPart);
+ }
+ if(sourceEditPart instanceof TimeConstraintEditPart) {
+ return ((TimeConstraintEditPart)sourceEditPart).getMARelTypesOnSourceAndTarget(targetEditPart);
+ }
+ if(sourceEditPart instanceof IntervalConstraintEditPart) {
+ return ((IntervalConstraintEditPart)sourceEditPart).getMARelTypesOnSourceAndTarget(targetEditPart);
+ }
+ if(sourceEditPart instanceof InteractionConstraintEditPart) {
+ return ((InteractionConstraintEditPart)sourceEditPart).getMARelTypesOnSourceAndTarget(targetEditPart);
+ }
+ if(sourceEditPart instanceof ConstraintEditPart) {
+ return ((ConstraintEditPart)sourceEditPart).getMARelTypesOnSourceAndTarget(targetEditPart);
+ }
+ if(sourceEditPart instanceof PortEditPart) {
+ return ((PortEditPart)sourceEditPart).getMARelTypesOnSourceAndTarget(targetEditPart);
+ }
+ if(sourceEditPart instanceof ParameterEditPart) {
+ return ((ParameterEditPart)sourceEditPart).getMARelTypesOnSourceAndTarget(targetEditPart);
+ }
+ if(sourceEditPart instanceof PropertyPartEditPartCN) {
+ return ((PropertyPartEditPartCN)sourceEditPart).getMARelTypesOnSourceAndTarget(targetEditPart);
+ }
+ if(sourceEditPart instanceof CollaborationRoleEditPartCN) {
+ return ((CollaborationRoleEditPartCN)sourceEditPart).getMARelTypesOnSourceAndTarget(targetEditPart);
+ }
+ if(sourceEditPart instanceof CollaborationUseEditPartCN) {
+ return ((CollaborationUseEditPartCN)sourceEditPart).getMARelTypesOnSourceAndTarget(targetEditPart);
+ }
+ if(sourceEditPart instanceof ActivityCompositeEditPartCN) {
+ return ((ActivityCompositeEditPartCN)sourceEditPart).getMARelTypesOnSourceAndTarget(targetEditPart);
+ }
+ if(sourceEditPart instanceof InteractionCompositeEditPartCN) {
+ return ((InteractionCompositeEditPartCN)sourceEditPart).getMARelTypesOnSourceAndTarget(targetEditPart);
+ }
+ if(sourceEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ return ((ProtocolStateMachineCompositeEditPartCN)sourceEditPart).getMARelTypesOnSourceAndTarget(targetEditPart);
+ }
+ if(sourceEditPart instanceof StateMachineCompositeEditPartCN) {
+ return ((StateMachineCompositeEditPartCN)sourceEditPart).getMARelTypesOnSourceAndTarget(targetEditPart);
+ }
+ if(sourceEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ return ((FunctionBehaviorCompositeEditPartCN)sourceEditPart).getMARelTypesOnSourceAndTarget(targetEditPart);
+ }
+ if(sourceEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ return ((OpaqueBehaviorCompositeEditPartCN)sourceEditPart).getMARelTypesOnSourceAndTarget(targetEditPart);
+ }
+ if(sourceEditPart instanceof ComponentCompositeEditPartCN) {
+ return ((ComponentCompositeEditPartCN)sourceEditPart).getMARelTypesOnSourceAndTarget(targetEditPart);
+ }
+ if(sourceEditPart instanceof DeviceCompositeEditPartCN) {
+ return ((DeviceCompositeEditPartCN)sourceEditPart).getMARelTypesOnSourceAndTarget(targetEditPart);
+ }
+ if(sourceEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ return ((ExecutionEnvironmentCompositeEditPartCN)sourceEditPart).getMARelTypesOnSourceAndTarget(targetEditPart);
+ }
+ if(sourceEditPart instanceof NodeCompositeEditPartCN) {
+ return ((NodeCompositeEditPartCN)sourceEditPart).getMARelTypesOnSourceAndTarget(targetEditPart);
+ }
+ if(sourceEditPart instanceof ClassCompositeEditPartCN) {
+ return ((ClassCompositeEditPartCN)sourceEditPart).getMARelTypesOnSourceAndTarget(targetEditPart);
+ }
+ if(sourceEditPart instanceof CollaborationCompositeEditPartCN) {
+ return ((CollaborationCompositeEditPartCN)sourceEditPart).getMARelTypesOnSourceAndTarget(targetEditPart);
+ }
+ if(sourceEditPart instanceof InterfaceEditPartCN) {
+ return ((InterfaceEditPartCN)sourceEditPart).getMARelTypesOnSourceAndTarget(targetEditPart);
+ }
+ if(sourceEditPart instanceof PrimitiveTypeEditPartCN) {
+ return ((PrimitiveTypeEditPartCN)sourceEditPart).getMARelTypesOnSourceAndTarget(targetEditPart);
+ }
+ if(sourceEditPart instanceof EnumerationEditPartCN) {
+ return ((EnumerationEditPartCN)sourceEditPart).getMARelTypesOnSourceAndTarget(targetEditPart);
+ }
+ if(sourceEditPart instanceof DataTypeEditPartCN) {
+ return ((DataTypeEditPartCN)sourceEditPart).getMARelTypesOnSourceAndTarget(targetEditPart);
+ }
+ if(sourceEditPart instanceof ActorEditPartCN) {
+ return ((ActorEditPartCN)sourceEditPart).getMARelTypesOnSourceAndTarget(targetEditPart);
+ }
+ if(sourceEditPart instanceof DeploymentSpecificationEditPartCN) {
+ return ((DeploymentSpecificationEditPartCN)sourceEditPart).getMARelTypesOnSourceAndTarget(targetEditPart);
+ }
+ if(sourceEditPart instanceof ArtifactEditPartCN) {
+ return ((ArtifactEditPartCN)sourceEditPart).getMARelTypesOnSourceAndTarget(targetEditPart);
+ }
+ if(sourceEditPart instanceof InformationItemEditPartCN) {
+ return ((InformationItemEditPartCN)sourceEditPart).getMARelTypesOnSourceAndTarget(targetEditPart);
+ }
+ if(sourceEditPart instanceof SignalEditPartCN) {
+ return ((SignalEditPartCN)sourceEditPart).getMARelTypesOnSourceAndTarget(targetEditPart);
+ }
+ if(sourceEditPart instanceof UseCaseEditPartCN) {
+ return ((UseCaseEditPartCN)sourceEditPart).getMARelTypesOnSourceAndTarget(targetEditPart);
+ }
+ if(sourceEditPart instanceof CommentEditPartCN) {
+ return ((CommentEditPartCN)sourceEditPart).getMARelTypesOnSourceAndTarget(targetEditPart);
+ }
+ if(sourceEditPart instanceof DurationConstraintEditPartCN) {
+ return ((DurationConstraintEditPartCN)sourceEditPart).getMARelTypesOnSourceAndTarget(targetEditPart);
+ }
+ if(sourceEditPart instanceof TimeConstraintEditPartCN) {
+ return ((TimeConstraintEditPartCN)sourceEditPart).getMARelTypesOnSourceAndTarget(targetEditPart);
+ }
+ if(sourceEditPart instanceof IntervalConstraintEditPartCN) {
+ return ((IntervalConstraintEditPartCN)sourceEditPart).getMARelTypesOnSourceAndTarget(targetEditPart);
+ }
+ if(sourceEditPart instanceof InteractionConstraintEditPartCN) {
+ return ((InteractionConstraintEditPartCN)sourceEditPart).getMARelTypesOnSourceAndTarget(targetEditPart);
+ }
+ if(sourceEditPart instanceof ConstraintEditPartCN) {
+ return ((ConstraintEditPartCN)sourceEditPart).getMARelTypesOnSourceAndTarget(targetEditPart);
+ }
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ public List getTypesForSource(IAdaptable target, IElementType relationshipType) {
+ IGraphicalEditPart targetEditPart = (IGraphicalEditPart)target.getAdapter(IGraphicalEditPart.class);
+ if(targetEditPart instanceof ActivityCompositeEditPart) {
+ return ((ActivityCompositeEditPart)targetEditPart).getMATypesForSource(relationshipType);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPart) {
+ return ((InteractionCompositeEditPart)targetEditPart).getMATypesForSource(relationshipType);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ return ((ProtocolStateMachineCompositeEditPart)targetEditPart).getMATypesForSource(relationshipType);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPart) {
+ return ((StateMachineCompositeEditPart)targetEditPart).getMATypesForSource(relationshipType);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ return ((FunctionBehaviorCompositeEditPart)targetEditPart).getMATypesForSource(relationshipType);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ return ((OpaqueBehaviorCompositeEditPart)targetEditPart).getMATypesForSource(relationshipType);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPart) {
+ return ((ComponentCompositeEditPart)targetEditPart).getMATypesForSource(relationshipType);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPart) {
+ return ((DeviceCompositeEditPart)targetEditPart).getMATypesForSource(relationshipType);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ return ((ExecutionEnvironmentCompositeEditPart)targetEditPart).getMATypesForSource(relationshipType);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPart) {
+ return ((NodeCompositeEditPart)targetEditPart).getMATypesForSource(relationshipType);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPart) {
+ return ((ClassCompositeEditPart)targetEditPart).getMATypesForSource(relationshipType);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPart) {
+ return ((CollaborationCompositeEditPart)targetEditPart).getMATypesForSource(relationshipType);
+ }
+ if(targetEditPart instanceof InterfaceEditPart) {
+ return ((InterfaceEditPart)targetEditPart).getMATypesForSource(relationshipType);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPart) {
+ return ((PrimitiveTypeEditPart)targetEditPart).getMATypesForSource(relationshipType);
+ }
+ if(targetEditPart instanceof EnumerationEditPart) {
+ return ((EnumerationEditPart)targetEditPart).getMATypesForSource(relationshipType);
+ }
+ if(targetEditPart instanceof DataTypeEditPart) {
+ return ((DataTypeEditPart)targetEditPart).getMATypesForSource(relationshipType);
+ }
+ if(targetEditPart instanceof ActorEditPart) {
+ return ((ActorEditPart)targetEditPart).getMATypesForSource(relationshipType);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPart) {
+ return ((DeploymentSpecificationEditPart)targetEditPart).getMATypesForSource(relationshipType);
+ }
+ if(targetEditPart instanceof ArtifactEditPart) {
+ return ((ArtifactEditPart)targetEditPart).getMATypesForSource(relationshipType);
+ }
+ if(targetEditPart instanceof InformationItemEditPart) {
+ return ((InformationItemEditPart)targetEditPart).getMATypesForSource(relationshipType);
+ }
+ if(targetEditPart instanceof SignalEditPart) {
+ return ((SignalEditPart)targetEditPart).getMATypesForSource(relationshipType);
+ }
+ if(targetEditPart instanceof UseCaseEditPart) {
+ return ((UseCaseEditPart)targetEditPart).getMATypesForSource(relationshipType);
+ }
+ if(targetEditPart instanceof SignalEventEditPart) {
+ return ((SignalEventEditPart)targetEditPart).getMATypesForSource(relationshipType);
+ }
+ if(targetEditPart instanceof CallEventEditPart) {
+ return ((CallEventEditPart)targetEditPart).getMATypesForSource(relationshipType);
+ }
+ if(targetEditPart instanceof AnyReceiveEventEditPart) {
+ return ((AnyReceiveEventEditPart)targetEditPart).getMATypesForSource(relationshipType);
+ }
+ if(targetEditPart instanceof SendSignalEventEditPart) {
+ return ((SendSignalEventEditPart)targetEditPart).getMATypesForSource(relationshipType);
+ }
+ if(targetEditPart instanceof SendOperationEventEditPart) {
+ return ((SendOperationEventEditPart)targetEditPart).getMATypesForSource(relationshipType);
+ }
+ if(targetEditPart instanceof ChangeEventEditPart) {
+ return ((ChangeEventEditPart)targetEditPart).getMATypesForSource(relationshipType);
+ }
+ if(targetEditPart instanceof TimeEventEditPart) {
+ return ((TimeEventEditPart)targetEditPart).getMATypesForSource(relationshipType);
+ }
+ if(targetEditPart instanceof CreationEventEditPart) {
+ return ((CreationEventEditPart)targetEditPart).getMATypesForSource(relationshipType);
+ }
+ if(targetEditPart instanceof DestructionEventEditPart) {
+ return ((DestructionEventEditPart)targetEditPart).getMATypesForSource(relationshipType);
+ }
+ if(targetEditPart instanceof ExecutionEventEditPart) {
+ return ((ExecutionEventEditPart)targetEditPart).getMATypesForSource(relationshipType);
+ }
+ if(targetEditPart instanceof DurationObservationEditPart) {
+ return ((DurationObservationEditPart)targetEditPart).getMATypesForSource(relationshipType);
+ }
+ if(targetEditPart instanceof TimeObservationEditPart) {
+ return ((TimeObservationEditPart)targetEditPart).getMATypesForSource(relationshipType);
+ }
+ if(targetEditPart instanceof LiteralBooleanEditPart) {
+ return ((LiteralBooleanEditPart)targetEditPart).getMATypesForSource(relationshipType);
+ }
+ if(targetEditPart instanceof LiteralIntegerEditPart) {
+ return ((LiteralIntegerEditPart)targetEditPart).getMATypesForSource(relationshipType);
+ }
+ if(targetEditPart instanceof LiteralNullEditPart) {
+ return ((LiteralNullEditPart)targetEditPart).getMATypesForSource(relationshipType);
+ }
+ if(targetEditPart instanceof LiteralStringEditPart) {
+ return ((LiteralStringEditPart)targetEditPart).getMATypesForSource(relationshipType);
+ }
+ if(targetEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ return ((LiteralUnlimitedNaturalEditPart)targetEditPart).getMATypesForSource(relationshipType);
+ }
+ if(targetEditPart instanceof StringExpressionEditPart) {
+ return ((StringExpressionEditPart)targetEditPart).getMATypesForSource(relationshipType);
+ }
+ if(targetEditPart instanceof OpaqueExpressionEditPart) {
+ return ((OpaqueExpressionEditPart)targetEditPart).getMATypesForSource(relationshipType);
+ }
+ if(targetEditPart instanceof TimeExpressionEditPart) {
+ return ((TimeExpressionEditPart)targetEditPart).getMATypesForSource(relationshipType);
+ }
+ if(targetEditPart instanceof ExpressionEditPart) {
+ return ((ExpressionEditPart)targetEditPart).getMATypesForSource(relationshipType);
+ }
+ if(targetEditPart instanceof DurationEditPart) {
+ return ((DurationEditPart)targetEditPart).getMATypesForSource(relationshipType);
+ }
+ if(targetEditPart instanceof TimeIntervalEditPart) {
+ return ((TimeIntervalEditPart)targetEditPart).getMATypesForSource(relationshipType);
+ }
+ if(targetEditPart instanceof DurationIntervalEditPart) {
+ return ((DurationIntervalEditPart)targetEditPart).getMATypesForSource(relationshipType);
+ }
+ if(targetEditPart instanceof IntervalEditPart) {
+ return ((IntervalEditPart)targetEditPart).getMATypesForSource(relationshipType);
+ }
+ if(targetEditPart instanceof InstanceValueEditPart) {
+ return ((InstanceValueEditPart)targetEditPart).getMATypesForSource(relationshipType);
+ }
+ if(targetEditPart instanceof CommentEditPart) {
+ return ((CommentEditPart)targetEditPart).getMATypesForSource(relationshipType);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPart) {
+ return ((DurationConstraintEditPart)targetEditPart).getMATypesForSource(relationshipType);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPart) {
+ return ((TimeConstraintEditPart)targetEditPart).getMATypesForSource(relationshipType);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPart) {
+ return ((IntervalConstraintEditPart)targetEditPart).getMATypesForSource(relationshipType);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPart) {
+ return ((InteractionConstraintEditPart)targetEditPart).getMATypesForSource(relationshipType);
+ }
+ if(targetEditPart instanceof ConstraintEditPart) {
+ return ((ConstraintEditPart)targetEditPart).getMATypesForSource(relationshipType);
+ }
+ if(targetEditPart instanceof PortEditPart) {
+ return ((PortEditPart)targetEditPart).getMATypesForSource(relationshipType);
+ }
+ if(targetEditPart instanceof ParameterEditPart) {
+ return ((ParameterEditPart)targetEditPart).getMATypesForSource(relationshipType);
+ }
+ if(targetEditPart instanceof PropertyPartEditPartCN) {
+ return ((PropertyPartEditPartCN)targetEditPart).getMATypesForSource(relationshipType);
+ }
+ if(targetEditPart instanceof CollaborationRoleEditPartCN) {
+ return ((CollaborationRoleEditPartCN)targetEditPart).getMATypesForSource(relationshipType);
+ }
+ if(targetEditPart instanceof CollaborationUseEditPartCN) {
+ return ((CollaborationUseEditPartCN)targetEditPart).getMATypesForSource(relationshipType);
+ }
+ if(targetEditPart instanceof ActivityCompositeEditPartCN) {
+ return ((ActivityCompositeEditPartCN)targetEditPart).getMATypesForSource(relationshipType);
+ }
+ if(targetEditPart instanceof InteractionCompositeEditPartCN) {
+ return ((InteractionCompositeEditPartCN)targetEditPart).getMATypesForSource(relationshipType);
+ }
+ if(targetEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ return ((ProtocolStateMachineCompositeEditPartCN)targetEditPart).getMATypesForSource(relationshipType);
+ }
+ if(targetEditPart instanceof StateMachineCompositeEditPartCN) {
+ return ((StateMachineCompositeEditPartCN)targetEditPart).getMATypesForSource(relationshipType);
+ }
+ if(targetEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ return ((FunctionBehaviorCompositeEditPartCN)targetEditPart).getMATypesForSource(relationshipType);
+ }
+ if(targetEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ return ((OpaqueBehaviorCompositeEditPartCN)targetEditPart).getMATypesForSource(relationshipType);
+ }
+ if(targetEditPart instanceof ComponentCompositeEditPartCN) {
+ return ((ComponentCompositeEditPartCN)targetEditPart).getMATypesForSource(relationshipType);
+ }
+ if(targetEditPart instanceof DeviceCompositeEditPartCN) {
+ return ((DeviceCompositeEditPartCN)targetEditPart).getMATypesForSource(relationshipType);
+ }
+ if(targetEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ return ((ExecutionEnvironmentCompositeEditPartCN)targetEditPart).getMATypesForSource(relationshipType);
+ }
+ if(targetEditPart instanceof NodeCompositeEditPartCN) {
+ return ((NodeCompositeEditPartCN)targetEditPart).getMATypesForSource(relationshipType);
+ }
+ if(targetEditPart instanceof ClassCompositeEditPartCN) {
+ return ((ClassCompositeEditPartCN)targetEditPart).getMATypesForSource(relationshipType);
+ }
+ if(targetEditPart instanceof CollaborationCompositeEditPartCN) {
+ return ((CollaborationCompositeEditPartCN)targetEditPart).getMATypesForSource(relationshipType);
+ }
+ if(targetEditPart instanceof InterfaceEditPartCN) {
+ return ((InterfaceEditPartCN)targetEditPart).getMATypesForSource(relationshipType);
+ }
+ if(targetEditPart instanceof PrimitiveTypeEditPartCN) {
+ return ((PrimitiveTypeEditPartCN)targetEditPart).getMATypesForSource(relationshipType);
+ }
+ if(targetEditPart instanceof EnumerationEditPartCN) {
+ return ((EnumerationEditPartCN)targetEditPart).getMATypesForSource(relationshipType);
+ }
+ if(targetEditPart instanceof DataTypeEditPartCN) {
+ return ((DataTypeEditPartCN)targetEditPart).getMATypesForSource(relationshipType);
+ }
+ if(targetEditPart instanceof ActorEditPartCN) {
+ return ((ActorEditPartCN)targetEditPart).getMATypesForSource(relationshipType);
+ }
+ if(targetEditPart instanceof DeploymentSpecificationEditPartCN) {
+ return ((DeploymentSpecificationEditPartCN)targetEditPart).getMATypesForSource(relationshipType);
+ }
+ if(targetEditPart instanceof ArtifactEditPartCN) {
+ return ((ArtifactEditPartCN)targetEditPart).getMATypesForSource(relationshipType);
+ }
+ if(targetEditPart instanceof InformationItemEditPartCN) {
+ return ((InformationItemEditPartCN)targetEditPart).getMATypesForSource(relationshipType);
+ }
+ if(targetEditPart instanceof SignalEditPartCN) {
+ return ((SignalEditPartCN)targetEditPart).getMATypesForSource(relationshipType);
+ }
+ if(targetEditPart instanceof UseCaseEditPartCN) {
+ return ((UseCaseEditPartCN)targetEditPart).getMATypesForSource(relationshipType);
+ }
+ if(targetEditPart instanceof CommentEditPartCN) {
+ return ((CommentEditPartCN)targetEditPart).getMATypesForSource(relationshipType);
+ }
+ if(targetEditPart instanceof DurationConstraintEditPartCN) {
+ return ((DurationConstraintEditPartCN)targetEditPart).getMATypesForSource(relationshipType);
+ }
+ if(targetEditPart instanceof TimeConstraintEditPartCN) {
+ return ((TimeConstraintEditPartCN)targetEditPart).getMATypesForSource(relationshipType);
+ }
+ if(targetEditPart instanceof IntervalConstraintEditPartCN) {
+ return ((IntervalConstraintEditPartCN)targetEditPart).getMATypesForSource(relationshipType);
+ }
+ if(targetEditPart instanceof InteractionConstraintEditPartCN) {
+ return ((InteractionConstraintEditPartCN)targetEditPart).getMATypesForSource(relationshipType);
+ }
+ if(targetEditPart instanceof ConstraintEditPartCN) {
+ return ((ConstraintEditPartCN)targetEditPart).getMATypesForSource(relationshipType);
+ }
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ public List getTypesForTarget(IAdaptable source, IElementType relationshipType) {
+ IGraphicalEditPart sourceEditPart = (IGraphicalEditPart)source.getAdapter(IGraphicalEditPart.class);
+ if(sourceEditPart instanceof ActivityCompositeEditPart) {
+ return ((ActivityCompositeEditPart)sourceEditPart).getMATypesForTarget(relationshipType);
+ }
+ if(sourceEditPart instanceof InteractionCompositeEditPart) {
+ return ((InteractionCompositeEditPart)sourceEditPart).getMATypesForTarget(relationshipType);
+ }
+ if(sourceEditPart instanceof ProtocolStateMachineCompositeEditPart) {
+ return ((ProtocolStateMachineCompositeEditPart)sourceEditPart).getMATypesForTarget(relationshipType);
+ }
+ if(sourceEditPart instanceof StateMachineCompositeEditPart) {
+ return ((StateMachineCompositeEditPart)sourceEditPart).getMATypesForTarget(relationshipType);
+ }
+ if(sourceEditPart instanceof FunctionBehaviorCompositeEditPart) {
+ return ((FunctionBehaviorCompositeEditPart)sourceEditPart).getMATypesForTarget(relationshipType);
+ }
+ if(sourceEditPart instanceof OpaqueBehaviorCompositeEditPart) {
+ return ((OpaqueBehaviorCompositeEditPart)sourceEditPart).getMATypesForTarget(relationshipType);
+ }
+ if(sourceEditPart instanceof ComponentCompositeEditPart) {
+ return ((ComponentCompositeEditPart)sourceEditPart).getMATypesForTarget(relationshipType);
+ }
+ if(sourceEditPart instanceof DeviceCompositeEditPart) {
+ return ((DeviceCompositeEditPart)sourceEditPart).getMATypesForTarget(relationshipType);
+ }
+ if(sourceEditPart instanceof ExecutionEnvironmentCompositeEditPart) {
+ return ((ExecutionEnvironmentCompositeEditPart)sourceEditPart).getMATypesForTarget(relationshipType);
+ }
+ if(sourceEditPart instanceof NodeCompositeEditPart) {
+ return ((NodeCompositeEditPart)sourceEditPart).getMATypesForTarget(relationshipType);
+ }
+ if(sourceEditPart instanceof ClassCompositeEditPart) {
+ return ((ClassCompositeEditPart)sourceEditPart).getMATypesForTarget(relationshipType);
+ }
+ if(sourceEditPart instanceof CollaborationCompositeEditPart) {
+ return ((CollaborationCompositeEditPart)sourceEditPart).getMATypesForTarget(relationshipType);
+ }
+ if(sourceEditPart instanceof InterfaceEditPart) {
+ return ((InterfaceEditPart)sourceEditPart).getMATypesForTarget(relationshipType);
+ }
+ if(sourceEditPart instanceof PrimitiveTypeEditPart) {
+ return ((PrimitiveTypeEditPart)sourceEditPart).getMATypesForTarget(relationshipType);
+ }
+ if(sourceEditPart instanceof EnumerationEditPart) {
+ return ((EnumerationEditPart)sourceEditPart).getMATypesForTarget(relationshipType);
+ }
+ if(sourceEditPart instanceof DataTypeEditPart) {
+ return ((DataTypeEditPart)sourceEditPart).getMATypesForTarget(relationshipType);
+ }
+ if(sourceEditPart instanceof ActorEditPart) {
+ return ((ActorEditPart)sourceEditPart).getMATypesForTarget(relationshipType);
+ }
+ if(sourceEditPart instanceof DeploymentSpecificationEditPart) {
+ return ((DeploymentSpecificationEditPart)sourceEditPart).getMATypesForTarget(relationshipType);
+ }
+ if(sourceEditPart instanceof ArtifactEditPart) {
+ return ((ArtifactEditPart)sourceEditPart).getMATypesForTarget(relationshipType);
+ }
+ if(sourceEditPart instanceof InformationItemEditPart) {
+ return ((InformationItemEditPart)sourceEditPart).getMATypesForTarget(relationshipType);
+ }
+ if(sourceEditPart instanceof SignalEditPart) {
+ return ((SignalEditPart)sourceEditPart).getMATypesForTarget(relationshipType);
+ }
+ if(sourceEditPart instanceof UseCaseEditPart) {
+ return ((UseCaseEditPart)sourceEditPart).getMATypesForTarget(relationshipType);
+ }
+ if(sourceEditPart instanceof SignalEventEditPart) {
+ return ((SignalEventEditPart)sourceEditPart).getMATypesForTarget(relationshipType);
+ }
+ if(sourceEditPart instanceof CallEventEditPart) {
+ return ((CallEventEditPart)sourceEditPart).getMATypesForTarget(relationshipType);
+ }
+ if(sourceEditPart instanceof AnyReceiveEventEditPart) {
+ return ((AnyReceiveEventEditPart)sourceEditPart).getMATypesForTarget(relationshipType);
+ }
+ if(sourceEditPart instanceof SendSignalEventEditPart) {
+ return ((SendSignalEventEditPart)sourceEditPart).getMATypesForTarget(relationshipType);
+ }
+ if(sourceEditPart instanceof SendOperationEventEditPart) {
+ return ((SendOperationEventEditPart)sourceEditPart).getMATypesForTarget(relationshipType);
+ }
+ if(sourceEditPart instanceof ChangeEventEditPart) {
+ return ((ChangeEventEditPart)sourceEditPart).getMATypesForTarget(relationshipType);
+ }
+ if(sourceEditPart instanceof TimeEventEditPart) {
+ return ((TimeEventEditPart)sourceEditPart).getMATypesForTarget(relationshipType);
+ }
+ if(sourceEditPart instanceof CreationEventEditPart) {
+ return ((CreationEventEditPart)sourceEditPart).getMATypesForTarget(relationshipType);
+ }
+ if(sourceEditPart instanceof DestructionEventEditPart) {
+ return ((DestructionEventEditPart)sourceEditPart).getMATypesForTarget(relationshipType);
+ }
+ if(sourceEditPart instanceof ExecutionEventEditPart) {
+ return ((ExecutionEventEditPart)sourceEditPart).getMATypesForTarget(relationshipType);
+ }
+ if(sourceEditPart instanceof DurationObservationEditPart) {
+ return ((DurationObservationEditPart)sourceEditPart).getMATypesForTarget(relationshipType);
+ }
+ if(sourceEditPart instanceof TimeObservationEditPart) {
+ return ((TimeObservationEditPart)sourceEditPart).getMATypesForTarget(relationshipType);
+ }
+ if(sourceEditPart instanceof LiteralBooleanEditPart) {
+ return ((LiteralBooleanEditPart)sourceEditPart).getMATypesForTarget(relationshipType);
+ }
+ if(sourceEditPart instanceof LiteralIntegerEditPart) {
+ return ((LiteralIntegerEditPart)sourceEditPart).getMATypesForTarget(relationshipType);
+ }
+ if(sourceEditPart instanceof LiteralNullEditPart) {
+ return ((LiteralNullEditPart)sourceEditPart).getMATypesForTarget(relationshipType);
+ }
+ if(sourceEditPart instanceof LiteralStringEditPart) {
+ return ((LiteralStringEditPart)sourceEditPart).getMATypesForTarget(relationshipType);
+ }
+ if(sourceEditPart instanceof LiteralUnlimitedNaturalEditPart) {
+ return ((LiteralUnlimitedNaturalEditPart)sourceEditPart).getMATypesForTarget(relationshipType);
+ }
+ if(sourceEditPart instanceof StringExpressionEditPart) {
+ return ((StringExpressionEditPart)sourceEditPart).getMATypesForTarget(relationshipType);
+ }
+ if(sourceEditPart instanceof OpaqueExpressionEditPart) {
+ return ((OpaqueExpressionEditPart)sourceEditPart).getMATypesForTarget(relationshipType);
+ }
+ if(sourceEditPart instanceof TimeExpressionEditPart) {
+ return ((TimeExpressionEditPart)sourceEditPart).getMATypesForTarget(relationshipType);
+ }
+ if(sourceEditPart instanceof ExpressionEditPart) {
+ return ((ExpressionEditPart)sourceEditPart).getMATypesForTarget(relationshipType);
+ }
+ if(sourceEditPart instanceof DurationEditPart) {
+ return ((DurationEditPart)sourceEditPart).getMATypesForTarget(relationshipType);
+ }
+ if(sourceEditPart instanceof TimeIntervalEditPart) {
+ return ((TimeIntervalEditPart)sourceEditPart).getMATypesForTarget(relationshipType);
+ }
+ if(sourceEditPart instanceof DurationIntervalEditPart) {
+ return ((DurationIntervalEditPart)sourceEditPart).getMATypesForTarget(relationshipType);
+ }
+ if(sourceEditPart instanceof IntervalEditPart) {
+ return ((IntervalEditPart)sourceEditPart).getMATypesForTarget(relationshipType);
+ }
+ if(sourceEditPart instanceof InstanceValueEditPart) {
+ return ((InstanceValueEditPart)sourceEditPart).getMATypesForTarget(relationshipType);
+ }
+ if(sourceEditPart instanceof CommentEditPart) {
+ return ((CommentEditPart)sourceEditPart).getMATypesForTarget(relationshipType);
+ }
+ if(sourceEditPart instanceof DurationConstraintEditPart) {
+ return ((DurationConstraintEditPart)sourceEditPart).getMATypesForTarget(relationshipType);
+ }
+ if(sourceEditPart instanceof TimeConstraintEditPart) {
+ return ((TimeConstraintEditPart)sourceEditPart).getMATypesForTarget(relationshipType);
+ }
+ if(sourceEditPart instanceof IntervalConstraintEditPart) {
+ return ((IntervalConstraintEditPart)sourceEditPart).getMATypesForTarget(relationshipType);
+ }
+ if(sourceEditPart instanceof InteractionConstraintEditPart) {
+ return ((InteractionConstraintEditPart)sourceEditPart).getMATypesForTarget(relationshipType);
+ }
+ if(sourceEditPart instanceof ConstraintEditPart) {
+ return ((ConstraintEditPart)sourceEditPart).getMATypesForTarget(relationshipType);
+ }
+ if(sourceEditPart instanceof PortEditPart) {
+ return ((PortEditPart)sourceEditPart).getMATypesForTarget(relationshipType);
+ }
+ if(sourceEditPart instanceof ParameterEditPart) {
+ return ((ParameterEditPart)sourceEditPart).getMATypesForTarget(relationshipType);
+ }
+ if(sourceEditPart instanceof PropertyPartEditPartCN) {
+ return ((PropertyPartEditPartCN)sourceEditPart).getMATypesForTarget(relationshipType);
+ }
+ if(sourceEditPart instanceof CollaborationRoleEditPartCN) {
+ return ((CollaborationRoleEditPartCN)sourceEditPart).getMATypesForTarget(relationshipType);
+ }
+ if(sourceEditPart instanceof CollaborationUseEditPartCN) {
+ return ((CollaborationUseEditPartCN)sourceEditPart).getMATypesForTarget(relationshipType);
+ }
+ if(sourceEditPart instanceof ActivityCompositeEditPartCN) {
+ return ((ActivityCompositeEditPartCN)sourceEditPart).getMATypesForTarget(relationshipType);
+ }
+ if(sourceEditPart instanceof InteractionCompositeEditPartCN) {
+ return ((InteractionCompositeEditPartCN)sourceEditPart).getMATypesForTarget(relationshipType);
+ }
+ if(sourceEditPart instanceof ProtocolStateMachineCompositeEditPartCN) {
+ return ((ProtocolStateMachineCompositeEditPartCN)sourceEditPart).getMATypesForTarget(relationshipType);
+ }
+ if(sourceEditPart instanceof StateMachineCompositeEditPartCN) {
+ return ((StateMachineCompositeEditPartCN)sourceEditPart).getMATypesForTarget(relationshipType);
+ }
+ if(sourceEditPart instanceof FunctionBehaviorCompositeEditPartCN) {
+ return ((FunctionBehaviorCompositeEditPartCN)sourceEditPart).getMATypesForTarget(relationshipType);
+ }
+ if(sourceEditPart instanceof OpaqueBehaviorCompositeEditPartCN) {
+ return ((OpaqueBehaviorCompositeEditPartCN)sourceEditPart).getMATypesForTarget(relationshipType);
+ }
+ if(sourceEditPart instanceof ComponentCompositeEditPartCN) {
+ return ((ComponentCompositeEditPartCN)sourceEditPart).getMATypesForTarget(relationshipType);
+ }
+ if(sourceEditPart instanceof DeviceCompositeEditPartCN) {
+ return ((DeviceCompositeEditPartCN)sourceEditPart).getMATypesForTarget(relationshipType);
+ }
+ if(sourceEditPart instanceof ExecutionEnvironmentCompositeEditPartCN) {
+ return ((ExecutionEnvironmentCompositeEditPartCN)sourceEditPart).getMATypesForTarget(relationshipType);
+ }
+ if(sourceEditPart instanceof NodeCompositeEditPartCN) {
+ return ((NodeCompositeEditPartCN)sourceEditPart).getMATypesForTarget(relationshipType);
+ }
+ if(sourceEditPart instanceof ClassCompositeEditPartCN) {
+ return ((ClassCompositeEditPartCN)sourceEditPart).getMATypesForTarget(relationshipType);
+ }
+ if(sourceEditPart instanceof CollaborationCompositeEditPartCN) {
+ return ((CollaborationCompositeEditPartCN)sourceEditPart).getMATypesForTarget(relationshipType);
+ }
+ if(sourceEditPart instanceof InterfaceEditPartCN) {
+ return ((InterfaceEditPartCN)sourceEditPart).getMATypesForTarget(relationshipType);
+ }
+ if(sourceEditPart instanceof PrimitiveTypeEditPartCN) {
+ return ((PrimitiveTypeEditPartCN)sourceEditPart).getMATypesForTarget(relationshipType);
+ }
+ if(sourceEditPart instanceof EnumerationEditPartCN) {
+ return ((EnumerationEditPartCN)sourceEditPart).getMATypesForTarget(relationshipType);
+ }
+ if(sourceEditPart instanceof DataTypeEditPartCN) {
+ return ((DataTypeEditPartCN)sourceEditPart).getMATypesForTarget(relationshipType);
+ }
+ if(sourceEditPart instanceof ActorEditPartCN) {
+ return ((ActorEditPartCN)sourceEditPart).getMATypesForTarget(relationshipType);
+ }
+ if(sourceEditPart instanceof DeploymentSpecificationEditPartCN) {
+ return ((DeploymentSpecificationEditPartCN)sourceEditPart).getMATypesForTarget(relationshipType);
+ }
+ if(sourceEditPart instanceof ArtifactEditPartCN) {
+ return ((ArtifactEditPartCN)sourceEditPart).getMATypesForTarget(relationshipType);
+ }
+ if(sourceEditPart instanceof InformationItemEditPartCN) {
+ return ((InformationItemEditPartCN)sourceEditPart).getMATypesForTarget(relationshipType);
+ }
+ if(sourceEditPart instanceof SignalEditPartCN) {
+ return ((SignalEditPartCN)sourceEditPart).getMATypesForTarget(relationshipType);
+ }
+ if(sourceEditPart instanceof UseCaseEditPartCN) {
+ return ((UseCaseEditPartCN)sourceEditPart).getMATypesForTarget(relationshipType);
+ }
+ if(sourceEditPart instanceof CommentEditPartCN) {
+ return ((CommentEditPartCN)sourceEditPart).getMATypesForTarget(relationshipType);
+ }
+ if(sourceEditPart instanceof DurationConstraintEditPartCN) {
+ return ((DurationConstraintEditPartCN)sourceEditPart).getMATypesForTarget(relationshipType);
+ }
+ if(sourceEditPart instanceof TimeConstraintEditPartCN) {
+ return ((TimeConstraintEditPartCN)sourceEditPart).getMATypesForTarget(relationshipType);
+ }
+ if(sourceEditPart instanceof IntervalConstraintEditPartCN) {
+ return ((IntervalConstraintEditPartCN)sourceEditPart).getMATypesForTarget(relationshipType);
+ }
+ if(sourceEditPart instanceof InteractionConstraintEditPartCN) {
+ return ((InteractionConstraintEditPartCN)sourceEditPart).getMATypesForTarget(relationshipType);
+ }
+ if(sourceEditPart instanceof ConstraintEditPartCN) {
+ return ((ConstraintEditPartCN)sourceEditPart).getMATypesForTarget(relationshipType);
+ }
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ public EObject selectExistingElementForSource(IAdaptable target, IElementType relationshipType) {
+ return selectExistingElement(target, getTypesForSource(target, relationshipType));
+ }
+
+ /**
+ * @generated
+ */
+ public EObject selectExistingElementForTarget(IAdaptable source, IElementType relationshipType) {
+ return selectExistingElement(source, getTypesForTarget(source, relationshipType));
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject selectExistingElement(IAdaptable host, Collection types) {
+ if(types.isEmpty()) {
+ return null;
+ }
+ IGraphicalEditPart editPart = (IGraphicalEditPart)host.getAdapter(IGraphicalEditPart.class);
+ if(editPart == null) {
+ return null;
+ }
+ Diagram diagram = (Diagram)editPart.getRoot().getContents().getModel();
+ HashSet<EObject> elements = new HashSet<EObject>();
+ for(Iterator<EObject> it = diagram.getElement().eAllContents(); it.hasNext();) {
+ EObject element = it.next();
+ if(isApplicableElement(element, types)) {
+ elements.add(element);
+ }
+ }
+ if(elements.isEmpty()) {
+ return null;
+ }
+ return selectElement((EObject[])elements.toArray(new EObject[elements.size()]));
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean isApplicableElement(EObject element, Collection types) {
+ IElementType type = ElementTypeRegistry.getInstance().getElementType(element);
+ return types.contains(type);
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject selectElement(EObject[] elements) {
+ Shell shell = Display.getCurrent().getActiveShell();
+ ILabelProvider labelProvider = new AdapterFactoryLabelProvider(UMLDiagramEditorPlugin.getInstance().getItemProvidersAdapterFactory());
+ ElementListSelectionDialog dialog = new ElementListSelectionDialog(shell, labelProvider);
+ dialog.setMessage(Messages.UMLModelingAssistantProviderMessage);
+ dialog.setTitle(Messages.UMLModelingAssistantProviderTitle);
+ dialog.setMultipleSelection(false);
+ dialog.setElements(elements);
+ EObject selected = null;
+ if(dialog.open() == Window.OK) {
+ selected = (EObject)dialog.getFirstResult();
+ }
+ return selected;
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/providers/UMLParserProvider.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/providers/UMLParserProvider.java
new file mode 100644
index 00000000000..8b1bbdd8d37
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/providers/UMLParserProvider.java
@@ -0,0 +1,3037 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.providers;
+
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.emf.ecore.EAttribute;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gmf.runtime.common.core.service.AbstractProvider;
+import org.eclipse.gmf.runtime.common.core.service.IOperation;
+import org.eclipse.gmf.runtime.common.ui.services.parser.GetParserOperation;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserProvider;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserService;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.emf.ui.services.parser.ParserHintAdapter;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.diagram.common.parser.CommentParser;
+import org.eclipse.papyrus.diagram.common.parser.ConstraintParser;
+import org.eclipse.papyrus.diagram.common.parser.stereotype.AppliedStereotypeParser;
+import org.eclipse.papyrus.diagram.composite.custom.parsers.RoleBindingRoleNameParser;
+import org.eclipse.papyrus.diagram.composite.edit.parts.*;
+import org.eclipse.papyrus.diagram.composite.parsers.MessageFormatParser;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.uml2.uml.UMLPackage;
+
+/**
+ * @generated
+ */
+public class UMLParserProvider extends AbstractProvider implements IParserProvider {
+
+ /**
+ * @generated
+ */
+ private IParser activityName_5112Parser;
+
+ /**
+ * @generated
+ */
+ private IParser getActivityName_5112Parser() {
+ if(activityName_5112Parser == null) {
+ EAttribute[] features = new EAttribute[]{ UMLPackage.eINSTANCE.getNamedElement_Name() };
+ MessageFormatParser parser = new MessageFormatParser(features);
+ parser.setViewPattern("{0} "); //$NON-NLS-1$
+ parser.setEditorPattern("{0}"); //$NON-NLS-1$
+ parser.setEditPattern("{0}"); //$NON-NLS-1$
+ activityName_5112Parser = parser;
+ }
+ return activityName_5112Parser;
+ }
+
+ /**
+ * @generated
+ */
+ private IParser interactionName_5113Parser;
+
+ /**
+ * @generated
+ */
+ private IParser getInteractionName_5113Parser() {
+ if(interactionName_5113Parser == null) {
+ EAttribute[] features = new EAttribute[]{ UMLPackage.eINSTANCE.getNamedElement_Name() };
+ MessageFormatParser parser = new MessageFormatParser(features);
+ parser.setViewPattern("{0} "); //$NON-NLS-1$
+ parser.setEditorPattern("{0}"); //$NON-NLS-1$
+ parser.setEditPattern("{0}"); //$NON-NLS-1$
+ interactionName_5113Parser = parser;
+ }
+ return interactionName_5113Parser;
+ }
+
+ /**
+ * @generated
+ */
+ private IParser protocolStateMachineName_5114Parser;
+
+ /**
+ * @generated
+ */
+ private IParser getProtocolStateMachineName_5114Parser() {
+ if(protocolStateMachineName_5114Parser == null) {
+ EAttribute[] features = new EAttribute[]{ UMLPackage.eINSTANCE.getNamedElement_Name() };
+ MessageFormatParser parser = new MessageFormatParser(features);
+ parser.setViewPattern("{0} "); //$NON-NLS-1$
+ parser.setEditorPattern("{0}"); //$NON-NLS-1$
+ parser.setEditPattern("{0}"); //$NON-NLS-1$
+ protocolStateMachineName_5114Parser = parser;
+ }
+ return protocolStateMachineName_5114Parser;
+ }
+
+ /**
+ * @generated
+ */
+ private IParser stateMachineName_5115Parser;
+
+ /**
+ * @generated
+ */
+ private IParser getStateMachineName_5115Parser() {
+ if(stateMachineName_5115Parser == null) {
+ EAttribute[] features = new EAttribute[]{ UMLPackage.eINSTANCE.getNamedElement_Name() };
+ MessageFormatParser parser = new MessageFormatParser(features);
+ parser.setViewPattern("{0} "); //$NON-NLS-1$
+ parser.setEditorPattern("{0}"); //$NON-NLS-1$
+ parser.setEditPattern("{0}"); //$NON-NLS-1$
+ stateMachineName_5115Parser = parser;
+ }
+ return stateMachineName_5115Parser;
+ }
+
+ /**
+ * @generated
+ */
+ private IParser functionBehaviorName_5116Parser;
+
+ /**
+ * @generated
+ */
+ private IParser getFunctionBehaviorName_5116Parser() {
+ if(functionBehaviorName_5116Parser == null) {
+ EAttribute[] features = new EAttribute[]{ UMLPackage.eINSTANCE.getNamedElement_Name() };
+ MessageFormatParser parser = new MessageFormatParser(features);
+ parser.setViewPattern("{0} "); //$NON-NLS-1$
+ parser.setEditorPattern("{0}"); //$NON-NLS-1$
+ parser.setEditPattern("{0}"); //$NON-NLS-1$
+ functionBehaviorName_5116Parser = parser;
+ }
+ return functionBehaviorName_5116Parser;
+ }
+
+ /**
+ * @generated
+ */
+ private IParser opaqueBehaviorName_5117Parser;
+
+ /**
+ * @generated
+ */
+ private IParser getOpaqueBehaviorName_5117Parser() {
+ if(opaqueBehaviorName_5117Parser == null) {
+ EAttribute[] features = new EAttribute[]{ UMLPackage.eINSTANCE.getNamedElement_Name() };
+ MessageFormatParser parser = new MessageFormatParser(features);
+ parser.setViewPattern("{0} "); //$NON-NLS-1$
+ parser.setEditorPattern("{0}"); //$NON-NLS-1$
+ parser.setEditPattern("{0}"); //$NON-NLS-1$
+ opaqueBehaviorName_5117Parser = parser;
+ }
+ return opaqueBehaviorName_5117Parser;
+ }
+
+ /**
+ * @generated
+ */
+ private IParser componentName_5121Parser;
+
+ /**
+ * @generated
+ */
+ private IParser getComponentName_5121Parser() {
+ if(componentName_5121Parser == null) {
+ EAttribute[] features = new EAttribute[]{ UMLPackage.eINSTANCE.getNamedElement_Name() };
+ MessageFormatParser parser = new MessageFormatParser(features);
+ parser.setViewPattern("{0} "); //$NON-NLS-1$
+ parser.setEditorPattern("{0}"); //$NON-NLS-1$
+ parser.setEditPattern("{0}"); //$NON-NLS-1$
+ componentName_5121Parser = parser;
+ }
+ return componentName_5121Parser;
+ }
+
+ /**
+ * @generated
+ */
+ private IParser deviceName_5122Parser;
+
+ /**
+ * @generated
+ */
+ private IParser getDeviceName_5122Parser() {
+ if(deviceName_5122Parser == null) {
+ EAttribute[] features = new EAttribute[]{ UMLPackage.eINSTANCE.getNamedElement_Name() };
+ MessageFormatParser parser = new MessageFormatParser(features);
+ parser.setViewPattern("{0} "); //$NON-NLS-1$
+ parser.setEditorPattern("{0}"); //$NON-NLS-1$
+ parser.setEditPattern("{0}"); //$NON-NLS-1$
+ deviceName_5122Parser = parser;
+ }
+ return deviceName_5122Parser;
+ }
+
+ /**
+ * @generated
+ */
+ private IParser executionEnvironmentName_5123Parser;
+
+ /**
+ * @generated
+ */
+ private IParser getExecutionEnvironmentName_5123Parser() {
+ if(executionEnvironmentName_5123Parser == null) {
+ EAttribute[] features = new EAttribute[]{ UMLPackage.eINSTANCE.getNamedElement_Name() };
+ MessageFormatParser parser = new MessageFormatParser(features);
+ parser.setViewPattern("{0} "); //$NON-NLS-1$
+ parser.setEditorPattern("{0}"); //$NON-NLS-1$
+ parser.setEditPattern("{0}"); //$NON-NLS-1$
+ executionEnvironmentName_5123Parser = parser;
+ }
+ return executionEnvironmentName_5123Parser;
+ }
+
+ /**
+ * @generated
+ */
+ private IParser nodeName_5124Parser;
+
+ /**
+ * @generated
+ */
+ private IParser getNodeName_5124Parser() {
+ if(nodeName_5124Parser == null) {
+ EAttribute[] features = new EAttribute[]{ UMLPackage.eINSTANCE.getNamedElement_Name() };
+ MessageFormatParser parser = new MessageFormatParser(features);
+ parser.setViewPattern("{0} "); //$NON-NLS-1$
+ parser.setEditorPattern("{0}"); //$NON-NLS-1$
+ parser.setEditPattern("{0}"); //$NON-NLS-1$
+ nodeName_5124Parser = parser;
+ }
+ return nodeName_5124Parser;
+ }
+
+ /**
+ * @generated
+ */
+ private IParser className_5156Parser;
+
+ /**
+ * @generated
+ */
+ private IParser getClassName_5156Parser() {
+ if(className_5156Parser == null) {
+ EAttribute[] features = new EAttribute[]{ UMLPackage.eINSTANCE.getNamedElement_Name() };
+ MessageFormatParser parser = new MessageFormatParser(features);
+ parser.setViewPattern("{0} "); //$NON-NLS-1$
+ parser.setEditorPattern("{0}"); //$NON-NLS-1$
+ parser.setEditPattern("{0}"); //$NON-NLS-1$
+ className_5156Parser = parser;
+ }
+ return className_5156Parser;
+ }
+
+ /**
+ * @generated
+ */
+ private IParser collaborationName_5158Parser;
+
+ /**
+ * @generated
+ */
+ private IParser getCollaborationName_5158Parser() {
+ if(collaborationName_5158Parser == null) {
+ EAttribute[] features = new EAttribute[]{ UMLPackage.eINSTANCE.getNamedElement_Name() };
+ MessageFormatParser parser = new MessageFormatParser(features);
+ parser.setViewPattern("{0} "); //$NON-NLS-1$
+ parser.setEditorPattern("{0}"); //$NON-NLS-1$
+ parser.setEditPattern("{0}"); //$NON-NLS-1$
+ collaborationName_5158Parser = parser;
+ }
+ return collaborationName_5158Parser;
+ }
+
+ /**
+ * @generated
+ */
+ private IParser interfaceName_5159Parser;
+
+ /**
+ * @generated
+ */
+ private IParser getInterfaceName_5159Parser() {
+ if(interfaceName_5159Parser == null) {
+ EAttribute[] features = new EAttribute[]{ UMLPackage.eINSTANCE.getNamedElement_Name() };
+ MessageFormatParser parser = new MessageFormatParser(features);
+ parser.setViewPattern("{0} "); //$NON-NLS-1$
+ parser.setEditorPattern("{0}"); //$NON-NLS-1$
+ parser.setEditPattern("{0}"); //$NON-NLS-1$
+ interfaceName_5159Parser = parser;
+ }
+ return interfaceName_5159Parser;
+ }
+
+ /**
+ * @generated
+ */
+ private IParser primitiveTypeName_5118Parser;
+
+ /**
+ * @generated
+ */
+ private IParser getPrimitiveTypeName_5118Parser() {
+ if(primitiveTypeName_5118Parser == null) {
+ EAttribute[] features = new EAttribute[]{ UMLPackage.eINSTANCE.getNamedElement_Name() };
+ MessageFormatParser parser = new MessageFormatParser(features);
+ parser.setViewPattern("{0} "); //$NON-NLS-1$
+ parser.setEditorPattern("{0}"); //$NON-NLS-1$
+ parser.setEditPattern("{0}"); //$NON-NLS-1$
+ primitiveTypeName_5118Parser = parser;
+ }
+ return primitiveTypeName_5118Parser;
+ }
+
+ /**
+ * @generated
+ */
+ private IParser enumerationName_5119Parser;
+
+ /**
+ * @generated
+ */
+ private IParser getEnumerationName_5119Parser() {
+ if(enumerationName_5119Parser == null) {
+ EAttribute[] features = new EAttribute[]{ UMLPackage.eINSTANCE.getNamedElement_Name() };
+ MessageFormatParser parser = new MessageFormatParser(features);
+ parser.setViewPattern("{0} "); //$NON-NLS-1$
+ parser.setEditorPattern("{0}"); //$NON-NLS-1$
+ parser.setEditPattern("{0}"); //$NON-NLS-1$
+ enumerationName_5119Parser = parser;
+ }
+ return enumerationName_5119Parser;
+ }
+
+ /**
+ * @generated
+ */
+ private IParser dataTypeName_5120Parser;
+
+ /**
+ * @generated
+ */
+ private IParser getDataTypeName_5120Parser() {
+ if(dataTypeName_5120Parser == null) {
+ EAttribute[] features = new EAttribute[]{ UMLPackage.eINSTANCE.getNamedElement_Name() };
+ MessageFormatParser parser = new MessageFormatParser(features);
+ parser.setViewPattern("{0} "); //$NON-NLS-1$
+ parser.setEditorPattern("{0}"); //$NON-NLS-1$
+ parser.setEditPattern("{0}"); //$NON-NLS-1$
+ dataTypeName_5120Parser = parser;
+ }
+ return dataTypeName_5120Parser;
+ }
+
+ /**
+ * @generated
+ */
+ private IParser actorName_5160Parser;
+
+ /**
+ * @generated
+ */
+ private IParser getActorName_5160Parser() {
+ if(actorName_5160Parser == null) {
+ EAttribute[] features = new EAttribute[]{ UMLPackage.eINSTANCE.getNamedElement_Name() };
+ MessageFormatParser parser = new MessageFormatParser(features);
+ parser.setViewPattern("{0} "); //$NON-NLS-1$
+ parser.setEditorPattern("{0}"); //$NON-NLS-1$
+ parser.setEditPattern("{0}"); //$NON-NLS-1$
+ actorName_5160Parser = parser;
+ }
+ return actorName_5160Parser;
+ }
+
+ /**
+ * @generated
+ */
+ private IParser deploymentSpecificationName_5161Parser;
+
+ /**
+ * @generated
+ */
+ private IParser getDeploymentSpecificationName_5161Parser() {
+ if(deploymentSpecificationName_5161Parser == null) {
+ EAttribute[] features = new EAttribute[]{ UMLPackage.eINSTANCE.getNamedElement_Name() };
+ MessageFormatParser parser = new MessageFormatParser(features);
+ parser.setViewPattern("{0} "); //$NON-NLS-1$
+ parser.setEditorPattern("{0}"); //$NON-NLS-1$
+ parser.setEditPattern("{0}"); //$NON-NLS-1$
+ deploymentSpecificationName_5161Parser = parser;
+ }
+ return deploymentSpecificationName_5161Parser;
+ }
+
+ /**
+ * @generated
+ */
+ private IParser artifactName_5162Parser;
+
+ /**
+ * @generated
+ */
+ private IParser getArtifactName_5162Parser() {
+ if(artifactName_5162Parser == null) {
+ EAttribute[] features = new EAttribute[]{ UMLPackage.eINSTANCE.getNamedElement_Name() };
+ MessageFormatParser parser = new MessageFormatParser(features);
+ parser.setViewPattern("{0} "); //$NON-NLS-1$
+ parser.setEditorPattern("{0}"); //$NON-NLS-1$
+ parser.setEditPattern("{0}"); //$NON-NLS-1$
+ artifactName_5162Parser = parser;
+ }
+ return artifactName_5162Parser;
+ }
+
+ /**
+ * @generated
+ */
+ private IParser informationItemName_5163Parser;
+
+ /**
+ * @generated
+ */
+ private IParser getInformationItemName_5163Parser() {
+ if(informationItemName_5163Parser == null) {
+ EAttribute[] features = new EAttribute[]{ UMLPackage.eINSTANCE.getNamedElement_Name() };
+ MessageFormatParser parser = new MessageFormatParser(features);
+ parser.setViewPattern("{0} "); //$NON-NLS-1$
+ parser.setEditorPattern("{0}"); //$NON-NLS-1$
+ parser.setEditPattern("{0}"); //$NON-NLS-1$
+ informationItemName_5163Parser = parser;
+ }
+ return informationItemName_5163Parser;
+ }
+
+ /**
+ * @generated
+ */
+ private IParser signalName_5164Parser;
+
+ /**
+ * @generated
+ */
+ private IParser getSignalName_5164Parser() {
+ if(signalName_5164Parser == null) {
+ EAttribute[] features = new EAttribute[]{ UMLPackage.eINSTANCE.getNamedElement_Name() };
+ MessageFormatParser parser = new MessageFormatParser(features);
+ parser.setViewPattern("{0} "); //$NON-NLS-1$
+ parser.setEditorPattern("{0}"); //$NON-NLS-1$
+ parser.setEditPattern("{0}"); //$NON-NLS-1$
+ signalName_5164Parser = parser;
+ }
+ return signalName_5164Parser;
+ }
+
+ /**
+ * @generated
+ */
+ private IParser useCaseName_5165Parser;
+
+ /**
+ * @generated
+ */
+ private IParser getUseCaseName_5165Parser() {
+ if(useCaseName_5165Parser == null) {
+ EAttribute[] features = new EAttribute[]{ UMLPackage.eINSTANCE.getNamedElement_Name() };
+ MessageFormatParser parser = new MessageFormatParser(features);
+ parser.setViewPattern("{0} "); //$NON-NLS-1$
+ parser.setEditorPattern("{0}"); //$NON-NLS-1$
+ parser.setEditPattern("{0}"); //$NON-NLS-1$
+ useCaseName_5165Parser = parser;
+ }
+ return useCaseName_5165Parser;
+ }
+
+ /**
+ * @generated
+ */
+ private IParser signalEventName_5166Parser;
+
+ /**
+ * @generated
+ */
+ private IParser getSignalEventName_5166Parser() {
+ if(signalEventName_5166Parser == null) {
+ EAttribute[] features = new EAttribute[]{ UMLPackage.eINSTANCE.getNamedElement_Name() };
+ MessageFormatParser parser = new MessageFormatParser(features);
+ parser.setViewPattern("{0} "); //$NON-NLS-1$
+ parser.setEditorPattern("{0}"); //$NON-NLS-1$
+ parser.setEditPattern("{0}"); //$NON-NLS-1$
+ signalEventName_5166Parser = parser;
+ }
+ return signalEventName_5166Parser;
+ }
+
+ /**
+ * @generated
+ */
+ private IParser callEventName_5167Parser;
+
+ /**
+ * @generated
+ */
+ private IParser getCallEventName_5167Parser() {
+ if(callEventName_5167Parser == null) {
+ EAttribute[] features = new EAttribute[]{ UMLPackage.eINSTANCE.getNamedElement_Name() };
+ MessageFormatParser parser = new MessageFormatParser(features);
+ parser.setViewPattern("{0} "); //$NON-NLS-1$
+ parser.setEditorPattern("{0}"); //$NON-NLS-1$
+ parser.setEditPattern("{0}"); //$NON-NLS-1$
+ callEventName_5167Parser = parser;
+ }
+ return callEventName_5167Parser;
+ }
+
+ /**
+ * @generated
+ */
+ private IParser anyReceiveEventName_5168Parser;
+
+ /**
+ * @generated
+ */
+ private IParser getAnyReceiveEventName_5168Parser() {
+ if(anyReceiveEventName_5168Parser == null) {
+ EAttribute[] features = new EAttribute[]{ UMLPackage.eINSTANCE.getNamedElement_Name() };
+ MessageFormatParser parser = new MessageFormatParser(features);
+ parser.setViewPattern("{0} "); //$NON-NLS-1$
+ parser.setEditorPattern("{0}"); //$NON-NLS-1$
+ parser.setEditPattern("{0}"); //$NON-NLS-1$
+ anyReceiveEventName_5168Parser = parser;
+ }
+ return anyReceiveEventName_5168Parser;
+ }
+
+ /**
+ * @generated
+ */
+ private IParser sendSignalEventName_5169Parser;
+
+ /**
+ * @generated
+ */
+ private IParser getSendSignalEventName_5169Parser() {
+ if(sendSignalEventName_5169Parser == null) {
+ EAttribute[] features = new EAttribute[]{ UMLPackage.eINSTANCE.getNamedElement_Name() };
+ MessageFormatParser parser = new MessageFormatParser(features);
+ parser.setViewPattern("{0} "); //$NON-NLS-1$
+ parser.setEditorPattern("{0}"); //$NON-NLS-1$
+ parser.setEditPattern("{0}"); //$NON-NLS-1$
+ sendSignalEventName_5169Parser = parser;
+ }
+ return sendSignalEventName_5169Parser;
+ }
+
+ /**
+ * @generated
+ */
+ private IParser sendOperationEventName_5170Parser;
+
+ /**
+ * @generated
+ */
+ private IParser getSendOperationEventName_5170Parser() {
+ if(sendOperationEventName_5170Parser == null) {
+ EAttribute[] features = new EAttribute[]{ UMLPackage.eINSTANCE.getNamedElement_Name() };
+ MessageFormatParser parser = new MessageFormatParser(features);
+ parser.setViewPattern("{0} "); //$NON-NLS-1$
+ parser.setEditorPattern("{0}"); //$NON-NLS-1$
+ parser.setEditPattern("{0}"); //$NON-NLS-1$
+ sendOperationEventName_5170Parser = parser;
+ }
+ return sendOperationEventName_5170Parser;
+ }
+
+ /**
+ * @generated
+ */
+ private IParser changeEventName_5171Parser;
+
+ /**
+ * @generated
+ */
+ private IParser getChangeEventName_5171Parser() {
+ if(changeEventName_5171Parser == null) {
+ EAttribute[] features = new EAttribute[]{ UMLPackage.eINSTANCE.getNamedElement_Name() };
+ MessageFormatParser parser = new MessageFormatParser(features);
+ parser.setViewPattern("{0} "); //$NON-NLS-1$
+ parser.setEditorPattern("{0}"); //$NON-NLS-1$
+ parser.setEditPattern("{0}"); //$NON-NLS-1$
+ changeEventName_5171Parser = parser;
+ }
+ return changeEventName_5171Parser;
+ }
+
+ /**
+ * @generated
+ */
+ private IParser timeEventName_5172Parser;
+
+ /**
+ * @generated
+ */
+ private IParser getTimeEventName_5172Parser() {
+ if(timeEventName_5172Parser == null) {
+ EAttribute[] features = new EAttribute[]{ UMLPackage.eINSTANCE.getNamedElement_Name() };
+ MessageFormatParser parser = new MessageFormatParser(features);
+ parser.setViewPattern("{0} "); //$NON-NLS-1$
+ parser.setEditorPattern("{0}"); //$NON-NLS-1$
+ parser.setEditPattern("{0}"); //$NON-NLS-1$
+ timeEventName_5172Parser = parser;
+ }
+ return timeEventName_5172Parser;
+ }
+
+ /**
+ * @generated
+ */
+ private IParser creationEventName_5173Parser;
+
+ /**
+ * @generated
+ */
+ private IParser getCreationEventName_5173Parser() {
+ if(creationEventName_5173Parser == null) {
+ EAttribute[] features = new EAttribute[]{ UMLPackage.eINSTANCE.getNamedElement_Name() };
+ MessageFormatParser parser = new MessageFormatParser(features);
+ parser.setViewPattern("{0} "); //$NON-NLS-1$
+ parser.setEditorPattern("{0}"); //$NON-NLS-1$
+ parser.setEditPattern("{0}"); //$NON-NLS-1$
+ creationEventName_5173Parser = parser;
+ }
+ return creationEventName_5173Parser;
+ }
+
+ /**
+ * @generated
+ */
+ private IParser destructionEventName_5174Parser;
+
+ /**
+ * @generated
+ */
+ private IParser getDestructionEventName_5174Parser() {
+ if(destructionEventName_5174Parser == null) {
+ EAttribute[] features = new EAttribute[]{ UMLPackage.eINSTANCE.getNamedElement_Name() };
+ MessageFormatParser parser = new MessageFormatParser(features);
+ parser.setViewPattern("{0} "); //$NON-NLS-1$
+ parser.setEditorPattern("{0}"); //$NON-NLS-1$
+ parser.setEditPattern("{0}"); //$NON-NLS-1$
+ destructionEventName_5174Parser = parser;
+ }
+ return destructionEventName_5174Parser;
+ }
+
+ /**
+ * @generated
+ */
+ private IParser executionEventName_5175Parser;
+
+ /**
+ * @generated
+ */
+ private IParser getExecutionEventName_5175Parser() {
+ if(executionEventName_5175Parser == null) {
+ EAttribute[] features = new EAttribute[]{ UMLPackage.eINSTANCE.getNamedElement_Name() };
+ MessageFormatParser parser = new MessageFormatParser(features);
+ parser.setViewPattern("{0} "); //$NON-NLS-1$
+ parser.setEditorPattern("{0}"); //$NON-NLS-1$
+ parser.setEditPattern("{0}"); //$NON-NLS-1$
+ executionEventName_5175Parser = parser;
+ }
+ return executionEventName_5175Parser;
+ }
+
+ /**
+ * @generated
+ */
+ private IParser durationObservationName_5151Parser;
+
+ /**
+ * @generated
+ */
+ private IParser getDurationObservationName_5151Parser() {
+ if(durationObservationName_5151Parser == null) {
+ EAttribute[] features = new EAttribute[]{ UMLPackage.eINSTANCE.getNamedElement_Name() };
+ MessageFormatParser parser = new MessageFormatParser(features);
+ durationObservationName_5151Parser = parser;
+ }
+ return durationObservationName_5151Parser;
+ }
+
+ /**
+ * @generated
+ */
+ private AppliedStereotypeParser durationObservationName_5152Parser;
+
+ /**
+ * @generated
+ */
+ private IParser getDurationObservationName_5152Parser() {
+ if(durationObservationName_5152Parser == null) {
+ durationObservationName_5152Parser = new AppliedStereotypeParser();
+ }
+ return durationObservationName_5152Parser;
+ }
+
+ /**
+ * @generated
+ */
+ private IParser timeObservationName_5142Parser;
+
+ /**
+ * @generated
+ */
+ private IParser getTimeObservationName_5142Parser() {
+ if(timeObservationName_5142Parser == null) {
+ EAttribute[] features = new EAttribute[]{ UMLPackage.eINSTANCE.getNamedElement_Name() };
+ MessageFormatParser parser = new MessageFormatParser(features);
+ timeObservationName_5142Parser = parser;
+ }
+ return timeObservationName_5142Parser;
+ }
+
+ /**
+ * @generated
+ */
+ private AppliedStereotypeParser timeObservationName_5143Parser;
+
+ /**
+ * @generated
+ */
+ private IParser getTimeObservationName_5143Parser() {
+ if(timeObservationName_5143Parser == null) {
+ timeObservationName_5143Parser = new AppliedStereotypeParser();
+ }
+ return timeObservationName_5143Parser;
+ }
+
+ /**
+ * @generated
+ */
+ private IParser literalBooleanName_5178Parser;
+
+ /**
+ * @generated
+ */
+ private IParser getLiteralBooleanName_5178Parser() {
+ if(literalBooleanName_5178Parser == null) {
+ EAttribute[] features = new EAttribute[]{ UMLPackage.eINSTANCE.getNamedElement_Name() };
+ MessageFormatParser parser = new MessageFormatParser(features);
+ parser.setViewPattern("{0} "); //$NON-NLS-1$
+ parser.setEditorPattern("{0}"); //$NON-NLS-1$
+ parser.setEditPattern("{0}"); //$NON-NLS-1$
+ literalBooleanName_5178Parser = parser;
+ }
+ return literalBooleanName_5178Parser;
+ }
+
+ /**
+ * @generated
+ */
+ private IParser literalIntegerName_5179Parser;
+
+ /**
+ * @generated
+ */
+ private IParser getLiteralIntegerName_5179Parser() {
+ if(literalIntegerName_5179Parser == null) {
+ EAttribute[] features = new EAttribute[]{ UMLPackage.eINSTANCE.getNamedElement_Name() };
+ MessageFormatParser parser = new MessageFormatParser(features);
+ parser.setViewPattern("{0} "); //$NON-NLS-1$
+ parser.setEditorPattern("{0}"); //$NON-NLS-1$
+ parser.setEditPattern("{0}"); //$NON-NLS-1$
+ literalIntegerName_5179Parser = parser;
+ }
+ return literalIntegerName_5179Parser;
+ }
+
+ /**
+ * @generated
+ */
+ private IParser literalNullName_5180Parser;
+
+ /**
+ * @generated
+ */
+ private IParser getLiteralNullName_5180Parser() {
+ if(literalNullName_5180Parser == null) {
+ EAttribute[] features = new EAttribute[]{ UMLPackage.eINSTANCE.getNamedElement_Name() };
+ MessageFormatParser parser = new MessageFormatParser(features);
+ parser.setViewPattern("{0} "); //$NON-NLS-1$
+ parser.setEditorPattern("{0}"); //$NON-NLS-1$
+ parser.setEditPattern("{0}"); //$NON-NLS-1$
+ literalNullName_5180Parser = parser;
+ }
+ return literalNullName_5180Parser;
+ }
+
+ /**
+ * @generated
+ */
+ private IParser literalStringName_5181Parser;
+
+ /**
+ * @generated
+ */
+ private IParser getLiteralStringName_5181Parser() {
+ if(literalStringName_5181Parser == null) {
+ EAttribute[] features = new EAttribute[]{ UMLPackage.eINSTANCE.getNamedElement_Name() };
+ MessageFormatParser parser = new MessageFormatParser(features);
+ parser.setViewPattern("{0} "); //$NON-NLS-1$
+ parser.setEditorPattern("{0}"); //$NON-NLS-1$
+ parser.setEditPattern("{0}"); //$NON-NLS-1$
+ literalStringName_5181Parser = parser;
+ }
+ return literalStringName_5181Parser;
+ }
+
+ /**
+ * @generated
+ */
+ private IParser literalUnlimitedNaturalName_5182Parser;
+
+ /**
+ * @generated
+ */
+ private IParser getLiteralUnlimitedNaturalName_5182Parser() {
+ if(literalUnlimitedNaturalName_5182Parser == null) {
+ EAttribute[] features = new EAttribute[]{ UMLPackage.eINSTANCE.getNamedElement_Name() };
+ MessageFormatParser parser = new MessageFormatParser(features);
+ parser.setViewPattern("{0} "); //$NON-NLS-1$
+ parser.setEditorPattern("{0}"); //$NON-NLS-1$
+ parser.setEditPattern("{0}"); //$NON-NLS-1$
+ literalUnlimitedNaturalName_5182Parser = parser;
+ }
+ return literalUnlimitedNaturalName_5182Parser;
+ }
+
+ /**
+ * @generated
+ */
+ private IParser stringExpressionName_5183Parser;
+
+ /**
+ * @generated
+ */
+ private IParser getStringExpressionName_5183Parser() {
+ if(stringExpressionName_5183Parser == null) {
+ EAttribute[] features = new EAttribute[]{ UMLPackage.eINSTANCE.getNamedElement_Name() };
+ MessageFormatParser parser = new MessageFormatParser(features);
+ parser.setViewPattern("{0} "); //$NON-NLS-1$
+ parser.setEditorPattern("{0}"); //$NON-NLS-1$
+ parser.setEditPattern("{0}"); //$NON-NLS-1$
+ stringExpressionName_5183Parser = parser;
+ }
+ return stringExpressionName_5183Parser;
+ }
+
+ /**
+ * @generated
+ */
+ private IParser opaqueExpressionName_5184Parser;
+
+ /**
+ * @generated
+ */
+ private IParser getOpaqueExpressionName_5184Parser() {
+ if(opaqueExpressionName_5184Parser == null) {
+ EAttribute[] features = new EAttribute[]{ UMLPackage.eINSTANCE.getNamedElement_Name() };
+ MessageFormatParser parser = new MessageFormatParser(features);
+ parser.setViewPattern("{0} "); //$NON-NLS-1$
+ parser.setEditorPattern("{0}"); //$NON-NLS-1$
+ parser.setEditPattern("{0}"); //$NON-NLS-1$
+ opaqueExpressionName_5184Parser = parser;
+ }
+ return opaqueExpressionName_5184Parser;
+ }
+
+ /**
+ * @generated
+ */
+ private IParser timeExpressionName_5185Parser;
+
+ /**
+ * @generated
+ */
+ private IParser getTimeExpressionName_5185Parser() {
+ if(timeExpressionName_5185Parser == null) {
+ EAttribute[] features = new EAttribute[]{ UMLPackage.eINSTANCE.getNamedElement_Name() };
+ MessageFormatParser parser = new MessageFormatParser(features);
+ parser.setViewPattern("{0} "); //$NON-NLS-1$
+ parser.setEditorPattern("{0}"); //$NON-NLS-1$
+ parser.setEditPattern("{0}"); //$NON-NLS-1$
+ timeExpressionName_5185Parser = parser;
+ }
+ return timeExpressionName_5185Parser;
+ }
+
+ /**
+ * @generated
+ */
+ private IParser expressionName_5186Parser;
+
+ /**
+ * @generated
+ */
+ private IParser getExpressionName_5186Parser() {
+ if(expressionName_5186Parser == null) {
+ EAttribute[] features = new EAttribute[]{ UMLPackage.eINSTANCE.getNamedElement_Name() };
+ MessageFormatParser parser = new MessageFormatParser(features);
+ parser.setViewPattern("{0} "); //$NON-NLS-1$
+ parser.setEditorPattern("{0}"); //$NON-NLS-1$
+ parser.setEditPattern("{0}"); //$NON-NLS-1$
+ expressionName_5186Parser = parser;
+ }
+ return expressionName_5186Parser;
+ }
+
+ /**
+ * @generated
+ */
+ private IParser durationName_5187Parser;
+
+ /**
+ * @generated
+ */
+ private IParser getDurationName_5187Parser() {
+ if(durationName_5187Parser == null) {
+ EAttribute[] features = new EAttribute[]{ UMLPackage.eINSTANCE.getNamedElement_Name() };
+ MessageFormatParser parser = new MessageFormatParser(features);
+ parser.setViewPattern("{0} "); //$NON-NLS-1$
+ parser.setEditorPattern("{0}"); //$NON-NLS-1$
+ parser.setEditPattern("{0}"); //$NON-NLS-1$
+ durationName_5187Parser = parser;
+ }
+ return durationName_5187Parser;
+ }
+
+ /**
+ * @generated
+ */
+ private IParser timeIntervalName_5188Parser;
+
+ /**
+ * @generated
+ */
+ private IParser getTimeIntervalName_5188Parser() {
+ if(timeIntervalName_5188Parser == null) {
+ EAttribute[] features = new EAttribute[]{ UMLPackage.eINSTANCE.getNamedElement_Name() };
+ MessageFormatParser parser = new MessageFormatParser(features);
+ parser.setViewPattern("{0} "); //$NON-NLS-1$
+ parser.setEditorPattern("{0}"); //$NON-NLS-1$
+ parser.setEditPattern("{0}"); //$NON-NLS-1$
+ timeIntervalName_5188Parser = parser;
+ }
+ return timeIntervalName_5188Parser;
+ }
+
+ /**
+ * @generated
+ */
+ private IParser durationIntervalName_5189Parser;
+
+ /**
+ * @generated
+ */
+ private IParser getDurationIntervalName_5189Parser() {
+ if(durationIntervalName_5189Parser == null) {
+ EAttribute[] features = new EAttribute[]{ UMLPackage.eINSTANCE.getNamedElement_Name() };
+ MessageFormatParser parser = new MessageFormatParser(features);
+ parser.setViewPattern("{0} "); //$NON-NLS-1$
+ parser.setEditorPattern("{0}"); //$NON-NLS-1$
+ parser.setEditPattern("{0}"); //$NON-NLS-1$
+ durationIntervalName_5189Parser = parser;
+ }
+ return durationIntervalName_5189Parser;
+ }
+
+ /**
+ * @generated
+ */
+ private IParser intervalName_5190Parser;
+
+ /**
+ * @generated
+ */
+ private IParser getIntervalName_5190Parser() {
+ if(intervalName_5190Parser == null) {
+ EAttribute[] features = new EAttribute[]{ UMLPackage.eINSTANCE.getNamedElement_Name() };
+ MessageFormatParser parser = new MessageFormatParser(features);
+ parser.setViewPattern("{0} "); //$NON-NLS-1$
+ parser.setEditorPattern("{0}"); //$NON-NLS-1$
+ parser.setEditPattern("{0}"); //$NON-NLS-1$
+ intervalName_5190Parser = parser;
+ }
+ return intervalName_5190Parser;
+ }
+
+ /**
+ * @generated
+ */
+ private IParser instanceValueName_5191Parser;
+
+ /**
+ * @generated
+ */
+ private IParser getInstanceValueName_5191Parser() {
+ if(instanceValueName_5191Parser == null) {
+ EAttribute[] features = new EAttribute[]{ UMLPackage.eINSTANCE.getNamedElement_Name() };
+ MessageFormatParser parser = new MessageFormatParser(features);
+ parser.setViewPattern("{0} "); //$NON-NLS-1$
+ parser.setEditorPattern("{0}"); //$NON-NLS-1$
+ parser.setEditPattern("{0}"); //$NON-NLS-1$
+ instanceValueName_5191Parser = parser;
+ }
+ return instanceValueName_5191Parser;
+ }
+
+ /**
+ * @generated
+ */
+ private CommentParser commentBody_5192Parser;
+
+ /**
+ * @generated
+ */
+ private IParser getCommentBody_5192Parser() {
+ if(commentBody_5192Parser == null) {
+ commentBody_5192Parser = new CommentParser();
+ }
+ return commentBody_5192Parser;
+ }
+
+ /**
+ * @generated
+ */
+ private IParser durationConstraintName_5193Parser;
+
+ /**
+ * @generated
+ */
+ private IParser getDurationConstraintName_5193Parser() {
+ if(durationConstraintName_5193Parser == null) {
+ EAttribute[] features = new EAttribute[]{ UMLPackage.eINSTANCE.getNamedElement_Name() };
+ MessageFormatParser parser = new MessageFormatParser(features);
+ durationConstraintName_5193Parser = parser;
+ }
+ return durationConstraintName_5193Parser;
+ }
+
+ /**
+ * @generated
+ */
+ private ConstraintParser durationConstraintSpecification_6035Parser;
+
+ /**
+ * @generated
+ */
+ private IParser getDurationConstraintSpecification_6035Parser() {
+ if(durationConstraintSpecification_6035Parser == null) {
+ durationConstraintSpecification_6035Parser = new ConstraintParser();
+ }
+ return durationConstraintSpecification_6035Parser;
+ }
+
+ /**
+ * @generated
+ */
+ private IParser timeConstraintName_5194Parser;
+
+ /**
+ * @generated
+ */
+ private IParser getTimeConstraintName_5194Parser() {
+ if(timeConstraintName_5194Parser == null) {
+ EAttribute[] features = new EAttribute[]{ UMLPackage.eINSTANCE.getNamedElement_Name() };
+ MessageFormatParser parser = new MessageFormatParser(features);
+ timeConstraintName_5194Parser = parser;
+ }
+ return timeConstraintName_5194Parser;
+ }
+
+ /**
+ * @generated
+ */
+ private ConstraintParser timeConstraintSpecification_6036Parser;
+
+ /**
+ * @generated
+ */
+ private IParser getTimeConstraintSpecification_6036Parser() {
+ if(timeConstraintSpecification_6036Parser == null) {
+ timeConstraintSpecification_6036Parser = new ConstraintParser();
+ }
+ return timeConstraintSpecification_6036Parser;
+ }
+
+ /**
+ * @generated
+ */
+ private IParser intervalConstraintName_5195Parser;
+
+ /**
+ * @generated
+ */
+ private IParser getIntervalConstraintName_5195Parser() {
+ if(intervalConstraintName_5195Parser == null) {
+ EAttribute[] features = new EAttribute[]{ UMLPackage.eINSTANCE.getNamedElement_Name() };
+ MessageFormatParser parser = new MessageFormatParser(features);
+ intervalConstraintName_5195Parser = parser;
+ }
+ return intervalConstraintName_5195Parser;
+ }
+
+ /**
+ * @generated
+ */
+ private ConstraintParser intervalConstraintSpecification_6037Parser;
+
+ /**
+ * @generated
+ */
+ private IParser getIntervalConstraintSpecification_6037Parser() {
+ if(intervalConstraintSpecification_6037Parser == null) {
+ intervalConstraintSpecification_6037Parser = new ConstraintParser();
+ }
+ return intervalConstraintSpecification_6037Parser;
+ }
+
+ /**
+ * @generated
+ */
+ private IParser interactionConstraintName_5196Parser;
+
+ /**
+ * @generated
+ */
+ private IParser getInteractionConstraintName_5196Parser() {
+ if(interactionConstraintName_5196Parser == null) {
+ EAttribute[] features = new EAttribute[]{ UMLPackage.eINSTANCE.getNamedElement_Name() };
+ MessageFormatParser parser = new MessageFormatParser(features);
+ interactionConstraintName_5196Parser = parser;
+ }
+ return interactionConstraintName_5196Parser;
+ }
+
+ /**
+ * @generated
+ */
+ private ConstraintParser interactionConstraintSpecification_6038Parser;
+
+ /**
+ * @generated
+ */
+ private IParser getInteractionConstraintSpecification_6038Parser() {
+ if(interactionConstraintSpecification_6038Parser == null) {
+ interactionConstraintSpecification_6038Parser = new ConstraintParser();
+ }
+ return interactionConstraintSpecification_6038Parser;
+ }
+
+ /**
+ * @generated
+ */
+ private IParser constraintName_5197Parser;
+
+ /**
+ * @generated
+ */
+ private IParser getConstraintName_5197Parser() {
+ if(constraintName_5197Parser == null) {
+ EAttribute[] features = new EAttribute[]{ UMLPackage.eINSTANCE.getNamedElement_Name() };
+ MessageFormatParser parser = new MessageFormatParser(features);
+ constraintName_5197Parser = parser;
+ }
+ return constraintName_5197Parser;
+ }
+
+ /**
+ * @generated
+ */
+ private ConstraintParser constraintSpecification_6039Parser;
+
+ /**
+ * @generated
+ */
+ private IParser getConstraintSpecification_6039Parser() {
+ if(constraintSpecification_6039Parser == null) {
+ constraintSpecification_6039Parser = new ConstraintParser();
+ }
+ return constraintSpecification_6039Parser;
+ }
+
+ /**
+ * @generated
+ */
+ private IParser portName_5125Parser;
+
+ /**
+ * @generated
+ */
+ private IParser getPortName_5125Parser() {
+ if(portName_5125Parser == null) {
+ EAttribute[] features = new EAttribute[]{ UMLPackage.eINSTANCE.getNamedElement_Name() };
+ MessageFormatParser parser = new MessageFormatParser(features);
+ portName_5125Parser = parser;
+ }
+ return portName_5125Parser;
+ }
+
+ /**
+ * @generated
+ */
+ private AppliedStereotypeParser portName_6029Parser;
+
+ /**
+ * @generated
+ */
+ private IParser getPortName_6029Parser() {
+ if(portName_6029Parser == null) {
+ portName_6029Parser = new AppliedStereotypeParser();
+ }
+ return portName_6029Parser;
+ }
+
+ /**
+ * @generated
+ */
+ private IParser parameterName_6033Parser;
+
+ /**
+ * @generated
+ */
+ private IParser getParameterName_6033Parser() {
+ if(parameterName_6033Parser == null) {
+ EAttribute[] features = new EAttribute[]{ UMLPackage.eINSTANCE.getNamedElement_Name() };
+ MessageFormatParser parser = new MessageFormatParser(features);
+ parameterName_6033Parser = parser;
+ }
+ return parameterName_6033Parser;
+ }
+
+ /**
+ * @generated
+ */
+ private AppliedStereotypeParser parameterName_6034Parser;
+
+ /**
+ * @generated
+ */
+ private IParser getParameterName_6034Parser() {
+ if(parameterName_6034Parser == null) {
+ parameterName_6034Parser = new AppliedStereotypeParser();
+ }
+ return parameterName_6034Parser;
+ }
+
+ /**
+ * @generated
+ */
+ private IParser propertyName_5126Parser;
+
+ /**
+ * @generated
+ */
+ private IParser getPropertyName_5126Parser() {
+ if(propertyName_5126Parser == null) {
+ EAttribute[] features = new EAttribute[]{ UMLPackage.eINSTANCE.getNamedElement_Name() };
+ MessageFormatParser parser = new MessageFormatParser(features);
+ propertyName_5126Parser = parser;
+ }
+ return propertyName_5126Parser;
+ }
+
+ /**
+ * @generated
+ */
+ private IParser connectableElementName_5198Parser;
+
+ /**
+ * @generated
+ */
+ private IParser getConnectableElementName_5198Parser() {
+ if(connectableElementName_5198Parser == null) {
+ EAttribute[] features = new EAttribute[]{ UMLPackage.eINSTANCE.getNamedElement_Name() };
+ MessageFormatParser parser = new MessageFormatParser(features);
+ parser.setViewPattern("{0}"); //$NON-NLS-1$
+ parser.setEditorPattern("{0}"); //$NON-NLS-1$
+ parser.setEditPattern("{0}"); //$NON-NLS-1$
+ connectableElementName_5198Parser = parser;
+ }
+ return connectableElementName_5198Parser;
+ }
+
+ /**
+ * @generated
+ */
+ private IParser collaborationUseName_5127Parser;
+
+ /**
+ * @generated
+ */
+ private IParser getCollaborationUseName_5127Parser() {
+ if(collaborationUseName_5127Parser == null) {
+ EAttribute[] features = new EAttribute[]{ UMLPackage.eINSTANCE.getNamedElement_Name() };
+ MessageFormatParser parser = new MessageFormatParser(features);
+ collaborationUseName_5127Parser = parser;
+ }
+ return collaborationUseName_5127Parser;
+ }
+
+ /**
+ * @generated
+ */
+ private IParser activityName_5128Parser;
+
+ /**
+ * @generated
+ */
+ private IParser getActivityName_5128Parser() {
+ if(activityName_5128Parser == null) {
+ EAttribute[] features = new EAttribute[]{ UMLPackage.eINSTANCE.getNamedElement_Name() };
+ MessageFormatParser parser = new MessageFormatParser(features);
+ parser.setViewPattern("{0} "); //$NON-NLS-1$
+ parser.setEditorPattern("{0}"); //$NON-NLS-1$
+ parser.setEditPattern("{0}"); //$NON-NLS-1$
+ activityName_5128Parser = parser;
+ }
+ return activityName_5128Parser;
+ }
+
+ /**
+ * @generated
+ */
+ private IParser interactionName_5129Parser;
+
+ /**
+ * @generated
+ */
+ private IParser getInteractionName_5129Parser() {
+ if(interactionName_5129Parser == null) {
+ EAttribute[] features = new EAttribute[]{ UMLPackage.eINSTANCE.getNamedElement_Name() };
+ MessageFormatParser parser = new MessageFormatParser(features);
+ parser.setViewPattern("{0} "); //$NON-NLS-1$
+ parser.setEditorPattern("{0}"); //$NON-NLS-1$
+ parser.setEditPattern("{0}"); //$NON-NLS-1$
+ interactionName_5129Parser = parser;
+ }
+ return interactionName_5129Parser;
+ }
+
+ /**
+ * @generated
+ */
+ private IParser protocolStateMachineName_5130Parser;
+
+ /**
+ * @generated
+ */
+ private IParser getProtocolStateMachineName_5130Parser() {
+ if(protocolStateMachineName_5130Parser == null) {
+ EAttribute[] features = new EAttribute[]{ UMLPackage.eINSTANCE.getNamedElement_Name() };
+ MessageFormatParser parser = new MessageFormatParser(features);
+ parser.setViewPattern("{0} "); //$NON-NLS-1$
+ parser.setEditorPattern("{0}"); //$NON-NLS-1$
+ parser.setEditPattern("{0}"); //$NON-NLS-1$
+ protocolStateMachineName_5130Parser = parser;
+ }
+ return protocolStateMachineName_5130Parser;
+ }
+
+ /**
+ * @generated
+ */
+ private IParser stateMachineName_5131Parser;
+
+ /**
+ * @generated
+ */
+ private IParser getStateMachineName_5131Parser() {
+ if(stateMachineName_5131Parser == null) {
+ EAttribute[] features = new EAttribute[]{ UMLPackage.eINSTANCE.getNamedElement_Name() };
+ MessageFormatParser parser = new MessageFormatParser(features);
+ parser.setViewPattern("{0} "); //$NON-NLS-1$
+ parser.setEditorPattern("{0}"); //$NON-NLS-1$
+ parser.setEditPattern("{0}"); //$NON-NLS-1$
+ stateMachineName_5131Parser = parser;
+ }
+ return stateMachineName_5131Parser;
+ }
+
+ /**
+ * @generated
+ */
+ private IParser functionBehaviorName_5132Parser;
+
+ /**
+ * @generated
+ */
+ private IParser getFunctionBehaviorName_5132Parser() {
+ if(functionBehaviorName_5132Parser == null) {
+ EAttribute[] features = new EAttribute[]{ UMLPackage.eINSTANCE.getNamedElement_Name() };
+ MessageFormatParser parser = new MessageFormatParser(features);
+ parser.setViewPattern("{0} "); //$NON-NLS-1$
+ parser.setEditorPattern("{0}"); //$NON-NLS-1$
+ parser.setEditPattern("{0}"); //$NON-NLS-1$
+ functionBehaviorName_5132Parser = parser;
+ }
+ return functionBehaviorName_5132Parser;
+ }
+
+ /**
+ * @generated
+ */
+ private IParser opaqueBehaviorName_5133Parser;
+
+ /**
+ * @generated
+ */
+ private IParser getOpaqueBehaviorName_5133Parser() {
+ if(opaqueBehaviorName_5133Parser == null) {
+ EAttribute[] features = new EAttribute[]{ UMLPackage.eINSTANCE.getNamedElement_Name() };
+ MessageFormatParser parser = new MessageFormatParser(features);
+ parser.setViewPattern("{0} "); //$NON-NLS-1$
+ parser.setEditorPattern("{0}"); //$NON-NLS-1$
+ parser.setEditPattern("{0}"); //$NON-NLS-1$
+ opaqueBehaviorName_5133Parser = parser;
+ }
+ return opaqueBehaviorName_5133Parser;
+ }
+
+ /**
+ * @generated
+ */
+ private IParser componentName_5137Parser;
+
+ /**
+ * @generated
+ */
+ private IParser getComponentName_5137Parser() {
+ if(componentName_5137Parser == null) {
+ EAttribute[] features = new EAttribute[]{ UMLPackage.eINSTANCE.getNamedElement_Name() };
+ MessageFormatParser parser = new MessageFormatParser(features);
+ parser.setViewPattern("{0} "); //$NON-NLS-1$
+ parser.setEditorPattern("{0}"); //$NON-NLS-1$
+ parser.setEditPattern("{0}"); //$NON-NLS-1$
+ componentName_5137Parser = parser;
+ }
+ return componentName_5137Parser;
+ }
+
+ /**
+ * @generated
+ */
+ private IParser deviceName_5138Parser;
+
+ /**
+ * @generated
+ */
+ private IParser getDeviceName_5138Parser() {
+ if(deviceName_5138Parser == null) {
+ EAttribute[] features = new EAttribute[]{ UMLPackage.eINSTANCE.getNamedElement_Name() };
+ MessageFormatParser parser = new MessageFormatParser(features);
+ parser.setViewPattern("{0} "); //$NON-NLS-1$
+ parser.setEditorPattern("{0}"); //$NON-NLS-1$
+ parser.setEditPattern("{0}"); //$NON-NLS-1$
+ deviceName_5138Parser = parser;
+ }
+ return deviceName_5138Parser;
+ }
+
+ /**
+ * @generated
+ */
+ private IParser executionEnvironmentName_5139Parser;
+
+ /**
+ * @generated
+ */
+ private IParser getExecutionEnvironmentName_5139Parser() {
+ if(executionEnvironmentName_5139Parser == null) {
+ EAttribute[] features = new EAttribute[]{ UMLPackage.eINSTANCE.getNamedElement_Name() };
+ MessageFormatParser parser = new MessageFormatParser(features);
+ parser.setViewPattern("{0} "); //$NON-NLS-1$
+ parser.setEditorPattern("{0}"); //$NON-NLS-1$
+ parser.setEditPattern("{0}"); //$NON-NLS-1$
+ executionEnvironmentName_5139Parser = parser;
+ }
+ return executionEnvironmentName_5139Parser;
+ }
+
+ /**
+ * @generated
+ */
+ private IParser nodeName_5140Parser;
+
+ /**
+ * @generated
+ */
+ private IParser getNodeName_5140Parser() {
+ if(nodeName_5140Parser == null) {
+ EAttribute[] features = new EAttribute[]{ UMLPackage.eINSTANCE.getNamedElement_Name() };
+ MessageFormatParser parser = new MessageFormatParser(features);
+ parser.setViewPattern("{0} "); //$NON-NLS-1$
+ parser.setEditorPattern("{0}"); //$NON-NLS-1$
+ parser.setEditPattern("{0}"); //$NON-NLS-1$
+ nodeName_5140Parser = parser;
+ }
+ return nodeName_5140Parser;
+ }
+
+ /**
+ * @generated
+ */
+ private IParser className_5155Parser;
+
+ /**
+ * @generated
+ */
+ private IParser getClassName_5155Parser() {
+ if(className_5155Parser == null) {
+ EAttribute[] features = new EAttribute[]{ UMLPackage.eINSTANCE.getNamedElement_Name() };
+ MessageFormatParser parser = new MessageFormatParser(features);
+ parser.setViewPattern("{0} "); //$NON-NLS-1$
+ parser.setEditorPattern("{0}"); //$NON-NLS-1$
+ parser.setEditPattern("{0}"); //$NON-NLS-1$
+ className_5155Parser = parser;
+ }
+ return className_5155Parser;
+ }
+
+ /**
+ * @generated
+ */
+ private IParser collaborationName_5141Parser;
+
+ /**
+ * @generated
+ */
+ private IParser getCollaborationName_5141Parser() {
+ if(collaborationName_5141Parser == null) {
+ EAttribute[] features = new EAttribute[]{ UMLPackage.eINSTANCE.getNamedElement_Name() };
+ MessageFormatParser parser = new MessageFormatParser(features);
+ parser.setViewPattern("{0} "); //$NON-NLS-1$
+ parser.setEditorPattern("{0}"); //$NON-NLS-1$
+ parser.setEditPattern("{0}"); //$NON-NLS-1$
+ collaborationName_5141Parser = parser;
+ }
+ return collaborationName_5141Parser;
+ }
+
+ /**
+ * @generated
+ */
+ private IParser interfaceName_5154Parser;
+
+ /**
+ * @generated
+ */
+ private IParser getInterfaceName_5154Parser() {
+ if(interfaceName_5154Parser == null) {
+ EAttribute[] features = new EAttribute[]{ UMLPackage.eINSTANCE.getNamedElement_Name() };
+ MessageFormatParser parser = new MessageFormatParser(features);
+ parser.setViewPattern("{0} "); //$NON-NLS-1$
+ parser.setEditorPattern("{0}"); //$NON-NLS-1$
+ parser.setEditPattern("{0}"); //$NON-NLS-1$
+ interfaceName_5154Parser = parser;
+ }
+ return interfaceName_5154Parser;
+ }
+
+ /**
+ * @generated
+ */
+ private IParser primitiveTypeName_5134Parser;
+
+ /**
+ * @generated
+ */
+ private IParser getPrimitiveTypeName_5134Parser() {
+ if(primitiveTypeName_5134Parser == null) {
+ EAttribute[] features = new EAttribute[]{ UMLPackage.eINSTANCE.getNamedElement_Name() };
+ MessageFormatParser parser = new MessageFormatParser(features);
+ parser.setViewPattern("{0} "); //$NON-NLS-1$
+ parser.setEditorPattern("{0}"); //$NON-NLS-1$
+ parser.setEditPattern("{0}"); //$NON-NLS-1$
+ primitiveTypeName_5134Parser = parser;
+ }
+ return primitiveTypeName_5134Parser;
+ }
+
+ /**
+ * @generated
+ */
+ private IParser enumerationName_5135Parser;
+
+ /**
+ * @generated
+ */
+ private IParser getEnumerationName_5135Parser() {
+ if(enumerationName_5135Parser == null) {
+ EAttribute[] features = new EAttribute[]{ UMLPackage.eINSTANCE.getNamedElement_Name() };
+ MessageFormatParser parser = new MessageFormatParser(features);
+ parser.setViewPattern("{0} "); //$NON-NLS-1$
+ parser.setEditorPattern("{0}"); //$NON-NLS-1$
+ parser.setEditPattern("{0}"); //$NON-NLS-1$
+ enumerationName_5135Parser = parser;
+ }
+ return enumerationName_5135Parser;
+ }
+
+ /**
+ * @generated
+ */
+ private IParser dataTypeName_5136Parser;
+
+ /**
+ * @generated
+ */
+ private IParser getDataTypeName_5136Parser() {
+ if(dataTypeName_5136Parser == null) {
+ EAttribute[] features = new EAttribute[]{ UMLPackage.eINSTANCE.getNamedElement_Name() };
+ MessageFormatParser parser = new MessageFormatParser(features);
+ parser.setViewPattern("{0} "); //$NON-NLS-1$
+ parser.setEditorPattern("{0}"); //$NON-NLS-1$
+ parser.setEditPattern("{0}"); //$NON-NLS-1$
+ dataTypeName_5136Parser = parser;
+ }
+ return dataTypeName_5136Parser;
+ }
+
+ /**
+ * @generated
+ */
+ private IParser actorName_5144Parser;
+
+ /**
+ * @generated
+ */
+ private IParser getActorName_5144Parser() {
+ if(actorName_5144Parser == null) {
+ EAttribute[] features = new EAttribute[]{ UMLPackage.eINSTANCE.getNamedElement_Name() };
+ MessageFormatParser parser = new MessageFormatParser(features);
+ parser.setViewPattern("{0} "); //$NON-NLS-1$
+ parser.setEditorPattern("{0}"); //$NON-NLS-1$
+ parser.setEditPattern("{0}"); //$NON-NLS-1$
+ actorName_5144Parser = parser;
+ }
+ return actorName_5144Parser;
+ }
+
+ /**
+ * @generated
+ */
+ private IParser deploymentSpecificationName_5145Parser;
+
+ /**
+ * @generated
+ */
+ private IParser getDeploymentSpecificationName_5145Parser() {
+ if(deploymentSpecificationName_5145Parser == null) {
+ EAttribute[] features = new EAttribute[]{ UMLPackage.eINSTANCE.getNamedElement_Name() };
+ MessageFormatParser parser = new MessageFormatParser(features);
+ parser.setViewPattern("{0} "); //$NON-NLS-1$
+ parser.setEditorPattern("{0}"); //$NON-NLS-1$
+ parser.setEditPattern("{0}"); //$NON-NLS-1$
+ deploymentSpecificationName_5145Parser = parser;
+ }
+ return deploymentSpecificationName_5145Parser;
+ }
+
+ /**
+ * @generated
+ */
+ private IParser artifactName_5146Parser;
+
+ /**
+ * @generated
+ */
+ private IParser getArtifactName_5146Parser() {
+ if(artifactName_5146Parser == null) {
+ EAttribute[] features = new EAttribute[]{ UMLPackage.eINSTANCE.getNamedElement_Name() };
+ MessageFormatParser parser = new MessageFormatParser(features);
+ parser.setViewPattern("{0} "); //$NON-NLS-1$
+ parser.setEditorPattern("{0}"); //$NON-NLS-1$
+ parser.setEditPattern("{0}"); //$NON-NLS-1$
+ artifactName_5146Parser = parser;
+ }
+ return artifactName_5146Parser;
+ }
+
+ /**
+ * @generated
+ */
+ private IParser informationItemName_5147Parser;
+
+ /**
+ * @generated
+ */
+ private IParser getInformationItemName_5147Parser() {
+ if(informationItemName_5147Parser == null) {
+ EAttribute[] features = new EAttribute[]{ UMLPackage.eINSTANCE.getNamedElement_Name() };
+ MessageFormatParser parser = new MessageFormatParser(features);
+ parser.setViewPattern("{0} "); //$NON-NLS-1$
+ parser.setEditorPattern("{0}"); //$NON-NLS-1$
+ parser.setEditPattern("{0}"); //$NON-NLS-1$
+ informationItemName_5147Parser = parser;
+ }
+ return informationItemName_5147Parser;
+ }
+
+ /**
+ * @generated
+ */
+ private IParser signalName_5148Parser;
+
+ /**
+ * @generated
+ */
+ private IParser getSignalName_5148Parser() {
+ if(signalName_5148Parser == null) {
+ EAttribute[] features = new EAttribute[]{ UMLPackage.eINSTANCE.getNamedElement_Name() };
+ MessageFormatParser parser = new MessageFormatParser(features);
+ parser.setViewPattern("{0} "); //$NON-NLS-1$
+ parser.setEditorPattern("{0}"); //$NON-NLS-1$
+ parser.setEditPattern("{0}"); //$NON-NLS-1$
+ signalName_5148Parser = parser;
+ }
+ return signalName_5148Parser;
+ }
+
+ /**
+ * @generated
+ */
+ private IParser useCaseName_5149Parser;
+
+ /**
+ * @generated
+ */
+ private IParser getUseCaseName_5149Parser() {
+ if(useCaseName_5149Parser == null) {
+ EAttribute[] features = new EAttribute[]{ UMLPackage.eINSTANCE.getNamedElement_Name() };
+ MessageFormatParser parser = new MessageFormatParser(features);
+ parser.setViewPattern("{0} "); //$NON-NLS-1$
+ parser.setEditorPattern("{0}"); //$NON-NLS-1$
+ parser.setEditPattern("{0}"); //$NON-NLS-1$
+ useCaseName_5149Parser = parser;
+ }
+ return useCaseName_5149Parser;
+ }
+
+ /**
+ * @generated
+ */
+ private CommentParser commentBody_5150Parser;
+
+ /**
+ * @generated
+ */
+ private IParser getCommentBody_5150Parser() {
+ if(commentBody_5150Parser == null) {
+ commentBody_5150Parser = new CommentParser();
+ }
+ return commentBody_5150Parser;
+ }
+
+ /**
+ * @generated
+ */
+ private IParser durationConstraintName_6040Parser;
+
+ /**
+ * @generated
+ */
+ private IParser getDurationConstraintName_6040Parser() {
+ if(durationConstraintName_6040Parser == null) {
+ EAttribute[] features = new EAttribute[]{ UMLPackage.eINSTANCE.getNamedElement_Name() };
+ MessageFormatParser parser = new MessageFormatParser(features);
+ durationConstraintName_6040Parser = parser;
+ }
+ return durationConstraintName_6040Parser;
+ }
+
+ /**
+ * @generated
+ */
+ private ConstraintParser durationConstraintSpecification_6041Parser;
+
+ /**
+ * @generated
+ */
+ private IParser getDurationConstraintSpecification_6041Parser() {
+ if(durationConstraintSpecification_6041Parser == null) {
+ durationConstraintSpecification_6041Parser = new ConstraintParser();
+ }
+ return durationConstraintSpecification_6041Parser;
+ }
+
+ /**
+ * @generated
+ */
+ private IParser timeConstraintName_6042Parser;
+
+ /**
+ * @generated
+ */
+ private IParser getTimeConstraintName_6042Parser() {
+ if(timeConstraintName_6042Parser == null) {
+ EAttribute[] features = new EAttribute[]{ UMLPackage.eINSTANCE.getNamedElement_Name() };
+ MessageFormatParser parser = new MessageFormatParser(features);
+ timeConstraintName_6042Parser = parser;
+ }
+ return timeConstraintName_6042Parser;
+ }
+
+ /**
+ * @generated
+ */
+ private ConstraintParser timeConstraintSpecification_6043Parser;
+
+ /**
+ * @generated
+ */
+ private IParser getTimeConstraintSpecification_6043Parser() {
+ if(timeConstraintSpecification_6043Parser == null) {
+ timeConstraintSpecification_6043Parser = new ConstraintParser();
+ }
+ return timeConstraintSpecification_6043Parser;
+ }
+
+ /**
+ * @generated
+ */
+ private IParser intervalConstraintName_6044Parser;
+
+ /**
+ * @generated
+ */
+ private IParser getIntervalConstraintName_6044Parser() {
+ if(intervalConstraintName_6044Parser == null) {
+ EAttribute[] features = new EAttribute[]{ UMLPackage.eINSTANCE.getNamedElement_Name() };
+ MessageFormatParser parser = new MessageFormatParser(features);
+ intervalConstraintName_6044Parser = parser;
+ }
+ return intervalConstraintName_6044Parser;
+ }
+
+ /**
+ * @generated
+ */
+ private ConstraintParser intervalConstraintSpecification_6045Parser;
+
+ /**
+ * @generated
+ */
+ private IParser getIntervalConstraintSpecification_6045Parser() {
+ if(intervalConstraintSpecification_6045Parser == null) {
+ intervalConstraintSpecification_6045Parser = new ConstraintParser();
+ }
+ return intervalConstraintSpecification_6045Parser;
+ }
+
+ /**
+ * @generated
+ */
+ private IParser interactionConstraintName_6046Parser;
+
+ /**
+ * @generated
+ */
+ private IParser getInteractionConstraintName_6046Parser() {
+ if(interactionConstraintName_6046Parser == null) {
+ EAttribute[] features = new EAttribute[]{ UMLPackage.eINSTANCE.getNamedElement_Name() };
+ MessageFormatParser parser = new MessageFormatParser(features);
+ interactionConstraintName_6046Parser = parser;
+ }
+ return interactionConstraintName_6046Parser;
+ }
+
+ /**
+ * @generated
+ */
+ private ConstraintParser interactionConstraintSpecification_6047Parser;
+
+ /**
+ * @generated
+ */
+ private IParser getInteractionConstraintSpecification_6047Parser() {
+ if(interactionConstraintSpecification_6047Parser == null) {
+ interactionConstraintSpecification_6047Parser = new ConstraintParser();
+ }
+ return interactionConstraintSpecification_6047Parser;
+ }
+
+ /**
+ * @generated
+ */
+ private IParser constraintName_6048Parser;
+
+ /**
+ * @generated
+ */
+ private IParser getConstraintName_6048Parser() {
+ if(constraintName_6048Parser == null) {
+ EAttribute[] features = new EAttribute[]{ UMLPackage.eINSTANCE.getNamedElement_Name() };
+ MessageFormatParser parser = new MessageFormatParser(features);
+ constraintName_6048Parser = parser;
+ }
+ return constraintName_6048Parser;
+ }
+
+ /**
+ * @generated
+ */
+ private ConstraintParser constraintSpecification_6049Parser;
+
+ /**
+ * @generated
+ */
+ private IParser getConstraintSpecification_6049Parser() {
+ if(constraintSpecification_6049Parser == null) {
+ constraintSpecification_6049Parser = new ConstraintParser();
+ }
+ return constraintSpecification_6049Parser;
+ }
+
+ /**
+ * @generated
+ */
+ private IParser property_3101Parser;
+
+ /**
+ * @generated
+ */
+ private IParser getProperty_3101Parser() {
+ if(property_3101Parser == null) {
+ EAttribute[] features = new EAttribute[]{ UMLPackage.eINSTANCE.getNamedElement_Name() };
+ MessageFormatParser parser = new MessageFormatParser(features);
+ parser.setViewPattern("{0} "); //$NON-NLS-1$
+ parser.setEditorPattern("{0}"); //$NON-NLS-1$
+ parser.setEditPattern("{0}"); //$NON-NLS-1$
+ property_3101Parser = parser;
+ }
+ return property_3101Parser;
+ }
+
+ /**
+ * @generated
+ */
+ private IParser operation_3102Parser;
+
+ /**
+ * @generated
+ */
+ private IParser getOperation_3102Parser() {
+ if(operation_3102Parser == null) {
+ EAttribute[] features = new EAttribute[]{ UMLPackage.eINSTANCE.getNamedElement_Name() };
+ MessageFormatParser parser = new MessageFormatParser(features);
+ parser.setViewPattern("{0} "); //$NON-NLS-1$
+ parser.setEditorPattern("{0}"); //$NON-NLS-1$
+ parser.setEditPattern("{0}"); //$NON-NLS-1$
+ operation_3102Parser = parser;
+ }
+ return operation_3102Parser;
+ }
+
+ /**
+ * @generated
+ */
+ private IParser reception_3100Parser;
+
+ /**
+ * @generated
+ */
+ private IParser getReception_3100Parser() {
+ if(reception_3100Parser == null) {
+ EAttribute[] features = new EAttribute[]{ UMLPackage.eINSTANCE.getNamedElement_Name() };
+ MessageFormatParser parser = new MessageFormatParser(features);
+ parser.setViewPattern("{0} "); //$NON-NLS-1$
+ parser.setEditorPattern("{0}"); //$NON-NLS-1$
+ parser.setEditPattern("{0}"); //$NON-NLS-1$
+ reception_3100Parser = parser;
+ }
+ return reception_3100Parser;
+ }
+
+ /**
+ * @generated
+ */
+ private IParser enumerationLiteral_3066Parser;
+
+ /**
+ * @generated
+ */
+ private IParser getEnumerationLiteral_3066Parser() {
+ if(enumerationLiteral_3066Parser == null) {
+ EAttribute[] features = new EAttribute[]{ UMLPackage.eINSTANCE.getNamedElement_Name() };
+ MessageFormatParser parser = new MessageFormatParser(features);
+ parser.setViewPattern("{0} "); //$NON-NLS-1$
+ parser.setEditorPattern("{0}"); //$NON-NLS-1$
+ parser.setEditPattern("{0}"); //$NON-NLS-1$
+ enumerationLiteral_3066Parser = parser;
+ }
+ return enumerationLiteral_3066Parser;
+ }
+
+ /**
+ * @generated
+ */
+ private IParser activity_3103Parser;
+
+ /**
+ * @generated
+ */
+ private IParser getActivity_3103Parser() {
+ if(activity_3103Parser == null) {
+ EAttribute[] features = new EAttribute[]{ UMLPackage.eINSTANCE.getNamedElement_Name() };
+ MessageFormatParser parser = new MessageFormatParser(features);
+ parser.setViewPattern("{0} "); //$NON-NLS-1$
+ parser.setEditorPattern("{0}"); //$NON-NLS-1$
+ parser.setEditPattern("{0}"); //$NON-NLS-1$
+ activity_3103Parser = parser;
+ }
+ return activity_3103Parser;
+ }
+
+ /**
+ * @generated
+ */
+ private IParser interaction_3104Parser;
+
+ /**
+ * @generated
+ */
+ private IParser getInteraction_3104Parser() {
+ if(interaction_3104Parser == null) {
+ EAttribute[] features = new EAttribute[]{ UMLPackage.eINSTANCE.getNamedElement_Name() };
+ MessageFormatParser parser = new MessageFormatParser(features);
+ parser.setViewPattern("{0} "); //$NON-NLS-1$
+ parser.setEditorPattern("{0}"); //$NON-NLS-1$
+ parser.setEditPattern("{0}"); //$NON-NLS-1$
+ interaction_3104Parser = parser;
+ }
+ return interaction_3104Parser;
+ }
+
+ /**
+ * @generated
+ */
+ private IParser protocolStateMachine_3105Parser;
+
+ /**
+ * @generated
+ */
+ private IParser getProtocolStateMachine_3105Parser() {
+ if(protocolStateMachine_3105Parser == null) {
+ EAttribute[] features = new EAttribute[]{ UMLPackage.eINSTANCE.getNamedElement_Name() };
+ MessageFormatParser parser = new MessageFormatParser(features);
+ parser.setViewPattern("{0} "); //$NON-NLS-1$
+ parser.setEditorPattern("{0}"); //$NON-NLS-1$
+ parser.setEditPattern("{0}"); //$NON-NLS-1$
+ protocolStateMachine_3105Parser = parser;
+ }
+ return protocolStateMachine_3105Parser;
+ }
+
+ /**
+ * @generated
+ */
+ private IParser stateMachine_3106Parser;
+
+ /**
+ * @generated
+ */
+ private IParser getStateMachine_3106Parser() {
+ if(stateMachine_3106Parser == null) {
+ EAttribute[] features = new EAttribute[]{ UMLPackage.eINSTANCE.getNamedElement_Name() };
+ MessageFormatParser parser = new MessageFormatParser(features);
+ parser.setViewPattern("{0} "); //$NON-NLS-1$
+ parser.setEditorPattern("{0}"); //$NON-NLS-1$
+ parser.setEditPattern("{0}"); //$NON-NLS-1$
+ stateMachine_3106Parser = parser;
+ }
+ return stateMachine_3106Parser;
+ }
+
+ /**
+ * @generated
+ */
+ private IParser functionBehavior_3107Parser;
+
+ /**
+ * @generated
+ */
+ private IParser getFunctionBehavior_3107Parser() {
+ if(functionBehavior_3107Parser == null) {
+ EAttribute[] features = new EAttribute[]{ UMLPackage.eINSTANCE.getNamedElement_Name() };
+ MessageFormatParser parser = new MessageFormatParser(features);
+ parser.setViewPattern("{0} "); //$NON-NLS-1$
+ parser.setEditorPattern("{0}"); //$NON-NLS-1$
+ parser.setEditPattern("{0}"); //$NON-NLS-1$
+ functionBehavior_3107Parser = parser;
+ }
+ return functionBehavior_3107Parser;
+ }
+
+ /**
+ * @generated
+ */
+ private IParser opaqueBehavior_3108Parser;
+
+ /**
+ * @generated
+ */
+ private IParser getOpaqueBehavior_3108Parser() {
+ if(opaqueBehavior_3108Parser == null) {
+ EAttribute[] features = new EAttribute[]{ UMLPackage.eINSTANCE.getNamedElement_Name() };
+ MessageFormatParser parser = new MessageFormatParser(features);
+ parser.setViewPattern("{0} "); //$NON-NLS-1$
+ parser.setEditorPattern("{0}"); //$NON-NLS-1$
+ parser.setEditPattern("{0}"); //$NON-NLS-1$
+ opaqueBehavior_3108Parser = parser;
+ }
+ return opaqueBehavior_3108Parser;
+ }
+
+ /**
+ * @generated
+ */
+ private IParser collaboration_3109Parser;
+
+ /**
+ * @generated
+ */
+ private IParser getCollaboration_3109Parser() {
+ if(collaboration_3109Parser == null) {
+ EAttribute[] features = new EAttribute[]{ UMLPackage.eINSTANCE.getNamedElement_Name() };
+ MessageFormatParser parser = new MessageFormatParser(features);
+ parser.setViewPattern("{0} "); //$NON-NLS-1$
+ parser.setEditorPattern("{0}"); //$NON-NLS-1$
+ parser.setEditPattern("{0}"); //$NON-NLS-1$
+ collaboration_3109Parser = parser;
+ }
+ return collaboration_3109Parser;
+ }
+
+ /**
+ * @generated
+ */
+ private IParser interface_3110Parser;
+
+ /**
+ * @generated
+ */
+ private IParser getInterface_3110Parser() {
+ if(interface_3110Parser == null) {
+ EAttribute[] features = new EAttribute[]{ UMLPackage.eINSTANCE.getNamedElement_Name() };
+ MessageFormatParser parser = new MessageFormatParser(features);
+ parser.setViewPattern("{0} "); //$NON-NLS-1$
+ parser.setEditorPattern("{0}"); //$NON-NLS-1$
+ parser.setEditPattern("{0}"); //$NON-NLS-1$
+ interface_3110Parser = parser;
+ }
+ return interface_3110Parser;
+ }
+
+ /**
+ * @generated
+ */
+ private IParser enumeration_3111Parser;
+
+ /**
+ * @generated
+ */
+ private IParser getEnumeration_3111Parser() {
+ if(enumeration_3111Parser == null) {
+ EAttribute[] features = new EAttribute[]{ UMLPackage.eINSTANCE.getNamedElement_Name() };
+ MessageFormatParser parser = new MessageFormatParser(features);
+ parser.setViewPattern("{0} "); //$NON-NLS-1$
+ parser.setEditorPattern("{0}"); //$NON-NLS-1$
+ parser.setEditPattern("{0}"); //$NON-NLS-1$
+ enumeration_3111Parser = parser;
+ }
+ return enumeration_3111Parser;
+ }
+
+ /**
+ * @generated
+ */
+ private IParser primitiveType_3112Parser;
+
+ /**
+ * @generated
+ */
+ private IParser getPrimitiveType_3112Parser() {
+ if(primitiveType_3112Parser == null) {
+ EAttribute[] features = new EAttribute[]{ UMLPackage.eINSTANCE.getNamedElement_Name() };
+ MessageFormatParser parser = new MessageFormatParser(features);
+ parser.setViewPattern("{0} "); //$NON-NLS-1$
+ parser.setEditorPattern("{0}"); //$NON-NLS-1$
+ parser.setEditPattern("{0}"); //$NON-NLS-1$
+ primitiveType_3112Parser = parser;
+ }
+ return primitiveType_3112Parser;
+ }
+
+ /**
+ * @generated
+ */
+ private IParser dataType_3113Parser;
+
+ /**
+ * @generated
+ */
+ private IParser getDataType_3113Parser() {
+ if(dataType_3113Parser == null) {
+ EAttribute[] features = new EAttribute[]{ UMLPackage.eINSTANCE.getNamedElement_Name() };
+ MessageFormatParser parser = new MessageFormatParser(features);
+ parser.setViewPattern("{0} "); //$NON-NLS-1$
+ parser.setEditorPattern("{0}"); //$NON-NLS-1$
+ parser.setEditPattern("{0}"); //$NON-NLS-1$
+ dataType_3113Parser = parser;
+ }
+ return dataType_3113Parser;
+ }
+
+ /**
+ * @generated
+ */
+ private IParser class_3114Parser;
+
+ /**
+ * @generated
+ */
+ private IParser getClass_3114Parser() {
+ if(class_3114Parser == null) {
+ EAttribute[] features = new EAttribute[]{ UMLPackage.eINSTANCE.getNamedElement_Name() };
+ MessageFormatParser parser = new MessageFormatParser(features);
+ parser.setViewPattern("{0} "); //$NON-NLS-1$
+ parser.setEditorPattern("{0}"); //$NON-NLS-1$
+ parser.setEditPattern("{0}"); //$NON-NLS-1$
+ class_3114Parser = parser;
+ }
+ return class_3114Parser;
+ }
+
+ /**
+ * @generated
+ */
+ private IParser componentRealizationName_6001Parser;
+
+ /**
+ * @generated
+ */
+ private IParser getComponentRealizationName_6001Parser() {
+ if(componentRealizationName_6001Parser == null) {
+ EAttribute[] features = new EAttribute[]{ UMLPackage.eINSTANCE.getNamedElement_Name() };
+ MessageFormatParser parser = new MessageFormatParser(features);
+ componentRealizationName_6001Parser = parser;
+ }
+ return componentRealizationName_6001Parser;
+ }
+
+ /**
+ * @generated
+ */
+ private AppliedStereotypeParser componentRealizationName_6015Parser;
+
+ /**
+ * @generated
+ */
+ private IParser getComponentRealizationName_6015Parser() {
+ if(componentRealizationName_6015Parser == null) {
+ componentRealizationName_6015Parser = new AppliedStereotypeParser();
+ }
+ return componentRealizationName_6015Parser;
+ }
+
+ /**
+ * @generated
+ */
+ private IParser interfaceRealizationName_6002Parser;
+
+ /**
+ * @generated
+ */
+ private IParser getInterfaceRealizationName_6002Parser() {
+ if(interfaceRealizationName_6002Parser == null) {
+ EAttribute[] features = new EAttribute[]{ UMLPackage.eINSTANCE.getNamedElement_Name() };
+ MessageFormatParser parser = new MessageFormatParser(features);
+ interfaceRealizationName_6002Parser = parser;
+ }
+ return interfaceRealizationName_6002Parser;
+ }
+
+ /**
+ * @generated
+ */
+ private AppliedStereotypeParser interfaceRealizationName_6016Parser;
+
+ /**
+ * @generated
+ */
+ private IParser getInterfaceRealizationName_6016Parser() {
+ if(interfaceRealizationName_6016Parser == null) {
+ interfaceRealizationName_6016Parser = new AppliedStereotypeParser();
+ }
+ return interfaceRealizationName_6016Parser;
+ }
+
+ /**
+ * @generated
+ */
+ private IParser substitutionName_6003Parser;
+
+ /**
+ * @generated
+ */
+ private IParser getSubstitutionName_6003Parser() {
+ if(substitutionName_6003Parser == null) {
+ EAttribute[] features = new EAttribute[]{ UMLPackage.eINSTANCE.getNamedElement_Name() };
+ MessageFormatParser parser = new MessageFormatParser(features);
+ substitutionName_6003Parser = parser;
+ }
+ return substitutionName_6003Parser;
+ }
+
+ /**
+ * @generated
+ */
+ private AppliedStereotypeParser substitutionName_6017Parser;
+
+ /**
+ * @generated
+ */
+ private IParser getSubstitutionName_6017Parser() {
+ if(substitutionName_6017Parser == null) {
+ substitutionName_6017Parser = new AppliedStereotypeParser();
+ }
+ return substitutionName_6017Parser;
+ }
+
+ /**
+ * @generated
+ */
+ private IParser realizationName_6004Parser;
+
+ /**
+ * @generated
+ */
+ private IParser getRealizationName_6004Parser() {
+ if(realizationName_6004Parser == null) {
+ EAttribute[] features = new EAttribute[]{ UMLPackage.eINSTANCE.getNamedElement_Name() };
+ MessageFormatParser parser = new MessageFormatParser(features);
+ realizationName_6004Parser = parser;
+ }
+ return realizationName_6004Parser;
+ }
+
+ /**
+ * @generated
+ */
+ private AppliedStereotypeParser realizationName_6018Parser;
+
+ /**
+ * @generated
+ */
+ private IParser getRealizationName_6018Parser() {
+ if(realizationName_6018Parser == null) {
+ realizationName_6018Parser = new AppliedStereotypeParser();
+ }
+ return realizationName_6018Parser;
+ }
+
+ /**
+ * @generated
+ */
+ private IParser manifestationName_6005Parser;
+
+ /**
+ * @generated
+ */
+ private IParser getManifestationName_6005Parser() {
+ if(manifestationName_6005Parser == null) {
+ EAttribute[] features = new EAttribute[]{ UMLPackage.eINSTANCE.getNamedElement_Name() };
+ MessageFormatParser parser = new MessageFormatParser(features);
+ manifestationName_6005Parser = parser;
+ }
+ return manifestationName_6005Parser;
+ }
+
+ /**
+ * @generated
+ */
+ private AppliedStereotypeParser manifestationName_6019Parser;
+
+ /**
+ * @generated
+ */
+ private IParser getManifestationName_6019Parser() {
+ if(manifestationName_6019Parser == null) {
+ manifestationName_6019Parser = new AppliedStereotypeParser();
+ }
+ return manifestationName_6019Parser;
+ }
+
+ /**
+ * @generated
+ */
+ private IParser abstractionName_6006Parser;
+
+ /**
+ * @generated
+ */
+ private IParser getAbstractionName_6006Parser() {
+ if(abstractionName_6006Parser == null) {
+ EAttribute[] features = new EAttribute[]{ UMLPackage.eINSTANCE.getNamedElement_Name() };
+ MessageFormatParser parser = new MessageFormatParser(features);
+ abstractionName_6006Parser = parser;
+ }
+ return abstractionName_6006Parser;
+ }
+
+ /**
+ * @generated
+ */
+ private AppliedStereotypeParser abstractionName_6020Parser;
+
+ /**
+ * @generated
+ */
+ private IParser getAbstractionName_6020Parser() {
+ if(abstractionName_6020Parser == null) {
+ abstractionName_6020Parser = new AppliedStereotypeParser();
+ }
+ return abstractionName_6020Parser;
+ }
+
+ /**
+ * @generated
+ */
+ private IParser usageName_6007Parser;
+
+ /**
+ * @generated
+ */
+ private IParser getUsageName_6007Parser() {
+ if(usageName_6007Parser == null) {
+ EAttribute[] features = new EAttribute[]{ UMLPackage.eINSTANCE.getNamedElement_Name() };
+ MessageFormatParser parser = new MessageFormatParser(features);
+ usageName_6007Parser = parser;
+ }
+ return usageName_6007Parser;
+ }
+
+ /**
+ * @generated
+ */
+ private AppliedStereotypeParser usageName_6021Parser;
+
+ /**
+ * @generated
+ */
+ private IParser getUsageName_6021Parser() {
+ if(usageName_6021Parser == null) {
+ usageName_6021Parser = new AppliedStereotypeParser();
+ }
+ return usageName_6021Parser;
+ }
+
+ /**
+ * @generated
+ */
+ private IParser deploymentName_6008Parser;
+
+ /**
+ * @generated
+ */
+ private IParser getDeploymentName_6008Parser() {
+ if(deploymentName_6008Parser == null) {
+ EAttribute[] features = new EAttribute[]{ UMLPackage.eINSTANCE.getNamedElement_Name() };
+ MessageFormatParser parser = new MessageFormatParser(features);
+ deploymentName_6008Parser = parser;
+ }
+ return deploymentName_6008Parser;
+ }
+
+ /**
+ * @generated
+ */
+ private AppliedStereotypeParser deploymentName_6022Parser;
+
+ /**
+ * @generated
+ */
+ private IParser getDeploymentName_6022Parser() {
+ if(deploymentName_6022Parser == null) {
+ deploymentName_6022Parser = new AppliedStereotypeParser();
+ }
+ return deploymentName_6022Parser;
+ }
+
+ /**
+ * @generated
+ */
+ private RoleBindingRoleNameParser dependencyName_6027Parser;
+
+ /**
+ * @generated
+ */
+ private IParser getDependencyName_6027Parser() {
+ if(dependencyName_6027Parser == null) {
+ dependencyName_6027Parser = new RoleBindingRoleNameParser();
+ }
+ return dependencyName_6027Parser;
+ }
+
+ /**
+ * @generated
+ */
+ private AppliedStereotypeParser dependencyName_6028Parser;
+
+ /**
+ * @generated
+ */
+ private IParser getDependencyName_6028Parser() {
+ if(dependencyName_6028Parser == null) {
+ dependencyName_6028Parser = new AppliedStereotypeParser();
+ }
+ return dependencyName_6028Parser;
+ }
+
+ /**
+ * @generated
+ */
+ private IParser dependencyName_6009Parser;
+
+ /**
+ * @generated
+ */
+ private IParser getDependencyName_6009Parser() {
+ if(dependencyName_6009Parser == null) {
+ EAttribute[] features = new EAttribute[]{ UMLPackage.eINSTANCE.getNamedElement_Name() };
+ MessageFormatParser parser = new MessageFormatParser(features);
+ dependencyName_6009Parser = parser;
+ }
+ return dependencyName_6009Parser;
+ }
+
+ /**
+ * @generated
+ */
+ private AppliedStereotypeParser dependencyName_6023Parser;
+
+ /**
+ * @generated
+ */
+ private IParser getDependencyName_6023Parser() {
+ if(dependencyName_6023Parser == null) {
+ dependencyName_6023Parser = new AppliedStereotypeParser();
+ }
+ return dependencyName_6023Parser;
+ }
+
+ /**
+ * @generated
+ */
+ private AppliedStereotypeParser connectorName_6025Parser;
+
+ /**
+ * @generated
+ */
+ private IParser getConnectorName_6025Parser() {
+ if(connectorName_6025Parser == null) {
+ connectorName_6025Parser = new AppliedStereotypeParser();
+ }
+ return connectorName_6025Parser;
+ }
+
+ /**
+ * @generated
+ */
+ private IParser connectorName_6050Parser;
+
+ /**
+ * @generated
+ */
+ private IParser getConnectorName_6050Parser() {
+ if(connectorName_6050Parser == null) {
+ EAttribute[] features = new EAttribute[]{ UMLPackage.eINSTANCE.getNamedElement_Name() };
+ MessageFormatParser parser = new MessageFormatParser(features);
+ connectorName_6050Parser = parser;
+ }
+ return connectorName_6050Parser;
+ }
+
+ /**
+ * @generated
+ */
+ private IParser connectorName_6051Parser;
+
+ /**
+ * @generated
+ */
+ private IParser getConnectorName_6051Parser() {
+ if(connectorName_6051Parser == null) {
+ EAttribute[] features = new EAttribute[]{ UMLPackage.eINSTANCE.getNamedElement_Name() };
+ MessageFormatParser parser = new MessageFormatParser(features);
+ parser.setViewPattern("sourceMul{0}"); //$NON-NLS-1$
+ parser.setEditorPattern("sourceMul{0}"); //$NON-NLS-1$
+ parser.setEditPattern("sourceMul{0}"); //$NON-NLS-1$
+ connectorName_6051Parser = parser;
+ }
+ return connectorName_6051Parser;
+ }
+
+ /**
+ * @generated
+ */
+ private IParser connectorName_6052Parser;
+
+ /**
+ * @generated
+ */
+ private IParser getConnectorName_6052Parser() {
+ if(connectorName_6052Parser == null) {
+ EAttribute[] features = new EAttribute[]{ UMLPackage.eINSTANCE.getNamedElement_Name() };
+ MessageFormatParser parser = new MessageFormatParser(features);
+ parser.setViewPattern("targetMul{0}"); //$NON-NLS-1$
+ parser.setEditorPattern("targetMul{0}"); //$NON-NLS-1$
+ parser.setEditPattern("targetMul{0}"); //$NON-NLS-1$
+ connectorName_6052Parser = parser;
+ }
+ return connectorName_6052Parser;
+ }
+
+ /**
+ * @generated
+ */
+ private AppliedStereotypeParser generalizationIsSubstitutable_6024Parser;
+
+ /**
+ * @generated
+ */
+ private IParser getGeneralizationIsSubstitutable_6024Parser() {
+ if(generalizationIsSubstitutable_6024Parser == null) {
+ generalizationIsSubstitutable_6024Parser = new AppliedStereotypeParser();
+ }
+ return generalizationIsSubstitutable_6024Parser;
+ }
+
+ /**
+ * @generated
+ */
+ private AppliedStereotypeParser informationFlowName_6032Parser;
+
+ /**
+ * @generated
+ */
+ private IParser getInformationFlowName_6032Parser() {
+ if(informationFlowName_6032Parser == null) {
+ informationFlowName_6032Parser = new AppliedStereotypeParser();
+ }
+ return informationFlowName_6032Parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected IParser getParser(int visualID) {
+ switch(visualID) {
+ case ActivityCompositeNameEditPart.VISUAL_ID:
+ return getActivityName_5112Parser();
+ case InteractionCompositeNameEditPart.VISUAL_ID:
+ return getInteractionName_5113Parser();
+ case ProtocolStateMachineCompositeNameEditPart.VISUAL_ID:
+ return getProtocolStateMachineName_5114Parser();
+ case StateMachineCompositeNameEditPart.VISUAL_ID:
+ return getStateMachineName_5115Parser();
+ case FunctionBehaviorCompositeNameEditPart.VISUAL_ID:
+ return getFunctionBehaviorName_5116Parser();
+ case OpaqueBehaviorCompositeNameEditPart.VISUAL_ID:
+ return getOpaqueBehaviorName_5117Parser();
+ case ComponentCompositeNameEditPart.VISUAL_ID:
+ return getComponentName_5121Parser();
+ case DeviceCompositeNameEditPart.VISUAL_ID:
+ return getDeviceName_5122Parser();
+ case ExecutionEnvironmentCompositeNameEditPart.VISUAL_ID:
+ return getExecutionEnvironmentName_5123Parser();
+ case NodeCompositeNameEditPart.VISUAL_ID:
+ return getNodeName_5124Parser();
+ case ClassCompositeNameEditPart.VISUAL_ID:
+ return getClassName_5156Parser();
+ case CollaborationCompositeNameEditPart.VISUAL_ID:
+ return getCollaborationName_5158Parser();
+ case InterfaceNameEditPart.VISUAL_ID:
+ return getInterfaceName_5159Parser();
+ case PrimitiveTypeNameEditPart.VISUAL_ID:
+ return getPrimitiveTypeName_5118Parser();
+ case EnumerationNameEditPart.VISUAL_ID:
+ return getEnumerationName_5119Parser();
+ case DataTypeNameEditPart.VISUAL_ID:
+ return getDataTypeName_5120Parser();
+ case ActorNameEditPart.VISUAL_ID:
+ return getActorName_5160Parser();
+ case DeploymentSpecificationNameEditPart.VISUAL_ID:
+ return getDeploymentSpecificationName_5161Parser();
+ case ArtifactNameEditPart.VISUAL_ID:
+ return getArtifactName_5162Parser();
+ case InformationItemNameEditPart.VISUAL_ID:
+ return getInformationItemName_5163Parser();
+ case SignalNameEditPart.VISUAL_ID:
+ return getSignalName_5164Parser();
+ case UseCaseNameEditPart.VISUAL_ID:
+ return getUseCaseName_5165Parser();
+ case SignalEventNameEditPart.VISUAL_ID:
+ return getSignalEventName_5166Parser();
+ case CallEventNameEditPart.VISUAL_ID:
+ return getCallEventName_5167Parser();
+ case AnyReceiveEventNameEditPart.VISUAL_ID:
+ return getAnyReceiveEventName_5168Parser();
+ case SendSignalEventNameEditPart.VISUAL_ID:
+ return getSendSignalEventName_5169Parser();
+ case SendOperationEventNameEditPart.VISUAL_ID:
+ return getSendOperationEventName_5170Parser();
+ case ChangeEventNameEditPart.VISUAL_ID:
+ return getChangeEventName_5171Parser();
+ case TimeEventNameEditPart.VISUAL_ID:
+ return getTimeEventName_5172Parser();
+ case CreationEventNameEditPart.VISUAL_ID:
+ return getCreationEventName_5173Parser();
+ case DestructionEventNameEditPart.VISUAL_ID:
+ return getDestructionEventName_5174Parser();
+ case ExecutionEventNameEditPart.VISUAL_ID:
+ return getExecutionEventName_5175Parser();
+ case DurationObservationNameEditPart.VISUAL_ID:
+ return getDurationObservationName_5151Parser();
+ case DurationObservationStereotypeLabelEditPart.VISUAL_ID:
+ return getDurationObservationName_5152Parser();
+ case TimeObservationNameEditPart.VISUAL_ID:
+ return getTimeObservationName_5142Parser();
+ case TimeObservationStereotypeLabelEditPart.VISUAL_ID:
+ return getTimeObservationName_5143Parser();
+ case LiteralBooleanNameEditPart.VISUAL_ID:
+ return getLiteralBooleanName_5178Parser();
+ case LiteralIntegerNameEditPart.VISUAL_ID:
+ return getLiteralIntegerName_5179Parser();
+ case LiteralNullNameEditPart.VISUAL_ID:
+ return getLiteralNullName_5180Parser();
+ case LiteralStringNameEditPart.VISUAL_ID:
+ return getLiteralStringName_5181Parser();
+ case LiteralUnlimitedNaturalNameEditPart.VISUAL_ID:
+ return getLiteralUnlimitedNaturalName_5182Parser();
+ case StringExpressionNameEditPart.VISUAL_ID:
+ return getStringExpressionName_5183Parser();
+ case OpaqueExpressionNameEditPart.VISUAL_ID:
+ return getOpaqueExpressionName_5184Parser();
+ case TimeExpressionNameEditPart.VISUAL_ID:
+ return getTimeExpressionName_5185Parser();
+ case ExpressionNameEditPart.VISUAL_ID:
+ return getExpressionName_5186Parser();
+ case DurationNameEditPart.VISUAL_ID:
+ return getDurationName_5187Parser();
+ case TimeIntervalNameEditPart.VISUAL_ID:
+ return getTimeIntervalName_5188Parser();
+ case DurationIntervalNameEditPart.VISUAL_ID:
+ return getDurationIntervalName_5189Parser();
+ case IntervalNameEditPart.VISUAL_ID:
+ return getIntervalName_5190Parser();
+ case InstanceValueNameEditPart.VISUAL_ID:
+ return getInstanceValueName_5191Parser();
+ case CommentBodyEditPart.VISUAL_ID:
+ return getCommentBody_5192Parser();
+ case DurationConstraintNameEditPart.VISUAL_ID:
+ return getDurationConstraintName_5193Parser();
+ case DurationConstraintSpecificationEditPart.VISUAL_ID:
+ return getDurationConstraintSpecification_6035Parser();
+ case TimeConstraintNameEditPart.VISUAL_ID:
+ return getTimeConstraintName_5194Parser();
+ case TimeConstraintSpecificationEditPart.VISUAL_ID:
+ return getTimeConstraintSpecification_6036Parser();
+ case IntervalConstraintNameEditPart.VISUAL_ID:
+ return getIntervalConstraintName_5195Parser();
+ case IntervalConstraintSpecificationEditPart.VISUAL_ID:
+ return getIntervalConstraintSpecification_6037Parser();
+ case InteractionConstraintNameEditPart.VISUAL_ID:
+ return getInteractionConstraintName_5196Parser();
+ case InteractionConstraintSpecificationEditPart.VISUAL_ID:
+ return getInteractionConstraintSpecification_6038Parser();
+ case ConstraintNameEditPart.VISUAL_ID:
+ return getConstraintName_5197Parser();
+ case ConstraintSpecificationEditPart.VISUAL_ID:
+ return getConstraintSpecification_6039Parser();
+ case PortNameEditPart.VISUAL_ID:
+ return getPortName_5125Parser();
+ case PortAppliedStereotypeEditPart.VISUAL_ID:
+ return getPortName_6029Parser();
+ case ParameterNameEditPart.VISUAL_ID:
+ return getParameterName_6033Parser();
+ case ParameterAppliedStereotypeEditPart.VISUAL_ID:
+ return getParameterName_6034Parser();
+ case PropertyPartNameEditPartCN.VISUAL_ID:
+ return getPropertyName_5126Parser();
+ case CollaborationRoleNameEditPartCN.VISUAL_ID:
+ return getConnectableElementName_5198Parser();
+ case CollaborationUseNameEditPart.VISUAL_ID:
+ return getCollaborationUseName_5127Parser();
+ case ActivityCompositeNameEditPartCN.VISUAL_ID:
+ return getActivityName_5128Parser();
+ case InteractionCompositeNameEditPartCN.VISUAL_ID:
+ return getInteractionName_5129Parser();
+ case ProtocolStateMachineCompositeNameEditPartCN.VISUAL_ID:
+ return getProtocolStateMachineName_5130Parser();
+ case StateMachineCompositeNameEditPartCN.VISUAL_ID:
+ return getStateMachineName_5131Parser();
+ case FunctionBehaviorCompositeNameEditPartCN.VISUAL_ID:
+ return getFunctionBehaviorName_5132Parser();
+ case OpaqueBehaviorCompositeNameEditPartCN.VISUAL_ID:
+ return getOpaqueBehaviorName_5133Parser();
+ case ComponentCompositeNameEditPartCN.VISUAL_ID:
+ return getComponentName_5137Parser();
+ case DeviceCompositeNameEditPartCN.VISUAL_ID:
+ return getDeviceName_5138Parser();
+ case ExecutionEnvironmentCompositeNameEditPartCN.VISUAL_ID:
+ return getExecutionEnvironmentName_5139Parser();
+ case NodeCompositeNameEditPartCN.VISUAL_ID:
+ return getNodeName_5140Parser();
+ case ClassCompositeNameEditPartCN.VISUAL_ID:
+ return getClassName_5155Parser();
+ case CollaborationCompositeNameEditPartCN.VISUAL_ID:
+ return getCollaborationName_5141Parser();
+ case InterfaceNameEditPartCN.VISUAL_ID:
+ return getInterfaceName_5154Parser();
+ case PrimitiveTypeNameEditPartCN.VISUAL_ID:
+ return getPrimitiveTypeName_5134Parser();
+ case EnumerationNameEditPartCN.VISUAL_ID:
+ return getEnumerationName_5135Parser();
+ case DataTypeNameEditPartCN.VISUAL_ID:
+ return getDataTypeName_5136Parser();
+ case ActorNameEditPartCN.VISUAL_ID:
+ return getActorName_5144Parser();
+ case DeploymentSpecificationNameEditPartCN.VISUAL_ID:
+ return getDeploymentSpecificationName_5145Parser();
+ case ArtifactNameEditPartCN.VISUAL_ID:
+ return getArtifactName_5146Parser();
+ case InformationItemNameEditPartCN.VISUAL_ID:
+ return getInformationItemName_5147Parser();
+ case SignalNameEditPartCN.VISUAL_ID:
+ return getSignalName_5148Parser();
+ case UseCaseNameEditPartCN.VISUAL_ID:
+ return getUseCaseName_5149Parser();
+ case CommentBodyEditPartCN.VISUAL_ID:
+ return getCommentBody_5150Parser();
+ case DurationConstraintNameEditPartCN.VISUAL_ID:
+ return getDurationConstraintName_6040Parser();
+ case DurationConstraintSpecificationEditPartCN.VISUAL_ID:
+ return getDurationConstraintSpecification_6041Parser();
+ case TimeConstraintNameEditPartCN.VISUAL_ID:
+ return getTimeConstraintName_6042Parser();
+ case TimeConstraintSpecificationEditPartCN.VISUAL_ID:
+ return getTimeConstraintSpecification_6043Parser();
+ case IntervalConstraintNameEditPartCN.VISUAL_ID:
+ return getIntervalConstraintName_6044Parser();
+ case IntervalConstraintSpecificationEditPartCN.VISUAL_ID:
+ return getIntervalConstraintSpecification_6045Parser();
+ case InteractionConstraintNameEditPartCN.VISUAL_ID:
+ return getInteractionConstraintName_6046Parser();
+ case InteractionConstraintSpecificationEditPartCN.VISUAL_ID:
+ return getInteractionConstraintSpecification_6047Parser();
+ case ConstraintNameEditPartCN.VISUAL_ID:
+ return getConstraintName_6048Parser();
+ case ConstraintSpecificationEditPartCN.VISUAL_ID:
+ return getConstraintSpecification_6049Parser();
+ case PropertyEditPartCLN.VISUAL_ID:
+ return getProperty_3101Parser();
+ case OperationEditPartCLN.VISUAL_ID:
+ return getOperation_3102Parser();
+ case ReceptionEditPartCLN.VISUAL_ID:
+ return getReception_3100Parser();
+ case EnumerationLiteralEditPartCLN.VISUAL_ID:
+ return getEnumerationLiteral_3066Parser();
+ case ActivityEditPartCLN.VISUAL_ID:
+ return getActivity_3103Parser();
+ case InteractionEditPartCLN.VISUAL_ID:
+ return getInteraction_3104Parser();
+ case ProtocolStateMachineEditPartCLN.VISUAL_ID:
+ return getProtocolStateMachine_3105Parser();
+ case StateMachineEditPartCLN.VISUAL_ID:
+ return getStateMachine_3106Parser();
+ case FunctionBehaviorEditPartCLN.VISUAL_ID:
+ return getFunctionBehavior_3107Parser();
+ case OpaqueBehaviorEditPartCLN.VISUAL_ID:
+ return getOpaqueBehavior_3108Parser();
+ case CollaborationEditPartCLN.VISUAL_ID:
+ return getCollaboration_3109Parser();
+ case InterfaceEditPartCLN.VISUAL_ID:
+ return getInterface_3110Parser();
+ case EnumerationEditPartCLN.VISUAL_ID:
+ return getEnumeration_3111Parser();
+ case PrimitiveTypeEditPartCLN.VISUAL_ID:
+ return getPrimitiveType_3112Parser();
+ case DataTypeEditPartCLN.VISUAL_ID:
+ return getDataType_3113Parser();
+ case ClassEditPartCLN.VISUAL_ID:
+ return getClass_3114Parser();
+ case ComponentRealizationNameEditPart.VISUAL_ID:
+ return getComponentRealizationName_6001Parser();
+ case ComponentRealizationAppliedStereotypeEditPart.VISUAL_ID:
+ return getComponentRealizationName_6015Parser();
+ case InterfaceRealizationNameEditPart.VISUAL_ID:
+ return getInterfaceRealizationName_6002Parser();
+ case InterfaceRealizationAppliedStereotypeEditPart.VISUAL_ID:
+ return getInterfaceRealizationName_6016Parser();
+ case SubstitutionNameEditPart.VISUAL_ID:
+ return getSubstitutionName_6003Parser();
+ case SubstitutionAppliedStereotypeEditPart.VISUAL_ID:
+ return getSubstitutionName_6017Parser();
+ case RealizationNameEditPart.VISUAL_ID:
+ return getRealizationName_6004Parser();
+ case RealizationAppliedStereotypeEditPart.VISUAL_ID:
+ return getRealizationName_6018Parser();
+ case ManifestationNameEditPart.VISUAL_ID:
+ return getManifestationName_6005Parser();
+ case ManifestationAppliedStereotypeEditPart.VISUAL_ID:
+ return getManifestationName_6019Parser();
+ case AbstractionNameEditPart.VISUAL_ID:
+ return getAbstractionName_6006Parser();
+ case AbstractionAppliedStereotypeEditPart.VISUAL_ID:
+ return getAbstractionName_6020Parser();
+ case UsageNameEditPart.VISUAL_ID:
+ return getUsageName_6007Parser();
+ case UsageAppliedStereotypeEditPart.VISUAL_ID:
+ return getUsageName_6021Parser();
+ case DeploymentNameEditPart.VISUAL_ID:
+ return getDeploymentName_6008Parser();
+ case DeploymentAppliedStereotypeEditPart.VISUAL_ID:
+ return getDeploymentName_6022Parser();
+ case RoleBindingRoleNameEditPart.VISUAL_ID:
+ return getDependencyName_6027Parser();
+ case RoleBindingAppliedStereotypeEditPart.VISUAL_ID:
+ return getDependencyName_6028Parser();
+ case DependencyNameEditPart.VISUAL_ID:
+ return getDependencyName_6009Parser();
+ case DependencyAppliedStereotypeEditPart.VISUAL_ID:
+ return getDependencyName_6023Parser();
+ case ConnectorAppliedStereotypeEditPart.VISUAL_ID:
+ return getConnectorName_6025Parser();
+ case ConnectorNameEditPart.VISUAL_ID:
+ return getConnectorName_6050Parser();
+ case ConnectorMultiplicitySourceEditPart.VISUAL_ID:
+ return getConnectorName_6051Parser();
+ case ConnectorMultiplicityTargetEditPart.VISUAL_ID:
+ return getConnectorName_6052Parser();
+ case GeneralizationAppliedStereotypeEditPart.VISUAL_ID:
+ return getGeneralizationIsSubstitutable_6024Parser();
+ case InformationFlowAppliedStereotypeEditPart.VISUAL_ID:
+ return getInformationFlowName_6032Parser();
+ }
+ return null;
+ }
+
+ /**
+ * Utility method that consults ParserService
+ *
+ * @generated
+ */
+ public static IParser getParser(IElementType type, EObject object, String parserHint) {
+ return ParserService.getInstance().getParser(new HintAdapter(type, object, parserHint));
+ }
+
+ /**
+ * @generated
+ */
+ public IParser getParser(IAdaptable hint) {
+ String vid = (String)hint.getAdapter(String.class);
+ if(vid != null) {
+ return getParser(UMLVisualIDRegistry.getVisualID(vid));
+ }
+ View view = (View)hint.getAdapter(View.class);
+ if(view != null) {
+ return getParser(UMLVisualIDRegistry.getVisualID(view));
+ }
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ public boolean provides(IOperation operation) {
+ if(operation instanceof GetParserOperation) {
+ IAdaptable hint = ((GetParserOperation)operation).getHint();
+ if(UMLElementTypes.getElement(hint) == null) {
+ return false;
+ }
+ return getParser(hint) != null;
+ }
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ private static class HintAdapter extends ParserHintAdapter {
+
+ /**
+ * @generated
+ */
+ private final IElementType elementType;
+
+ /**
+ * @generated
+ */
+ public HintAdapter(IElementType type, EObject object, String parserHint) {
+ super(object, parserHint);
+ assert type != null;
+ elementType = type;
+ }
+
+ /**
+ * @generated
+ */
+ public Object getAdapter(Class adapter) {
+ if(IElementType.class.equals(adapter)) {
+ return elementType;
+ }
+ return super.getAdapter(adapter);
+ }
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/providers/UMLValidationDecoratorProvider.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/providers/UMLValidationDecoratorProvider.java
new file mode 100644
index 00000000000..c0d8b0501e3
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/providers/UMLValidationDecoratorProvider.java
@@ -0,0 +1,72 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.providers;
+
+import org.eclipse.gef.EditDomain;
+import org.eclipse.gef.EditPart;
+import org.eclipse.gef.editparts.AbstractConnectionEditPart;
+import org.eclipse.gmf.runtime.common.core.service.IOperation;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.parts.DiagramEditDomain;
+import org.eclipse.gmf.runtime.diagram.ui.services.decorator.CreateDecoratorsOperation;
+import org.eclipse.gmf.runtime.diagram.ui.services.decorator.IDecoratorProvider;
+import org.eclipse.gmf.runtime.diagram.ui.services.decorator.IDecoratorTarget;
+import org.eclipse.gmf.runtime.notation.Edge;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.diagram.common.providers.ValidationDecoratorProvider;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CompositeStructureDiagramEditPart;
+import org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditor;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+
+/**
+ * @generated
+ */
+public class UMLValidationDecoratorProvider extends ValidationDecoratorProvider implements IDecoratorProvider {
+
+ /**
+ * @generated
+ */
+ public void createDecorators(IDecoratorTarget decoratorTarget) {
+ EditPart editPart = (EditPart)decoratorTarget.getAdapter(EditPart.class);
+ if(editPart instanceof GraphicalEditPart || editPart instanceof AbstractConnectionEditPart) {
+ Object model = editPart.getModel();
+ if((model instanceof View)) {
+ View view = (View)model;
+ if(!(view instanceof Edge) && !view.isSetElement()) {
+ return;
+ }
+ }
+ EditDomain ed = editPart.getViewer().getEditDomain();
+ if(!(ed instanceof DiagramEditDomain)) {
+ return;
+ }
+ if(((DiagramEditDomain)ed).getEditorPart() instanceof UMLDiagramEditor) {
+ decoratorTarget.installDecorator(KEY, new StatusDecorator(decoratorTarget));
+ }
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public boolean provides(IOperation operation) {
+ if(!(operation instanceof CreateDecoratorsOperation)) {
+ return false;
+ }
+ IDecoratorTarget decoratorTarget = ((CreateDecoratorsOperation)operation).getDecoratorTarget();
+ View view = (View)decoratorTarget.getAdapter(View.class);
+ return view != null && CompositeStructureDiagramEditPart.MODEL_ID.equals(UMLVisualIDRegistry.getModelID(view));
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/providers/UMLValidationProvider.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/providers/UMLValidationProvider.java
new file mode 100644
index 00000000000..0c05da8ee52
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/providers/UMLValidationProvider.java
@@ -0,0 +1,79 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.providers;
+
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.diagram.composite.edit.parts.CompositeStructureDiagramEditPart;
+import org.eclipse.papyrus.diagram.composite.part.UMLDiagramEditorPlugin;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+
+/**
+ * @generated
+ */
+public class UMLValidationProvider {
+
+ /**
+ * @generated
+ */
+ private static boolean constraintsActive = false;
+
+ /**
+ * @generated
+ */
+ public static boolean shouldConstraintsBePrivate() {
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ public static void runWithConstraints(TransactionalEditingDomain editingDomain, Runnable operation) {
+ final Runnable op = operation;
+ Runnable task = new Runnable() {
+
+ public void run() {
+ try {
+ constraintsActive = true;
+ op.run();
+ } finally {
+ constraintsActive = false;
+ }
+ }
+ };
+ if(editingDomain != null) {
+ try {
+ editingDomain.runExclusive(task);
+ } catch (Exception e) {
+ UMLDiagramEditorPlugin.getInstance().logError("Validation failed", e); //$NON-NLS-1$
+ }
+ } else {
+ task.run();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ static boolean isInDefaultEditorContext(Object object) {
+ if(shouldConstraintsBePrivate() && !constraintsActive) {
+ return false;
+ }
+ if(object instanceof View) {
+ return constraintsActive && CompositeStructureDiagramEditPart.MODEL_ID.equals(UMLVisualIDRegistry.getModelID((View)object));
+ }
+ return true;
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/providers/UMLViewProvider.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/providers/UMLViewProvider.java
new file mode 100644
index 00000000000..33720a45387
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/providers/UMLViewProvider.java
@@ -0,0 +1,4039 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.providers;
+
+import java.util.ArrayList;
+
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.draw2d.ColorConstants;
+import org.eclipse.emf.ecore.EAnnotation;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.ecore.EcoreFactory;
+import org.eclipse.emf.transaction.util.TransactionUtil;
+import org.eclipse.gmf.runtime.common.core.service.AbstractProvider;
+import org.eclipse.gmf.runtime.common.core.service.IOperation;
+import org.eclipse.gmf.runtime.diagram.core.preferences.PreferencesHint;
+import org.eclipse.gmf.runtime.diagram.core.providers.IViewProvider;
+import org.eclipse.gmf.runtime.diagram.core.services.view.CreateDiagramViewOperation;
+import org.eclipse.gmf.runtime.diagram.core.services.view.CreateEdgeViewOperation;
+import org.eclipse.gmf.runtime.diagram.core.services.view.CreateNodeViewOperation;
+import org.eclipse.gmf.runtime.diagram.core.services.view.CreateViewForKindOperation;
+import org.eclipse.gmf.runtime.diagram.core.services.view.CreateViewOperation;
+import org.eclipse.gmf.runtime.diagram.core.util.ViewUtil;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.FigureUtilities;
+import org.eclipse.gmf.runtime.emf.core.util.EMFCoreUtil;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.emf.type.core.IHintedType;
+import org.eclipse.gmf.runtime.notation.Connector;
+import org.eclipse.gmf.runtime.notation.DecorationNode;
+import org.eclipse.gmf.runtime.notation.Diagram;
+import org.eclipse.gmf.runtime.notation.Edge;
+import org.eclipse.gmf.runtime.notation.FillStyle;
+import org.eclipse.gmf.runtime.notation.FontStyle;
+import org.eclipse.gmf.runtime.notation.Location;
+import org.eclipse.gmf.runtime.notation.MeasurementUnit;
+import org.eclipse.gmf.runtime.notation.Node;
+import org.eclipse.gmf.runtime.notation.NotationFactory;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.RelativeBendpoints;
+import org.eclipse.gmf.runtime.notation.Shape;
+import org.eclipse.gmf.runtime.notation.TitleStyle;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.gmf.runtime.notation.datatype.RelativeBendpoint;
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.jface.preference.PreferenceConverter;
+import org.eclipse.papyrus.diagram.common.helper.PreferenceInitializerForElementHelper;
+import org.eclipse.papyrus.diagram.composite.edit.parts.*;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter;
+import org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.graphics.FontData;
+
+/**
+ * @generated
+ */
+public class UMLViewProvider extends AbstractProvider implements IViewProvider {
+
+ /**
+ * @generated
+ */
+ public final boolean provides(IOperation operation) {
+ if(operation instanceof CreateViewForKindOperation) {
+ return provides((CreateViewForKindOperation)operation);
+ }
+ assert operation instanceof CreateViewOperation;
+ if(operation instanceof CreateDiagramViewOperation) {
+ return provides((CreateDiagramViewOperation)operation);
+ } else if(operation instanceof CreateEdgeViewOperation) {
+ return provides((CreateEdgeViewOperation)operation);
+ } else if(operation instanceof CreateNodeViewOperation) {
+ return provides((CreateNodeViewOperation)operation);
+ }
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean provides(CreateViewForKindOperation op) {
+ /*
+ * if (op.getViewKind() == Node.class)
+ * return getNodeViewClass(op.getSemanticAdapter(), op.getContainerView(), op.getSemanticHint()) != null;
+ * if (op.getViewKind() == Edge.class)
+ * return getEdgeViewClass(op.getSemanticAdapter(), op.getContainerView(), op.getSemanticHint()) != null;
+ */
+
+ // check Diagram Type should be the class diagram
+ String modelID = UMLVisualIDRegistry.getModelID(op.getContainerView());
+ if(!getDiagramProvidedId().equals(modelID)) {
+ return false;
+ }
+
+ int visualID = UMLVisualIDRegistry.getVisualID(op.getSemanticHint());
+ if(Node.class.isAssignableFrom(op.getViewKind())) {
+ return UMLVisualIDRegistry.canCreateNode(op.getContainerView(), visualID);
+ }
+
+ return true;
+ }
+
+ /**
+ * Indicates for which diagram this provider works for.
+ * <p>
+ * This method can be overloaded when diagram editor inherits from another one
+ * </p>
+ *
+ * @return the unique identifier of the diagram for which views are provided.
+ */
+ protected String getDiagramProvidedId() {
+ return CompositeStructureDiagramEditPart.MODEL_ID;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean provides(CreateDiagramViewOperation op) {
+ return CompositeStructureDiagramEditPart.MODEL_ID.equals(op.getSemanticHint()) && UMLVisualIDRegistry.getDiagramVisualID(getSemanticElement(op.getSemanticAdapter())) != -1;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean provides(CreateNodeViewOperation op) {
+ if(op.getContainerView() == null) {
+ return false;
+ }
+ IElementType elementType = getSemanticElementType(op.getSemanticAdapter());
+ EObject domainElement = getSemanticElement(op.getSemanticAdapter());
+ int visualID;
+ if(op.getSemanticHint() == null) {
+ // Semantic hint is not specified. Can be a result of call from CanonicalEditPolicy.
+ // In this situation there should be NO elementType, visualID will be determined
+ // by VisualIDRegistry.getNodeVisualID() for domainElement.
+ if(elementType != null || domainElement == null) {
+ return false;
+ }
+ visualID = UMLVisualIDRegistry.getNodeVisualID(op.getContainerView(), domainElement);
+ } else {
+ visualID = UMLVisualIDRegistry.getVisualID(op.getSemanticHint());
+ if(elementType != null) {
+ if(!UMLElementTypes.isKnownElementType(elementType) || (!(elementType instanceof IHintedType))) {
+ return false; // foreign element type
+ }
+ String elementTypeHint = ((IHintedType)elementType).getSemanticHint();
+ if(!op.getSemanticHint().equals(elementTypeHint)) {
+ return false; // if semantic hint is specified it should be the same as in element type
+ }
+ if(domainElement != null && visualID != UMLVisualIDRegistry.getNodeVisualID(op.getContainerView(), domainElement)) {
+ return false; // visual id for node EClass should match visual id from element type
+ }
+ } else {
+ if(!CompositeStructureDiagramEditPart.MODEL_ID.equals(UMLVisualIDRegistry.getModelID(op.getContainerView()))) {
+ return false; // foreign diagram
+ }
+ switch(visualID) {
+ case ActivityCompositeEditPart.VISUAL_ID:
+ case InteractionCompositeEditPart.VISUAL_ID:
+ case ProtocolStateMachineCompositeEditPart.VISUAL_ID:
+ case StateMachineCompositeEditPart.VISUAL_ID:
+ case FunctionBehaviorCompositeEditPart.VISUAL_ID:
+ case OpaqueBehaviorCompositeEditPart.VISUAL_ID:
+ case ComponentCompositeEditPart.VISUAL_ID:
+ case DeviceCompositeEditPart.VISUAL_ID:
+ case ExecutionEnvironmentCompositeEditPart.VISUAL_ID:
+ case NodeCompositeEditPart.VISUAL_ID:
+ case ClassCompositeEditPart.VISUAL_ID:
+ case PrimitiveTypeEditPart.VISUAL_ID:
+ case EnumerationEditPart.VISUAL_ID:
+ case DataTypeEditPart.VISUAL_ID:
+ case SignalEventEditPart.VISUAL_ID:
+ case CallEventEditPart.VISUAL_ID:
+ case AnyReceiveEventEditPart.VISUAL_ID:
+ case SendSignalEventEditPart.VISUAL_ID:
+ case SendOperationEventEditPart.VISUAL_ID:
+ case ChangeEventEditPart.VISUAL_ID:
+ case TimeEventEditPart.VISUAL_ID:
+ case CreationEventEditPart.VISUAL_ID:
+ case DestructionEventEditPart.VISUAL_ID:
+ case ExecutionEventEditPart.VISUAL_ID:
+ case DurationObservationEditPart.VISUAL_ID:
+ case TimeObservationEditPart.VISUAL_ID:
+ case LiteralBooleanEditPart.VISUAL_ID:
+ case LiteralIntegerEditPart.VISUAL_ID:
+ case LiteralNullEditPart.VISUAL_ID:
+ case LiteralStringEditPart.VISUAL_ID:
+ case LiteralUnlimitedNaturalEditPart.VISUAL_ID:
+ case StringExpressionEditPart.VISUAL_ID:
+ case OpaqueExpressionEditPart.VISUAL_ID:
+ case TimeExpressionEditPart.VISUAL_ID:
+ case ExpressionEditPart.VISUAL_ID:
+ case DurationEditPart.VISUAL_ID:
+ case TimeIntervalEditPart.VISUAL_ID:
+ case DurationIntervalEditPart.VISUAL_ID:
+ case IntervalEditPart.VISUAL_ID:
+ case InstanceValueEditPart.VISUAL_ID:
+ case TimeConstraintEditPart.VISUAL_ID:
+ case IntervalConstraintEditPart.VISUAL_ID:
+ case InteractionConstraintEditPart.VISUAL_ID:
+ case ConstraintEditPart.VISUAL_ID:
+ case PortEditPart.VISUAL_ID:
+ case ParameterEditPart.VISUAL_ID:
+ case PropertyPartEditPartCN.VISUAL_ID:
+ case CollaborationRoleEditPartCN.VISUAL_ID:
+ case CollaborationUseEditPartCN.VISUAL_ID:
+ case CollaborationCompositeEditPartCN.VISUAL_ID:
+ case InterfaceEditPartCN.VISUAL_ID:
+ case ActorEditPartCN.VISUAL_ID:
+ case DeploymentSpecificationEditPartCN.VISUAL_ID:
+ case ArtifactEditPartCN.VISUAL_ID:
+ case InformationItemEditPartCN.VISUAL_ID:
+ case SignalEditPartCN.VISUAL_ID:
+ case UseCaseEditPartCN.VISUAL_ID:
+ case CommentEditPartCN.VISUAL_ID:
+ case ReceptionEditPartCLN.VISUAL_ID:
+ case EnumerationLiteralEditPartCLN.VISUAL_ID:
+ case CollaborationCompositeEditPart.VISUAL_ID:
+ case InterfaceEditPart.VISUAL_ID:
+ case ActorEditPart.VISUAL_ID:
+ case DeploymentSpecificationEditPart.VISUAL_ID:
+ case ArtifactEditPart.VISUAL_ID:
+ case InformationItemEditPart.VISUAL_ID:
+ case SignalEditPart.VISUAL_ID:
+ case UseCaseEditPart.VISUAL_ID:
+ case CommentEditPart.VISUAL_ID:
+ case DurationConstraintEditPart.VISUAL_ID:
+ case ActivityCompositeEditPartCN.VISUAL_ID:
+ case InteractionCompositeEditPartCN.VISUAL_ID:
+ case ProtocolStateMachineCompositeEditPartCN.VISUAL_ID:
+ case StateMachineCompositeEditPartCN.VISUAL_ID:
+ case FunctionBehaviorCompositeEditPartCN.VISUAL_ID:
+ case OpaqueBehaviorCompositeEditPartCN.VISUAL_ID:
+ case ComponentCompositeEditPartCN.VISUAL_ID:
+ case DeviceCompositeEditPartCN.VISUAL_ID:
+ case ExecutionEnvironmentCompositeEditPartCN.VISUAL_ID:
+ case NodeCompositeEditPartCN.VISUAL_ID:
+ case ClassCompositeEditPartCN.VISUAL_ID:
+ case PrimitiveTypeEditPartCN.VISUAL_ID:
+ case EnumerationEditPartCN.VISUAL_ID:
+ case DataTypeEditPartCN.VISUAL_ID:
+ case DurationConstraintEditPartCN.VISUAL_ID:
+ case TimeConstraintEditPartCN.VISUAL_ID:
+ case IntervalConstraintEditPartCN.VISUAL_ID:
+ case InteractionConstraintEditPartCN.VISUAL_ID:
+ case ConstraintEditPartCN.VISUAL_ID:
+ case PropertyEditPartCLN.VISUAL_ID:
+ case OperationEditPartCLN.VISUAL_ID:
+ case ActivityEditPartCLN.VISUAL_ID:
+ case InteractionEditPartCLN.VISUAL_ID:
+ case ProtocolStateMachineEditPartCLN.VISUAL_ID:
+ case StateMachineEditPartCLN.VISUAL_ID:
+ case FunctionBehaviorEditPartCLN.VISUAL_ID:
+ case OpaqueBehaviorEditPartCLN.VISUAL_ID:
+ case CollaborationEditPartCLN.VISUAL_ID:
+ case InterfaceEditPartCLN.VISUAL_ID:
+ case EnumerationEditPartCLN.VISUAL_ID:
+ case PrimitiveTypeEditPartCLN.VISUAL_ID:
+ case DataTypeEditPartCLN.VISUAL_ID:
+ case ClassEditPartCLN.VISUAL_ID:
+ if(domainElement == null || visualID != UMLVisualIDRegistry.getNodeVisualID(op.getContainerView(), domainElement)) {
+ return false; // visual id in semantic hint should match visual id for domain element
+ }
+ break;
+ default:
+ return false;
+ }
+ }
+ }
+ return ActivityCompositeEditPart.VISUAL_ID == visualID || InteractionCompositeEditPart.VISUAL_ID == visualID || ProtocolStateMachineCompositeEditPart.VISUAL_ID == visualID || StateMachineCompositeEditPart.VISUAL_ID == visualID || FunctionBehaviorCompositeEditPart.VISUAL_ID == visualID || OpaqueBehaviorCompositeEditPart.VISUAL_ID == visualID || ComponentCompositeEditPart.VISUAL_ID == visualID || DeviceCompositeEditPart.VISUAL_ID == visualID || ExecutionEnvironmentCompositeEditPart.VISUAL_ID == visualID || NodeCompositeEditPart.VISUAL_ID == visualID || ClassCompositeEditPart.VISUAL_ID == visualID || CollaborationCompositeEditPart.VISUAL_ID == visualID || InterfaceEditPart.VISUAL_ID == visualID || PrimitiveTypeEditPart.VISUAL_ID == visualID || EnumerationEditPart.VISUAL_ID == visualID || DataTypeEditPart.VISUAL_ID == visualID || ActorEditPart.VISUAL_ID == visualID || DeploymentSpecificationEditPart.VISUAL_ID == visualID || ArtifactEditPart.VISUAL_ID == visualID || InformationItemEditPart.VISUAL_ID == visualID || SignalEditPart.VISUAL_ID == visualID || UseCaseEditPart.VISUAL_ID == visualID || SignalEventEditPart.VISUAL_ID == visualID || CallEventEditPart.VISUAL_ID == visualID || AnyReceiveEventEditPart.VISUAL_ID == visualID || SendSignalEventEditPart.VISUAL_ID == visualID || SendOperationEventEditPart.VISUAL_ID == visualID || ChangeEventEditPart.VISUAL_ID == visualID || TimeEventEditPart.VISUAL_ID == visualID || CreationEventEditPart.VISUAL_ID == visualID || DestructionEventEditPart.VISUAL_ID == visualID || ExecutionEventEditPart.VISUAL_ID == visualID || DurationObservationEditPart.VISUAL_ID == visualID || TimeObservationEditPart.VISUAL_ID == visualID || LiteralBooleanEditPart.VISUAL_ID == visualID || LiteralIntegerEditPart.VISUAL_ID == visualID || LiteralNullEditPart.VISUAL_ID == visualID || LiteralStringEditPart.VISUAL_ID == visualID || LiteralUnlimitedNaturalEditPart.VISUAL_ID == visualID || StringExpressionEditPart.VISUAL_ID == visualID || OpaqueExpressionEditPart.VISUAL_ID == visualID || TimeExpressionEditPart.VISUAL_ID == visualID || ExpressionEditPart.VISUAL_ID == visualID || DurationEditPart.VISUAL_ID == visualID || TimeIntervalEditPart.VISUAL_ID == visualID || DurationIntervalEditPart.VISUAL_ID == visualID || IntervalEditPart.VISUAL_ID == visualID || InstanceValueEditPart.VISUAL_ID == visualID || CommentEditPart.VISUAL_ID == visualID || DurationConstraintEditPart.VISUAL_ID == visualID || TimeConstraintEditPart.VISUAL_ID == visualID || IntervalConstraintEditPart.VISUAL_ID == visualID || InteractionConstraintEditPart.VISUAL_ID == visualID || ConstraintEditPart.VISUAL_ID == visualID || PortEditPart.VISUAL_ID == visualID || ParameterEditPart.VISUAL_ID == visualID || PropertyPartEditPartCN.VISUAL_ID == visualID || CollaborationRoleEditPartCN.VISUAL_ID == visualID || CollaborationUseEditPartCN.VISUAL_ID == visualID || ActivityCompositeEditPartCN.VISUAL_ID == visualID || InteractionCompositeEditPartCN.VISUAL_ID == visualID || ProtocolStateMachineCompositeEditPartCN.VISUAL_ID == visualID || StateMachineCompositeEditPartCN.VISUAL_ID == visualID || FunctionBehaviorCompositeEditPartCN.VISUAL_ID == visualID || OpaqueBehaviorCompositeEditPartCN.VISUAL_ID == visualID || ComponentCompositeEditPartCN.VISUAL_ID == visualID || DeviceCompositeEditPartCN.VISUAL_ID == visualID || ExecutionEnvironmentCompositeEditPartCN.VISUAL_ID == visualID || NodeCompositeEditPartCN.VISUAL_ID == visualID || ClassCompositeEditPartCN.VISUAL_ID == visualID || CollaborationCompositeEditPartCN.VISUAL_ID == visualID || InterfaceEditPartCN.VISUAL_ID == visualID || PrimitiveTypeEditPartCN.VISUAL_ID == visualID || EnumerationEditPartCN.VISUAL_ID == visualID || DataTypeEditPartCN.VISUAL_ID == visualID || ActorEditPartCN.VISUAL_ID == visualID || DeploymentSpecificationEditPartCN.VISUAL_ID == visualID || ArtifactEditPartCN.VISUAL_ID == visualID || InformationItemEditPartCN.VISUAL_ID == visualID || SignalEditPartCN.VISUAL_ID == visualID || UseCaseEditPartCN.VISUAL_ID == visualID || CommentEditPartCN.VISUAL_ID == visualID || DurationConstraintEditPartCN.VISUAL_ID == visualID || TimeConstraintEditPartCN.VISUAL_ID == visualID || IntervalConstraintEditPartCN.VISUAL_ID == visualID || InteractionConstraintEditPartCN.VISUAL_ID == visualID || ConstraintEditPartCN.VISUAL_ID == visualID || PropertyEditPartCLN.VISUAL_ID == visualID || OperationEditPartCLN.VISUAL_ID == visualID || ReceptionEditPartCLN.VISUAL_ID == visualID || EnumerationLiteralEditPartCLN.VISUAL_ID == visualID || ActivityEditPartCLN.VISUAL_ID == visualID || InteractionEditPartCLN.VISUAL_ID == visualID || ProtocolStateMachineEditPartCLN.VISUAL_ID == visualID || StateMachineEditPartCLN.VISUAL_ID == visualID || FunctionBehaviorEditPartCLN.VISUAL_ID == visualID || OpaqueBehaviorEditPartCLN.VISUAL_ID == visualID || CollaborationEditPartCLN.VISUAL_ID == visualID || InterfaceEditPartCLN.VISUAL_ID == visualID || EnumerationEditPartCLN.VISUAL_ID == visualID || PrimitiveTypeEditPartCLN.VISUAL_ID == visualID || DataTypeEditPartCLN.VISUAL_ID == visualID || ClassEditPartCLN.VISUAL_ID == visualID;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean provides(CreateEdgeViewOperation op) {
+ IElementType elementType = getSemanticElementType(op.getSemanticAdapter());
+ if(!UMLElementTypes.isKnownElementType(elementType) || (!(elementType instanceof IHintedType))) {
+ return false; // foreign element type
+ }
+ String elementTypeHint = ((IHintedType)elementType).getSemanticHint();
+ if(elementTypeHint == null || (op.getSemanticHint() != null && !elementTypeHint.equals(op.getSemanticHint()))) {
+ return false; // our hint is visual id and must be specified, and it should be the same as in element type
+ }
+ int visualID = UMLVisualIDRegistry.getVisualID(elementTypeHint);
+ EObject domainElement = getSemanticElement(op.getSemanticAdapter());
+ if(domainElement != null && visualID != UMLVisualIDRegistry.getLinkWithClassVisualID(domainElement)) {
+ return false; // visual id for link EClass should match visual id from element type
+ }
+ return true;
+ }
+
+ /**
+ * @generated
+ */
+ public Diagram createDiagram(IAdaptable semanticAdapter, String diagramKind, PreferencesHint preferencesHint) {
+ Diagram diagram = NotationFactory.eINSTANCE.createDiagram();
+ diagram.getStyles().add(NotationFactory.eINSTANCE.createDiagramStyle());
+ diagram.setType(CompositeStructureDiagramEditPart.MODEL_ID);
+ diagram.setElement(getSemanticElement(semanticAdapter));
+ diagram.setMeasurementUnit(MeasurementUnit.PIXEL_LITERAL);
+ return diagram;
+ }
+
+ /**
+ * @generated
+ */
+ public Node createNode(IAdaptable semanticAdapter, View containerView, String semanticHint, int index, boolean persisted, PreferencesHint preferencesHint) {
+ final EObject domainElement = getSemanticElement(semanticAdapter);
+ final int visualID;
+ if(semanticHint == null) {
+ visualID = UMLVisualIDRegistry.getNodeVisualID(containerView, domainElement);
+ } else {
+ visualID = UMLVisualIDRegistry.getVisualID(semanticHint);
+ }
+ switch(visualID) {
+ case ActivityCompositeEditPart.VISUAL_ID:
+ return createActivity_2060(domainElement, containerView, index, persisted, preferencesHint);
+ case InteractionCompositeEditPart.VISUAL_ID:
+ return createInteraction_2061(domainElement, containerView, index, persisted, preferencesHint);
+ case ProtocolStateMachineCompositeEditPart.VISUAL_ID:
+ return createProtocolStateMachine_2062(domainElement, containerView, index, persisted, preferencesHint);
+ case StateMachineCompositeEditPart.VISUAL_ID:
+ return createStateMachine_2063(domainElement, containerView, index, persisted, preferencesHint);
+ case FunctionBehaviorCompositeEditPart.VISUAL_ID:
+ return createFunctionBehavior_2064(domainElement, containerView, index, persisted, preferencesHint);
+ case OpaqueBehaviorCompositeEditPart.VISUAL_ID:
+ return createOpaqueBehavior_2065(domainElement, containerView, index, persisted, preferencesHint);
+ case ComponentCompositeEditPart.VISUAL_ID:
+ return createComponent_2069(domainElement, containerView, index, persisted, preferencesHint);
+ case DeviceCompositeEditPart.VISUAL_ID:
+ return createDevice_2070(domainElement, containerView, index, persisted, preferencesHint);
+ case ExecutionEnvironmentCompositeEditPart.VISUAL_ID:
+ return createExecutionEnvironment_2071(domainElement, containerView, index, persisted, preferencesHint);
+ case NodeCompositeEditPart.VISUAL_ID:
+ return createNode_2072(domainElement, containerView, index, persisted, preferencesHint);
+ case ClassCompositeEditPart.VISUAL_ID:
+ return createClass_2073(domainElement, containerView, index, persisted, preferencesHint);
+ case CollaborationCompositeEditPart.VISUAL_ID:
+ return createCollaboration_2075(domainElement, containerView, index, persisted, preferencesHint);
+ case InterfaceEditPart.VISUAL_ID:
+ return createInterface_2076(domainElement, containerView, index, persisted, preferencesHint);
+ case PrimitiveTypeEditPart.VISUAL_ID:
+ return createPrimitiveType_2066(domainElement, containerView, index, persisted, preferencesHint);
+ case EnumerationEditPart.VISUAL_ID:
+ return createEnumeration_2067(domainElement, containerView, index, persisted, preferencesHint);
+ case DataTypeEditPart.VISUAL_ID:
+ return createDataType_2068(domainElement, containerView, index, persisted, preferencesHint);
+ case ActorEditPart.VISUAL_ID:
+ return createActor_2077(domainElement, containerView, index, persisted, preferencesHint);
+ case DeploymentSpecificationEditPart.VISUAL_ID:
+ return createDeploymentSpecification_2078(domainElement, containerView, index, persisted, preferencesHint);
+ case ArtifactEditPart.VISUAL_ID:
+ return createArtifact_2079(domainElement, containerView, index, persisted, preferencesHint);
+ case InformationItemEditPart.VISUAL_ID:
+ return createInformationItem_2080(domainElement, containerView, index, persisted, preferencesHint);
+ case SignalEditPart.VISUAL_ID:
+ return createSignal_2081(domainElement, containerView, index, persisted, preferencesHint);
+ case UseCaseEditPart.VISUAL_ID:
+ return createUseCase_2082(domainElement, containerView, index, persisted, preferencesHint);
+ case SignalEventEditPart.VISUAL_ID:
+ return createSignalEvent_2083(domainElement, containerView, index, persisted, preferencesHint);
+ case CallEventEditPart.VISUAL_ID:
+ return createCallEvent_2084(domainElement, containerView, index, persisted, preferencesHint);
+ case AnyReceiveEventEditPart.VISUAL_ID:
+ return createAnyReceiveEvent_2085(domainElement, containerView, index, persisted, preferencesHint);
+ case SendSignalEventEditPart.VISUAL_ID:
+ return createSendSignalEvent_2086(domainElement, containerView, index, persisted, preferencesHint);
+ case SendOperationEventEditPart.VISUAL_ID:
+ return createSendOperationEvent_2087(domainElement, containerView, index, persisted, preferencesHint);
+ case ChangeEventEditPart.VISUAL_ID:
+ return createChangeEvent_2088(domainElement, containerView, index, persisted, preferencesHint);
+ case TimeEventEditPart.VISUAL_ID:
+ return createTimeEvent_2089(domainElement, containerView, index, persisted, preferencesHint);
+ case CreationEventEditPart.VISUAL_ID:
+ return createCreationEvent_2090(domainElement, containerView, index, persisted, preferencesHint);
+ case DestructionEventEditPart.VISUAL_ID:
+ return createDestructionEvent_2091(domainElement, containerView, index, persisted, preferencesHint);
+ case ExecutionEventEditPart.VISUAL_ID:
+ return createExecutionEvent_2092(domainElement, containerView, index, persisted, preferencesHint);
+ case DurationObservationEditPart.VISUAL_ID:
+ return createDurationObservation_2093(domainElement, containerView, index, persisted, preferencesHint);
+ case TimeObservationEditPart.VISUAL_ID:
+ return createTimeObservation_2094(domainElement, containerView, index, persisted, preferencesHint);
+ case LiteralBooleanEditPart.VISUAL_ID:
+ return createLiteralBoolean_2095(domainElement, containerView, index, persisted, preferencesHint);
+ case LiteralIntegerEditPart.VISUAL_ID:
+ return createLiteralInteger_2096(domainElement, containerView, index, persisted, preferencesHint);
+ case LiteralNullEditPart.VISUAL_ID:
+ return createLiteralNull_2097(domainElement, containerView, index, persisted, preferencesHint);
+ case LiteralStringEditPart.VISUAL_ID:
+ return createLiteralString_2098(domainElement, containerView, index, persisted, preferencesHint);
+ case LiteralUnlimitedNaturalEditPart.VISUAL_ID:
+ return createLiteralUnlimitedNatural_2099(domainElement, containerView, index, persisted, preferencesHint);
+ case StringExpressionEditPart.VISUAL_ID:
+ return createStringExpression_2100(domainElement, containerView, index, persisted, preferencesHint);
+ case OpaqueExpressionEditPart.VISUAL_ID:
+ return createOpaqueExpression_2101(domainElement, containerView, index, persisted, preferencesHint);
+ case TimeExpressionEditPart.VISUAL_ID:
+ return createTimeExpression_2102(domainElement, containerView, index, persisted, preferencesHint);
+ case ExpressionEditPart.VISUAL_ID:
+ return createExpression_2103(domainElement, containerView, index, persisted, preferencesHint);
+ case DurationEditPart.VISUAL_ID:
+ return createDuration_2104(domainElement, containerView, index, persisted, preferencesHint);
+ case TimeIntervalEditPart.VISUAL_ID:
+ return createTimeInterval_2105(domainElement, containerView, index, persisted, preferencesHint);
+ case DurationIntervalEditPart.VISUAL_ID:
+ return createDurationInterval_2106(domainElement, containerView, index, persisted, preferencesHint);
+ case IntervalEditPart.VISUAL_ID:
+ return createInterval_2107(domainElement, containerView, index, persisted, preferencesHint);
+ case InstanceValueEditPart.VISUAL_ID:
+ return createInstanceValue_2108(domainElement, containerView, index, persisted, preferencesHint);
+ case CommentEditPart.VISUAL_ID:
+ return createComment_2109(domainElement, containerView, index, persisted, preferencesHint);
+ case DurationConstraintEditPart.VISUAL_ID:
+ return createDurationConstraint_2110(domainElement, containerView, index, persisted, preferencesHint);
+ case TimeConstraintEditPart.VISUAL_ID:
+ return createTimeConstraint_2111(domainElement, containerView, index, persisted, preferencesHint);
+ case IntervalConstraintEditPart.VISUAL_ID:
+ return createIntervalConstraint_2112(domainElement, containerView, index, persisted, preferencesHint);
+ case InteractionConstraintEditPart.VISUAL_ID:
+ return createInteractionConstraint_2113(domainElement, containerView, index, persisted, preferencesHint);
+ case ConstraintEditPart.VISUAL_ID:
+ return createConstraint_2114(domainElement, containerView, index, persisted, preferencesHint);
+ case PortEditPart.VISUAL_ID:
+ return createPort_3069(domainElement, containerView, index, persisted, preferencesHint);
+ case ParameterEditPart.VISUAL_ID:
+ return createParameter_3088(domainElement, containerView, index, persisted, preferencesHint);
+ case PropertyPartEditPartCN.VISUAL_ID:
+ return createProperty_3070(domainElement, containerView, index, persisted, preferencesHint);
+ case CollaborationRoleEditPartCN.VISUAL_ID:
+ return createConnectableElement_3115(domainElement, containerView, index, persisted, preferencesHint);
+ case CollaborationUseEditPartCN.VISUAL_ID:
+ return createCollaborationUse_3071(domainElement, containerView, index, persisted, preferencesHint);
+ case ActivityCompositeEditPartCN.VISUAL_ID:
+ return createActivity_3072(domainElement, containerView, index, persisted, preferencesHint);
+ case InteractionCompositeEditPartCN.VISUAL_ID:
+ return createInteraction_3073(domainElement, containerView, index, persisted, preferencesHint);
+ case ProtocolStateMachineCompositeEditPartCN.VISUAL_ID:
+ return createProtocolStateMachine_3074(domainElement, containerView, index, persisted, preferencesHint);
+ case StateMachineCompositeEditPartCN.VISUAL_ID:
+ return createStateMachine_3075(domainElement, containerView, index, persisted, preferencesHint);
+ case FunctionBehaviorCompositeEditPartCN.VISUAL_ID:
+ return createFunctionBehavior_3076(domainElement, containerView, index, persisted, preferencesHint);
+ case OpaqueBehaviorCompositeEditPartCN.VISUAL_ID:
+ return createOpaqueBehavior_3077(domainElement, containerView, index, persisted, preferencesHint);
+ case ComponentCompositeEditPartCN.VISUAL_ID:
+ return createComponent_3081(domainElement, containerView, index, persisted, preferencesHint);
+ case DeviceCompositeEditPartCN.VISUAL_ID:
+ return createDevice_3082(domainElement, containerView, index, persisted, preferencesHint);
+ case ExecutionEnvironmentCompositeEditPartCN.VISUAL_ID:
+ return createExecutionEnvironment_3083(domainElement, containerView, index, persisted, preferencesHint);
+ case NodeCompositeEditPartCN.VISUAL_ID:
+ return createNode_3084(domainElement, containerView, index, persisted, preferencesHint);
+ case ClassCompositeEditPartCN.VISUAL_ID:
+ return createClass_3085(domainElement, containerView, index, persisted, preferencesHint);
+ case CollaborationCompositeEditPartCN.VISUAL_ID:
+ return createCollaboration_3086(domainElement, containerView, index, persisted, preferencesHint);
+ case InterfaceEditPartCN.VISUAL_ID:
+ return createInterface_3087(domainElement, containerView, index, persisted, preferencesHint);
+ case PrimitiveTypeEditPartCN.VISUAL_ID:
+ return createPrimitiveType_3078(domainElement, containerView, index, persisted, preferencesHint);
+ case EnumerationEditPartCN.VISUAL_ID:
+ return createEnumeration_3079(domainElement, containerView, index, persisted, preferencesHint);
+ case DataTypeEditPartCN.VISUAL_ID:
+ return createDataType_3080(domainElement, containerView, index, persisted, preferencesHint);
+ case ActorEditPartCN.VISUAL_ID:
+ return createActor_3091(domainElement, containerView, index, persisted, preferencesHint);
+ case DeploymentSpecificationEditPartCN.VISUAL_ID:
+ return createDeploymentSpecification_3092(domainElement, containerView, index, persisted, preferencesHint);
+ case ArtifactEditPartCN.VISUAL_ID:
+ return createArtifact_3093(domainElement, containerView, index, persisted, preferencesHint);
+ case InformationItemEditPartCN.VISUAL_ID:
+ return createInformationItem_3094(domainElement, containerView, index, persisted, preferencesHint);
+ case SignalEditPartCN.VISUAL_ID:
+ return createSignal_3095(domainElement, containerView, index, persisted, preferencesHint);
+ case UseCaseEditPartCN.VISUAL_ID:
+ return createUseCase_3096(domainElement, containerView, index, persisted, preferencesHint);
+ case CommentEditPartCN.VISUAL_ID:
+ return createComment_3097(domainElement, containerView, index, persisted, preferencesHint);
+ case DurationConstraintEditPartCN.VISUAL_ID:
+ return createDurationConstraint_3116(domainElement, containerView, index, persisted, preferencesHint);
+ case TimeConstraintEditPartCN.VISUAL_ID:
+ return createTimeConstraint_3117(domainElement, containerView, index, persisted, preferencesHint);
+ case IntervalConstraintEditPartCN.VISUAL_ID:
+ return createIntervalConstraint_3118(domainElement, containerView, index, persisted, preferencesHint);
+ case InteractionConstraintEditPartCN.VISUAL_ID:
+ return createInteractionConstraint_3119(domainElement, containerView, index, persisted, preferencesHint);
+ case ConstraintEditPartCN.VISUAL_ID:
+ return createConstraint_3120(domainElement, containerView, index, persisted, preferencesHint);
+ case PropertyEditPartCLN.VISUAL_ID:
+ return createProperty_3101(domainElement, containerView, index, persisted, preferencesHint);
+ case OperationEditPartCLN.VISUAL_ID:
+ return createOperation_3102(domainElement, containerView, index, persisted, preferencesHint);
+ case ReceptionEditPartCLN.VISUAL_ID:
+ return createReception_3100(domainElement, containerView, index, persisted, preferencesHint);
+ case EnumerationLiteralEditPartCLN.VISUAL_ID:
+ return createEnumerationLiteral_3066(domainElement, containerView, index, persisted, preferencesHint);
+ case ActivityEditPartCLN.VISUAL_ID:
+ return createActivity_3103(domainElement, containerView, index, persisted, preferencesHint);
+ case InteractionEditPartCLN.VISUAL_ID:
+ return createInteraction_3104(domainElement, containerView, index, persisted, preferencesHint);
+ case ProtocolStateMachineEditPartCLN.VISUAL_ID:
+ return createProtocolStateMachine_3105(domainElement, containerView, index, persisted, preferencesHint);
+ case StateMachineEditPartCLN.VISUAL_ID:
+ return createStateMachine_3106(domainElement, containerView, index, persisted, preferencesHint);
+ case FunctionBehaviorEditPartCLN.VISUAL_ID:
+ return createFunctionBehavior_3107(domainElement, containerView, index, persisted, preferencesHint);
+ case OpaqueBehaviorEditPartCLN.VISUAL_ID:
+ return createOpaqueBehavior_3108(domainElement, containerView, index, persisted, preferencesHint);
+ case CollaborationEditPartCLN.VISUAL_ID:
+ return createCollaboration_3109(domainElement, containerView, index, persisted, preferencesHint);
+ case InterfaceEditPartCLN.VISUAL_ID:
+ return createInterface_3110(domainElement, containerView, index, persisted, preferencesHint);
+ case EnumerationEditPartCLN.VISUAL_ID:
+ return createEnumeration_3111(domainElement, containerView, index, persisted, preferencesHint);
+ case PrimitiveTypeEditPartCLN.VISUAL_ID:
+ return createPrimitiveType_3112(domainElement, containerView, index, persisted, preferencesHint);
+ case DataTypeEditPartCLN.VISUAL_ID:
+ return createDataType_3113(domainElement, containerView, index, persisted, preferencesHint);
+ case ClassEditPartCLN.VISUAL_ID:
+ return createClass_3114(domainElement, containerView, index, persisted, preferencesHint);
+ }
+ // can't happen, provided #provides(CreateNodeViewOperation) is correct
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ public Edge createEdge(IAdaptable semanticAdapter, View containerView, String semanticHint, int index, boolean persisted, PreferencesHint preferencesHint) {
+ IElementType elementType = getSemanticElementType(semanticAdapter);
+ String elementTypeHint = ((IHintedType)elementType).getSemanticHint();
+ switch(UMLVisualIDRegistry.getVisualID(elementTypeHint)) {
+ case LinkDescriptorEditPart.VISUAL_ID:
+ return createLink_4001(containerView, index, persisted, preferencesHint);
+ case CommentAnnotatedElementEditPart.VISUAL_ID:
+ return createCommentAnnotatedElement_4002(containerView, index, persisted, preferencesHint);
+ case ConstraintConstrainedElementEditPart.VISUAL_ID:
+ return createConstraintConstrainedElement_4003(containerView, index, persisted, preferencesHint);
+ case ComponentRealizationEditPart.VISUAL_ID:
+ return createComponentRealization_4004(getSemanticElement(semanticAdapter), containerView, index, persisted, preferencesHint);
+ case InterfaceRealizationEditPart.VISUAL_ID:
+ return createInterfaceRealization_4005(getSemanticElement(semanticAdapter), containerView, index, persisted, preferencesHint);
+ case SubstitutionEditPart.VISUAL_ID:
+ return createSubstitution_4011(getSemanticElement(semanticAdapter), containerView, index, persisted, preferencesHint);
+ case RealizationEditPart.VISUAL_ID:
+ return createRealization_4006(getSemanticElement(semanticAdapter), containerView, index, persisted, preferencesHint);
+ case ManifestationEditPart.VISUAL_ID:
+ return createManifestation_4012(getSemanticElement(semanticAdapter), containerView, index, persisted, preferencesHint);
+ case AbstractionEditPart.VISUAL_ID:
+ return createAbstraction_4007(getSemanticElement(semanticAdapter), containerView, index, persisted, preferencesHint);
+ case UsageEditPart.VISUAL_ID:
+ return createUsage_4008(getSemanticElement(semanticAdapter), containerView, index, persisted, preferencesHint);
+ case DeploymentEditPart.VISUAL_ID:
+ return createDeployment_4009(getSemanticElement(semanticAdapter), containerView, index, persisted, preferencesHint);
+ case RoleBindingEditPart.VISUAL_ID:
+ return createDependency_4017(getSemanticElement(semanticAdapter), containerView, index, persisted, preferencesHint);
+ case DependencyEditPart.VISUAL_ID:
+ return createDependency_4010(getSemanticElement(semanticAdapter), containerView, index, persisted, preferencesHint);
+ case ConnectorEditPart.VISUAL_ID:
+ return createConnector_4013(getSemanticElement(semanticAdapter), containerView, index, persisted, preferencesHint);
+ case GeneralizationEditPart.VISUAL_ID:
+ return createGeneralization_4015(getSemanticElement(semanticAdapter), containerView, index, persisted, preferencesHint);
+ case TimeObservationEventEditPart.VISUAL_ID:
+ return createTimeObservationEvent_4018(containerView, index, persisted, preferencesHint);
+ case DurationObservationEventEditPart.VISUAL_ID:
+ return createDurationObservationEvent_4019(containerView, index, persisted, preferencesHint);
+ case RepresentationEditPart.VISUAL_ID:
+ return createInformationItemRepresented_4020(containerView, index, persisted, preferencesHint);
+ case InformationFlowEditPart.VISUAL_ID:
+ return createInformationFlow_4021(getSemanticElement(semanticAdapter), containerView, index, persisted, preferencesHint);
+ }
+ // can never happen, provided #provides(CreateEdgeViewOperation) is correct
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ public Node createActivity_2060(EObject domainElement, View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
+ Shape node = NotationFactory.eINSTANCE.createShape();
+ node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
+ node.setType(UMLVisualIDRegistry.getType(ActivityCompositeEditPart.VISUAL_ID));
+ ViewUtil.insertChildView(containerView, node, index, persisted);
+ node.setElement(domainElement);
+ stampShortcut(containerView, node);
+ // initializeFromPreferences
+ final IPreferenceStore prefStore = (IPreferenceStore)preferencesHint.getPreferenceStore();
+
+ PreferenceInitializerForElementHelper.initForegroundFromPrefs(node, prefStore, "Activity");
+
+ PreferenceInitializerForElementHelper.initFontStyleFromPrefs(node, prefStore, "Activity");
+
+ PreferenceInitializerForElementHelper.initBackgroundFromPrefs(node, prefStore, "Activity");
+
+ Node label5112 = createLabel(node, UMLVisualIDRegistry.getType(ActivityCompositeNameEditPart.VISUAL_ID));
+ createCompartment(node, UMLVisualIDRegistry.getType(ActivityCompositeCompartmentEditPart.VISUAL_ID), true, true, false, false);
+
+ PreferenceInitializerForElementHelper.initCompartmentsStatusFromPrefs(node, prefStore, "Activity");
+
+ return node;
+ }
+
+ /**
+ * @generated
+ */
+ public Node createInteraction_2061(EObject domainElement, View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
+ Shape node = NotationFactory.eINSTANCE.createShape();
+ node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
+ node.setType(UMLVisualIDRegistry.getType(InteractionCompositeEditPart.VISUAL_ID));
+ ViewUtil.insertChildView(containerView, node, index, persisted);
+ node.setElement(domainElement);
+ stampShortcut(containerView, node);
+ // initializeFromPreferences
+ final IPreferenceStore prefStore = (IPreferenceStore)preferencesHint.getPreferenceStore();
+
+ PreferenceInitializerForElementHelper.initForegroundFromPrefs(node, prefStore, "Interaction");
+
+ PreferenceInitializerForElementHelper.initFontStyleFromPrefs(node, prefStore, "Interaction");
+
+ PreferenceInitializerForElementHelper.initBackgroundFromPrefs(node, prefStore, "Interaction");
+
+ Node label5113 = createLabel(node, UMLVisualIDRegistry.getType(InteractionCompositeNameEditPart.VISUAL_ID));
+ createCompartment(node, UMLVisualIDRegistry.getType(InteractionCompositeCompartmentEditPart.VISUAL_ID), true, true, false, false);
+
+ PreferenceInitializerForElementHelper.initCompartmentsStatusFromPrefs(node, prefStore, "Interaction");
+
+ return node;
+ }
+
+ /**
+ * @generated
+ */
+ public Node createProtocolStateMachine_2062(EObject domainElement, View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
+ Shape node = NotationFactory.eINSTANCE.createShape();
+ node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
+ node.setType(UMLVisualIDRegistry.getType(ProtocolStateMachineCompositeEditPart.VISUAL_ID));
+ ViewUtil.insertChildView(containerView, node, index, persisted);
+ node.setElement(domainElement);
+ stampShortcut(containerView, node);
+ // initializeFromPreferences
+ final IPreferenceStore prefStore = (IPreferenceStore)preferencesHint.getPreferenceStore();
+
+ PreferenceInitializerForElementHelper.initForegroundFromPrefs(node, prefStore, "ProtocolStateMachine");
+
+ PreferenceInitializerForElementHelper.initFontStyleFromPrefs(node, prefStore, "ProtocolStateMachine");
+
+ PreferenceInitializerForElementHelper.initBackgroundFromPrefs(node, prefStore, "ProtocolStateMachine");
+
+ Node label5114 = createLabel(node, UMLVisualIDRegistry.getType(ProtocolStateMachineCompositeNameEditPart.VISUAL_ID));
+ createCompartment(node, UMLVisualIDRegistry.getType(ProtocolStateMachineCompositeCompartmentEditPart.VISUAL_ID), true, true, false, false);
+
+ PreferenceInitializerForElementHelper.initCompartmentsStatusFromPrefs(node, prefStore, "ProtocolStateMachine");
+
+ return node;
+ }
+
+ /**
+ * @generated
+ */
+ public Node createStateMachine_2063(EObject domainElement, View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
+ Shape node = NotationFactory.eINSTANCE.createShape();
+ node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
+ node.setType(UMLVisualIDRegistry.getType(StateMachineCompositeEditPart.VISUAL_ID));
+ ViewUtil.insertChildView(containerView, node, index, persisted);
+ node.setElement(domainElement);
+ stampShortcut(containerView, node);
+ // initializeFromPreferences
+ final IPreferenceStore prefStore = (IPreferenceStore)preferencesHint.getPreferenceStore();
+
+ PreferenceInitializerForElementHelper.initForegroundFromPrefs(node, prefStore, "StateMachine");
+
+ PreferenceInitializerForElementHelper.initFontStyleFromPrefs(node, prefStore, "StateMachine");
+
+ PreferenceInitializerForElementHelper.initBackgroundFromPrefs(node, prefStore, "StateMachine");
+
+ Node label5115 = createLabel(node, UMLVisualIDRegistry.getType(StateMachineCompositeNameEditPart.VISUAL_ID));
+ createCompartment(node, UMLVisualIDRegistry.getType(StateMachineCompositeCompartmentEditPart.VISUAL_ID), true, true, false, false);
+
+ PreferenceInitializerForElementHelper.initCompartmentsStatusFromPrefs(node, prefStore, "StateMachine");
+
+ return node;
+ }
+
+ /**
+ * @generated
+ */
+ public Node createFunctionBehavior_2064(EObject domainElement, View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
+ Shape node = NotationFactory.eINSTANCE.createShape();
+ node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
+ node.setType(UMLVisualIDRegistry.getType(FunctionBehaviorCompositeEditPart.VISUAL_ID));
+ ViewUtil.insertChildView(containerView, node, index, persisted);
+ node.setElement(domainElement);
+ stampShortcut(containerView, node);
+ // initializeFromPreferences
+ final IPreferenceStore prefStore = (IPreferenceStore)preferencesHint.getPreferenceStore();
+
+ PreferenceInitializerForElementHelper.initForegroundFromPrefs(node, prefStore, "FunctionBehavior");
+
+ PreferenceInitializerForElementHelper.initFontStyleFromPrefs(node, prefStore, "FunctionBehavior");
+
+ PreferenceInitializerForElementHelper.initBackgroundFromPrefs(node, prefStore, "FunctionBehavior");
+
+ Node label5116 = createLabel(node, UMLVisualIDRegistry.getType(FunctionBehaviorCompositeNameEditPart.VISUAL_ID));
+ createCompartment(node, UMLVisualIDRegistry.getType(FunctionBehaviorCompositeCompartmentEditPart.VISUAL_ID), true, true, false, false);
+
+ PreferenceInitializerForElementHelper.initCompartmentsStatusFromPrefs(node, prefStore, "FunctionBehavior");
+
+ return node;
+ }
+
+ /**
+ * @generated
+ */
+ public Node createOpaqueBehavior_2065(EObject domainElement, View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
+ Shape node = NotationFactory.eINSTANCE.createShape();
+ node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
+ node.setType(UMLVisualIDRegistry.getType(OpaqueBehaviorCompositeEditPart.VISUAL_ID));
+ ViewUtil.insertChildView(containerView, node, index, persisted);
+ node.setElement(domainElement);
+ stampShortcut(containerView, node);
+ // initializeFromPreferences
+ final IPreferenceStore prefStore = (IPreferenceStore)preferencesHint.getPreferenceStore();
+
+ PreferenceInitializerForElementHelper.initForegroundFromPrefs(node, prefStore, "OpaqueBehavior");
+
+ PreferenceInitializerForElementHelper.initFontStyleFromPrefs(node, prefStore, "OpaqueBehavior");
+
+ PreferenceInitializerForElementHelper.initBackgroundFromPrefs(node, prefStore, "OpaqueBehavior");
+
+ Node label5117 = createLabel(node, UMLVisualIDRegistry.getType(OpaqueBehaviorCompositeNameEditPart.VISUAL_ID));
+ createCompartment(node, UMLVisualIDRegistry.getType(OpaqueBehaviorCompositeCompartmentEditPart.VISUAL_ID), true, true, false, false);
+
+ PreferenceInitializerForElementHelper.initCompartmentsStatusFromPrefs(node, prefStore, "OpaqueBehavior");
+
+ return node;
+ }
+
+ /**
+ * @generated
+ */
+ public Node createComponent_2069(EObject domainElement, View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
+ Shape node = NotationFactory.eINSTANCE.createShape();
+ node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
+ node.setType(UMLVisualIDRegistry.getType(ComponentCompositeEditPart.VISUAL_ID));
+ ViewUtil.insertChildView(containerView, node, index, persisted);
+ node.setElement(domainElement);
+ stampShortcut(containerView, node);
+ // initializeFromPreferences
+ final IPreferenceStore prefStore = (IPreferenceStore)preferencesHint.getPreferenceStore();
+
+ PreferenceInitializerForElementHelper.initForegroundFromPrefs(node, prefStore, "Component");
+
+ PreferenceInitializerForElementHelper.initFontStyleFromPrefs(node, prefStore, "Component");
+
+ PreferenceInitializerForElementHelper.initBackgroundFromPrefs(node, prefStore, "Component");
+
+ Node label5121 = createLabel(node, UMLVisualIDRegistry.getType(ComponentCompositeNameEditPart.VISUAL_ID));
+ createCompartment(node, UMLVisualIDRegistry.getType(ComponentCompositeCompartmentEditPart.VISUAL_ID), true, true, false, false);
+
+ PreferenceInitializerForElementHelper.initCompartmentsStatusFromPrefs(node, prefStore, "Component");
+
+ return node;
+ }
+
+ /**
+ * @generated
+ */
+ public Node createDevice_2070(EObject domainElement, View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
+ Shape node = NotationFactory.eINSTANCE.createShape();
+ node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
+ node.setType(UMLVisualIDRegistry.getType(DeviceCompositeEditPart.VISUAL_ID));
+ ViewUtil.insertChildView(containerView, node, index, persisted);
+ node.setElement(domainElement);
+ stampShortcut(containerView, node);
+ // initializeFromPreferences
+ final IPreferenceStore prefStore = (IPreferenceStore)preferencesHint.getPreferenceStore();
+
+ PreferenceInitializerForElementHelper.initForegroundFromPrefs(node, prefStore, "Device");
+
+ PreferenceInitializerForElementHelper.initFontStyleFromPrefs(node, prefStore, "Device");
+
+ PreferenceInitializerForElementHelper.initBackgroundFromPrefs(node, prefStore, "Device");
+
+ Node label5122 = createLabel(node, UMLVisualIDRegistry.getType(DeviceCompositeNameEditPart.VISUAL_ID));
+ createCompartment(node, UMLVisualIDRegistry.getType(DeviceCompositeCompartmentEditPart.VISUAL_ID), true, true, false, false);
+
+ PreferenceInitializerForElementHelper.initCompartmentsStatusFromPrefs(node, prefStore, "Device");
+
+ return node;
+ }
+
+ /**
+ * @generated
+ */
+ public Node createExecutionEnvironment_2071(EObject domainElement, View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
+ Shape node = NotationFactory.eINSTANCE.createShape();
+ node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
+ node.setType(UMLVisualIDRegistry.getType(ExecutionEnvironmentCompositeEditPart.VISUAL_ID));
+ ViewUtil.insertChildView(containerView, node, index, persisted);
+ node.setElement(domainElement);
+ stampShortcut(containerView, node);
+ // initializeFromPreferences
+ final IPreferenceStore prefStore = (IPreferenceStore)preferencesHint.getPreferenceStore();
+
+ PreferenceInitializerForElementHelper.initForegroundFromPrefs(node, prefStore, "ExecutionEnvironment");
+
+ PreferenceInitializerForElementHelper.initFontStyleFromPrefs(node, prefStore, "ExecutionEnvironment");
+
+ PreferenceInitializerForElementHelper.initBackgroundFromPrefs(node, prefStore, "ExecutionEnvironment");
+
+ Node label5123 = createLabel(node, UMLVisualIDRegistry.getType(ExecutionEnvironmentCompositeNameEditPart.VISUAL_ID));
+ createCompartment(node, UMLVisualIDRegistry.getType(ExecutionEnvironmentCompositeCompartmentEditPart.VISUAL_ID), true, true, false, false);
+
+ PreferenceInitializerForElementHelper.initCompartmentsStatusFromPrefs(node, prefStore, "ExecutionEnvironment");
+
+ return node;
+ }
+
+ /**
+ * @generated
+ */
+ public Node createNode_2072(EObject domainElement, View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
+ Shape node = NotationFactory.eINSTANCE.createShape();
+ node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
+ node.setType(UMLVisualIDRegistry.getType(NodeCompositeEditPart.VISUAL_ID));
+ ViewUtil.insertChildView(containerView, node, index, persisted);
+ node.setElement(domainElement);
+ stampShortcut(containerView, node);
+ // initializeFromPreferences
+ final IPreferenceStore prefStore = (IPreferenceStore)preferencesHint.getPreferenceStore();
+
+ PreferenceInitializerForElementHelper.initForegroundFromPrefs(node, prefStore, "Node");
+
+ PreferenceInitializerForElementHelper.initFontStyleFromPrefs(node, prefStore, "Node");
+
+ PreferenceInitializerForElementHelper.initBackgroundFromPrefs(node, prefStore, "Node");
+
+ Node label5124 = createLabel(node, UMLVisualIDRegistry.getType(NodeCompositeNameEditPart.VISUAL_ID));
+ createCompartment(node, UMLVisualIDRegistry.getType(NodeCompositeCompartmentEditPart.VISUAL_ID), true, true, false, false);
+
+ PreferenceInitializerForElementHelper.initCompartmentsStatusFromPrefs(node, prefStore, "Node");
+
+ return node;
+ }
+
+ /**
+ * @generated
+ */
+ public Node createClass_2073(EObject domainElement, View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
+ Shape node = NotationFactory.eINSTANCE.createShape();
+ node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
+ node.setType(UMLVisualIDRegistry.getType(ClassCompositeEditPart.VISUAL_ID));
+ ViewUtil.insertChildView(containerView, node, index, persisted);
+ node.setElement(domainElement);
+ stampShortcut(containerView, node);
+ // initializeFromPreferences
+ final IPreferenceStore prefStore = (IPreferenceStore)preferencesHint.getPreferenceStore();
+
+ PreferenceInitializerForElementHelper.initForegroundFromPrefs(node, prefStore, "Class");
+
+ PreferenceInitializerForElementHelper.initFontStyleFromPrefs(node, prefStore, "Class");
+
+ PreferenceInitializerForElementHelper.initBackgroundFromPrefs(node, prefStore, "Class");
+
+ Node label5156 = createLabel(node, UMLVisualIDRegistry.getType(ClassCompositeNameEditPart.VISUAL_ID));
+ createCompartment(node, UMLVisualIDRegistry.getType(ClassCompositeCompartmentEditPart.VISUAL_ID), true, true, false, false);
+
+ PreferenceInitializerForElementHelper.initCompartmentsStatusFromPrefs(node, prefStore, "Class");
+
+ return node;
+ }
+
+ /**
+ * @generated
+ */
+ public Node createCollaboration_2075(EObject domainElement, View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
+ Shape node = NotationFactory.eINSTANCE.createShape();
+ node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
+ node.setType(UMLVisualIDRegistry.getType(CollaborationCompositeEditPart.VISUAL_ID));
+ ViewUtil.insertChildView(containerView, node, index, persisted);
+ node.setElement(domainElement);
+ stampShortcut(containerView, node);
+ // initializeFromPreferences
+ final IPreferenceStore prefStore = (IPreferenceStore)preferencesHint.getPreferenceStore();
+
+ PreferenceInitializerForElementHelper.initForegroundFromPrefs(node, prefStore, "Collaboration");
+
+ PreferenceInitializerForElementHelper.initFontStyleFromPrefs(node, prefStore, "Collaboration");
+
+ PreferenceInitializerForElementHelper.initBackgroundFromPrefs(node, prefStore, "Collaboration");
+
+ Node label5158 = createLabel(node, UMLVisualIDRegistry.getType(CollaborationCompositeNameEditPart.VISUAL_ID));
+ createCompartment(node, UMLVisualIDRegistry.getType(CollaborationCompositeCompartmentEditPart.VISUAL_ID), true, true, false, false);
+
+ PreferenceInitializerForElementHelper.initCompartmentsStatusFromPrefs(node, prefStore, "Collaboration");
+
+ return node;
+ }
+
+ /**
+ * @generated
+ */
+ public Node createInterface_2076(EObject domainElement, View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
+ Shape node = NotationFactory.eINSTANCE.createShape();
+ node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
+ node.setType(UMLVisualIDRegistry.getType(InterfaceEditPart.VISUAL_ID));
+ ViewUtil.insertChildView(containerView, node, index, persisted);
+ node.setElement(domainElement);
+ stampShortcut(containerView, node);
+ // initializeFromPreferences
+ final IPreferenceStore prefStore = (IPreferenceStore)preferencesHint.getPreferenceStore();
+
+ PreferenceInitializerForElementHelper.initForegroundFromPrefs(node, prefStore, "Interface");
+
+ PreferenceInitializerForElementHelper.initFontStyleFromPrefs(node, prefStore, "Interface");
+
+ PreferenceInitializerForElementHelper.initBackgroundFromPrefs(node, prefStore, "Interface");
+
+ Node label5159 = createLabel(node, UMLVisualIDRegistry.getType(InterfaceNameEditPart.VISUAL_ID));
+
+ return node;
+ }
+
+ /**
+ * @generated
+ */
+ public Node createPrimitiveType_2066(EObject domainElement, View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
+ Shape node = NotationFactory.eINSTANCE.createShape();
+ node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
+ node.setType(UMLVisualIDRegistry.getType(PrimitiveTypeEditPart.VISUAL_ID));
+ ViewUtil.insertChildView(containerView, node, index, persisted);
+ node.setElement(domainElement);
+ stampShortcut(containerView, node);
+ // initializeFromPreferences
+ final IPreferenceStore prefStore = (IPreferenceStore)preferencesHint.getPreferenceStore();
+
+ PreferenceInitializerForElementHelper.initForegroundFromPrefs(node, prefStore, "PrimitiveType");
+
+ PreferenceInitializerForElementHelper.initFontStyleFromPrefs(node, prefStore, "PrimitiveType");
+
+ PreferenceInitializerForElementHelper.initBackgroundFromPrefs(node, prefStore, "PrimitiveType");
+
+ Node label5118 = createLabel(node, UMLVisualIDRegistry.getType(PrimitiveTypeNameEditPart.VISUAL_ID));
+
+ return node;
+ }
+
+ /**
+ * @generated
+ */
+ public Node createEnumeration_2067(EObject domainElement, View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
+ Shape node = NotationFactory.eINSTANCE.createShape();
+ node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
+ node.setType(UMLVisualIDRegistry.getType(EnumerationEditPart.VISUAL_ID));
+ ViewUtil.insertChildView(containerView, node, index, persisted);
+ node.setElement(domainElement);
+ stampShortcut(containerView, node);
+ // initializeFromPreferences
+ final IPreferenceStore prefStore = (IPreferenceStore)preferencesHint.getPreferenceStore();
+
+ PreferenceInitializerForElementHelper.initForegroundFromPrefs(node, prefStore, "Enumeration");
+
+ PreferenceInitializerForElementHelper.initFontStyleFromPrefs(node, prefStore, "Enumeration");
+
+ PreferenceInitializerForElementHelper.initBackgroundFromPrefs(node, prefStore, "Enumeration");
+
+ Node label5119 = createLabel(node, UMLVisualIDRegistry.getType(EnumerationNameEditPart.VISUAL_ID));
+ createCompartment(node, UMLVisualIDRegistry.getType(EnumerationEnumerationLiteralCompartmentEditPart.VISUAL_ID), true, true, true, true);
+
+ PreferenceInitializerForElementHelper.initCompartmentsStatusFromPrefs(node, prefStore, "Enumeration");
+
+ return node;
+ }
+
+ /**
+ * @generated
+ */
+ public Node createDataType_2068(EObject domainElement, View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
+ Shape node = NotationFactory.eINSTANCE.createShape();
+ node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
+ node.setType(UMLVisualIDRegistry.getType(DataTypeEditPart.VISUAL_ID));
+ ViewUtil.insertChildView(containerView, node, index, persisted);
+ node.setElement(domainElement);
+ stampShortcut(containerView, node);
+ // initializeFromPreferences
+ final IPreferenceStore prefStore = (IPreferenceStore)preferencesHint.getPreferenceStore();
+
+ PreferenceInitializerForElementHelper.initForegroundFromPrefs(node, prefStore, "DataType");
+
+ PreferenceInitializerForElementHelper.initFontStyleFromPrefs(node, prefStore, "DataType");
+
+ PreferenceInitializerForElementHelper.initBackgroundFromPrefs(node, prefStore, "DataType");
+
+ Node label5120 = createLabel(node, UMLVisualIDRegistry.getType(DataTypeNameEditPart.VISUAL_ID));
+ createCompartment(node, UMLVisualIDRegistry.getType(DataTypeAttributeCompartmentEditPart.VISUAL_ID), true, true, true, true);
+ createCompartment(node, UMLVisualIDRegistry.getType(DataTypeOperationCompartmentEditPart.VISUAL_ID), true, true, true, true);
+
+ PreferenceInitializerForElementHelper.initCompartmentsStatusFromPrefs(node, prefStore, "DataType");
+
+ return node;
+ }
+
+ /**
+ * @generated
+ */
+ public Node createActor_2077(EObject domainElement, View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
+ Node node = NotationFactory.eINSTANCE.createShape();
+ node.getStyles().add(NotationFactory.eINSTANCE.createDescriptionStyle());
+ node.getStyles().add(NotationFactory.eINSTANCE.createFontStyle());
+ node.getStyles().add(NotationFactory.eINSTANCE.createFillStyle());
+ node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
+ node.setType(UMLVisualIDRegistry.getType(ActorEditPart.VISUAL_ID));
+ ViewUtil.insertChildView(containerView, node, index, persisted);
+ node.setElement(domainElement);
+ stampShortcut(containerView, node);
+ // initializeFromPreferences
+ final IPreferenceStore prefStore = (IPreferenceStore)preferencesHint.getPreferenceStore();
+
+ PreferenceInitializerForElementHelper.initFontStyleFromPrefs(node, prefStore, "Actor");
+
+ PreferenceInitializerForElementHelper.initBackgroundFromPrefs(node, prefStore, "Actor");
+
+ Node label5160 = createLabel(node, UMLVisualIDRegistry.getType(ActorNameEditPart.VISUAL_ID));
+
+ return node;
+ }
+
+ /**
+ * @generated
+ */
+ public Node createDeploymentSpecification_2078(EObject domainElement, View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
+ Node node = NotationFactory.eINSTANCE.createShape();
+ node.getStyles().add(NotationFactory.eINSTANCE.createDescriptionStyle());
+ node.getStyles().add(NotationFactory.eINSTANCE.createFontStyle());
+ node.getStyles().add(NotationFactory.eINSTANCE.createFillStyle());
+ node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
+ node.setType(UMLVisualIDRegistry.getType(DeploymentSpecificationEditPart.VISUAL_ID));
+ ViewUtil.insertChildView(containerView, node, index, persisted);
+ node.setElement(domainElement);
+ stampShortcut(containerView, node);
+ // initializeFromPreferences
+ final IPreferenceStore prefStore = (IPreferenceStore)preferencesHint.getPreferenceStore();
+
+ PreferenceInitializerForElementHelper.initFontStyleFromPrefs(node, prefStore, "DeploymentSpecification");
+
+ PreferenceInitializerForElementHelper.initBackgroundFromPrefs(node, prefStore, "DeploymentSpecification");
+
+ Node label5161 = createLabel(node, UMLVisualIDRegistry.getType(DeploymentSpecificationNameEditPart.VISUAL_ID));
+
+ return node;
+ }
+
+ /**
+ * @generated
+ */
+ public Node createArtifact_2079(EObject domainElement, View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
+ Node node = NotationFactory.eINSTANCE.createShape();
+ node.getStyles().add(NotationFactory.eINSTANCE.createDescriptionStyle());
+ node.getStyles().add(NotationFactory.eINSTANCE.createFontStyle());
+ node.getStyles().add(NotationFactory.eINSTANCE.createFillStyle());
+ node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
+ node.setType(UMLVisualIDRegistry.getType(ArtifactEditPart.VISUAL_ID));
+ ViewUtil.insertChildView(containerView, node, index, persisted);
+ node.setElement(domainElement);
+ stampShortcut(containerView, node);
+ // initializeFromPreferences
+ final IPreferenceStore prefStore = (IPreferenceStore)preferencesHint.getPreferenceStore();
+
+ PreferenceInitializerForElementHelper.initFontStyleFromPrefs(node, prefStore, "Artifact");
+
+ PreferenceInitializerForElementHelper.initBackgroundFromPrefs(node, prefStore, "Artifact");
+
+ Node label5162 = createLabel(node, UMLVisualIDRegistry.getType(ArtifactNameEditPart.VISUAL_ID));
+
+ return node;
+ }
+
+ /**
+ * @generated
+ */
+ public Node createInformationItem_2080(EObject domainElement, View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
+ Shape node = NotationFactory.eINSTANCE.createShape();
+ node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
+ node.setType(UMLVisualIDRegistry.getType(InformationItemEditPart.VISUAL_ID));
+ ViewUtil.insertChildView(containerView, node, index, persisted);
+ node.setElement(domainElement);
+ stampShortcut(containerView, node);
+ // initializeFromPreferences
+ final IPreferenceStore prefStore = (IPreferenceStore)preferencesHint.getPreferenceStore();
+
+ PreferenceInitializerForElementHelper.initForegroundFromPrefs(node, prefStore, "InformationItem");
+
+ PreferenceInitializerForElementHelper.initFontStyleFromPrefs(node, prefStore, "InformationItem");
+
+ PreferenceInitializerForElementHelper.initBackgroundFromPrefs(node, prefStore, "InformationItem");
+
+ Node label5163 = createLabel(node, UMLVisualIDRegistry.getType(InformationItemNameEditPart.VISUAL_ID));
+
+ return node;
+ }
+
+ /**
+ * @generated
+ */
+ public Node createSignal_2081(EObject domainElement, View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
+ Shape node = NotationFactory.eINSTANCE.createShape();
+ node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
+ node.setType(UMLVisualIDRegistry.getType(SignalEditPart.VISUAL_ID));
+ ViewUtil.insertChildView(containerView, node, index, persisted);
+ node.setElement(domainElement);
+ stampShortcut(containerView, node);
+ // initializeFromPreferences
+ final IPreferenceStore prefStore = (IPreferenceStore)preferencesHint.getPreferenceStore();
+
+ PreferenceInitializerForElementHelper.initForegroundFromPrefs(node, prefStore, "Signal");
+
+ PreferenceInitializerForElementHelper.initFontStyleFromPrefs(node, prefStore, "Signal");
+
+ PreferenceInitializerForElementHelper.initBackgroundFromPrefs(node, prefStore, "Signal");
+
+ Node label5164 = createLabel(node, UMLVisualIDRegistry.getType(SignalNameEditPart.VISUAL_ID));
+
+ return node;
+ }
+
+ /**
+ * @generated
+ */
+ public Node createUseCase_2082(EObject domainElement, View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
+ Node node = NotationFactory.eINSTANCE.createShape();
+ node.getStyles().add(NotationFactory.eINSTANCE.createDescriptionStyle());
+ node.getStyles().add(NotationFactory.eINSTANCE.createFontStyle());
+ node.getStyles().add(NotationFactory.eINSTANCE.createFillStyle());
+ node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
+ node.setType(UMLVisualIDRegistry.getType(UseCaseEditPart.VISUAL_ID));
+ ViewUtil.insertChildView(containerView, node, index, persisted);
+ node.setElement(domainElement);
+ stampShortcut(containerView, node);
+ // initializeFromPreferences
+ final IPreferenceStore prefStore = (IPreferenceStore)preferencesHint.getPreferenceStore();
+
+ PreferenceInitializerForElementHelper.initFontStyleFromPrefs(node, prefStore, "UseCase");
+
+ PreferenceInitializerForElementHelper.initBackgroundFromPrefs(node, prefStore, "UseCase");
+
+ Node label5165 = createLabel(node, UMLVisualIDRegistry.getType(UseCaseNameEditPart.VISUAL_ID));
+
+ return node;
+ }
+
+ /**
+ * @generated
+ */
+ public Node createSignalEvent_2083(EObject domainElement, View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
+ Node node = NotationFactory.eINSTANCE.createShape();
+ node.getStyles().add(NotationFactory.eINSTANCE.createDescriptionStyle());
+ node.getStyles().add(NotationFactory.eINSTANCE.createFontStyle());
+ node.getStyles().add(NotationFactory.eINSTANCE.createFillStyle());
+ node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
+ node.setType(UMLVisualIDRegistry.getType(SignalEventEditPart.VISUAL_ID));
+ ViewUtil.insertChildView(containerView, node, index, persisted);
+ node.setElement(domainElement);
+ stampShortcut(containerView, node);
+ // initializeFromPreferences
+ final IPreferenceStore prefStore = (IPreferenceStore)preferencesHint.getPreferenceStore();
+
+ PreferenceInitializerForElementHelper.initFontStyleFromPrefs(node, prefStore, "SignalEvent");
+
+ PreferenceInitializerForElementHelper.initBackgroundFromPrefs(node, prefStore, "SignalEvent");
+
+ Node label5166 = createLabel(node, UMLVisualIDRegistry.getType(SignalEventNameEditPart.VISUAL_ID));
+
+ return node;
+ }
+
+ /**
+ * @generated
+ */
+ public Node createCallEvent_2084(EObject domainElement, View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
+ Node node = NotationFactory.eINSTANCE.createShape();
+ node.getStyles().add(NotationFactory.eINSTANCE.createDescriptionStyle());
+ node.getStyles().add(NotationFactory.eINSTANCE.createFontStyle());
+ node.getStyles().add(NotationFactory.eINSTANCE.createFillStyle());
+ node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
+ node.setType(UMLVisualIDRegistry.getType(CallEventEditPart.VISUAL_ID));
+ ViewUtil.insertChildView(containerView, node, index, persisted);
+ node.setElement(domainElement);
+ stampShortcut(containerView, node);
+ // initializeFromPreferences
+ final IPreferenceStore prefStore = (IPreferenceStore)preferencesHint.getPreferenceStore();
+
+ PreferenceInitializerForElementHelper.initFontStyleFromPrefs(node, prefStore, "CallEvent");
+
+ PreferenceInitializerForElementHelper.initBackgroundFromPrefs(node, prefStore, "CallEvent");
+
+ Node label5167 = createLabel(node, UMLVisualIDRegistry.getType(CallEventNameEditPart.VISUAL_ID));
+
+ return node;
+ }
+
+ /**
+ * @generated
+ */
+ public Node createAnyReceiveEvent_2085(EObject domainElement, View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
+ Node node = NotationFactory.eINSTANCE.createShape();
+ node.getStyles().add(NotationFactory.eINSTANCE.createDescriptionStyle());
+ node.getStyles().add(NotationFactory.eINSTANCE.createFontStyle());
+ node.getStyles().add(NotationFactory.eINSTANCE.createFillStyle());
+ node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
+ node.setType(UMLVisualIDRegistry.getType(AnyReceiveEventEditPart.VISUAL_ID));
+ ViewUtil.insertChildView(containerView, node, index, persisted);
+ node.setElement(domainElement);
+ stampShortcut(containerView, node);
+ // initializeFromPreferences
+ final IPreferenceStore prefStore = (IPreferenceStore)preferencesHint.getPreferenceStore();
+
+ PreferenceInitializerForElementHelper.initFontStyleFromPrefs(node, prefStore, "AnyReceiveEvent");
+
+ PreferenceInitializerForElementHelper.initBackgroundFromPrefs(node, prefStore, "AnyReceiveEvent");
+
+ Node label5168 = createLabel(node, UMLVisualIDRegistry.getType(AnyReceiveEventNameEditPart.VISUAL_ID));
+
+ return node;
+ }
+
+ /**
+ * @generated
+ */
+ public Node createSendSignalEvent_2086(EObject domainElement, View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
+ Node node = NotationFactory.eINSTANCE.createShape();
+ node.getStyles().add(NotationFactory.eINSTANCE.createDescriptionStyle());
+ node.getStyles().add(NotationFactory.eINSTANCE.createFontStyle());
+ node.getStyles().add(NotationFactory.eINSTANCE.createFillStyle());
+ node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
+ node.setType(UMLVisualIDRegistry.getType(SendSignalEventEditPart.VISUAL_ID));
+ ViewUtil.insertChildView(containerView, node, index, persisted);
+ node.setElement(domainElement);
+ stampShortcut(containerView, node);
+ // initializeFromPreferences
+ final IPreferenceStore prefStore = (IPreferenceStore)preferencesHint.getPreferenceStore();
+
+ PreferenceInitializerForElementHelper.initFontStyleFromPrefs(node, prefStore, "SendSignalEvent");
+
+ PreferenceInitializerForElementHelper.initBackgroundFromPrefs(node, prefStore, "SendSignalEvent");
+
+ Node label5169 = createLabel(node, UMLVisualIDRegistry.getType(SendSignalEventNameEditPart.VISUAL_ID));
+
+ return node;
+ }
+
+ /**
+ * @generated
+ */
+ public Node createSendOperationEvent_2087(EObject domainElement, View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
+ Node node = NotationFactory.eINSTANCE.createShape();
+ node.getStyles().add(NotationFactory.eINSTANCE.createDescriptionStyle());
+ node.getStyles().add(NotationFactory.eINSTANCE.createFontStyle());
+ node.getStyles().add(NotationFactory.eINSTANCE.createFillStyle());
+ node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
+ node.setType(UMLVisualIDRegistry.getType(SendOperationEventEditPart.VISUAL_ID));
+ ViewUtil.insertChildView(containerView, node, index, persisted);
+ node.setElement(domainElement);
+ stampShortcut(containerView, node);
+ // initializeFromPreferences
+ final IPreferenceStore prefStore = (IPreferenceStore)preferencesHint.getPreferenceStore();
+
+ PreferenceInitializerForElementHelper.initFontStyleFromPrefs(node, prefStore, "SendOperationEvent");
+
+ PreferenceInitializerForElementHelper.initBackgroundFromPrefs(node, prefStore, "SendOperationEvent");
+
+ Node label5170 = createLabel(node, UMLVisualIDRegistry.getType(SendOperationEventNameEditPart.VISUAL_ID));
+
+ return node;
+ }
+
+ /**
+ * @generated
+ */
+ public Node createChangeEvent_2088(EObject domainElement, View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
+ Node node = NotationFactory.eINSTANCE.createShape();
+ node.getStyles().add(NotationFactory.eINSTANCE.createDescriptionStyle());
+ node.getStyles().add(NotationFactory.eINSTANCE.createFontStyle());
+ node.getStyles().add(NotationFactory.eINSTANCE.createFillStyle());
+ node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
+ node.setType(UMLVisualIDRegistry.getType(ChangeEventEditPart.VISUAL_ID));
+ ViewUtil.insertChildView(containerView, node, index, persisted);
+ node.setElement(domainElement);
+ stampShortcut(containerView, node);
+ // initializeFromPreferences
+ final IPreferenceStore prefStore = (IPreferenceStore)preferencesHint.getPreferenceStore();
+
+ PreferenceInitializerForElementHelper.initFontStyleFromPrefs(node, prefStore, "ChangeEvent");
+
+ PreferenceInitializerForElementHelper.initBackgroundFromPrefs(node, prefStore, "ChangeEvent");
+
+ Node label5171 = createLabel(node, UMLVisualIDRegistry.getType(ChangeEventNameEditPart.VISUAL_ID));
+
+ return node;
+ }
+
+ /**
+ * @generated
+ */
+ public Node createTimeEvent_2089(EObject domainElement, View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
+ Node node = NotationFactory.eINSTANCE.createShape();
+ node.getStyles().add(NotationFactory.eINSTANCE.createDescriptionStyle());
+ node.getStyles().add(NotationFactory.eINSTANCE.createFontStyle());
+ node.getStyles().add(NotationFactory.eINSTANCE.createFillStyle());
+ node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
+ node.setType(UMLVisualIDRegistry.getType(TimeEventEditPart.VISUAL_ID));
+ ViewUtil.insertChildView(containerView, node, index, persisted);
+ node.setElement(domainElement);
+ stampShortcut(containerView, node);
+ // initializeFromPreferences
+ final IPreferenceStore prefStore = (IPreferenceStore)preferencesHint.getPreferenceStore();
+
+ PreferenceInitializerForElementHelper.initFontStyleFromPrefs(node, prefStore, "TimeEvent");
+
+ PreferenceInitializerForElementHelper.initBackgroundFromPrefs(node, prefStore, "TimeEvent");
+
+ Node label5172 = createLabel(node, UMLVisualIDRegistry.getType(TimeEventNameEditPart.VISUAL_ID));
+
+ return node;
+ }
+
+ /**
+ * @generated
+ */
+ public Node createCreationEvent_2090(EObject domainElement, View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
+ Node node = NotationFactory.eINSTANCE.createShape();
+ node.getStyles().add(NotationFactory.eINSTANCE.createDescriptionStyle());
+ node.getStyles().add(NotationFactory.eINSTANCE.createFontStyle());
+ node.getStyles().add(NotationFactory.eINSTANCE.createFillStyle());
+ node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
+ node.setType(UMLVisualIDRegistry.getType(CreationEventEditPart.VISUAL_ID));
+ ViewUtil.insertChildView(containerView, node, index, persisted);
+ node.setElement(domainElement);
+ stampShortcut(containerView, node);
+ // initializeFromPreferences
+ final IPreferenceStore prefStore = (IPreferenceStore)preferencesHint.getPreferenceStore();
+
+ PreferenceInitializerForElementHelper.initFontStyleFromPrefs(node, prefStore, "CreationEvent");
+
+ PreferenceInitializerForElementHelper.initBackgroundFromPrefs(node, prefStore, "CreationEvent");
+
+ Node label5173 = createLabel(node, UMLVisualIDRegistry.getType(CreationEventNameEditPart.VISUAL_ID));
+
+ return node;
+ }
+
+ /**
+ * @generated
+ */
+ public Node createDestructionEvent_2091(EObject domainElement, View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
+ Node node = NotationFactory.eINSTANCE.createShape();
+ node.getStyles().add(NotationFactory.eINSTANCE.createDescriptionStyle());
+ node.getStyles().add(NotationFactory.eINSTANCE.createFontStyle());
+ node.getStyles().add(NotationFactory.eINSTANCE.createFillStyle());
+ node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
+ node.setType(UMLVisualIDRegistry.getType(DestructionEventEditPart.VISUAL_ID));
+ ViewUtil.insertChildView(containerView, node, index, persisted);
+ node.setElement(domainElement);
+ stampShortcut(containerView, node);
+ // initializeFromPreferences
+ final IPreferenceStore prefStore = (IPreferenceStore)preferencesHint.getPreferenceStore();
+
+ PreferenceInitializerForElementHelper.initFontStyleFromPrefs(node, prefStore, "DestructionEvent");
+
+ PreferenceInitializerForElementHelper.initBackgroundFromPrefs(node, prefStore, "DestructionEvent");
+
+ Node label5174 = createLabel(node, UMLVisualIDRegistry.getType(DestructionEventNameEditPart.VISUAL_ID));
+
+ return node;
+ }
+
+ /**
+ * @generated
+ */
+ public Node createExecutionEvent_2092(EObject domainElement, View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
+ Node node = NotationFactory.eINSTANCE.createShape();
+ node.getStyles().add(NotationFactory.eINSTANCE.createDescriptionStyle());
+ node.getStyles().add(NotationFactory.eINSTANCE.createFontStyle());
+ node.getStyles().add(NotationFactory.eINSTANCE.createFillStyle());
+ node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
+ node.setType(UMLVisualIDRegistry.getType(ExecutionEventEditPart.VISUAL_ID));
+ ViewUtil.insertChildView(containerView, node, index, persisted);
+ node.setElement(domainElement);
+ stampShortcut(containerView, node);
+ // initializeFromPreferences
+ final IPreferenceStore prefStore = (IPreferenceStore)preferencesHint.getPreferenceStore();
+
+ PreferenceInitializerForElementHelper.initFontStyleFromPrefs(node, prefStore, "ExecutionEvent");
+
+ PreferenceInitializerForElementHelper.initBackgroundFromPrefs(node, prefStore, "ExecutionEvent");
+
+ Node label5175 = createLabel(node, UMLVisualIDRegistry.getType(ExecutionEventNameEditPart.VISUAL_ID));
+
+ return node;
+ }
+
+ /**
+ * @generated
+ */
+ public Node createDurationObservation_2093(EObject domainElement, View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
+ Shape node = NotationFactory.eINSTANCE.createShape();
+ node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
+ node.setType(UMLVisualIDRegistry.getType(DurationObservationEditPart.VISUAL_ID));
+ ViewUtil.insertChildView(containerView, node, index, persisted);
+ node.setElement(domainElement);
+ stampShortcut(containerView, node);
+ // initializeFromPreferences
+ final IPreferenceStore prefStore = (IPreferenceStore)preferencesHint.getPreferenceStore();
+
+ PreferenceInitializerForElementHelper.initForegroundFromPrefs(node, prefStore, "DurationObservation");
+
+ PreferenceInitializerForElementHelper.initFontStyleFromPrefs(node, prefStore, "DurationObservation");
+
+ PreferenceInitializerForElementHelper.initBackgroundFromPrefs(node, prefStore, "DurationObservation");
+
+ Node label5151 = createLabel(node, UMLVisualIDRegistry.getType(DurationObservationNameEditPart.VISUAL_ID));
+ label5151.setLayoutConstraint(NotationFactory.eINSTANCE.createLocation());
+
+ Location location5151 = (Location)label5151.getLayoutConstraint();
+ location5151.setX(25);
+ location5151.setY(3);
+ Node label5152 = createLabel(node, UMLVisualIDRegistry.getType(DurationObservationStereotypeLabelEditPart.VISUAL_ID));
+ label5152.setLayoutConstraint(NotationFactory.eINSTANCE.createLocation());
+
+ Location location5152 = (Location)label5152.getLayoutConstraint();
+ location5152.setX(25);
+ location5152.setY(-10);
+
+ return node;
+ }
+
+ /**
+ * @generated
+ */
+ public Node createTimeObservation_2094(EObject domainElement, View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
+ Shape node = NotationFactory.eINSTANCE.createShape();
+ node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
+ node.setType(UMLVisualIDRegistry.getType(TimeObservationEditPart.VISUAL_ID));
+ ViewUtil.insertChildView(containerView, node, index, persisted);
+ node.setElement(domainElement);
+ stampShortcut(containerView, node);
+ // initializeFromPreferences
+ final IPreferenceStore prefStore = (IPreferenceStore)preferencesHint.getPreferenceStore();
+
+ PreferenceInitializerForElementHelper.initForegroundFromPrefs(node, prefStore, "TimeObservation");
+
+ PreferenceInitializerForElementHelper.initFontStyleFromPrefs(node, prefStore, "TimeObservation");
+
+ PreferenceInitializerForElementHelper.initBackgroundFromPrefs(node, prefStore, "TimeObservation");
+
+ Node label5142 = createLabel(node, UMLVisualIDRegistry.getType(TimeObservationNameEditPart.VISUAL_ID));
+ label5142.setLayoutConstraint(NotationFactory.eINSTANCE.createLocation());
+
+ Location location5142 = (Location)label5142.getLayoutConstraint();
+ location5142.setX(25);
+ location5142.setY(3);
+ Node label5143 = createLabel(node, UMLVisualIDRegistry.getType(TimeObservationStereotypeLabelEditPart.VISUAL_ID));
+ label5143.setLayoutConstraint(NotationFactory.eINSTANCE.createLocation());
+
+ Location location5143 = (Location)label5143.getLayoutConstraint();
+ location5143.setX(25);
+ location5143.setY(-10);
+
+ return node;
+ }
+
+ /**
+ * @generated
+ */
+ public Node createLiteralBoolean_2095(EObject domainElement, View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
+ Node node = NotationFactory.eINSTANCE.createShape();
+ node.getStyles().add(NotationFactory.eINSTANCE.createDescriptionStyle());
+ node.getStyles().add(NotationFactory.eINSTANCE.createFontStyle());
+ node.getStyles().add(NotationFactory.eINSTANCE.createFillStyle());
+ node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
+ node.setType(UMLVisualIDRegistry.getType(LiteralBooleanEditPart.VISUAL_ID));
+ ViewUtil.insertChildView(containerView, node, index, persisted);
+ node.setElement(domainElement);
+ stampShortcut(containerView, node);
+ // initializeFromPreferences
+ final IPreferenceStore prefStore = (IPreferenceStore)preferencesHint.getPreferenceStore();
+
+ PreferenceInitializerForElementHelper.initFontStyleFromPrefs(node, prefStore, "LiteralBoolean");
+
+ PreferenceInitializerForElementHelper.initBackgroundFromPrefs(node, prefStore, "LiteralBoolean");
+
+ Node label5178 = createLabel(node, UMLVisualIDRegistry.getType(LiteralBooleanNameEditPart.VISUAL_ID));
+
+ return node;
+ }
+
+ /**
+ * @generated
+ */
+ public Node createLiteralInteger_2096(EObject domainElement, View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
+ Node node = NotationFactory.eINSTANCE.createShape();
+ node.getStyles().add(NotationFactory.eINSTANCE.createDescriptionStyle());
+ node.getStyles().add(NotationFactory.eINSTANCE.createFontStyle());
+ node.getStyles().add(NotationFactory.eINSTANCE.createFillStyle());
+ node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
+ node.setType(UMLVisualIDRegistry.getType(LiteralIntegerEditPart.VISUAL_ID));
+ ViewUtil.insertChildView(containerView, node, index, persisted);
+ node.setElement(domainElement);
+ stampShortcut(containerView, node);
+ // initializeFromPreferences
+ final IPreferenceStore prefStore = (IPreferenceStore)preferencesHint.getPreferenceStore();
+
+ PreferenceInitializerForElementHelper.initFontStyleFromPrefs(node, prefStore, "LiteralInteger");
+
+ PreferenceInitializerForElementHelper.initBackgroundFromPrefs(node, prefStore, "LiteralInteger");
+
+ Node label5179 = createLabel(node, UMLVisualIDRegistry.getType(LiteralIntegerNameEditPart.VISUAL_ID));
+
+ return node;
+ }
+
+ /**
+ * @generated
+ */
+ public Node createLiteralNull_2097(EObject domainElement, View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
+ Node node = NotationFactory.eINSTANCE.createShape();
+ node.getStyles().add(NotationFactory.eINSTANCE.createDescriptionStyle());
+ node.getStyles().add(NotationFactory.eINSTANCE.createFontStyle());
+ node.getStyles().add(NotationFactory.eINSTANCE.createFillStyle());
+ node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
+ node.setType(UMLVisualIDRegistry.getType(LiteralNullEditPart.VISUAL_ID));
+ ViewUtil.insertChildView(containerView, node, index, persisted);
+ node.setElement(domainElement);
+ stampShortcut(containerView, node);
+ // initializeFromPreferences
+ final IPreferenceStore prefStore = (IPreferenceStore)preferencesHint.getPreferenceStore();
+
+ PreferenceInitializerForElementHelper.initFontStyleFromPrefs(node, prefStore, "LiteralNull");
+
+ PreferenceInitializerForElementHelper.initBackgroundFromPrefs(node, prefStore, "LiteralNull");
+
+ Node label5180 = createLabel(node, UMLVisualIDRegistry.getType(LiteralNullNameEditPart.VISUAL_ID));
+
+ return node;
+ }
+
+ /**
+ * @generated
+ */
+ public Node createLiteralString_2098(EObject domainElement, View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
+ Node node = NotationFactory.eINSTANCE.createShape();
+ node.getStyles().add(NotationFactory.eINSTANCE.createDescriptionStyle());
+ node.getStyles().add(NotationFactory.eINSTANCE.createFontStyle());
+ node.getStyles().add(NotationFactory.eINSTANCE.createFillStyle());
+ node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
+ node.setType(UMLVisualIDRegistry.getType(LiteralStringEditPart.VISUAL_ID));
+ ViewUtil.insertChildView(containerView, node, index, persisted);
+ node.setElement(domainElement);
+ stampShortcut(containerView, node);
+ // initializeFromPreferences
+ final IPreferenceStore prefStore = (IPreferenceStore)preferencesHint.getPreferenceStore();
+
+ PreferenceInitializerForElementHelper.initFontStyleFromPrefs(node, prefStore, "LiteralString");
+
+ PreferenceInitializerForElementHelper.initBackgroundFromPrefs(node, prefStore, "LiteralString");
+
+ Node label5181 = createLabel(node, UMLVisualIDRegistry.getType(LiteralStringNameEditPart.VISUAL_ID));
+
+ return node;
+ }
+
+ /**
+ * @generated
+ */
+ public Node createLiteralUnlimitedNatural_2099(EObject domainElement, View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
+ Node node = NotationFactory.eINSTANCE.createShape();
+ node.getStyles().add(NotationFactory.eINSTANCE.createDescriptionStyle());
+ node.getStyles().add(NotationFactory.eINSTANCE.createFontStyle());
+ node.getStyles().add(NotationFactory.eINSTANCE.createFillStyle());
+ node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
+ node.setType(UMLVisualIDRegistry.getType(LiteralUnlimitedNaturalEditPart.VISUAL_ID));
+ ViewUtil.insertChildView(containerView, node, index, persisted);
+ node.setElement(domainElement);
+ stampShortcut(containerView, node);
+ // initializeFromPreferences
+ final IPreferenceStore prefStore = (IPreferenceStore)preferencesHint.getPreferenceStore();
+
+ PreferenceInitializerForElementHelper.initFontStyleFromPrefs(node, prefStore, "LiteralUnlimitedNatural");
+
+ PreferenceInitializerForElementHelper.initBackgroundFromPrefs(node, prefStore, "LiteralUnlimitedNatural");
+
+ Node label5182 = createLabel(node, UMLVisualIDRegistry.getType(LiteralUnlimitedNaturalNameEditPart.VISUAL_ID));
+
+ return node;
+ }
+
+ /**
+ * @generated
+ */
+ public Node createStringExpression_2100(EObject domainElement, View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
+ Node node = NotationFactory.eINSTANCE.createShape();
+ node.getStyles().add(NotationFactory.eINSTANCE.createDescriptionStyle());
+ node.getStyles().add(NotationFactory.eINSTANCE.createFontStyle());
+ node.getStyles().add(NotationFactory.eINSTANCE.createFillStyle());
+ node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
+ node.setType(UMLVisualIDRegistry.getType(StringExpressionEditPart.VISUAL_ID));
+ ViewUtil.insertChildView(containerView, node, index, persisted);
+ node.setElement(domainElement);
+ stampShortcut(containerView, node);
+ // initializeFromPreferences
+ final IPreferenceStore prefStore = (IPreferenceStore)preferencesHint.getPreferenceStore();
+
+ PreferenceInitializerForElementHelper.initFontStyleFromPrefs(node, prefStore, "StringExpression");
+
+ PreferenceInitializerForElementHelper.initBackgroundFromPrefs(node, prefStore, "StringExpression");
+
+ Node label5183 = createLabel(node, UMLVisualIDRegistry.getType(StringExpressionNameEditPart.VISUAL_ID));
+
+ return node;
+ }
+
+ /**
+ * @generated
+ */
+ public Node createOpaqueExpression_2101(EObject domainElement, View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
+ Node node = NotationFactory.eINSTANCE.createShape();
+ node.getStyles().add(NotationFactory.eINSTANCE.createDescriptionStyle());
+ node.getStyles().add(NotationFactory.eINSTANCE.createFontStyle());
+ node.getStyles().add(NotationFactory.eINSTANCE.createFillStyle());
+ node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
+ node.setType(UMLVisualIDRegistry.getType(OpaqueExpressionEditPart.VISUAL_ID));
+ ViewUtil.insertChildView(containerView, node, index, persisted);
+ node.setElement(domainElement);
+ stampShortcut(containerView, node);
+ // initializeFromPreferences
+ final IPreferenceStore prefStore = (IPreferenceStore)preferencesHint.getPreferenceStore();
+
+ PreferenceInitializerForElementHelper.initFontStyleFromPrefs(node, prefStore, "OpaqueExpression");
+
+ PreferenceInitializerForElementHelper.initBackgroundFromPrefs(node, prefStore, "OpaqueExpression");
+
+ Node label5184 = createLabel(node, UMLVisualIDRegistry.getType(OpaqueExpressionNameEditPart.VISUAL_ID));
+
+ return node;
+ }
+
+ /**
+ * @generated
+ */
+ public Node createTimeExpression_2102(EObject domainElement, View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
+ Node node = NotationFactory.eINSTANCE.createShape();
+ node.getStyles().add(NotationFactory.eINSTANCE.createDescriptionStyle());
+ node.getStyles().add(NotationFactory.eINSTANCE.createFontStyle());
+ node.getStyles().add(NotationFactory.eINSTANCE.createFillStyle());
+ node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
+ node.setType(UMLVisualIDRegistry.getType(TimeExpressionEditPart.VISUAL_ID));
+ ViewUtil.insertChildView(containerView, node, index, persisted);
+ node.setElement(domainElement);
+ stampShortcut(containerView, node);
+ // initializeFromPreferences
+ final IPreferenceStore prefStore = (IPreferenceStore)preferencesHint.getPreferenceStore();
+
+ PreferenceInitializerForElementHelper.initFontStyleFromPrefs(node, prefStore, "TimeExpression");
+
+ PreferenceInitializerForElementHelper.initBackgroundFromPrefs(node, prefStore, "TimeExpression");
+
+ Node label5185 = createLabel(node, UMLVisualIDRegistry.getType(TimeExpressionNameEditPart.VISUAL_ID));
+
+ return node;
+ }
+
+ /**
+ * @generated
+ */
+ public Node createExpression_2103(EObject domainElement, View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
+ Node node = NotationFactory.eINSTANCE.createShape();
+ node.getStyles().add(NotationFactory.eINSTANCE.createDescriptionStyle());
+ node.getStyles().add(NotationFactory.eINSTANCE.createFontStyle());
+ node.getStyles().add(NotationFactory.eINSTANCE.createFillStyle());
+ node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
+ node.setType(UMLVisualIDRegistry.getType(ExpressionEditPart.VISUAL_ID));
+ ViewUtil.insertChildView(containerView, node, index, persisted);
+ node.setElement(domainElement);
+ stampShortcut(containerView, node);
+ // initializeFromPreferences
+ final IPreferenceStore prefStore = (IPreferenceStore)preferencesHint.getPreferenceStore();
+
+ PreferenceInitializerForElementHelper.initFontStyleFromPrefs(node, prefStore, "Expression");
+
+ PreferenceInitializerForElementHelper.initBackgroundFromPrefs(node, prefStore, "Expression");
+
+ Node label5186 = createLabel(node, UMLVisualIDRegistry.getType(ExpressionNameEditPart.VISUAL_ID));
+
+ return node;
+ }
+
+ /**
+ * @generated
+ */
+ public Node createDuration_2104(EObject domainElement, View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
+ Node node = NotationFactory.eINSTANCE.createShape();
+ node.getStyles().add(NotationFactory.eINSTANCE.createDescriptionStyle());
+ node.getStyles().add(NotationFactory.eINSTANCE.createFontStyle());
+ node.getStyles().add(NotationFactory.eINSTANCE.createFillStyle());
+ node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
+ node.setType(UMLVisualIDRegistry.getType(DurationEditPart.VISUAL_ID));
+ ViewUtil.insertChildView(containerView, node, index, persisted);
+ node.setElement(domainElement);
+ stampShortcut(containerView, node);
+ // initializeFromPreferences
+ final IPreferenceStore prefStore = (IPreferenceStore)preferencesHint.getPreferenceStore();
+
+ PreferenceInitializerForElementHelper.initFontStyleFromPrefs(node, prefStore, "Duration");
+
+ PreferenceInitializerForElementHelper.initBackgroundFromPrefs(node, prefStore, "Duration");
+
+ Node label5187 = createLabel(node, UMLVisualIDRegistry.getType(DurationNameEditPart.VISUAL_ID));
+
+ return node;
+ }
+
+ /**
+ * @generated
+ */
+ public Node createTimeInterval_2105(EObject domainElement, View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
+ Node node = NotationFactory.eINSTANCE.createShape();
+ node.getStyles().add(NotationFactory.eINSTANCE.createDescriptionStyle());
+ node.getStyles().add(NotationFactory.eINSTANCE.createFontStyle());
+ node.getStyles().add(NotationFactory.eINSTANCE.createFillStyle());
+ node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
+ node.setType(UMLVisualIDRegistry.getType(TimeIntervalEditPart.VISUAL_ID));
+ ViewUtil.insertChildView(containerView, node, index, persisted);
+ node.setElement(domainElement);
+ stampShortcut(containerView, node);
+ // initializeFromPreferences
+ final IPreferenceStore prefStore = (IPreferenceStore)preferencesHint.getPreferenceStore();
+
+ PreferenceInitializerForElementHelper.initFontStyleFromPrefs(node, prefStore, "TimeInterval");
+
+ PreferenceInitializerForElementHelper.initBackgroundFromPrefs(node, prefStore, "TimeInterval");
+
+ Node label5188 = createLabel(node, UMLVisualIDRegistry.getType(TimeIntervalNameEditPart.VISUAL_ID));
+
+ return node;
+ }
+
+ /**
+ * @generated
+ */
+ public Node createDurationInterval_2106(EObject domainElement, View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
+ Node node = NotationFactory.eINSTANCE.createShape();
+ node.getStyles().add(NotationFactory.eINSTANCE.createDescriptionStyle());
+ node.getStyles().add(NotationFactory.eINSTANCE.createFontStyle());
+ node.getStyles().add(NotationFactory.eINSTANCE.createFillStyle());
+ node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
+ node.setType(UMLVisualIDRegistry.getType(DurationIntervalEditPart.VISUAL_ID));
+ ViewUtil.insertChildView(containerView, node, index, persisted);
+ node.setElement(domainElement);
+ stampShortcut(containerView, node);
+ // initializeFromPreferences
+ final IPreferenceStore prefStore = (IPreferenceStore)preferencesHint.getPreferenceStore();
+
+ PreferenceInitializerForElementHelper.initFontStyleFromPrefs(node, prefStore, "DurationInterval");
+
+ PreferenceInitializerForElementHelper.initBackgroundFromPrefs(node, prefStore, "DurationInterval");
+
+ Node label5189 = createLabel(node, UMLVisualIDRegistry.getType(DurationIntervalNameEditPart.VISUAL_ID));
+
+ return node;
+ }
+
+ /**
+ * @generated
+ */
+ public Node createInterval_2107(EObject domainElement, View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
+ Node node = NotationFactory.eINSTANCE.createShape();
+ node.getStyles().add(NotationFactory.eINSTANCE.createDescriptionStyle());
+ node.getStyles().add(NotationFactory.eINSTANCE.createFontStyle());
+ node.getStyles().add(NotationFactory.eINSTANCE.createFillStyle());
+ node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
+ node.setType(UMLVisualIDRegistry.getType(IntervalEditPart.VISUAL_ID));
+ ViewUtil.insertChildView(containerView, node, index, persisted);
+ node.setElement(domainElement);
+ stampShortcut(containerView, node);
+ // initializeFromPreferences
+ final IPreferenceStore prefStore = (IPreferenceStore)preferencesHint.getPreferenceStore();
+
+ PreferenceInitializerForElementHelper.initFontStyleFromPrefs(node, prefStore, "Interval");
+
+ PreferenceInitializerForElementHelper.initBackgroundFromPrefs(node, prefStore, "Interval");
+
+ Node label5190 = createLabel(node, UMLVisualIDRegistry.getType(IntervalNameEditPart.VISUAL_ID));
+
+ return node;
+ }
+
+ /**
+ * @generated
+ */
+ public Node createInstanceValue_2108(EObject domainElement, View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
+ Node node = NotationFactory.eINSTANCE.createShape();
+ node.getStyles().add(NotationFactory.eINSTANCE.createDescriptionStyle());
+ node.getStyles().add(NotationFactory.eINSTANCE.createFontStyle());
+ node.getStyles().add(NotationFactory.eINSTANCE.createFillStyle());
+ node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
+ node.setType(UMLVisualIDRegistry.getType(InstanceValueEditPart.VISUAL_ID));
+ ViewUtil.insertChildView(containerView, node, index, persisted);
+ node.setElement(domainElement);
+ stampShortcut(containerView, node);
+ // initializeFromPreferences
+ final IPreferenceStore prefStore = (IPreferenceStore)preferencesHint.getPreferenceStore();
+
+ PreferenceInitializerForElementHelper.initFontStyleFromPrefs(node, prefStore, "InstanceValue");
+
+ PreferenceInitializerForElementHelper.initBackgroundFromPrefs(node, prefStore, "InstanceValue");
+
+ Node label5191 = createLabel(node, UMLVisualIDRegistry.getType(InstanceValueNameEditPart.VISUAL_ID));
+
+ return node;
+ }
+
+ /**
+ * @generated
+ */
+ public Node createComment_2109(EObject domainElement, View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
+ Shape node = NotationFactory.eINSTANCE.createShape();
+ node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
+ node.setType(UMLVisualIDRegistry.getType(CommentEditPart.VISUAL_ID));
+ ViewUtil.insertChildView(containerView, node, index, persisted);
+ node.setElement(domainElement);
+ stampShortcut(containerView, node);
+ // initializeFromPreferences
+ final IPreferenceStore prefStore = (IPreferenceStore)preferencesHint.getPreferenceStore();
+
+ PreferenceInitializerForElementHelper.initForegroundFromPrefs(node, prefStore, "Comment");
+
+ PreferenceInitializerForElementHelper.initFontStyleFromPrefs(node, prefStore, "Comment");
+
+ PreferenceInitializerForElementHelper.initBackgroundFromPrefs(node, prefStore, "Comment");
+
+ Node label5192 = createLabel(node, UMLVisualIDRegistry.getType(CommentBodyEditPart.VISUAL_ID));
+
+ return node;
+ }
+
+ /**
+ * @generated
+ */
+ public Node createDurationConstraint_2110(EObject domainElement, View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
+ Shape node = NotationFactory.eINSTANCE.createShape();
+ node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
+ node.setType(UMLVisualIDRegistry.getType(DurationConstraintEditPart.VISUAL_ID));
+ ViewUtil.insertChildView(containerView, node, index, persisted);
+ node.setElement(domainElement);
+ stampShortcut(containerView, node);
+ // initializeFromPreferences
+ final IPreferenceStore prefStore = (IPreferenceStore)preferencesHint.getPreferenceStore();
+
+ PreferenceInitializerForElementHelper.initForegroundFromPrefs(node, prefStore, "DurationConstraint");
+
+ PreferenceInitializerForElementHelper.initFontStyleFromPrefs(node, prefStore, "DurationConstraint");
+
+ PreferenceInitializerForElementHelper.initBackgroundFromPrefs(node, prefStore, "DurationConstraint");
+
+ Node label5193 = createLabel(node, UMLVisualIDRegistry.getType(DurationConstraintNameEditPart.VISUAL_ID));
+ Node label6035 = createLabel(node, UMLVisualIDRegistry.getType(DurationConstraintSpecificationEditPart.VISUAL_ID));
+
+ return node;
+ }
+
+ /**
+ * @generated
+ */
+ public Node createTimeConstraint_2111(EObject domainElement, View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
+ Shape node = NotationFactory.eINSTANCE.createShape();
+ node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
+ node.setType(UMLVisualIDRegistry.getType(TimeConstraintEditPart.VISUAL_ID));
+ ViewUtil.insertChildView(containerView, node, index, persisted);
+ node.setElement(domainElement);
+ stampShortcut(containerView, node);
+ // initializeFromPreferences
+ final IPreferenceStore prefStore = (IPreferenceStore)preferencesHint.getPreferenceStore();
+
+ PreferenceInitializerForElementHelper.initForegroundFromPrefs(node, prefStore, "TimeConstraint");
+
+ PreferenceInitializerForElementHelper.initFontStyleFromPrefs(node, prefStore, "TimeConstraint");
+
+ PreferenceInitializerForElementHelper.initBackgroundFromPrefs(node, prefStore, "TimeConstraint");
+
+ Node label5194 = createLabel(node, UMLVisualIDRegistry.getType(TimeConstraintNameEditPart.VISUAL_ID));
+ Node label6036 = createLabel(node, UMLVisualIDRegistry.getType(TimeConstraintSpecificationEditPart.VISUAL_ID));
+
+ return node;
+ }
+
+ /**
+ * @generated
+ */
+ public Node createIntervalConstraint_2112(EObject domainElement, View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
+ Shape node = NotationFactory.eINSTANCE.createShape();
+ node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
+ node.setType(UMLVisualIDRegistry.getType(IntervalConstraintEditPart.VISUAL_ID));
+ ViewUtil.insertChildView(containerView, node, index, persisted);
+ node.setElement(domainElement);
+ stampShortcut(containerView, node);
+ // initializeFromPreferences
+ final IPreferenceStore prefStore = (IPreferenceStore)preferencesHint.getPreferenceStore();
+
+ PreferenceInitializerForElementHelper.initForegroundFromPrefs(node, prefStore, "IntervalConstraint");
+
+ PreferenceInitializerForElementHelper.initFontStyleFromPrefs(node, prefStore, "IntervalConstraint");
+
+ PreferenceInitializerForElementHelper.initBackgroundFromPrefs(node, prefStore, "IntervalConstraint");
+
+ Node label5195 = createLabel(node, UMLVisualIDRegistry.getType(IntervalConstraintNameEditPart.VISUAL_ID));
+ Node label6037 = createLabel(node, UMLVisualIDRegistry.getType(IntervalConstraintSpecificationEditPart.VISUAL_ID));
+
+ return node;
+ }
+
+ /**
+ * @generated
+ */
+ public Node createInteractionConstraint_2113(EObject domainElement, View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
+ Shape node = NotationFactory.eINSTANCE.createShape();
+ node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
+ node.setType(UMLVisualIDRegistry.getType(InteractionConstraintEditPart.VISUAL_ID));
+ ViewUtil.insertChildView(containerView, node, index, persisted);
+ node.setElement(domainElement);
+ stampShortcut(containerView, node);
+ // initializeFromPreferences
+ final IPreferenceStore prefStore = (IPreferenceStore)preferencesHint.getPreferenceStore();
+
+ PreferenceInitializerForElementHelper.initForegroundFromPrefs(node, prefStore, "InteractionConstraint");
+
+ PreferenceInitializerForElementHelper.initFontStyleFromPrefs(node, prefStore, "InteractionConstraint");
+
+ PreferenceInitializerForElementHelper.initBackgroundFromPrefs(node, prefStore, "InteractionConstraint");
+
+ Node label5196 = createLabel(node, UMLVisualIDRegistry.getType(InteractionConstraintNameEditPart.VISUAL_ID));
+ Node label6038 = createLabel(node, UMLVisualIDRegistry.getType(InteractionConstraintSpecificationEditPart.VISUAL_ID));
+
+ return node;
+ }
+
+ /**
+ * @generated
+ */
+ public Node createConstraint_2114(EObject domainElement, View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
+ Shape node = NotationFactory.eINSTANCE.createShape();
+ node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
+ node.setType(UMLVisualIDRegistry.getType(ConstraintEditPart.VISUAL_ID));
+ ViewUtil.insertChildView(containerView, node, index, persisted);
+ node.setElement(domainElement);
+ stampShortcut(containerView, node);
+ // initializeFromPreferences
+ final IPreferenceStore prefStore = (IPreferenceStore)preferencesHint.getPreferenceStore();
+
+ PreferenceInitializerForElementHelper.initForegroundFromPrefs(node, prefStore, "Constraint");
+
+ PreferenceInitializerForElementHelper.initFontStyleFromPrefs(node, prefStore, "Constraint");
+
+ PreferenceInitializerForElementHelper.initBackgroundFromPrefs(node, prefStore, "Constraint");
+
+ Node label5197 = createLabel(node, UMLVisualIDRegistry.getType(ConstraintNameEditPart.VISUAL_ID));
+ Node label6039 = createLabel(node, UMLVisualIDRegistry.getType(ConstraintSpecificationEditPart.VISUAL_ID));
+
+ return node;
+ }
+
+ /**
+ * @generated
+ */
+ public Node createPort_3069(EObject domainElement, View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
+ Shape node = NotationFactory.eINSTANCE.createShape();
+ node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
+ node.setType(UMLVisualIDRegistry.getType(PortEditPart.VISUAL_ID));
+ ViewUtil.insertChildView(containerView, node, index, persisted);
+ node.setElement(domainElement);
+ // initializeFromPreferences
+ final IPreferenceStore prefStore = (IPreferenceStore)preferencesHint.getPreferenceStore();
+
+ PreferenceInitializerForElementHelper.initForegroundFromPrefs(node, prefStore, "Port");
+
+ PreferenceInitializerForElementHelper.initFontStyleFromPrefs(node, prefStore, "Port");
+
+ PreferenceInitializerForElementHelper.initBackgroundFromPrefs(node, prefStore, "Port");
+
+ Node label5125 = createLabel(node, UMLVisualIDRegistry.getType(PortNameEditPart.VISUAL_ID));
+ label5125.setLayoutConstraint(NotationFactory.eINSTANCE.createLocation());
+
+ Location location5125 = (Location)label5125.getLayoutConstraint();
+ location5125.setX(25);
+ location5125.setY(3);
+ Node label6029 = createLabel(node, UMLVisualIDRegistry.getType(PortAppliedStereotypeEditPart.VISUAL_ID));
+ label6029.setLayoutConstraint(NotationFactory.eINSTANCE.createLocation());
+
+ Location location6029 = (Location)label6029.getLayoutConstraint();
+ location6029.setX(25);
+ location6029.setY(-10);
+
+ return node;
+ }
+
+ /**
+ * @generated
+ */
+ public Node createParameter_3088(EObject domainElement, View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
+ Shape node = NotationFactory.eINSTANCE.createShape();
+ node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
+ node.setType(UMLVisualIDRegistry.getType(ParameterEditPart.VISUAL_ID));
+ ViewUtil.insertChildView(containerView, node, index, persisted);
+ node.setElement(domainElement);
+ // initializeFromPreferences
+ final IPreferenceStore prefStore = (IPreferenceStore)preferencesHint.getPreferenceStore();
+
+ PreferenceInitializerForElementHelper.initForegroundFromPrefs(node, prefStore, "Parameter");
+
+ PreferenceInitializerForElementHelper.initFontStyleFromPrefs(node, prefStore, "Parameter");
+
+ PreferenceInitializerForElementHelper.initBackgroundFromPrefs(node, prefStore, "Parameter");
+
+ Node label6033 = createLabel(node, UMLVisualIDRegistry.getType(ParameterNameEditPart.VISUAL_ID));
+ label6033.setLayoutConstraint(NotationFactory.eINSTANCE.createLocation());
+
+ Location location6033 = (Location)label6033.getLayoutConstraint();
+ location6033.setX(25);
+ location6033.setY(3);
+ Node label6034 = createLabel(node, UMLVisualIDRegistry.getType(ParameterAppliedStereotypeEditPart.VISUAL_ID));
+ label6034.setLayoutConstraint(NotationFactory.eINSTANCE.createLocation());
+
+ Location location6034 = (Location)label6034.getLayoutConstraint();
+ location6034.setX(25);
+ location6034.setY(-10);
+
+ return node;
+ }
+
+ /**
+ * @generated
+ */
+ public Node createProperty_3070(EObject domainElement, View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
+ Shape node = NotationFactory.eINSTANCE.createShape();
+ node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
+ node.setType(UMLVisualIDRegistry.getType(PropertyPartEditPartCN.VISUAL_ID));
+ ViewUtil.insertChildView(containerView, node, index, persisted);
+ node.setElement(domainElement);
+ // initializeFromPreferences
+ final IPreferenceStore prefStore = (IPreferenceStore)preferencesHint.getPreferenceStore();
+
+ PreferenceInitializerForElementHelper.initForegroundFromPrefs(node, prefStore, "Property");
+
+ PreferenceInitializerForElementHelper.initFontStyleFromPrefs(node, prefStore, "Property");
+
+ PreferenceInitializerForElementHelper.initBackgroundFromPrefs(node, prefStore, "Property");
+
+ Node label5126 = createLabel(node, UMLVisualIDRegistry.getType(PropertyPartNameEditPartCN.VISUAL_ID));
+ createCompartment(node, UMLVisualIDRegistry.getType(PropertyPartCompartmentEditPartCN.VISUAL_ID), true, true, false, false);
+
+ PreferenceInitializerForElementHelper.initCompartmentsStatusFromPrefs(node, prefStore, "Property");
+
+ return node;
+ }
+
+ /**
+ * @generated
+ */
+ public Node createConnectableElement_3115(EObject domainElement, View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
+ Shape node = NotationFactory.eINSTANCE.createShape();
+ node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
+ node.setType(UMLVisualIDRegistry.getType(CollaborationRoleEditPartCN.VISUAL_ID));
+ ViewUtil.insertChildView(containerView, node, index, persisted);
+ node.setElement(domainElement);
+ // initializeFromPreferences
+ final IPreferenceStore prefStore = (IPreferenceStore)preferencesHint.getPreferenceStore();
+
+ PreferenceInitializerForElementHelper.initForegroundFromPrefs(node, prefStore, "CollaborationRole");
+
+ PreferenceInitializerForElementHelper.initFontStyleFromPrefs(node, prefStore, "CollaborationRole");
+
+ PreferenceInitializerForElementHelper.initBackgroundFromPrefs(node, prefStore, "CollaborationRole");
+
+ Node label5198 = createLabel(node, UMLVisualIDRegistry.getType(CollaborationRoleNameEditPartCN.VISUAL_ID));
+
+ return node;
+ }
+
+ /**
+ * @generated
+ */
+ public Node createCollaborationUse_3071(EObject domainElement, View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
+ Shape node = NotationFactory.eINSTANCE.createShape();
+ node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
+ node.setType(UMLVisualIDRegistry.getType(CollaborationUseEditPartCN.VISUAL_ID));
+ ViewUtil.insertChildView(containerView, node, index, persisted);
+ node.setElement(domainElement);
+ // initializeFromPreferences
+ final IPreferenceStore prefStore = (IPreferenceStore)preferencesHint.getPreferenceStore();
+
+ PreferenceInitializerForElementHelper.initForegroundFromPrefs(node, prefStore, "CollaborationUse");
+
+ PreferenceInitializerForElementHelper.initFontStyleFromPrefs(node, prefStore, "CollaborationUse");
+
+ PreferenceInitializerForElementHelper.initBackgroundFromPrefs(node, prefStore, "CollaborationUse");
+
+ Node label5127 = createLabel(node, UMLVisualIDRegistry.getType(CollaborationUseNameEditPart.VISUAL_ID));
+
+ return node;
+ }
+
+ /**
+ * @generated
+ */
+ public Node createActivity_3072(EObject domainElement, View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
+ Shape node = NotationFactory.eINSTANCE.createShape();
+ node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
+ node.setType(UMLVisualIDRegistry.getType(ActivityCompositeEditPartCN.VISUAL_ID));
+ ViewUtil.insertChildView(containerView, node, index, persisted);
+ node.setElement(domainElement);
+ // initializeFromPreferences
+ final IPreferenceStore prefStore = (IPreferenceStore)preferencesHint.getPreferenceStore();
+
+ PreferenceInitializerForElementHelper.initForegroundFromPrefs(node, prefStore, "Activity");
+
+ PreferenceInitializerForElementHelper.initFontStyleFromPrefs(node, prefStore, "Activity");
+
+ PreferenceInitializerForElementHelper.initBackgroundFromPrefs(node, prefStore, "Activity");
+
+ Node label5128 = createLabel(node, UMLVisualIDRegistry.getType(ActivityCompositeNameEditPartCN.VISUAL_ID));
+ createCompartment(node, UMLVisualIDRegistry.getType(ActivityCompositeCompartmentEditPartCN.VISUAL_ID), true, true, false, false);
+
+ PreferenceInitializerForElementHelper.initCompartmentsStatusFromPrefs(node, prefStore, "Activity");
+
+ return node;
+ }
+
+ /**
+ * @generated
+ */
+ public Node createInteraction_3073(EObject domainElement, View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
+ Shape node = NotationFactory.eINSTANCE.createShape();
+ node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
+ node.setType(UMLVisualIDRegistry.getType(InteractionCompositeEditPartCN.VISUAL_ID));
+ ViewUtil.insertChildView(containerView, node, index, persisted);
+ node.setElement(domainElement);
+ // initializeFromPreferences
+ final IPreferenceStore prefStore = (IPreferenceStore)preferencesHint.getPreferenceStore();
+
+ PreferenceInitializerForElementHelper.initForegroundFromPrefs(node, prefStore, "Interaction");
+
+ PreferenceInitializerForElementHelper.initFontStyleFromPrefs(node, prefStore, "Interaction");
+
+ PreferenceInitializerForElementHelper.initBackgroundFromPrefs(node, prefStore, "Interaction");
+
+ Node label5129 = createLabel(node, UMLVisualIDRegistry.getType(InteractionCompositeNameEditPartCN.VISUAL_ID));
+ createCompartment(node, UMLVisualIDRegistry.getType(InteractionCompositeCompartmentEditPartCN.VISUAL_ID), true, true, false, false);
+
+ PreferenceInitializerForElementHelper.initCompartmentsStatusFromPrefs(node, prefStore, "Interaction");
+
+ return node;
+ }
+
+ /**
+ * @generated
+ */
+ public Node createProtocolStateMachine_3074(EObject domainElement, View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
+ Shape node = NotationFactory.eINSTANCE.createShape();
+ node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
+ node.setType(UMLVisualIDRegistry.getType(ProtocolStateMachineCompositeEditPartCN.VISUAL_ID));
+ ViewUtil.insertChildView(containerView, node, index, persisted);
+ node.setElement(domainElement);
+ // initializeFromPreferences
+ final IPreferenceStore prefStore = (IPreferenceStore)preferencesHint.getPreferenceStore();
+
+ PreferenceInitializerForElementHelper.initForegroundFromPrefs(node, prefStore, "ProtocolStateMachine");
+
+ PreferenceInitializerForElementHelper.initFontStyleFromPrefs(node, prefStore, "ProtocolStateMachine");
+
+ PreferenceInitializerForElementHelper.initBackgroundFromPrefs(node, prefStore, "ProtocolStateMachine");
+
+ Node label5130 = createLabel(node, UMLVisualIDRegistry.getType(ProtocolStateMachineCompositeNameEditPartCN.VISUAL_ID));
+ createCompartment(node, UMLVisualIDRegistry.getType(ProtocolStateMachineCompositeCompartmentEditPartCN.VISUAL_ID), true, true, false, false);
+
+ PreferenceInitializerForElementHelper.initCompartmentsStatusFromPrefs(node, prefStore, "ProtocolStateMachine");
+
+ return node;
+ }
+
+ /**
+ * @generated
+ */
+ public Node createStateMachine_3075(EObject domainElement, View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
+ Shape node = NotationFactory.eINSTANCE.createShape();
+ node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
+ node.setType(UMLVisualIDRegistry.getType(StateMachineCompositeEditPartCN.VISUAL_ID));
+ ViewUtil.insertChildView(containerView, node, index, persisted);
+ node.setElement(domainElement);
+ // initializeFromPreferences
+ final IPreferenceStore prefStore = (IPreferenceStore)preferencesHint.getPreferenceStore();
+
+ PreferenceInitializerForElementHelper.initForegroundFromPrefs(node, prefStore, "StateMachine");
+
+ PreferenceInitializerForElementHelper.initFontStyleFromPrefs(node, prefStore, "StateMachine");
+
+ PreferenceInitializerForElementHelper.initBackgroundFromPrefs(node, prefStore, "StateMachine");
+
+ Node label5131 = createLabel(node, UMLVisualIDRegistry.getType(StateMachineCompositeNameEditPartCN.VISUAL_ID));
+ createCompartment(node, UMLVisualIDRegistry.getType(StateMachineCompositeCompartmentEditPartCN.VISUAL_ID), true, true, false, false);
+
+ PreferenceInitializerForElementHelper.initCompartmentsStatusFromPrefs(node, prefStore, "StateMachine");
+
+ return node;
+ }
+
+ /**
+ * @generated
+ */
+ public Node createFunctionBehavior_3076(EObject domainElement, View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
+ Shape node = NotationFactory.eINSTANCE.createShape();
+ node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
+ node.setType(UMLVisualIDRegistry.getType(FunctionBehaviorCompositeEditPartCN.VISUAL_ID));
+ ViewUtil.insertChildView(containerView, node, index, persisted);
+ node.setElement(domainElement);
+ // initializeFromPreferences
+ final IPreferenceStore prefStore = (IPreferenceStore)preferencesHint.getPreferenceStore();
+
+ PreferenceInitializerForElementHelper.initForegroundFromPrefs(node, prefStore, "FunctionBehavior");
+
+ PreferenceInitializerForElementHelper.initFontStyleFromPrefs(node, prefStore, "FunctionBehavior");
+
+ PreferenceInitializerForElementHelper.initBackgroundFromPrefs(node, prefStore, "FunctionBehavior");
+
+ Node label5132 = createLabel(node, UMLVisualIDRegistry.getType(FunctionBehaviorCompositeNameEditPartCN.VISUAL_ID));
+ createCompartment(node, UMLVisualIDRegistry.getType(FunctionBehaviorCompositeCompartmentEditPartCN.VISUAL_ID), true, true, false, false);
+
+ PreferenceInitializerForElementHelper.initCompartmentsStatusFromPrefs(node, prefStore, "FunctionBehavior");
+
+ return node;
+ }
+
+ /**
+ * @generated
+ */
+ public Node createOpaqueBehavior_3077(EObject domainElement, View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
+ Shape node = NotationFactory.eINSTANCE.createShape();
+ node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
+ node.setType(UMLVisualIDRegistry.getType(OpaqueBehaviorCompositeEditPartCN.VISUAL_ID));
+ ViewUtil.insertChildView(containerView, node, index, persisted);
+ node.setElement(domainElement);
+ // initializeFromPreferences
+ final IPreferenceStore prefStore = (IPreferenceStore)preferencesHint.getPreferenceStore();
+
+ PreferenceInitializerForElementHelper.initForegroundFromPrefs(node, prefStore, "OpaqueBehavior");
+
+ PreferenceInitializerForElementHelper.initFontStyleFromPrefs(node, prefStore, "OpaqueBehavior");
+
+ PreferenceInitializerForElementHelper.initBackgroundFromPrefs(node, prefStore, "OpaqueBehavior");
+
+ Node label5133 = createLabel(node, UMLVisualIDRegistry.getType(OpaqueBehaviorCompositeNameEditPartCN.VISUAL_ID));
+ createCompartment(node, UMLVisualIDRegistry.getType(OpaqueBehaviorCompositeCompartmentEditPartCN.VISUAL_ID), true, true, false, false);
+
+ PreferenceInitializerForElementHelper.initCompartmentsStatusFromPrefs(node, prefStore, "OpaqueBehavior");
+
+ return node;
+ }
+
+ /**
+ * @generated
+ */
+ public Node createComponent_3081(EObject domainElement, View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
+ Shape node = NotationFactory.eINSTANCE.createShape();
+ node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
+ node.setType(UMLVisualIDRegistry.getType(ComponentCompositeEditPartCN.VISUAL_ID));
+ ViewUtil.insertChildView(containerView, node, index, persisted);
+ node.setElement(domainElement);
+ // initializeFromPreferences
+ final IPreferenceStore prefStore = (IPreferenceStore)preferencesHint.getPreferenceStore();
+
+ PreferenceInitializerForElementHelper.initForegroundFromPrefs(node, prefStore, "Component");
+
+ PreferenceInitializerForElementHelper.initFontStyleFromPrefs(node, prefStore, "Component");
+
+ PreferenceInitializerForElementHelper.initBackgroundFromPrefs(node, prefStore, "Component");
+
+ Node label5137 = createLabel(node, UMLVisualIDRegistry.getType(ComponentCompositeNameEditPartCN.VISUAL_ID));
+ createCompartment(node, UMLVisualIDRegistry.getType(ComponentCompositeCompartmentEditPartCN.VISUAL_ID), true, true, false, false);
+
+ PreferenceInitializerForElementHelper.initCompartmentsStatusFromPrefs(node, prefStore, "Component");
+
+ return node;
+ }
+
+ /**
+ * @generated
+ */
+ public Node createDevice_3082(EObject domainElement, View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
+ Shape node = NotationFactory.eINSTANCE.createShape();
+ node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
+ node.setType(UMLVisualIDRegistry.getType(DeviceCompositeEditPartCN.VISUAL_ID));
+ ViewUtil.insertChildView(containerView, node, index, persisted);
+ node.setElement(domainElement);
+ // initializeFromPreferences
+ final IPreferenceStore prefStore = (IPreferenceStore)preferencesHint.getPreferenceStore();
+
+ PreferenceInitializerForElementHelper.initForegroundFromPrefs(node, prefStore, "Device");
+
+ PreferenceInitializerForElementHelper.initFontStyleFromPrefs(node, prefStore, "Device");
+
+ PreferenceInitializerForElementHelper.initBackgroundFromPrefs(node, prefStore, "Device");
+
+ Node label5138 = createLabel(node, UMLVisualIDRegistry.getType(DeviceCompositeNameEditPartCN.VISUAL_ID));
+ createCompartment(node, UMLVisualIDRegistry.getType(DeviceCompositeCompartmentEditPartCN.VISUAL_ID), true, true, false, false);
+
+ PreferenceInitializerForElementHelper.initCompartmentsStatusFromPrefs(node, prefStore, "Device");
+
+ return node;
+ }
+
+ /**
+ * @generated
+ */
+ public Node createExecutionEnvironment_3083(EObject domainElement, View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
+ Shape node = NotationFactory.eINSTANCE.createShape();
+ node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
+ node.setType(UMLVisualIDRegistry.getType(ExecutionEnvironmentCompositeEditPartCN.VISUAL_ID));
+ ViewUtil.insertChildView(containerView, node, index, persisted);
+ node.setElement(domainElement);
+ // initializeFromPreferences
+ final IPreferenceStore prefStore = (IPreferenceStore)preferencesHint.getPreferenceStore();
+
+ PreferenceInitializerForElementHelper.initForegroundFromPrefs(node, prefStore, "ExecutionEnvironment");
+
+ PreferenceInitializerForElementHelper.initFontStyleFromPrefs(node, prefStore, "ExecutionEnvironment");
+
+ PreferenceInitializerForElementHelper.initBackgroundFromPrefs(node, prefStore, "ExecutionEnvironment");
+
+ Node label5139 = createLabel(node, UMLVisualIDRegistry.getType(ExecutionEnvironmentCompositeNameEditPartCN.VISUAL_ID));
+ createCompartment(node, UMLVisualIDRegistry.getType(ExecutionEnvironmentCompositeCompartmentEditPartCN.VISUAL_ID), true, true, false, false);
+
+ PreferenceInitializerForElementHelper.initCompartmentsStatusFromPrefs(node, prefStore, "ExecutionEnvironment");
+
+ return node;
+ }
+
+ /**
+ * @generated
+ */
+ public Node createNode_3084(EObject domainElement, View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
+ Shape node = NotationFactory.eINSTANCE.createShape();
+ node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
+ node.setType(UMLVisualIDRegistry.getType(NodeCompositeEditPartCN.VISUAL_ID));
+ ViewUtil.insertChildView(containerView, node, index, persisted);
+ node.setElement(domainElement);
+ // initializeFromPreferences
+ final IPreferenceStore prefStore = (IPreferenceStore)preferencesHint.getPreferenceStore();
+
+ PreferenceInitializerForElementHelper.initForegroundFromPrefs(node, prefStore, "Node");
+
+ PreferenceInitializerForElementHelper.initFontStyleFromPrefs(node, prefStore, "Node");
+
+ PreferenceInitializerForElementHelper.initBackgroundFromPrefs(node, prefStore, "Node");
+
+ Node label5140 = createLabel(node, UMLVisualIDRegistry.getType(NodeCompositeNameEditPartCN.VISUAL_ID));
+ createCompartment(node, UMLVisualIDRegistry.getType(NodeCompositeCompartmentEditPartCN.VISUAL_ID), true, true, false, false);
+
+ PreferenceInitializerForElementHelper.initCompartmentsStatusFromPrefs(node, prefStore, "Node");
+
+ return node;
+ }
+
+ /**
+ * @generated
+ */
+ public Node createClass_3085(EObject domainElement, View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
+ Shape node = NotationFactory.eINSTANCE.createShape();
+ node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
+ node.setType(UMLVisualIDRegistry.getType(ClassCompositeEditPartCN.VISUAL_ID));
+ ViewUtil.insertChildView(containerView, node, index, persisted);
+ node.setElement(domainElement);
+ // initializeFromPreferences
+ final IPreferenceStore prefStore = (IPreferenceStore)preferencesHint.getPreferenceStore();
+
+ PreferenceInitializerForElementHelper.initForegroundFromPrefs(node, prefStore, "Class");
+
+ PreferenceInitializerForElementHelper.initFontStyleFromPrefs(node, prefStore, "Class");
+
+ PreferenceInitializerForElementHelper.initBackgroundFromPrefs(node, prefStore, "Class");
+
+ Node label5155 = createLabel(node, UMLVisualIDRegistry.getType(ClassCompositeNameEditPartCN.VISUAL_ID));
+ createCompartment(node, UMLVisualIDRegistry.getType(ClassCompositeCompartmentEditPartCN.VISUAL_ID), true, true, false, false);
+
+ PreferenceInitializerForElementHelper.initCompartmentsStatusFromPrefs(node, prefStore, "Class");
+
+ return node;
+ }
+
+ /**
+ * @generated
+ */
+ public Node createCollaboration_3086(EObject domainElement, View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
+ Shape node = NotationFactory.eINSTANCE.createShape();
+ node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
+ node.setType(UMLVisualIDRegistry.getType(CollaborationCompositeEditPartCN.VISUAL_ID));
+ ViewUtil.insertChildView(containerView, node, index, persisted);
+ node.setElement(domainElement);
+ // initializeFromPreferences
+ final IPreferenceStore prefStore = (IPreferenceStore)preferencesHint.getPreferenceStore();
+
+ PreferenceInitializerForElementHelper.initForegroundFromPrefs(node, prefStore, "Collaboration");
+
+ PreferenceInitializerForElementHelper.initFontStyleFromPrefs(node, prefStore, "Collaboration");
+
+ PreferenceInitializerForElementHelper.initBackgroundFromPrefs(node, prefStore, "Collaboration");
+
+ Node label5141 = createLabel(node, UMLVisualIDRegistry.getType(CollaborationCompositeNameEditPartCN.VISUAL_ID));
+ createCompartment(node, UMLVisualIDRegistry.getType(CollaborationCompositeCompartmentEditPartCN.VISUAL_ID), true, true, false, false);
+
+ PreferenceInitializerForElementHelper.initCompartmentsStatusFromPrefs(node, prefStore, "Collaboration");
+
+ return node;
+ }
+
+ /**
+ * @generated
+ */
+ public Node createInterface_3087(EObject domainElement, View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
+ Shape node = NotationFactory.eINSTANCE.createShape();
+ node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
+ node.setType(UMLVisualIDRegistry.getType(InterfaceEditPartCN.VISUAL_ID));
+ ViewUtil.insertChildView(containerView, node, index, persisted);
+ node.setElement(domainElement);
+ // initializeFromPreferences
+ final IPreferenceStore prefStore = (IPreferenceStore)preferencesHint.getPreferenceStore();
+
+ PreferenceInitializerForElementHelper.initForegroundFromPrefs(node, prefStore, "Interface");
+
+ PreferenceInitializerForElementHelper.initFontStyleFromPrefs(node, prefStore, "Interface");
+
+ PreferenceInitializerForElementHelper.initBackgroundFromPrefs(node, prefStore, "Interface");
+
+ Node label5154 = createLabel(node, UMLVisualIDRegistry.getType(InterfaceNameEditPartCN.VISUAL_ID));
+
+ return node;
+ }
+
+ /**
+ * @generated
+ */
+ public Node createPrimitiveType_3078(EObject domainElement, View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
+ Shape node = NotationFactory.eINSTANCE.createShape();
+ node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
+ node.setType(UMLVisualIDRegistry.getType(PrimitiveTypeEditPartCN.VISUAL_ID));
+ ViewUtil.insertChildView(containerView, node, index, persisted);
+ node.setElement(domainElement);
+ // initializeFromPreferences
+ final IPreferenceStore prefStore = (IPreferenceStore)preferencesHint.getPreferenceStore();
+
+ PreferenceInitializerForElementHelper.initForegroundFromPrefs(node, prefStore, "PrimitiveType");
+
+ PreferenceInitializerForElementHelper.initFontStyleFromPrefs(node, prefStore, "PrimitiveType");
+
+ PreferenceInitializerForElementHelper.initBackgroundFromPrefs(node, prefStore, "PrimitiveType");
+
+ Node label5134 = createLabel(node, UMLVisualIDRegistry.getType(PrimitiveTypeNameEditPartCN.VISUAL_ID));
+
+ return node;
+ }
+
+ /**
+ * @generated
+ */
+ public Node createEnumeration_3079(EObject domainElement, View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
+ Shape node = NotationFactory.eINSTANCE.createShape();
+ node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
+ node.setType(UMLVisualIDRegistry.getType(EnumerationEditPartCN.VISUAL_ID));
+ ViewUtil.insertChildView(containerView, node, index, persisted);
+ node.setElement(domainElement);
+ // initializeFromPreferences
+ final IPreferenceStore prefStore = (IPreferenceStore)preferencesHint.getPreferenceStore();
+
+ PreferenceInitializerForElementHelper.initForegroundFromPrefs(node, prefStore, "Enumeration");
+
+ PreferenceInitializerForElementHelper.initFontStyleFromPrefs(node, prefStore, "Enumeration");
+
+ PreferenceInitializerForElementHelper.initBackgroundFromPrefs(node, prefStore, "Enumeration");
+
+ Node label5135 = createLabel(node, UMLVisualIDRegistry.getType(EnumerationNameEditPartCN.VISUAL_ID));
+ createCompartment(node, UMLVisualIDRegistry.getType(EnumerationEnumerationLiteralCompartmentEditPartCN.VISUAL_ID), true, true, true, true);
+
+ PreferenceInitializerForElementHelper.initCompartmentsStatusFromPrefs(node, prefStore, "Enumeration");
+
+ return node;
+ }
+
+ /**
+ * @generated
+ */
+ public Node createDataType_3080(EObject domainElement, View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
+ Shape node = NotationFactory.eINSTANCE.createShape();
+ node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
+ node.setType(UMLVisualIDRegistry.getType(DataTypeEditPartCN.VISUAL_ID));
+ ViewUtil.insertChildView(containerView, node, index, persisted);
+ node.setElement(domainElement);
+ // initializeFromPreferences
+ final IPreferenceStore prefStore = (IPreferenceStore)preferencesHint.getPreferenceStore();
+
+ PreferenceInitializerForElementHelper.initForegroundFromPrefs(node, prefStore, "DataType");
+
+ PreferenceInitializerForElementHelper.initFontStyleFromPrefs(node, prefStore, "DataType");
+
+ PreferenceInitializerForElementHelper.initBackgroundFromPrefs(node, prefStore, "DataType");
+
+ Node label5136 = createLabel(node, UMLVisualIDRegistry.getType(DataTypeNameEditPartCN.VISUAL_ID));
+ createCompartment(node, UMLVisualIDRegistry.getType(DataTypeAttributeCompartmentEditPartCN.VISUAL_ID), true, true, true, true);
+ createCompartment(node, UMLVisualIDRegistry.getType(DataTypeOperationCompartmentEditPartCN.VISUAL_ID), true, true, true, true);
+
+ PreferenceInitializerForElementHelper.initCompartmentsStatusFromPrefs(node, prefStore, "DataType");
+
+ return node;
+ }
+
+ /**
+ * @generated
+ */
+ public Node createActor_3091(EObject domainElement, View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
+ Node node = NotationFactory.eINSTANCE.createShape();
+ node.getStyles().add(NotationFactory.eINSTANCE.createDescriptionStyle());
+ node.getStyles().add(NotationFactory.eINSTANCE.createFontStyle());
+ node.getStyles().add(NotationFactory.eINSTANCE.createFillStyle());
+ node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
+ node.setType(UMLVisualIDRegistry.getType(ActorEditPartCN.VISUAL_ID));
+ ViewUtil.insertChildView(containerView, node, index, persisted);
+ node.setElement(domainElement);
+ // initializeFromPreferences
+ final IPreferenceStore prefStore = (IPreferenceStore)preferencesHint.getPreferenceStore();
+
+ PreferenceInitializerForElementHelper.initFontStyleFromPrefs(node, prefStore, "Actor");
+
+ PreferenceInitializerForElementHelper.initBackgroundFromPrefs(node, prefStore, "Actor");
+
+ Node label5144 = createLabel(node, UMLVisualIDRegistry.getType(ActorNameEditPartCN.VISUAL_ID));
+
+ return node;
+ }
+
+ /**
+ * @generated
+ */
+ public Node createDeploymentSpecification_3092(EObject domainElement, View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
+ Node node = NotationFactory.eINSTANCE.createShape();
+ node.getStyles().add(NotationFactory.eINSTANCE.createDescriptionStyle());
+ node.getStyles().add(NotationFactory.eINSTANCE.createFontStyle());
+ node.getStyles().add(NotationFactory.eINSTANCE.createFillStyle());
+ node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
+ node.setType(UMLVisualIDRegistry.getType(DeploymentSpecificationEditPartCN.VISUAL_ID));
+ ViewUtil.insertChildView(containerView, node, index, persisted);
+ node.setElement(domainElement);
+ // initializeFromPreferences
+ final IPreferenceStore prefStore = (IPreferenceStore)preferencesHint.getPreferenceStore();
+
+ PreferenceInitializerForElementHelper.initFontStyleFromPrefs(node, prefStore, "DeploymentSpecification");
+
+ PreferenceInitializerForElementHelper.initBackgroundFromPrefs(node, prefStore, "DeploymentSpecification");
+
+ Node label5145 = createLabel(node, UMLVisualIDRegistry.getType(DeploymentSpecificationNameEditPartCN.VISUAL_ID));
+
+ return node;
+ }
+
+ /**
+ * @generated
+ */
+ public Node createArtifact_3093(EObject domainElement, View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
+ Node node = NotationFactory.eINSTANCE.createShape();
+ node.getStyles().add(NotationFactory.eINSTANCE.createDescriptionStyle());
+ node.getStyles().add(NotationFactory.eINSTANCE.createFontStyle());
+ node.getStyles().add(NotationFactory.eINSTANCE.createFillStyle());
+ node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
+ node.setType(UMLVisualIDRegistry.getType(ArtifactEditPartCN.VISUAL_ID));
+ ViewUtil.insertChildView(containerView, node, index, persisted);
+ node.setElement(domainElement);
+ // initializeFromPreferences
+ final IPreferenceStore prefStore = (IPreferenceStore)preferencesHint.getPreferenceStore();
+
+ PreferenceInitializerForElementHelper.initFontStyleFromPrefs(node, prefStore, "Artifact");
+
+ PreferenceInitializerForElementHelper.initBackgroundFromPrefs(node, prefStore, "Artifact");
+
+ Node label5146 = createLabel(node, UMLVisualIDRegistry.getType(ArtifactNameEditPartCN.VISUAL_ID));
+
+ return node;
+ }
+
+ /**
+ * @generated
+ */
+ public Node createInformationItem_3094(EObject domainElement, View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
+ Shape node = NotationFactory.eINSTANCE.createShape();
+ node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
+ node.setType(UMLVisualIDRegistry.getType(InformationItemEditPartCN.VISUAL_ID));
+ ViewUtil.insertChildView(containerView, node, index, persisted);
+ node.setElement(domainElement);
+ // initializeFromPreferences
+ final IPreferenceStore prefStore = (IPreferenceStore)preferencesHint.getPreferenceStore();
+
+ PreferenceInitializerForElementHelper.initForegroundFromPrefs(node, prefStore, "InformationItem");
+
+ PreferenceInitializerForElementHelper.initFontStyleFromPrefs(node, prefStore, "InformationItem");
+
+ PreferenceInitializerForElementHelper.initBackgroundFromPrefs(node, prefStore, "InformationItem");
+
+ Node label5147 = createLabel(node, UMLVisualIDRegistry.getType(InformationItemNameEditPartCN.VISUAL_ID));
+
+ return node;
+ }
+
+ /**
+ * @generated
+ */
+ public Node createSignal_3095(EObject domainElement, View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
+ Shape node = NotationFactory.eINSTANCE.createShape();
+ node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
+ node.setType(UMLVisualIDRegistry.getType(SignalEditPartCN.VISUAL_ID));
+ ViewUtil.insertChildView(containerView, node, index, persisted);
+ node.setElement(domainElement);
+ // initializeFromPreferences
+ final IPreferenceStore prefStore = (IPreferenceStore)preferencesHint.getPreferenceStore();
+
+ PreferenceInitializerForElementHelper.initForegroundFromPrefs(node, prefStore, "Signal");
+
+ PreferenceInitializerForElementHelper.initFontStyleFromPrefs(node, prefStore, "Signal");
+
+ PreferenceInitializerForElementHelper.initBackgroundFromPrefs(node, prefStore, "Signal");
+
+ Node label5148 = createLabel(node, UMLVisualIDRegistry.getType(SignalNameEditPartCN.VISUAL_ID));
+
+ return node;
+ }
+
+ /**
+ * @generated
+ */
+ public Node createUseCase_3096(EObject domainElement, View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
+ Node node = NotationFactory.eINSTANCE.createShape();
+ node.getStyles().add(NotationFactory.eINSTANCE.createDescriptionStyle());
+ node.getStyles().add(NotationFactory.eINSTANCE.createFontStyle());
+ node.getStyles().add(NotationFactory.eINSTANCE.createFillStyle());
+ node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
+ node.setType(UMLVisualIDRegistry.getType(UseCaseEditPartCN.VISUAL_ID));
+ ViewUtil.insertChildView(containerView, node, index, persisted);
+ node.setElement(domainElement);
+ // initializeFromPreferences
+ final IPreferenceStore prefStore = (IPreferenceStore)preferencesHint.getPreferenceStore();
+
+ PreferenceInitializerForElementHelper.initFontStyleFromPrefs(node, prefStore, "UseCase");
+
+ PreferenceInitializerForElementHelper.initBackgroundFromPrefs(node, prefStore, "UseCase");
+
+ Node label5149 = createLabel(node, UMLVisualIDRegistry.getType(UseCaseNameEditPartCN.VISUAL_ID));
+
+ return node;
+ }
+
+ /**
+ * @generated
+ */
+ public Node createComment_3097(EObject domainElement, View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
+ Shape node = NotationFactory.eINSTANCE.createShape();
+ node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
+ node.setType(UMLVisualIDRegistry.getType(CommentEditPartCN.VISUAL_ID));
+ ViewUtil.insertChildView(containerView, node, index, persisted);
+ node.setElement(domainElement);
+ // initializeFromPreferences
+ final IPreferenceStore prefStore = (IPreferenceStore)preferencesHint.getPreferenceStore();
+
+ PreferenceInitializerForElementHelper.initForegroundFromPrefs(node, prefStore, "Comment");
+
+ PreferenceInitializerForElementHelper.initFontStyleFromPrefs(node, prefStore, "Comment");
+
+ PreferenceInitializerForElementHelper.initBackgroundFromPrefs(node, prefStore, "Comment");
+
+ Node label5150 = createLabel(node, UMLVisualIDRegistry.getType(CommentBodyEditPartCN.VISUAL_ID));
+
+ return node;
+ }
+
+ /**
+ * @generated
+ */
+ public Node createDurationConstraint_3116(EObject domainElement, View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
+ Shape node = NotationFactory.eINSTANCE.createShape();
+ node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
+ node.setType(UMLVisualIDRegistry.getType(DurationConstraintEditPartCN.VISUAL_ID));
+ ViewUtil.insertChildView(containerView, node, index, persisted);
+ node.setElement(domainElement);
+ // initializeFromPreferences
+ final IPreferenceStore prefStore = (IPreferenceStore)preferencesHint.getPreferenceStore();
+
+ PreferenceInitializerForElementHelper.initForegroundFromPrefs(node, prefStore, "DurationConstraint");
+
+ PreferenceInitializerForElementHelper.initFontStyleFromPrefs(node, prefStore, "DurationConstraint");
+
+ PreferenceInitializerForElementHelper.initBackgroundFromPrefs(node, prefStore, "DurationConstraint");
+
+ Node label6040 = createLabel(node, UMLVisualIDRegistry.getType(DurationConstraintNameEditPartCN.VISUAL_ID));
+ Node label6041 = createLabel(node, UMLVisualIDRegistry.getType(DurationConstraintSpecificationEditPartCN.VISUAL_ID));
+
+ return node;
+ }
+
+ /**
+ * @generated
+ */
+ public Node createTimeConstraint_3117(EObject domainElement, View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
+ Shape node = NotationFactory.eINSTANCE.createShape();
+ node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
+ node.setType(UMLVisualIDRegistry.getType(TimeConstraintEditPartCN.VISUAL_ID));
+ ViewUtil.insertChildView(containerView, node, index, persisted);
+ node.setElement(domainElement);
+ // initializeFromPreferences
+ final IPreferenceStore prefStore = (IPreferenceStore)preferencesHint.getPreferenceStore();
+
+ PreferenceInitializerForElementHelper.initForegroundFromPrefs(node, prefStore, "TimeConstraint");
+
+ PreferenceInitializerForElementHelper.initFontStyleFromPrefs(node, prefStore, "TimeConstraint");
+
+ PreferenceInitializerForElementHelper.initBackgroundFromPrefs(node, prefStore, "TimeConstraint");
+
+ Node label6042 = createLabel(node, UMLVisualIDRegistry.getType(TimeConstraintNameEditPartCN.VISUAL_ID));
+ Node label6043 = createLabel(node, UMLVisualIDRegistry.getType(TimeConstraintSpecificationEditPartCN.VISUAL_ID));
+
+ return node;
+ }
+
+ /**
+ * @generated
+ */
+ public Node createIntervalConstraint_3118(EObject domainElement, View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
+ Shape node = NotationFactory.eINSTANCE.createShape();
+ node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
+ node.setType(UMLVisualIDRegistry.getType(IntervalConstraintEditPartCN.VISUAL_ID));
+ ViewUtil.insertChildView(containerView, node, index, persisted);
+ node.setElement(domainElement);
+ // initializeFromPreferences
+ final IPreferenceStore prefStore = (IPreferenceStore)preferencesHint.getPreferenceStore();
+
+ PreferenceInitializerForElementHelper.initForegroundFromPrefs(node, prefStore, "IntervalConstraint");
+
+ PreferenceInitializerForElementHelper.initFontStyleFromPrefs(node, prefStore, "IntervalConstraint");
+
+ PreferenceInitializerForElementHelper.initBackgroundFromPrefs(node, prefStore, "IntervalConstraint");
+
+ Node label6044 = createLabel(node, UMLVisualIDRegistry.getType(IntervalConstraintNameEditPartCN.VISUAL_ID));
+ Node label6045 = createLabel(node, UMLVisualIDRegistry.getType(IntervalConstraintSpecificationEditPartCN.VISUAL_ID));
+
+ return node;
+ }
+
+ /**
+ * @generated
+ */
+ public Node createInteractionConstraint_3119(EObject domainElement, View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
+ Shape node = NotationFactory.eINSTANCE.createShape();
+ node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
+ node.setType(UMLVisualIDRegistry.getType(InteractionConstraintEditPartCN.VISUAL_ID));
+ ViewUtil.insertChildView(containerView, node, index, persisted);
+ node.setElement(domainElement);
+ // initializeFromPreferences
+ final IPreferenceStore prefStore = (IPreferenceStore)preferencesHint.getPreferenceStore();
+
+ PreferenceInitializerForElementHelper.initForegroundFromPrefs(node, prefStore, "InteractionConstraint");
+
+ PreferenceInitializerForElementHelper.initFontStyleFromPrefs(node, prefStore, "InteractionConstraint");
+
+ PreferenceInitializerForElementHelper.initBackgroundFromPrefs(node, prefStore, "InteractionConstraint");
+
+ Node label6046 = createLabel(node, UMLVisualIDRegistry.getType(InteractionConstraintNameEditPartCN.VISUAL_ID));
+ Node label6047 = createLabel(node, UMLVisualIDRegistry.getType(InteractionConstraintSpecificationEditPartCN.VISUAL_ID));
+
+ return node;
+ }
+
+ /**
+ * @generated
+ */
+ public Node createConstraint_3120(EObject domainElement, View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
+ Shape node = NotationFactory.eINSTANCE.createShape();
+ node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
+ node.setType(UMLVisualIDRegistry.getType(ConstraintEditPartCN.VISUAL_ID));
+ ViewUtil.insertChildView(containerView, node, index, persisted);
+ node.setElement(domainElement);
+ // initializeFromPreferences
+ final IPreferenceStore prefStore = (IPreferenceStore)preferencesHint.getPreferenceStore();
+
+ PreferenceInitializerForElementHelper.initForegroundFromPrefs(node, prefStore, "Constraint");
+
+ PreferenceInitializerForElementHelper.initFontStyleFromPrefs(node, prefStore, "Constraint");
+
+ PreferenceInitializerForElementHelper.initBackgroundFromPrefs(node, prefStore, "Constraint");
+
+ Node label6048 = createLabel(node, UMLVisualIDRegistry.getType(ConstraintNameEditPartCN.VISUAL_ID));
+ Node label6049 = createLabel(node, UMLVisualIDRegistry.getType(ConstraintSpecificationEditPartCN.VISUAL_ID));
+
+ return node;
+ }
+
+ /**
+ * @generated
+ */
+ public Node createProperty_3101(EObject domainElement, View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
+ Node node = NotationFactory.eINSTANCE.createShape();
+ node.setLayoutConstraint(NotationFactory.eINSTANCE.createLocation());
+ node.setType(UMLVisualIDRegistry.getType(PropertyEditPartCLN.VISUAL_ID));
+ ViewUtil.insertChildView(containerView, node, index, persisted);
+ node.setElement(domainElement);
+
+ final IPreferenceStore prefStore = (IPreferenceStore)preferencesHint.getPreferenceStore();
+
+ PreferenceInitializerForElementHelper.initFontStyleFromPrefs(node, prefStore, "Property");
+
+ PreferenceInitializerForElementHelper.initForegroundFromPrefs(node, prefStore, "Property");
+
+ return node;
+ }
+
+ /**
+ * @generated
+ */
+ public Node createOperation_3102(EObject domainElement, View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
+ Node node = NotationFactory.eINSTANCE.createShape();
+ node.setLayoutConstraint(NotationFactory.eINSTANCE.createLocation());
+ node.setType(UMLVisualIDRegistry.getType(OperationEditPartCLN.VISUAL_ID));
+ ViewUtil.insertChildView(containerView, node, index, persisted);
+ node.setElement(domainElement);
+
+ final IPreferenceStore prefStore = (IPreferenceStore)preferencesHint.getPreferenceStore();
+
+ PreferenceInitializerForElementHelper.initFontStyleFromPrefs(node, prefStore, "Operation");
+
+ PreferenceInitializerForElementHelper.initForegroundFromPrefs(node, prefStore, "Operation");
+
+ return node;
+ }
+
+ /**
+ * @generated
+ */
+ public Node createReception_3100(EObject domainElement, View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
+ Node node = NotationFactory.eINSTANCE.createShape();
+ node.setLayoutConstraint(NotationFactory.eINSTANCE.createLocation());
+ node.setType(UMLVisualIDRegistry.getType(ReceptionEditPartCLN.VISUAL_ID));
+ ViewUtil.insertChildView(containerView, node, index, persisted);
+ node.setElement(domainElement);
+
+ final IPreferenceStore prefStore = (IPreferenceStore)preferencesHint.getPreferenceStore();
+
+ PreferenceInitializerForElementHelper.initFontStyleFromPrefs(node, prefStore, "Reception");
+
+ PreferenceInitializerForElementHelper.initForegroundFromPrefs(node, prefStore, "Reception");
+
+ return node;
+ }
+
+ /**
+ * @generated
+ */
+ public Node createEnumerationLiteral_3066(EObject domainElement, View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
+ Node node = NotationFactory.eINSTANCE.createShape();
+ node.setLayoutConstraint(NotationFactory.eINSTANCE.createLocation());
+ node.setType(UMLVisualIDRegistry.getType(EnumerationLiteralEditPartCLN.VISUAL_ID));
+ ViewUtil.insertChildView(containerView, node, index, persisted);
+ node.setElement(domainElement);
+
+ final IPreferenceStore prefStore = (IPreferenceStore)preferencesHint.getPreferenceStore();
+
+ PreferenceInitializerForElementHelper.initFontStyleFromPrefs(node, prefStore, "EnumerationLiteral");
+
+ PreferenceInitializerForElementHelper.initForegroundFromPrefs(node, prefStore, "EnumerationLiteral");
+
+ return node;
+ }
+
+ /**
+ * @generated
+ */
+ public Node createActivity_3103(EObject domainElement, View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
+ Node node = NotationFactory.eINSTANCE.createShape();
+ node.setLayoutConstraint(NotationFactory.eINSTANCE.createLocation());
+ node.setType(UMLVisualIDRegistry.getType(ActivityEditPartCLN.VISUAL_ID));
+ ViewUtil.insertChildView(containerView, node, index, persisted);
+ node.setElement(domainElement);
+
+ final IPreferenceStore prefStore = (IPreferenceStore)preferencesHint.getPreferenceStore();
+
+ PreferenceInitializerForElementHelper.initFontStyleFromPrefs(node, prefStore, "Activity");
+
+ PreferenceInitializerForElementHelper.initForegroundFromPrefs(node, prefStore, "Activity");
+
+ return node;
+ }
+
+ /**
+ * @generated
+ */
+ public Node createInteraction_3104(EObject domainElement, View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
+ Node node = NotationFactory.eINSTANCE.createShape();
+ node.setLayoutConstraint(NotationFactory.eINSTANCE.createLocation());
+ node.setType(UMLVisualIDRegistry.getType(InteractionEditPartCLN.VISUAL_ID));
+ ViewUtil.insertChildView(containerView, node, index, persisted);
+ node.setElement(domainElement);
+
+ final IPreferenceStore prefStore = (IPreferenceStore)preferencesHint.getPreferenceStore();
+
+ PreferenceInitializerForElementHelper.initFontStyleFromPrefs(node, prefStore, "Interaction");
+
+ PreferenceInitializerForElementHelper.initForegroundFromPrefs(node, prefStore, "Interaction");
+
+ return node;
+ }
+
+ /**
+ * @generated
+ */
+ public Node createProtocolStateMachine_3105(EObject domainElement, View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
+ Node node = NotationFactory.eINSTANCE.createShape();
+ node.setLayoutConstraint(NotationFactory.eINSTANCE.createLocation());
+ node.setType(UMLVisualIDRegistry.getType(ProtocolStateMachineEditPartCLN.VISUAL_ID));
+ ViewUtil.insertChildView(containerView, node, index, persisted);
+ node.setElement(domainElement);
+
+ final IPreferenceStore prefStore = (IPreferenceStore)preferencesHint.getPreferenceStore();
+
+ PreferenceInitializerForElementHelper.initFontStyleFromPrefs(node, prefStore, "ProtocolStateMachine");
+
+ PreferenceInitializerForElementHelper.initForegroundFromPrefs(node, prefStore, "ProtocolStateMachine");
+
+ return node;
+ }
+
+ /**
+ * @generated
+ */
+ public Node createStateMachine_3106(EObject domainElement, View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
+ Node node = NotationFactory.eINSTANCE.createShape();
+ node.setLayoutConstraint(NotationFactory.eINSTANCE.createLocation());
+ node.setType(UMLVisualIDRegistry.getType(StateMachineEditPartCLN.VISUAL_ID));
+ ViewUtil.insertChildView(containerView, node, index, persisted);
+ node.setElement(domainElement);
+
+ final IPreferenceStore prefStore = (IPreferenceStore)preferencesHint.getPreferenceStore();
+
+ PreferenceInitializerForElementHelper.initFontStyleFromPrefs(node, prefStore, "StateMachine");
+
+ PreferenceInitializerForElementHelper.initForegroundFromPrefs(node, prefStore, "StateMachine");
+
+ return node;
+ }
+
+ /**
+ * @generated
+ */
+ public Node createFunctionBehavior_3107(EObject domainElement, View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
+ Node node = NotationFactory.eINSTANCE.createShape();
+ node.setLayoutConstraint(NotationFactory.eINSTANCE.createLocation());
+ node.setType(UMLVisualIDRegistry.getType(FunctionBehaviorEditPartCLN.VISUAL_ID));
+ ViewUtil.insertChildView(containerView, node, index, persisted);
+ node.setElement(domainElement);
+
+ final IPreferenceStore prefStore = (IPreferenceStore)preferencesHint.getPreferenceStore();
+
+ PreferenceInitializerForElementHelper.initFontStyleFromPrefs(node, prefStore, "FunctionBehavior");
+
+ PreferenceInitializerForElementHelper.initForegroundFromPrefs(node, prefStore, "FunctionBehavior");
+
+ return node;
+ }
+
+ /**
+ * @generated
+ */
+ public Node createOpaqueBehavior_3108(EObject domainElement, View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
+ Node node = NotationFactory.eINSTANCE.createShape();
+ node.setLayoutConstraint(NotationFactory.eINSTANCE.createLocation());
+ node.setType(UMLVisualIDRegistry.getType(OpaqueBehaviorEditPartCLN.VISUAL_ID));
+ ViewUtil.insertChildView(containerView, node, index, persisted);
+ node.setElement(domainElement);
+
+ final IPreferenceStore prefStore = (IPreferenceStore)preferencesHint.getPreferenceStore();
+
+ PreferenceInitializerForElementHelper.initFontStyleFromPrefs(node, prefStore, "OpaqueBehavior");
+
+ PreferenceInitializerForElementHelper.initForegroundFromPrefs(node, prefStore, "OpaqueBehavior");
+
+ return node;
+ }
+
+ /**
+ * @generated
+ */
+ public Node createCollaboration_3109(EObject domainElement, View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
+ Node node = NotationFactory.eINSTANCE.createShape();
+ node.setLayoutConstraint(NotationFactory.eINSTANCE.createLocation());
+ node.setType(UMLVisualIDRegistry.getType(CollaborationEditPartCLN.VISUAL_ID));
+ ViewUtil.insertChildView(containerView, node, index, persisted);
+ node.setElement(domainElement);
+
+ final IPreferenceStore prefStore = (IPreferenceStore)preferencesHint.getPreferenceStore();
+
+ PreferenceInitializerForElementHelper.initFontStyleFromPrefs(node, prefStore, "Collaboration");
+
+ PreferenceInitializerForElementHelper.initForegroundFromPrefs(node, prefStore, "Collaboration");
+
+ return node;
+ }
+
+ /**
+ * @generated
+ */
+ public Node createInterface_3110(EObject domainElement, View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
+ Node node = NotationFactory.eINSTANCE.createShape();
+ node.setLayoutConstraint(NotationFactory.eINSTANCE.createLocation());
+ node.setType(UMLVisualIDRegistry.getType(InterfaceEditPartCLN.VISUAL_ID));
+ ViewUtil.insertChildView(containerView, node, index, persisted);
+ node.setElement(domainElement);
+
+ final IPreferenceStore prefStore = (IPreferenceStore)preferencesHint.getPreferenceStore();
+
+ PreferenceInitializerForElementHelper.initFontStyleFromPrefs(node, prefStore, "Interface");
+
+ PreferenceInitializerForElementHelper.initForegroundFromPrefs(node, prefStore, "Interface");
+
+ return node;
+ }
+
+ /**
+ * @generated
+ */
+ public Node createEnumeration_3111(EObject domainElement, View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
+ Node node = NotationFactory.eINSTANCE.createShape();
+ node.setLayoutConstraint(NotationFactory.eINSTANCE.createLocation());
+ node.setType(UMLVisualIDRegistry.getType(EnumerationEditPartCLN.VISUAL_ID));
+ ViewUtil.insertChildView(containerView, node, index, persisted);
+ node.setElement(domainElement);
+
+ final IPreferenceStore prefStore = (IPreferenceStore)preferencesHint.getPreferenceStore();
+
+ PreferenceInitializerForElementHelper.initFontStyleFromPrefs(node, prefStore, "Enumeration");
+
+ PreferenceInitializerForElementHelper.initForegroundFromPrefs(node, prefStore, "Enumeration");
+
+ return node;
+ }
+
+ /**
+ * @generated
+ */
+ public Node createPrimitiveType_3112(EObject domainElement, View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
+ Node node = NotationFactory.eINSTANCE.createShape();
+ node.setLayoutConstraint(NotationFactory.eINSTANCE.createLocation());
+ node.setType(UMLVisualIDRegistry.getType(PrimitiveTypeEditPartCLN.VISUAL_ID));
+ ViewUtil.insertChildView(containerView, node, index, persisted);
+ node.setElement(domainElement);
+
+ final IPreferenceStore prefStore = (IPreferenceStore)preferencesHint.getPreferenceStore();
+
+ PreferenceInitializerForElementHelper.initFontStyleFromPrefs(node, prefStore, "PrimitiveType");
+
+ PreferenceInitializerForElementHelper.initForegroundFromPrefs(node, prefStore, "PrimitiveType");
+
+ return node;
+ }
+
+ /**
+ * @generated
+ */
+ public Node createDataType_3113(EObject domainElement, View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
+ Node node = NotationFactory.eINSTANCE.createShape();
+ node.setLayoutConstraint(NotationFactory.eINSTANCE.createLocation());
+ node.setType(UMLVisualIDRegistry.getType(DataTypeEditPartCLN.VISUAL_ID));
+ ViewUtil.insertChildView(containerView, node, index, persisted);
+ node.setElement(domainElement);
+
+ final IPreferenceStore prefStore = (IPreferenceStore)preferencesHint.getPreferenceStore();
+
+ PreferenceInitializerForElementHelper.initFontStyleFromPrefs(node, prefStore, "DataType");
+
+ PreferenceInitializerForElementHelper.initForegroundFromPrefs(node, prefStore, "DataType");
+
+ return node;
+ }
+
+ /**
+ * @generated
+ */
+ public Node createClass_3114(EObject domainElement, View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
+ Node node = NotationFactory.eINSTANCE.createShape();
+ node.setLayoutConstraint(NotationFactory.eINSTANCE.createLocation());
+ node.setType(UMLVisualIDRegistry.getType(ClassEditPartCLN.VISUAL_ID));
+ ViewUtil.insertChildView(containerView, node, index, persisted);
+ node.setElement(domainElement);
+
+ final IPreferenceStore prefStore = (IPreferenceStore)preferencesHint.getPreferenceStore();
+
+ PreferenceInitializerForElementHelper.initFontStyleFromPrefs(node, prefStore, "Class");
+
+ PreferenceInitializerForElementHelper.initForegroundFromPrefs(node, prefStore, "Class");
+
+ return node;
+ }
+
+ /**
+ * @generated
+ */
+ public Edge createLink_4001(View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
+ Connector edge = NotationFactory.eINSTANCE.createConnector();
+ edge.getStyles().add(NotationFactory.eINSTANCE.createFontStyle());
+ RelativeBendpoints bendpoints = NotationFactory.eINSTANCE.createRelativeBendpoints();
+ ArrayList<RelativeBendpoint> points = new ArrayList<RelativeBendpoint>(2);
+ points.add(new RelativeBendpoint());
+ points.add(new RelativeBendpoint());
+ bendpoints.setPoints(points);
+ edge.setBendpoints(bendpoints);
+ ViewUtil.insertChildView(containerView, edge, index, persisted);
+ edge.setType(UMLVisualIDRegistry.getType(LinkDescriptorEditPart.VISUAL_ID));
+ edge.setElement(null);
+ // initializePreferences
+ final IPreferenceStore prefStore = (IPreferenceStore)preferencesHint.getPreferenceStore();
+
+ PreferenceInitializerForElementHelper.initForegroundFromPrefs(edge, prefStore, "Undefined");
+
+ PreferenceInitializerForElementHelper.initFontStyleFromPrefs(edge, prefStore, "Undefined");
+
+ //org.eclipse.gmf.runtime.notation.Routing routing = org.eclipse.gmf.runtime.notation.Routing.get(prefStore.getInt(org.eclipse.gmf.runtime.diagram.ui.preferences.IPreferenceConstants.PREF_LINE_STYLE));
+ //if (routing != null) {
+ // org.eclipse.gmf.runtime.diagram.core.util.ViewUtil.setStructuralFeatureValue(edge, org.eclipse.gmf.runtime.notation.NotationPackage.eINSTANCE.getRoutingStyle_Routing(), routing);
+ //}
+
+ PreferenceInitializerForElementHelper.initRountingFromPrefs(edge, prefStore, "Undefined");
+
+ return edge;
+ }
+
+ /**
+ * @generated
+ */
+ public Edge createCommentAnnotatedElement_4002(View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
+ Connector edge = NotationFactory.eINSTANCE.createConnector();
+ edge.getStyles().add(NotationFactory.eINSTANCE.createFontStyle());
+ RelativeBendpoints bendpoints = NotationFactory.eINSTANCE.createRelativeBendpoints();
+ ArrayList<RelativeBendpoint> points = new ArrayList<RelativeBendpoint>(2);
+ points.add(new RelativeBendpoint());
+ points.add(new RelativeBendpoint());
+ bendpoints.setPoints(points);
+ edge.setBendpoints(bendpoints);
+ ViewUtil.insertChildView(containerView, edge, index, persisted);
+ edge.setType(UMLVisualIDRegistry.getType(CommentAnnotatedElementEditPart.VISUAL_ID));
+ edge.setElement(null);
+ // initializePreferences
+ final IPreferenceStore prefStore = (IPreferenceStore)preferencesHint.getPreferenceStore();
+
+ PreferenceInitializerForElementHelper.initForegroundFromPrefs(edge, prefStore, "CommentAnnotatedElement");
+
+ PreferenceInitializerForElementHelper.initFontStyleFromPrefs(edge, prefStore, "CommentAnnotatedElement");
+
+ //org.eclipse.gmf.runtime.notation.Routing routing = org.eclipse.gmf.runtime.notation.Routing.get(prefStore.getInt(org.eclipse.gmf.runtime.diagram.ui.preferences.IPreferenceConstants.PREF_LINE_STYLE));
+ //if (routing != null) {
+ // org.eclipse.gmf.runtime.diagram.core.util.ViewUtil.setStructuralFeatureValue(edge, org.eclipse.gmf.runtime.notation.NotationPackage.eINSTANCE.getRoutingStyle_Routing(), routing);
+ //}
+
+ PreferenceInitializerForElementHelper.initRountingFromPrefs(edge, prefStore, "CommentAnnotatedElement");
+
+ return edge;
+ }
+
+ /**
+ * @generated
+ */
+ public Edge createConstraintConstrainedElement_4003(View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
+ Connector edge = NotationFactory.eINSTANCE.createConnector();
+ edge.getStyles().add(NotationFactory.eINSTANCE.createFontStyle());
+ RelativeBendpoints bendpoints = NotationFactory.eINSTANCE.createRelativeBendpoints();
+ ArrayList<RelativeBendpoint> points = new ArrayList<RelativeBendpoint>(2);
+ points.add(new RelativeBendpoint());
+ points.add(new RelativeBendpoint());
+ bendpoints.setPoints(points);
+ edge.setBendpoints(bendpoints);
+ ViewUtil.insertChildView(containerView, edge, index, persisted);
+ edge.setType(UMLVisualIDRegistry.getType(ConstraintConstrainedElementEditPart.VISUAL_ID));
+ edge.setElement(null);
+ // initializePreferences
+ final IPreferenceStore prefStore = (IPreferenceStore)preferencesHint.getPreferenceStore();
+
+ PreferenceInitializerForElementHelper.initForegroundFromPrefs(edge, prefStore, "ConstraintConstrainedElement");
+
+ PreferenceInitializerForElementHelper.initFontStyleFromPrefs(edge, prefStore, "ConstraintConstrainedElement");
+
+ //org.eclipse.gmf.runtime.notation.Routing routing = org.eclipse.gmf.runtime.notation.Routing.get(prefStore.getInt(org.eclipse.gmf.runtime.diagram.ui.preferences.IPreferenceConstants.PREF_LINE_STYLE));
+ //if (routing != null) {
+ // org.eclipse.gmf.runtime.diagram.core.util.ViewUtil.setStructuralFeatureValue(edge, org.eclipse.gmf.runtime.notation.NotationPackage.eINSTANCE.getRoutingStyle_Routing(), routing);
+ //}
+
+ PreferenceInitializerForElementHelper.initRountingFromPrefs(edge, prefStore, "ConstraintConstrainedElement");
+
+ return edge;
+ }
+
+ /**
+ * @generated
+ */
+ public Edge createComponentRealization_4004(EObject domainElement, View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
+ Connector edge = NotationFactory.eINSTANCE.createConnector();
+ edge.getStyles().add(NotationFactory.eINSTANCE.createFontStyle());
+ RelativeBendpoints bendpoints = NotationFactory.eINSTANCE.createRelativeBendpoints();
+ ArrayList<RelativeBendpoint> points = new ArrayList<RelativeBendpoint>(2);
+ points.add(new RelativeBendpoint());
+ points.add(new RelativeBendpoint());
+ bendpoints.setPoints(points);
+ edge.setBendpoints(bendpoints);
+ ViewUtil.insertChildView(containerView, edge, index, persisted);
+ edge.setType(UMLVisualIDRegistry.getType(ComponentRealizationEditPart.VISUAL_ID));
+ edge.setElement(domainElement);
+ // initializePreferences
+ final IPreferenceStore prefStore = (IPreferenceStore)preferencesHint.getPreferenceStore();
+
+ PreferenceInitializerForElementHelper.initForegroundFromPrefs(edge, prefStore, "ComponentRealization");
+
+ PreferenceInitializerForElementHelper.initFontStyleFromPrefs(edge, prefStore, "ComponentRealization");
+
+ //org.eclipse.gmf.runtime.notation.Routing routing = org.eclipse.gmf.runtime.notation.Routing.get(prefStore.getInt(org.eclipse.gmf.runtime.diagram.ui.preferences.IPreferenceConstants.PREF_LINE_STYLE));
+ //if (routing != null) {
+ // org.eclipse.gmf.runtime.diagram.core.util.ViewUtil.setStructuralFeatureValue(edge, org.eclipse.gmf.runtime.notation.NotationPackage.eINSTANCE.getRoutingStyle_Routing(), routing);
+ //}
+
+ PreferenceInitializerForElementHelper.initRountingFromPrefs(edge, prefStore, "ComponentRealization");
+
+ Node label6001 = createLabel(edge, UMLVisualIDRegistry.getType(ComponentRealizationNameEditPart.VISUAL_ID));
+ label6001.setLayoutConstraint(NotationFactory.eINSTANCE.createLocation());
+ Location location6001 = (Location)label6001.getLayoutConstraint();
+ location6001.setX(0);
+ location6001.setY(60);
+ Node label6015 = createLabel(edge, UMLVisualIDRegistry.getType(ComponentRealizationAppliedStereotypeEditPart.VISUAL_ID));
+ label6015.setLayoutConstraint(NotationFactory.eINSTANCE.createLocation());
+ Location location6015 = (Location)label6015.getLayoutConstraint();
+ location6015.setX(0);
+ location6015.setY(30);
+
+ PreferenceInitializerForElementHelper.initLabelVisibilityFromPrefs(edge, prefStore, "ComponentRealization");
+
+ return edge;
+ }
+
+ /**
+ * @generated
+ */
+ public Edge createInterfaceRealization_4005(EObject domainElement, View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
+ Connector edge = NotationFactory.eINSTANCE.createConnector();
+ edge.getStyles().add(NotationFactory.eINSTANCE.createFontStyle());
+ RelativeBendpoints bendpoints = NotationFactory.eINSTANCE.createRelativeBendpoints();
+ ArrayList<RelativeBendpoint> points = new ArrayList<RelativeBendpoint>(2);
+ points.add(new RelativeBendpoint());
+ points.add(new RelativeBendpoint());
+ bendpoints.setPoints(points);
+ edge.setBendpoints(bendpoints);
+ ViewUtil.insertChildView(containerView, edge, index, persisted);
+ edge.setType(UMLVisualIDRegistry.getType(InterfaceRealizationEditPart.VISUAL_ID));
+ edge.setElement(domainElement);
+ // initializePreferences
+ final IPreferenceStore prefStore = (IPreferenceStore)preferencesHint.getPreferenceStore();
+
+ PreferenceInitializerForElementHelper.initForegroundFromPrefs(edge, prefStore, "InterfaceRealization");
+
+ PreferenceInitializerForElementHelper.initFontStyleFromPrefs(edge, prefStore, "InterfaceRealization");
+
+ //org.eclipse.gmf.runtime.notation.Routing routing = org.eclipse.gmf.runtime.notation.Routing.get(prefStore.getInt(org.eclipse.gmf.runtime.diagram.ui.preferences.IPreferenceConstants.PREF_LINE_STYLE));
+ //if (routing != null) {
+ // org.eclipse.gmf.runtime.diagram.core.util.ViewUtil.setStructuralFeatureValue(edge, org.eclipse.gmf.runtime.notation.NotationPackage.eINSTANCE.getRoutingStyle_Routing(), routing);
+ //}
+
+ PreferenceInitializerForElementHelper.initRountingFromPrefs(edge, prefStore, "InterfaceRealization");
+
+ Node label6002 = createLabel(edge, UMLVisualIDRegistry.getType(InterfaceRealizationNameEditPart.VISUAL_ID));
+ label6002.setLayoutConstraint(NotationFactory.eINSTANCE.createLocation());
+ Location location6002 = (Location)label6002.getLayoutConstraint();
+ location6002.setX(0);
+ location6002.setY(60);
+ Node label6016 = createLabel(edge, UMLVisualIDRegistry.getType(InterfaceRealizationAppliedStereotypeEditPart.VISUAL_ID));
+ label6016.setLayoutConstraint(NotationFactory.eINSTANCE.createLocation());
+ Location location6016 = (Location)label6016.getLayoutConstraint();
+ location6016.setX(0);
+ location6016.setY(30);
+
+ PreferenceInitializerForElementHelper.initLabelVisibilityFromPrefs(edge, prefStore, "InterfaceRealization");
+
+ return edge;
+ }
+
+ /**
+ * @generated
+ */
+ public Edge createSubstitution_4011(EObject domainElement, View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
+ Connector edge = NotationFactory.eINSTANCE.createConnector();
+ edge.getStyles().add(NotationFactory.eINSTANCE.createFontStyle());
+ RelativeBendpoints bendpoints = NotationFactory.eINSTANCE.createRelativeBendpoints();
+ ArrayList<RelativeBendpoint> points = new ArrayList<RelativeBendpoint>(2);
+ points.add(new RelativeBendpoint());
+ points.add(new RelativeBendpoint());
+ bendpoints.setPoints(points);
+ edge.setBendpoints(bendpoints);
+ ViewUtil.insertChildView(containerView, edge, index, persisted);
+ edge.setType(UMLVisualIDRegistry.getType(SubstitutionEditPart.VISUAL_ID));
+ edge.setElement(domainElement);
+ // initializePreferences
+ final IPreferenceStore prefStore = (IPreferenceStore)preferencesHint.getPreferenceStore();
+
+ PreferenceInitializerForElementHelper.initForegroundFromPrefs(edge, prefStore, "Substitution");
+
+ PreferenceInitializerForElementHelper.initFontStyleFromPrefs(edge, prefStore, "Substitution");
+
+ //org.eclipse.gmf.runtime.notation.Routing routing = org.eclipse.gmf.runtime.notation.Routing.get(prefStore.getInt(org.eclipse.gmf.runtime.diagram.ui.preferences.IPreferenceConstants.PREF_LINE_STYLE));
+ //if (routing != null) {
+ // org.eclipse.gmf.runtime.diagram.core.util.ViewUtil.setStructuralFeatureValue(edge, org.eclipse.gmf.runtime.notation.NotationPackage.eINSTANCE.getRoutingStyle_Routing(), routing);
+ //}
+
+ PreferenceInitializerForElementHelper.initRountingFromPrefs(edge, prefStore, "Substitution");
+
+ Node label6003 = createLabel(edge, UMLVisualIDRegistry.getType(SubstitutionNameEditPart.VISUAL_ID));
+ label6003.setLayoutConstraint(NotationFactory.eINSTANCE.createLocation());
+ Location location6003 = (Location)label6003.getLayoutConstraint();
+ location6003.setX(0);
+ location6003.setY(60);
+ Node label6017 = createLabel(edge, UMLVisualIDRegistry.getType(SubstitutionAppliedStereotypeEditPart.VISUAL_ID));
+ label6017.setLayoutConstraint(NotationFactory.eINSTANCE.createLocation());
+ Location location6017 = (Location)label6017.getLayoutConstraint();
+ location6017.setX(0);
+ location6017.setY(30);
+
+ PreferenceInitializerForElementHelper.initLabelVisibilityFromPrefs(edge, prefStore, "Substitution");
+
+ return edge;
+ }
+
+ /**
+ * @generated
+ */
+ public Edge createRealization_4006(EObject domainElement, View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
+ Connector edge = NotationFactory.eINSTANCE.createConnector();
+ edge.getStyles().add(NotationFactory.eINSTANCE.createFontStyle());
+ RelativeBendpoints bendpoints = NotationFactory.eINSTANCE.createRelativeBendpoints();
+ ArrayList<RelativeBendpoint> points = new ArrayList<RelativeBendpoint>(2);
+ points.add(new RelativeBendpoint());
+ points.add(new RelativeBendpoint());
+ bendpoints.setPoints(points);
+ edge.setBendpoints(bendpoints);
+ ViewUtil.insertChildView(containerView, edge, index, persisted);
+ edge.setType(UMLVisualIDRegistry.getType(RealizationEditPart.VISUAL_ID));
+ edge.setElement(domainElement);
+ // initializePreferences
+ final IPreferenceStore prefStore = (IPreferenceStore)preferencesHint.getPreferenceStore();
+
+ PreferenceInitializerForElementHelper.initForegroundFromPrefs(edge, prefStore, "Realization");
+
+ PreferenceInitializerForElementHelper.initFontStyleFromPrefs(edge, prefStore, "Realization");
+
+ //org.eclipse.gmf.runtime.notation.Routing routing = org.eclipse.gmf.runtime.notation.Routing.get(prefStore.getInt(org.eclipse.gmf.runtime.diagram.ui.preferences.IPreferenceConstants.PREF_LINE_STYLE));
+ //if (routing != null) {
+ // org.eclipse.gmf.runtime.diagram.core.util.ViewUtil.setStructuralFeatureValue(edge, org.eclipse.gmf.runtime.notation.NotationPackage.eINSTANCE.getRoutingStyle_Routing(), routing);
+ //}
+
+ PreferenceInitializerForElementHelper.initRountingFromPrefs(edge, prefStore, "Realization");
+
+ Node label6004 = createLabel(edge, UMLVisualIDRegistry.getType(RealizationNameEditPart.VISUAL_ID));
+ label6004.setLayoutConstraint(NotationFactory.eINSTANCE.createLocation());
+ Location location6004 = (Location)label6004.getLayoutConstraint();
+ location6004.setX(0);
+ location6004.setY(60);
+ Node label6018 = createLabel(edge, UMLVisualIDRegistry.getType(RealizationAppliedStereotypeEditPart.VISUAL_ID));
+ label6018.setLayoutConstraint(NotationFactory.eINSTANCE.createLocation());
+ Location location6018 = (Location)label6018.getLayoutConstraint();
+ location6018.setX(0);
+ location6018.setY(30);
+
+ PreferenceInitializerForElementHelper.initLabelVisibilityFromPrefs(edge, prefStore, "Realization");
+
+ return edge;
+ }
+
+ /**
+ * @generated
+ */
+ public Edge createManifestation_4012(EObject domainElement, View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
+ Connector edge = NotationFactory.eINSTANCE.createConnector();
+ edge.getStyles().add(NotationFactory.eINSTANCE.createFontStyle());
+ RelativeBendpoints bendpoints = NotationFactory.eINSTANCE.createRelativeBendpoints();
+ ArrayList<RelativeBendpoint> points = new ArrayList<RelativeBendpoint>(2);
+ points.add(new RelativeBendpoint());
+ points.add(new RelativeBendpoint());
+ bendpoints.setPoints(points);
+ edge.setBendpoints(bendpoints);
+ ViewUtil.insertChildView(containerView, edge, index, persisted);
+ edge.setType(UMLVisualIDRegistry.getType(ManifestationEditPart.VISUAL_ID));
+ edge.setElement(domainElement);
+ // initializePreferences
+ final IPreferenceStore prefStore = (IPreferenceStore)preferencesHint.getPreferenceStore();
+
+ PreferenceInitializerForElementHelper.initForegroundFromPrefs(edge, prefStore, "Manifestation");
+
+ PreferenceInitializerForElementHelper.initFontStyleFromPrefs(edge, prefStore, "Manifestation");
+
+ //org.eclipse.gmf.runtime.notation.Routing routing = org.eclipse.gmf.runtime.notation.Routing.get(prefStore.getInt(org.eclipse.gmf.runtime.diagram.ui.preferences.IPreferenceConstants.PREF_LINE_STYLE));
+ //if (routing != null) {
+ // org.eclipse.gmf.runtime.diagram.core.util.ViewUtil.setStructuralFeatureValue(edge, org.eclipse.gmf.runtime.notation.NotationPackage.eINSTANCE.getRoutingStyle_Routing(), routing);
+ //}
+
+ PreferenceInitializerForElementHelper.initRountingFromPrefs(edge, prefStore, "Manifestation");
+
+ Node label6005 = createLabel(edge, UMLVisualIDRegistry.getType(ManifestationNameEditPart.VISUAL_ID));
+ label6005.setLayoutConstraint(NotationFactory.eINSTANCE.createLocation());
+ Location location6005 = (Location)label6005.getLayoutConstraint();
+ location6005.setX(0);
+ location6005.setY(60);
+ Node label6019 = createLabel(edge, UMLVisualIDRegistry.getType(ManifestationAppliedStereotypeEditPart.VISUAL_ID));
+ label6019.setLayoutConstraint(NotationFactory.eINSTANCE.createLocation());
+ Location location6019 = (Location)label6019.getLayoutConstraint();
+ location6019.setX(0);
+ location6019.setY(30);
+
+ PreferenceInitializerForElementHelper.initLabelVisibilityFromPrefs(edge, prefStore, "Manifestation");
+
+ return edge;
+ }
+
+ /**
+ * @generated
+ */
+ public Edge createAbstraction_4007(EObject domainElement, View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
+ Connector edge = NotationFactory.eINSTANCE.createConnector();
+ edge.getStyles().add(NotationFactory.eINSTANCE.createFontStyle());
+ RelativeBendpoints bendpoints = NotationFactory.eINSTANCE.createRelativeBendpoints();
+ ArrayList<RelativeBendpoint> points = new ArrayList<RelativeBendpoint>(2);
+ points.add(new RelativeBendpoint());
+ points.add(new RelativeBendpoint());
+ bendpoints.setPoints(points);
+ edge.setBendpoints(bendpoints);
+ ViewUtil.insertChildView(containerView, edge, index, persisted);
+ edge.setType(UMLVisualIDRegistry.getType(AbstractionEditPart.VISUAL_ID));
+ edge.setElement(domainElement);
+ // initializePreferences
+ final IPreferenceStore prefStore = (IPreferenceStore)preferencesHint.getPreferenceStore();
+
+ PreferenceInitializerForElementHelper.initForegroundFromPrefs(edge, prefStore, "Abstraction");
+
+ PreferenceInitializerForElementHelper.initFontStyleFromPrefs(edge, prefStore, "Abstraction");
+
+ //org.eclipse.gmf.runtime.notation.Routing routing = org.eclipse.gmf.runtime.notation.Routing.get(prefStore.getInt(org.eclipse.gmf.runtime.diagram.ui.preferences.IPreferenceConstants.PREF_LINE_STYLE));
+ //if (routing != null) {
+ // org.eclipse.gmf.runtime.diagram.core.util.ViewUtil.setStructuralFeatureValue(edge, org.eclipse.gmf.runtime.notation.NotationPackage.eINSTANCE.getRoutingStyle_Routing(), routing);
+ //}
+
+ PreferenceInitializerForElementHelper.initRountingFromPrefs(edge, prefStore, "Abstraction");
+
+ Node label6006 = createLabel(edge, UMLVisualIDRegistry.getType(AbstractionNameEditPart.VISUAL_ID));
+ label6006.setLayoutConstraint(NotationFactory.eINSTANCE.createLocation());
+ Location location6006 = (Location)label6006.getLayoutConstraint();
+ location6006.setX(0);
+ location6006.setY(60);
+ Node label6020 = createLabel(edge, UMLVisualIDRegistry.getType(AbstractionAppliedStereotypeEditPart.VISUAL_ID));
+ label6020.setLayoutConstraint(NotationFactory.eINSTANCE.createLocation());
+ Location location6020 = (Location)label6020.getLayoutConstraint();
+ location6020.setX(0);
+ location6020.setY(30);
+
+ PreferenceInitializerForElementHelper.initLabelVisibilityFromPrefs(edge, prefStore, "Abstraction");
+
+ return edge;
+ }
+
+ /**
+ * @generated
+ */
+ public Edge createUsage_4008(EObject domainElement, View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
+ Connector edge = NotationFactory.eINSTANCE.createConnector();
+ edge.getStyles().add(NotationFactory.eINSTANCE.createFontStyle());
+ RelativeBendpoints bendpoints = NotationFactory.eINSTANCE.createRelativeBendpoints();
+ ArrayList<RelativeBendpoint> points = new ArrayList<RelativeBendpoint>(2);
+ points.add(new RelativeBendpoint());
+ points.add(new RelativeBendpoint());
+ bendpoints.setPoints(points);
+ edge.setBendpoints(bendpoints);
+ ViewUtil.insertChildView(containerView, edge, index, persisted);
+ edge.setType(UMLVisualIDRegistry.getType(UsageEditPart.VISUAL_ID));
+ edge.setElement(domainElement);
+ // initializePreferences
+ final IPreferenceStore prefStore = (IPreferenceStore)preferencesHint.getPreferenceStore();
+
+ PreferenceInitializerForElementHelper.initForegroundFromPrefs(edge, prefStore, "Usage");
+
+ PreferenceInitializerForElementHelper.initFontStyleFromPrefs(edge, prefStore, "Usage");
+
+ //org.eclipse.gmf.runtime.notation.Routing routing = org.eclipse.gmf.runtime.notation.Routing.get(prefStore.getInt(org.eclipse.gmf.runtime.diagram.ui.preferences.IPreferenceConstants.PREF_LINE_STYLE));
+ //if (routing != null) {
+ // org.eclipse.gmf.runtime.diagram.core.util.ViewUtil.setStructuralFeatureValue(edge, org.eclipse.gmf.runtime.notation.NotationPackage.eINSTANCE.getRoutingStyle_Routing(), routing);
+ //}
+
+ PreferenceInitializerForElementHelper.initRountingFromPrefs(edge, prefStore, "Usage");
+
+ Node label6007 = createLabel(edge, UMLVisualIDRegistry.getType(UsageNameEditPart.VISUAL_ID));
+ label6007.setLayoutConstraint(NotationFactory.eINSTANCE.createLocation());
+ Location location6007 = (Location)label6007.getLayoutConstraint();
+ location6007.setX(0);
+ location6007.setY(60);
+ Node label6021 = createLabel(edge, UMLVisualIDRegistry.getType(UsageAppliedStereotypeEditPart.VISUAL_ID));
+ label6021.setLayoutConstraint(NotationFactory.eINSTANCE.createLocation());
+ Location location6021 = (Location)label6021.getLayoutConstraint();
+ location6021.setX(0);
+ location6021.setY(30);
+
+ PreferenceInitializerForElementHelper.initLabelVisibilityFromPrefs(edge, prefStore, "Usage");
+
+ return edge;
+ }
+
+ /**
+ * @generated
+ */
+ public Edge createDeployment_4009(EObject domainElement, View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
+ Connector edge = NotationFactory.eINSTANCE.createConnector();
+ edge.getStyles().add(NotationFactory.eINSTANCE.createFontStyle());
+ RelativeBendpoints bendpoints = NotationFactory.eINSTANCE.createRelativeBendpoints();
+ ArrayList<RelativeBendpoint> points = new ArrayList<RelativeBendpoint>(2);
+ points.add(new RelativeBendpoint());
+ points.add(new RelativeBendpoint());
+ bendpoints.setPoints(points);
+ edge.setBendpoints(bendpoints);
+ ViewUtil.insertChildView(containerView, edge, index, persisted);
+ edge.setType(UMLVisualIDRegistry.getType(DeploymentEditPart.VISUAL_ID));
+ edge.setElement(domainElement);
+ // initializePreferences
+ final IPreferenceStore prefStore = (IPreferenceStore)preferencesHint.getPreferenceStore();
+
+ PreferenceInitializerForElementHelper.initForegroundFromPrefs(edge, prefStore, "Deployment");
+
+ PreferenceInitializerForElementHelper.initFontStyleFromPrefs(edge, prefStore, "Deployment");
+
+ //org.eclipse.gmf.runtime.notation.Routing routing = org.eclipse.gmf.runtime.notation.Routing.get(prefStore.getInt(org.eclipse.gmf.runtime.diagram.ui.preferences.IPreferenceConstants.PREF_LINE_STYLE));
+ //if (routing != null) {
+ // org.eclipse.gmf.runtime.diagram.core.util.ViewUtil.setStructuralFeatureValue(edge, org.eclipse.gmf.runtime.notation.NotationPackage.eINSTANCE.getRoutingStyle_Routing(), routing);
+ //}
+
+ PreferenceInitializerForElementHelper.initRountingFromPrefs(edge, prefStore, "Deployment");
+
+ Node label6008 = createLabel(edge, UMLVisualIDRegistry.getType(DeploymentNameEditPart.VISUAL_ID));
+ label6008.setLayoutConstraint(NotationFactory.eINSTANCE.createLocation());
+ Location location6008 = (Location)label6008.getLayoutConstraint();
+ location6008.setX(0);
+ location6008.setY(60);
+ Node label6022 = createLabel(edge, UMLVisualIDRegistry.getType(DeploymentAppliedStereotypeEditPart.VISUAL_ID));
+ label6022.setLayoutConstraint(NotationFactory.eINSTANCE.createLocation());
+ Location location6022 = (Location)label6022.getLayoutConstraint();
+ location6022.setX(0);
+ location6022.setY(30);
+
+ PreferenceInitializerForElementHelper.initLabelVisibilityFromPrefs(edge, prefStore, "Deployment");
+
+ return edge;
+ }
+
+ /**
+ * @generated
+ */
+ public Edge createDependency_4017(EObject domainElement, View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
+ Connector edge = NotationFactory.eINSTANCE.createConnector();
+ edge.getStyles().add(NotationFactory.eINSTANCE.createFontStyle());
+ RelativeBendpoints bendpoints = NotationFactory.eINSTANCE.createRelativeBendpoints();
+ ArrayList<RelativeBendpoint> points = new ArrayList<RelativeBendpoint>(2);
+ points.add(new RelativeBendpoint());
+ points.add(new RelativeBendpoint());
+ bendpoints.setPoints(points);
+ edge.setBendpoints(bendpoints);
+ ViewUtil.insertChildView(containerView, edge, index, persisted);
+ edge.setType(UMLVisualIDRegistry.getType(RoleBindingEditPart.VISUAL_ID));
+ edge.setElement(domainElement);
+ // initializePreferences
+ final IPreferenceStore prefStore = (IPreferenceStore)preferencesHint.getPreferenceStore();
+
+ PreferenceInitializerForElementHelper.initForegroundFromPrefs(edge, prefStore, "RoleBinding");
+
+ PreferenceInitializerForElementHelper.initFontStyleFromPrefs(edge, prefStore, "RoleBinding");
+
+ //org.eclipse.gmf.runtime.notation.Routing routing = org.eclipse.gmf.runtime.notation.Routing.get(prefStore.getInt(org.eclipse.gmf.runtime.diagram.ui.preferences.IPreferenceConstants.PREF_LINE_STYLE));
+ //if (routing != null) {
+ // org.eclipse.gmf.runtime.diagram.core.util.ViewUtil.setStructuralFeatureValue(edge, org.eclipse.gmf.runtime.notation.NotationPackage.eINSTANCE.getRoutingStyle_Routing(), routing);
+ //}
+
+ PreferenceInitializerForElementHelper.initRountingFromPrefs(edge, prefStore, "RoleBinding");
+
+ Node label6027 = createLabel(edge, UMLVisualIDRegistry.getType(RoleBindingRoleNameEditPart.VISUAL_ID));
+ label6027.setLayoutConstraint(NotationFactory.eINSTANCE.createLocation());
+ Location location6027 = (Location)label6027.getLayoutConstraint();
+ location6027.setX(0);
+ location6027.setY(20);
+ Node label6028 = createLabel(edge, UMLVisualIDRegistry.getType(RoleBindingAppliedStereotypeEditPart.VISUAL_ID));
+ label6028.setLayoutConstraint(NotationFactory.eINSTANCE.createLocation());
+ Location location6028 = (Location)label6028.getLayoutConstraint();
+ location6028.setX(0);
+ location6028.setY(60);
+
+ PreferenceInitializerForElementHelper.initLabelVisibilityFromPrefs(edge, prefStore, "RoleBinding");
+
+ return edge;
+ }
+
+ /**
+ * @generated
+ */
+ public Edge createDependency_4010(EObject domainElement, View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
+ Connector edge = NotationFactory.eINSTANCE.createConnector();
+ edge.getStyles().add(NotationFactory.eINSTANCE.createFontStyle());
+ RelativeBendpoints bendpoints = NotationFactory.eINSTANCE.createRelativeBendpoints();
+ ArrayList<RelativeBendpoint> points = new ArrayList<RelativeBendpoint>(2);
+ points.add(new RelativeBendpoint());
+ points.add(new RelativeBendpoint());
+ bendpoints.setPoints(points);
+ edge.setBendpoints(bendpoints);
+ ViewUtil.insertChildView(containerView, edge, index, persisted);
+ edge.setType(UMLVisualIDRegistry.getType(DependencyEditPart.VISUAL_ID));
+ edge.setElement(domainElement);
+ // initializePreferences
+ final IPreferenceStore prefStore = (IPreferenceStore)preferencesHint.getPreferenceStore();
+
+ PreferenceInitializerForElementHelper.initForegroundFromPrefs(edge, prefStore, "Dependency");
+
+ PreferenceInitializerForElementHelper.initFontStyleFromPrefs(edge, prefStore, "Dependency");
+
+ //org.eclipse.gmf.runtime.notation.Routing routing = org.eclipse.gmf.runtime.notation.Routing.get(prefStore.getInt(org.eclipse.gmf.runtime.diagram.ui.preferences.IPreferenceConstants.PREF_LINE_STYLE));
+ //if (routing != null) {
+ // org.eclipse.gmf.runtime.diagram.core.util.ViewUtil.setStructuralFeatureValue(edge, org.eclipse.gmf.runtime.notation.NotationPackage.eINSTANCE.getRoutingStyle_Routing(), routing);
+ //}
+
+ PreferenceInitializerForElementHelper.initRountingFromPrefs(edge, prefStore, "Dependency");
+
+ Node label6009 = createLabel(edge, UMLVisualIDRegistry.getType(DependencyNameEditPart.VISUAL_ID));
+ label6009.setLayoutConstraint(NotationFactory.eINSTANCE.createLocation());
+ Location location6009 = (Location)label6009.getLayoutConstraint();
+ location6009.setX(0);
+ location6009.setY(60);
+ Node label6023 = createLabel(edge, UMLVisualIDRegistry.getType(DependencyAppliedStereotypeEditPart.VISUAL_ID));
+ label6023.setLayoutConstraint(NotationFactory.eINSTANCE.createLocation());
+ Location location6023 = (Location)label6023.getLayoutConstraint();
+ location6023.setX(0);
+ location6023.setY(60);
+
+ PreferenceInitializerForElementHelper.initLabelVisibilityFromPrefs(edge, prefStore, "Dependency");
+
+ return edge;
+ }
+
+ /**
+ * @generated
+ */
+ public Edge createConnector_4013(EObject domainElement, View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
+ Connector edge = NotationFactory.eINSTANCE.createConnector();
+ edge.getStyles().add(NotationFactory.eINSTANCE.createFontStyle());
+ RelativeBendpoints bendpoints = NotationFactory.eINSTANCE.createRelativeBendpoints();
+ ArrayList<RelativeBendpoint> points = new ArrayList<RelativeBendpoint>(2);
+ points.add(new RelativeBendpoint());
+ points.add(new RelativeBendpoint());
+ bendpoints.setPoints(points);
+ edge.setBendpoints(bendpoints);
+ ViewUtil.insertChildView(containerView, edge, index, persisted);
+ edge.setType(UMLVisualIDRegistry.getType(ConnectorEditPart.VISUAL_ID));
+ edge.setElement(domainElement);
+ // initializePreferences
+ final IPreferenceStore prefStore = (IPreferenceStore)preferencesHint.getPreferenceStore();
+
+ PreferenceInitializerForElementHelper.initForegroundFromPrefs(edge, prefStore, "Connector");
+
+ PreferenceInitializerForElementHelper.initFontStyleFromPrefs(edge, prefStore, "Connector");
+
+ //org.eclipse.gmf.runtime.notation.Routing routing = org.eclipse.gmf.runtime.notation.Routing.get(prefStore.getInt(org.eclipse.gmf.runtime.diagram.ui.preferences.IPreferenceConstants.PREF_LINE_STYLE));
+ //if (routing != null) {
+ // org.eclipse.gmf.runtime.diagram.core.util.ViewUtil.setStructuralFeatureValue(edge, org.eclipse.gmf.runtime.notation.NotationPackage.eINSTANCE.getRoutingStyle_Routing(), routing);
+ //}
+
+ PreferenceInitializerForElementHelper.initRountingFromPrefs(edge, prefStore, "Connector");
+
+ Node label6025 = createLabel(edge, UMLVisualIDRegistry.getType(ConnectorAppliedStereotypeEditPart.VISUAL_ID));
+ label6025.setLayoutConstraint(NotationFactory.eINSTANCE.createLocation());
+ Location location6025 = (Location)label6025.getLayoutConstraint();
+ location6025.setX(0);
+ location6025.setY(60);
+ Node label6050 = createLabel(edge, UMLVisualIDRegistry.getType(ConnectorNameEditPart.VISUAL_ID));
+ label6050.setLayoutConstraint(NotationFactory.eINSTANCE.createLocation());
+ Location location6050 = (Location)label6050.getLayoutConstraint();
+ location6050.setX(0);
+ location6050.setY(-20);
+ Node label6051 = createLabel(edge, UMLVisualIDRegistry.getType(ConnectorMultiplicitySourceEditPart.VISUAL_ID));
+ label6051.setLayoutConstraint(NotationFactory.eINSTANCE.createLocation());
+ Location location6051 = (Location)label6051.getLayoutConstraint();
+ location6051.setX(0);
+ location6051.setY(20);
+ Node label6052 = createLabel(edge, UMLVisualIDRegistry.getType(ConnectorMultiplicityTargetEditPart.VISUAL_ID));
+ label6052.setLayoutConstraint(NotationFactory.eINSTANCE.createLocation());
+ Location location6052 = (Location)label6052.getLayoutConstraint();
+ location6052.setX(0);
+ location6052.setY(20);
+
+ PreferenceInitializerForElementHelper.initLabelVisibilityFromPrefs(edge, prefStore, "Connector");
+
+ return edge;
+ }
+
+ /**
+ * @generated
+ */
+ public Edge createGeneralization_4015(EObject domainElement, View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
+ Connector edge = NotationFactory.eINSTANCE.createConnector();
+ edge.getStyles().add(NotationFactory.eINSTANCE.createFontStyle());
+ RelativeBendpoints bendpoints = NotationFactory.eINSTANCE.createRelativeBendpoints();
+ ArrayList<RelativeBendpoint> points = new ArrayList<RelativeBendpoint>(2);
+ points.add(new RelativeBendpoint());
+ points.add(new RelativeBendpoint());
+ bendpoints.setPoints(points);
+ edge.setBendpoints(bendpoints);
+ ViewUtil.insertChildView(containerView, edge, index, persisted);
+ edge.setType(UMLVisualIDRegistry.getType(GeneralizationEditPart.VISUAL_ID));
+ edge.setElement(domainElement);
+ // initializePreferences
+ final IPreferenceStore prefStore = (IPreferenceStore)preferencesHint.getPreferenceStore();
+
+ PreferenceInitializerForElementHelper.initForegroundFromPrefs(edge, prefStore, "Generalization");
+
+ PreferenceInitializerForElementHelper.initFontStyleFromPrefs(edge, prefStore, "Generalization");
+
+ //org.eclipse.gmf.runtime.notation.Routing routing = org.eclipse.gmf.runtime.notation.Routing.get(prefStore.getInt(org.eclipse.gmf.runtime.diagram.ui.preferences.IPreferenceConstants.PREF_LINE_STYLE));
+ //if (routing != null) {
+ // org.eclipse.gmf.runtime.diagram.core.util.ViewUtil.setStructuralFeatureValue(edge, org.eclipse.gmf.runtime.notation.NotationPackage.eINSTANCE.getRoutingStyle_Routing(), routing);
+ //}
+
+ PreferenceInitializerForElementHelper.initRountingFromPrefs(edge, prefStore, "Generalization");
+
+ Node label6024 = createLabel(edge, UMLVisualIDRegistry.getType(GeneralizationAppliedStereotypeEditPart.VISUAL_ID));
+ label6024.setLayoutConstraint(NotationFactory.eINSTANCE.createLocation());
+ Location location6024 = (Location)label6024.getLayoutConstraint();
+ location6024.setX(0);
+ location6024.setY(60);
+
+ PreferenceInitializerForElementHelper.initLabelVisibilityFromPrefs(edge, prefStore, "Generalization");
+
+ return edge;
+ }
+
+ /**
+ * @generated
+ */
+ public Edge createTimeObservationEvent_4018(View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
+ Connector edge = NotationFactory.eINSTANCE.createConnector();
+ edge.getStyles().add(NotationFactory.eINSTANCE.createFontStyle());
+ RelativeBendpoints bendpoints = NotationFactory.eINSTANCE.createRelativeBendpoints();
+ ArrayList<RelativeBendpoint> points = new ArrayList<RelativeBendpoint>(2);
+ points.add(new RelativeBendpoint());
+ points.add(new RelativeBendpoint());
+ bendpoints.setPoints(points);
+ edge.setBendpoints(bendpoints);
+ ViewUtil.insertChildView(containerView, edge, index, persisted);
+ edge.setType(UMLVisualIDRegistry.getType(TimeObservationEventEditPart.VISUAL_ID));
+ edge.setElement(null);
+ // initializePreferences
+ final IPreferenceStore prefStore = (IPreferenceStore)preferencesHint.getPreferenceStore();
+
+ PreferenceInitializerForElementHelper.initForegroundFromPrefs(edge, prefStore, "TimeObservationEvent");
+
+ PreferenceInitializerForElementHelper.initFontStyleFromPrefs(edge, prefStore, "TimeObservationEvent");
+
+ //org.eclipse.gmf.runtime.notation.Routing routing = org.eclipse.gmf.runtime.notation.Routing.get(prefStore.getInt(org.eclipse.gmf.runtime.diagram.ui.preferences.IPreferenceConstants.PREF_LINE_STYLE));
+ //if (routing != null) {
+ // org.eclipse.gmf.runtime.diagram.core.util.ViewUtil.setStructuralFeatureValue(edge, org.eclipse.gmf.runtime.notation.NotationPackage.eINSTANCE.getRoutingStyle_Routing(), routing);
+ //}
+
+ PreferenceInitializerForElementHelper.initRountingFromPrefs(edge, prefStore, "TimeObservationEvent");
+
+ return edge;
+ }
+
+ /**
+ * @generated
+ */
+ public Edge createDurationObservationEvent_4019(View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
+ Connector edge = NotationFactory.eINSTANCE.createConnector();
+ edge.getStyles().add(NotationFactory.eINSTANCE.createFontStyle());
+ RelativeBendpoints bendpoints = NotationFactory.eINSTANCE.createRelativeBendpoints();
+ ArrayList<RelativeBendpoint> points = new ArrayList<RelativeBendpoint>(2);
+ points.add(new RelativeBendpoint());
+ points.add(new RelativeBendpoint());
+ bendpoints.setPoints(points);
+ edge.setBendpoints(bendpoints);
+ ViewUtil.insertChildView(containerView, edge, index, persisted);
+ edge.setType(UMLVisualIDRegistry.getType(DurationObservationEventEditPart.VISUAL_ID));
+ edge.setElement(null);
+ // initializePreferences
+ final IPreferenceStore prefStore = (IPreferenceStore)preferencesHint.getPreferenceStore();
+
+ PreferenceInitializerForElementHelper.initForegroundFromPrefs(edge, prefStore, "DurationObservationEvent");
+
+ PreferenceInitializerForElementHelper.initFontStyleFromPrefs(edge, prefStore, "DurationObservationEvent");
+
+ //org.eclipse.gmf.runtime.notation.Routing routing = org.eclipse.gmf.runtime.notation.Routing.get(prefStore.getInt(org.eclipse.gmf.runtime.diagram.ui.preferences.IPreferenceConstants.PREF_LINE_STYLE));
+ //if (routing != null) {
+ // org.eclipse.gmf.runtime.diagram.core.util.ViewUtil.setStructuralFeatureValue(edge, org.eclipse.gmf.runtime.notation.NotationPackage.eINSTANCE.getRoutingStyle_Routing(), routing);
+ //}
+
+ PreferenceInitializerForElementHelper.initRountingFromPrefs(edge, prefStore, "DurationObservationEvent");
+
+ return edge;
+ }
+
+ /**
+ * @generated
+ */
+ public Edge createInformationItemRepresented_4020(View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
+ Connector edge = NotationFactory.eINSTANCE.createConnector();
+ edge.getStyles().add(NotationFactory.eINSTANCE.createFontStyle());
+ RelativeBendpoints bendpoints = NotationFactory.eINSTANCE.createRelativeBendpoints();
+ ArrayList<RelativeBendpoint> points = new ArrayList<RelativeBendpoint>(2);
+ points.add(new RelativeBendpoint());
+ points.add(new RelativeBendpoint());
+ bendpoints.setPoints(points);
+ edge.setBendpoints(bendpoints);
+ ViewUtil.insertChildView(containerView, edge, index, persisted);
+ edge.setType(UMLVisualIDRegistry.getType(RepresentationEditPart.VISUAL_ID));
+ edge.setElement(null);
+ // initializePreferences
+ final IPreferenceStore prefStore = (IPreferenceStore)preferencesHint.getPreferenceStore();
+
+ ViewUtil.setStructuralFeatureValue(edge, NotationPackage.eINSTANCE.getLineStyle_LineColor(), FigureUtilities.colorToInteger(ColorConstants.black));
+
+ PreferenceInitializerForElementHelper.initFontStyleFromPrefs(edge, prefStore, "Undefined");
+
+ //org.eclipse.gmf.runtime.notation.Routing routing = org.eclipse.gmf.runtime.notation.Routing.get(prefStore.getInt(org.eclipse.gmf.runtime.diagram.ui.preferences.IPreferenceConstants.PREF_LINE_STYLE));
+ //if (routing != null) {
+ // org.eclipse.gmf.runtime.diagram.core.util.ViewUtil.setStructuralFeatureValue(edge, org.eclipse.gmf.runtime.notation.NotationPackage.eINSTANCE.getRoutingStyle_Routing(), routing);
+ //}
+
+ PreferenceInitializerForElementHelper.initRountingFromPrefs(edge, prefStore, "Undefined");
+
+ Node label6030 = createLabel(edge, UMLVisualIDRegistry.getType(RepresentationTagLabelEditPart.VISUAL_ID));
+ label6030.setLayoutConstraint(NotationFactory.eINSTANCE.createLocation());
+ Location location6030 = (Location)label6030.getLayoutConstraint();
+ location6030.setX(0);
+ location6030.setY(15);
+
+ PreferenceInitializerForElementHelper.initLabelVisibilityFromPrefs(edge, prefStore, "Undefined");
+
+ return edge;
+ }
+
+ /**
+ * @generated
+ */
+ public Edge createInformationFlow_4021(EObject domainElement, View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
+ Connector edge = NotationFactory.eINSTANCE.createConnector();
+ edge.getStyles().add(NotationFactory.eINSTANCE.createFontStyle());
+ RelativeBendpoints bendpoints = NotationFactory.eINSTANCE.createRelativeBendpoints();
+ ArrayList<RelativeBendpoint> points = new ArrayList<RelativeBendpoint>(2);
+ points.add(new RelativeBendpoint());
+ points.add(new RelativeBendpoint());
+ bendpoints.setPoints(points);
+ edge.setBendpoints(bendpoints);
+ ViewUtil.insertChildView(containerView, edge, index, persisted);
+ edge.setType(UMLVisualIDRegistry.getType(InformationFlowEditPart.VISUAL_ID));
+ edge.setElement(domainElement);
+ // initializePreferences
+ final IPreferenceStore prefStore = (IPreferenceStore)preferencesHint.getPreferenceStore();
+
+ PreferenceInitializerForElementHelper.initForegroundFromPrefs(edge, prefStore, "InformationFlow");
+
+ PreferenceInitializerForElementHelper.initFontStyleFromPrefs(edge, prefStore, "InformationFlow");
+
+ //org.eclipse.gmf.runtime.notation.Routing routing = org.eclipse.gmf.runtime.notation.Routing.get(prefStore.getInt(org.eclipse.gmf.runtime.diagram.ui.preferences.IPreferenceConstants.PREF_LINE_STYLE));
+ //if (routing != null) {
+ // org.eclipse.gmf.runtime.diagram.core.util.ViewUtil.setStructuralFeatureValue(edge, org.eclipse.gmf.runtime.notation.NotationPackage.eINSTANCE.getRoutingStyle_Routing(), routing);
+ //}
+
+ PreferenceInitializerForElementHelper.initRountingFromPrefs(edge, prefStore, "InformationFlow");
+
+ Node label6031 = createLabel(edge, UMLVisualIDRegistry.getType(InformationFlowConveyedLabelEditPart.VISUAL_ID));
+ label6031.setLayoutConstraint(NotationFactory.eINSTANCE.createLocation());
+ Location location6031 = (Location)label6031.getLayoutConstraint();
+ location6031.setX(0);
+ location6031.setY(30);
+ Node label6032 = createLabel(edge, UMLVisualIDRegistry.getType(InformationFlowAppliedStereotypeEditPart.VISUAL_ID));
+ label6032.setLayoutConstraint(NotationFactory.eINSTANCE.createLocation());
+ Location location6032 = (Location)label6032.getLayoutConstraint();
+ location6032.setX(0);
+ location6032.setY(15);
+
+ PreferenceInitializerForElementHelper.initLabelVisibilityFromPrefs(edge, prefStore, "InformationFlow");
+
+ return edge;
+ }
+
+ /**
+ * @generated
+ */
+ protected void stampShortcut(View containerView, Node target) {
+ if(!CompositeStructureDiagramEditPart.MODEL_ID.equals(UMLVisualIDRegistry.getModelID(containerView))) {
+ EAnnotation shortcutAnnotation = EcoreFactory.eINSTANCE.createEAnnotation();
+ shortcutAnnotation.setSource("Shortcut"); //$NON-NLS-1$
+ shortcutAnnotation.getDetails().put("modelID", CompositeStructureDiagramEditPart.MODEL_ID); //$NON-NLS-1$
+ target.getEAnnotations().add(shortcutAnnotation);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Node createLabel(View owner, String hint) {
+ DecorationNode rv = NotationFactory.eINSTANCE.createDecorationNode();
+ rv.setType(hint);
+ ViewUtil.insertChildView(owner, rv, ViewUtil.APPEND, true);
+ return rv;
+ }
+
+ /**
+ * @generated
+ */
+ protected Node createCompartment(View owner, String hint, boolean canCollapse, boolean hasTitle, boolean canSort, boolean canFilter) {
+ //SemanticListCompartment rv = NotationFactory.eINSTANCE.createSemanticListCompartment();
+ //rv.setShowTitle(showTitle);
+ //rv.setCollapsed(isCollapsed);
+ Node rv;
+ if(canCollapse) {
+ rv = NotationFactory.eINSTANCE.createBasicCompartment();
+ } else {
+ rv = NotationFactory.eINSTANCE.createDecorationNode();
+ }
+ rv.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
+
+ if(hasTitle) {
+ TitleStyle ts = NotationFactory.eINSTANCE.createTitleStyle();
+ ts.setShowTitle(true);
+ rv.getStyles().add(ts);
+ }
+ if(canSort) {
+ rv.getStyles().add(NotationFactory.eINSTANCE.createSortingStyle());
+ }
+ if(canFilter) {
+ rv.getStyles().add(NotationFactory.eINSTANCE.createFilteringStyle());
+ }
+ rv.setType(hint);
+ ViewUtil.insertChildView(owner, rv, ViewUtil.APPEND, true);
+ return rv;
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject getSemanticElement(IAdaptable semanticAdapter) {
+ if(semanticAdapter == null) {
+ return null;
+ }
+ EObject eObject = (EObject)semanticAdapter.getAdapter(EObject.class);
+ if(eObject != null) {
+ return EMFCoreUtil.resolve(TransactionUtil.getEditingDomain(eObject), eObject);
+ }
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected IElementType getSemanticElementType(IAdaptable semanticAdapter) {
+ if(semanticAdapter == null) {
+ return null;
+ }
+ return (IElementType)semanticAdapter.getAdapter(IElementType.class);
+ }
+
+ /**
+ * @generated
+ */
+ private void initFontStyleFromPrefs(View view, final IPreferenceStore store, String elementName) {
+ String fontConstant = PreferenceConstantHelper.getElementConstant(elementName, PreferenceConstantHelper.FONT);
+ String fontColorConstant = PreferenceConstantHelper.getElementConstant(elementName, PreferenceConstantHelper.COLOR_FONT);
+
+ FontStyle viewFontStyle = (FontStyle)view.getStyle(NotationPackage.Literals.FONT_STYLE);
+ if(viewFontStyle != null) {
+ FontData fontData = PreferenceConverter.getFontData(store, fontConstant);
+ viewFontStyle.setFontName(fontData.getName());
+ viewFontStyle.setFontHeight(fontData.getHeight());
+ viewFontStyle.setBold((fontData.getStyle() & SWT.BOLD) != 0);
+ viewFontStyle.setItalic((fontData.getStyle() & SWT.ITALIC) != 0);
+
+ org.eclipse.swt.graphics.RGB fontRGB = PreferenceConverter.getColor(store, fontColorConstant);
+ viewFontStyle.setFontColor(FigureUtilities.RGBToInteger(fontRGB).intValue());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void initForegroundFromPrefs(View view, final IPreferenceStore store, String elementName) {
+ String lineColorConstant = PreferenceConstantHelper.getElementConstant(elementName, PreferenceConstantHelper.COLOR_LINE);
+ org.eclipse.swt.graphics.RGB lineRGB = PreferenceConverter.getColor(store, lineColorConstant);
+ ViewUtil.setStructuralFeatureValue(view, NotationPackage.eINSTANCE.getLineStyle_LineColor(), FigureUtilities.RGBToInteger(lineRGB));
+ }
+
+ /**
+ * @generated
+ */
+ private void initBackgroundFromPrefs(View view, final IPreferenceStore store, String elementName) {
+ String fillColorConstant = PreferenceConstantHelper.getElementConstant(elementName, PreferenceConstantHelper.COLOR_FILL);
+ String gradientColorConstant = PreferenceConstantHelper.getElementConstant(elementName, PreferenceConstantHelper.COLOR_GRADIENT);
+ String gradientPolicyConstant = PreferenceConstantHelper.getElementConstant(elementName, PreferenceConstantHelper.GRADIENT_POLICY);
+
+ org.eclipse.swt.graphics.RGB fillRGB = PreferenceConverter.getColor(store, fillColorConstant);
+ ViewUtil.setStructuralFeatureValue(view, NotationPackage.eINSTANCE.getFillStyle_FillColor(), FigureUtilities.RGBToInteger(fillRGB));
+
+ FillStyle fillStyle = (FillStyle)view.getStyle(NotationPackage.Literals.FILL_STYLE);
+ fillStyle.setFillColor(FigureUtilities.RGBToInteger(fillRGB).intValue());
+
+ ;
+ if(store.getBoolean(gradientPolicyConstant)) {
+ GradientPreferenceConverter gradientPreferenceConverter = new GradientPreferenceConverter(store.getString(gradientColorConstant));
+ fillStyle.setGradient(gradientPreferenceConverter.getGradientData());
+ fillStyle.setTransparency(gradientPreferenceConverter.getTransparency());
+ }
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/sheet/UMLPropertySection.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/sheet/UMLPropertySection.java
new file mode 100644
index 00000000000..1897ca246b8
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/sheet/UMLPropertySection.java
@@ -0,0 +1,123 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.sheet;
+
+import java.util.ArrayList;
+import java.util.Iterator;
+
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.emf.common.notify.AdapterFactory;
+import org.eclipse.emf.edit.domain.AdapterFactoryEditingDomain;
+import org.eclipse.emf.edit.provider.IItemPropertySource;
+import org.eclipse.emf.edit.ui.provider.PropertySource;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.emf.transaction.util.TransactionUtil;
+import org.eclipse.gef.EditPart;
+import org.eclipse.gmf.runtime.diagram.ui.properties.sections.AdvancedPropertySection;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.viewers.ISelection;
+import org.eclipse.jface.viewers.StructuredSelection;
+import org.eclipse.ui.IWorkbenchPart;
+import org.eclipse.ui.views.properties.IPropertySource;
+import org.eclipse.ui.views.properties.IPropertySourceProvider;
+
+/**
+ * @generated
+ */
+public class UMLPropertySection extends AdvancedPropertySection implements IPropertySourceProvider {
+
+ /**
+ * @generated
+ */
+ public IPropertySource getPropertySource(Object object) {
+ if(object instanceof IPropertySource) {
+ return (IPropertySource)object;
+ }
+ AdapterFactory af = getAdapterFactory(object);
+ if(af != null) {
+ IItemPropertySource ips = (IItemPropertySource)af.adapt(object, IItemPropertySource.class);
+ if(ips != null) {
+ return new PropertySource(object, ips);
+ }
+ }
+ if(object instanceof IAdaptable) {
+ return (IPropertySource)((IAdaptable)object).getAdapter(IPropertySource.class);
+ }
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected IPropertySourceProvider getPropertySourceProvider() {
+ return this;
+ }
+
+ /**
+ * Modify/unwrap selection.
+ *
+ * @generated
+ */
+ protected Object transformSelection(Object selected) {
+
+ if(selected instanceof EditPart) {
+ Object model = ((EditPart)selected).getModel();
+ return model instanceof View ? ((View)model).getElement() : null;
+ }
+ if(selected instanceof View) {
+ return ((View)selected).getElement();
+ }
+ if(selected instanceof IAdaptable) {
+ View view = (View)((IAdaptable)selected).getAdapter(View.class);
+ if(view != null) {
+ return view.getElement();
+ }
+ }
+ return selected;
+ }
+
+ /**
+ * @generated
+ */
+ public void setInput(IWorkbenchPart part, ISelection selection) {
+ if(selection.isEmpty() || false == selection instanceof StructuredSelection) {
+ super.setInput(part, selection);
+ return;
+ }
+ final StructuredSelection structuredSelection = ((StructuredSelection)selection);
+ ArrayList transformedSelection = new ArrayList(structuredSelection.size());
+ for(Iterator it = structuredSelection.iterator(); it.hasNext();) {
+ Object r = transformSelection(it.next());
+ if(r != null) {
+ transformedSelection.add(r);
+ }
+ }
+ super.setInput(part, new StructuredSelection(transformedSelection));
+ }
+
+ /**
+ * @generated
+ */
+ protected AdapterFactory getAdapterFactory(Object object) {
+ if(getEditingDomain() instanceof AdapterFactoryEditingDomain) {
+ return ((AdapterFactoryEditingDomain)getEditingDomain()).getAdapterFactory();
+ }
+ TransactionalEditingDomain editingDomain = TransactionUtil.getEditingDomain(object);
+ if(editingDomain != null) {
+ return ((AdapterFactoryEditingDomain)editingDomain).getAdapterFactory();
+ }
+ return null;
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/sheet/UMLSheetLabelProvider.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/sheet/UMLSheetLabelProvider.java
new file mode 100644
index 00000000000..862984a760e
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/src/org/eclipse/papyrus/diagram/composite/sheet/UMLSheetLabelProvider.java
@@ -0,0 +1,87 @@
+/*****************************************************************************
+ * Copyright (c) 2009-2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.composite.sheet;
+
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.viewers.BaseLabelProvider;
+import org.eclipse.jface.viewers.ILabelProvider;
+import org.eclipse.jface.viewers.IStructuredSelection;
+import org.eclipse.papyrus.diagram.composite.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.diagram.composite.providers.UMLElementTypes;
+import org.eclipse.swt.graphics.Image;
+
+/**
+ * @generated
+ */
+public class UMLSheetLabelProvider extends BaseLabelProvider implements ILabelProvider {
+
+ /**
+ * @generated
+ */
+ public String getText(Object element) {
+ element = unwrap(element);
+ IElementType etype = getElementType(getView(element));
+ return etype == null ? "" : etype.getDisplayName();
+ }
+
+ /**
+ * @generated
+ */
+ public Image getImage(Object element) {
+ IElementType etype = getElementType(getView(unwrap(element)));
+ return etype == null ? null : UMLElementTypes.getImage(etype);
+ }
+
+ /**
+ * @generated
+ */
+ private Object unwrap(Object element) {
+ if(element instanceof IStructuredSelection) {
+ return ((IStructuredSelection)element).getFirstElement();
+ }
+ return element;
+ }
+
+ /**
+ * @generated
+ */
+ private View getView(Object element) {
+ if(element instanceof View) {
+ return (View)element;
+ }
+ if(element instanceof IAdaptable) {
+ return (View)((IAdaptable)element).getAdapter(View.class);
+ }
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ private IElementType getElementType(View view) {
+ // For intermediate views climb up the containment hierarchy to find the one associated with an element type.
+ while(view != null) {
+ int vid = UMLVisualIDRegistry.getVisualID(view);
+ IElementType etype = UMLElementTypes.getElementType(vid);
+ if(etype != null) {
+ return etype;
+ }
+ view = view.eContainer() instanceof View ? (View)view.eContainer() : null;
+ }
+ return null;
+ }
+
+}

Back to the top